]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/ChangeLog
Make 'libgomp/target.c:gomp_unmap_tgt' 'static' again
[thirdparty/gcc.git] / libgomp / ChangeLog
1 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
2
3 * target.c (gomp_unmap_tgt): Make it 'static'.
4 * libgomp.h (gomp_unmap_tgt): Remove.
5
6 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
7
8 PR middle-end/86416
9 * testsuite/libgomp.c/pr86416-1.c: New.
10 * testsuite/libgomp.c/pr86416-2.c: New.
11
12 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
13
14 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
15 all symbols as public except for the 'use …, only' imported symbol,
16 which is private.
17 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
18 all symbols from module openacc_kinds as PUBLIC
19 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
20 fix comment typo.
21 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
22
23 2019-12-13 Julian Brown <julian@codesourcery.com>
24
25 PR libgomp/92881
26
27 * libgomp.h (gomp_remove_var_async): Add prototype.
28 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
29 gomp_remove_var.
30 * target.c (gomp_unref_tgt): Change return type to bool, indicating
31 whether target_mem_desc was unmapped.
32 (gomp_unref_tgt_void): New.
33 (gomp_remove_var): Reimplement in terms of...
34 (gomp_remove_var_internal): ...this new helper function.
35 (gomp_remove_var_async): New, implemented using above helper function.
36 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
37 gomp_unref_tgt.
38
39 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
40
41 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
42 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
43 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
44 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
45 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
46 Likewise.
47 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
48 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
49
50 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
51
52 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
53 as public except for the 'use …, only' imported symbol, which is
54 private.
55 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
56 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
57 attributes for acc_copyout_finalize and acc_delete_finalize.
58
59 2019-12-11 Jakub Jelinek <jakub@redhat.com>
60
61 PR fortran/92899
62 * testsuite/libgomp.fortran/atomic1.f90: New test.
63
64 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
65
66 PR libgomp/92843
67 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
68 reference counting for structured 'REFCOUNT_INFINITY'. Add some
69 assertions.
70 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
71 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
72 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
73 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
74 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
75
76 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
77 * oacc-mem.c: ... here.
78 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
79 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
80 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
81 Remove.
82 * libgomp_g.h: Update.
83
84 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
85 * oacc-async.c: ... here.
86 * oacc-int.h (goacc_wait): Declare.
87 * libgomp_g.h: Update
88
89 PR libgomp/92854
90 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
91 New file.
92 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
93 Likewise.
94 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
95 Likewise.
96 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
97 Likewise.
98 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
99 Likewise.
100 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
101 Likewise.
102
103 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
104 Julian Brown <julian@codesourcery.com>
105
106 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
107 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
108
109 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
110
111 * omp_lib.h.in: Fix spelling of function declaration
112 omp_get_cancell(l)ation.
113 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
114 Fix typos.
115 * env.c: Fix comment typos.
116 * oacc-host.c: Likewise.
117 * ordered.c: Likewise.
118 * task.c: Likewise.
119 * team.c: Likewise.
120 * config/gcn/task.c: Likewise.
121 * config/gcn/team.c: Likewise.
122 * config/nvptx/task.c: Likewise.
123 * config/nvptx/team.c: Likewise.
124 * plugin/plugin-gcn.c: Likewise.
125 * testsuite/libgomp.fortran/jacobi.f: Likewise.
126 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
127 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
128
129 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
130
131 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
132 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
133 unnecessary 'dg-additional-options "-w"'.
134
135 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
136 Julian Brown <julian@codesourcery.com>
137
138 PR libgomp/92116
139 PR libgomp/92877
140
141 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
142 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
143 Adjust all users.
144 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
145 Remove XFAIL.
146 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
147 Likewise.
148 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
149
150 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
151
152 PR libgomp/92503
153 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
154 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
155 file.
156 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
157 Likewise.
158 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
159 Likewise.
160 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
161 Likewise.
162 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
163 Likewise.
164 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
165 Likewise.
166 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
167 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
168 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
169 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
170 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
171 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
172 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
173 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
174 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
175 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
176
177 PR libgomp/92840
178 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
179 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
180 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
181 New file.
182 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
183 Likewise.
184 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
185 Likewise.
186 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
187 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
188
189 PR libgomp/92511
190 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
191 this file...
192 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
193 this file...
194 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
195 file...
196 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
197 file...
198 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
199 ... with their content moved into, and extended in this new file.
200 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
201 New file.
202 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
203 Likewise.
204 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
205 Likewise.
206 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
207 Likewise.
208
209 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
210
211 PR libgomp/92854
212 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
213
214 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
215
216 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
217
218 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
219
220 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
221 unique.
222 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
223 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
224 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
225 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
226 Ditto.
227 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
228 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
229
230 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
231
232 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
233
234 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
235 Kwok Cheung Yeung <kcy@codesourcery.com>
236
237 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
238 if input it a NULL pointer.
239 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
240 diagnostic of NULL pointer.
241 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
242 * testsuite/libgomp.fortran/optional-map.f90: New.
243 * testsuite/libgomp.fortran/use_device_addr-1.f90
244 (test_dummy_opt_callee_1_absent): New.
245 (test_dummy_opt_call_1): Call it.
246 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
247 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
248 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
249 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
250 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
251 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
252 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
253 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
254 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
255 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
256 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
257 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
258 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
259 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
260 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
261 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
262
263 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
264
265 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
266 expect dg-output of 'Error termination.' for GCN.
267 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
268 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
269
270 2019-12-04 Jakub Jelinek <jakub@redhat.com>
271
272 PR fortran/92756
273 * testsuite/libgomp.fortran/teams1.f90: New test.
274 * testsuite/libgomp.fortran/teams2.f90: New test.
275
276 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
277
278 * oacc-init.c (acc_known_device_type): Add function.
279 (unknown_device_type_error): Add function.
280 (name_of_acc_device_t): Change to call unknown_device_type_error
281 on unknown type.
282 (resolve_device): Use acc_known_device_type.
283 (acc_init): Fail if acc_device_t argument is not valid.
284 (acc_shutdown): Likewise.
285 (acc_get_num_devices): Likewise.
286 (acc_set_device_type): Likewise.
287 (acc_get_device_num): Likewise.
288 (acc_set_device_num): Likewise.
289 (acc_on_device): Add comment that argument validity is not checked.
290
291 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
292
293 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
294 Recognize amdgcn.
295 (check_effective_target_openacc_amdgcn_accel_present): New proc.
296 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
297 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
298 * testsuite/libgomp.oacc-c/c.exp: Likewise.
299 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
300
301 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
302
303 PR libgomp/91938
304 * configure.tgt: Avoid IE tls on *-*-musl*.
305
306 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
307
308 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
309 adding a common-block test case.
310
311 2019-11-29 Jakub Jelinek <jakub@redhat.com>
312
313 PR c++/60228
314 * testsuite/libgomp.c++/udr-20.C: New test.
315 * testsuite/libgomp.c++/udr-21.C: New test.
316
317 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
318
319 * testsuite/lib/libgomp.exp
320 (check_effective_target_offload_target_nvptx): New proc.
321 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
322 'dg-skip-if'.
323 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
324 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
325 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
326
327 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
328
329 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
330 * testsuite/libgomp.c/pr39591-2.c: Likewise.
331 * testsuite/libgomp.c/pr39591-3.c: Likewise.
332 * testsuite/libgomp.c/private-1.c: Likewise.
333 * testsuite/libgomp.c/task-1.c: Likewise.
334 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
335
336 2019-11-20 Julian Brown <julian@codesourcery.com>
337
338 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
339 aq->mutex here.
340 (queue_push_launch): Lock aq->mutex before calling
341 wait_for_queue_nonfull.
342 (queue_push_callback): Likewise.
343 (queue_push_asyncwait): Likewise.
344 (queue_push_placeholder): Likewise.
345
346 2019-11-20 Julian Brown <julian@codesourcery.com>
347
348 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
349 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
350 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
351 return code.
352
353 2019-11-20 Julian Brown <julian@codesourcery.com>
354
355 PR libgomp/92511
356
357 * oacc-mem.c (present_create_copy): Fix device pointer return value in
358 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
359 in non-present/create case.
360 (delete_copyout): Change error condition to fail only on copies outside
361 of mapped block. Adjust error message accordingly.
362 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
363 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
364 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
365 message.
366 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
367 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
368 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
369
370 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
371
372 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
373 libatomic in build-tree testing.
374
375 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
376
377 * testsuite/Makefile.in: Regenerate.
378
379 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
380
381 * testsuite/libgomp.c/target-print-1.c: New file.
382 * testsuite/libgomp.fortran/target-print-1.f90: New file.
383 * testsuite/libgomp.oacc-c/print-1.c: New file.
384 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
385
386 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
387 Kwok Cheung Yeung <kcy@codesourcery.com>
388 Julian Brown <julian@codesourcery.com>
389 Tom de Vries <tom@codesourcery.com>
390
391 * plugin/Makefrag.am: Add amdgcn plugin support.
392 * plugin/configfrag.ac: Likewise.
393 * plugin/plugin-gcn.c: New file.
394 * configure: Regenerate.
395 * Makefile.in: Regenerate.
396 * testsuite/Makefile.in: Regenerate.
397
398 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
399
400 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
401 and use team_malloc variants.
402 (gomp_gcn_exit_kernel): Use team_free.
403 * libgomp.h (TEAM_ARENA_SIZE): Define.
404 (TEAM_ARENA_START): Define.
405 (TEAM_ARENA_FREE): Define.
406 (TEAM_ARENA_END): Define.
407 (team_malloc): New function.
408 (team_malloc_cleared): New function.
409 (team_free): New function.
410 * team.c (gomp_new_team): Initialize and use team_malloc.
411 (free_team): Use team_free.
412 (gomp_free_thread): Use team_free.
413 (gomp_pause_host): Use team_free.
414 * work.c (gomp_init_work_share): Use team_malloc.
415 (gomp_fini_work_share): Use team_free.
416
417 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
418 Kwok Cheung Yeung <kcy@codesourcery.com>
419 Julian Brown <julian@codesourcery.com>
420 Tom de Vries <tom@codesourcery.com>
421
422 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
423 * Makefile.in: Regenerate.
424 * config.h.in (PLUGIN_GCN): Add new undef.
425 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
426 * config/gcn/affinity-fmt.c: New file.
427 * config/gcn/bar.c: New file.
428 * config/gcn/bar.h: New file.
429 * config/gcn/doacross.h: New file.
430 * config/gcn/icv-device.c: New file.
431 * config/gcn/oacc-target.c: New file.
432 * config/gcn/simple-bar.h: New file.
433 * config/gcn/target.c: New file.
434 * config/gcn/task.c: New file.
435 * config/gcn/team.c: New file.
436 * config/gcn/time.c: New file.
437 * configure.ac: Add amdgcn*-*-*.
438 * configure: Regenerate.
439 * configure.tgt: Add amdgcn*-*-*.
440 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
441 * libgomp.h (gcn_thrs): Add amdgcn variant.
442 (set_gcn_thrs): Likewise.
443 (gomp_thread): Likewise.
444 * oacc-int.h (goacc_thread): Likewise.
445 * oacc-target.c: New file.
446 * openacc.f90 (acc_device_gcn): New parameter.
447 * openacc.h (acc_device_t): Add acc_device_gcn.
448 * team.c (gomp_free_pool_helper): Add amdgcn support.
449
450 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
451 Julian Brown <julian@codesourcery.com>
452
453 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
454 parameter.
455 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
456 queue constructor.
457 * oacc-host.c (host_openacc_async_construct): Add device parameter.
458 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
459 device parameter.
460
461 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
462
463 * configure.tgt (nvptx*-*-*): Add "accel" directory.
464 * config/nvptx/libgomp-plugin.c: Move ...
465 * config/accel/libgomp-plugin.c: ... to here.
466 * config/nvptx/lock.c: Move ...
467 * config/accel/lock.c: ... to here.
468 * config/nvptx/mutex.c: Move ...
469 * config/accel/mutex.c: ... to here.
470 * config/nvptx/mutex.h: Move ...
471 * config/accel/mutex.h: ... to here.
472 * config/nvptx/oacc-async.c: Move ...
473 * config/accel/oacc-async.c: ... to here.
474 * config/nvptx/oacc-cuda.c: Move ...
475 * config/accel/oacc-cuda.c: ... to here.
476 * config/nvptx/oacc-host.c: Move ...
477 * config/accel/oacc-host.c: ... to here.
478 * config/nvptx/oacc-init.c: Move ...
479 * config/accel/oacc-init.c: ... to here.
480 * config/nvptx/oacc-mem.c: Move ...
481 * config/accel/oacc-mem.c: ... to here.
482 * config/nvptx/oacc-plugin.c: Move ...
483 * config/accel/oacc-plugin.c: ... to here.
484 * config/nvptx/omp-lock.h: Move ...
485 * config/accel/omp-lock.h: ... to here.
486 * config/nvptx/openacc.f90: Move ...
487 * config/accel/openacc.f90: ... to here.
488 * config/nvptx/pool.h: Move ...
489 * config/accel/pool.h: ... to here.
490 * config/nvptx/proc.c: Move ...
491 * config/accel/proc.c: ... to here.
492 * config/nvptx/ptrlock.c: Move ...
493 * config/accel/ptrlock.c: ... to here.
494 * config/nvptx/ptrlock.h: Move ...
495 * config/accel/ptrlock.h: ... to here.
496 * config/nvptx/sem.c: Move ...
497 * config/accel/sem.c: ... to here.
498 * config/nvptx/sem.h: Move ...
499 * config/accel/sem.h: ... to here.
500 * config/nvptx/thread-stacksize.h: Move ...
501 * config/accel/thread-stacksize.h: ... to here.
502
503 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
504 Tobias Burnus <tobias@codesourcery.com>
505 Frederik Harwath <frederik@codesourcery.com>
506 Thomas Schwinge <thomas@codesourcery.com>
507
508 libgomp/
509 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
510 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
511 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
512
513 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
514 Kwok Cheung Yeung <kcy@codesourcery.com>
515
516 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
517 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
518
519 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
520
521 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
522
523 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
524 run'.
525 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
526 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
527
528 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
529
530 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
531 Add expected warnings about missing reduction clauses.
532 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
533 Likewise.
534 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
535 Likewise.
536 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
537 Likewise.
538
539 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
540
541 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
542 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
543 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
544 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
545 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
546 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
547
548 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
549
550 PR fortran/92305
551 * testsuite/libgomp.fortran/allocatable2.f90: Use
552 unique numbers with 'stop'.
553 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
554 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
555 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
556 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
557 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
558
559 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
560
561 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
562 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
563 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
564 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
565 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
566 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
567
568 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
569
570 * testsuite/libgomp.fortran/target9.f90: New.
571
572 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
573
574 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
575 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
576 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
577 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
578 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
579 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
580 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
581 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
582 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
583 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
584 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
585 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
586 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
587 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
588 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
589 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
590 * testsuite/libgomp.fortran/associate1.f90: Ditto.
591 * testsuite/libgomp.fortran/associate2.f90: Ditto.
592 * testsuite/libgomp.fortran/associate3.f90: Ditto.
593 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
594 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
595 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
596 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
597 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
598 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
599 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
600 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
601 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
602 * testsuite/libgomp.fortran/character1.f90: Ditto.
603 * testsuite/libgomp.fortran/character2.f90: Ditto.
604 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
605 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
606 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
607 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
608 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
609 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
610 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
611 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
612 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
613 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
614 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
615 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
616 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
617 * testsuite/libgomp.fortran/do1.f90: Ditto.
618 * testsuite/libgomp.fortran/do2.f90: Ditto.
619 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
620 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
621 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
622 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
623 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
624 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
625 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
626 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
627 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
628 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
629 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
630 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
631 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
632 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
633 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
634 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
635 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
636 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
637 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
638 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
639 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
640 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
641 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
642 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
643 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
644 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
645 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
646 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
647 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
648 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
649 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
650 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
651 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
652 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
653 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
654 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
655 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
656 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
657 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
658 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
659 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
660 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
661 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
662 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
663 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
664 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
665 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
666 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
667 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
668 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
669 * testsuite/libgomp.fortran/lib1.f90: Ditto.
670 * testsuite/libgomp.fortran/lib4.f90: Ditto.
671 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
672 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
673 * testsuite/libgomp.fortran/nested1.f90: Ditto.
674 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
675 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
676 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
677 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
678 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
679 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
680 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
681 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
682 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
683 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
684 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
685 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
686 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
687 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
688 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
689 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
690 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
691 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
692 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
693 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
694 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
695 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
696 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
697 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
698 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
699 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
700 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
701 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
702 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
703 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
704 * testsuite/libgomp.fortran/pr28390.f: Ditto.
705 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
706 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
707 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
708 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
709 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
710 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
711 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
712 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
713 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
714 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
715 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
716 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
717 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
718 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
719 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
720 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
721 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
722 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
723 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
724 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
725 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
726 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
727 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
728 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
729 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
730 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
731 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
732 * testsuite/libgomp.fortran/reference1.f90: Ditto.
733 * testsuite/libgomp.fortran/reference2.f90: Ditto.
734 * testsuite/libgomp.fortran/retval1.f90: Ditto.
735 * testsuite/libgomp.fortran/retval2.f90: Ditto.
736 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
737 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
738 * testsuite/libgomp.fortran/simd1.f90: Ditto.
739 * testsuite/libgomp.fortran/simd2.f90: Ditto.
740 * testsuite/libgomp.fortran/simd3.f90: Ditto.
741 * testsuite/libgomp.fortran/simd4.f90: Ditto.
742 * testsuite/libgomp.fortran/simd5.f90: Ditto.
743 * testsuite/libgomp.fortran/simd6.f90: Ditto.
744 * testsuite/libgomp.fortran/simd7.f90: Ditto.
745 * testsuite/libgomp.fortran/stack.f90: Ditto.
746 * testsuite/libgomp.fortran/strassen.f90: Ditto.
747 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
748 * testsuite/libgomp.fortran/tabs2.f: Ditto.
749 * testsuite/libgomp.fortran/target1.f90: Ditto.
750 * testsuite/libgomp.fortran/target2.f90: Ditto.
751 * testsuite/libgomp.fortran/target3.f90: Ditto.
752 * testsuite/libgomp.fortran/target4.f90: Ditto.
753 * testsuite/libgomp.fortran/target5.f90: Ditto.
754 * testsuite/libgomp.fortran/target6.f90: Ditto.
755 * testsuite/libgomp.fortran/target7.f90: Ditto.
756 * testsuite/libgomp.fortran/target8.f90: Ditto.
757 * testsuite/libgomp.fortran/task1.f90: Ditto.
758 * testsuite/libgomp.fortran/task2.f90: Ditto.
759 * testsuite/libgomp.fortran/task3.f90: Ditto.
760 * testsuite/libgomp.fortran/task4.f90: Ditto.
761 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
762 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
763 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
764 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
765 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
766 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
767 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
768 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
769 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
770 * testsuite/libgomp.fortran/udr1.f90: Ditto.
771 * testsuite/libgomp.fortran/udr10.f90: Ditto.
772 * testsuite/libgomp.fortran/udr11.f90: Ditto.
773 * testsuite/libgomp.fortran/udr12.f90: Ditto.
774 * testsuite/libgomp.fortran/udr13.f90: Ditto.
775 * testsuite/libgomp.fortran/udr14.f90: Ditto.
776 * testsuite/libgomp.fortran/udr15.f90: Ditto.
777 * testsuite/libgomp.fortran/udr2.f90: Ditto.
778 * testsuite/libgomp.fortran/udr3.f90: Ditto.
779 * testsuite/libgomp.fortran/udr4.f90: Ditto.
780 * testsuite/libgomp.fortran/udr5.f90: Ditto.
781 * testsuite/libgomp.fortran/udr6.f90: Ditto.
782 * testsuite/libgomp.fortran/udr7.f90: Ditto.
783 * testsuite/libgomp.fortran/udr8.f90: Ditto.
784 * testsuite/libgomp.fortran/udr9.f90: Ditto.
785 * testsuite/libgomp.fortran/vla1.f90: Ditto.
786 * testsuite/libgomp.fortran/vla2.f90: Ditto.
787 * testsuite/libgomp.fortran/vla3.f90: Ditto.
788 * testsuite/libgomp.fortran/vla4.f90: Ditto.
789 * testsuite/libgomp.fortran/vla5.f90: Ditto.
790 * testsuite/libgomp.fortran/vla6.f90: Ditto.
791 * testsuite/libgomp.fortran/vla7.f90: Ditto.
792 * testsuite/libgomp.fortran/vla8.f90: Ditto.
793 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
794 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
795
796 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
797
798 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
799 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
800 Ditto; add 'dg-do run' for torture testing.
801 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
802 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
803 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
804 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
805 * testsuite/libgomp.fortran/pr28390.f: Ditto.
806 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
807 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
808 * testsuite/libgomp.fortran/task2.f90: Ditto.
809 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
810 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
811 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
812 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
813 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
814 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
815
816 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
817
818 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
819 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
820 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
821 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
822 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
823 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
824 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
825 Use 'stop' not abort().
826 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
827 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
828 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
829 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
830 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
831 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
832 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
833 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
834 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
835 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
836 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
837 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
838 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
839 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
840 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
841 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
842 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
843 Ditto.
844 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
845 Ditto.
846 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
847 Ditto.
848 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
849 Ditto.
850 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
851 Ditto.
852 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
853 Ditto.
854 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
855 Ditto.
856 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
857 Ditto.
858 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
859 Ditto.
860 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
861 Ditto.
862 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
863 Ditto.
864 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
865 Ditto.
866 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
867 Ditto.
868 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
869 Ditto.
870 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
871 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
872 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
873 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
874 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
875 Likewise and also add 'dg-do run'.
876 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
877 Ditto.
878
879 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
880 Tobias Burnus <tobias@codesourcery.com>
881
882 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
883 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
884 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
885
886 2019-10-14 Jakub Jelinek <jakub@redhat.com>
887
888 PR libgomp/92081
889 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
890 than 0.
891
892 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
893
894 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
895 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
896
897 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
898
899 PR middle-end/92036
900 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
901 file.
902
903 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
904
905 PR testsuite/91884
906 * testsuite/libgomp.fortran/fortran.exp: Conditionally
907 add -lquadmath.
908 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
909
910 2019-10-09 Jakub Jelinek <jakub@redhat.com>
911
912 PR libgomp/92028
913 * target.c (gomp_map_vars_internal): Readd the previous
914 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
915 though do that just in the !not_found_cnt case.
916
917 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
918
919 * gfortran.dg/gomp/target-simd.f90: New.
920
921 2019-10-02 Julian Brown <julian@codesourcery.com>
922 Cesar Philippidis <cesar@codesourcery.com>
923
924 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
925 * target.c (FIELD_TGT_EMPTY): Define.
926 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
927 as switch instead of list of ifs.
928 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
929
930 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
931
932 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
933 include. Replace alloca () with __builtin_alloca ().
934 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
935
936 2019-10-01 Jakub Jelinek <jakub@redhat.com>
937
938 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
939 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
940 * oacc-parallel.c: Don't include "libgomp_g.h".
941 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
942 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
943 * aclocal.m4: Regenerated.
944 * config.h.in: Regenerated.
945 * configure: Regenerated.
946 * Makefile.in: Regenerated.
947
948 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
949
950 * libgomp_g.h: Include stdint.h instead of gstdint.h.
951
952 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
953
954 * configure: Regenerate.
955
956 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
957
958 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
959 string is initialized.
960
961 2019-09-06 Florian Weimer <fweimer@redhat.com>
962
963 * configure: Regenerate.
964
965 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
966
967 PR other/79543
968 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
969 scanning to conform to the GNU Coding Standards.
970 * configure: Regenerate.
971
972 2019-08-28 Jakub Jelinek <jakub@redhat.com>
973
974 PR libgomp/91530
975 * testsuite/libgomp.c/scan-21.c: New test.
976 * testsuite/libgomp.c/scan-22.c: New test.
977
978 2019-08-27 Jakub Jelinek <jakub@redhat.com>
979
980 PR libgomp/91530
981 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
982 targets.
983 * testsuite/libgomp.c/scan-12.c: Likewise.
984 * testsuite/libgomp.c/scan-13.c: Likewise.
985 * testsuite/libgomp.c/scan-14.c: Likewise.
986 * testsuite/libgomp.c/scan-15.c: Likewise.
987 * testsuite/libgomp.c/scan-16.c: Likewise.
988 * testsuite/libgomp.c/scan-17.c: Likewise.
989 * testsuite/libgomp.c/scan-18.c: Likewise.
990 * testsuite/libgomp.c/scan-19.c: Likewise.
991 * testsuite/libgomp.c/scan-20.c: Likewise.
992 * testsuite/libgomp.c++/scan-9.C: Likewise.
993 * testsuite/libgomp.c++/scan-10.C: Likewise.
994 * testsuite/libgomp.c++/scan-11.C: Likewise.
995 * testsuite/libgomp.c++/scan-12.C: Likewise.
996 * testsuite/libgomp.c++/scan-14.C: Likewise.
997 * testsuite/libgomp.c++/scan-15.C: Likewise.
998 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
999 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
1000 * testsuite/libgomp.c++/scan-16.C: Likewise.
1001
1002 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
1003
1004 PR fortran/91473
1005 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
1006 -std=legacy so invalid code in the test case is accepted.
1007
1008 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
1009
1010 PR fortran/91422
1011 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
1012 dimension.
1013
1014 2019-08-08 Jakub Jelinek <jakub@redhat.com>
1015
1016 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
1017 perform the lookup in the first loop only if !not_found_cnt, otherwise
1018 perform lookups for it in the second loop guarded with
1019 if (not_found_cnt || has_firstprivate).
1020 * testsuite/libgomp.c/target-37.c: New test.
1021 * testsuite/libgomp.c++/target-22.C: New test.
1022
1023 2019-08-07 Jakub Jelinek <jakub@redhat.com>
1024
1025 * testsuite/libgomp.c/target-18.c (struct S): New type.
1026 (foo): Use use_device_addr clause instead of use_device_ptr clause
1027 where required by OpenMP 5.0, add further tests for both use_device_ptr
1028 and use_device_addr clauses.
1029 * testsuite/libgomp.c++/target-9.C (struct S): New type.
1030 (foo): Use use_device_addr clause instead of use_device_ptr clause
1031 where required by OpenMP 5.0, add further tests for both use_device_ptr
1032 and use_device_addr clauses. Add t and u arguments.
1033 (main): Adjust caller.
1034
1035 2019-08-06 Jakub Jelinek <jakub@redhat.com>
1036
1037 * testsuite/libgomp.c++/loop-13.C: New test.
1038 * testsuite/libgomp.c++/loop-14.C: New test.
1039 * testsuite/libgomp.c++/loop-15.C: New test.
1040
1041 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1042
1043 PR middle-end/91301
1044 * testsuite/libgomp.c++/for-27.C: New test.
1045
1046 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
1047
1048 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
1049 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1050
1051 2019-07-20 Jakub Jelinek <jakub@redhat.com>
1052
1053 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
1054
1055 2019-07-08 Jakub Jelinek <jakub@redhat.com>
1056
1057 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
1058 * testsuite/libgomp.c++/scan-16.C: Likewise.
1059
1060 2019-07-06 Jakub Jelinek <jakub@redhat.com>
1061
1062 * testsuite/libgomp.c/scan-19.c: New test.
1063 * testsuite/libgomp.c/scan-20.c: New test.
1064
1065 * testsuite/libgomp.c/scan-11.c: New test.
1066 * testsuite/libgomp.c/scan-12.c: New test.
1067 * testsuite/libgomp.c/scan-13.c: New test.
1068 * testsuite/libgomp.c/scan-14.c: New test.
1069 * testsuite/libgomp.c/scan-15.c: New test.
1070 * testsuite/libgomp.c/scan-16.c: New test.
1071 * testsuite/libgomp.c/scan-17.c: New test.
1072 * testsuite/libgomp.c/scan-18.c: New test.
1073 * testsuite/libgomp.c++/scan-9.C: New test.
1074 * testsuite/libgomp.c++/scan-10.C: New test.
1075 * testsuite/libgomp.c++/scan-11.C: New test.
1076 * testsuite/libgomp.c++/scan-12.C: New test.
1077 * testsuite/libgomp.c++/scan-13.C: New test.
1078 * testsuite/libgomp.c++/scan-14.C: New test.
1079 * testsuite/libgomp.c++/scan-15.C: New test.
1080 * testsuite/libgomp.c++/scan-16.C: New test.
1081
1082 2019-07-04 Jakub Jelinek <jakub@redhat.com>
1083
1084 * testsuite/libgomp.c/scan-9.c: New test.
1085 * testsuite/libgomp.c/scan-10.c: New test.
1086
1087 2019-07-03 Jakub Jelinek <jakub@redhat.com>
1088
1089 * testsuite/libgomp.c++/scan-1.C: New test.
1090 * testsuite/libgomp.c++/scan-2.C: New test.
1091 * testsuite/libgomp.c++/scan-3.C: New test.
1092 * testsuite/libgomp.c++/scan-4.C: New test.
1093 * testsuite/libgomp.c++/scan-5.C: New test.
1094 * testsuite/libgomp.c++/scan-6.C: New test.
1095 * testsuite/libgomp.c++/scan-7.C: New test.
1096 * testsuite/libgomp.c++/scan-8.C: New test.
1097 * testsuite/libgomp.c/scan-1.c: New test.
1098 * testsuite/libgomp.c/scan-2.c: New test.
1099 * testsuite/libgomp.c/scan-3.c: New test.
1100 * testsuite/libgomp.c/scan-4.c: New test.
1101 * testsuite/libgomp.c/scan-5.c: New test.
1102 * testsuite/libgomp.c/scan-6.c: New test.
1103 * testsuite/libgomp.c/scan-7.c: New test.
1104 * testsuite/libgomp.c/scan-8.c: New test.
1105
1106 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1107
1108 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
1109 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
1110 Likewise.
1111
1112 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
1113 check.
1114
1115 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
1116
1117 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
1118 file.
1119
1120 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1121
1122 PR fortran/90743
1123 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
1124 case.
1125 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
1126 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
1127 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
1128 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
1129
1130 PR testsuite/90861
1131 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
1132
1133 PR middle-end/90862
1134 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
1135
1136 2019-06-16 Tom de Vries <tdevries@suse.de>
1137
1138 PR tree-optimization/89376
1139 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
1140
1141 2019-06-15 Tom de Vries <tdevries@suse.de>
1142
1143 PR tree-optimization/89713
1144 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
1145 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
1146
1147 2019-06-15 Jakub Jelinek <jakub@redhat.com>
1148
1149 PR middle-end/90779
1150 * testsuite/libgomp.c/pr90779.c: New test.
1151 * testsuite/libgomp.fortran/pr90779.f90: New test.
1152
1153 2019-06-15 Tom de Vries <tdevries@suse.de>
1154
1155 PR tree-optimization/90009
1156 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
1157
1158 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
1159
1160 PR tree-optimization/89713
1161 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
1162
1163 2019-06-11 Jakub Jelinek <jakub@redhat.com>
1164
1165 PR target/90811
1166 * testsuite/libgomp.c/pr90811.c: New test.
1167
1168 2019-06-05 Jakub Jelinek <jakub@redhat.com>
1169
1170 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
1171 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
1172
1173 2019-06-04 Jakub Jelinek <jakub@redhat.com>
1174
1175 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
1176 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
1177 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
1178 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
1179
1180 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1181
1182 * configure.ac: Call AX_COUNT_CPUS.
1183 Substitute CPU_COUNT.
1184 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
1185 count fallback.
1186 * aclocal.m4: Regenerate.
1187 * configure: Regenerate.
1188 * Makefile.in, testsuite/Makefile.in: Regenerate.
1189
1190 2019-05-29 Jakub Jelinek <jakub@redhat.com>
1191
1192 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
1193 to ...
1194 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
1195 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
1196 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
1197
1198 2019-05-27 Jakub Jelinek <jakub@redhat.com>
1199
1200 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
1201
1202 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
1203
1204 PR libgomp/90641
1205 * work.c (gomp_init_work_share): Instead of aligning final ordered
1206 value to multiples of long long alignment, align to that the
1207 first part (ordered team ids) and if inline_ordered_team_ids
1208 is not on a long long alignment boundary within the structure,
1209 use __alignof__ (long long) - 1 pad size always.
1210 * loop.c (GOMP_loop_start): Fix *mem computation if
1211 inline_ordered_team_ids is not aligned on long long alignment boundary
1212 within the structure.
1213 * loop-ull.c (GOMP_loop_ull_start): Likewise.
1214 * sections.c (GOMP_sections2_start): Likewise.
1215
1216 2019-05-24 Jakub Jelinek <jakub@redhat.com>
1217
1218 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
1219 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
1220
1221 PR libgomp/90585
1222 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
1223 HAVE_INTTYPES_H is defined.
1224 (print_uint64_t): New typedef.
1225 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
1226 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
1227 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
1228 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
1229 before casting to void *.
1230 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
1231 * oacc-mem.c: Don't include config.h nor stdint.h.
1232 * target.c: Don't include config.h.
1233 * oacc-cuda.c: Likewise.
1234 * oacc-host.c: Don't include stdint.h.
1235
1236 2019-05-20 Jakub Jelinek <jakub@redhat.com>
1237
1238 PR libgomp/90527
1239 * alloc.c (_GNU_SOURCE): Define.
1240
1241 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
1242
1243 * acc_prof.h: New file.
1244 * oacc-profiling.c: Likewise.
1245 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
1246 Add these, respectively.
1247 * Makefile.in: Regenerate.
1248 * env.c (initialize_env): Call goacc_profiling_initialize.
1249 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
1250 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
1251 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
1252 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
1253 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
1254 acc_prof_register, acc_prof_unregister, and acc_register_library.
1255 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
1256 GOMP_PLUGIN_goacc_thread.
1257 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
1258 prof_callbacks_enabled members.
1259 (goacc_prof_enabled, goacc_profiling_initialize)
1260 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
1261 (goacc_profiling_dispatch): Declare.
1262 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
1263 (GOACC_PROFILING_SETUP_P): Define.
1264 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
1265 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
1266 OpenACC Profiling Interface.
1267 * oacc-cuda.c (acc_get_current_cuda_device)
1268 (acc_get_current_cuda_context, acc_get_cuda_stream)
1269 (acc_set_cuda_stream): Likewise.
1270 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
1271 (acc_init, acc_set_device_type, acc_get_device_type)
1272 (acc_get_device_num, goacc_lazy_initialize): Likewise.
1273 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
1274 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
1275 (acc_unmap_data, present_create_copy, delete_copyout)
1276 (update_dev_host): Likewise.
1277 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
1278 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
1279 Likewise.
1280 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
1281 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
1282 Likewise.
1283 * libgomp.texi: Update.
1284 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
1285 file.
1286 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
1287 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1288 Likewise.
1289 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1290 Likewise.
1291 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
1292 Likewise.
1293 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
1294 Likewise.
1295
1296 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
1297
1298 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
1299 (struct goacc_asyncqueue_list): Likewise.
1300 (goacc_aq): Likewise.
1301 (goacc_aq_list): Likewise.
1302 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
1303 (GOMP_OFFLOAD_openacc_async_test): Remove.
1304 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
1305 (GOMP_OFFLOAD_openacc_async_wait): Remove.
1306 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
1307 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
1308 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
1309 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
1310 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
1311 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
1312 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
1313 (GOMP_OFFLOAD_openacc_async_exec): Declare.
1314 (GOMP_OFFLOAD_openacc_async_construct): Declare.
1315 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
1316 (GOMP_OFFLOAD_openacc_async_test): Declare.
1317 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
1318 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
1319 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
1320 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
1321 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
1322
1323 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
1324 (gomp_acc_insert_pointer): Adjust declaration.
1325 (gomp_copy_host2dev): New declaration.
1326 (gomp_copy_dev2host): Likewise.
1327 (gomp_map_vars_async): Likewise.
1328 (gomp_unmap_tgt): Likewise.
1329 (gomp_unmap_vars_async): Likewise.
1330 (gomp_fini_device): Likewise.
1331
1332 * oacc-async.c (get_goacc_thread): New function.
1333 (get_goacc_thread_device): New function.
1334 (lookup_goacc_asyncqueue): New function.
1335 (get_goacc_asyncqueue): New function.
1336 (acc_async_test): Adjust code to use new async design.
1337 (acc_async_test_all): Likewise.
1338 (acc_wait): Likewise.
1339 (acc_wait_async): Likewise.
1340 (acc_wait_all): Likewise.
1341 (acc_wait_all_async): Likewise.
1342 (goacc_async_free): New function.
1343 (goacc_init_asyncqueues): Likewise.
1344 (goacc_fini_asyncqueues): Likewise.
1345 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
1346 design.
1347 (acc_set_cuda_stream): Likewise.
1348 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
1349 (host_openacc_register_async_cleanup): Remove.
1350 (host_openacc_async_exec): New function.
1351 (host_openacc_async_test): Adjust parameters.
1352 (host_openacc_async_test_all): Remove.
1353 (host_openacc_async_wait): Remove.
1354 (host_openacc_async_wait_async): Remove.
1355 (host_openacc_async_wait_all): Remove.
1356 (host_openacc_async_wait_all_async): Remove.
1357 (host_openacc_async_set_async): Remove.
1358 (host_openacc_async_synchronize): New function.
1359 (host_openacc_async_serialize): New function.
1360 (host_openacc_async_host2dev): New function.
1361 (host_openacc_async_dev2host): New function.
1362 (host_openacc_async_queue_callback): New function.
1363 (host_openacc_async_construct): New function.
1364 (host_openacc_async_destruct): New function.
1365 (struct gomp_device_descr host_dispatch): Remove initialization of old
1366 interface, add initialization of new async sub-struct.
1367 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
1368 (goacc_attach_host_thread_to_device): Remove old async code usage.
1369 * oacc-int.h (goacc_init_asyncqueues): New declaration.
1370 (goacc_fini_asyncqueues): Likewise.
1371 (goacc_async_copyout_unmap_vars): Likewise.
1372 (goacc_async_free): Likewise.
1373 (get_goacc_asyncqueue): Likewise.
1374 (lookup_goacc_asyncqueue): Likewise.
1375 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
1376 design.
1377 (present_create_copy): Adjust code to use new async design.
1378 (delete_copyout): Likewise.
1379 (update_dev_host): Likewise.
1380 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
1381 async design.
1382 (gomp_acc_remove_pointer): Adjust code to use new async design.
1383 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
1384 design.
1385 (GOACC_enter_exit_data): Likewise.
1386 (goacc_wait): Likewise.
1387 (GOACC_update): Likewise.
1388 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
1389 when called, warn as obsolete in comment.
1390 * target.c (goacc_device_copy_async): New function.
1391 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
1392 add goacc_device_copy_async case.
1393 (gomp_copy_dev2host): Likewise.
1394 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
1395 (gomp_map_pointer): Likewise.
1396 (gomp_map_fields_existing): Likewise.
1397 (gomp_map_vars_internal): New always_inline function, renamed from
1398 gomp_map_vars.
1399 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
1400 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
1401 passing goacc_asyncqueue argument.
1402 (gomp_unmap_tgt): Remove static, add attribute_hidden.
1403 (gomp_unref_tgt): New function.
1404 (gomp_unmap_vars_internal): New always_inline function, renamed from
1405 gomp_unmap_vars.
1406 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
1407 (gomp_unmap_vars_async): Implement by calling
1408 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
1409 (gomp_fini_device): New function.
1410 (gomp_exit_data): Adjust gomp_copy_dev2host call.
1411 (gomp_load_plugin_for_device): Remove old interface, adjust to load
1412 new async interface.
1413 (gomp_target_fini): Adjust code to call gomp_fini_device.
1414
1415 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
1416 (struct ptx_stream): Remove.
1417 (struct nvptx_thread): Remove current_stream field.
1418 (cuda_map_create): Remove.
1419 (cuda_map_destroy): Remove.
1420 (map_init): Remove.
1421 (map_fini): Remove.
1422 (map_pop): Remove.
1423 (map_push): Remove.
1424 (struct goacc_asyncqueue): Define.
1425 (struct nvptx_callback): Define.
1426 (struct ptx_free_block): Define.
1427 (struct ptx_device): Remove null_stream, active_streams, async_streams,
1428 stream_lock, and next fields.
1429 (enum ptx_event_type): Remove.
1430 (struct ptx_event): Remove.
1431 (ptx_event_lock): Remove.
1432 (ptx_events): Remove.
1433 (init_streams_for_device): Remove.
1434 (fini_streams_for_device): Remove.
1435 (select_stream_for_async): Remove.
1436 (nvptx_init): Remove ptx_events and ptx_event_lock references.
1437 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
1438 case.
1439 (nvptx_open_device): Add free_blocks initialization, remove
1440 init_streams_for_device call.
1441 (nvptx_close_device): Remove fini_streams_for_device call, add
1442 free_blocks destruct code.
1443 (event_gc): Remove.
1444 (event_add): Remove.
1445 (nvptx_exec): Adjust parameters and code.
1446 (nvptx_free): Likewise.
1447 (nvptx_host2dev): Remove.
1448 (nvptx_dev2host): Remove.
1449 (nvptx_set_async): Remove.
1450 (nvptx_async_test): Remove.
1451 (nvptx_async_test_all): Remove.
1452 (nvptx_wait): Remove.
1453 (nvptx_wait_async): Remove.
1454 (nvptx_wait_all): Remove.
1455 (nvptx_wait_all_async): Remove.
1456 (nvptx_get_cuda_stream): Remove.
1457 (nvptx_set_cuda_stream): Remove.
1458 (GOMP_OFFLOAD_alloc): Adjust code.
1459 (GOMP_OFFLOAD_free): Likewise.
1460 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
1461 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
1462 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
1463 (GOMP_OFFLOAD_openacc_async_wait): Remove.
1464 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
1465 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
1466 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
1467 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
1468 (cuda_free_argmem): New function.
1469 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
1470 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
1471 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
1472 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
1473 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
1474 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
1475 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
1476 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
1477 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
1478 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
1479 (cuda_callback_wrapper): New function.
1480 (cuda_memcpy_sanity_check): New function.
1481 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
1482 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
1483 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
1484 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
1485
1486 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
1487
1488 PR target/87835
1489 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
1490
1491 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
1492
1493 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
1494
1495 2019-03-27 Kevin Buettner <kevinb@redhat.com>
1496
1497 * team.c (gomp_team_start): Initialize pool->threads[0].
1498
1499 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
1500
1501 * testsuite/libgomp.oacc-c++/c++.exp: Specify
1502 "-foffload=$offload_target".
1503 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1504 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1505 * testsuite/lib/libgomp.exp
1506 (check_effective_target_openacc_nvidia_accel_configured): Remove,
1507 as (conceptually) merged into
1508 check_effective_target_openacc_nvidia_accel_selected. Adjust all
1509 users.
1510
1511 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
1512 * testsuite/libgomp-test-support.exp.in: Adjust.
1513 * testsuite/lib/libgomp.exp: Likewise. Don't populate
1514 openacc_device_types_s.
1515 (offload_target_to_openacc_device_type): New proc.
1516 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
1517 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1518 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1519 * Makefile.in: Regenerate.
1520 * configure: Likewise.
1521 * testsuite/Makefile.in: Likewise.
1522
1523 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
1524 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
1525 instead of OFFLOAD_TARGETS.
1526 * target.c (gomp_target_init): Adjust.
1527 * testsuite/libgomp-test-support.exp.in: Likewise.
1528 * testsuite/lib/libgomp.exp: Likewise. Populate
1529 openacc_device_types_s instead of offload_targets_s_openacc.
1530 (check_effective_target_openacc_nvidia_accel_selected)
1531 (check_effective_target_openacc_host_selected): Adjust.
1532 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1533 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1534 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1535 * Makefile.in: Regenerate.
1536 * config.h.in: Likewise.
1537 * configure: Likewise.
1538 * testsuite/Makefile.in: Likewise.
1539
1540 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
1541 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
1542 "offloading: supported, but hardware not accessible".
1543 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1544 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1545
1546 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
1547
1548 PR c/87924
1549 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
1550 goacc_wait().
1551 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
1552 and related adjustment.
1553
1554 2019-01-30 Jakub Jelinek <jakub@redhat.com>
1555
1556 PR c++/88988
1557 * testsuite/libgomp.c++/pr88988.C: New test.
1558
1559 2019-01-28 Jakub Jelinek <jakub@redhat.com>
1560
1561 PR middle-end/89002
1562 * testsuite/libgomp.c/pr89002.c: New test.
1563
1564 2019-01-28 Richard Biener <rguenther@suse.de>
1565
1566 PR testsuite/89064
1567 PR tree-optimization/86865
1568 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
1569
1570 2019-01-24 Tom de Vries <tdevries@suse.de>
1571
1572 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
1573 once instantiated_devices drops to 0.
1574
1575 2019-01-23 Tom de Vries <tdevries@suse.de>
1576
1577 PR target/PR88946
1578 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
1579 cuMemFree.
1580 (nvptx_exec): Don't call map_push if mapnum == 0.
1581 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
1582
1583 2019-01-23 Tom de Vries <tdevries@suse.de>
1584
1585 PR target/88941
1586 PR target/88939
1587 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
1588 (map_fini): Remove "assert (!s->map->active)".
1589 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
1590
1591 2019-01-23 Tom de Vries <tdevries@suse.de>
1592
1593 PR target/87835
1594 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
1595 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
1596
1597 2019-01-15 Tom de Vries <tdevries@suse.de>
1598
1599 PR target/80547
1600 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
1601 New test.
1602
1603 2019-01-12 Tom de Vries <tdevries@suse.de>
1604
1605 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
1606 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
1607 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
1608 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
1609
1610 2019-01-12 Tom de Vries <tdevries@suse.de>
1611
1612 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
1613
1614 2019-01-12 Tom de Vries <tdevries@suse.de>
1615
1616 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
1617 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
1618 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
1619
1620 2019-01-12 Tom de Vries <tdevries@suse.de>
1621
1622 PR target/85486
1623 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
1624 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
1625
1626 2019-01-12 Tom de Vries <tdevries@suse.de>
1627
1628 PR target/85381
1629 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
1630 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
1631
1632 2019-01-12 Tom de Vries <tdevries@suse.de>
1633
1634 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
1635 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
1636 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
1637
1638 2019-01-12 Tom de Vries <tdevries@suse.de>
1639
1640 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
1641 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
1642 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
1643
1644 2019-01-12 Tom de Vries <tdevries@suse.de>
1645
1646 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
1647 resources diagnostic.
1648
1649 2019-01-12 Tom de Vries <tdevries@suse.de>
1650
1651 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
1652 vector length to be 128.
1653 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
1654 length 2097152 to be reduced to 1024 instead of 32.
1655
1656 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
1657 James Norris <jnorris@codesourcery.com>
1658
1659 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
1660 Library Routines", and "Environment Variables".
1661
1662 2019-01-11 Tom de Vries <tdevries@suse.de>
1663
1664 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
1665 num_workers 16.
1666
1667 2019-01-11 Tom de Vries <tdevries@suse.de>
1668
1669 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
1670 -foffload=-w.
1671 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
1672 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
1673 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
1674 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
1675
1676 2019-01-11 Tom de Vries <tdevries@suse.de>
1677
1678 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
1679 test.
1680
1681 2019-01-10 Nathan Sidwell <nathan@acm.org>
1682 Julian Brown <julian@codesourcery.com>
1683
1684 PR lto/71959
1685 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
1686 * testsuite/libgomp.oacc-c++/pr71959.C: New.
1687
1688 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
1689
1690 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
1691 and paste code.
1692
1693 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
1694
1695 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
1696 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
1697 write.
1698
1699 2019-01-09 Tom de Vries <tdevries@suse.de>
1700
1701 PR target/88756
1702 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
1703 #define instead of "const int".
1704 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
1705 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
1706 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
1707 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
1708
1709 2019-01-09 Tom de Vries <tdevries@suse.de>
1710
1711 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
1712 one worker.
1713
1714 2019-01-07 Tom de Vries <tdevries@suse.de>
1715
1716 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
1717 GOMP_OPENACC_DIM argument.
1718
1719 2019-01-03 Tom de Vries <tdevries@suse.de>
1720
1721 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
1722 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
1723
1724 2019-01-01 Jakub Jelinek <jakub@redhat.com>
1725
1726 Update copyright years.
1727
1728 2019-01-01 Jakub Jelinek <jakub@redhat.com>
1729
1730 * libgomp.texi: Bump @copying's copyright year.
1731
1732 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
1733
1734 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
1735 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
1736 (GOACC_declare): Redefine the "device" argument to "flags".
1737
1738 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
1739 Cesar Philippidis <cesar@codesourcery.com>
1740
1741 * target.c (struct gomp_coalesce_chunk): New structure.
1742 (struct gomp_coalesce_buf): Update the chunks member to use that
1743 type. Adjust all users.
1744
1745 2018-12-19 Tom de Vries <tdevries@suse.de>
1746
1747 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
1748 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
1749 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
1750
1751 2018-12-19 Tom de Vries <tdevries@suse.de>
1752
1753 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
1754 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
1755 gcc/testsuite/gcc.dg/goacc.
1756 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
1757
1758 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
1759 Chung-Lin Tang <cltang@codesourcery.com>
1760
1761 * oacc-mem.c (acc_present_or_create): Remove definition and change
1762 to alias of acc_create.
1763 (acc_present_or_copyin): Remove definition and change to alias of
1764 acc_copyin.
1765 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
1766 of acc_present_or_create.
1767 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
1768 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1769 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
1770 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
1771 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
1772 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
1773 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
1774 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1775 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
1776 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1777 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
1778 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
1779 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
1780 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
1781 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
1782 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1783
1784 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
1785
1786 PR libgomp/88495
1787 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
1788 "identical parameters".
1789 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
1790 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
1791
1792 PR libgomp/88484
1793 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
1794 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
1795
1796 PR libgomp/88407
1797 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
1798 (nvptx_wait_async): Unseen async-argument is a no-op.
1799 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
1800 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
1801 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
1802 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
1803 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
1804 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
1805 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
1806 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
1807 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
1808
1809 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
1810 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
1811
1812 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
1813
1814 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
1815 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
1816 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
1817
1818 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
1819
1820 PR libgomp/88370
1821 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
1822 (acc_set_cuda_stream): Clarify.
1823 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
1824 "async_valid_p".
1825 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
1826 acc_async_sync".
1827 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
1828 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
1829 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
1830 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
1831
1832 2018-12-14 Tom de Vries <tdevries@suse.de>
1833
1834 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
1835 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
1836 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
1837 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
1838 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
1839
1840 2018-12-13 Tom de Vries <tdevries@suse.de>
1841
1842 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
1843 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
1844 * fortran.c (omp_display_affinity_): ... here.
1845 * libgomp.h (gomp_print_string): Declare.
1846 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
1847 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
1848 write.
1849
1850 2018-12-13 Jakub Jelinek <jakub@redhat.com>
1851
1852 PR libgomp/88460
1853 * testsuite/libgomp.c++/for-24.C (results): Include it in
1854 omp declare target region.
1855 (main): Use map (always, tofrom: results) instead of
1856 map (tofrom: results).
1857
1858 2018-12-12 Jakub Jelinek <jakub@redhat.com>
1859
1860 PR fortran/88463
1861 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
1862 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
1863
1864 * testsuite/libgomp.c-c++-common/for-16.c: New test.
1865
1866 2018-12-12 Andreas Schwab <schwab@suse.de>
1867
1868 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
1869 clobbered.
1870
1871 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
1872
1873 PR fortran/88411
1874 * testsuite/libgomp.fortran/async_io_8.f90: New test.
1875
1876 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
1877 Jakub Jelinek <jakub@redhat.com>
1878
1879 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
1880 devicep->host2dev_func.
1881
1882 2018-12-08 Jakub Jelinek <jakub@redhat.com>
1883
1884 PR libgomp/87995
1885 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
1886 tls_runtime effective target.
1887 (t): New threadprivate variable.
1888 (main): Set t in threads which execute iterations of the worksharing
1889 loop. Propagate that to the task after the loop and don't abort
1890 if the current taskgroup hasn't been cancelled.
1891
1892 2018-12-02 Jakub Jelinek <jakub@redhat.com>
1893
1894 * testsuite/libgomp.c/task-reduction-3.c: New test.
1895
1896 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
1897
1898 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
1899
1900 PR libgomp/88288
1901 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
1902 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
1903
1904 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
1905
1906 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
1907
1908 2018-10-19 Richard Biener <rguenther@suse.de>
1909
1910 PR tree-optimization/88182
1911 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
1912
1913 2018-11-26 Jakub Jelinek <jakub@redhat.com>
1914
1915 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
1916 (RUNTEST): Don't define.
1917 (RUNTESTDEFAULTFLAGS): Add.
1918 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
1919 (distclean-am): Depend on distclean-DEJAGNU.
1920 (check-am): If -j% option is present in MFLAGS and if
1921 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
1922 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
1923 * testsuite/Makefile.in: Regenerated.
1924
1925 2018-11-26 Richard Biener <rguenther@suse.de>
1926
1927 PR tree-optimization/88182
1928 * testsuite/libgomp.c++/pr88182.C: New testcase.
1929
1930 2018-11-20 Jakub Jelinek <jakub@redhat.com>
1931
1932 PR bootstrap/88106
1933 * config/mingw32/affinity-fmt.c: New file.
1934
1935 2018-11-09 Jakub Jelinek <jakub@redhat.com>
1936
1937 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
1938 (gomp_display_affinity): Use __builtin_choose_expr to handle
1939 properly handle argument having integral, or pointer or some other
1940 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
1941 with uint64_t type instead of %llx and unsigned long long.
1942
1943 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
1944 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
1945
1946 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1947
1948 * affinity.c: Include <string.h>, <stdio.h>.
1949 (gomp_display_affinity_place): Remove cpusetp.
1950 * teams.c: Include <limits.h>.
1951
1952 2018-11-08 Jakub Jelinek <jakub@redhat.com>
1953
1954 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
1955 in_reduction clause for s[0].
1956
1957 * affinity.c (gomp_display_affinity_place): New function.
1958 * affinity-fmt.c: New file.
1959 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
1960 * config/linux/affinity.c (gomp_display_affinity_place): New function.
1961 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
1962 Move these functions to ...
1963 * config/nvptx/teams.c: ... here. New file.
1964 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
1965 New functions.
1966 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
1967 functions.
1968 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
1969 and _aligned_malloc.
1970 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
1971 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
1972 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
1973 gomp_affinity_format_len): New variables.
1974 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
1975 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
1976 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
1977 modifiers. Display (non-default) chunk sizes. Print
1978 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
1979 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
1980 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
1981 * fortran.c: Include stdio.h and string.h.
1982 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
1983 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
1984 (omp_set_affinity_format_, omp_get_affinity_format_,
1985 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
1986 omp_pause_resource_all_): New functions.
1987 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
1988 switch.
1989 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
1990 functions to ...
1991 * teams.c: ... here. New file.
1992 * libgomp_g.h: Include gstdint.h.
1993 (GOMP_loop_nonmonotonic_runtime_start,
1994 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
1995 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
1996 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
1997 GOMP_parallel_loop_nonmonotonic_runtime,
1998 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
1999 GOMP_loop_ull_nonmonotonic_runtime_start,
2000 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
2001 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
2002 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2003 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
2004 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
2005 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2006 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2007 GOMP_teams_reg): Declare.
2008 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
2009 gomp_aligned_alloc uses fallback implementation.
2010 (gomp_aligned_alloc, gomp_aligned_free): Declare.
2011 (enum gomp_schedule_type): Add GFS_MONOTONIC.
2012 (struct gomp_doacross_work_share): Add extra field.
2013 (struct gomp_work_share): Add task_reductions field.
2014 (struct gomp_taskgroup): Add workshare and reductions fields.
2015 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
2016 (gomp_thread_handle): New typedef.
2017 (gomp_display_affinity_place, gomp_set_affinity_format,
2018 gomp_display_string, gomp_display_affinity,
2019 gomp_display_affinity_thread): Declare.
2020 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
2021 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
2022 gomp_workshare_task_reduction_register): Declare.
2023 (gomp_team_start): Add taskgroup argument.
2024 (gomp_pause_host): Declare.
2025 (gomp_init_work_share, gomp_work_share_start): Change bool argument
2026 to size_t.
2027 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
2028 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
2029 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
2030 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2031 GOMP_loop_ull_doacross_start,
2032 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2033 GOMP_loop_maybe_nonmonotonic_runtime_next,
2034 GOMP_loop_maybe_nonmonotonic_runtime_start,
2035 GOMP_loop_nonmonotonic_runtime_next,
2036 GOMP_loop_nonmonotonic_runtime_start,
2037 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2038 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2039 GOMP_loop_ull_nonmonotonic_runtime_next,
2040 GOMP_loop_ull_nonmonotonic_runtime_start,
2041 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2042 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
2043 GOMP_taskgroup_reduction_register,
2044 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2045 GOMP_teams_reg and GOMP_taskwait_depend.
2046 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
2047 omp_{capture,display}_affinity{,_}, and
2048 omp_[gs]et_affinity_format{,_}.
2049 * loop.c: Include string.h.
2050 (GOMP_loop_runtime_next): Add ialias.
2051 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2052 (gomp_loop_static_start, gomp_loop_dynamic_start,
2053 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2054 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2055 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
2056 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
2057 or gomp_doacross_init callers.
2058 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
2059 GOMP_loop_doacross_start): New functions.
2060 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2061 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
2062 Mask off GFS_MONOTONIC bit.
2063 (GOMP_loop_maybe_nonmonotonic_runtime_next,
2064 GOMP_loop_maybe_nonmonotonic_runtime_start,
2065 GOMP_loop_nonmonotonic_runtime_next,
2066 GOMP_loop_nonmonotonic_runtime_start,
2067 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2068 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
2069 functions.
2070 (gomp_parallel_loop_start): Pass NULL as taskgroup to
2071 gomp_team_start.
2072 * loop_ull.c: Include string.h.
2073 (GOMP_loop_ull_runtime_next): Add ialias.
2074 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2075 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
2076 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
2077 gomp_loop_ull_ordered_dynamic_start,
2078 gomp_loop_ull_ordered_guided_start,
2079 gomp_loop_ull_doacross_static_start,
2080 gomp_loop_ull_doacross_dynamic_start,
2081 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
2082 and gomp_doacross_ull_init callers.
2083 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2084 GOMP_loop_ull_doacross_start): New functions.
2085 (GOMP_loop_ull_runtime_start,
2086 GOMP_loop_ull_ordered_runtime_start,
2087 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
2088 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2089 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2090 GOMP_loop_ull_nonmonotonic_runtime_next,
2091 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
2092 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
2093 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
2094 (omp_pause_resource_t, omp_depend_t): New typedefs.
2095 (enum omp_lock_hint_t): Renamed to ...
2096 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
2097 enumerators using numbers and omp_lock_hint_* as their aliases.
2098 (omp_lock_hint_t): New typedef. Rename to ...
2099 (omp_sync_hint_t): ... this.
2100 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
2101 omp_sync_hint_t instead of omp_lock_hint_t.
2102 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2103 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2104 Declare.
2105 (omp_target_is_present, omp_target_disassociate_ptr):
2106 Change first argument from void * to const void *.
2107 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
2108 from void * to const void *.
2109 (omp_target_associate_ptr): Change first and second arguments from
2110 void * to const void *.
2111 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
2112 omp_pause_hard): New parameters.
2113 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2114 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2115 New interfaces.
2116 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
2117 omp_pause_hard): New parameters.
2118 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2119 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2120 New externals.
2121 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
2122 EXTRA argument. If not needed to prepare array, if extra is 0,
2123 clear ws->doacross, otherwise allocate just doacross structure and
2124 extra payload. If array is needed, allocate also extra payload.
2125 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
2126 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
2127 doacross == NULL.
2128 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
2129 gomp_team_start.
2130 (GOMP_parallel): Likewise. Formatting fix.
2131 (GOMP_parallel_reductions): New function.
2132 (GOMP_cancellation_point): If taskgroup has workshare
2133 flag set, check cancelled of prev taskgroup if any.
2134 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
2135 on prev taskgroup if any.
2136 * sections.c: Include string.h.
2137 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2138 (GOMP_sections_start): Adjust gomp_work_share_start caller.
2139 (GOMP_sections2_start): New function.
2140 (GOMP_parallel_sections_start, GOMP_parallel_sections):
2141 Pass NULL as taskgroup to gomp_team_start.
2142 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
2143 gomp_work_share_start callers.
2144 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
2145 If taskgroup has workshare flag set, check cancelled on prev
2146 taskgroup if any. Guard all cancellation tests with
2147 gomp_cancel_var test.
2148 (omp_target_is_present, omp_target_disassociate_ptr):
2149 Change ptr argument from void * to const void *.
2150 (omp_target_memcpy): Change src argument from void * to const void *.
2151 (omp_target_memcpy_rect): Likewise.
2152 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
2153 instead of char * where needed.
2154 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
2155 from void * to const void *.
2156 (omp_pause_resource, omp_pause_resource_all): New functions.
2157 * task.c (gomp_task_handle_depend): Handle new depend array format
2158 in addition to the old. Handle mutexinoutset kinds the same as
2159 inout for now, handle unspecified kinds.
2160 (gomp_create_target_task): If taskgroup has workshare flag set, check
2161 cancelled on prev taskgroup if any. Guard all cancellation tests with
2162 gomp_cancel_var test. Handle new depend array format count in
2163 addition to the old.
2164 (GOMP_task): Likewise. Adjust function comment.
2165 (gomp_task_run_pre): If taskgroup has workshare flag set, check
2166 cancelled on prev taskgroup if any. Guard all cancellation tests with
2167 gomp_cancel_var test.
2168 (GOMP_taskwait_depend): New function.
2169 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
2170 format in addition to the old. Handle mutexinoutset kinds the same as
2171 inout for now, handle unspecified kinds. Fix a function comment typo.
2172 (gomp_taskgroup_init): New function.
2173 (GOMP_taskgroup_start): Use it.
2174 (gomp_reduction_register, gomp_create_artificial_team,
2175 GOMP_taskgroup_reduction_register,
2176 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2177 gomp_parallel_reduction_register,
2178 gomp_workshare_task_reduction_register,
2179 gomp_workshare_taskgroup_start,
2180 GOMP_workshare_task_reduction_unregister): New functions.
2181 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
2182 check cancelled on prev taskgroup if any. Guard all cancellation
2183 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
2184 by calling GOMP_taskgroup_reduction_register.
2185 * team.c (gomp_thread_attr): Remove comment.
2186 (struct gomp_thread_start_data): Add handle field.
2187 (gomp_thread_start): Call pthread_detach.
2188 (gomp_new_team): Adjust gomp_init_work_share caller.
2189 (gomp_free_pool_helper): Call pthread_detach.
2190 (gomp_team_start): Add taskgroup argument, initialize implicit
2191 tasks' taskgroup field to that. Don't call
2192 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
2193 (gomp_team_end): Determine nesting by thr->ts.level != 0
2194 rather than thr->ts.team != NULL.
2195 (gomp_pause_pool_helper, gomp_pause_host): New functions.
2196 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
2197 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
2198 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
2199 if more than 1 allocate also extra payload at the end of array. Never
2200 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
2201 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
2202 return true instead of ws.
2203 * Makefile.in: Regenerated.
2204 * configure: Regenerated.
2205 * config.h.in: Regenerated.
2206 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
2207 in some cases.
2208 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
2209 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
2210 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
2211 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
2212 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
2213 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
2214 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
2215 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
2216 * testsuite/libgomp.c-c++-common/for-10.c: New test.
2217 * testsuite/libgomp.c-c++-common/for-11.c: New test.
2218 * testsuite/libgomp.c-c++-common/for-12.c: New test.
2219 * testsuite/libgomp.c-c++-common/for-13.c: New test.
2220 * testsuite/libgomp.c-c++-common/for-14.c: New test.
2221 * testsuite/libgomp.c-c++-common/for-15.c: New test.
2222 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
2223 define a different N(test), don't define N(f0) to N(f14), but instead
2224 define N(f20) to N(f34) using != comparisons.
2225 * testsuite/libgomp.c-c++-common/for-7.c: New test.
2226 * testsuite/libgomp.c-c++-common/for-8.c: New test.
2227 * testsuite/libgomp.c-c++-common/for-9.c: New test.
2228 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
2229 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
2230 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
2231 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
2232 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
2233 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
2234 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
2235 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
2236 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
2237 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
2238 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
2239 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
2240 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
2241 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
2242 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
2243 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
2244 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
2245 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
2246 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
2247 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
2248 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
2249 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
2250 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
2251 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
2252 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
2253 * testsuite/libgomp.c++/depend-1.C: New test.
2254 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
2255 * testsuite/libgomp.c++/depobj-1.C: New test.
2256 * testsuite/libgomp.c++/for-16.C: New test.
2257 * testsuite/libgomp.c++/for-21.C: New test.
2258 * testsuite/libgomp.c++/for-22.C: New test.
2259 * testsuite/libgomp.c++/for-23.C: New test.
2260 * testsuite/libgomp.c++/for-24.C: New test.
2261 * testsuite/libgomp.c++/for-25.C: New test.
2262 * testsuite/libgomp.c++/for-26.C: New test.
2263 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
2264 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
2265 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
2266 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
2267 * testsuite/libgomp.c++/task-reduction-10.C: New test.
2268 * testsuite/libgomp.c++/task-reduction-11.C: New test.
2269 * testsuite/libgomp.c++/task-reduction-12.C: New test.
2270 * testsuite/libgomp.c++/task-reduction-13.C: New test.
2271 * testsuite/libgomp.c++/task-reduction-14.C: New test.
2272 * testsuite/libgomp.c++/task-reduction-15.C: New test.
2273 * testsuite/libgomp.c++/task-reduction-16.C: New test.
2274 * testsuite/libgomp.c++/task-reduction-17.C: New test.
2275 * testsuite/libgomp.c++/task-reduction-18.C: New test.
2276 * testsuite/libgomp.c++/task-reduction-19.C: New test.
2277 * testsuite/libgomp.c/task-reduction-1.c: New test.
2278 * testsuite/libgomp.c++/task-reduction-1.C: New test.
2279 * testsuite/libgomp.c/task-reduction-2.c: New test.
2280 * testsuite/libgomp.c++/task-reduction-2.C: New test.
2281 * testsuite/libgomp.c++/task-reduction-3.C: New test.
2282 * testsuite/libgomp.c++/task-reduction-4.C: New test.
2283 * testsuite/libgomp.c++/task-reduction-5.C: New test.
2284 * testsuite/libgomp.c++/task-reduction-6.C: New test.
2285 * testsuite/libgomp.c++/task-reduction-7.C: New test.
2286 * testsuite/libgomp.c++/task-reduction-8.C: New test.
2287 * testsuite/libgomp.c++/task-reduction-9.C: New test.
2288 * testsuite/libgomp.c/teams-1.c: New test.
2289 * testsuite/libgomp.c/teams-2.c: New test.
2290 * testsuite/libgomp.c/thread-limit-4.c: New test.
2291 * testsuite/libgomp.c/thread-limit-5.c: New test.
2292 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
2293
2294 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
2295
2296 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
2297 acc_memcpy_to/from_device functions, now with async parameter.
2298 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
2299 (acc_memcpy_from_device): Likewise.
2300 (acc_memcpy_to_device_async): New API function.
2301 (acc_memcpy_from_device_async): Likewise.
2302 (present_create_copy): Add async parameter and async setting/unsetting.
2303 (acc_create): Adjust present_create_copy call.
2304 (acc_copyin): Likewise.
2305 (acc_present_or_create): Likewise.
2306 (acc_present_or_copyin): Likewise.
2307 (acc_create_async): New API function.
2308 (acc_copyin_async): New API function.
2309 (delete_copyout): Add async parameter and async setting/unsetting.
2310 (acc_delete): Adjust delete_copyout call.
2311 (acc_copyout): Likewise.
2312 (acc_delete_async): New API function.
2313 (acc_copyout_async): Likewise.
2314 (update_dev_host): Add async parameter and async setting/unsetting.
2315 (acc_update_device): Adjust update_dev_host call.
2316 (acc_update_self): Likewise.
2317 (acc_update_device_async): New API function.
2318 (acc_update_self_async): Likewise.
2319 * openacc.h (acc_copyin_async): Declare new API function.
2320 (acc_create_async): Likewise.
2321 (acc_copyout_async): Likewise.
2322 (acc_delete_async): Likewise.
2323 (acc_update_device_async): Likewise.
2324 (acc_update_self_async): Likewise.
2325 (acc_memcpy_to_device_async): Likewise.
2326 (acc_memcpy_from_device_async): Likewise.
2327 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
2328 (acc_copyin_async_64_h): New subroutine.
2329 (acc_copyin_async_array_h): New subroutine.
2330 (acc_create_async_32_h): New subroutine.
2331 (acc_create_async_64_h): New subroutine.
2332 (acc_create_async_array_h): New subroutine.
2333 (acc_copyout_async_32_h): New subroutine.
2334 (acc_copyout_async_64_h): New subroutine.
2335 (acc_copyout_async_array_h): New subroutine.
2336 (acc_delete_async_32_h): New subroutine.
2337 (acc_delete_async_64_h): New subroutine.
2338 (acc_delete_async_array_h): New subroutine.
2339 (acc_update_device_async_32_h): New subroutine.
2340 (acc_update_device_async_64_h): New subroutine.
2341 (acc_update_device_async_array_h): New subroutine.
2342 (acc_update_self_async_32_h): New subroutine.
2343 (acc_update_self_async_64_h): New subroutine.
2344 (acc_update_self_async_array_h): New subroutine.
2345 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
2346 (acc_copyin_async_64_h): New subroutine.
2347 (acc_copyin_async_array_h): New subroutine.
2348 (acc_create_async_32_h): New subroutine.
2349 (acc_create_async_64_h): New subroutine.
2350 (acc_create_async_array_h): New subroutine.
2351 (acc_copyout_async_32_h): New subroutine.
2352 (acc_copyout_async_64_h): New subroutine.
2353 (acc_copyout_async_array_h): New subroutine.
2354 (acc_delete_async_32_h): New subroutine.
2355 (acc_delete_async_64_h): New subroutine.
2356 (acc_delete_async_array_h): New subroutine.
2357 (acc_update_device_async_32_h): New subroutine.
2358 (acc_update_device_async_64_h): New subroutine.
2359 (acc_update_device_async_array_h): New subroutine.
2360 (acc_update_self_async_32_h): New subroutine.
2361 (acc_update_self_async_64_h): New subroutine.
2362 (acc_update_self_async_array_h): New subroutine.
2363 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
2364 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
2365 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
2366 acc_memcpy_to_device_async*, acc_update_device_async*, and
2367 acc_update_self_async* entries.
2368 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
2369 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
2370 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
2371
2372 2018-10-31 Joseph Myers <joseph@codesourcery.com>
2373
2374 PR bootstrap/82856
2375 * Makefile.am: Include multilib.am
2376 (AUTOMAKE_OPTIONS): Add info-in-builddir.
2377 (CLEANFILES): Remove libgomp.info.
2378 * configure.ac: Remove AC_PREREQ.
2379 * testsuite/Makefile.am (RUNTEST): Remove quotes.
2380 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
2381 Regenerate.
2382
2383 2018-10-29 Joseph Myers <joseph@codesourcery.com>
2384 Julian Brown <julian@codesourcery.com>
2385
2386 * testsuite/libgomp.oacc-c++/this.C: New.
2387
2388 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
2389
2390 * plugin/plugin-nvptx.c (struct cuda_map): New.
2391 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
2392 h_tail with (cuda_map *) map.
2393 (cuda_map_create): New function.
2394 (cuda_map_destroy): New function.
2395 (map_init): Update to use a linked list of cuda_map objects.
2396 (map_fini): Likewise.
2397 (map_pop): Likewise.
2398 (map_push): Likewise. Return CUdeviceptr instead of void.
2399 (init_streams_for_device): Remove stales references to ptx_stream
2400 members.
2401 (select_stream_for_async): Likewise.
2402 (nvptx_exec): Update call to map_init.
2403
2404 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
2405 Julian Brown <julian@codesourcery.com>
2406
2407 PR middle-end/86336
2408 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
2409
2410 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
2411 Thomas Koenig <tkoenig@gcc.gnu.org>
2412
2413 PR fortran/25829
2414 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2415 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2416 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2417 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2418 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2419 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2420 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2421
2422 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
2423 Tom de Vries <tdevries@suse.de>
2424
2425 PR target/85590
2426 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
2427 (cuOccupancyMaxPotentialBlockSize): Declare.
2428 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
2429 CUDA_ONE_CALL_MAYBE_NULL.
2430 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
2431 CUoccupancyB2DSize and declare
2432 cuOccupancyMaxPotentialBlockSize.
2433 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
2434 default num_gangs and num_workers when the driver supports it.
2435
2436 2018-08-08 Tom de Vries <tdevries@suse.de>
2437
2438 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
2439 CUDA_ONE_CALL_MAYBE_NULL.
2440 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
2441 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
2442 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
2443 are not found.
2444
2445 2018-08-08 Tom de Vries <tdevries@suse.de>
2446
2447 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
2448 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
2449 present.
2450
2451 2018-08-08 Tom de Vries <tdevries@suse.de>
2452
2453 * plugin/plugin-nvptx.c
2454 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
2455 (nvptx_open_device): Use
2456 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
2457
2458 2018-08-08 Tom de Vries <tdevries@suse.de>
2459
2460 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
2461 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
2462
2463 2018-08-07 Tom de Vries <tdevries@suse.de>
2464
2465 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
2466 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
2467 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
2468 corresponding call in CUDA_ONE_CALL. Add def/undef of
2469 CUDA_ONE_CALL_MAYBE_NULL.
2470 (CUDA_CALL_EXISTS): Define.
2471
2472 2018-08-07 Tom de Vries <tdevries@suse.de>
2473
2474 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
2475 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
2476 corresponding undefs right after.
2477
2478 2018-08-04 Tom de Vries <tdevries@suse.de>
2479
2480 * plugin/configfrag.ac: For --without-cuda-driver, set
2481 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
2482 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
2483 * configure: Regenerate.
2484
2485 2018-08-02 Tom de Vries <tdevries@suse.de>
2486
2487 PR target/86660
2488 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
2489 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
2490 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
2491 Same.
2492 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
2493 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
2494 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
2495
2496 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
2497 Thomas Schwinge <thomas@codesourcery.com>
2498
2499 * config/nvptx/oacc-parallel.c: Truncate.
2500
2501 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
2502 James Norris <jnorris@codesourcery.com>
2503
2504 * plugin/plugin-nvptx.c (struct map): Removed.
2505 (map_init, map_pop): Remove use of struct map.
2506 (map_push): Likewise and change argument list.
2507 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
2508
2509 2018-08-01 Tom de Vries <tdevries@suse.de>
2510
2511 * plugin/cuda-lib.def: New file. Factor out of ...
2512 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
2513 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
2514 using CUDA_CALLS.
2515
2516 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
2517
2518 Revert 'AsyncI/O patch committed'.
2519 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
2520 Thomas Koenig <tkoenig@gcc.gnu.org>
2521
2522 PR fortran/25829
2523 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2524 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2525 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2526 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2527 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2528 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2529 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2530
2531 2018-07-30 Tom de Vries <tdevries@suse.de>
2532
2533 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
2534 (nvptx_exec): Ensure worker and vector default dims don't exceed
2535 targ_fn->max_threads_per_block.
2536
2537 2018-07-30 Tom de Vries <tdevries@suse.de>
2538
2539 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
2540 (nvptx_open_device): Init default_dims for device.
2541 (nvptx_exec): Use default_dims from device.
2542
2543 2018-07-26 Jakub Jelinek <jakub@redhat.com>
2544
2545 PR testsuite/86660
2546 * testsuite/libgomp.c++/for-15.C (results): Include it in
2547 omp declare target region.
2548 (main): Use map (always, tofrom: results) instead of
2549 map (tofrom: results).
2550
2551 PR middle-end/86660
2552 * testsuite/libgomp.c/pr86660.c: New test.
2553
2554 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
2555 Tom de Vries <tdevries@suse.de>
2556
2557 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
2558 sufficient resources to launch a kernel, and give a hint on how to fix
2559 it.
2560
2561 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
2562 Tom de Vries <tdevries@suse.de>
2563
2564 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
2565 max_threads_per_block and max_threads_per_multiprocessor fields.
2566 (nvptx_open_device): Initialize new fields.
2567 (nvptx_exec): Use num_sms, and new fields.
2568
2569 2018-07-26 Tom de Vries <tdevries@suse.de>
2570
2571 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
2572 to correct locations. Remove xfail.
2573
2574 2018-07-26 Tom de Vries <tdevries@suse.de>
2575
2576 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
2577 acc_wait. Move acc_async_test calls to correct locations. Remove
2578 xfail.
2579
2580 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
2581 Thomas Koenig <tkoenig@gcc.gnu.org>
2582
2583 PR fortran/25829
2584 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2585 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2586 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2587 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2588 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2589 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2590 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2591
2592 2018-07-17 Jakub Jelinek <jakub@redhat.com>
2593
2594 PR middle-end/86542
2595 * testsuite/libgomp.c++/pr86542.C: New test.
2596
2597 PR middle-end/86539
2598 * testsuite/libgomp.c++/pr86539.C: New test.
2599
2600 2018-07-11 Jakub Jelinek <jakub@redhat.com>
2601
2602 PR c++/86443
2603 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
2604 (results): Make sure the variable is not inside declare target region.
2605 (qux): Remove unused function.
2606
2607 2018-07-10 Jakub Jelinek <jakub@redhat.com>
2608
2609 PR c++/86443
2610 * testsuite/libgomp.c++/for-15.C: New test.
2611
2612 2018-06-26 Jakub Jelinek <jakub@redhat.com>
2613
2614 PR c++/86291
2615 * testsuite/libgomp.c++/pr86291.C: New test.
2616
2617 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
2618
2619 * libgomp.texi (Top): Move www.openmp.org to https.
2620 (Enabling OpenMP): Ditto.
2621 (omp_get_active_level): Ditto.
2622 (omp_get_ancestor_thread_num): Ditto.
2623 (omp_get_cancellation): Ditto.
2624 (omp_get_default_device): Ditto.
2625 (omp_get_dynamic): Ditto.
2626 (omp_get_level): Ditto.
2627 (omp_get_max_active_levels): Ditto.
2628 (omp_get_max_task_priority): Ditto.
2629 (omp_get_max_threads): Ditto.
2630 (omp_get_nested): Ditto.
2631 (omp_get_num_devices): Ditto.
2632 (omp_get_num_procs): Ditto.
2633 (omp_get_num_teams): Ditto.
2634 (omp_get_num_threads): Ditto.
2635 (omp_get_proc_bind): Ditto.
2636 (omp_get_schedule): Ditto.
2637 (omp_get_team_num): Ditto.
2638 (omp_get_team_size): Ditto.
2639 (omp_get_thread_limit): Ditto.
2640 (omp_get_thread_num): Ditto.
2641 (omp_in_parallel): Ditto.
2642 (omp_in_final): Ditto.
2643 (omp_is_initial_device): Ditto.
2644 (omp_set_default_device): Ditto.
2645 (omp_set_dynamic): Ditto.
2646 (omp_set_max_active_levels): Ditto.
2647 (omp_set_nested): Ditto.
2648 (omp_set_num_threads): Ditto.
2649 (omp_set_schedule): Ditto.
2650 (omp_init_lock): Ditto.
2651 (omp_set_lock): Ditto.
2652 (omp_test_lock): Ditto.
2653 (omp_unset_lock): Ditto.
2654 (omp_destroy_lock): Ditto.
2655 (omp_init_nest_lock): Ditto.
2656 (omp_set_nest_lock): Ditto.
2657 (omp_test_nest_lock): Ditto.
2658 (omp_unset_nest_lock): Ditto.
2659 (omp_destroy_nest_lock): Ditto.
2660 (omp_get_wtick): Ditto.
2661 (omp_get_wtime): Ditto.
2662 (OMP_CANCELLATION): Ditto.
2663 (OMP_DISPLAY_ENV): Ditto.
2664 (OMP_DEFAULT_DEVICE): Ditto.
2665 (OMP_DYNAMIC): Ditto.
2666 (OMP_MAX_ACTIVE_LEVELS): Ditto.
2667 (OMP_MAX_TASK_PRIORITY): Ditto.
2668 (OMP_NESTED): Ditto.
2669 (OMP_NUM_THREADS): Ditto.
2670 (OMP_PROC_BIND): Ditto.
2671 (OMP_PLACES): Ditto.
2672 (OMP_STACKSIZE): Ditto.
2673 (OMP_SCHEDULE): Ditto.
2674 (OMP_THREAD_LIMIT): Ditto.
2675 (OMP_WAIT_POLICY): Ditto.
2676
2677 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
2678 James Norris <jnorris@codesourcery.com>
2679 Julian Brown <julian@codesourcery.com>
2680 Thomas Schwinge <thomas@codesourcery.com>
2681 Tom de Vries <tom@codesourcery.com>
2682
2683 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
2684 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
2685 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
2686 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
2687 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
2688 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
2689 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
2690 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
2691 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
2692 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
2693 Likewise.
2694 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
2695 Likewise.
2696 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
2697 Likewise.
2698 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
2699 Likewise.
2700 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
2701 Likewise.
2702 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
2703 Likewise.
2704 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2705 Likewise.
2706 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2707 Likewise.
2708 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2709 Likewise.
2710 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2711 Likewise.
2712 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2713 Likewise.
2714 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
2715 Likewise.
2716 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
2717 Likewise.
2718 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
2719 Likewise.
2720 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
2721 Likewise.
2722 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
2723 Likewise.
2724 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
2725 Likewise.
2726 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2727 Likewise.
2728 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2729 Likewise.
2730 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
2731 Likewise.
2732 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2733 Likewise.
2734 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2735 Likewise.
2736 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2737 Likewise.
2738 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2739 Likewise.
2740 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2741 Likewise.
2742 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2743 Likewise.
2744 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
2745 Likewise.
2746 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
2747 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
2748 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
2749 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
2750 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
2751 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
2752 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
2753 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
2754 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
2755 Likewise.
2756 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
2757 Likewise.
2758 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
2759 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
2760 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
2761 Likewise.
2762 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
2763 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
2764 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
2765 Likewise.
2766 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
2767 Likewise.
2768 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
2769 Likewise.
2770 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
2771 Likewise.
2772 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
2773 Likewise.
2774 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
2775 Likewise.
2776 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
2777 Likewise.
2778 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
2779 Likewise.
2780 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
2781 Likewise.
2782 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
2783 Likewise.
2784 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
2785 Likewise.
2786 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
2787 Likewise.
2788 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
2789 Likewise.
2790 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
2791 Likewise.
2792 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
2793 Likewise.
2794 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
2795 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
2796 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
2797 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
2798 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
2799 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
2800 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
2801
2802 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
2803 Thomas Schwinge <thomas@codesourcery.com>
2804 Cesar Philippidis <cesar@codesourcery.com>
2805
2806 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
2807 (gomp_acc_remove_pointer): Update declaration.
2808 (gomp_acc_declare_allocate): Declare.
2809 (gomp_remove_var): Declare.
2810 * libgomp.map (OACC_2.5): Define.
2811 * oacc-mem.c (acc_map_data): Update refcount.
2812 (acc_unmap_data): Likewise.
2813 (present_create_copy): Likewise.
2814 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
2815 (acc_copyin): Likewise.
2816 (FLAG_FINALIZE): Define.
2817 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
2818 (acc_delete_finalize): New function.
2819 (acc_delete_finalize_async): New function.
2820 (acc_copyout_finalize): New function.
2821 (acc_copyout_finalize_async): New function.
2822 (gomp_acc_insert_pointer): Update refcounts.
2823 (gomp_acc_remove_pointer): Return if data is not present on the
2824 accelerator.
2825 * oacc-parallel.c (find_pset): Rename to find_pointer.
2826 (find_pointer): Add support for GOMP_MAP_POINTER.
2827 (handle_ftn_pointers): New function.
2828 (GOACC_parallel_keyed): Update refcounts of variables.
2829 (GOACC_enter_exit_data): Add support for finalized data mappings.
2830 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
2831 of fortran arrays.
2832 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
2833 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
2834 for GOMP_MAP_FORCE_FROM.
2835 * openacc.f90 (module openacc_internal): Add
2836 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
2837 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
2838 acc_copyout_finalize and acc_delete_finalize.
2839 (acc_copyout_finalize_32_h): New subroutine.
2840 (acc_copyout_finalize_64_h): New subroutine.
2841 (acc_copyout_finalize_array_h): New subroutine.
2842 (acc_delete_finalize_32_h): New subroutine.
2843 (acc_delete_finalize_64_h): New subroutine.
2844 (acc_delete_finalize_array_h): New subroutine.
2845 * openacc.h (acc_copyout_finalize): Declare.
2846 (acc_copyout_finalize_async): Declare.
2847 (acc_delete_finalize): Declare.
2848 (acc_delete_finalize_async): Declare.
2849 * openacc_lib.h (acc_copyout_finalize): New interface.
2850 (acc_delete_finalize): New interface.
2851 * target.c (gomp_map_vars): Update dynamic_refcount.
2852 (gomp_remove_var): New function.
2853 (gomp_unmap_vars): Use it.
2854 (gomp_unload_image_from_device): Likewise.
2855 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
2856 case to utilize OpenACC 2.5 data clause semantics.
2857 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
2858 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
2859 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
2860 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
2861 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
2862 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
2863 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
2864 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
2865 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
2866 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
2867 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
2868 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
2869 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
2870 utilize OpenACC 2.5 data clause semantics.
2871 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2872 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
2873 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
2874 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
2875 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
2876 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
2877 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2878 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
2879 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2880
2881 2018-05-21 Janus Weil <janus@gcc.gnu.org>
2882
2883 PR fortran/85841
2884 PR testsuite/85865
2885 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
2886 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
2887 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
2888 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
2889 * testsuite/libgomp.fortran/task2.f90: Ditto.
2890 * testsuite/libgomp.fortran/vla1.f90: Ditto.
2891 * testsuite/libgomp.fortran/vla2.f90: Ditto.
2892 * testsuite/libgomp.fortran/vla3.f90: Ditto.
2893 * testsuite/libgomp.fortran/vla4.f90: Ditto.
2894 * testsuite/libgomp.fortran/vla5.f90: Ditto.
2895 * testsuite/libgomp.fortran/vla6.f90: Ditto.
2896 * testsuite/libgomp.fortran/vla8.f90: Ditto.
2897 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
2898 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
2899
2900 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
2901
2902 PR c++/85782
2903 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
2904
2905 2018-05-09 Tom de Vries <tom@codesourcery.com>
2906
2907 PR libgomp/82901
2908 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
2909 to GOACC_enter_exit_data.
2910
2911 2018-05-09 Tom de Vries <tom@codesourcery.com>
2912
2913 PR libgomp/83792
2914 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
2915 (async_synchronous_p): New function.
2916 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
2917 async_valid_p.
2918 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
2919 async_valid_stream_id_p.
2920 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
2921 * oacc-parallel.c (GOACC_parallel_keyed): Same.
2922
2923 2018-05-07 Tom de Vries <tom@codesourcery.com>
2924
2925 PR testsuite/85677
2926 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
2927 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
2928
2929 2018-05-03 Tom de Vries <tom@codesourcery.com>
2930
2931 PR testsuite/85106
2932 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
2933 extra_tool_flags if it contains an -foffload=-fdump-* flag.
2934 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
2935 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
2936
2937 2018-05-02 Tom de Vries <tom@codesourcery.com>
2938
2939 PR libgomp/85411
2940 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
2941 GOMP_OPENACC_DIM ...
2942 * env.c (parse_gomp_openacc_dim): ... here. New function.
2943 (initialize_env): Call parse_gomp_openacc_dim.
2944 (goacc_default_dims): Define.
2945 * libgomp.h (goacc_default_dims): Declare.
2946 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
2947 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
2948 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
2949 GOMP_PLUGIN_acc_default_dim.
2950 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
2951 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
2952
2953 2018-05-02 Tom de Vries <tom@codesourcery.com>
2954
2955 PR testsuite/83791
2956 * testsuite/libgomp.c++/udr-9.C: Update.
2957 * testsuite/libgomp.c++/atomic-16.C: Remove.
2958 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
2959 * testsuite/libgomp.c++/loop-13.C: Remove.
2960 * testsuite/libgomp.c++/loop-14.C: Remove.
2961 * testsuite/libgomp.c++/loop-15.C: Remove.
2962 * testsuite/libgomp.c++/monotonic-1.C: Remove.
2963 * testsuite/libgomp.c++/monotonic-2.C: Remove.
2964 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
2965 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
2966 * testsuite/libgomp.c++/ordered-1.C: Remove.
2967 * testsuite/libgomp.c++/pr45784.C: Remove.
2968 * testsuite/libgomp.c++/pr64824.C: Remove.
2969 * testsuite/libgomp.c++/pr64868.C: Remove.
2970 * testsuite/libgomp.c++/pr66199-1.C: Remove.
2971 * testsuite/libgomp.c++/pr66199-2.C: Remove.
2972 * testsuite/libgomp.c++/pr66199-3.C: Remove.
2973 * testsuite/libgomp.c++/pr66199-4.C: Remove.
2974 * testsuite/libgomp.c++/pr66199-5.C: Remove.
2975 * testsuite/libgomp.c++/pr66199-6.C: Remove.
2976 * testsuite/libgomp.c++/pr66199-7.C: Remove.
2977 * testsuite/libgomp.c++/pr66199-8.C: Remove.
2978 * testsuite/libgomp.c++/pr66199-9.C: Remove.
2979 * testsuite/libgomp.c++/pr69389.C: Remove.
2980 * testsuite/libgomp.c++/simd10.C: Remove.
2981 * testsuite/libgomp.c++/simd11.C: Remove.
2982 * testsuite/libgomp.c++/simd12.C: Remove.
2983 * testsuite/libgomp.c++/simd13.C: Remove.
2984 * testsuite/libgomp.c++/target-1.C: Remove.
2985 * testsuite/libgomp.c++/target-3.C: Remove.
2986 * testsuite/libgomp.c++/target-4.C: Remove.
2987 * testsuite/libgomp.c++/target-5.C: Remove.
2988 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
2989 * testsuite/libgomp.c++/taskloop-1.C: Remove.
2990 * testsuite/libgomp.c++/taskloop-2.C: Remove.
2991 * testsuite/libgomp.c++/taskloop-3.C: Remove.
2992 * testsuite/libgomp.c++/taskloop-4.C: Remove.
2993 * testsuite/libgomp.c++/udr-9.C: Remove.
2994 * testsuite/libgomp.c++/for-10.C: Remove.
2995 * testsuite/libgomp.c++/for-11.C: Remove.
2996 * testsuite/libgomp.c++/for-12.C: Remove.
2997 * testsuite/libgomp.c++/for-13.C: Remove.
2998 * testsuite/libgomp.c++/for-14.C: Remove.
2999 * testsuite/libgomp.c++/for-9.C: Remove.
3000 * testsuite/libgomp.c/atomic-18.c: Move ...
3001 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
3002 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
3003 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
3004 * testsuite/libgomp.c/loop-13.c: Move ...
3005 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
3006 * testsuite/libgomp.c/loop-14.c: Move ...
3007 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
3008 * testsuite/libgomp.c/loop-15.c: Remove.
3009 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
3010 * testsuite/libgomp.c/monotonic-1.c: Move ...
3011 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
3012 * testsuite/libgomp.c/monotonic-2.c: Move ...
3013 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
3014 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
3015 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
3016 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
3017 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
3018 * testsuite/libgomp.c/ordered-4.c: Move ...
3019 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
3020 * testsuite/libgomp.c/pr45784.c: Move ...
3021 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
3022 * testsuite/libgomp.c/pr64824.c: Move ...
3023 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
3024 * testsuite/libgomp.c/pr64868.c: Move ...
3025 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
3026 * testsuite/libgomp.c/pr66199-1.c: Move ...
3027 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
3028 * testsuite/libgomp.c/pr66199-2.c: Move ...
3029 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
3030 * testsuite/libgomp.c/pr66199-3.c: Move ...
3031 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
3032 * testsuite/libgomp.c/pr66199-4.c: Move ...
3033 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
3034 * testsuite/libgomp.c/pr66199-5.c: Move ...
3035 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
3036 * testsuite/libgomp.c/pr66199-6.c: Move ...
3037 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
3038 * testsuite/libgomp.c/pr66199-7.c: Move ...
3039 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
3040 * testsuite/libgomp.c/pr66199-8.c: Move ...
3041 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
3042 * testsuite/libgomp.c/pr66199-9.c: Move ...
3043 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
3044 * testsuite/libgomp.c/pr69389.c: Move ...
3045 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
3046 * testsuite/libgomp.c/simd-14.c: Move ...
3047 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
3048 * testsuite/libgomp.c/simd-15.c: Move ...
3049 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
3050 * testsuite/libgomp.c/simd-16.c: Move ...
3051 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
3052 * testsuite/libgomp.c/simd-17.c: Move ...
3053 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
3054 * testsuite/libgomp.c/target-1.c: Move ...
3055 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
3056 * testsuite/libgomp.c/target-10.c: Move ...
3057 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
3058 * testsuite/libgomp.c/target-13.c: Move ...
3059 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
3060 * testsuite/libgomp.c/target-2.c: Move ...
3061 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
3062 * testsuite/libgomp.c/taskgroup-1.c: Move ...
3063 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
3064 * testsuite/libgomp.c/taskloop-1.c: Move ...
3065 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
3066 * testsuite/libgomp.c/taskloop-2.c: Move ...
3067 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
3068 * testsuite/libgomp.c/taskloop-3.c: Move ...
3069 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
3070 * testsuite/libgomp.c/taskloop-4.c: Move ...
3071 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
3072 * testsuite/libgomp.c/udr-1.c: Move ...
3073 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
3074 * testsuite/libgomp.c/for-1.c: Move ...
3075 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
3076 * testsuite/libgomp.c/for-1.h: Move ...
3077 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
3078 * testsuite/libgomp.c/for-2.c: Move ...
3079 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
3080 * testsuite/libgomp.c/for-2.h: Move ...
3081 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
3082 * testsuite/libgomp.c/for-3.c: Move ...
3083 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
3084 * testsuite/libgomp.c/for-4.c: Move ...
3085 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
3086 * testsuite/libgomp.c/for-5.c: Move ...
3087 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
3088 * testsuite/libgomp.c/for-6.c: Move ...
3089 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
3090
3091 2018-05-02 Tom de Vries <tom@codesourcery.com>
3092
3093 PR libgomp/82428
3094 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
3095 __builtin_goacc_parlevel_{id,size}.
3096 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
3097 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
3098 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
3099 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
3100 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
3101 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
3102 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
3103 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
3104 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
3105 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
3106 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
3107 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
3108 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
3109 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
3110 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
3111 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
3112 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
3113 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
3114 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
3115 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
3116 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
3117 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
3118 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
3119
3120 2018-05-02 Tom de Vries <tom@codesourcery.com>
3121
3122 PR testsuite/85106
3123 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
3124
3125 2018-05-02 Tom de Vries <tom@codesourcery.com>
3126
3127 PR testsuite/85106
3128 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
3129
3130 2018-04-29 Julian Brown <julian@codesourcery.com>
3131 Tom de Vries <tom@codesourcery.com>
3132
3133 PR testsuite/85527
3134 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
3135 arbitrary order for iterations of atomic subtract check.
3136
3137 2018-04-28 Tom de Vries <tom@codesourcery.com>
3138
3139 PR testsuite/85527
3140 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
3141 atomic capture results obtained in parallel loop to an array, instead of
3142 to a scalar.
3143
3144 2018-04-26 Tom de Vries <tom@codesourcery.com>
3145
3146 PR libgomp/84020
3147 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
3148 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
3149 (process_GOMP_NVPTX_JIT): New function.
3150 (link_ptx): Use process_GOMP_NVPTX_JIT.
3151
3152 2018-04-26 Richard Biener <rguenther@suse.de>
3153 Tom de Vries <tom@codesourcery.com>
3154
3155 PR lto/85422
3156 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
3157
3158 2018-04-26 Tom de Vries <tom@codesourcery.com>
3159
3160 PR target/85519
3161 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3162 recursion depth from 25 to 23.
3163 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3164
3165 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
3166
3167 * configure: Regenerated.
3168
3169 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
3170 Tom de Vries <tom@codesourcery.com>
3171
3172 PR target/85445
3173 * testsuite/libgomp.oacc-c++/ref-1.C: New.
3174
3175 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
3176
3177 PR libgomp/85463
3178 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
3179 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
3180 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
3181 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
3182 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
3183 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
3184
3185 PR libfortran/85166
3186 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
3187 abort".
3188 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3189
3190 2018-04-19 Jakub Jelinek <jakub@redhat.com>
3191
3192 * configure: Regenerated.
3193
3194 2018-04-18 David Malcolm <dmalcolm@redhat.com>
3195
3196 PR jit/85384
3197 * configure: Regenerate.
3198
3199 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
3200 Tom de Vries <tom@codesourcery.com>
3201
3202 PR middle-end/84955
3203 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3204 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3205
3206 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
3207
3208 PR fortran/83064
3209 PR testsuite/85346
3210 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
3211 test from gfortran.dg to here.
3212
3213 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
3214
3215 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
3216 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
3217
3218 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
3219
3220 PR middle-end/84955
3221 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3222 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3223
3224 2018-04-05 Tom de Vries <tom@codesourcery.com>
3225
3226 PR target/85204
3227 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
3228
3229 2018-03-26 Tom de Vries <tom@codesourcery.com>
3230
3231 PR tree-optimization/85063
3232 * testsuite/libgomp.c/switch-conversion-2.c: New test.
3233 * testsuite/libgomp.c/switch-conversion.c: New test.
3234 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
3235 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
3236
3237 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
3238
3239 PR fortran/84381
3240 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
3241 call abort by STOP n.
3242 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
3243 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
3244 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
3245 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
3246 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
3247 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
3248 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
3249 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
3250 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
3251 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
3252 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
3253 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
3254 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
3255 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
3256 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
3257 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
3258 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
3259 * testsuite/libgomp.fortran/associate1.f90: Likewise.
3260 * testsuite/libgomp.fortran/associate2.f90: Likewise.
3261 * testsuite/libgomp.fortran/associate3.f90: Likewise.
3262 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
3263 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
3264 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
3265 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
3266 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
3267 * testsuite/libgomp.fortran/character1.f90: Likewise.
3268 * testsuite/libgomp.fortran/character2.f90: Likewise.
3269 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
3270 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
3271 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
3272 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
3273 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
3274 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
3275 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
3276 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
3277 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
3278 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
3279 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
3280 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
3281 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
3282 * testsuite/libgomp.fortran/do1.f90: Likewise.
3283 * testsuite/libgomp.fortran/do2.f90: Likewise.
3284 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
3285 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
3286 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
3287 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
3288 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
3289 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
3290 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
3291 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
3292 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
3293 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
3294 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
3295 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
3296 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
3297 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
3298 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
3299 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
3300 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
3301 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
3302 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
3303 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
3304 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
3305 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
3306 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
3307 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
3308 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
3309 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
3310 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
3311 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
3312 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
3313 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
3314 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
3315 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
3316 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
3317 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
3318 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
3319 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
3320 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
3321 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
3322 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
3323 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
3324 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
3325 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
3326 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
3327 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
3328 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
3329 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
3330 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
3331 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
3332 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
3333 * testsuite/libgomp.fortran/lib1.f90: Likewise.
3334 * testsuite/libgomp.fortran/lib2.f: Likewise.
3335 * testsuite/libgomp.fortran/lib3.f: Likewise.
3336 * testsuite/libgomp.fortran/lib4.f90: Likewise.
3337 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
3338 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
3339 * testsuite/libgomp.fortran/nested1.f90: Likewise.
3340 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
3341 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
3342 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
3343 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
3344 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
3345 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
3346 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
3347 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
3348 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
3349 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
3350 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
3351 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
3352 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
3353 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
3354 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
3355 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
3356 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
3357 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
3358 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
3359 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3360 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
3361 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
3362 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
3363 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
3364 * testsuite/libgomp.fortran/pr25162.f: Likewise.
3365 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
3366 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
3367 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
3368 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
3369 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
3370 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
3371 * testsuite/libgomp.fortran/pr28390.f: Likewise.
3372 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
3373 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
3374 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
3375 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
3376 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
3377 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
3378 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
3379 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
3380 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
3381 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
3382 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
3383 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
3384 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
3385 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
3386 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
3387 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
3388 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
3389 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
3390 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
3391 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
3392 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
3393 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
3394 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
3395 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
3396 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
3397 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
3398 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
3399 * testsuite/libgomp.fortran/reference1.f90: Likewise.
3400 * testsuite/libgomp.fortran/reference2.f90: Likewise.
3401 * testsuite/libgomp.fortran/retval1.f90: Likewise.
3402 * testsuite/libgomp.fortran/retval2.f90: Likewise.
3403 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
3404 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
3405 * testsuite/libgomp.fortran/simd1.f90: Likewise.
3406 * testsuite/libgomp.fortran/simd2.f90: Likewise.
3407 * testsuite/libgomp.fortran/simd3.f90: Likewise.
3408 * testsuite/libgomp.fortran/simd4.f90: Likewise.
3409 * testsuite/libgomp.fortran/simd5.f90: Likewise.
3410 * testsuite/libgomp.fortran/simd6.f90: Likewise.
3411 * testsuite/libgomp.fortran/simd7.f90: Likewise.
3412 * testsuite/libgomp.fortran/stack.f90: Likewise.
3413 * testsuite/libgomp.fortran/strassen.f90: Likewise.
3414 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
3415 * testsuite/libgomp.fortran/tabs2.f: Likewise.
3416 * testsuite/libgomp.fortran/target1.f90: Likewise.
3417 * testsuite/libgomp.fortran/target2.f90: Likewise.
3418 * testsuite/libgomp.fortran/target3.f90: Likewise.
3419 * testsuite/libgomp.fortran/target4.f90: Likewise.
3420 * testsuite/libgomp.fortran/target5.f90: Likewise.
3421 * testsuite/libgomp.fortran/target6.f90: Likewise.
3422 * testsuite/libgomp.fortran/target7.f90: Likewise.
3423 * testsuite/libgomp.fortran/target8.f90: Likewise.
3424 * testsuite/libgomp.fortran/task1.f90: Likewise.
3425 * testsuite/libgomp.fortran/task2.f90: Likewise.
3426 * testsuite/libgomp.fortran/task3.f90: Likewise.
3427 * testsuite/libgomp.fortran/task4.f90: Likewise.
3428 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
3429 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
3430 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
3431 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
3432 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
3433 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
3434 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
3435 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
3436 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
3437 * testsuite/libgomp.fortran/udr1.f90: Likewise.
3438 * testsuite/libgomp.fortran/udr10.f90: Likewise.
3439 * testsuite/libgomp.fortran/udr11.f90: Likewise.
3440 * testsuite/libgomp.fortran/udr12.f90: Likewise.
3441 * testsuite/libgomp.fortran/udr13.f90: Likewise.
3442 * testsuite/libgomp.fortran/udr14.f90: Likewise.
3443 * testsuite/libgomp.fortran/udr15.f90: Likewise.
3444 * testsuite/libgomp.fortran/udr2.f90: Likewise.
3445 * testsuite/libgomp.fortran/udr3.f90: Likewise.
3446 * testsuite/libgomp.fortran/udr4.f90: Likewise.
3447 * testsuite/libgomp.fortran/udr5.f90: Likewise.
3448 * testsuite/libgomp.fortran/udr6.f90: Likewise.
3449 * testsuite/libgomp.fortran/udr7.f90: Likewise.
3450 * testsuite/libgomp.fortran/udr8.f90: Likewise.
3451 * testsuite/libgomp.fortran/udr9.f90: Likewise.
3452 * testsuite/libgomp.fortran/vla1.f90: Likewise.
3453 * testsuite/libgomp.fortran/vla2.f90: Likewise.
3454 * testsuite/libgomp.fortran/vla3.f90: Likewise.
3455 * testsuite/libgomp.fortran/vla4.f90: Likewise.
3456 * testsuite/libgomp.fortran/vla5.f90: Likewise.
3457 * testsuite/libgomp.fortran/vla6.f90: Likewise.
3458 * testsuite/libgomp.fortran/vla7.f90: Likewise.
3459 * testsuite/libgomp.fortran/vla8.f90: Likewise.
3460 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
3461 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
3462 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
3463 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3464 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
3465 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
3466 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
3467 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3468 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3469 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3470 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
3471 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
3472 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
3473 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
3474 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
3475 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
3476 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
3477 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
3478 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
3479 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
3480 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
3481 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
3482 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
3483 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
3484 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
3485 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
3486 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
3487 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
3488 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
3489 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
3490 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
3491 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
3492 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
3493 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
3494 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
3495 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
3496 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
3497 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
3498 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
3499 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3500 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
3501 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3502 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
3503 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
3504 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
3505 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
3506 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
3507 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
3508 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
3509 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
3510 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
3511 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
3512 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
3513 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3514 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
3515 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
3516 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
3517 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
3518 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
3519 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
3520 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
3521 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
3522 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
3523 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
3524 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
3525 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
3526 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
3527 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3528 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3529 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
3530 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
3531 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
3532 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
3533 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
3534 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3535 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
3536 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3537 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
3538 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
3539 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
3540 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3541 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3542 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3543 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
3544 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
3545 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3546 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3547 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
3548 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
3549 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
3550 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
3551 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
3552 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
3553 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
3554
3555 2018-03-20 Richard Biener <rguenther@suse.de>
3556
3557 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
3558 parallelizable loop.
3559
3560 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
3561
3562 PR target/84148
3563 * configure: Regenerate.
3564
3565 2018-02-16 Jakub Jelinek <jakub@redhat.com>
3566
3567 PR fortran/84418
3568 * libgomp.fortran/pr84418-1.f90: New test.
3569 * libgomp.fortran/pr84418-2.f90: New test.
3570
3571 2018-02-14 Jakub Jelinek <jakub@redhat.com>
3572
3573 PR fortran/84313
3574 * testsuite/libgomp.fortran/threadprivate4.f90: Add
3575 -std=f2003 -fall-intrinsics into dg-additional-options.
3576
3577 2018-02-08 Martin Jambor <mjambor@suse.cz>
3578
3579 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
3580 clonable.
3581
3582 2018-02-08 Martin Jambor <mjambor@suse.cz>
3583
3584 * testsuite/libgomp.hsa.c/staticvar.c: New test.
3585
3586 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3587
3588 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
3589 [__cplusplus]: Declare extern "C".
3590
3591 2018-02-07 Tom de Vries <tom@codesourcery.com>
3592
3593 PR libgomp/84217
3594 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
3595
3596 2018-01-29 Christoph Spiel <cspiel@freenet.de>
3597 Jakub Jelinek <jakub@redhat.com>
3598
3599 PR libgomp/84096
3600 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
3601 instead of omp_lock_t.
3602
3603 2018-01-25 Tom de Vries <tom@codesourcery.com>
3604
3605 PR target/84028
3606 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
3607
3608 2018-01-24 Tom de Vries <tom@codesourcery.com>
3609
3610 PR target/83589
3611 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
3612
3613 2018-01-24 Tom de Vries <tom@codesourcery.com>
3614
3615 PR target/81352
3616 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
3617
3618 2018-01-19 Tom de Vries <tom@codesourcery.com>
3619 Cesar Philippidis <cesar@codesourcery.com>
3620
3621 PR target/83920
3622 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
3623 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
3624
3625 2018-01-03 Jakub Jelinek <jakub@redhat.com>
3626
3627 Update copyright years.
3628
3629 * libgomp.texi: Bump @copying's copyright year.
3630
3631 2017-12-30 Tom de Vries <tom@codesourcery.com>
3632
3633 PR libgomp/83046
3634 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
3635 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
3636
3637 2017-12-27 Tom de Vries <tom@codesourcery.com>
3638
3639 PR c++/83046
3640 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
3641 (test_nonstatic): Fix return type to workaround PR83046.
3642
3643 2017-12-05 Jakub Jelinek <jakub@redhat.com>
3644
3645 PR testsuite/83281
3646 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
3647 j suffix instead of i.
3648 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
3649 Likewise.
3650
3651 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
3652
3653 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
3654 call to acc_wait (1).
3655
3656 2017-11-24 Jakub Jelinek <jakub@redhat.com>
3657
3658 PR fortran/81304
3659 * testsuite/libgomp.fortran/pr81304.f90: New test.
3660
3661 2017-11-23 Jakub Jelinek <jakub@redhat.com>
3662
3663 PR fortran/81841
3664 * libgomp.fortran/pr81841.f90: New test.
3665
3666 2017-11-22 Jakub Jelinek <jakub@redhat.com>
3667
3668 PR libgomp/83106
3669 * target.c (gomp_target_init): Compute lengths just once and
3670 use them in both malloc size and subsequent copying.
3671
3672 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
3673
3674 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
3675 * acinclude.m4: Add cet.m4.
3676 * configure: Regenerate.
3677 * Makefile.in: Likewise.
3678 * testsuite/Makefile.in: Likewise.
3679
3680 2017-11-15 Tom de Vries <tom@codesourcery.com>
3681
3682 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
3683 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
3684 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
3685 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
3686 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
3687 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
3688
3689 2017-11-14 Tom de Vries <tom@codesourcery.com>
3690
3691 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
3692 non-nvidia devices.
3693
3694 2017-11-07 Jakub Jelinek <jakub@redhat.com>
3695
3696 PR c++/82835
3697 * testsuite/libgomp.c++/pr82835.C: New test.
3698
3699 2017-11-06 Martin Liska <mliska@suse.cz>
3700
3701 * testsuite/libgomp.c++/loop-2.C: Return a value
3702 for functions with non-void return type, or change type to void,
3703 or add -Wno-return-type for test.
3704 * testsuite/libgomp.c++/loop-4.C: Likewise.
3705 * testsuite/libgomp.c++/parallel-1.C: Likewise.
3706 * testsuite/libgomp.c++/shared-1.C: Likewise.
3707 * testsuite/libgomp.c++/single-1.C: Likewise.
3708 * testsuite/libgomp.c++/single-2.C: Likewise.
3709
3710 2017-10-31 Tom de Vries <tom@codesourcery.com>
3711
3712 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
3713 "do {} while (false)".
3714 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
3715 after HSA_DEBUG call.
3716
3717 2017-10-28 Jakub Jelinek <jakub@redhat.com>
3718
3719 * target.c (struct gomp_coalesce_buf): New type.
3720 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
3721 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
3722 (gomp_copy_host2dev): Add CBUF argument, if copying into
3723 the cached ranges, memcpy into buffer instead of copying
3724 into device.
3725 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
3726 Add CBUF argument, pass it through to other calls.
3727 (gomp_map_vars): Aggregate copies from host to device if small enough
3728 and with small enough gaps in between into memcpy into a buffer and
3729 fewer host to device copies from the buffer.
3730 (gomp_update): Adjust gomp_copy_host2dev caller.
3731
3732 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
3733
3734 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
3735 run" directive.
3736 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
3737 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
3738 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
3739 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
3740
3741 2017-10-16 Tom de Vries <tom@codesourcery.com>
3742
3743 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
3744 openacc_nvidia_accel_selected.
3745 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
3746 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
3747 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
3748 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
3749 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
3750 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
3751 openacc_nvidia_accel_selected. Skip for shared memory device.
3752 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
3753 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
3754
3755 2017-10-09 Martin Jambor <mjambor@suse.cz>
3756
3757 PR hsa/82416
3758 * testsuite/libgomp.hsa.c/pr82416.c: New test.
3759
3760 2017-10-07 Tom de Vries <tom@codesourcery.com>
3761
3762 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
3763 Remove acc_device_nvidia references.
3764 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
3765 Same.
3766
3767 2017-10-05 Tom de Vries <tom@codesourcery.com>
3768
3769 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
3770 vector_length(32) clause from acc parallel directive.
3771 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
3772
3773 2017-10-04 Tom de Vries <tom@codesourcery.com>
3774
3775 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
3776 (main): Reduce sum of arr elements. Assert that hres is exactly
3777 representable in 32-bit floating point.
3778 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
3779 (main): Reduce sum of arr elements. Assert that hres and hmres are
3780 exactly representable in 32-bit floating point.
3781 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
3782
3783 2017-09-28 Tom de Vries <tom@codesourcery.com>
3784
3785 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
3786 setting.
3787 * testsuite/libgomp.c++/pr69393.C: Same.
3788 * testsuite/libgomp.c++/taskloop-1.C: Same.
3789 * testsuite/libgomp.c++/taskloop-3.C: Same.
3790 * testsuite/libgomp.c++/taskloop-4.C: Same.
3791 * testsuite/libgomp.c/for-4.c: Same.
3792 * testsuite/libgomp.c/pr66199-3.c: Same.
3793 * testsuite/libgomp.c/pr66199-4.c: Same.
3794 * testsuite/libgomp.c/pr66199-6.c: Same.
3795 * testsuite/libgomp.c/taskloop-1.c: Same.
3796 * testsuite/libgomp.c/taskloop-3.c: Same.
3797 * testsuite/libgomp.c/taskloop-4.c: Same.
3798 * testsuite/libgomp.fortran/aligned1.f03: Same.
3799 * testsuite/libgomp.fortran/condinc1.f: Same.
3800 * testsuite/libgomp.fortran/condinc3.f90: Same.
3801 * testsuite/libgomp.fortran/crayptr1.f90: Same.
3802 * testsuite/libgomp.fortran/crayptr2.f90: Same.
3803 * testsuite/libgomp.fortran/crayptr3.f90: Same.
3804 * testsuite/libgomp.fortran/omp_cond1.f: Same.
3805 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
3806 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
3807 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
3808 * testsuite/libgomp.fortran/recursion1.f90: Same.
3809 * testsuite/libgomp.fortran/target2.f90: Same.
3810 * testsuite/libgomp.fortran/target5.f90: Same.
3811 * testsuite/libgomp.fortran/task3.f90: Same.
3812
3813 2017-09-28 Tom de Vries <tom@codesourcery.com>
3814
3815 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
3816 vector_length(32) clause from acc parallel directive.
3817 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
3818
3819 2017-09-27 Tom de Vries <tom@codesourcery.com>
3820
3821 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
3822 Remove acc_device_nvidia references.
3823
3824 2017-09-16 Tom de Vries <tom@codesourcery.com>
3825
3826 PR c/81875
3827 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
3828
3829 2017-09-14 Tom de Vries <tom@codesourcery.com>
3830
3831 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
3832 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
3833 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
3834 * testsuite/libgomp.c/c.exp: Include test-cases from
3835 libgomp.c-c++-common.
3836 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
3837 files.
3838
3839 2017-09-14 Jakub Jelinek <jakub@redhat.com>
3840
3841 PR c++/81314
3842 * testsuite/libgomp.c++/pr81314.C: New test.
3843
3844 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
3845
3846 * libgomp.texi (Top): www.openacc.org now uses https.
3847 (Enabling OpenACC): Ditto.
3848 (acc_get_num_devices): Ditto.
3849 (acc_set_device_type): Ditto.
3850 (acc_get_device_type): Ditto.
3851 (acc_set_device_num): Ditto.
3852 (acc_get_device_num): Ditto.
3853 (acc_async_test): Ditto.
3854 (acc_async_test_all): Ditto.
3855 (acc_wait): Ditto.
3856 (acc_wait_all): Ditto.
3857 (acc_wait_all_async): Ditto.
3858 (acc_wait_async): Ditto.
3859 (acc_init): Ditto.
3860 (acc_shutdown): Ditto.
3861 (acc_on_device): Ditto.
3862 (acc_malloc): Ditto.
3863 (acc_free): Ditto.
3864 (acc_copyin): Ditto.
3865 (acc_present_or_copyin): Ditto.
3866 (acc_create): Ditto.
3867 (acc_present_or_create): Ditto.
3868 (acc_copyout): Ditto.
3869 (acc_delete): Ditto.
3870 (acc_update_device): Ditto.
3871 (acc_update_self): Ditto.
3872 (acc_map_data): Ditto.
3873 (acc_unmap_data): Ditto.
3874 (acc_deviceptr): Ditto.
3875 (acc_hostptr): Ditto.
3876 (acc_is_present): Ditto.
3877 (acc_memcpy_to_device): Ditto.
3878 (acc_memcpy_from_device): Ditto.
3879 (acc_get_current_cuda_device): Ditto.
3880 (acc_get_current_cuda_context): Ditto.
3881 (acc_get_cuda_stream): Ditto.
3882 (acc_set_cuda_stream): Ditto.
3883 (ACC_DEVICE_TYPE): Ditto.
3884 (ACC_DEVICE_NUM): Ditto.
3885 (OpenACC Library Interoperability): Ditto.
3886
3887 2017-08-09 Jakub Jelinek <jakub@redhat.com>
3888
3889 PR c/81687
3890 * testsuite/libgomp.c/pr81687-1.c: New test.
3891 * testsuite/libgomp.c/pr81687-2.c: New test.
3892
3893 2017-08-07 Jakub Jelinek <jakub@redhat.com>
3894
3895 PR c/69389
3896 * testsuite/libgomp.c/pr69389.c: New test.
3897 * testsuite/libgomp.c++/pr69389.C: New test.
3898
3899 2017-08-07 Tom de Vries <tom@codesourcery.com>
3900
3901 PR middle-end/78266
3902 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
3903 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
3904
3905 2017-07-27 Jakub Jelinek <jakub@redhat.com>
3906
3907 PR c/45784
3908 * testsuite/libgomp.c/pr45784.c: New test.
3909 * testsuite/libgomp.c++/pr45784.C: New test.
3910
3911 2017-07-19 Tom de Vries <tom@codesourcery.com>
3912
3913 * testsuite/libgomp.oacc-c/vec.c: New test.
3914
3915 2017-07-03 Tom de Vries <tom@codesourcery.com>
3916
3917 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
3918
3919 2017-06-27 Tom de Vries <tom@codesourcery.com>
3920
3921 * plugin/plugin-nvptx.c (notify_var): New function.
3922 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
3923
3924 2017-06-27 Tom de Vries <tom@codesourcery.com>
3925
3926 * env.c (parse_unsigned_long_1): Factor out of ...
3927 (parse_unsigned_long): ... here.
3928 (parse_int_1): Factor out of ...
3929 (parse_int): ... here.
3930 (parse_int_secure): New function.
3931 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
3932 * secure_getenv.h: Factor out of ...
3933 * plugin/plugin-hsa.c: ... here.
3934 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
3935
3936 2017-06-21 Jakub Jelinek <jakub@redhat.com>
3937
3938 PR c++/81130
3939 * testsuite/libgomp.c++/pr81130.C: New test.
3940
3941 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3942
3943 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
3944 default args.
3945 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
3946 dg-xfail-run-if default args.
3947
3948 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3949
3950 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
3951 * testsuite/libgomp.c/pr39591-3.c: Likewise.
3952
3953 2017-05-30 Jakub Jelinek <jakub@redhat.com>
3954
3955 PR libgomp/80822
3956 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
3957 (gomp_affinity_init_level): Use it. Always analyze the core and thread
3958 sibling lists, depending on level just pick up what CPUs to put
3959 together into a place vs. whether add multiple ordered places.
3960
3961 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
3962
3963 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
3964 * libgomp.map (OACC_2.0.1): Add these.
3965 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
3966 for "acc_wait", and "acc_wait_all", respectively.
3967 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
3968 for "acc_wait", and "acc_wait_all", respectively.
3969 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
3970 * libgomp.texi (acc_wait, acc_wait_all): Update.
3971 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
3972 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
3973 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3974
3975 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
3976 acc_present_or_copyin and acc_present_or_create procedures,
3977 respectively.
3978 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
3979 generally different variants of OpenACC Runtime Library functions.
3980 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3981
3982 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
3983 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3984
3985 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
3986 of preprocessor definitions.
3987 * libgomp.h (strong_alias): Guard by "#ifdef
3988 HAVE_ATTRIBUTE_ALIAS".
3989 * oacc-mem.c: Provide "acc_pcreate" as alias for
3990 "acc_present_or_create", and "acc_pcopyin" as alias for
3991 "acc_present_or_copyin".
3992 * libgomp.map: New version "OACC_2.0.1".
3993 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
3994 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
3995 its content into...
3996 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
3997 Extend testing.
3998
3999 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
4000 when disabling nvptx offloading.
4001
4002 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
4003
4004 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
4005 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4006 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4007
4008 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
4009 * testsuite/lib/libgomp.exp
4010 (check_effective_target_openacc_nvidia_accel_configured): New
4011 proc.
4012 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
4013 (check_effective_target_c++): New procs.
4014 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
4015 (check_effective_target_c++): Likewise.
4016
4017 2017-05-22 Jakub Jelinek <jakub@redhat.com>
4018
4019 PR middle-end/80809
4020 * testsuite/libgomp.c/pr80809-2.c: New test.
4021 * testsuite/libgomp.c/pr80809-3.c: New test.
4022
4023 PR middle-end/80809
4024 * testsuite/libgomp.c/pr80809-1.c: New test.
4025
4026 PR middle-end/80853
4027 * testsuite/libgomp.c/pr80853.c: New test.
4028
4029 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
4030
4031 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
4032 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
4033 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4034 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4035 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4036
4037 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
4038 Debug output for failure.
4039
4040 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4041
4042 * testsuite/lib/libgomp.exp: Load scanlang.exp.
4043
4044 2017-04-27 Jakub Jelinek <jakub@redhat.com>
4045
4046 PR bootstrap/80531
4047 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
4048 bootstrap compare failures.
4049
4050 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
4051
4052 * testsuite/libgomp.c/target-36.c: New testcase.
4053
4054 2017-04-13 Jakub Jelinek <jakub@redhat.com>
4055
4056 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
4057 instead of char.
4058
4059 2017-04-11 Jakub Jelinek <jakub@redhat.com>
4060
4061 PR libgomp/80394
4062 * testsuite/libgomp.c/pr80394.c: New test.
4063
4064 2017-04-04 Jakub Jelinek <jakub@redhat.com>
4065
4066 PR libgomp/79876
4067 * config/posix/thread-stacksize.h: New file.
4068 * config/darwin/thread-stacksize.h: New file.
4069 * config/nvptx/thread-stacksize.h: New file.
4070 * env.c: Include thread-stacksize.h.
4071 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
4072 instead of 0. Call pthread_attr_setstacksize even if
4073 GOMP_DEFAULT_STACKSIZE is non-zero.
4074
4075 2017-03-30 Jakub Jelinek <jakub@redhat.com>
4076
4077 * env.c (initialize_env): Initialize stacksize to 0.
4078
4079 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
4080
4081 PR c++/80029
4082 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
4083
4084 2017-03-08 Jakub Jelinek <jakub@redhat.com>
4085
4086 PR c/79940
4087 * testsuite/libgomp.c/pr79940.c: New test.
4088
4089 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4090
4091 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
4092 targets.
4093 Add __float128 options.
4094
4095 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
4096
4097 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
4098 hppa*-*-* dg-skip-if directive.
4099
4100 2017-02-09 Jakub Jelinek <jakub@redhat.com>
4101
4102 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
4103 dg-skip-if directive into a comment.
4104
4105 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
4106 Chung-Lin Tang <cltang@codesourcery.com>
4107
4108 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
4109 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
4110 add additional case.
4111 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
4112 "openacc_nvidia_accel_selected".
4113 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
4114 Add num_workers(8) clause.
4115
4116 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
4117
4118 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
4119 hppa*-*-*.
4120 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
4121 include complex.h on hppa*-*-hpux*.
4122 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4123
4124 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
4125
4126 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
4127
4128 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
4129 GOMP_OFFLOAD_openacc_exec. Adjust all users.
4130 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
4131 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
4132 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
4133 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
4134 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
4135 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
4136 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
4137 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
4138
4139 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
4140
4141 * libgomp-plugin.h: #include <stdbool.h>.
4142 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
4143 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
4144 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
4145 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
4146 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
4147 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
4148 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
4149 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
4150 (GOMP_OFFLOAD_openacc_register_async_cleanup)
4151 (GOMP_OFFLOAD_openacc_async_test)
4152 (GOMP_OFFLOAD_openacc_async_test_all)
4153 (GOMP_OFFLOAD_openacc_async_wait)
4154 (GOMP_OFFLOAD_openacc_async_wait_async)
4155 (GOMP_OFFLOAD_openacc_async_wait_all)
4156 (GOMP_OFFLOAD_openacc_async_wait_all_async)
4157 (GOMP_OFFLOAD_openacc_async_set_async)
4158 (GOMP_OFFLOAD_openacc_create_thread_data)
4159 (GOMP_OFFLOAD_openacc_destroy_thread_data)
4160 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
4161 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
4162 (GOMP_OFFLOAD_openacc_get_cuda_stream)
4163 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
4164 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
4165 these.
4166 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
4167 (GOMP_OFFLOAD_unload_image): Fix argument types.
4168
4169 2017-01-26 Jakub Jelinek <jakub@redhat.com>
4170
4171 * testsuite/lib/libgomp.exp
4172 (check_effective_target_hsa_offloading_selected_nocache): Fix up
4173 check_compile invocation. Fix up removal of executable. Drop
4174 bogus "2>&1" argument.
4175
4176 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
4177 directive.
4178
4179 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
4180 Martin Jambor <mjambor@suse.cz>
4181
4182 * plugin/hsa.h: Moved to top level include.
4183 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
4184
4185 2017-01-21 Jakub Jelinek <jakub@redhat.com>
4186
4187 PR other/79046
4188 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
4189 of cat to get version from BASE-VER file.
4190 * testsuite/Makefile.in: Regenerated.
4191
4192 2017-01-19 Jakub Jelinek <jakub@redhat.com>
4193
4194 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
4195 for _WIN64.
4196
4197 2017-01-17 Jakub Jelinek <jakub@redhat.com>
4198
4199 * plugin/hsa.h: Add GCC runtime library exception.
4200 * plugin/hsa_ext_finalize.h: Likewise.
4201
4202 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
4203 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
4204 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
4205 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
4206 plugin/include/cuda as include dir and -ldl instead of -lcuda as
4207 library to link ptx plugin against.
4208 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
4209 (CUDA_CALLS): Define.
4210 (cuda_lib, cuda_lib_inited): New variables.
4211 (init_cuda_lib): New function.
4212 (CUDA_CALL_PREFIX): Define.
4213 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
4214 (CUDA_CALL): Use FN instead of (FN).
4215 (CUDA_CALL_NOCHECK): Define.
4216 (cuda_error, fini_streams_for_device, select_stream_for_async,
4217 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
4218 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
4219 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
4220 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
4221 CUDA_CALL_NOCHECK.
4222 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
4223 CUDA_CALL_NOCHECK.
4224 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
4225 Use CUDA_CALL_NOCHECK.
4226 * plugin/cuda/cuda.h: New file.
4227 * config.h.in: Regenerated.
4228 * configure: Regenerated.
4229
4230 PR other/79046
4231 * configure.ac: Add GCC_BASE_VER.
4232 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
4233 get version from BASE-VER file.
4234 * testsuite/Makefile.in: Regenerated.
4235 * configure: Regenerated.
4236 * Makefile.in: Regenerated.
4237
4238 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4239
4240 PR libgomp/60670
4241 * Makefile.am: Make fincludedir multilib-aware.
4242 * Makefile.in: Regenerate.
4243
4244 2017-01-01 Jakub Jelinek <jakub@redhat.com>
4245
4246 Update copyright years.
4247
4248 * libgomp.texi: Bump @copying's copyright year.
4249
4250 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4251
4252 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
4253 pthread_spinlock_t instead of gomp_mutex_t lock.
4254 (gomp_get_thread_pool): Likewise.
4255 (gomp_release_thread_pool): Likewise.
4256 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
4257 Likewise.
4258
4259 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4260
4261 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
4262 thread pool in case nthreads == 1.
4263
4264 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4265
4266 * config/nvptx/env.c: Delete.
4267 * icv.c: Move definitions of ICV variables back ...
4268 * env.c: ...here. Do not compile environment-related functionality if
4269 LIBGOMP_OFFLOADED_ONLY is set.
4270
4271 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4272
4273 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
4274 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
4275 * configure: Regenerate.
4276 * config.h.in: Likewise.
4277
4278 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4279
4280 * Makefile.in: Regenerate with automake-1.11.6.
4281 * aclocal.m4: Likewise.
4282 * configure: Likewise.
4283 * testsuite/Makefile.in: Likewise.
4284
4285 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
4286
4287 * config/nvptx/critical.c: Delete to use generic implementation.
4288
4289 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
4290
4291 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
4292 ../../affinity.c as fallback.
4293 * config/nvptx/affinity.c: Delete to use fallback implementation.
4294
4295 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
4296 Jakub Jelinek <jakub@redhat.com>
4297 Dmitry Melnik <dm@ispras.ru>
4298
4299 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
4300 * Makefile.in. Regenerate.
4301 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
4302 (LIBGOMP_USE_PTHREADS): ...here; new define.
4303 * configure: Regenerate.
4304 * config.h.in: Likewise.
4305 * config/posix/affinity.c: Move to...
4306 * affinity.c: ...here (new file). Guard use of Pthreads-specific
4307 interface by LIBGOMP_USE_PTHREADS.
4308 * critical.c: Split out GOMP_atomic_{start,end} into...
4309 * atomic.c: ...here (new file).
4310 * env.c: Split out ICV definitions into...
4311 * icv.c: ...here (new file) and...
4312 * icv-device.c: ...here. New file.
4313 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
4314 (gomp_destroy_lock_30): Ditto.
4315 (gomp_set_lock_30): Ditto.
4316 (gomp_unset_lock_30): Ditto.
4317 (gomp_test_lock_30): Ditto.
4318 (gomp_init_nest_lock_30): Ditto.
4319 (gomp_destroy_nest_lock_30): Ditto.
4320 (gomp_set_nest_lock_30): Ditto.
4321 (gomp_unset_nest_lock_30): Ditto.
4322 (gomp_test_nest_lock_30): Ditto.
4323 * lock.c: New.
4324 * config/nvptx/lock.c: New.
4325 * config/nvptx/bar.c: New.
4326 * config/nvptx/bar.h: New.
4327 * config/nvptx/doacross.h: New.
4328 * config/nvptx/error.c: New.
4329 * config/nvptx/icv-device.c: New.
4330 * config/nvptx/mutex.h: New.
4331 * config/nvptx/pool.h: New.
4332 * config/nvptx/proc.c: New.
4333 * config/nvptx/ptrlock.h: New.
4334 * config/nvptx/sem.h: New.
4335 * config/nvptx/simple-bar.h: New.
4336 * config/nvptx/target.c: New.
4337 * config/nvptx/task.c: New.
4338 * config/nvptx/team.c: New.
4339 * config/nvptx/time.c: New.
4340 * config/posix/simple-bar.h: New.
4341 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
4342 (gomp_num_teams_var): Declare.
4343 (struct gomp_thread_pool): Change threads_dock member to
4344 gomp_simple_barrier_t.
4345 [__nvptx__] (gomp_thread): New implementation.
4346 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
4347 (gomp_thread_destructor): Ditto.
4348 (gomp_init_thread_affinity): Ditto.
4349 * team.c: Guard uses of Pthreads-specific interfaces by
4350 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
4351 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
4352 * config/nvptx/alloc.c: Delete.
4353 * config/nvptx/barrier.c: Ditto.
4354 * config/nvptx/fortran.c: Ditto.
4355 * config/nvptx/iter.c: Ditto.
4356 * config/nvptx/iter_ull.c: Ditto.
4357 * config/nvptx/loop.c: Ditto.
4358 * config/nvptx/loop_ull.c: Ditto.
4359 * config/nvptx/ordered.c: Ditto.
4360 * config/nvptx/parallel.c: Ditto.
4361 * config/nvptx/priority_queue.c: Ditto.
4362 * config/nvptx/sections.c: Ditto.
4363 * config/nvptx/single.c: Ditto.
4364 * config/nvptx/splay-tree.c: Ditto.
4365 * config/nvptx/work.c: Ditto.
4366 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
4367 -foffload=-lgfortran in addition to -lgfortran.
4368 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
4369 * plugin/plugin-nvptx.c: Include <limits.h>.
4370 (struct targ_fn_descriptor): Add new fields.
4371 (struct ptx_device): Ditto. Set them...
4372 (nvptx_open_device): ...here.
4373 (nvptx_adjust_launch_bounds): New.
4374 (nvptx_host2dev): Allow NULL 'nvthd'.
4375 (nvptx_dev2host): Ditto.
4376 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
4377 (link_ptx): Adjust log sizes.
4378 (nvptx_host2dev): Allow NULL 'nvthd'.
4379 (nvptx_dev2host): Ditto.
4380 (nvptx_set_clocktick): New. Use it...
4381 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
4382 fields.
4383 (GOMP_OFFLOAD_dev2dev): New.
4384 (nvptx_adjust_launch_bounds): New.
4385 (nvptx_stacks_size): New.
4386 (nvptx_stacks_alloc): New.
4387 (nvptx_stacks_free): New.
4388 (GOMP_OFFLOAD_run): New.
4389 (GOMP_OFFLOAD_async_run): New (stub).
4390
4391 2016-11-23 Martin Jambor <mjambor@suse.cz>
4392
4393 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
4394 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
4395 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
4396
4397 2016-11-23 Martin Liska <mliska@suse.cz>
4398 Martin Jambor <mjambor@suse.cz>
4399
4400 * plugin/hsa.h: New file.
4401 * plugin/hsa_ext_finalize.h: New file.
4402 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
4403 header file unistd.h, and functions secure_getenv, __secure_getenv,
4404 getuid, geteuid, getgid and getegid.
4405 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
4406 -D_GNU_SOURCE.
4407 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
4408 Handle various cases of secure_getenv presence, add an implementation
4409 when we can test effective UID and GID.
4410 (struct hsa_runtime_fn_info): New structure.
4411 (hsa_runtime_fn_info hsa_fns): New variable.
4412 (hsa_runtime_lib): Likewise.
4413 (support_cpu_devices): Likewise.
4414 (init_enviroment_variables): Load newly introduced ENV
4415 variables.
4416 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
4417 (hsa_fatal): Likewise.
4418 (DLSYM_FN): New macro.
4419 (init_hsa_runtime_functions): New function.
4420 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
4421 structure. Depending on environment, also allow CPU devices.
4422 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
4423 (get_kernarg_memory_region): Likewise.
4424 (GOMP_OFFLOAD_init_device): Likewise.
4425 (destroy_hsa_program): Likewise.
4426 (init_basic_kernel_info): New function.
4427 (GOMP_OFFLOAD_load_image): Use it.
4428 (create_and_finalize_hsa_program): Call hsa run-time functions via
4429 hsa_fns structure.
4430 (create_single_kernel_dispatch): Likewise.
4431 (release_kernel_dispatch): Likewise.
4432 (init_single_kernel): Likewise.
4433 (parse_target_attributes): Allow up multiple HSA grid dimensions.
4434 (get_group_size): New function.
4435 (run_kernel): Likewise.
4436 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
4437 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
4438 structure.
4439 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
4440 * testsuite/libgomp-test-support.exp.in: Likewise.
4441 * Makefile.in: Regenerated.
4442 * aclocal.m4: Likewise.
4443 * config.h.in: Likewise.
4444 * configure: Likewise.
4445 * testsuite/Makefile.in: Likewise.
4446
4447 2016-11-15 Martin Jambor <mjambor@suse.cz>
4448 Alexander Monakov <amonakov@ispras.ru>
4449
4450 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
4451 mapping clauses to target constructs.
4452 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
4453
4454 2016-11-15 Matthias Klose <doko@ubuntu.com>
4455
4456 * configure: Regenerate.
4457
4458 2016-11-10 Jakub Jelinek <jakub@redhat.com>
4459
4460 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
4461 * omp_lib.h.in (openmp_version): Likewise.
4462 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
4463 of 201307.
4464 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
4465
4466 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
4467 (fib_wrapper): Add map(from: x) clause.
4468 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
4469 (e_53_2): Likewise.
4470 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
4471 (accum): Add map(tmp) clause.
4472 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
4473 (accum): Add map(tofrom: tmp) clause.
4474 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
4475 (gramSchmidt): Likewise.
4476 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
4477 map(tofrom: sum) clause.
4478 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
4479 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
4480 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
4481 only allowed on the loop iterator.
4482 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
4483 * testsuite/libgomp.fortran/taskloop2.f90: New test.
4484 * testsuite/libgomp.fortran/taskloop4.f90: New test.
4485 * testsuite/libgomp.fortran/doacross1.f90: New test.
4486 * testsuite/libgomp.fortran/doacross3.f90: New test.
4487 * testsuite/libgomp.fortran/taskloop1.f90: New test.
4488 * testsuite/libgomp.fortran/taskloop3.f90: New test.
4489 * testsuite/libgomp.fortran/doacross2.f90: New test.
4490 * testsuite/libgomp.c/doacross-1.c (main): Add missing
4491 #pragma omp atomic read.
4492 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
4493 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
4494
4495 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
4496 Nathan Sidwell <nathan@acm.org>
4497
4498 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
4499 to determine default geometry.
4500 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
4501 dimension.
4502
4503 2016-11-01 Jakub Jelinek <jakub@redhat.com>
4504
4505 * hashtab.h: Use standard GPLv3 with runtime exception
4506 boilerplate.
4507
4508 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
4509
4510 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
4511 size when allocating new thread.
4512
4513 2016-09-14 Marek Polacek <polacek@redhat.com>
4514
4515 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
4516
4517 2016-08-19 Jakub Jelinek <jakub@redhat.com>
4518
4519 PR fortran/71014
4520 * testsuite/libgomp.fortran/pr71014.f90: New test.
4521
4522 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
4523
4524 PR middle-end/70895
4525 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
4526 firstprivate clauses.
4527 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
4528 copy clauses.
4529 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
4530 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4531 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
4532 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
4533 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4534 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
4535 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4536 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
4537 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4538 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4539 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4540 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
4541
4542 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
4543
4544 PR fortran/70598
4545 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
4546
4547 2016-08-08 Jakub Jelinek <jakub@redhat.com>
4548
4549 PR c++/58706
4550 * testsuite/libgomp.c++/pr58706.C: New test.
4551
4552 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
4553
4554 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
4555 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
4556 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
4557 Likewise.
4558 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
4559 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
4560 Likewise.
4561 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
4562
4563 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
4564 test, and don't hardcode -O0.
4565
4566 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
4567
4568 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
4569
4570 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
4571
4572 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
4573 test.
4574
4575 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
4576
4577 PR middle-end/71734
4578 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
4579 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
4580
4581 2016-07-01 Jakub Jelinek <jakub@redhat.com>
4582
4583 PR fortran/71717
4584 * testsuite/libgomp.fortran/associate3.f90: New test.
4585
4586 2016-06-17 Jakub Jelinek <jakub@redhat.com>
4587
4588 * testsuite/libgomp.c++/target-21.C: New test.
4589
4590 2016-06-16 Jakub Jelinek <jakub@redhat.com>
4591
4592 * testsuite/libgomp.c++/target-20.C: New test.
4593
4594 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
4595 Cesar Philippidis <cesar@codesourcery.com>
4596
4597 PR middle-end/71373
4598 * libgomp.oacc-c/nested-function-1.c: New file.
4599 * libgomp.oacc-c/nested-function-2.c: Likewise.
4600 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
4601 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
4602 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
4603
4604 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
4605
4606 PR c/71381
4607 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
4608 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
4609 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
4610
4611 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
4612
4613 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
4614 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
4615
4616 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
4617
4618 PR c/70688
4619 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
4620
4621 2016-05-26 Jakub Jelinek <jakub@redhat.com>
4622
4623 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
4624 instead of invalid schedule(static, 0).
4625 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
4626
4627 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
4628
4629 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
4630 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
4631 parameter, use to set async stream around call to gomp_unmap_vars,
4632 call gomp_unmap_vars() with 'do_copyfrom' set to true.
4633 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
4634 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
4635 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
4636 (event_add): Add int parameter, initialize 'val' field when
4637 adding new ptx_event struct.
4638 (nvptx_evec): Adjust event_add() call arguments.
4639 (nvptx_host2dev): Likewise.
4640 (nvptx_dev2host): Likewise.
4641 (nvptx_wait_async): Likewise.
4642 (nvptx_wait_all_async): Likewise.
4643 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
4644 pass to event_add() call.
4645 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
4646 parameter.
4647 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
4648 call openacc.register_async_cleanup_func() hook.
4649 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
4650 * target.c (gomp_copy_from_async): Delete function.
4651 (gomp_map_vars): Remove async_refcount.
4652 (gomp_unmap_vars): Likewise.
4653 (gomp_load_image_to_device): Likewise.
4654 (omp_target_associate_ptr): Likewise.
4655 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
4656 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
4657 (gomp_copy_from_async): Remove.
4658
4659 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
4660
4661 * target.c (gomp_device_copy): New function.
4662 (gomp_copy_host2dev): Likewise.
4663 (gomp_copy_dev2host): Likewise.
4664 (gomp_free_device_memory): Likewise.
4665 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
4666 (gomp_map_pointer): Likewise.
4667 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
4668 NULL value from alloc_func plugin hook.
4669 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
4670 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
4671 (gomp_unmap_vars): Likewise.
4672 (gomp_update): Adjust to call gomp_copy_dev2host and
4673 gomp_copy_host2dev functions.
4674 (gomp_unload_image_from_device): Handle false value from
4675 unload_image_func plugin hook.
4676 (gomp_init_device): Handle false value from init_device_func
4677 plugin hook.
4678 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
4679 (omp_target_free): Adjust to call gomp_free_device_memory.
4680 (omp_target_memcpy): Handle return values from host2dev_func,
4681 dev2host_func, and dev2dev_func plugin hooks.
4682 (omp_target_memcpy_rect_worker): Likewise.
4683 (gomp_target_fini): Handle false value from fini_device_func
4684 plugin hook.
4685 * libgomp.h (struct gomp_device_descr): Adjust return type of
4686 init_device_func, fini_device_func, unload_image_func, free_func,
4687 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
4688 * oacc-init.c (acc_shutdown_1): Handle false value from
4689 fini_device_func plugin hook.
4690 * oacc-host.c (host_init_device): Change return type to bool.
4691 (host_fini_device): Likewise.
4692 (host_unload_image): Likewise.
4693 (host_free): Likewise.
4694 (host_dev2host): Likewise.
4695 (host_host2dev): Likewise.
4696 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
4697 (acc_memcpy_to_device): Likewise.
4698 (acc_memcpy_from_device): Likewise.
4699 (delete_copyout): Add libfnname parameter, handle free_func
4700 hook fatal error case.
4701 (acc_delete): Adjust delete_copyout call.
4702 (acc_copyout): Likewise.
4703 (update_dev_host): Move gomp_mutex_unlock to after
4704 host2dev/dev2host hook calls.
4705
4706 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
4707 to 'hsa_error_msg', for clarity.
4708 (hsa_fatal): Likewise.
4709 (hsa_error): New function.
4710 (init_hsa_context): Change return type to bool, adjust to return
4711 false on error.
4712 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
4713 return value.
4714 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
4715 return false on error.
4716 (get_agent_info): Adjust to return NULL on error.
4717 (destroy_hsa_program): Change return type to bool, adjust to
4718 return false on error.
4719 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
4720 (destroy_module): Change return type to bool, adjust to
4721 return false on error.
4722 (GOMP_OFFLOAD_unload_image): Likewise.
4723 (GOMP_OFFLOAD_fini_device): Likewise.
4724 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
4725 (GOMP_OFFLOAD_free): Change to return false when called.
4726 (GOMP_OFFLOAD_dev2host): Likewise.
4727 (GOMP_OFFLOAD_host2dev): Likewise.
4728 (GOMP_OFFLOAD_dev2dev): Likewise.
4729
4730 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
4731 (CUDA_CALL): Likewise.
4732 (CUDA_CALL_ASSERT): Likewise.
4733 (map_init): Change return type to bool, use CUDA_CALL* macros.
4734 (map_fini): Likewise.
4735 (init_streams_for_device): Change return type to bool, adjust
4736 call to map_init.
4737 (fini_streams_for_device): Change return type to bool, adjust
4738 call to map_fini.
4739 (select_stream_for_async): Release stream_lock before calls to
4740 GOMP_PLUGIN_fatal, adjust call to map_init.
4741 (nvptx_init): Use CUDA_CALL* macros.
4742 (nvptx_attach_host_thread_to_device): Change return type to bool,
4743 use CUDA_CALL* macros.
4744 (nvptx_open_device): Use CUDA_CALL* macros.
4745 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
4746 macros.
4747 (nvptx_get_num_devices): Use CUDA_CALL* macros.
4748 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
4749 (nvptx_exec): Use CUDA_CALL* macros.
4750 (nvptx_alloc): Use CUDA_CALL* macros.
4751 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
4752 (nvptx_host2dev): Likewise.
4753 (nvptx_dev2host): Likewise.
4754 (nvptx_wait): Use CUDA_CALL* macros.
4755 (nvptx_wait_async): Likewise.
4756 (nvptx_wait_all): Likewise.
4757 (nvptx_wait_all_async): Likewise.
4758 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
4759 use CUDA_CALL* macros, adjust call to map_fini.
4760 (GOMP_OFFLOAD_init_device): Change return type to bool,
4761 adjust code accordingly.
4762 (GOMP_OFFLOAD_fini_device): Likewise.
4763 (GOMP_OFFLOAD_load_image): Adjust calls to
4764 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
4765 use CUDA_CALL* macros.
4766 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
4767 return code.
4768 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
4769 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
4770 handle error return.
4771 (GOMP_OFFLOAD_dev2host): Likewise.
4772 (GOMP_OFFLOAD_host2dev): Likewise.
4773 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
4774 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
4775
4776 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
4777
4778 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
4779 (acc_free): Likewise.
4780 (acc_memcpy_to_device): Likewise.
4781 (acc_memcpy_from_device): Likewise.
4782 (acc_deviceptr): Likewise.
4783 (acc_hostptr): Likewise.
4784 (acc_is_present): Likewise.
4785 (acc_map_data): Likewise.
4786 (acc_unmap_data): Likewise.
4787 (present_create_copy): Likewise.
4788 (delete_copyout): Likewise.
4789 (update_dev_host): Likewise.
4790 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
4791 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
4792 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
4793 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
4794 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
4795 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
4796 it only runs on nvptx targets.
4797 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
4798 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
4799 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
4800 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
4801 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
4802 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
4803 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
4804 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
4805 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4806 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
4807 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
4808 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
4809 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
4810 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
4811 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
4812 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
4813 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
4814 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
4815 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
4816 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
4817 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
4818 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
4819 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
4820
4821 2016-05-23 Martin Jambor <mjambor@suse.cz>
4822
4823 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
4824
4825 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
4826
4827 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
4828 to gomp_init_targets_once.
4829 (acc_set_device_type): Remove !cached_base_dev condition on call to
4830 gomp_init_targets_once, move call to before acc_device_lock acquire,
4831 to avoid deadlock.
4832 (acc_get_device_num): Remove !cached_base_dev condition on call to
4833 gomp_init_targets_once.
4834 (acc_set_device_num): Likewise.
4835
4836 2016-05-16 Martin Jambor <mjambor@suse.cz>
4837
4838 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
4839
4840 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
4841
4842 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
4843 expected partitioning.
4844
4845 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
4846
4847 PR middle-end/70626
4848 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
4849 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
4850 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
4851
4852 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
4853
4854 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
4855 non-fatal.
4856
4857 2016-04-19 Jakub Jelinek <jakub@redhat.com>
4858
4859 PR middle-end/70680
4860 * testsuite/libgomp.c/pr70680-1.c: New test.
4861 * testsuite/libgomp.c/pr70680-2.c: New test.
4862
4863 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
4864
4865 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
4866 pass parameter variables to subroutines.
4867
4868 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
4869
4870 PR middle-end/70643
4871 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
4872
4873 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
4874
4875 PR testsuite/68242
4876 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
4877 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
4878
4879 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
4880
4881 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
4882 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
4883 GOACC_declare prototype.
4884
4885 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
4886 Merge this file, and...
4887 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
4888 ... this file, and...
4889 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
4890 ... this file, and...
4891 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
4892 ... this file, and...
4893 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
4894 ... this file, and...
4895 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
4896 ... this file, and...
4897 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
4898 ... this file, and...
4899 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
4900 ... this file, and...
4901 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
4902 ... this file, and...
4903 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
4904 ... this file, and...
4905 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
4906 ... this file, and...
4907 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
4908 ... this file, and...
4909 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
4910 ... this file into...
4911 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
4912 file.
4913
4914 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
4915 Make failure observable.
4916
4917 2016-04-12 Jakub Jelinek <jakub@redhat.com>
4918
4919 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
4920 field.
4921 * target.c (gomp_target_fallback_firstprivate,
4922 gomp_target_unshare_firstprivate): Removed.
4923 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
4924 before waiting for dependencies.
4925 (gomp_target_task_fn): Don't copy firstprivate vars here.
4926 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
4927 firstprivate_copies here.
4928 (gomp_create_target_task): Don't initialize firstprivate_copies field.
4929 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
4930 explicit/implicit firstprivate.
4931
4932 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
4933
4934 PR lto/70289
4935 PR ipa/70348
4936 PR tree-optimization/70373
4937 PR middle-end/70533
4938 PR middle-end/70534
4939 PR middle-end/70535
4940 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
4941 test.
4942 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
4943 test.
4944 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
4945 test.
4946 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
4947 test.
4948 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
4949 test.
4950 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
4951 test.
4952 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
4953 test.
4954 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
4955 test.
4956 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
4957 test.
4958 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
4959 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
4960 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
4961 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
4962 test.
4963 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
4964 test.
4965 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
4966 test.
4967 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
4968 test.
4969 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
4970 coverage.
4971 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4972 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4973 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
4974 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
4975 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
4976 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
4977 coverage.
4978 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
4979 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
4980 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
4981 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4982 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
4983 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
4984 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
4985 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
4986 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
4987 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4988 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4989 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4990 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4991 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4992 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
4993
4994 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
4995 James Norris <jnorris@codesourcery.com>
4996 Nathan Sidwell <nathan@codesourcery.com>
4997 Julian Brown <julian@codesourcery.com>
4998 Cesar Philippidis <cesar@codesourcery.com>
4999 Chung-Lin Tang <cltang@codesourcery.com>
5000 Tom de Vries <tom@codesourcery.com>
5001
5002 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
5003 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
5004 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
5005 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
5006 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
5007 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
5008 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
5009 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5010 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
5011 XFAIL.
5012 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5013 Incorporate...
5014 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
5015 file.
5016 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
5017 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
5018 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
5019 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
5020 Likewise.
5021 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5022 Likewise.
5023 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5024 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
5025 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5026 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5027 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
5028 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
5029 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
5030 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
5031 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5032 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
5033 Likewise.
5034 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
5035 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5036 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
5037 file...
5038 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
5039 file into...
5040 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
5041 file. Update.
5042 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
5043 file.
5044 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
5045 Likewise.
5046 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
5047 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
5048 ... this new file. Update.
5049 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
5050 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
5051 ... this new file. Update.
5052 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
5053 file. Incorporate...
5054 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
5055 file, and...
5056 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
5057 file, and...
5058 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
5059 file.
5060 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
5061
5062 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
5063
5064 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
5065 set-torture-options.
5066
5067 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
5068
5069 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
5070 gcc-dg-runtest.
5071 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5072 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
5073 -fno-builtin-acc_on_device instead of -O0.
5074 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
5075 -O0.
5076 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5077 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
5078 Likewise.
5079 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5080 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5081 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5082 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5083 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5084 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5085 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5086 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5087 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5088 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5089 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5090 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5091 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5092 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5093 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5094 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5095 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5096 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
5097 Don't specify -O2.
5098 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
5099 Likewise.
5100 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
5101 Likewise.
5102
5103 2016-03-24 Martin Liska <mliska@suse.cz>
5104
5105 * plugin/plugin-hsa.c (packet_store_release): New function
5106 that is taken from the HSA runtime manual.
5107 (GOMP_OFFLOAD_run): Use the function.
5108
5109 2016-03-23 Jakub Jelinek <jakub@redhat.com>
5110
5111 PR c++/70376
5112 * testsuite/libgomp.c++/pr70376.C: New test.
5113
5114 2016-03-23 Tom de Vries <tom@codesourcery.com>
5115
5116 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
5117 initialization of lresult and lvresult.
5118 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
5119
5120 2016-03-23 James Norris <jnorris@codesourcery.com>
5121 Daichi Fukuoka <dc-fukuoka@sgi.com>
5122
5123 PR libgomp/69414
5124 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
5125 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
5126 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
5127 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
5128
5129 2016-03-23 Martin Liska <mliska@suse.cz>
5130
5131 PR hsa/70337
5132 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
5133 argument just in case a dispatched kernel uses that argument.
5134
5135 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
5136
5137 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
5138 -ftree-parallelize-loops/-fopenacc changes.
5139 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
5140 Likewise.
5141 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5142 Likewise.
5143 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
5144 Likewise.
5145 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
5146 Likewise.
5147 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
5148 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
5149
5150 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
5151
5152 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
5153 always_ld_library_path the path to libgcc_s.
5154
5155 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
5156
5157 PR testsuite/70009
5158 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
5159
5160 2016-03-09 Tom de Vries <tom@codesourcery.com>
5161
5162 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
5163 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
5164 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5165 Same.
5166 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
5167 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
5168 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
5169 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
5170
5171 2016-03-07 Martin Jambor <mjambor@suse.cz>
5172
5173 * testsuite/lib/libgomp.exp
5174 (check_effective_target_hsa_offloading_selected_nocache): New.
5175 (check_effective_target_hsa_offloading_selected): Likewise.
5176 * testsuite/libgomp.hsa.c/c.exp: Likewise.
5177 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
5178 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
5179 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
5180 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
5181 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
5182 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
5183 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
5184 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
5185 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
5186 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
5187 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
5188 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
5189 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
5190 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
5191 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
5192 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
5193
5194 2016-03-07 Martin Jambor <mjambor@suse.cz>
5195
5196 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
5197 non-shared memory accelerators.
5198 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
5199 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
5200 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
5201 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
5202 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
5203 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
5204 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
5205 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
5206 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
5207
5208 2016-03-07 Martin Jambor <mjambor@suse.cz>
5209
5210 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
5211 ALWAYS_CFLAGS.
5212
5213 2016-03-02 Jakub Jelinek <jakub@redhat.com>
5214
5215 PR libgomp/69555
5216 * testsuite/libgomp.c++/pr69555-1.C: New test.
5217 * testsuite/libgomp.c++/pr69555-2.C: New test.
5218
5219 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
5220 Martin Jambor <mjambor@suse.cz>
5221
5222 * testsuite/lib/libgomp.exp
5223 (check_effective_target_offload_device_shared_as): New proc.
5224 * testsuite/libgomp.c++/declare_target-1.C: New test.
5225
5226 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
5227
5228 PR driver/68463
5229 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
5230
5231 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
5232
5233 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
5234 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
5235 dims.
5236 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
5237 -ftree-parallelize-loops/-fopenacc changes.
5238 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
5239 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
5240 Likewise.
5241 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
5242 Likewise.
5243 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
5244 Likewise.
5245 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
5246 Likewise.
5247 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
5248 Likewise.
5249 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
5250 Likewise.
5251 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
5252 Likewise.
5253 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
5254 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
5255 Likewise.
5256 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
5257 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
5258 Likewise.
5259 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
5260 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
5261 Likewise.
5262
5263 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
5264
5265 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
5266
5267 2016-02-19 Jakub Jelinek <jakub@redhat.com>
5268
5269 PR driver/69805
5270 * testsuite/libgomp.c/pr69805.c: New test.
5271
5272 2016-02-16 Tom de Vries <tom@codesourcery.com>
5273
5274 PR lto/67709
5275 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
5276
5277 2016-02-09 Tom de Vries <tom@codesourcery.com>
5278
5279 PR tree-optimization/69599
5280 * testsuite/libgomp.c/omp-nested-3.c: New test.
5281 * testsuite/libgomp.c/pr46032-2.c: New test.
5282 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
5283 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
5284
5285 2016-02-09 Tom de Vries <tom@codesourcery.com>
5286
5287 PR lto/69707
5288 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
5289
5290 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5291
5292 * testsuite/libgomp.c/target-31.c: Fix testcase.
5293
5294 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5295
5296 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
5297 clause.
5298 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
5299 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
5300 reduction and map clauses.
5301 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
5302
5303 2016-02-02 James Norris <jnorris@codesourcery.com>
5304
5305 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
5306
5307 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
5308
5309 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
5310 * oacc-parallel.c (GOACC_host_data): Remove function definition.
5311
5312 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
5313 cases.
5314
5315 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
5316 variables.
5317 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
5318 (hsa_kmt_lib): Set variables.
5319 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
5320 always_ld_library_path.
5321 * Makefile.in: Regenerate.
5322 * configure: Likewise.
5323 * testsuite/Makefile.in: Likewise.
5324
5325 * plugin/configfrag.ac (offload_additional_options)
5326 (offload_additional_lib_paths): Don't amend for hsa offloading.
5327 * configure: Regenerate.
5328
5329 * plugin/configfrag.ac: Don't configure for offloading target if
5330 we don't build the corresponding plugin.
5331 * configure: Regenerate.
5332
5333 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
5334
5335 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
5336 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
5337
5338 2016-01-26 Tom de Vries <tom@codesourcery.com>
5339
5340 PR tree-optimization/69110
5341 * testsuite/libgomp.c/pr69110.c: New test.
5342
5343 2016-01-25 Richard Biener <rguenther@suse.de>
5344
5345 PR lto/69393
5346 * testsuite/libgomp.c++/pr69393.C: New testcase.
5347
5348 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
5349
5350 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
5351 function wasn't mapped to the device with non-shared memory.
5352
5353 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
5354
5355 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
5356
5357 2016-01-19 Martin Jambor <mjambor@suse.cz>
5358 Martin Liska <mliska@suse.cz>
5359
5360 * plugin/Makefrag.am: Add HSA plugin requirements.
5361 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
5362 (HSA_RUNTIME_LIB): Likewise.
5363 (HSA_RUNTIME_CPPFLAGS): Likewise.
5364 (HSA_RUNTIME_INCLUDE): New substitution.
5365 (HSA_RUNTIME_LIB): Likewise.
5366 (HSA_RUNTIME_LDFLAGS): Likewise.
5367 (hsa-runtime): New configure option.
5368 (hsa-runtime-include): Likewise.
5369 (hsa-runtime-lib): Likewise.
5370 (PLUGIN_HSA): New substitution variable.
5371 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
5372 configure options.
5373 (PLUGIN_HSA_CPPFLAGS): Likewise.
5374 (PLUGIN_HSA_LDFLAGS): Likewise.
5375 (PLUGIN_HSA_LIBS): Likewise.
5376 Check that we have access to HSA run-time.
5377 * libgomp-plugin.h (offload_target_type): New element
5378 OFFLOAD_TARGET_TYPE_HSA.
5379 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
5380 args.
5381 (bool gomp_create_target_task): Updated.
5382 (gomp_device_descr): Extra parameter of run_func and async_run_func,
5383 new field can_run_func.
5384 * libgomp_g.h (GOMP_target_ext): Update prototype.
5385 * oacc-host.c (host_run): Added a new parameter args.
5386 * target.c (calculate_firstprivate_requirements): New function.
5387 (copy_firstprivate_data): Likewise.
5388 (gomp_target_fallback_firstprivate): Use them.
5389 (gomp_target_unshare_firstprivate): New function.
5390 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
5391 devices.
5392 (GOMP_target): Do host fallback for all shared memory devices. Do not
5393 pass any args to plugins.
5394 (GOMP_target_ext): Introduce device-specific argument parameter args.
5395 Allow host fallback if device shares memory. Do not remap data if
5396 device has shared memory.
5397 (gomp_target_task_fn): Likewise. Also treat shared memory devices
5398 like host fallback for mappings.
5399 (GOMP_target_data): Treat shared memory devices like host fallback.
5400 (GOMP_target_data_ext): Likewise.
5401 (GOMP_target_update): Likewise.
5402 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
5403 gomp_create_target_task.
5404 (GOMP_target_enter_exit_data): Likewise.
5405 (omp_target_alloc): Treat shared memory devices like host fallback.
5406 (omp_target_free): Likewise.
5407 (omp_target_is_present): Likewise.
5408 (omp_target_memcpy): Likewise.
5409 (omp_target_memcpy_rect): Likewise.
5410 (omp_target_associate_ptr): Likewise.
5411 (gomp_load_plugin_for_device): Also load can_run.
5412 * task.c (GOMP_PLUGIN_target_task_completion): Free
5413 firstprivate_copies.
5414 (gomp_create_target_task): Accept new argument args and store it to
5415 ttask.
5416 * plugin/plugin-hsa.c: New file.
5417
5418 2016-01-18 Tom de Vries <tom@codesourcery.com>
5419
5420 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
5421 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
5422 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
5423 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
5424 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
5425 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
5426 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
5427 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
5428 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
5429 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
5430 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
5431 Same.
5432 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
5433 Same.
5434 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
5435 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
5436 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
5437 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
5438 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
5439 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
5440 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
5441 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
5442 Same.
5443 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
5444
5445 2016-01-15 Jakub Jelinek <jakub@redhat.com>
5446
5447 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
5448
5449 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
5450
5451 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
5452
5453 2016-01-12 James Norris <jnorris@codesourcery.com>
5454
5455 * libgomp.texi: Updates for OpenACC.
5456
5457 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
5458
5459 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
5460
5461 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
5462
5463 PR fortran/66680
5464 * testsuite/libgomp.fortran/pr66680.f90: New test.
5465
5466 2016-01-07 Jakub Jelinek <jakub@redhat.com>
5467
5468 PR middle-end/68960
5469 * testsuite/libgomp.c/pr68960.c: New test.
5470
5471 2016-01-06 Nathan Sidwell <nathan@acm.org>
5472
5473 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
5474 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
5475
5476 2016-01-04 Jakub Jelinek <jakub@redhat.com>
5477
5478 Update copyright years.
5479
5480 * libgomp.texi: Bump @copying's copyright year.
5481
5482 2015-12-31 Nathan Sidwell <nathan@acm.org>
5483
5484 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
5485 dg-additional-options syntax.
5486 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5487 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5488 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5489 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5490 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5491 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5492 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5493 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5494 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5495 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5496 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5497 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5498 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5499 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5500 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5501 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5502 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5503 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5504
5505 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
5506
5507 * libgomp.h (REFCOUNT_LINK): Define.
5508 (struct splay_tree_key_s): Add link_key.
5509 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
5510 Replace target address of the pointer with target address of newly
5511 mapped object in the splay tree. Set link pointer on target to the
5512 device address of the mapped object.
5513 (gomp_unmap_vars): Restore target address of the pointer in the splay
5514 tree for REFCOUNT_LINK objects after unmapping.
5515 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
5516 declare target link" objects.
5517 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
5518 "omp declare target link" objects, which were mapped for the image.
5519 (gomp_exit_data): Restore target address of the pointer in the splay
5520 tree for REFCOUNT_LINK objects after unmapping.
5521 * testsuite/libgomp.c/target-link-1.c: New file.
5522
5523 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
5524
5525 * libgomp.h (gomp_device_state): New enum.
5526 (struct gomp_device_descr): Replace is_initialized with state.
5527 (gomp_fini_device): Remove declaration.
5528 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
5529 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
5530 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
5531 (acc_set_device_type): Use state instead of is_initialized.
5532 (acc_set_device_num): Likewise.
5533 * target.c (resolve_device): Use state instead of is_initialized.
5534 Do not initialize finalized device.
5535 (gomp_map_vars): Do nothing if device is finalized.
5536 (gomp_unmap_vars): Likewise.
5537 (gomp_update): Likewise.
5538 (GOMP_offload_register_ver): Use state instead of is_initialized.
5539 (GOMP_offload_unregister_ver): Likewise.
5540 (gomp_init_device): Likewise.
5541 (gomp_unload_device): Likewise.
5542 (gomp_fini_device): Remove.
5543 (gomp_get_target_fn_addr): Do nothing if device is finalized.
5544 (GOMP_target): Go to host fallback if device is finalized.
5545 (GOMP_target_ext): Likewise.
5546 (gomp_exit_data): Do nothing if device is finalized.
5547 (gomp_target_task_fn): Go to host fallback if device is finalized.
5548 (gomp_target_fini): New static function.
5549 (gomp_target_init): Use state instead of is_initialized.
5550 Call gomp_target_fini at exit.
5551
5552 2015-12-09 Tom de Vries <tom@codesourcery.com>
5553
5554 PR tree-optimization/68716
5555 * testsuite/libgomp.c/omp-nested-2.c: New test.
5556
5557 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
5558
5559 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
5560 target openacc_nvidia_accel_selected.
5561 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
5562 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
5563 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
5564 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
5565
5566 2015-12-01 Julian Brown <julian@codesourcery.com>
5567 James Norris <James_Norris@mentor.com>
5568
5569 * oacc-parallel.c (GOACC_host_data): New function.
5570 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
5571 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
5572 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
5573 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
5574 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
5575 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
5576 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
5577
5578 2015-11-30 James Norris <jnorris@codesourcery.com>
5579 Cesar Philippidis <cesar@codesourcery.com>
5580
5581 libgomp/
5582 * libgomp.oacc-fortran/routine-5.f90: New test.
5583 * libgomp.oacc-fortran/routine-7.f90: New test.
5584 * libgomp.oacc-fortran/routine-9.f90: New test.
5585
5586 2015-11-30 Tom de Vries <tom@codesourcery.com>
5587
5588 PR tree-optimization/46032
5589 * testsuite/libgomp.c/pr46032.c: New test.
5590
5591 2015-11-27 Jakub Jelinek <jakub@redhat.com>
5592
5593 PR libgomp/68579
5594 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
5595 (gomp_create_target_task): Call it before freeing
5596 GOMP_TARGET_TASK_DATA tasks.
5597
5598 PR c/63326
5599 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
5600 in between case label and OpenMP standalone directives.
5601 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
5602
5603 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
5604
5605 * configure: Regenerate.
5606
5607 2015-11-26 Jakub Jelinek <jakub@redhat.com>
5608
5609 * testsuite/libgomp.c/target-35.c: New test.
5610
5611 2015-11-22 James Norris <jnorris@codesourcery.com>
5612 Cesar Philippidis <cesar@codesourcery.com>
5613
5614 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
5615 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
5616 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
5617 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
5618 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
5619
5620 2015-11-20 Jakub Jelinek <jakub@redhat.com>
5621
5622 PR middle-end/68221
5623 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
5624 * testsuite/libgomp.c/reduction-12.c: Likewise.
5625 * testsuite/libgomp.c++/reduction-11.C: Likewise.
5626 * testsuite/libgomp.c++/reduction-12.C: Likewise.
5627
5628 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
5629
5630 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
5631 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
5632 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
5633 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
5634 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
5635 and fix.
5636 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5637 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5638
5639 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
5640
5641 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
5642 worker & gang cases.
5643 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
5644
5645 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
5646
5647 * config/nvptx/priority_queue.c: New file.
5648
5649 2015-11-14 Jakub Jelinek <jakub@redhat.com>
5650
5651 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
5652 sections.
5653
5654 2015-11-14 Jakub Jelinek <jakub@redhat.com>
5655 Aldy Hernandez <aldyh@redhat.com>
5656 Ilya Verbin <ilya.verbin@intel.com>
5657
5658 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
5659 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
5660 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
5661 iterators or IV by chunk size.
5662 * parallel.c (gomp_resolve_num_threads): Don't assume that
5663 if thr->ts.team is non-NULL, then pool must be non-NULL.
5664 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
5665 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
5666 GOMP_PLUGIN_target_task_completion.
5667 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
5668 * Makefile.in: Regenerate.
5669 * libgomp.h: Shuffle prototypes and forward definitions around so
5670 priority queues can be defined.
5671 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
5672 (enum gomp_target_task_state): New enum.
5673 (struct gomp_target_task): Add state, tgt, task and team fields.
5674 (gomp_create_target_task): Change return type to bool, add
5675 state argument.
5676 (gomp_target_task_fn): Change return type to bool.
5677 (struct gomp_device_descr): Add async_run_func.
5678 (struct gomp_task): Remove children, next_child, prev_child,
5679 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
5680 Add pnode field.
5681 (struct gomp_taskgroup): Remove children.
5682 Add taskgroup_queue.
5683 (struct gomp_team): Change task_queue type to a priority queue.
5684 (splay_compare): Define inline.
5685 (priority_queue_offset): New.
5686 (priority_node_to_task): New.
5687 (task_to_priority_node): New.
5688 * oacc-mem.c: Do not include splay-tree.h.
5689 * priority_queue.c: New file.
5690 * priority_queue.h: New file.
5691 * splay-tree.c: Do not include splay-tree.h.
5692 (splay_tree_foreach_internal): New.
5693 (splay_tree_foreach): New.
5694 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
5695 (splay_tree_callback): Define typedef.
5696 * target.c (splay_compare): Move to libgomp.h.
5697 (GOMP_target): Don't adjust *thr in any way around running offloaded
5698 task.
5699 (GOMP_target_ext): Likewise. Handle target nowait.
5700 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
5701 return value from gomp_create_target_task, if false, fallthrough
5702 as if no dependencies exist.
5703 (gomp_target_task_fn): Change return type to bool, return true
5704 if the task should have another part scheduled later. Handle
5705 target nowait.
5706 (gomp_load_plugin_for_device): Initialize async_run.
5707 * task.c (gomp_init_task): Initialize children_queue.
5708 (gomp_clear_parent_in_list): New.
5709 (gomp_clear_parent_in_tree): New.
5710 (gomp_clear_parent): Handle priorities.
5711 (GOMP_task): Likewise.
5712 (priority_queue_move_task_first,
5713 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
5714 New functions.
5715 (gomp_create_target_task): Use priority queues. Change return type
5716 to bool, add state argument, return false if for async
5717 {{enter,exit} data,update} constructs no dependencies need to be
5718 waited for, handle target nowait. Set task->fn to NULL instead of
5719 gomp_target_task_fn.
5720 (verify_children_queue): Remove.
5721 (priority_list_upgrade_task): New.
5722 (priority_queue_upgrade_task): New.
5723 (verify_task_queue): Remove.
5724 (priority_list_downgrade_task): New.
5725 (priority_queue_downgrade_task): New.
5726 (gomp_task_run_pre): Use priority queues.
5727 Abstract code out to priority_queue_downgrade_task.
5728 (gomp_task_run_post_handle_dependers): Use priority queues.
5729 (gomp_task_run_post_remove_parent): Likewise.
5730 (gomp_task_run_post_remove_taskgroup): Likewise.
5731 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
5732 tasks specially.
5733 (GOMP_taskwait): Likewise.
5734 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
5735 priority-queue_upgrade_task.
5736 (GOMP_taskgroup_start): Use priority queues.
5737 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
5738 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
5739 barrier.
5740 * taskloop.c (GOMP_taskloop): Handle priorities.
5741 * team.c (gomp_new_team): Call priority_queue_init.
5742 (free_team): Call priority_queue_free.
5743 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
5744 team created for target nowait in implicit parallel region.
5745 (gomp_team_start): For nested check, test thr->ts.level instead of
5746 thr->ts.team != NULL.
5747 * testsuite/libgomp.c/doacross-3.c: New test.
5748 * testsuite/libgomp.c/ordered-5.c: New test.
5749 * testsuite/libgomp.c/priority.c: New test.
5750 * testsuite/libgomp.c/target-31.c: New test.
5751 * testsuite/libgomp.c/target-32.c: New test.
5752 * testsuite/libgomp.c/target-33.c: New test.
5753 * testsuite/libgomp.c/target-34.c: New test.
5754
5755 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
5756
5757 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
5758
5759 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
5760 loop is sequential.
5761
5762 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
5763
5764 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
5765 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
5766
5767 2015-11-12 James Norris <jnorris@codesourcery.com>
5768 Joseph Myers <joseph@codesourcery.com>
5769
5770 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
5771 * oacc-parallel.c (GOACC_declare): New function.
5772 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
5773 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
5774 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
5775 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
5776 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
5777
5778 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
5779
5780 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
5781
5782 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
5783
5784 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
5785 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
5786
5787 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
5788
5789 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
5790 inadvertent commit.
5791
5792 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
5793
5794 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
5795 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
5796 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
5797 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
5798 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
5799
5800 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
5801
5802 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
5803 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5804
5805 2015-11-05 Jakub Jelinek <jakub@redhat.com>
5806 Ilya Verbin <ilya.verbin@intel.com>
5807
5808 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
5809 GOMP_loop_nonmonotonic_dynamic_start,
5810 GOMP_loop_nonmonotonic_guided_next,
5811 GOMP_loop_nonmonotonic_guided_start,
5812 GOMP_loop_ull_nonmonotonic_dynamic_next,
5813 GOMP_loop_ull_nonmonotonic_dynamic_start,
5814 GOMP_loop_ull_nonmonotonic_guided_next,
5815 GOMP_loop_ull_nonmonotonic_guided_start,
5816 GOMP_parallel_loop_nonmonotonic_dynamic,
5817 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
5818 (GOMP_target_41): Renamed to ...
5819 (GOMP_target_ext): ... this. Add num_teams and thread_limit
5820 arguments.
5821 (GOMP_target_data_41): Renamed to ...
5822 (GOMP_target_data_ext): ... this.
5823 (GOMP_target_update_41): Renamed to ...
5824 (GOMP_target_update_ext): ... this.
5825 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
5826 GOMP_target_data_ext and GOMP_target_update_ext instead of
5827 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
5828 Export GOMP_loop_nonmonotonic_dynamic_next,
5829 GOMP_loop_nonmonotonic_dynamic_start,
5830 GOMP_loop_nonmonotonic_guided_next,
5831 GOMP_loop_nonmonotonic_guided_start,
5832 GOMP_loop_ull_nonmonotonic_dynamic_next,
5833 GOMP_loop_ull_nonmonotonic_dynamic_start,
5834 GOMP_loop_ull_nonmonotonic_guided_next,
5835 GOMP_loop_ull_nonmonotonic_guided_start,
5836 GOMP_parallel_loop_nonmonotonic_dynamic and
5837 GOMP_parallel_loop_nonmonotonic_guided.
5838 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
5839 GOMP_parallel_loop_nonmonotonic_guided,
5840 GOMP_loop_nonmonotonic_dynamic_start,
5841 GOMP_loop_nonmonotonic_guided_start,
5842 GOMP_loop_nonmonotonic_dynamic_next,
5843 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
5844 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
5845 GOMP_loop_ull_nonmonotonic_guided_start,
5846 GOMP_loop_ull_nonmonotonic_dynamic_next,
5847 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
5848 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
5849 functions.
5850 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
5851 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
5852 Use gomp_map_val function.
5853 (gomp_target_fallback_firstprivate): New static function.
5854 (GOMP_target_41): Renamed to ...
5855 (GOMP_target_ext): ... this. Add num_teams and thread_limit
5856 arguments. Move firstprivate fallback handling into a new
5857 function.
5858 (GOMP_target_data_41): Renamed to ...
5859 (GOMP_target_data_ext): ... this.
5860 (GOMP_target_update_41): Renamed to ...
5861 (GOMP_target_update_ext): ... this.
5862 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
5863 gomp_map_0len_lookup instead of gomp_map_lookup.
5864 (omp_target_is_present): Use gomp_map_0len_lookup instead of
5865 gomp_map_lookup.
5866 * testsuite/libgomp.c/target-28.c: Likewise.
5867 * testsuite/libgomp.c/monotonic-1.c: New test.
5868 * testsuite/libgomp.c/monotonic-2.c: New test.
5869 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
5870 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
5871 * testsuite/libgomp.c/pr66199-5.c: New test.
5872 * testsuite/libgomp.c/pr66199-6.c: New test.
5873 * testsuite/libgomp.c/pr66199-7.c: New test.
5874 * testsuite/libgomp.c/pr66199-8.c: New test.
5875 * testsuite/libgomp.c/pr66199-9.c: New test.
5876 * testsuite/libgomp.c/reduction-11.c: New test.
5877 * testsuite/libgomp.c/reduction-12.c: New test.
5878 * testsuite/libgomp.c/reduction-13.c: New test.
5879 * testsuite/libgomp.c/reduction-14.c: New test.
5880 * testsuite/libgomp.c/reduction-15.c: New test.
5881 * testsuite/libgomp.c/target-12.c (main): Adjust for
5882 omp_target_is_present change for one-past-last element.
5883 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
5884 the same var is both mapped and privatized.
5885 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
5886 handling of zero-length array sections.
5887 * testsuite/libgomp.c/target-28.c: New test.
5888 * testsuite/libgomp.c/target-29.c: New test.
5889 * testsuite/libgomp.c/target-30.c: New test.
5890 * testsuite/libgomp.c/target-teams-1.c: New test.
5891 * testsuite/libgomp.c++/member-6.C: New test.
5892 * testsuite/libgomp.c++/member-7.C: New test.
5893 * testsuite/libgomp.c++/monotonic-1.C: New test.
5894 * testsuite/libgomp.c++/monotonic-2.C: New test.
5895 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
5896 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
5897 * testsuite/libgomp.c++/pr66199-3.C: New test.
5898 * testsuite/libgomp.c++/pr66199-4.C: New test.
5899 * testsuite/libgomp.c++/pr66199-5.C: New test.
5900 * testsuite/libgomp.c++/pr66199-6.C: New test.
5901 * testsuite/libgomp.c++/pr66199-7.C: New test.
5902 * testsuite/libgomp.c++/pr66199-8.C: New test.
5903 * testsuite/libgomp.c++/pr66199-9.C: New test.
5904 * testsuite/libgomp.c++/reduction-11.C: New test.
5905 * testsuite/libgomp.c++/reduction-12.C: New test.
5906 * testsuite/libgomp.c++/target-13.C: New test.
5907 * testsuite/libgomp.c++/target-14.C: New test.
5908 * testsuite/libgomp.c++/target-15.C: New test.
5909 * testsuite/libgomp.c++/target-16.C: New test.
5910 * testsuite/libgomp.c++/target-17.C: New test.
5911 * testsuite/libgomp.c++/target-18.C: New test.
5912 * testsuite/libgomp.c++/target-19.C: New test.
5913
5914 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5915
5916 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
5917 and reduction copy.
5918 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
5919 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
5920 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
5921 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5922 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
5923 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5924 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
5925 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5926 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5927 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
5928 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
5929 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5930 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5931 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
5932
5933 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5934
5935 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
5936 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
5937 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
5938 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
5939 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
5940 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
5941 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
5942 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
5943
5944 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
5945
5946 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
5947 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
5948 (GOMP_OFFLOAD_openacc_parallel): Likewise.
5949 * oacc-host.c (host_openacc_exec): Likewise.
5950 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
5951
5952 2015-11-03 Julian Brown <julian@codesourcery.com>
5953 Thomas Schwinge <thomas@codesourcery.com>
5954
5955 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
5956 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5957 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
5958 Likewise.
5959 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
5960 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
5961
5962 2015-11-03 James Norris <jnorris@codesourcery.com>
5963
5964 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
5965 file.
5966 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
5967 Likewise.
5968 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
5969 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
5970 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
5971 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
5972 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
5973
5974 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
5975
5976 * openacc.h (enum acc_device_t): Reformat. Ensure layout
5977 compatibility.
5978 (enum acc_async_t): Reformat.
5979 (acc_on_device): Declare compatible with builtin and provide C++
5980 wrapper.
5981 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
5982
5983 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
5984 Cesar Philippidis <cesar@codesourcery.com>
5985
5986 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
5987 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
5988 ... this. Add a description of the test at the top of the file.
5989 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
5990 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
5991 ... this. Add a description of the test at the top of the file.
5992
5993 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
5994
5995 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
5996 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
5997 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
5998 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
5999 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
6000 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
6001
6002 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6003
6004 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
6005 dimensions.
6006
6007 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
6008
6009 PR testsuite/68063
6010 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
6011
6012 2015-10-27 James Norris <jnorris@codesourcery.com>
6013
6014 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
6015 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
6016
6017 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
6018
6019 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
6020 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6021
6022 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
6023 acc_device_nvidia usage.
6024 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6025 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6026 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
6027
6028 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
6029 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
6030
6031 PR libgomp/66518
6032 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
6033
6034 PR libgomp/65437
6035 PR libgomp/66518
6036 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
6037 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
6038
6039 2015-10-23 Tom de Vries <tom@codesourcery.com>
6040
6041 PR testsuite/68063
6042 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
6043
6044 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
6045
6046 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
6047 vector_length.
6048 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6049
6050 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
6051 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
6052
6053 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
6054 to 0 when mapnum is 0.
6055
6056 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
6057
6058 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
6059 Cast to int from int32_t.
6060
6061 2015-10-13 Jakub Jelinek <jakub@redhat.com>
6062 Aldy Hernandez <aldyh@redhat.com>
6063 Ilya Verbin <ilya.verbin@intel.com>
6064
6065 * config/linux/affinity.c (omp_get_place_num_procs,
6066 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6067 * config/linux/doacross.h: New file.
6068 * config/posix/affinity.c (omp_get_place_num_procs,
6069 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6070 * config/posix/doacross.h: New file.
6071 * env.c: Include gomp-constants.h.
6072 (struct gomp_task_icv): Rename run_sched_modifier to
6073 run_sched_chunk_size.
6074 (gomp_max_task_priority_var): New variable.
6075 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
6076 (handle_omp_display_env): Change _OPENMP value from 201307 to
6077 201511. Print OMP_MAX_TASK_PRIORITY.
6078 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
6079 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
6080 chunk_size and run_sched_modifier to run_sched_chunk_size.
6081 (omp_get_max_task_priority, omp_get_initial_device,
6082 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
6083 omp_get_partition_place_nums): New functions.
6084 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
6085 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
6086 to chunk_size.
6087 (omp_get_num_places_, omp_get_place_num_procs_,
6088 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
6089 omp_get_place_proc_ids_8_, omp_get_place_num_,
6090 omp_get_partition_num_places_, omp_get_partition_place_nums_,
6091 omp_get_partition_place_nums_8_, omp_get_initial_device_,
6092 omp_get_max_task_priority_): New functions.
6093 * libgomp_g.h (GOMP_loop_doacross_static_start,
6094 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
6095 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
6096 GOMP_loop_ull_doacross_dynamic_start,
6097 GOMP_loop_ull_doacross_guided_start,
6098 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
6099 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
6100 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
6101 GOMP_target_data_41, GOMP_target_update_41,
6102 GOMP_target_enter_exit_data): New prototypes.
6103 (GOMP_task): Add prototype argument.
6104 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
6105 (struct gomp_doacross_work_share): New type.
6106 (struct gomp_work_share): Add doacross field.
6107 (struct gomp_task_icv): Rename run_sched_modifier to
6108 run_sched_chunk_size.
6109 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
6110 GOMP_TASK_UNDEFERRED. Add comments.
6111 (struct gomp_task_depend_entry): Add comments.
6112 (struct gomp_task): Likewise.
6113 (struct gomp_taskgroup): Likewise.
6114 (struct gomp_target_task): New type.
6115 (struct gomp_team): Add comment.
6116 (gomp_get_place_proc_ids_8, gomp_doacross_init,
6117 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
6118 gomp_create_target_task, gomp_target_task_fn): New prototypes.
6119 (struct target_var_desc): New type.
6120 (struct target_mem_desc): Adjust comment. Use struct
6121 target_var_desc instead of splay_tree_key for list.
6122 (REFCOUNT_INFINITY): Define.
6123 (struct splay_tree_key_s): Remove copy_from field.
6124 (struct gomp_device_descr): Add dev2dev_func field.
6125 (enum gomp_map_vars_kind): New enum.
6126 (gomp_map_vars): Add one argument.
6127 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
6128 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
6129 omp_get_place_num_procs, omp_get_place_num_procs_,
6130 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
6131 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
6132 omp_get_place_num_, omp_get_partition_num_places,
6133 omp_get_partition_num_places_, omp_get_partition_place_nums,
6134 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
6135 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
6136 omp_target_free, omp_target_is_present, omp_target_memcpy,
6137 omp_target_memcpy_rect, omp_target_associate_ptr and
6138 omp_target_disassociate_ptr.
6139 (GOMP_4.0.2): Renamed to ...
6140 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
6141 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
6142 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
6143 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6144 GOMP_loop_doacross_static_start, GOMP_doacross_post,
6145 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
6146 GOMP_loop_ull_doacross_guided_start,
6147 GOMP_loop_ull_doacross_runtime_start,
6148 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
6149 GOMP_doacross_ull_wait.
6150 * libgomp.texi: Document omp_get_max_task_priority.
6151 Rename modifier argument to chunk_size for omp_set_schedule and
6152 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
6153 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
6154 to run_sched_chunk_size renaming.
6155 (GOMP_loop_ordered_runtime_start): Likewise.
6156 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
6157 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6158 GOMP_parallel_loop_runtime_start): New functions.
6159 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
6160 to run_sched_chunk_size renaming.
6161 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
6162 GOMP_loop_doacross_guided_start): New functions or aliases.
6163 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
6164 run_sched_modifier to run_sched_chunk_size renaming.
6165 (GOMP_loop_ull_ordered_runtime_start): Likewise.
6166 (gomp_loop_ull_doacross_static_start,
6167 gomp_loop_ull_doacross_dynamic_start,
6168 gomp_loop_ull_doacross_guided_start,
6169 GOMP_loop_ull_doacross_runtime_start): New functions.
6170 (GOMP_loop_ull_doacross_static_start,
6171 GOMP_loop_ull_doacross_dynamic_start,
6172 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
6173 * oacc-mem.c (acc_map_data, present_create_copy,
6174 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
6175 to gomp_map_vars.
6176 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
6177 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
6178 instead of false to gomp_map_vars.
6179 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
6180 * omp.h.in (omp_lock_hint_t): New type.
6181 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6182 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6183 omp_get_place_num, omp_get_partition_num_places,
6184 omp_get_partition_place_nums, omp_get_initial_device,
6185 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
6186 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
6187 omp_target_associate_ptr, omp_target_disassociate_ptr): New
6188 prototypes.
6189 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
6190 (omp_lock_hint_none, omp_lock_hint_uncontended,
6191 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6192 omp_lock_hint_speculative): New parameters.
6193 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6194 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6195 omp_get_place_num, omp_get_partition_num_places,
6196 omp_get_partition_place_nums, omp_get_initial_device,
6197 omp_get_max_task_priority): New interfaces.
6198 (omp_set_schedule, omp_get_schedule): Rename modifier argument
6199 to chunk_size.
6200 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
6201 (omp_lock_hint_none, omp_lock_hint_uncontended,
6202 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6203 omp_lock_hint_speculative): New parameters.
6204 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6205 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6206 omp_get_place_num, omp_get_partition_num_places,
6207 omp_get_partition_place_nums, omp_get_initial_device,
6208 omp_get_max_task_priority): New functions and subroutines.
6209 * ordered.c: Include stdarg.h and string.h.
6210 (MAX_COLLAPSED_BITS): Define.
6211 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
6212 gomp_doacross_ull_init, GOMP_doacross_ull_post,
6213 GOMP_doacross_ull_wait): New functions.
6214 * target.c: Include errno.h.
6215 (resolve_device): If device is not initialized, call
6216 gomp_init_device on it.
6217 (gomp_map_lookup): New function.
6218 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
6219 Don't bump refcount if REFCOUNT_INFINITY. Handle
6220 GOMP_MAP_ALWAYS_TO_P.
6221 (get_kind): Rename is_openacc argument to short_mapkind.
6222 (gomp_map_pointer): Use gomp_map_lookup.
6223 (gomp_map_fields_existing): New function.
6224 (gomp_map_vars): Rename is_openacc argument to short_mapkind
6225 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
6226 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
6227 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
6228 Adjust for tgt->list changed type and copy_from living in there.
6229 (gomp_copy_from_async): Adjust for tgt->list changed type and
6230 copy_from living in there.
6231 (gomp_unmap_vars): Likewise.
6232 (gomp_update): Likewise. Rename is_openacc argument to
6233 short_mapkind. Don't fail if object is not mapped.
6234 (gomp_load_image_to_device): Initialize refcount to
6235 REFCOUNT_INFINITY.
6236 (gomp_target_fallback): New function.
6237 (gomp_get_target_fn_addr): Likewise.
6238 (GOMP_target): Adjust gomp_map_vars caller, use
6239 gomp_get_target_fn_addr and gomp_target_fallback.
6240 (GOMP_target_41): New function.
6241 (gomp_target_data_fallback): New function.
6242 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
6243 (GOMP_target_data_41): New function.
6244 (GOMP_target_update): Adjust gomp_update caller.
6245 (GOMP_target_update_41): New function.
6246 (gomp_exit_data, GOMP_target_enter_exit_data,
6247 gomp_target_task_fn, omp_target_alloc, omp_target_free,
6248 omp_target_is_present, omp_target_memcpy,
6249 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
6250 omp_target_associate_ptr, omp_target_disassociate_ptr,
6251 gomp_load_plugin_for_device): New functions.
6252 * task.c: Include gomp-constants.h. Include taskloop.c
6253 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
6254 (gomp_task_handle_depend): New function.
6255 (GOMP_task): Use it. Add priority argument. Use
6256 gomp-constant.h constants instead of hardcoded numbers.
6257 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
6258 (gomp_create_target_task): New function.
6259 (verify_children_queue, verify_taskgroup_queue,
6260 verify_task_queue): New functions.
6261 (gomp_task_run_pre): Call verify_*_queue functions.
6262 If an upcoming tied task is about to leave the sibling or
6263 taskgroup queues in an invalid state, adjust appropriately.
6264 Remove taskgroup argument. Add comments.
6265 (gomp_task_run_post_handle_dependers): Add comments.
6266 (gomp_task_run_post_remove_parent): Likewise.
6267 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
6268 (GOMP_taskwait): Likewise. Add comments.
6269 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
6270 problem such that the first non parent_depends_on task does not
6271 end up at the end of the children queue.
6272 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
6273 GOMP_TASK_UNDEFERRED.
6274 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
6275 * taskloop.c: New file.
6276 * testsuite/lib/libgomp.exp
6277 (check_effective_target_offload_device_nonshared_as): New proc.
6278 * testsuite/libgomp.c/affinity-2.c: New test.
6279 * testsuite/libgomp.c/doacross-1.c: New test.
6280 * testsuite/libgomp.c/doacross-2.c: New test.
6281 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
6282 Add map clause to target.
6283 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
6284 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
6285 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
6286 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
6287 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
6288 Likewise.
6289 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
6290 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
6291 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
6292 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
6293 not defined. Use those where needed.
6294 * testsuite/libgomp.c/for-4.c: New test.
6295 * testsuite/libgomp.c/for-5.c: New test.
6296 * testsuite/libgomp.c/for-6.c: New test.
6297 * testsuite/libgomp.c/linear-1.c: New test.
6298 * testsuite/libgomp.c/ordered-4.c: New test.
6299 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
6300 only allowed on the loop iterator.
6301 * testsuite/libgomp.c/pr66199-3.c: New test.
6302 * testsuite/libgomp.c/pr66199-4.c: New test.
6303 * testsuite/libgomp.c/reduction-7.c: New test.
6304 * testsuite/libgomp.c/reduction-8.c: New test.
6305 * testsuite/libgomp.c/reduction-9.c: New test.
6306 * testsuite/libgomp.c/reduction-10.c: New test.
6307 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
6308 map(tofrom:s).
6309 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
6310 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
6311 * testsuite/libgomp.c/target-11.c: New test.
6312 * testsuite/libgomp.c/target-12.c: New test.
6313 * testsuite/libgomp.c/target-13.c: New test.
6314 * testsuite/libgomp.c/target-14.c: New test.
6315 * testsuite/libgomp.c/target-15.c: New test.
6316 * testsuite/libgomp.c/target-16.c: New test.
6317 * testsuite/libgomp.c/target-17.c: New test.
6318 * testsuite/libgomp.c/target-18.c: New test.
6319 * testsuite/libgomp.c/target-19.c: New test.
6320 * testsuite/libgomp.c/target-20.c: New test.
6321 * testsuite/libgomp.c/target-21.c: New test.
6322 * testsuite/libgomp.c/target-22.c: New test.
6323 * testsuite/libgomp.c/target-23.c: New test.
6324 * testsuite/libgomp.c/target-24.c: New test.
6325 * testsuite/libgomp.c/target-25.c: New test.
6326 * testsuite/libgomp.c/target-26.c: New test.
6327 * testsuite/libgomp.c/target-27.c: New test.
6328 * testsuite/libgomp.c/taskloop-1.c: New test.
6329 * testsuite/libgomp.c/taskloop-2.c: New test.
6330 * testsuite/libgomp.c/taskloop-3.c: New test.
6331 * testsuite/libgomp.c/taskloop-4.c: New test.
6332 * testsuite/libgomp.c++/ctor-13.C: New test.
6333 * testsuite/libgomp.c++/doacross-1.C: New test.
6334 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
6335 Replace offload_device with offload_device_nonshared_as.
6336 * testsuite/libgomp.c++/for-12.C: New test.
6337 * testsuite/libgomp.c++/for-13.C: New test.
6338 * testsuite/libgomp.c++/for-14.C: New test.
6339 * testsuite/libgomp.c++/linear-1.C: New test.
6340 * testsuite/libgomp.c++/member-1.C: New test.
6341 * testsuite/libgomp.c++/member-2.C: New test.
6342 * testsuite/libgomp.c++/member-3.C: New test.
6343 * testsuite/libgomp.c++/member-4.C: New test.
6344 * testsuite/libgomp.c++/member-5.C: New test.
6345 * testsuite/libgomp.c++/ordered-1.C: New test.
6346 * testsuite/libgomp.c++/reduction-5.C: New test.
6347 * testsuite/libgomp.c++/reduction-6.C: New test.
6348 * testsuite/libgomp.c++/reduction-7.C: New test.
6349 * testsuite/libgomp.c++/reduction-8.C: New test.
6350 * testsuite/libgomp.c++/reduction-9.C: New test.
6351 * testsuite/libgomp.c++/reduction-10.C: New test.
6352 * testsuite/libgomp.c++/reference-1.C: New test.
6353 * testsuite/libgomp.c++/simd14.C: New test.
6354 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
6355 * testsuite/libgomp.c++/target-5.C: New test.
6356 * testsuite/libgomp.c++/target-6.C: New test.
6357 * testsuite/libgomp.c++/target-7.C: New test.
6358 * testsuite/libgomp.c++/target-8.C: New test.
6359 * testsuite/libgomp.c++/target-9.C: New test.
6360 * testsuite/libgomp.c++/target-10.C: New test.
6361 * testsuite/libgomp.c++/target-11.C: New test.
6362 * testsuite/libgomp.c++/target-12.C: New test.
6363 * testsuite/libgomp.c++/taskloop-1.C: New test.
6364 * testsuite/libgomp.c++/taskloop-2.C: New test.
6365 * testsuite/libgomp.c++/taskloop-3.C: New test.
6366 * testsuite/libgomp.c++/taskloop-4.C: New test.
6367 * testsuite/libgomp.c++/taskloop-5.C: New test.
6368 * testsuite/libgomp.c++/taskloop-6.C: New test.
6369 * testsuite/libgomp.c++/taskloop-7.C: New test.
6370 * testsuite/libgomp.c++/taskloop-8.C: New test.
6371 * testsuite/libgomp.c++/taskloop-9.C: New test.
6372 * testsuite/libgomp.fortran/affinity1.f90: New test.
6373 * testsuite/libgomp.fortran/affinity2.f90: New test.
6374
6375 2015-10-13 Tom de Vries <tom@codesourcery.com>
6376
6377 PR tree-optimization/67476
6378 * testsuite/libgomp.c/autopar-3.c: New test.
6379 * testsuite/libgomp.c/autopar-4.c: New test.
6380 * testsuite/libgomp.c/autopar-5.c: New test.
6381 * testsuite/libgomp.c/autopar-6.c: New test.
6382 * testsuite/libgomp.c/autopar-7.c: New test.
6383 * testsuite/libgomp.c/autopar-8.c: New test.
6384
6385 2015-10-12 James Norris <jnorris@codesourcery.com>
6386
6387 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
6388 initializer.
6389
6390 2015-10-09 David Malcolm <dmalcolm@redhat.com>
6391
6392 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
6393 using load_gcc_lib.
6394
6395 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
6396
6397 * oacc-ptx.h: Remove file, moving its content into...
6398 * config/nvptx/fortran.c: ... here...
6399 * config/nvptx/oacc-init.c: ..., here...
6400 * config/nvptx/oacc-parallel.c: ..., and here.
6401 * config/nvptx/openacc.f90: New file.
6402 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
6403 (link_ptx): Don't link in predefined bits of PTX code.
6404
6405 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
6406 Bernd Schmidt <bernds@codesourcery.com>
6407
6408 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
6409 (struct targ_ptx_obj): New.
6410 (nvptx_tdata): Move earlier, change data format.
6411 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
6412 objects.
6413 (GOMP_OFFLOAD_load_image): Adjust.
6414
6415 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
6416
6417 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
6418 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6419 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
6420 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
6421 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6422 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6423 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6424 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6425 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6426 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6427 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6428 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6429 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6430 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6431 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6432 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6433 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6434 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6435 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6436 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6437 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6438 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6439 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6440 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6441 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6442 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6443 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6444 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6445 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6446 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6447 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6448 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6449 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6450 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6451 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6452 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6453 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6454 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6455 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6456 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6457 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6458 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6459 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6460 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6461 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6462 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6463 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6464 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6465 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6466 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6467 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6468 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6469 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6470 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
6471 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
6472 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
6473 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6474 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6475 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6476 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6477 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6478 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6479 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6480
6481 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
6482
6483 * oacc-init.c (acc_on_device): Force optimization level.
6484
6485 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
6486
6487 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
6488 (cuda_errlist): Delete.
6489 (cuda_error): Reimplement.
6490
6491 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
6492
6493 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
6494 array.
6495 * libgomp.map (GOACC_parallel_keyed): New.
6496 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
6497 all callers.
6498 (GOACC_parallel_keyed): New interface. Lose geometry arguments
6499 and take keyed varargs list. Adjust call to exec_func.
6500 (GOACC_parallel): Force host fallback.
6501 * libgomp_g.h (GOACC_parallel): Remove.
6502 (GOACC_parallel_keyed): Declare.
6503 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
6504 (struct targ_gn_descriptor): Replace name field with launch field.
6505 (nvptx_exec): Lose separate geometry args, take array. Process
6506 dynamic dimensions and adjust.
6507 (struct nvptx_tdata): Replace fn_names field with fn_descs.
6508 (GOMP_OFFLOAD_load_image): Adjust for change in function table
6509 data.
6510 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
6511 passing.
6512 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
6513 passing.
6514
6515 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
6516
6517 PR libgomp/67141
6518 * oacc-int.h (goacc_host_init): Add declaration.
6519 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
6520 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
6521
6522 2015-09-08 Aditya Kumar <hiraditya@msn.com>
6523 Sebastian Pop <s.pop@samsung.com>
6524
6525 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
6526 match o/p.
6527 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
6528 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
6529 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
6530 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
6531 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
6532
6533 2015-09-03 Jakub Jelinek <jakub@redhat.com>
6534
6535 * configure.tgt: Add missing ;; in between nvptx and rtems
6536 snippets.
6537
6538 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6539
6540 * config/posix/pool.h (gomp_adjust_thread_attr): New.
6541 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
6542 (gomp_thread_pool_reservoir): Add priority member.
6543 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
6544 priority.
6545 (parse_thread_pools): Likewise.
6546 * team.c (gomp_team_start): Call configuration provided
6547 gomp_adjust_thread_attr(). Destroy thread attributes if
6548 necessary.
6549 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
6550
6551 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6552
6553 * config/posix/pool.h: New.
6554 * config/rtems/pool.h: Likewise.
6555 * config/rtems/proc.c: Likewise.
6556 * libgomp.h (gomp_thread_destructor): Declare.
6557 * team.c: Include configuration provided "pool.h".
6558 (gomp_get_thread_pool): Define in configuration.
6559 (gomp_team_end): Call configuration defined
6560 gomp_release_thread_pool().
6561
6562 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6563
6564 * config/rtems/bar.c: New.
6565 * config/rtems/bar.h: Likewise.
6566 * config/rtems/mutex.c: Likewise.
6567 * config/rtems/mutex.h: Likewise.
6568 * config/rtems/sem.c: Likewise.
6569 * config/rtems/sem.h: Likewise.
6570 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
6571 <sys/lock.h> header file.
6572 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
6573 supported by Newlib.
6574 * configure: Regenerate.
6575
6576 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6577
6578 * team.c (gomp_new_thread_pool): Delete and move content to ...
6579 (gomp_get_thread_pool): ... new function. Allocate and
6580 initialize thread pool on demand.
6581 (get_last_team): Use gomp_get_thread_pool().
6582 (gomp_team_start): Delete thread pool initialization.
6583
6584 2015-09-03 Tom de Vries <tom@codesourcery.com>
6585
6586 PR tree-optimization/65637
6587 * testsuite/libgomp.c/autopar-2.c: New test.
6588
6589 2015-08-29 Tom de Vries <tom@codesourcery.com>
6590
6591 PR tree-optimization/46193
6592 * testsuite/libgomp.c/pr46193.c: New test.
6593
6594 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
6595
6596 libgomp/
6597 * libgomp.map: Add 4.0.2 version.
6598 * target.c (offload_image_descr): Add version field.
6599 (gomp_load_image_to_device): Add version argument. Adjust plugin
6600 call. Improve load mismatch diagnostic.
6601 (gomp_unload_image_from_device): Add version argument. Adjust plugin
6602 call.
6603 (GOMP_offload_regster): Make stub function, move bulk to ...
6604 (GOMP_offload_register_ver): ... here. Process version argument.
6605 (GOMP_offload_unregister): Make stub function, move bulk to ...
6606 (GOMP_offload_unregister_ver): ... here. Process version argument.
6607 (gomp_init_device): Process version field.
6608 (gomp_unload_device): Process version field.
6609 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
6610 macros. Check plugin version.
6611 * libgomp.h (gomp_device_descr): Add version function field. Adjust
6612 loader and unloader types.
6613 * oacc-host.c: Include gomp-constants.h.
6614 (host_version): New.
6615 (host_load_image, host_unload_image): Adjust.
6616 (host_dispatch): Add host_version.
6617 * plugin/plugin-nvptx.c: Include gomp-constants.h.
6618 (GOMP_OFFLOAD_version): New.
6619 (GOMP_OFFLOAD_load_image): Add version arg and check it.
6620 (GOMP_OFFLOAD_unload_image): Likewise.
6621 * plugin/plugin-host.c: Include gomp-constants.h.
6622 (GOMP_OFFLOAD_version): New.
6623 (GOMP_OFFLOAD_load_image): Add version arg.
6624 (GOMP_OFFLOAD_unload_image): Likewise.
6625
6626 2015-08-24 Tom de Vries <tom@codesourcery.com>
6627
6628 PR tree-optimization/65468
6629 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
6630
6631 2015-08-24 Tom de Vries <tom@codesourcery.com>
6632
6633 PR tree-optimization/65468
6634 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
6635
6636 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
6637
6638 PR libgomp/66761
6639 PR libgomp/67303
6640 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
6641 (gomp_iter_guided_next): Idem.
6642 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
6643 (gomp_iter_ull_guided_next): Idem.
6644 * config/linux/wait.h (do_spin): Idem.
6645
6646 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
6647
6648 * libgomp-plugin.h (enum offload_target_type): Remove
6649 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
6650 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
6651 * openacc.h (enum acc_device_t): Likewise.
6652 * openacc_lib.h: Likewise.
6653 * oacc-init.c (name_of_acc_device_t): Don't handle it.
6654 (acc_on_device): Just use __builtin_acc_on_device.
6655 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
6656 of acc_on_device builtin.
6657 * plugin/plugin-host.h: Remove file.
6658 * plugin/plugin-host.c: Likewise, but salvage some content into...
6659 * oacc-host.c: ... this file.
6660 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
6661 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
6662 * Makefile.in: Regenerate.
6663 * configure: Likewise.
6664 * testsuite/lib/libgomp.exp
6665 (check_effective_target_openacc_host_nonshm_selected): Remove.
6666 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
6667 ACC_DEVICE_TYPE=host_nonshm.
6668 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6669 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6670 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
6671 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
6672 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
6673 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
6674
6675 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
6676 Jakub Jelinek <jakub@redhat.com>
6677
6678 * config/nvptx/affinity.c: New file.
6679 * config/nvptx/alloc.c: Likewise.
6680 * config/nvptx/bar.c: Likewise.
6681 * config/nvptx/barrier.c: Likewise.
6682 * config/nvptx/critical.c: Likewise.
6683 * config/nvptx/env.c: Likewise.
6684 * config/nvptx/error.c: Likewise.
6685 * config/nvptx/fortran.c: Likewise.
6686 * config/nvptx/iter.c: Likewise.
6687 * config/nvptx/iter_ull.c: Likewise.
6688 * config/nvptx/libgomp-plugin.c: Likewise.
6689 * config/nvptx/lock.c: Likewise.
6690 * config/nvptx/loop.c: Likewise.
6691 * config/nvptx/loop_ull.c: Likewise.
6692 * config/nvptx/mutex.c: Likewise.
6693 * config/nvptx/oacc-async.c: Likewise.
6694 * config/nvptx/oacc-cuda.c: Likewise.
6695 * config/nvptx/oacc-host.c: Likewise.
6696 * config/nvptx/oacc-init.c: Likewise.
6697 * config/nvptx/oacc-mem.c: Likewise.
6698 * config/nvptx/oacc-parallel.c: Likewise.
6699 * config/nvptx/oacc-plugin.c: Likewise.
6700 * config/nvptx/omp-lock.h: Likewise.
6701 * config/nvptx/ordered.c: Likewise.
6702 * config/nvptx/parallel.c: Likewise.
6703 * config/nvptx/proc.c: Likewise.
6704 * config/nvptx/ptrlock.c: Likewise.
6705 * config/nvptx/sections.c: Likewise.
6706 * config/nvptx/sem.c: Likewise.
6707 * config/nvptx/single.c: Likewise.
6708 * config/nvptx/splay-tree.c: Likewise.
6709 * config/nvptx/target.c: Likewise.
6710 * config/nvptx/task.c: Likewise.
6711 * config/nvptx/team.c: Likewise.
6712 * config/nvptx/time.c: Likewise.
6713 * config/nvptx/work.c: Likewise.
6714 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
6715 * configure: Regenerate.
6716 * configure.tgt (config_path): Set to "nvptx" for target
6717 nvptx*-*-*.
6718
6719 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
6720
6721 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
6722
6723 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
6724
6725 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
6726 (cuda_errlist): Constify.
6727 (errmsg): Move into ...
6728 (cuda_error): ... here. Make smaller.
6729 (_XSTR, _STR): Delete.
6730 (cuda_synames): Delete.
6731 (verify_device_library): Delete.
6732 (nvptx_init): Don't call it.
6733
6734 2015-07-28 Tom de Vries <tom@codesourcery.com>
6735
6736 * testsuite/libgomp.c/uns-outer-4.c: New test.
6737
6738 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
6739
6740 * testsuite/libgomp.c/pr66714.c: New test.
6741
6742 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
6743
6744 PR libgomp/66950
6745 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
6746 (fib_ref): New function.
6747 (fib): Correct corner cases in the recursion.
6748 (main): Replace the non-simd loop with fib_ref call.
6749 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
6750 subroutine.
6751 (fibonacci): Lower the parameter N to 30. Correct accordingly check
6752 for the last array element value. Replace the non-simd loop with
6753 fib_ref call. Remove redundant b_ref array. Remove the comparison
6754 of the last array element with according Fibonacci sequence element.
6755 (fib): Correct corner cases in the recursion.
6756
6757 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
6758
6759 * target.c (gomp_offload_image_to_device): Rename to ...
6760 (gomp_load_image_to_device): ... here.
6761 (GOMP_offload_register): Adjust call.
6762 (gomp_init_device): Likewise.
6763 (gomp_unload_image_from_device): New. Broken out of ...
6764 (GOMP_offload_unregister): ... here. Call it.
6765 (gomp_unload_device): New.
6766 * libgomp.h (gomp_unload_device): Declare.
6767 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
6768 mem maps.
6769
6770 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
6771
6772 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
6773 wait=-specific if.
6774 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
6775 !=0 condition.
6776 (goacc_waits): Move !num_waits handling to ...
6777 (GOACC_wait): ... here, the only caller that might have zero waits.
6778
6779 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
6780 (struct ptx_image_data): Move earlier, add fns field.
6781 (struct ptx_device): Add images and image_lock fields.
6782 (ptx_images, ptx_image_lock): Delete.
6783 (nvptx_open_device): Initialize images and image_lock fields.
6784 (nvptx_close_device): Destroy image_lock.
6785 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
6786 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
6787 fields.
6788
6789 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
6790
6791 * target.c (GOMP_offload_register): Use int for device type arg.
6792 (GOMP_offload_unregister): Likewise.
6793
6794 * target.c (struct_offload_image_descr): Constify host_table.
6795 (gomp_offload_image_to_device): Likewise.
6796 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
6797
6798 * libgomp.h (gomp_device_descr): Constify target data arguments.
6799 * target.c (struct offload_image_descr): Constify target_data.
6800 (gomp_offload_image_to_device): Likewise.
6801 (GOMP_offload_register): Likewise.
6802 (GOMP_offload_unregister): Likewise.
6803 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
6804 GOMP_OFFLOAD_unload_image): Constify target data.
6805 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
6806 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
6807
6808 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
6809
6810 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
6811 Workaround driver library const error.
6812 (struct nvptx_tdata, nvptx_tdata_t): New.
6813 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
6814 type.
6815
6816 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
6817
6818 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
6819 of EPS parameter from integer to real.
6820 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
6821 type of EPS parameter from integer to real.
6822
6823 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
6824
6825 * team.c (get_last_team): New.
6826 (gomp_new_team): Recycle last non-nested team if possible.
6827 (gomp_team_end): Move team work share list free lock destruction
6828 to ...
6829 (free_team): ... here.
6830
6831 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
6832
6833 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
6834 and ref from int to double. Replaced their comparison with
6835 an inequality of their difference and EPS.
6836 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
6837 comparison of pri and a reference number with an inequality of their
6838 difference and EPS.
6839 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
6840 the comparison of sum and sum_ref with an inequality of their
6841 difference and EPS.
6842 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
6843 the comparison of pri and a reference number with an inequality of
6844 their difference and EPS.
6845
6846 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
6847
6848 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
6849 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
6850 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
6851 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
6852 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
6853 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
6854 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
6855 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
6856 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
6857 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
6858 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
6859 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
6860 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
6861 variables.
6862 (vec_mult): Likewise. Add #pragma omp taskwait.
6863 (main): Adjust caller.
6864 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
6865 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
6866 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
6867 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
6868 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
6869 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
6870 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
6871 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
6872 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
6873 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
6874 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
6875 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
6876 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
6877 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
6878 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
6879 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
6880 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
6881 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
6882 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
6883 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
6884 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
6885 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
6886 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
6887 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
6888 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
6889 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
6890 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
6891 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
6892 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
6893 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
6894 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
6895 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
6896 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
6897 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
6898 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
6899 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
6900 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
6901 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
6902 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
6903 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
6904 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
6905 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
6906 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
6907 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
6908 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
6909 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
6910 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
6911 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
6912 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
6913 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
6914 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
6915 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
6916 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
6917 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
6918 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
6919 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
6920 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
6921 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
6922 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
6923 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
6924 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
6925 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
6926 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
6927 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
6928 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
6929 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
6930 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
6931 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
6932 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
6933 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
6934 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
6935 (vec_mult): Add !$omp taskwait.
6936 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
6937 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
6938 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
6939 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
6940 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
6941 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
6942 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
6943 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
6944 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
6945 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
6946 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
6947 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
6948 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
6949 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
6950 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
6951 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
6952 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
6953 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
6954 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
6955 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
6956 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
6957 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
6958 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
6959 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
6960 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
6961 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
6962 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
6963 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
6964 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
6965 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
6966 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
6967 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
6968 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
6969 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
6970 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
6971 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
6972 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
6973 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
6974 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
6975 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
6976 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
6977 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
6978 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
6979 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
6980 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
6981 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
6982 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
6983 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
6984 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
6985 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
6986 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
6987 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
6988 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
6989 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
6990 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
6991 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
6992 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
6993 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
6994 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
6995 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
6996 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
6997 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
6998 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
6999 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
7000 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
7001 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
7002 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
7003
7004 2015-07-10 Tom de Vries <tom@codesourcery.com>
7005
7006 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
7007 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
7008
7009 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
7010
7011 PR libgomp/65099
7012 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
7013 in a 64-bit configuration.
7014 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
7015 offloading testing if no such device is available.
7016 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7017 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7018
7019 2015-07-08 Tom de Vries <tom@codesourcery.com>
7020
7021 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
7022 second call to f.
7023 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7024
7025 2015-07-07 Tom de Vries <tom@codesourcery.com>
7026
7027 PR tree-optimization/66642
7028 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
7029 iteration count case.
7030 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
7031 function, factor out of ...
7032 (main): ... here. Test low iteration count case.
7033
7034 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
7035
7036 * libgomp.h (gomp_thread_pool): Comment last_team field.
7037
7038 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
7039
7040 * testsuite/libgomp.c++/pr66702-1.C: Require
7041 vect_simd_clones effective target.
7042 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
7043
7044 2015-06-30 Tom de Vries <tom@codesourcery.com>
7045
7046 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7047 already set. Use DEFAULT_CFLAGS in dg-runtest.
7048 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
7049 "-O2".
7050
7051 2015-06-30 Tom de Vries <tom@codesourcery.com>
7052
7053 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7054 already set. Use DEFAULT_CFLAGS in dg-runtest.
7055 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
7056 * testsuite/libgomp.c++/pr64824.C: Same.
7057 * testsuite/libgomp.c++/pr64868.C: Same.
7058 * testsuite/libgomp.c++/pr66199-1.C: Same.
7059 * testsuite/libgomp.c++/pr66199-2.C: Same.
7060 * testsuite/libgomp.c++/target-2.C: Same.
7061 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
7062 -std=<standard> option.
7063 * testsuite/libgomp.c++/udr-11.C: Same.
7064 * testsuite/libgomp.c++/udr-12.C: Same.
7065 * testsuite/libgomp.c++/udr-13.C: Same.
7066 * testsuite/libgomp.c++/udr-14.C: Same.
7067 * testsuite/libgomp.c++/udr-15.C: Same.
7068 * testsuite/libgomp.c++/udr-16.C: Same.
7069 * testsuite/libgomp.c++/udr-17.C: Same.
7070 * testsuite/libgomp.c++/udr-18.C: Same.
7071 * testsuite/libgomp.c++/udr-19.C: Same.
7072 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
7073 * testsuite/libgomp.c++/simd-1.C: Same.
7074 * testsuite/libgomp.c++/simd-2.C: Same.
7075 * testsuite/libgomp.c++/simd-3.C: Same.
7076 * testsuite/libgomp.c++/simd-4.C: Same.
7077 * testsuite/libgomp.c++/simd-5.C: Same.
7078 * testsuite/libgomp.c++/simd-6.C: Same.
7079 * testsuite/libgomp.c++/simd-7.C: Same.
7080 * testsuite/libgomp.c++/simd-8.C: Same.
7081 * testsuite/libgomp.c++/simd-9.C: Same.
7082 * testsuite/libgomp.c++/simd10.C: Same.
7083 * testsuite/libgomp.c++/simd11.C: Same.
7084 * testsuite/libgomp.c++/simd12.C: Same.
7085 * testsuite/libgomp.c++/simd13.C: Same.
7086
7087 2015-06-30 Jakub Jelinek <jakub@redhat.com>
7088
7089 PR middle-end/66702
7090 * testsuite/libgomp.c++/pr66702-1.C: New test.
7091 * testsuite/libgomp.c++/pr66702-2.C: New test.
7092
7093 2015-06-30 Tom de Vries <tom@codesourcery.com>
7094
7095 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
7096 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
7097 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
7098 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
7099
7100 2015-06-30 Tom de Vries <tom@codesourcery.com>
7101
7102 PR tree-optimization/66652
7103 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
7104 using restrict pointers.
7105 (main): Add arguments to calls to f.
7106 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7107
7108 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
7109
7110 * configure.ac: Fix check for header <sys/sysctl.h>.
7111 * configure: Regenerate.
7112 * config.h.in: Likewise.
7113
7114 2015-06-23 Tom de Vries <tom@codesourcery.com>
7115
7116 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
7117 abort.
7118 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
7119
7120 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
7121
7122 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
7123 acc_device_nvidia.
7124
7125 PR libgomp/66518
7126 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
7127 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7128
7129 2015-06-15 Tom de Vries <tom@codesourcery.com>
7130
7131 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
7132 dg-additional-options for any remaining options.
7133 * testsuite/libgomp.c/atomic-2.c: Same.
7134 * testsuite/libgomp.c/atomic-4.c: Same.
7135 * testsuite/libgomp.c/atomic-5.c: Same.
7136 * testsuite/libgomp.c/atomic-6.c: Same.
7137 * testsuite/libgomp.c/autopar-1.c: Same.
7138 * testsuite/libgomp.c/copyin-1.c: Same.
7139 * testsuite/libgomp.c/copyin-2.c: Same.
7140 * testsuite/libgomp.c/copyin-3.c: Same.
7141 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
7142 * testsuite/libgomp.c/nestedfn-5.c: Same.
7143 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
7144 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
7145 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
7146 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7147 * testsuite/libgomp.c/pr32362-1.c: Same.
7148 * testsuite/libgomp.c/pr32362-2.c: Same.
7149 * testsuite/libgomp.c/pr32362-3.c: Same.
7150 * testsuite/libgomp.c/pr39591-1.c: Same.
7151 * testsuite/libgomp.c/pr39591-2.c: Same.
7152 * testsuite/libgomp.c/pr39591-3.c: Same.
7153 * testsuite/libgomp.c/pr58392.c: Same.
7154 * testsuite/libgomp.c/pr58756.c: Same.
7155 * testsuite/libgomp.c/simd-1.c: Same.
7156 * testsuite/libgomp.c/simd-10.c: Same.
7157 * testsuite/libgomp.c/simd-11.c: Same.
7158 * testsuite/libgomp.c/simd-12.c: Same.
7159 * testsuite/libgomp.c/simd-13.c: Same.
7160 * testsuite/libgomp.c/simd-14.c: Same.
7161 * testsuite/libgomp.c/simd-15.c: Same.
7162 * testsuite/libgomp.c/simd-2.c: Same.
7163 * testsuite/libgomp.c/simd-3.c: Same.
7164 * testsuite/libgomp.c/simd-4.c: Same.
7165 * testsuite/libgomp.c/simd-5.c: Same.
7166 * testsuite/libgomp.c/simd-6.c: Same.
7167 * testsuite/libgomp.c/simd-7.c: Same.
7168 * testsuite/libgomp.c/simd-8.c: Same.
7169 * testsuite/libgomp.c/simd-9.c: Same.
7170
7171 2015-06-15 Tom de Vries <tom@codesourcery.com>
7172
7173 * testsuite/libgomp.c/pr35625.c: Fix typo.
7174
7175 2015-06-15 Tom de Vries <tom@codesourcery.com>
7176
7177 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
7178 in dg-options.
7179 * testsuite/libgomp.c/atomic-3.c: Same.
7180 * testsuite/libgomp.c/debug-1.c: Same.
7181 * testsuite/libgomp.c/nqueens-1.c: Same.
7182 * testsuite/libgomp.c/pr26171.c: Same.
7183 * testsuite/libgomp.c/pr48591.c: Same.
7184 * testsuite/libgomp.c/pr64824.c: Same.
7185 * testsuite/libgomp.c/pr64868.c: Same.
7186 * testsuite/libgomp.c/pr66133.c: Same.
7187 * testsuite/libgomp.c/pr66199-1.c: Same.
7188 * testsuite/libgomp.c/pr66199-2.c: Same.
7189 * testsuite/libgomp.c/target-8.c: Same.
7190
7191 2015-06-15 Tom de Vries <tom@codesourcery.com>
7192
7193 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
7194 -std={gnu99,c99}.
7195 * testsuite/libgomp.c/for-1.c: Same.
7196 * testsuite/libgomp.c/for-2.c: Same.
7197 * testsuite/libgomp.c/for-3.c: Same.
7198 * testsuite/libgomp.c/pr35625.c: Same.
7199 * testsuite/libgomp.c/pr39154.c: Same.
7200 * testsuite/libgomp.c/simd-16.c: Same.
7201 * testsuite/libgomp.c/simd-17.c: Same.
7202
7203 2015-06-13 Tom de Vries <tom@codesourcery.com>
7204
7205 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
7206
7207 2015-06-13 Tom de Vries <tom@codesourcery.com>
7208
7209 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
7210 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7211 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
7212 (N): Define.
7213 (main): Use N instead of hardcoded constants.
7214
7215 2015-06-05 Tom de Vries <tom@codesourcery.com>
7216
7217 merge from gomp4 branch:
7218 2015-05-28 Tom de Vries <tom@codesourcery.com>
7219
7220 PR tree-optimization/65443
7221 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
7222 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
7223 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
7224
7225 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7226
7227 * testsuite/libgomp.graphite/bounds.c: Adjust for
7228 cleanup-tree-dump removal.
7229 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
7230 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7231 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7232 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
7233 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7234 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7235 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7236 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7237 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7238 * testsuite/libgomp.graphite/pr41118.c: Likewise.
7239
7240 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
7241
7242 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
7243 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
7244 (futex_wake) [!__x86_64__]: Ditto.
7245
7246 2015-05-28 Julian Brown <julian@codesourcery.com>
7247
7248 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
7249 function comment. Only call gomp_fatal if new argument is true.
7250 (acc_dev_num_out_of_range): New function.
7251 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
7252 acc_dev_num_out_of_range as appropriate.
7253 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
7254 (acc_get_device_num, acc_set_device_num): Update calls to
7255 resolve_device.
7256 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
7257 output.
7258
7259 2015-05-28 Julian Brown <julian@codesourcery.com>
7260
7261 PR libgomp/65742
7262 * oacc-init.c (plugin/plugin-host.h): Include.
7263 (acc_on_device): Check whether we're in an offloaded region for
7264 host_nonshm
7265 plugin. Don't use __builtin_acc_on_device.
7266 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
7267 nonshm_exec flag in thread-local data.
7268 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
7269 data for host_nonshm plugin.
7270 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
7271 for host_nonshm plugin.
7272 * plugin/plugin-host.h: New.
7273
7274 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7275
7276 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
7277
7278 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7279
7280 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
7281 Declare as int.
7282 (FUTEX_PRIVATE_FLAG): Remove L suffix.
7283 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
7284 Declare as int.
7285
7286 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7287
7288 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
7289
7290 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
7291
7292 * target.c (gomp_map_pointer): New function abstracting out
7293 GOMP_MAP_POINTER handling.
7294 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
7295 gomp_map_pointer().
7296
7297 2015-05-19 Jakub Jelinek <jakub@redhat.com>
7298
7299 PR middle-end/66199
7300 * testsuite/libgomp.c/pr66199-1.c: New test.
7301 * testsuite/libgomp.c/pr66199-2.c: New test.
7302 * testsuite/libgomp.c++/pr66199-1.C: New test.
7303 * testsuite/libgomp.c++/pr66199-2.C: New test.
7304 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
7305 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
7306
7307 2015-05-19 Julian Brown <julian@codesourcery.com>
7308
7309 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
7310 on cuInit failure.
7311
7312 2015-05-13 Jakub Jelinek <jakub@redhat.com>
7313
7314 PR middle-end/66133
7315 * testsuite/libgomp.c/pr66133.c: New test.
7316
7317 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
7318
7319 * Makefile.in: Regenerated with automake-1.11.6.
7320 * aclocal.m4: Likewise.
7321 * config.h.in: Likewise.
7322 * configure: Likewise.
7323 * testsuite/Makefile.in: Likewise.
7324
7325 2015-05-08 Jason Merrill <jason@redhat.com>
7326
7327 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
7328 _Complex.
7329
7330 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
7331
7332 2015-05-06 Julian Brown <julian@codesourcery.com>
7333
7334 * oacc-init.c (acc_device_lock): Add explanatory comment.
7335 (resolve_device): Add comment about locking requirement.
7336 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
7337 gomp_init_device and gomp_fini_device calls.
7338 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
7339 (acc_get_device_num, acc_set_device_num): Add locking around
7340 resolve_device and gomp_init_device calls.
7341
7342 2015-05-06 Julian Brown <julian@codesourcery.com>
7343
7344 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
7345 goacc_thread_lock on error paths.
7346 * oacc-mem.c (lookup_host): Remove locking from function. Note
7347 locking requirement for caller in function comment.
7348 (lookup_dev): Likewise.
7349 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
7350 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
7351 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
7352 Add locking.
7353
7354 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
7355
7356 PR testsuite/65205
7357 PR libgomp/65993
7358 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
7359 don't expect "0x" prefix for "%p" format specifier, don't expect
7360 "(nil)" for NULL pointer.
7361 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7362 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7363 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7364 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7365 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7366 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7367 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7368 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7369 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7370 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7371 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7372 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7373 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7374 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7375 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7376 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7377 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7378 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7379 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7380 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7381 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7382 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7383 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7384 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7385 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7386 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7387 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7388 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7389 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
7390 accurately specify what we're looking for.
7391 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7392 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7393 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7394 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7395 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7396
7397 2015-04-30 James Norris <jnorris@codesourcery.com>
7398
7399 PR testsuite/65205
7400 * testsuite/lib/libgomp.exp
7401 (check_effective_target_openacc_host_selected)
7402 (check_effective_target_openacc_host_nonshm_selected): New
7403 procedures.
7404 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
7405 dg-shouldfail.
7406 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7407 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7408 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7409 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7410 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7411 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7412 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7413 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7414 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7415 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7416 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7417 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7418 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7419 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7420 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7421 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7422 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7423 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7424 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7425 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7426 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7427 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7428 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7429 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7430 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7431 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7432 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7433 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7434 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7435 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7436 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7437 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7438 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7439 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7440 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7441 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7442 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7443 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7444 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7445 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7446 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7447 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7448 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7449
7450 2015-04-08 Julian Brown <julian@codesourcery.com>
7451
7452 * libgomp.h (target_mem_desc: Remove mem_map field.
7453 (acc_dispatch_t): Remove open_device_func, close_device_func,
7454 get_device_num_func, set_device_num_func, target_data members.
7455 Change create_thread_data_func argument to device number instead of
7456 generic pointer.
7457 * oacc-async.c (assert.h): Include.
7458 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
7459 (acc_wait_all, acc_wait_all_async): Use current host thread's
7460 active device, not base_dev.
7461 * oacc-cuda.c (acc_get_current_cuda_device)
7462 (acc_get_current_cuda_context, acc_get_cuda_stream)
7463 (acc_set_cuda_stream): Likewise.
7464 * oacc-host.c (host_dispatch): Don't set open_device_func,
7465 close_device_func, get_device_num_func or set_device_num_func.
7466 * oacc-init.c (base_dev, init_key): Remove.
7467 (cached_base_dev): New.
7468 (name_of_acc_device_t): New.
7469 (acc_init_1): Initialise default-numbered device, not zeroth.
7470 (acc_shutdown_1): Close all devices of a given type.
7471 (goacc_destroy_thread): Don't use base_dev.
7472 (lazy_open, lazy_init, lazy_init_and_open): Remove.
7473 (goacc_attach_host_thread_to_device): New.
7474 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
7475 (acc_get_num_devices): Don't use base_dev.
7476 (acc_set_device_type): Reimplement.
7477 (acc_get_device_type): Don't use base_dev.
7478 (acc_get_device_num): Tweak logic.
7479 (acc_set_device_num): Likewise.
7480 (acc_on_device): Use acc_get_device_type.
7481 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
7482 (goacc_lazy_initialize): Reimplement with acc_init and
7483 goacc_attach_host_thread_to_device.
7484 * oacc-int.h (goacc_thread): Add base_dev field.
7485 (base_dev): Remove extern declaration.
7486 (goacc_attach_host_thread_to_device): Add prototype.
7487 * oacc-mem.c (acc_malloc): Use current thread's device instead of
7488 base_dev.
7489 (acc_free): Likewise.
7490 (acc_memcpy_to_device): Likewise.
7491 (acc_memcpy_from_device): Likewise.
7492 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
7493 goacc_lazy_initialize (throughout).
7494 (GOACC_parallel): Use tgt_offset to locate target functions.
7495 * target.c (gomp_map_vars): Don't set tgt->mem_map.
7496 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
7497 (gomp_load_plugin_for_device): Remove open_device, close_device,
7498 get_device_num, set_device_num openacc hook initialisation. Don't set
7499 openacc.target_data.
7500 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
7501 (GOMP_OFFLOAD_openacc_close_device)
7502 (GOMP_OFFLOAD_openacc_get_device_num)
7503 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
7504 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
7505 to int.
7506 * plugin/plugin-nvptx.c (ptx_inited): Remove.
7507 (instantiated_devices, ptx_dev_lock): New.
7508 (struct ptx_image_data): New.
7509 (ptx_devices, ptx_images, ptx_image_lock): New.
7510 (fini_streams_for_device): Reorder cuStreamDestroy call.
7511 (nvptx_get_num_devices): Remove forward declaration.
7512 (nvptx_init): Change return type to bool.
7513 (nvptx_fini): Remove.
7514 (nvptx_attach_host_thread_to_device): New.
7515 (nvptx_open_device): Return struct ptx_device* instead of void*.
7516 (nvptx_close_device): Change argument type to struct ptx_device*,
7517 return type to void.
7518 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
7519 (kernel_target_data, kernel_host_table): Remove static globals.
7520 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
7521 (GOMP_OFFLOAD_init_device): Reimplement.
7522 (GOMP_OFFLOAD_fini_device): Likewise.
7523 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
7524 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
7525 (GOMP_OFFLOAD_host2dev): Use ORD argument.
7526 (GOMP_OFFLOAD_openacc_open_device)
7527 (GOMP_OFFLOAD_openacc_close_device)
7528 (GOMP_OFFLOAD_openacc_set_device_num)
7529 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
7530 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
7531 (device number).
7532
7533 testsuite/
7534 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
7535
7536 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
7537
7538 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
7539 * libgomp.h (struct gomp_memory_mapping): Remove.
7540 (struct target_mem_desc): Change type of mem_map from
7541 gomp_memory_mapping * to splay_tree_s *.
7542 (struct gomp_device_descr): Remove register_image_func, get_table_func.
7543 Add load_image_func, unload_image_func.
7544 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
7545 Remove offload_regions_registered.
7546 (gomp_init_tables): Remove.
7547 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
7548 to splay_tree_s *.
7549 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
7550 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
7551 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
7552 offload_regions_registered.
7553 Initialize load_image_func, unload_image_func, mem_map.root.
7554 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
7555 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
7556 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
7557 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
7558 gomp_memory_mapping *. Use dev's lock and splay_tree.
7559 (lookup_dev): Use dev's lock.
7560 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
7561 (acc_is_present): Likewise.
7562 (acc_map_data): Likewise.
7563 (acc_unmap_data): Likewise. Use dev's lock.
7564 (present_create_copy): Likewise.
7565 (delete_copyout): Pass dev to lookup_host instead of mem_map.
7566 (update_dev_host): Likewise.
7567 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
7568 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
7569 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
7570 (GOMP_OFFLOAD_get_table): Remove
7571 (GOMP_OFFLOAD_load_image): New function.
7572 (GOMP_OFFLOAD_unload_image): New function.
7573 * target.c (register_lock): New mutex for offload image registration.
7574 (num_devices): Do not guard with PLUGIN_SUPPORT.
7575 (gomp_realloc_unlock): New static function.
7576 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
7577 before gomp_fatal.
7578 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
7579 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
7580 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
7581 mem_map's.
7582 (gomp_unmap_vars): Likewise.
7583 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
7584 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
7585 (gomp_offload_image_to_device): New static function.
7586 (GOMP_offload_register): Add mutex lock.
7587 Call gomp_offload_image_to_device for all initialized devices.
7588 Replace gomp_realloc with gomp_realloc_unlock.
7589 (GOMP_offload_unregister): New function.
7590 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
7591 get_table_func from the plugin with calls to init_device_func and
7592 gomp_offload_image_to_device.
7593 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
7594 to splay_tree_s *.
7595 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
7596 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
7597 (GOMP_target_data): Do not call gomp_init_tables.
7598 (GOMP_target_update): Likewise. Remove argument from gomp_update.
7599 (gomp_load_plugin_for_device): Replace register_image and get_table
7600 with load_image and unload_image in DLSYM ().
7601 (gomp_register_images_for_device): Remove function.
7602 (gomp_target_init): Do not initialize current_device.mem_map.*,
7603 current_device.offload_regions_registered.
7604 Remove call to gomp_register_images_for_device.
7605 Do not free offload_images and num_offload_images.
7606
7607 2015-03-30 Jakub Jelinek <jakub@redhat.com>
7608
7609 PR fortran/65597
7610 * testsuite/libgomp.fortran/pr65597.f90: New test.
7611
7612 2015-03-27 Tom de Vries <tom@codesourcery.com>
7613
7614 PR testsuite/65594
7615 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
7616 (init, check): New function.
7617 (foo): Change return type to void.
7618 (main): Call init and check.
7619
7620 2015-03-27 Tom de Vries <tom@codesourcery.com>
7621
7622 PR testsuite/65594
7623 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
7624 (foo): Use M for non-inner loops to scale down test-case.
7625
7626 2015-03-25 Kai Tietz <ktietz@redhat.com>
7627
7628 PR libgomp/64972
7629 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
7630 (GOACC_data_start): Likewise.
7631 * target.c (gomp_map_vars): Likewise.
7632
7633 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
7634
7635 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
7636 hppa*-*-hpux*.
7637
7638 2015-03-19 Jakub Jelinek <jakub@redhat.com>
7639
7640 * testsuite/libgomp.c/target-10.c: New test.
7641 * testsuite/libgomp.c++/target-4.C: New test.
7642
7643 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
7644
7645 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
7646 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
7647
7648 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
7649
7650 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
7651 * configure.ac (*-*-rtems*): Assume Pthread is supported.
7652 (pthread.h): Check for this header file.
7653 * configure: Regenerate.
7654
7655 2015-02-25 Tom de Vries <tom@codesourcery.com>
7656
7657 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
7658 (check_reduction_op, check_reduction_macro, max, min):
7659 Declare.
7660 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
7661 function.
7662 (main): Use new functions.
7663
7664 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
7665
7666 * target.c (gomp_load_plugin_for_device): Use const char * instead of
7667 char * for variables holding dlerror return values.
7668 (DLSYM_OPT): Ditto.
7669
7670 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
7671
7672 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
7673
7674 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
7675 Cesar Philippidis <cesar@codesourcery.com>
7676
7677 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
7678 GOACC_ctaid, and GOACC_nctaid routines.
7679
7680 2015-02-11 Jakub Jelinek <jakub@redhat.com>
7681
7682 PR c/64824
7683 * testsuite/libgomp.c/atomic-18.c: New test.
7684 * testsuite/libgomp.c++/atomic-16.C: New test.
7685
7686 2015-02-04 Jakub Jelinek <jakub@redhat.com>
7687
7688 PR c/64824
7689 PR c/64868
7690 * testsuite/libgomp.c/pr64824.c: New test.
7691 * testsuite/libgomp.c/pr64868.c: New test.
7692 * testsuite/libgomp.c++/pr64824.C: New test.
7693 * testsuite/libgomp.c++/pr64868.C: New test.
7694
7695 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
7696
7697 PR libgomp/64635
7698 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
7699 Link with -lpthread.
7700 * config/aix/plugin-suffix.h: Delete.
7701
7702 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
7703
7704 PR libgomp/64635
7705 * configure.tgt (*-*-aix*): Use config_path "aix posix".
7706 (*-*-darwin*): Use config_path "bsd darwin posix".
7707 (*-*-hpux*): Use config_path "hpux posix".
7708 * target.c: Add include of plugin-suffix.h and use
7709 SONAME_SUFFIX macro.
7710 * config/aix/plugin-suffix.h: New file.
7711 * config/darwin/plugin-suffix.h: New file.
7712 * config/hpux/plugin-suffix.h: New file.
7713 * config/posix/plugin-suffix.h: New file.
7714
7715 2015-01-23 Jakub Jelinek <jakub@redhat.com>
7716
7717 PR middle-end/64734
7718 * libgomp.c/pr64734.c: New test.
7719
7720 2015-01-23 Tom de Vries <tom@codesourcery.com>
7721
7722 PR libgomp/64672
7723 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
7724
7725 2015-01-23 Tom de Vries <tom@codesourcery.com>
7726
7727 PR libgomp/64707
7728 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
7729 dg-options.
7730
7731 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
7732
7733 PR libgomp/64625
7734 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
7735 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
7736 formal parameter. Update all users.
7737 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
7738 Document unused formal parameter.
7739
7740 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
7741
7742 * oacc-parallel.c: Don't include <alloca.h>.
7743 (GOACC_parallel): Use gomp_alloca instead of alloca.
7744
7745 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
7746
7747 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
7748
7749 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
7750 James Norris <jnorris@codesourcery.com>
7751 Tom de Vries <tom@codesourcery.com>
7752 Julian Brown <julian@codesourcery.com>
7753 Cesar Philippidis <cesar@codesourcery.com>
7754 Nathan Sidwell <nathan@codesourcery.com>
7755 Tobias Burnus <burnus@net-b.de>
7756
7757 * Makefile.am (search_path): Add $(top_srcdir)/../include.
7758 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
7759 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
7760 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
7761 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
7762 Include $(top_srcdir)/plugin/Makefrag.am.
7763 (nodist_libsubinclude_HEADERS): Add openacc.h.
7764 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
7765 openacc.f90, openacc.mod, openacc_kinds.mod.
7766 (omp_lib.mod): Generalize into...
7767 (%.mod): ... this new rule.
7768 (openacc_kinds.mod, openacc.mod): New rules.
7769 * plugin/configfrag.ac: New file.
7770 * configure.ac: Move plugin/offloading support into it. Include
7771 it. Instantiate testsuite/libgomp-test-support.pt.exp.
7772 * plugin/Makefrag.am: New file.
7773 * testsuite/Makefile.am (OFFLOAD_TARGETS)
7774 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
7775 export.
7776 (libgomp-test-support.exp): New rule.
7777 (all-local): Depend on it.
7778 * Makefile.in: Regenerate.
7779 * testsuite/Makefile.in: Regenerate.
7780 * config.h.in: Likewise.
7781 * configure: Likewise.
7782 * configure.tgt: Harden shell syntax.
7783 * env.c: Include "oacc-int.h".
7784 (parse_acc_device_type): New function.
7785 (gomp_debug_var, goacc_device_type, goacc_device_num): New
7786 variables.
7787 (initialize_env): Initialize those. Call
7788 goacc_runtime_initialize.
7789 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
7790 (gomp_fatal): Call gomp_vfatal.
7791 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
7792 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
7793 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
7794 (splay_tree_node, splay_tree, splay_tree_key)
7795 (struct target_mem_desc, struct splay_tree_key_s)
7796 (struct gomp_memory_mapping, struct acc_dispatch_t)
7797 (struct gomp_device_descr, gomp_acc_insert_pointer)
7798 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
7799 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
7800 (gomp_free_memmap, gomp_fini_device): New declarations.
7801 (gomp_vdebug, gomp_debug): New macros.
7802 Include "splay-tree.h".
7803 * libgomp.map (OACC_2.0): New symbol version. Use for
7804 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
7805 acc_set_device_type_h_, acc_get_device_type,
7806 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
7807 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
7808 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
7809 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
7810 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
7811 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
7812 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
7813 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
7814 acc_copyin_array_h_, acc_present_or_copyin,
7815 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
7816 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
7817 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
7818 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
7819 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
7820 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
7821 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
7822 acc_update_device, acc_update_device_32_h_,
7823 acc_update_device_64_h_, acc_update_device_array_h_,
7824 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
7825 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
7826 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
7827 acc_is_present_64_h_, acc_is_present_array_h_,
7828 acc_memcpy_to_device, acc_memcpy_from_device,
7829 acc_get_current_cuda_device, acc_get_current_cuda_context,
7830 acc_get_cuda_stream, acc_set_cuda_stream.
7831 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
7832 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
7833 GOACC_update, GOACC_wait, GOACC_get_thread_num,
7834 GOACC_get_num_threads.
7835 (GOMP_PLUGIN_1.0): New symbol version. Use for
7836 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
7837 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
7838 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
7839 GOMP_PLUGIN_acc_thread.
7840 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
7841 environment variable.
7842 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
7843 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
7844 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
7845 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
7846 (splay_tree_remove): New declarations.
7847 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
7848 (splay_tree_remove, splay_tree_lookup): Move into...
7849 * splay-tree.c: ... this new file.
7850 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
7851 (splay_tree_node, splay_tree, splay_tree_key)
7852 (struct target_mem_desc, struct splay_tree_key_s)
7853 (struct gomp_device_descr): Don't declare.
7854 (num_devices_openmp): New variable.
7855 (gomp_get_num_devices ): Use it.
7856 (gomp_init_targets_once): New function.
7857 (gomp_get_num_devices ): Use it.
7858 (get_kind, gomp_copy_from_async, gomp_free_memmap)
7859 (gomp_fini_device, gomp_register_image_for_device): New functions.
7860 (gomp_map_vars): Add devaddrs parameter.
7861 (gomp_update): Add mm parameter.
7862 (gomp_init_device): Move most of it into...
7863 (gomp_init_tables): ... this new function.
7864 (gomp_register_images_for_device): Remove function.
7865 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
7866 Make them hidden instead of static.
7867 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
7868 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
7869 (GOMP_target_end_data, GOMP_target_update)
7870 (gomp_load_plugin_for_device, gomp_target_init): Update for
7871 OpenACC changes.
7872 * oacc-async.c: New file.
7873 * oacc-cuda.c: Likewise.
7874 * oacc-host.c: Likewise.
7875 * oacc-init.c: Likewise.
7876 * oacc-int.h: Likewise.
7877 * oacc-mem.c: Likewise.
7878 * oacc-parallel.c: Likewise.
7879 * oacc-plugin.c: Likewise.
7880 * oacc-plugin.h: Likewise.
7881 * oacc-ptx.h: Likewise.
7882 * openacc.f90: Likewise.
7883 * openacc.h: Likewise.
7884 * openacc_lib.h: Likewise.
7885 * plugin/plugin-host.c: Likewise.
7886 * plugin/plugin-nvptx.c: Likewise.
7887 * libgomp-plugin.c: Likewise.
7888 * libgomp-plugin.h: Likewise.
7889 * libgomp_target.h: Remove file after merging content into the
7890 former file. Update all users.
7891 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
7892 (offload_targets_s, offload_targets_s_openacc): New variables.
7893 (check_effective_target_openacc_nvidia_accel_present)
7894 (check_effective_target_openacc_nvidia_accel_selected): New
7895 procedures.
7896 (libgomp_init): Update for OpenACC changes.
7897 * testsuite/libgomp-test-support.exp.in: New file.
7898 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
7899 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7900 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7901 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
7902 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
7903 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
7904 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
7905 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
7906 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
7907 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
7908 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
7909 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
7910 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
7911 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
7912 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
7913 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
7914 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
7915 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
7916 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
7917 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
7918 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
7919 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
7920 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
7921 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
7922 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7923 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
7924 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
7925 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
7926 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
7927 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
7928 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7929 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
7930 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
7931 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
7932 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
7933 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7934 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
7935 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7936 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
7937 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
7938 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
7939 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
7940 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7941 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7942 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7943 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
7944 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7945 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7946 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7947 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7948 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7949 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
7950 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7951 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7952 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7953 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7954 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7955 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7956 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7957 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
7958 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
7959 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
7960 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7961 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7962 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7963 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
7964 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
7965 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7966 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7967 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7968 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
7969 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7970 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7971 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7972 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
7973 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
7974 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7975 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7976 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
7977 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
7978 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
7979 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
7980 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7981 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7982 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7983 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
7984 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
7985 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7986 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7987 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
7988 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
7989 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
7990 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
7991 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7992 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7993 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7994 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7995 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
7996 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7997 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7998 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
7999 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
8000 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
8001 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8002 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
8003 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
8004 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
8005 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
8006 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
8007 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8008 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
8009 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
8010 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8011 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
8012 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8013 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
8014 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
8015 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
8016 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
8017 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
8018 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
8019 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
8020 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
8021 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
8022 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8023 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
8024 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8025 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
8026 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
8027 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
8028 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
8029 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
8030 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8031 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
8032 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
8033 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8034 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8035 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8036 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8037 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
8038 Likewise.
8039 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
8040 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
8041 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
8042 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
8043 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
8044 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
8045 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8046 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8047 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8048 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8049 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8050 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8051 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8052 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
8053 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
8054 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
8055 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
8056 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
8057 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
8058 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
8059 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
8060 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8061 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8062 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
8063 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
8064 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
8065 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8066 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8067 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8068 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8069 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8070 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8071 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8072 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8073 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
8074 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
8075 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
8076 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
8077 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
8078 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
8079 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
8080 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
8081 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
8082 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
8083 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
8084 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
8085 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
8086 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
8087 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
8088 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8089 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8090 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8091 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8092 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8093 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
8094 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
8095 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
8096 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
8097 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
8098 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
8099
8100 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
8101 Julian Brown <julian@codesourcery.com>
8102 David Malcolm <dmalcolm@redhat.com>
8103
8104 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
8105 to "GNU Offloading and Multi Processing Runtime Library". Change
8106 all users.
8107 * configure: Regenerate.
8108 * libgomp.texi: Update.
8109
8110 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
8111
8112 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
8113 "$tgt_dir/lib32".
8114 * configure: Regenerate.
8115
8116 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
8117 "intelmic" in $offload_targets.
8118
8119 2015-01-05 Jakub Jelinek <jakub@redhat.com>
8120
8121 Update copyright years.
8122
8123 * libgomp.texi: Bump @copying's copyright year.
8124
8125 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8126
8127 * testsuite/lib/libgomp.exp: Load target-utils.exp.
8128 Move load of target-supports.exp earlier.
8129
8130 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
8131
8132 * testsuite/libgomp.c/target-9.c: New test.
8133
8134 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
8135
8136 * config.h.in: Regenerate.
8137 * configure: Regenerate.
8138 * configure.ac: Add GCC_CHECK_EMUTLS.
8139 * libgomp.h: Add check for USE_EMUTLS: this case
8140 is equal to HAVE_TLS.
8141 * team.c: Likewise.
8142
8143 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
8144
8145 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
8146
8147 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
8148 Ilya Verbin <ilya.verbin@intel.com>
8149
8150 * testsuite/libgomp.c/target-critical-1.c: New test.
8151
8152 2014-11-26 Jakub Jelinek <jakub@redhat.com>
8153
8154 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
8155 to dg-options unless expensive testing is on.
8156 (TESTITERS): Define to N if not defined.
8157 (main): Use TESTITERS instead of N.
8158 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
8159 dg-additional-options depending on whether expensive testing is on.
8160 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
8161 Decrease N to 100000 and CHUNKSZ to 10000.
8162
8163 2014-11-24 Jakub Jelinek <jakub@redhat.com>
8164
8165 PR fortran/63938
8166 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
8167 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
8168
8169 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
8170
8171 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
8172
8173 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
8174
8175 PR bootstrap/63784
8176 * configure: Regenerated.
8177
8178 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
8179
8180 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
8181 vect_simd_clones effective target.
8182 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8183
8184 2014-11-14 Jakub Jelinek <jakub@redhat.com>
8185
8186 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
8187 of 32 as block_size.
8188 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
8189 instead of 32 as block_size.
8190
8191 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
8192 Ilya Verbin <ilya.verbin@intel.com>
8193
8194 * Makefile.in: Regenerate.
8195 * configure: Regenerate.
8196 * configure.ac: Set up offload_additional_options,
8197 offload_additional_lib_paths and offload_targets.
8198 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
8199 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
8200 * testsuite/Makefile.in: Regenerate.
8201 * testsuite/lib/libgomp.exp (libgomp_init): Append
8202 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
8203 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
8204 build directory to LD_LIBRARY_PATH for intelmic offload targets.
8205
8206 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
8207 Ilya Verbin <ilya.verbin@intel.com>
8208 Kirill Yukhin <kirill.yukhin@intel.com>
8209 Ilya Tocar <ilya.tocar@intel.com>
8210
8211 * testsuite/lib/libgomp.exp
8212 (check_effective_target_offload_device): New.
8213 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
8214 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
8215 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
8216 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
8217 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
8218 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
8219 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
8220 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
8221 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
8222 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
8223 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
8224 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
8225 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
8226 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
8227 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
8228 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
8229 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
8230 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
8231 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
8232 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
8233 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
8234 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
8235 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
8236 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
8237 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
8238 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
8239 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
8240 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
8241 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
8242 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
8243 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
8244 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
8245 * testsuite/libgomp.c/target-7.c: Fix test.
8246 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
8247 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
8248 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
8249 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
8250 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
8251 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
8252 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
8253 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
8254 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
8255 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
8256 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
8257 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
8258 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
8259 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
8260 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
8261 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
8262 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
8263 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
8264 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8265 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
8266 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
8267 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
8268 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
8269 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
8270 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
8271 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
8272 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
8273 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
8274 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
8275 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
8276 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
8277
8278 2014-11-13 Jakub Jelinek <jakub@redhat.com>
8279 Ilya Verbin <ilya.verbin@intel.com>
8280 Thomas Schwinge <thomas@codesourcery.com>
8281 Andrey Turetskiy <andrey.turetskiy@intel.com>
8282
8283 * libgomp.map (GOMP_4.0.1): New symbol version.
8284 Add GOMP_offload_register.
8285 * libgomp_target.h: New file.
8286 * splay-tree.h: New file.
8287 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
8288 (gomp_target_init): New forward declaration.
8289 (gomp_is_initialized): New static variable.
8290 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
8291 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
8292 New structures.
8293 (offload_images, num_offload_images, devices, num_devices): New static
8294 variables.
8295 (splay_compare): New static function.
8296 (struct gomp_device_descr): New structure.
8297 (gomp_get_num_devices): Call gomp_target_init.
8298 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
8299 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
8300 (GOMP_offload_register): New function.
8301 (GOMP_target): Arrange for host callback to be performed in a separate
8302 initial thread and contention group, inheriting ICVs from
8303 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
8304 Add device initialization and lookup for target function in splay tree.
8305 (GOMP_target_data): Add device initialization and call gomp_map_vars.
8306 (GOMP_target_end_data): Call gomp_unmap_vars.
8307 (GOMP_target_update): Add device initialization and call gomp_update.
8308 (gomp_load_plugin_for_device, gomp_register_images_for_device)
8309 (gomp_target_init): New static functions.
8310
8311 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
8312 Thomas Schwinge <thomas@codesourcery.com>
8313 Ilya Verbin <ilya.verbin@intel.com>
8314 Andrey Turetskiy <andrey.turetskiy@intel.com>
8315
8316 * config.h.in: Regenerate.
8317 * configure: Regenerate.
8318 * configure.ac: Check for libdl, required for plugin support.
8319 (PLUGIN_SUPPORT): Define if plugins are supported.
8320 (enable_offload_targets): Support Intel MIC targets.
8321 (OFFLOAD_TARGETS): List of target names suitable for offloading.
8322
8323 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8324
8325 PR target/63610
8326 * configure: Regenerate.
8327
8328 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8329
8330 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
8331
8332 2014-10-06 Marek Polacek <polacek@redhat.com>
8333
8334 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
8335 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
8336 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
8337 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
8338
8339 2014-10-06 Marek Polacek <polacek@redhat.com>
8340
8341 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
8342 * testsuite/libgomp.c/nqueens-1.c: Likewise.
8343 * testsuite/libgomp.c/pr26943-3.c: Likewise.
8344 * testsuite/libgomp.c/pr26943-4.c: Likewise.
8345 * testsuite/libgomp.c/pr36802-2.c: Likewise.
8346 * testsuite/libgomp.c/pr36802-3.c: Likewise.
8347 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
8348 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
8349 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
8350 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
8351 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
8352 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
8353 * testsuite/libgomp.c/omp-single-1.c: Likewise.
8354 * testsuite/libgomp.c/omp-single-2.c: Likewise.
8355 * testsuite/libgomp.c/omp_matvec.c: Likewise.
8356 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
8357 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
8358 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
8359 declarations.
8360
8361 2014-10-03 Jakub Jelinek <jakub@redhat.com>
8362
8363 PR libgomp/61200
8364 * testsuite/libgomp.c/pr61200.c: New test.
8365
8366 2014-09-18 Jakub Jelinek <jakub@redhat.com>
8367
8368 PR c++/63248
8369 * testsuite/libgomp.c++/pr63248.C: New test.
8370
8371 2014-08-04 Jakub Jelinek <jakub@redhat.com>
8372
8373 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
8374 is not zero, but taskgroup->children is NULL and there are
8375 any task->children, schedule those instead of waiting.
8376 * testsuite/libgomp.c/depend-6.c: New test.
8377 * testsuite/libgomp.c/depend-7.c: New test.
8378 * testsuite/libgomp.c/depend-8.c: New test.
8379 * testsuite/libgomp.c/depend-9.c: New test.
8380 * testsuite/libgomp.c/depend-10.c: New test.
8381
8382 2014-08-01 Jakub Jelinek <jakub@redhat.com>
8383
8384 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
8385 (struct gomp_taskwait): New type.
8386 (struct gomp_task): Add taskwait and parent_depends_on, remove
8387 in_taskwait and taskwait_sem fields.
8388 (gomp_finish_task): Don't destroy taskwait_sem.
8389 * task.c (gomp_init_task): Don't init in_taskwait, instead init
8390 taskwait and parent_depends_on.
8391 (GOMP_task): For if (0) tasks with depend clause that depend on
8392 earlier tasks don't defer them, instead call
8393 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
8394 Initialize redundant_out field, for redundant out entries just
8395 move them at the end of linked list instead of removing them
8396 completely, and set redundant_out flag instead of redundant.
8397 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
8398 that task.
8399 (gomp_task_run_post_handle_dependers): If parent is in
8400 gomp_task_maybe_wait_for_dependencies and newly runnable task
8401 is not parent_depends_on, queue it in parent->children linked
8402 list after all runnable tasks with parent_depends_on set.
8403 Adjust for addition of taskwait indirection.
8404 (gomp_task_run_post_remove_parent): If parent is in
8405 gomp_task_maybe_wait_for_dependencies and task to be removed
8406 is parent_depends_on, decrement n_depend and if needed awake
8407 parent. Adjust for addition of taskwait indirection.
8408 (GOMP_taskwait): Adjust for addition of taskwait indirection.
8409 (gomp_task_maybe_wait_for_dependencies): New function.
8410 * testsuite/libgomp.c/depend-5.c: New test.
8411
8412 2014-07-13 Tobias Burnus <burnus@net-b.de>
8413
8414 * testsuite/libgomp.fortran/pr34020.f90: Make compile
8415 with TS 18508/Fortran 2015.
8416
8417 2014-07-06 Marek Polacek <polacek@redhat.com>
8418
8419 PR c/6940
8420 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
8421
8422 2014-07-03 Jakub Jelinek <jakub@redhat.com>
8423
8424 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
8425 matches regex $lang_source_re, add $lang_include_flags to options.
8426 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
8427 * testsuite/libgomp.c++/c++.exp: Likewise.
8428 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
8429 and lang_include_flags instead of adding -fintrinsic-modules-path= to
8430 ALWAYS_CFLAGS.
8431 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
8432
8433 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
8434
8435 * testsuite/libgomp.fortran/fortran.exp: Explain
8436 gfortran-dg-runtest usage.
8437
8438 2014-06-25 Jakub Jelinek <jakub@redhat.com>
8439
8440 * testsuite/libgomp.fortran/simd5.f90: New test.
8441 * testsuite/libgomp.fortran/simd6.f90: New test.
8442 * testsuite/libgomp.fortran/simd7.f90: New test.
8443
8444 2014-06-24 Jakub Jelinek <jakub@redhat.com>
8445
8446 * testsuite/libgomp.c/for-2.c: Define SC to static for
8447 #pragma omp for simd testing.
8448 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
8449 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
8450 SC macro.
8451 * testsuite/libgomp.c/simd-14.c: New test.
8452 * testsuite/libgomp.c/simd-15.c: New test.
8453 * testsuite/libgomp.c/simd-16.c: New test.
8454 * testsuite/libgomp.c/simd-17.c: New test.
8455 * testsuite/libgomp.c++/for-10.C: Define SC to static for
8456 #pragma omp for simd testing.
8457 * testsuite/libgomp.c++/simd10.C: New test.
8458 * testsuite/libgomp.c++/simd11.C: New test.
8459 * testsuite/libgomp.c++/simd12.C: New test.
8460 * testsuite/libgomp.c++/simd13.C: New test.
8461
8462 * testsuite/libgomp.fortran/aligned1.f03: New test.
8463 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
8464 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
8465 tasks with !$omp parallel !$omp single.
8466 * testsuite/libgomp.fortran/target8.f90: New test.
8467 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
8468 not to use trim in the combiner, instead call elemental function.
8469 (fn): New elemental function.
8470 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
8471 Make elemental.
8472 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
8473 omp_in): Likewise.
8474 * testsuite/libgomp.fortran/udr12.f90: New test.
8475 * testsuite/libgomp.fortran/udr13.f90: New test.
8476 * testsuite/libgomp.fortran/udr14.f90: New test.
8477 * testsuite/libgomp.fortran/udr15.f90: New test.
8478
8479 2014-06-18 Jakub Jelinek <jakub@redhat.com>
8480
8481 * omp_lib.f90.in (openmp_version): Set to 201307.
8482 * omp_lib.h.in (openmp_version): Likewise.
8483 * testsuite/libgomp.c/target-8.c: New test.
8484 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
8485 and inbranch clauses.
8486 * testsuite/libgomp.fortran/depend-3.f90: New test.
8487 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
8488 openmp_version.
8489 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8490 * testsuite/libgomp.fortran/target1.f90: New test.
8491 * testsuite/libgomp.fortran/target2.f90: New test.
8492 * testsuite/libgomp.fortran/target3.f90: New test.
8493 * testsuite/libgomp.fortran/target4.f90: New test.
8494 * testsuite/libgomp.fortran/target5.f90: New test.
8495 * testsuite/libgomp.fortran/target6.f90: New test.
8496 * testsuite/libgomp.fortran/target7.f90: New test.
8497
8498 2014-06-10 Jakub Jelinek <jakub@redhat.com>
8499
8500 PR fortran/60928
8501 * testsuite/libgomp.fortran/allocatable9.f90: New test.
8502 * testsuite/libgomp.fortran/allocatable10.f90: New test.
8503 * testsuite/libgomp.fortran/allocatable11.f90: New test.
8504 * testsuite/libgomp.fortran/allocatable12.f90: New test.
8505 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
8506 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
8507 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
8508 * testsuite/libgomp.fortran/associate1.f90: New test.
8509 * testsuite/libgomp.fortran/associate2.f90: New test.
8510 * testsuite/libgomp.fortran/procptr1.f90: New test.
8511
8512 2014-06-06 Jakub Jelinek <jakub@redhat.com>
8513
8514 * testsuite/libgomp.fortran/simd1.f90: New test.
8515 * testsuite/libgomp.fortran/udr1.f90: New test.
8516 * testsuite/libgomp.fortran/udr2.f90: New test.
8517 * testsuite/libgomp.fortran/udr3.f90: New test.
8518 * testsuite/libgomp.fortran/udr4.f90: New test.
8519 * testsuite/libgomp.fortran/udr5.f90: New test.
8520 * testsuite/libgomp.fortran/udr6.f90: New test.
8521 * testsuite/libgomp.fortran/udr7.f90: New test.
8522 * testsuite/libgomp.fortran/udr8.f90: New test.
8523 * testsuite/libgomp.fortran/udr9.f90: New test.
8524 * testsuite/libgomp.fortran/udr10.f90: New test.
8525 * testsuite/libgomp.fortran/udr11.f90: New test.
8526
8527 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
8528
8529 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
8530 vect_simd_clones effective target.
8531 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
8532
8533 2014-05-21 Jakub Jelinek <jakub@redhat.com>
8534
8535 PR middle-end/61252
8536 * testsuite/libgomp.c++/simd-9.C: New test.
8537
8538 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
8539
8540 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
8541 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
8542 texts according to their @menu entry positions.
8543
8544 2014-05-11 Jakub Jelinek <jakub@redhat.com>
8545
8546 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
8547 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
8548 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
8549 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
8550 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
8551 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
8552 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
8553 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
8554 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
8555 * testsuite/libgomp.fortran/depend-1.f90: New test.
8556 * testsuite/libgomp.fortran/depend-2.f90: New test.
8557 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
8558 * testsuite/libgomp.fortran/simd1.f90: New test.
8559 * testsuite/libgomp.fortran/simd2.f90: New test.
8560 * testsuite/libgomp.fortran/simd3.f90: New test.
8561 * testsuite/libgomp.fortran/simd4.f90: New test.
8562 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
8563
8564 2014-05-02 Jakub Jelinek <jakub@redhat.com>
8565
8566 * testsuite/libgomp.c/simd-10.c: New test.
8567 * testsuite/libgomp.c/simd-11.c: New test.
8568 * testsuite/libgomp.c/simd-12.c: New test.
8569 * testsuite/libgomp.c/simd-13.c: New test.
8570
8571 2014-04-24 Jakub Jelinek <jakub@redhat.com>
8572
8573 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
8574 atomic type clauses in any order and optional comma in between.
8575 * testsuite/libgomp.c++/atomic-15.C: Likewise.
8576 * testsuite/libgomp.c/atomic-17.c: Likewise.
8577
8578 * testsuite/libgomp.c/simd-7.c: New test.
8579 * testsuite/libgomp.c/simd-8.c: New test.
8580 * testsuite/libgomp.c/simd-9.c: New test.
8581 * testsuite/libgomp.c/loop-16.c: New test.
8582
8583 2014-04-02 Richard Henderson <rth@redhat.com>
8584
8585 * config/linux/futex.h (futex_wait): Get error value from errno.
8586 (futex_wake): Likewise.
8587
8588 2014-03-25 Jakub Jelinek <jakub@redhat.com>
8589
8590 PR c++/60331
8591 * testsuite/libgomp.c++/udr-11.C: New test.
8592 * testsuite/libgomp.c++/udr-12.C: New test.
8593 * testsuite/libgomp.c++/udr-13.C: New test.
8594 * testsuite/libgomp.c++/udr-14.C: New test.
8595 * testsuite/libgomp.c++/udr-15.C: New test.
8596 * testsuite/libgomp.c++/udr-16.C: New test.
8597 * testsuite/libgomp.c++/udr-17.C: New test.
8598 * testsuite/libgomp.c++/udr-18.C: New test.
8599 * testsuite/libgomp.c++/udr-19.C: New test.
8600
8601 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8602
8603 Update copyright years
8604
8605 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8606
8607 * hashtab.h: Use the standard form for the copyright notice.
8608
8609 2014-01-02 Tobias Burnus <burnus@net-b.de>
8610
8611 * libgomp.texi: Bump @copying's copyright year.
8612
8613 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
8614
8615 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
8616 alloca () with __builtin_alloca ().
8617 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
8618 * testsuite/libgomp.c/lock-3.c: Likewise.
8619 * testsuite/libgomp.c/pr48591.c: Likewise.
8620
8621 2013-12-17 Jakub Jelinek <jakub@redhat.com>
8622
8623 PR testsuite/59534
8624 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
8625 comparisons.
8626
8627 2013-12-16 Jakub Jelinek <jakub@redhat.com>
8628
8629 PR libgomp/58756
8630 * testsuite/libgomp.c/pr58756.c: New test.
8631
8632 2013-12-12 Jakub Jelinek <jakub@redhat.com>
8633
8634 PR libgomp/59467
8635 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
8636 !$omp parallel.
8637
8638 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
8639
8640 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
8641 ALWAYS_CFLAGS.
8642 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
8643 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
8644 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
8645 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
8646 Likewise.
8647
8648 * libgomp_g.h: Include <stddef.h> for size_t.
8649
8650 * libgomp.spec.in: Update comment about libgomp's dependencies.
8651 * configure.ac: Likewise.
8652 * configure: Regenerate.
8653
8654 2013-10-16 Tobias Burnus <burnus@net-b.de>
8655
8656 * libgomp.texi: (Runtime Library Routines): Update references for
8657 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
8658 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
8659 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
8660 (Environment Variables): Update references for OpenMP 4.0. Add
8661 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
8662 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
8663 order.
8664
8665 2013-10-14 Jakub Jelinek <jakub@redhat.com>
8666
8667 * env.c (parse_bind_var): Initialize value to avoid
8668 (false positive) warning.
8669
8670 2013-10-12 Jakub Jelinek <jakub@redhat.com>
8671
8672 PR libgomp/58691
8673 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
8674 to check variable.
8675 (gomp_init_num_threads): Move i variable declaration into
8676 #ifdef CPU_ALLOC_SIZE block.
8677 * config/linux/affinity.c (gomp_affinity_init_level): Test
8678 gomp_places_list_len == 0 rather than gomp_places_list == 0
8679 when checking for topology reading error.
8680 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
8681 * env.c (parse_affinity): Add ignore argument, if true, don't populate
8682 gomp_places_list, only parse env var and always return false.
8683 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
8684 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
8685 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
8686 and either of these variables were parsed correctly into a places
8687 list.
8688
8689 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
8690 Jakub Jelinek <jakub@redhat.com>
8691
8692 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
8693 of 5 loopfn matches.
8694 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
8695 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
8696 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
8697 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
8698 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
8699 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8700 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8701 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
8702
8703 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
8704
8705 * Makefile.am (omp_lib.mod): Streamline rule.
8706 * Makefile.in: Regenerate.
8707
8708 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
8709 exceptions.
8710
8711 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
8712 * testsuite/libgomp.fortran/lib1.f90: Likewise.
8713 * testsuite/libgomp.fortran/lib2.f: Likewise.
8714 * testsuite/libgomp.fortran/lib3.f: Likewise.
8715
8716 * configure.ac: Typo fix.
8717 * configure: Regenerate.
8718
8719 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
8720 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8721
8722 * omp.h.in: Don't touch the user's namespace.
8723
8724 2013-10-11 Jakub Jelinek <jakub@redhat.com>
8725 Tobias Burnus <burnus@net-b.de>
8726 Richard Henderson <rth@redhat.com>
8727
8728 * target.c: New file.
8729 * Makefile.am (libgomp_la_SOURCES): Add target.c.
8730 * Makefile.in: Regenerated.
8731 * libgomp_g.h (GOMP_task): Add depend argument.
8732 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
8733 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
8734 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
8735 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
8736 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
8737 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
8738 GOMP_taskgroup_start, GOMP_taskgroup_end,
8739 GOMP_parallel_sections): New prototypes.
8740 * fortran.c (omp_is_initial_device): Add ialias_redirect.
8741 (omp_is_initial_device_): New function.
8742 (ULP, STR1, STR2, ialias_redirect): Removed.
8743 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
8744 omp_set_default_device_8_, omp_get_default_device_,
8745 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
8746 functions.
8747 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
8748 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
8749 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
8750 @@GOMP_4.0.
8751 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
8752 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
8753 omp_set_default_device, omp_set_default_device_,
8754 omp_set_default_device_8_, omp_get_default_device,
8755 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
8756 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
8757 omp_get_team_num_): Export @@OMP_4.0.
8758 * team.c (struct gomp_thread_start_data): Add place field.
8759 (gomp_thread_start): Clear thr->thread_pool and
8760 thr->task before returning. Use gomp_team_barrier_wait_final
8761 instead of gomp_team_barrier_wait. Initialize thr->place.
8762 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
8763 team_cancelled and task_queued_count fields.
8764 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
8765 before calling pthread_exit.
8766 (gomp_free_thread): No longer static. Use
8767 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
8768 (gomp_team_start): Add flags argument. Set
8769 thr->thread_pool->threads_busy to nthreads immediately after creating
8770 new pool. Use gomp_managed_threads_lock instead of
8771 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
8772 (gomp_team_end): Use gomp_managed_threads_lock instead of
8773 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
8774 of gomp_team_barrier_wait. If team->team_cancelled, call
8775 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
8776 rather than thr->ts.work_share.
8777 (initialize_team): Don't call gomp_sem_init here.
8778 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
8779 caller.
8780 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
8781 * env.c (gomp_global_icv): Add default_device_var, target_data and
8782 bind_var initializers.
8783 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
8784 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
8785 gomp_places_list_len): New variables.
8786 (parse_bind_var, parse_one_place, parse_places_var): New functions.
8787 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
8788 sized places.
8789 (gomp_cancel_var): New global variable.
8790 (parse_int): New function.
8791 (handle_omp_display_env): New function.
8792 (initialize_env): Use it. Initialize default_device_var.
8793 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
8794 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
8795 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
8796 been successfully parsed (and call gomp_init_affinity in that case).
8797 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
8798 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
8799 omp_get_team_num, omp_is_initial_device): New functions.
8800 * libgomp.h: Include stdlib.h.
8801 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
8802 Define.
8803 (struct target_mem_desc): Forward declare.
8804 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
8805 and thread_limit_var fields.
8806 (gomp_get_num_devices): New prototype.
8807 (gomp_cancel_var): New extern decl.
8808 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
8809 team_cancelled and task_queued_count fields. Add comments about
8810 task_{,queued_,running_}count.
8811 (gomp_cancel_kind): New enum.
8812 (gomp_work_share_end_cancel): New prototype.
8813 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
8814 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
8815 and depend fields.
8816 (struct gomp_taskgroup): New type.
8817 (struct gomp_task_depend_entry,
8818 struct gomp_dependers_vec): New types.
8819 (gomp_finish_task): Free depend_hash if non-NULL.
8820 (struct gomp_team_state): Add place_partition_off
8821 and place_partition_len fields.
8822 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
8823 gomp_places_list_len): New extern decls.
8824 (struct gomp_thread): Add place field.
8825 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
8826 (gomp_init_thread_affinity): Add place argument.
8827 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
8828 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
8829 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
8830 gomp_affinity_init_level, gomp_affinity_print_place): New
8831 prototypes.
8832 (gomp_team_start): Add flags argument.
8833 (gomp_thread_limit_var, gomp_remaining_threads_count,
8834 gomp_remaining_threads_lock): Remove.
8835 (gomp_managed_threads_lock): New variable.
8836 (struct gomp_thread_pool): Add threads_busy field.
8837 (gomp_free_thread): New prototype.
8838 * task.c: Include hashtab.h.
8839 (hash_entry_type): New typedef.
8840 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
8841 (gomp_init_task): Clear dependers, depend_hash, depend_count,
8842 copy_ctors_done and taskgroup fields.
8843 (GOMP_task): Add depend argument, handle depend clauses. If
8844 gomp_team_barrier_cancelled or if it's taskgroup has been
8845 cancelled, don't queue or start new tasks. Set copy_ctors_done
8846 field if needed. Initialize taskgroup field. If copy_ctors_done
8847 and already cancelled, don't discard the task. If taskgroup is
8848 non-NULL, enqueue the task into taskgroup queue. Increment
8849 num_children field in taskgroup. Increment task_queued_count.
8850 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
8851 gomp_task_run_post_remove_taskgroup): New inline functions.
8852 (gomp_task_run_post_handle_depend_hash,
8853 gomp_task_run_post_handle_dependers,
8854 gomp_task_run_post_handle_depend): New functions.
8855 (GOMP_taskwait): Use them. If more than one new tasks
8856 have been queued, wake other threads if needed.
8857 (gomp_barrier_handle_tasks): Likewise. If
8858 gomp_team_barrier_cancelled, don't start any new tasks, just free
8859 all tasks.
8860 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
8861 * omp_lib.f90.in
8862 (omp_proc_bind_kind, omp_proc_bind_false,
8863 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
8864 omp_proc_bind_spread): New params.
8865 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
8866 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
8867 omp_get_team_num, omp_is_initial_device): New interfaces.
8868 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
8869 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
8870 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
8871 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
8872 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
8873 useless use omp_lib_kinds.
8874 * omp.h.in (omp_proc_bind_t): New typedef.
8875 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
8876 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
8877 omp_get_team_num, omp_is_initial_device): New prototypes.
8878 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
8879 through to gomp_team_start.
8880 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
8881 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
8882 Adjust gomp_parallel_loop_start callers.
8883 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
8884 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
8885 GOMP_loop_end_cancel): New functions.
8886 (GOMP_parallel_end): Add ialias_redirect.
8887 * hashtab.h: New file.
8888 * libgomp.texi (Environment Variables): Minor cleanup,
8889 update section refs to OpenMP 4.0rc2.
8890 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
8891 environment variables.
8892 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
8893 team->work_shares_to_free to thr->ts.work_share before calling
8894 free_work_share.
8895 (gomp_work_share_end_cancel): New function.
8896 * config/linux/proc.c: Include errno.h.
8897 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
8898 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
8899 sizeof (cpu_set_t) to determine number of iterations. Fix up check
8900 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
8901 gomp_cpuset_size is sizeof (cpu_set_t).
8902 (gomp_init_num_threads): Initialize gomp_cpuset_size,
8903 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
8904 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
8905 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
8906 contain any logical CPUs.
8907 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
8908 is NULL. Use gomp_cpusetp instead of &cpuset and pass
8909 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
8910 pthread_getaffinity_np. Check gomp_places_list instead of
8911 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
8912 * config/linux/bar.c (gomp_barrier_wait_end,
8913 gomp_barrier_wait_last): Use BAR_* defines.
8914 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
8915 from state where needed. Set work_share_cancelled to 0 on last
8916 thread.
8917 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
8918 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
8919 functions.
8920 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
8921 Add cpusetsize argument.
8922 (gomp_cpuset_size, gomp_cpusetp): Declare.
8923 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
8924 (affinity_counter): Remove.
8925 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
8926 if CPU_ALLOC_SIZE isn't defined.
8927 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
8928 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
8929 bind current thread to the first place.
8930 (gomp_init_thread_affinity): Rewritten. Add place argument, just
8931 pthread_setaffinity_np to gomp_places_list[place].
8932 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
8933 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
8934 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
8935 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
8936 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
8937 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
8938 (gomp_barrier_t): Add awaited_final field.
8939 (gomp_barrier_init): Initialize awaited_final field.
8940 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
8941 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
8942 prototypes.
8943 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
8944 defines.
8945 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
8946 gomp_team_barrier_cancelled): New inline functions.
8947 (gomp_barrier_last_thread,
8948 gomp_team_barrier_set_task_pending,
8949 gomp_team_barrier_clear_task_pending,
8950 gomp_team_barrier_set_waiting_for_tasks,
8951 gomp_team_barrier_waiting_for_tasks,
8952 gomp_team_barrier_done): Use BAR_* defines.
8953 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
8954 (gomp_barrier_wait_end): Use BAR_* defines.
8955 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
8956 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
8957 Use BAR_* defines.
8958 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
8959 gomp_team_barrier_cancel): New functions.
8960 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
8961 argument.
8962 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
8963 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
8964 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
8965 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
8966 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
8967 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
8968 (gomp_barrier_t): Add cancellable field.
8969 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
8970 gomp_team_barrier_cancel): New prototypes.
8971 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
8972 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
8973 gomp_team_barrier_cancelled): New inline functions.
8974 (gomp_barrier_wait_start, gomp_barrier_last_thread,
8975 gomp_team_barrier_set_task_pending,
8976 gomp_team_barrier_clear_task_pending,
8977 gomp_team_barrier_set_waiting_for_tasks,
8978 gomp_team_barrier_waiting_for_tasks,
8979 gomp_team_barrier_done): Use BAR_* defines.
8980 * barrier.c (GOMP_barrier_cancel): New function.
8981 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
8982 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
8983 omp_proc_bind_spread): New params.
8984 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
8985 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
8986 omp_get_team_num, omp_is_initial_device): New externals.
8987 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
8988 New functions.
8989 (gomp_resolve_num_threads): Adjust for thread_limit now being in
8990 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
8991 infinity. If not nested, just return minimum of max_num_threads
8992 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
8993 to the returned value. Otherwise, don't update atomically
8994 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
8995 (GOMP_parallel_end): Adjust for thread_limit now being in
8996 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
8997 infinity. Adjust threads_busy in the pool rather than
8998 gomp_remaining_threads_count. Remember team->nthreads and call
8999 gomp_team_end before adjusting threads_busy, if not nested
9000 afterwards, just set it to 1 non-atomically. Add ialias.
9001 (GOMP_parallel_start): Adjust gomp_team_start caller.
9002 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
9003 * testsuite/libgomp.c/affinity-1.c: New test.
9004 * testsuite/libgomp.c/atomic-15.c: New test.
9005 * testsuite/libgomp.c/atomic-16.c: New test.
9006 * testsuite/libgomp.c/atomic-17.c: New test.
9007 * testsuite/libgomp.c/cancel-for-1.c: New test.
9008 * testsuite/libgomp.c/cancel-for-2.c: New test.
9009 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
9010 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
9011 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
9012 * testsuite/libgomp.c/cancel-sections-1.c: New test.
9013 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
9014 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
9015 * testsuite/libgomp.c/depend-1.c: New test.
9016 * testsuite/libgomp.c/depend-2.c: New test.
9017 * testsuite/libgomp.c/depend-3.c: New test.
9018 * testsuite/libgomp.c/depend-4.c: New test.
9019 * testsuite/libgomp.c/for-1.c: New test.
9020 * testsuite/libgomp.c/for-1.h: New file.
9021 * testsuite/libgomp.c/for-2.c: New test.
9022 * testsuite/libgomp.c/for-2.h: New file.
9023 * testsuite/libgomp.c/for-3.c: New test.
9024 * testsuite/libgomp.c/pr58392.c: New test.
9025 * testsuite/libgomp.c/simd-1.c: New test.
9026 * testsuite/libgomp.c/simd-2.c: New test.
9027 * testsuite/libgomp.c/simd-3.c: New test.
9028 * testsuite/libgomp.c/simd-4.c: New test.
9029 * testsuite/libgomp.c/simd-5.c: New test.
9030 * testsuite/libgomp.c/simd-6.c: New test.
9031 * testsuite/libgomp.c/target-1.c: New test.
9032 * testsuite/libgomp.c/target-2.c: New test.
9033 * testsuite/libgomp.c/target-3.c: New test.
9034 * testsuite/libgomp.c/target-4.c: New test.
9035 * testsuite/libgomp.c/target-5.c: New test.
9036 * testsuite/libgomp.c/target-6.c: New test.
9037 * testsuite/libgomp.c/target-7.c: New test.
9038 * testsuite/libgomp.c/taskgroup-1.c: New test.
9039 * testsuite/libgomp.c/thread-limit-1.c: New test.
9040 * testsuite/libgomp.c/thread-limit-2.c: New test.
9041 * testsuite/libgomp.c/thread-limit-3.c: New test.
9042 * testsuite/libgomp.c/udr-1.c: New test.
9043 * testsuite/libgomp.c/udr-2.c: New test.
9044 * testsuite/libgomp.c/udr-3.c: New test.
9045 * testsuite/libgomp.c++/affinity-1.C: New test.
9046 * testsuite/libgomp.c++/atomic-10.C: New test.
9047 * testsuite/libgomp.c++/atomic-11.C: New test.
9048 * testsuite/libgomp.c++/atomic-12.C: New test.
9049 * testsuite/libgomp.c++/atomic-13.C: New test.
9050 * testsuite/libgomp.c++/atomic-14.C: New test.
9051 * testsuite/libgomp.c++/atomic-15.C: New test.
9052 * testsuite/libgomp.c++/cancel-for-1.C: New test.
9053 * testsuite/libgomp.c++/cancel-for-2.C: New test.
9054 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
9055 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
9056 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
9057 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
9058 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
9059 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
9060 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
9061 * testsuite/libgomp.c++/cancel-test.h: New file.
9062 * testsuite/libgomp.c++/for-9.C: New test.
9063 * testsuite/libgomp.c++/for-10.C: New test.
9064 * testsuite/libgomp.c++/for-11.C: New test.
9065 * testsuite/libgomp.c++/simd-1.C: New test.
9066 * testsuite/libgomp.c++/simd-2.C: New test.
9067 * testsuite/libgomp.c++/simd-3.C: New test.
9068 * testsuite/libgomp.c++/simd-4.C: New test.
9069 * testsuite/libgomp.c++/simd-5.C: New test.
9070 * testsuite/libgomp.c++/simd-6.C: New test.
9071 * testsuite/libgomp.c++/simd-7.C: New test.
9072 * testsuite/libgomp.c++/simd-8.C: New test.
9073 * testsuite/libgomp.c++/target-1.C: New test.
9074 * testsuite/libgomp.c++/target-2.C: New test.
9075 * testsuite/libgomp.c++/target-2-aux.cc: New file.
9076 * testsuite/libgomp.c++/target-3.C: New test.
9077 * testsuite/libgomp.c++/taskgroup-1.C: New test.
9078 * testsuite/libgomp.c++/udr-1.C: New test.
9079 * testsuite/libgomp.c++/udr-2.C: New test.
9080 * testsuite/libgomp.c++/udr-3.C: New test.
9081 * testsuite/libgomp.c++/udr-4.C: New test.
9082 * testsuite/libgomp.c++/udr-5.C: New test.
9083 * testsuite/libgomp.c++/udr-6.C: New test.
9084 * testsuite/libgomp.c++/udr-7.C: New test.
9085 * testsuite/libgomp.c++/udr-8.C: New test.
9086 * testsuite/libgomp.c++/udr-9.C: New test.
9087
9088 2013-09-20 Jakub Jelinek <jakub@redhat.com>
9089
9090 PR testsuite/57605
9091 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
9092 ALWAYS_CFLAGS.
9093
9094 2013-09-20 Alan Modra <amodra@gmail.com>
9095
9096 * configure: Regenerate.
9097
9098 2013-09-19 Jakub Jelinek <jakub@redhat.com>
9099
9100 * testsuite/libgomp.c/sections-2.c: New test.
9101
9102 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
9103
9104 * testsuite/libgomp.fortran/strassen.f90:
9105 Add dg-skip-if aarch64_tiny.
9106
9107 2013-06-20 Iain Sandoe <iain@codesourcery.com>
9108 Cesar Philippidis <cesar@codesourcery.com>
9109
9110 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
9111 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
9112 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
9113 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9114 * testsuite/libgomp.graphite/graphite.exp: Likewise.
9115 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
9116 Use dg-runtest rather than gfortran-dg-runtest.
9117
9118 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
9119
9120 * testsuite/libgomp.c/icv-2.c: Extend current handling of
9121 Linux-based x86 systems to cover all GNU systems.
9122 * testsuite/libgomp.c/lock-3.c: Likewise.
9123 * testsuite/libgomp.c/pr48591.c: Likewise.
9124
9125 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
9126
9127 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
9128 GNU/Hurd, as done for Linux-based systems.
9129
9130 * config/posix/ptrlock.h: Fix comment.
9131
9132 2013-05-27 Tobias Burnus <burnus@net-b.de>
9133
9134 PR fortran/57423
9135 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
9136 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
9137 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
9138 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
9139 omp_destroy_nest_lock): Correct arguments to match the one in
9140 the OpenMP spec.
9141 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
9142 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
9143 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
9144 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
9145
9146 2013-05-16 Jakub Jelinek <jakub@redhat.com>
9147
9148 * testsuite/libgomp.c/loop-13.c: New test.
9149 * testsuite/libgomp.c/loop-14.c: New test.
9150 * testsuite/libgomp.c/loop-15.c: New test.
9151 * testsuite/libgomp.c++/loop-13.C: New test.
9152 * testsuite/libgomp.c++/loop-14.C: New test.
9153 * testsuite/libgomp.c++/loop-15.C: New test.
9154
9155 2013-02-06 Jakub Jelinek <jakub@redhat.com>
9156
9157 PR middle-end/56217
9158 * testsuite/libgomp.c++/pr56217.C: New test.
9159
9160 2013-02-01 Alan Modra <amodra@gmail.com>
9161
9162 * task.c (GOMP_task, GOMP_taskwait): Comment.
9163
9164 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
9165 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
9166
9167 PR libgomp/55561
9168 * config/linux/wait.h (do_spin): Use atomic load for addr.
9169 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
9170 for intptr and ptrlock.
9171 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
9172 for ptrlock.
9173
9174 2013-01-22 Alan Modra <amodra@gmail.com>
9175
9176 PR libgomp/51376
9177 PR libgomp/56073
9178 * task.c (GOMP_task): Revert 2011-12-09 change.
9179 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
9180 barrier to read task->children..
9181 (gomp_barrier_handle_tasks): ..and matching atomic store with
9182 release barrier here when setting parent->children to NULL.
9183
9184 2013-01-16 Jakub Jelinek <jakub@redhat.com>
9185 Tobias Burnus <burnus@net-b.de>
9186
9187 PR driver/55884
9188 * testsuite/libgomp.fortran/fortran.exp: Use
9189 -fintrinsic-modules-path= instead of
9190 -fintrinsic-modules-path.
9191
9192 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
9193
9194 Update copyright years.
9195
9196 2012-12-19 Tobias Burnus <burnus@net-b.de>
9197
9198 * testsuite/libgomp.fortran/fortran.exp: Set
9199 -fintrinsic-modules-path.
9200
9201 2012-12-19 Tobias Burnus <burnus@net-b.de>
9202
9203 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
9204 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
9205
9206 2012-11-21 Jakub Jelinek <jakub@redhat.com>
9207
9208 PR libgomp/55411
9209 * team.c (gomp_free_thread): Decrease gomp_managed_threads
9210 if pool had any threads_used.
9211
9212 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
9213
9214 * testsuite/libgomp.c++/pr24455.C: Use
9215 -Wl,-undefined,dynamic_lookup on darwin.
9216
9217 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
9218
9219 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
9220
9221 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
9222
9223 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
9224
9225 2012-10-23 Ian Bolton <ian.bolton@arm.com>
9226 Jim MacArthur <jim.macarthur@arm.com>
9227 Marcus Shawcroft <marcus.shawcroft@arm.com>
9228 Nigel Stephens <nigel.stephens@arm.com>
9229 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9230 Richard Earnshaw <rearnsha@arm.com>
9231 Sofiane Naci <sofiane.naci@arm.com>
9232 Stephen Thomas <stephen.thomas@arm.com>
9233 Tejas Belagod <tejas.belagod@arm.com>
9234 Yufeng Zhang <yufeng.zhang@arm.com>
9235
9236 * configure.tgt: Add AArch64.
9237
9238 2012-10-04 Jason Merrill <jason@redhat.com>
9239
9240 * testsuite/libgomp.c++/tls-init1.C: New.
9241
9242 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
9243
9244 * configure: Regenerated.
9245
9246 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
9247
9248 * config/linux/mips/futex.h (sys_futex0): Change to static
9249 function with noinline, nomips16 attributes under MIPS16. Adjust
9250 asm statement to place 'li v0,SYS_futex' immediately before
9251 syscall insn.
9252
9253 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
9254
9255 * libgomp.texi (Library Index): Renamed from "Index" to prevent
9256 conflict with index.html on case-insensitive file systems.
9257
9258 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
9259
9260 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
9261 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
9262
9263 2012-07-02 Richard Guenther <rguenther@suse.de>
9264 Michael Matz <matz@suse.de>
9265 Tobias Grosser <tobias@grosser.es>
9266 Sebastian Pop <sebpop@gmail.com>
9267
9268 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
9269 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9270 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9271 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9272
9273 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
9274
9275 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
9276
9277 2012-06-22 Richard Guenther <rguenther@suse.de>
9278
9279 Merge from graphite branch
9280 2012-01-13 Tobias Grosser <tobias@grosser.es>
9281
9282 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
9283 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9284
9285 2012-06-07 Jakub Jelinek <jakub@redhat.com>
9286
9287 PR middle-end/53580
9288 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
9289 use GOMP_barrier () call instead.
9290 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9291 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9292 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
9293 call GOMP_barrier instead.
9294 * testsuite/libgomp.fortran/vla5.f90: Likewise.
9295
9296 2012-06-06 Jakub Jelinek <jakub@redhat.com>
9297
9298 PR libgomp/52993
9299 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
9300 argument to memset call.
9301
9302 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
9303
9304 * configure: Regenerated.
9305
9306 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
9307
9308 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
9309
9310 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
9311
9312 PR bootstrap/52812
9313 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
9314
9315 2012-03-22 Jakub Jelinek <jakub@redhat.com>
9316
9317 PR middle-end/52547
9318 * testsuite/libgomp.c/pr52547.c: New test.
9319
9320 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9321
9322 * testsuite/lib/libgomp.exp: load fortran-modules.exp
9323
9324 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9325
9326 * configure.tgt (mips-sgi-irix6*): Remove.
9327
9328 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9329
9330 * configure.tgt (alpha*-dec-osf*): Remove.
9331
9332 * config/osf/sem.h: Remove.
9333 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
9334
9335 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
9336
9337 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
9338
9339 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9340
9341 PR libstdc++/52188
9342 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
9343 Remove ENABLE_SYMVERS_SOL2.
9344 * configure: Regenerate.
9345 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
9346 (PREPROCESS): New variable.
9347 (libgomp.ver): New target.
9348 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
9349 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
9350 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
9351 Use libgomp.ver.
9352 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
9353 * Makefile.in: Regenerate.
9354
9355 2012-02-14 Walter Lee <walt@tilera.com>
9356
9357 * configure.tgt: Handle tilegx and tilepro.
9358 * config/linux/tile/futex.h: New file.
9359
9360 2012-02-08 Richard Guenther <rguenther@suse.de>
9361
9362 PR tree-optimization/46886
9363 * testsuite/libgomp.c/pr46886.c: New testcase.
9364
9365 2012-01-25 Matthias Klose <doko@ubuntu.com>
9366
9367 * config/linux/arm: Remove empty directory.
9368 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
9369
9370 2011-12-09 Alan Modra <amodra@gmail.com>
9371
9372 PR libgomp/51376
9373 * task.c (GOMP_taskwait): Don't access task->children outside of
9374 task_lock mutex region.
9375 (GOMP_task): Likewise.
9376
9377 2011-12-06 Jakub Jelinek <jakub@redhat.com>
9378
9379 PR libgomp/51132
9380 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
9381 to file scope.
9382 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9383 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9384 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9385 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9386 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9387
9388 2011-12-02 Alan Modra <amodra@gmail.com>
9389
9390 * config/linux/affinity.c: Use atomic rather than sync builtin.
9391 * config/linux/lock.c: Likewise.
9392 * config/linux/ptrlock.h: Likewise.
9393 * config/linux/ptrlock.c: Likewise.
9394 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
9395 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
9396 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
9397 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
9398 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
9399 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
9400 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
9401 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
9402 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
9403 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
9404
9405 2011-11-30 Alan Modra <amodra@gmail.com>
9406
9407 PR libgomp/51298
9408 * config/linux/bar.h: Use atomic rather than sync builtins.
9409 * config/linux/bar.c: Likewise. Add missing acquire
9410 synchronisation on generation field.
9411 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
9412 double unlock.
9413
9414 2011-11-30 Alan Modra <amodra@gmail.com>
9415
9416 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
9417 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
9418 * config/linux/mutex.h: Use atomic rather than sync builtins.
9419 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
9420 * config/linux/omp-lock.h: Comment fix.
9421 * config/linux/arm/mutex.h: Delete.
9422 * config/linux/powerpc/mutex.h: Delete.
9423 * config/linux/ia64/mutex.h: Delete.
9424 * config/linux/mips/mutex.h: Delete.
9425
9426 2011-11-30 Alan Modra <amodra@gmail.com>
9427
9428 PR libgomp/51249
9429 * config/linux/sem.h: Rewrite.
9430 * config/linux/sem.c: Rewrite.
9431
9432 2011-11-28 Richard Henderson <rth@redhat.com>
9433
9434 * libgomp.h (enum memmodel): New.
9435
9436 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
9437
9438 * configure: Regenerate.
9439
9440 2011-10-10 Matthias Klose <doko@ubuntu.com>
9441
9442 * config/posix95: Remove empty directory.
9443
9444 2011-08-26 Jakub Jelinek <jakub@redhat.com>
9445
9446 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
9447
9448 2011-08-19 Jakub Jelinek <jakub@redhat.com>
9449
9450 PR fortran/49792
9451 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
9452 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
9453
9454 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9455
9456 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
9457
9458 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9459
9460 PR libgomp/49965
9461 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
9462
9463 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
9464
9465 * config/linux/proc.h: New.
9466 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
9467 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
9468 (gomp_init_num_threads): Update call to cpuset_popcount.
9469 (get_num_procs): Ditto.
9470 * config/linux/affinity.c (gomp_init_affinity): Call
9471 gomp_cpuset_popcount.
9472
9473 2011-08-02 Jakub Jelinek <jakub@redhat.com>
9474
9475 PR fortran/42041
9476 PR fortran/46752
9477 * omp.h.in (omp_in_final): New prototype.
9478 * omp_lib.f90.in (omp_in_final): New interface.
9479 (omp_integer_kind, omp_logical_kind): Remove
9480 and replace all its uses in the module with 4.
9481 (openmp_version): Change to 201107.
9482 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
9483 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
9484 kind for the parameters.
9485 (omp_in_final): New external.
9486 (openmp_version): Change to 201107.
9487 * task.c (omp_in_final): New function.
9488 (gomp_init_task): Initialize final_task.
9489 (GOMP_task): Remove unused attribute from flags. Handle final
9490 tasks.
9491 (GOMP_taskyield): New function.
9492 (omp_in_final): Return true if if (false) or final (true) task
9493 or descendant of final (true).
9494 * fortran.c (omp_in_final_): New function.
9495 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
9496 (GOMP_3.0): Export GOMP_taskyield.
9497 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
9498 variables.
9499 (parse_unsigned_long_list): New function.
9500 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
9501 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
9502 even if parse_affinity returned false.
9503 * config/linux/affinity.c (gomp_init_affinity): Handle
9504 gomp_cpu_affinity_len == 0.
9505 * libgomp_g.h (GOMP_taskyield): New prototype.
9506 * libgomp.h (struct gomp_task): Add final_task field.
9507 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
9508 * team.c (gomp_team_start): Override new task's nthreads_var icv
9509 if list form OMP_NUM_THREADS has been used and it has value for
9510 the new nesting level.
9511
9512 * testsuite/libgomp.c/atomic-11.c: New test.
9513 * testsuite/libgomp.c/atomic-12.c: New test.
9514 * testsuite/libgomp.c/atomic-13.c: New test.
9515 * testsuite/libgomp.c/atomic-14.c: New test.
9516 * testsuite/libgomp.c/reduction-6.c: New test.
9517 * testsuite/libgomp.c/task-5.c: New test.
9518 * testsuite/libgomp.c++/atomic-2.C: New test.
9519 * testsuite/libgomp.c++/atomic-3.C: New test.
9520 * testsuite/libgomp.c++/atomic-4.C: New test.
9521 * testsuite/libgomp.c++/atomic-5.C: New test.
9522 * testsuite/libgomp.c++/atomic-6.C: New test.
9523 * testsuite/libgomp.c++/atomic-7.C: New test.
9524 * testsuite/libgomp.c++/atomic-8.C: New test.
9525 * testsuite/libgomp.c++/atomic-9.C: New test.
9526 * testsuite/libgomp.c++/task-8.C: New test.
9527 * testsuite/libgomp.c++/reduction-4.C: New test.
9528 * testsuite/libgomp.fortran/allocatable7.f90: New test.
9529 * testsuite/libgomp.fortran/allocatable8.f90: New test.
9530 * testsuite/libgomp.fortran/crayptr3.f90: New test.
9531 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
9532 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
9533 * testsuite/libgomp.fortran/pointer1.f90: New test.
9534 * testsuite/libgomp.fortran/pointer2.f90: New test.
9535 * testsuite/libgomp.fortran/task4.f90: New test.
9536
9537 2011-08-02 Tobias Burnus <burnus@net-b.de>
9538
9539 * libgomp.texi: Update OpenMP spec references to 3.1.
9540 (omp_in_final,OMP_PROC_BIND): New sections.
9541 (OMP_NUM_THREADS): Document that the value can be now a list.
9542 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
9543
9544 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
9545
9546 * config/linux/x86/futex.h: Check __x86_64__ instead of
9547 __LP64__.
9548
9549 2011-07-29 Jakub Jelinek <jakub@redhat.com>
9550
9551 PR middle-end/49897
9552 PR middle-end/49898
9553 * testsuite/libgomp.c/pr49897-1.c: New test.
9554 * testsuite/libgomp.c/pr49897-2.c: New test.
9555 * testsuite/libgomp.c/pr49898-1.c: New test.
9556 * testsuite/libgomp.c/pr49898-2.c: New test.
9557
9558 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
9559
9560 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
9561 for ia32 instead of ilp32.
9562
9563 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
9564 * testsuite/libgomp.c/atomic-6.c: Likewise.
9565
9566 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
9567
9568 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
9569 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
9570
9571 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9572
9573 PR libgomp/45351
9574 * config/osf/sem.h: New file.
9575 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
9576
9577 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9578
9579 PR target/49541
9580 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
9581 ldflags.
9582
9583 2011-07-15 Jakub Jelinek <jakub@redhat.com>
9584
9585 * config/linux/wait.h (do_spin): New inline, largely copied
9586 from do_wait, just don't do futex_wait here, instead return true if
9587 it should be done.
9588 (do_wait): Implement using do_spin.
9589 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
9590 to prototype.
9591 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
9592 __sync_bool_compare_and_swap, pass the oldval to
9593 gomp_mutex_lock_slow.
9594 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
9595 If all mutex contenders are just spinning and not sleeping, don't
9596 change state to 2 unnecessarily. Optimize the loop when state has
9597 already become 2 to use just one atomic operation per loop instead
9598 of two.
9599 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
9600 to prototype.
9601 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
9602 __sync_bool_compare_and_swap, pass the oldval to
9603 gomp_mutex_lock_slow.
9604
9605 2011-06-22 Jakub Jelinek <jakub@redhat.com>
9606
9607 PR libgomp/49490
9608 * iter.c (gomp_iter_static_next): For chunk size 0
9609 only use n ceil/ nthreads size for the first
9610 n % nthreads threads in the team instead of
9611 all threads except for the last few ones which
9612 get less work or none at all.
9613 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
9614 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
9615 chunk argument, set run_sched_modifier to 0 for static
9616 resp. 1 for other kinds. If chunk argument is 0
9617 and not static, set value to 1.
9618
9619 2011-05-19 Jakub Jelinek <jakub@redhat.com>
9620
9621 PR c++/49043
9622 * testsuite/libgomp.c++/pr49043.C: New test.
9623
9624 PR c++/48869
9625 * testsuite/libgomp.c++/pr48869.C: New test.
9626
9627 2011-05-06 Jakub Jelinek <jakub@redhat.com>
9628
9629 PR fortran/48894
9630 * fortran.c: Include limits.h.
9631 (TO_INT): Define.
9632 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
9633 *set.
9634 (omp_set_num_threads_8_, omp_set_schedule_8_,
9635 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
9636 omp_get_team_size_8_): Use TO_INT macro.
9637 * testsuite/libgomp.fortran/pr48894.f90: New test.
9638
9639 2011-04-13 Jakub Jelinek <jakub@redhat.com>
9640
9641 PR middle-end/48591
9642 * testsuite/libgomp.c/pr48591.c: New test.
9643
9644 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9645
9646 PR bootstrap/48135
9647 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
9648 * configure: Regenerate.
9649
9650 2011-02-27 Jakub Jelinek <jakub@redhat.com>
9651
9652 PR fortran/47886
9653 * testsuite/libgomp.fortran/task3.f90: New test.
9654
9655 2011-02-24 Tobias Burnus <burnus@net-b.de>
9656
9657 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
9658
9659 2011-02-23 Jakub Jelinek <jakub@redhat.com>
9660
9661 PR libgomp/47854
9662 * libgomp.texi (omp_get_wtime): Don't say time in the past
9663 must be Unix Epoch.
9664
9665 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9666
9667 PR libgomp/47804
9668 * testsuite/libgomp.fortran/fortran.exp: Check for both
9669 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
9670 but $blddir != "", still append ${blddir}/${lang_library_path}
9671 to ld_library_path.
9672
9673 2011-02-16 Tobias Burnus <burnus@net-b.de>
9674
9675 PR libgomp/47758
9676 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
9677 of libquadmath.a before adding its libpath to ldflags.
9678
9679 2011-02-14 Jakub Jelinek <jakub@redhat.com>
9680
9681 PR libgomp/47731
9682 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
9683 to FUTEX_WAIT futex syscall.
9684 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
9685
9686 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9687
9688 * configure: Regenerate.
9689
9690 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
9691
9692 PR libstdc++/36104
9693 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
9694
9695 2011-01-16 Gerald Pfeifer
9696
9697 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
9698
9699 2010-12-14 Jakub Jelinek <jakub@redhat.com>
9700
9701 PR fortran/46874
9702 * libgomp.fortran/allocatable6.f90: New test.
9703
9704 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9705
9706 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
9707 * configure: Regenerate.
9708
9709 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
9710
9711 PR target/40125
9712 PR lto/46695
9713 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
9714 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
9715 * aclocal.m4: Regenerate.
9716 * configure: Regenerate.
9717 * Makefile.in: Regenerate.
9718 * testsuite/Makefile.in: Regenerate.
9719
9720 2010-12-02 Jakub Jelinek <jakub@redhat.com>
9721
9722 PR fortran/46753
9723 * libgomp.fortran/pr46753.f90: New test.
9724
9725 PR libgomp/43706
9726 * env.c (initialize_env): Default to spin count 300000
9727 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
9728 is specified.
9729
9730 PR libgomp/45240
9731 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
9732 at the end if sync builtins aren't supported.
9733
9734 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9735
9736 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
9737
9738 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9739
9740 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
9741
9742 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
9743
9744 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
9745
9746 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9747 Tobias Burnus <burnus@net-b.de>
9748
9749 PR fortran/32049
9750 * configure.ac:
9751 * configure: Regenerate.
9752
9753 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
9754
9755 * config/linux/futex.h: New.
9756 * config/linux/arm/mutex.h: New.
9757 * configure.tgt (arm*-*-linux*): Add config path.
9758
9759 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
9760
9761 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
9762
9763 2010-09-23 Tobias Burnus <burnus@net-b.de>
9764
9765 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
9766 Change Fortran datatype to LOGICAL.
9767 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
9768 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
9769
9770 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9771
9772 * configure: Regenerate.
9773
9774 2010-07-26 Jakub Jelinek <jakub@redhat.com>
9775
9776 * libgomp.texi: Add function keyword to a couple of Fortran
9777 interfaces, use integer instead of int for Fortran.
9778
9779 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
9780
9781 * libgomp.texi: Fix spelling and pasto problems throughout.
9782 Adjust prototypes to match code.
9783
9784 2010-07-24 Tobias Burnus <burnus@net-b.de>
9785
9786 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
9787 silence -fwhole-file warning.
9788
9789 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9790
9791 * configure.tgt (*-*-solaris2.[56]*): Removed.
9792
9793 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9794
9795 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
9796 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
9797 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
9798 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
9799 targetting solaris2*.
9800 * configure: Regenerate.
9801 * config.h.in: Regenerate.
9802
9803 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
9804 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
9805 Add libgomp_version_dep.
9806 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
9807 versioning.
9808 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
9809 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
9810 * Makefile.in: Regenerate.
9811
9812 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
9813 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
9814 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
9815 to common block, protected by
9816 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
9817
9818 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
9819
9820 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
9821
9822 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
9823
9824 PR bootstrap/43170
9825 * configure: Regenerate.
9826
9827 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9828
9829 PR other/43620
9830 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
9831 * configure: Regenerate.
9832 * Makefile.in: Regenerate.
9833 * testsuite/Makefile.in: Regenerate.
9834
9835 2010-04-26 Jakub Jelinek <jakub@redhat.com>
9836
9837 PR c/43893
9838 * testsuite/libgomp.c/pr43893.c: New test.
9839 * testsuite/libgomp.c++/pr43893.C: New test.
9840
9841 2010-04-21 Jakub Jelinek <jakub@redhat.com>
9842
9843 PR middle-end/43570
9844 * testsuite/libgomp.fortran/vla8.f90: New test.
9845
9846 2010-04-20 Jakub Jelinek <jakub@redhat.com>
9847
9848 PR libgomp/43706
9849 * config/linux/affinity.c (gomp_init_affinity): Decrease
9850 gomp_available_cpus if affinity mask confines the process to fewer
9851 CPUs.
9852 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
9853 non-NULL, just return gomp_available_cpus.
9854
9855 PR libgomp/43569
9856 * sections.c (gomp_sections_init): Initialize ws->mode.
9857
9858 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
9859
9860 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
9861 not unused bar variable.
9862 * configure: Regenerate.
9863
9864 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9865
9866 * Makefile.in: Regenerate.
9867 * aclocal.m4: Regenerate.
9868 * testsuite/Makefile.in: Regenerate.
9869
9870 2010-03-22 Jakub Jelinek <jakub@redhat.com>
9871
9872 PR libgomp/42942
9873 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
9874 (initialize_env): Adjust callers.
9875 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
9876 when the argument is 0.
9877
9878 * testsuite/libgomp.c/pr42942.c: New test.
9879
9880 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
9881
9882 PR middle-end/42644
9883 PR middle-end/42130
9884 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
9885 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
9886
9887 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9888
9889 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
9890 * testsuite/libgomp.c++/task-6.C: Likewise.
9891
9892 2010-01-28 Steve Ellcey <sje@cup.hp.com>
9893
9894 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
9895
9896 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
9897
9898 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
9899 * configure: Regenerate.
9900
9901 2010-01-26 Jakub Jelinek <jakub@redhat.com>
9902
9903 PR fortran/42866
9904 * testsuite/libgomp.fortran/allocatable5.f90: New test.
9905
9906 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
9907
9908 * configure.ac: Test for executability of GFORTRAN.
9909 * configure: Regenerate.
9910
9911 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9912
9913 * configure: Regenerate.
9914
9915 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
9916
9917 PR libgomp/42602
9918 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
9919
9920 2010-01-03 Richard Guenther <rguenther@suse.de>
9921
9922 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
9923
9924 2009-12-23 Sebastian Pop <sebpop@gmail.com>
9925
9926 * testsuite/libgomp.graphite/pr4118.c: New.
9927
9928 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
9929
9930 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
9931 for darwin, protect the test with require-effective-target tls_runtime.
9932 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
9933
9934 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
9935
9936 PR target/41605
9937 * testsuite/lib/libgomp.exp: Provide -B options to allow for
9938 link spec %s substitutions for static libraries.
9939
9940 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
9941
9942 PR testsuite/42135
9943 * libgomp.graphite/force-parallel-2.c: Reduce array size.
9944
9945 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9946
9947 * Makefile.in: Regenerate.
9948 * configure: Regenerate.
9949 * testsuite/Makefile.in: Regenerate.
9950
9951 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
9952
9953 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
9954 settings for LC_ALL and LANG.
9955
9956 2009-11-25 Jakub Jelinek <jakub@redhat.com>
9957
9958 PR fortran/42162
9959 * testsuite/libgomp.fortran/pr42162.f90: New test.
9960
9961 2009-11-13 Jakub Jelinek <jakub@redhat.com>
9962
9963 PR middle-end/42029
9964 * testsuite/libgomp.c/pr42029.c: New test.
9965
9966 2009-10-26 Jakub Jelinek <jakub@redhat.com>
9967
9968 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
9969 *s. Accept ld version without text in ()s.
9970 * configure: Regenerated.
9971
9972 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
9973
9974 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
9975
9976 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9977
9978 PR libgomp/41418
9979 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
9980 or a hyphen (happens with fortran language disabled).
9981 * configure: Regenerate.
9982
9983 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9984
9985 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
9986 use sed script portable to Solaris /bin/sed for extracting ld
9987 version.
9988 * configure: Regenerate.
9989
9990 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
9991
9992 * testsuite/libgomp.graphite/bounds.c: New test.
9993
9994 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9995
9996 * Makefile.am (libgomp_la_LINK): New.
9997 * Makefile.in: Regenerate.
9998
9999 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10000
10001 * configure.ac (AC_PREREQ): Bump to 2.64.
10002
10003 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10004
10005 * Makefile.am (install-html, install-pdf): Remove.
10006 * Makefile.in: Regenerate.
10007
10008 * Makefile.in: Regenerate.
10009 * aclocal.m4: Regenerate.
10010 * config.h.in: Regenerate.
10011 * configure: Regenerate.
10012 * testsuite/Makefile.in: Regenerate.
10013
10014 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10015
10016 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
10017 * Makefile.in: Regenerate.
10018
10019 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
10020
10021 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
10022 * Makefile.in: Regenerate.
10023
10024 2009-08-19 Tobias Burnus <burnus@net-b.de>
10025
10026 PR fortran/41102
10027 omp_lib.h.in: Fix -std=f95 errors.
10028
10029 2009-08-14 David Edelsohn <edelsohn@gnu.org>
10030
10031 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
10032 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
10033 * testsuite/libgomp.graphite/graphite.exp: New.
10034
10035 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
10036
10037 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
10038 only build.
10039
10040 2009-08-04 David Daney <ddaney@caviumnetworks.com>
10041
10042 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
10043 needed memory barrier semantics.
10044 * config/linux/mips/mutex.h: New file.
10045
10046 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10047
10048 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
10049
10050 2009-07-16 Joseph Myers <joseph@codesourcery.com>
10051
10052 * configure: Regenerate.
10053
10054 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
10055
10056 PR testsuite/40699
10057 PR testsuite/40707
10058 PR testsuite/40709
10059 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
10060 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
10061 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
10062
10063 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
10064
10065 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
10066 options when choosing a multilib.
10067
10068 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
10069
10070 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
10071 ld_library_path. Use add_path. Add just find_libgcc_s to
10072 ld_library_path, not every libgcc multilib directory.
10073 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
10074 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
10075 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
10076 Use add_path.
10077 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
10078
10079 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
10080
10081 * Makefile.am (LTLDFLAGS): Define.
10082 (LINK): Define.
10083 * Makefile.in: Regenerate.
10084
10085 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
10086
10087 PR fortran/39718
10088 * testsuite/libgomp.fortran/fortran.exp: Don't link with
10089 libgfortranbegin, check existence of libgfortran.a instead of
10090 libgfortranbegin.a.
10091
10092 2009-05-20 Jakub Jelinek <jakub@redhat.com>
10093
10094 PR libgomp/40174
10095 * team.c (gomp_thread_start): Destroy thr->release semaphore.
10096 (gomp_free_pool_helper): Likewise.
10097
10098 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
10099 Jakub Jelinek <jakub@redhat.com>
10100
10101 PR fortran/35423
10102 * testsuite/libgomp.fortran/workshare2.f90: New test.
10103
10104 2009-04-09 Nick Clifton <nickc@redhat.com>
10105
10106 * iter.c: Change copyright header to refer to version 3 of the
10107 GNU General Public License with version 3.1 of the GCC Runtime
10108 Library Exception and to point readers at the COPYING3 and
10109 COPYING3.RUNTIME files and the FSF's license web page.
10110 * alloc.c: Likewise.
10111 * barrier.c: Likewise.
10112 * config/bsd/proc.c: Likewise.
10113 * config/linux/affinity.c: Likewise.
10114 * config/linux/alpha/futex.h: Likewise.
10115 * config/linux/bar.c: Likewise.
10116 * config/linux/bar.h: Likewise.
10117 * config/linux/ia64/futex.h: Likewise.
10118 * config/linux/ia64/mutex.h: Likewise.
10119 * config/linux/lock.c: Likewise.
10120 * config/linux/mips/futex.h: Likewise.
10121 * config/linux/mutex.c: Likewise.
10122 * config/linux/mutex.h: Likewise.
10123 * config/linux/powerpc/futex.h: Likewise.
10124 * config/linux/proc.c: Likewise.
10125 * config/linux/ptrlock.c: Likewise.
10126 * config/linux/ptrlock.h: Likewise.
10127 * config/linux/s390/futex.h: Likewise.
10128 * config/linux/sem.c: Likewise.
10129 * config/linux/sem.h: Likewise.
10130 * config/linux/sparc/futex.h: Likewise.
10131 * config/linux/wait.h: Likewise.
10132 * config/linux/x86/futex.h: Likewise.
10133 * config/mingw32/proc.c: Likewise.
10134 * config/mingw32/time.c: Likewise.
10135 * config/posix/affinity.c: Likewise.
10136 * config/posix/bar.c: Likewise.
10137 * config/posix/bar.h: Likewise.
10138 * config/posix/lock.c: Likewise.
10139 * config/posix/mutex.h: Likewise.
10140 * config/posix/proc.c: Likewise.
10141 * config/posix/ptrlock.h: Likewise.
10142 * config/posix/sem.c: Likewise.
10143 * config/posix/sem.h: Likewise.
10144 * config/posix/time.c: Likewise.
10145 * config/posix95/lock.c: Likewise.
10146 * critical.c: Likewise.
10147 * env.c: Likewise.
10148 * error.c: Likewise.
10149 * fortran.c: Likewise.
10150 * iter_ull.c: Likewise.
10151 * libgomp.h: Likewise.
10152 * libgomp_f.h.in: Likewise.
10153 * libgomp_g.h: Likewise.
10154 * loop.c: Likewise.
10155 * loop_ull.c: Likewise.
10156 * omp.h.in: Likewise.
10157 * omp_lib.f90.in: Likewise.
10158 * omp_lib.h.in: Likewise.
10159 * ordered.c: Likewise.
10160 * parallel.c: Likewise.
10161 * sections.c: Likewise.
10162 * single.c: Likewise.
10163 * task.c: Likewise.
10164 * team.c: Likewise.
10165 * work.c: Likewise.
10166
10167 2009-04-09 Jakub Jelinek <jakub@redhat.com>
10168
10169 * testsuite/config/default.exp: Change copyright header to refer to
10170 version 3 of the GNU General Public License and to point readers
10171 at the COPYING3 file and the FSF's license web page.
10172
10173 2009-04-08 Jakub Jelinek <jakub@redhat.com>
10174
10175 PR middle-end/39573
10176 * libgomp.c++/pr39573.C: New test.
10177
10178 2009-04-01 Jakub Jelinek <jakub@redhat.com>
10179
10180 PR other/39591
10181 * testsuite/libgomp.c/pr39591-1.c: New test.
10182 * testsuite/libgomp.c/pr39591-2.c: New test.
10183 * testsuite/libgomp.c/pr39591-3.c: New test.
10184
10185 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
10186
10187 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
10188 * testsuite/libgomp.c/atomic-6.c: Ditto.
10189
10190 2009-03-23 Jakub Jelinek <jakub@redhat.com>
10191
10192 PR c/39495
10193 * testsuite/libgomp.c/loop-12.c: New test.
10194 * testsuite/libgomp.c/loop-11.c: New test.
10195 * testsuite/libgomp.c++/loop-11.C: New test.
10196 * testsuite/libgomp.c++/loop-12.C: New test.
10197 * testsuite/libgomp.c++/for-8.C: New test.
10198
10199 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10200
10201 * configure: Regenerate.
10202
10203 2009-02-11 Jakub Jelinek <jakub@redhat.com>
10204
10205 PR middle-end/39154
10206 * testsuite/libgomp.c/pr39154.c: New test.
10207
10208 2009-01-30 Ian Lance Taylor <iant@google.com>
10209
10210 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
10211 libgomp_ld_is_gold. Get gold version number.
10212 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
10213 * configure: Rebuild.
10214
10215 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10216
10217 * testsuite/lib/libgomp.exp: Add -B option for targets that
10218 use libgfortran.a%s in their specs.
10219
10220 2009-01-07 Jakub Jelinek <jakub@redhat.com>
10221
10222 PR libgomp/38086
10223 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
10224 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
10225 HAVE_AS_SYMVER_DIRECTIVE is not defined.
10226 * configure: Regenerated.
10227 * config.h.in: Likewise.
10228
10229 2008-12-28 Jakub Jelinek <jakub@redhat.com>
10230
10231 PR c++/38650
10232 * testsuite/libgomp.c/pr38650.c: New test.
10233 * testsuite/libgomp.c++/pr38650.C: New test.
10234
10235 2008-12-27 Jakub Jelinek <jakub@redhat.com>
10236
10237 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
10238
10239 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
10240
10241 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
10242
10243 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10244
10245 * configure: Regenerate.
10246
10247 2008-12-08 Jakub Jelinek <jakub@redhat.com>
10248
10249 PR middle-end/36802
10250 * testsuite/libgomp.c/pr36802-1.c: New test.
10251 * testsuite/libgomp.c/pr36802-2.c: New test.
10252 * testsuite/libgomp.c/pr36802-3.c: New test.
10253
10254 2008-12-01 Janis Johnson <janis187@us.ibm.com>
10255
10256 PR libgomp/38270
10257 * config/linux/powerpc/mutex.h: New.
10258
10259 2008-12-01 Jakub Jelinek <jakub@redhat.com>
10260
10261 PR c++/38257
10262 * testsuite/libgomp.c++/for-7.C: New test.
10263
10264 PR c++/38348
10265 * testsuite/libgomp.c++/for-6.C: New test.
10266
10267 2008-11-26 Janis Johnson <janis187@us.ibm.com>
10268
10269 PR testsuite/28870
10270 * testsuite/lib/libgomp.exp: Include new timeout library files.
10271 (libgomp_target_compile): Set timeout value from new proc.
10272
10273 2008-11-13 Steve Ellcey <sje@cup.hp.com>
10274
10275 PR libgomp/37938
10276 * config/linux/ia64/mutex.h: New.
10277
10278 2008-11-04 Tobias Burnus <burnus@net-b.de>
10279
10280 PR libgomp/37935
10281 * libgomp.texi (Runtime library routines, environment variables):
10282 Update for OpenMP version 3.0.
10283
10284 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
10285 Steve Ellcey <sje@cup.hp.com>
10286
10287 * configure: Regenerate for new libtool.
10288 * Makefile.in: Ditto.
10289 * testsuite/Makefile.in: Ditto.
10290
10291 2008-09-19 Jakub Jelinek <jakub@redhat.com>
10292 Andreas Tobler <a.tobler@schweiz.org>
10293
10294 * config/bsd/proc.c: New file.
10295 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
10296 * configure.ac: Check for header <sys/sysctl.h>
10297 * configure: Regenerate.
10298 * config.h.in: Likewise.
10299
10300 2008-09-05 Janis Johnson <janis187@us.ibm.com>
10301
10302 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
10303
10304 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
10305
10306 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
10307 * Makefile.in: Regenerated.
10308 * testsuite/Makefile.in: Regenerated.
10309
10310 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
10311
10312 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
10313 depend on blddir if blddir exists.
10314 (libgomp_target_compile): Likewise.
10315 * testsuite/libgomp.c++/c++.exp: Likewise.
10316 * testsuite/libgomp.fortran/fortran.exp: Likewise.
10317
10318 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10319
10320 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
10321 Do not list GPL as Invariant Section.
10322
10323 2008-07-28 Ilie Garbacea <ilie@mips.com>
10324 Chao-ying Fu <fu@mips.com>
10325
10326 * configure.tgt: Enable futex for MIPS.
10327 * config/linux/mips/futex.h: New file.
10328
10329 2008-07-16 Jakub Jelinek <jakub@redhat.com>
10330
10331 * team.c (gomp_team_end): Free team immediately if it has
10332 just one thread.
10333
10334 2008-07-08 David Edelsohn <edelsohn@gnu.org>
10335
10336 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
10337 * testsuite/libgomp.fortran/fortran.exp: Same.
10338 * testsuite/libgomp.c/c.exp: Same.
10339 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
10340 directory to library path first.
10341
10342 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
10343
10344 * env.c (parse_stacksize): Add cast to avoid warning.
10345 (parse_spincount): Likewise.
10346
10347 2008-06-27 Jakub Jelinek <jakub@redhat.com>
10348
10349 * testsuite/libgomp.c/loop-10.c: New test.
10350 * libgomp.c/loop-3.c (main): Add lastprivate clause.
10351 * libgomp.c++/loop-6.C (main): Likewise.
10352
10353 PR debug/36617
10354 * testsuite/libgomp.c/debug-1.c: New test.
10355
10356 2008-06-19 Jakub Jelinek <jakub@redhat.com>
10357
10358 * testsuite/libgomp.c/nqueens-1.c: New test.
10359
10360 PR c++/36523
10361 * testsuite/libgomp.c++/task-7.C: New function.
10362
10363 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10364
10365 * configure: Regenerate.
10366
10367 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10368
10369 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
10370 mutex when HAVE_SYNC_BUILTINS isn't defined.
10371
10372 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10373
10374 * libgomp.texi (omp_test_lock): Fix typo.
10375
10376 2008-06-12 Tobias Burnus <burnus@net-b.de>
10377
10378 * omp_lib.f90.in: Add "implicit none".
10379
10380 2008-06-12 Jakub Jelinek <jakub@redhat.com>
10381
10382 PR middle-end/36506
10383 * testsuite/libgomp.c/reduction-5.c: New test.
10384
10385 2008-06-11 Jakub Jelinek <jakub@redhat.com>
10386
10387 * libgomp.h (struct gomp_task): Add in_tied_task field.
10388 * task.c (gomp_init_task): Initialize it.
10389 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
10390 unconditionally. Don't call gomp_team_barrier_wake if
10391 current task is implicit or if(0) from implicit and number of
10392 running tasks is equal to nthreads - 1.
10393
10394 PR libgomp/36471
10395 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
10396 omp_get_team_size_8): Fix pastos.
10397
10398 PR libgomp/36469
10399 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
10400 * configure: Regenerated.
10401 * config.h.in: Regenerated.
10402 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
10403 defined.
10404
10405 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
10406
10407 PR bootstrap/36452
10408 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
10409 (GOMP_loop_ull_dynamic_start): Likewise.
10410 (GOMP_loop_ull_guided_start): Likewise.
10411 (GOMP_loop_ull_ordered_static_start): Likewise.
10412 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
10413 (GOMP_loop_ull_ordered_guided_start): Likewise.
10414
10415 2008-06-06 Jakub Jelinek <jakub@redhat.com>
10416 Richard Henderson <rth@redhat.com>
10417 Ulrich Drepper <drepper@redhat.com>
10418 Jakob Blomer <jakob.blomer@ira.uka.de>
10419
10420 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
10421 Substitute also OMP_*LOCK_25*.
10422 * configure: Regenerated.
10423 * config.h.in: Regenerated.
10424 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
10425 ptrlock.c and task.c.
10426 * Makefile.in: Regenerated.
10427 * testsuite/Makefile.in: Regenerated.
10428 * task.c: New file.
10429 * loop_ull.c: New file.
10430 * iter_ull.c: New file.
10431 * libgomp.h: Include ptrlock.h.
10432 (enum gomp_task_kind): New type.
10433 (struct gomp_team): Add task_lock, task_queue, task_count,
10434 task_running_count, single_count fields. Add
10435 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
10436 Remove work_share_lock, generation_mask,
10437 oldest_live_gen, num_live_gen and init_work_shares fields, add
10438 work work_share_list_alloc, work_share_list_free and work_share_chunk
10439 fields. Change work_shares from pointer to pointers into an array.
10440 Change ordered_release field into gomp_sem_t ** from flexible array
10441 member. Add implicit_task and initial_work_shares fields.
10442 Move close to the end of the struct.
10443 (struct gomp_team_state): Add single_count, last_work_share,
10444 active_level and level fields, remove work_share_generation.
10445 (gomp_barrier_handle_tasks): New prototype.
10446 (gomp_finish_task): New inline function.
10447 (struct gomp_work_share): Move chunk_size, end, incr into
10448 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
10449 next_ll fields. Reshuffle fields. Add next_alloc,
10450 next_ws, next_free and inline_ordered_team_ids fields, change
10451 ordered_team_ids into pointer from flexible array member.
10452 Add mode field. Put lock and next into a different cache line
10453 from most of the write-once fields.
10454 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
10455 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
10456 gomp_iter_ull_guided_next): New prototypes.
10457 (gomp_new_icv): New prototype.
10458 (struct gomp_thread): Add thread_pool and task fields.
10459 (struct gomp_thread_pool): New type.
10460 (gomp_new_team): New prototype.
10461 (gomp_team_start): Change type of last argument.
10462 (gomp_new_work_share): Removed.
10463 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
10464 (gomp_work_share_init_done): New static inline.
10465 (gomp_throttled_spin_count_var, gomp_available_cpus,
10466 gomp_managed_threads): New extern decls.
10467 (gomp_init_task): New prototype.
10468 (gomp_spin_count_var): New extern var decl.
10469 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
10470 or no alias support, or if not PIC.
10471 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
10472 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
10473 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
10474 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
10475 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
10476 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
10477 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
10478 gomp_test_nest_lock_25): New prototypes.
10479 (omp_lock_symver, strong_alias): Define.
10480 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
10481 decls.
10482 (gomp_end_task): New.
10483 (struct gomp_task_icv, gomp_global_icv): New.
10484 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
10485 (struct gomp_task): New.
10486 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
10487 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
10488 (gomp_icv): New.
10489 (gomp_schedule_type): Reorder enum to match
10490 omp_sched_t.
10491 * team.c (struct gomp_thread_start_data): Add thread_pool and task
10492 fields.
10493 (gomp_thread_start): Add gomp_team_barrier_wait call.
10494 For non-nested case remove clearing of docked thread thr fields.
10495 Use pool fields instead of global gomp_* variables. Use
10496 gomp_barrier_wait_last when needed. Initialize ts.active_level.
10497 Create tasks for each member thread.
10498 (free_team): Only destroy team barrier, task_lock here and free it.
10499 (gomp_free_thread): Free last_team if non-NULL.
10500 (gomp_team_end): Call gomp_team_barrier_wait instead of
10501 gomp_barrier_wait. For nested case call one extra
10502 gomp_barrier_wait. Move here some destruction from free_team.
10503 Call free_team on pool->last_team if any, rather than freeing
10504 current team. Destroy work_share_list_free_lock ifndef
10505 HAVE_SYNC_BUILTINS.
10506 (gomp_new_icv): New function.
10507 (gomp_threads, gomp_threads_size, gomp_threads_used,
10508 gomp_threads_dock): Removed.
10509 (gomp_thread_destructor): New variable.
10510 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
10511 functions.
10512 (gomp_team_start): Create new pool if current thread doesn't have
10513 one. Use pool fields instead of global gomp_* variables.
10514 Initialize thread_pool field for new threads. Clear single_count.
10515 Change last argument from ws to team, don't create
10516 new team, set ts.work_share to &team->work_shares[0] and clear
10517 ts.last_work_share. Don't clear ts.work_share_generation.
10518 If number of threads changed, adjust atomically gomp_managed_threads.
10519 Use gomp_init_task instead of gomp_new_task,
10520 set thr->task to the corresponding implicit_task array entry.
10521 Create tasks for each member thread. Initialize ts.level.
10522 (initialize_team): Call pthread_key_create on
10523 gomp_thread_destructor.
10524 (team_destructor): New function.
10525 (new_team): Removed.
10526 (gomp_new_team): New function.
10527 (free_team): Free gomp_work_share blocks chained through next_alloc,
10528 instead of freeing work_shares and destroying work_share_lock.
10529 (gomp_team_end): Call gomp_fini_work_share. If number of threads
10530 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
10531 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
10532 of gomp_barrier_wait.
10533 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
10534 instead of gomp_barrier_wait. Call gomp_work_share_init_done
10535 if gomp_work_share_start returned true. Don't unlock ws->lock.
10536 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
10537 of gomp_barrier_wait.
10538 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
10539 gomp_work_share_init_done if gomp_work_share_start returned true.
10540 Don't unlock ws->lock.
10541 * work.c: Include stddef.h.
10542 (free_work_share): Use work_share_list_free_lock instead
10543 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
10544 Call gomp_fini_work_share and then either free ws if orphaned, or
10545 put it into work_share_list_free list of the current team.
10546 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
10547 functions.
10548 (gomp_work_share_start, gomp_work_share_end,
10549 gomp_work_share_end_nowait): Rewritten.
10550 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
10551 (openmp_version): Set to 200805.
10552 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
10553 omp_sched_guided, omp_sched_auto): New parameters.
10554 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10555 omp_set_max_active_levels, omp_get_max_active_levels,
10556 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
10557 omp_get_active_level): New interfaces.
10558 * omp_lib.h.in (openmp_version): Set to 200805.
10559 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
10560 omp_sched_guided, omp_sched_auto): New parameters.
10561 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10562 omp_set_max_active_levels, omp_get_max_active_levels,
10563 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
10564 omp_get_active_level): New externals.
10565 * loop.c: Include limits.h.
10566 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
10567 GFS_AUTO.
10568 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
10569 Likewise. Use gomp_icv.
10570 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
10571 ts.static_trip here.
10572 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
10573 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
10574 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
10575 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
10576 don't unlock ws->lock, otherwise lock it.
10577 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
10578 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
10579 (gomp_parallel_loop_start): Call gomp_new_team instead of
10580 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
10581 Adjust gomp_team_start caller. Pass 0 as second argument to
10582 gomp_resolve_num_threads.
10583 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
10584 If adding ws->chunk_size nthreads + 1 times after end won't
10585 overflow, set ws->mode to 1.
10586 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
10587 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
10588 GOMP_loop_ull_ordered_static_start,
10589 GOMP_loop_ull_ordered_dynamic_start,
10590 GOMP_loop_ull_ordered_guided_start,
10591 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
10592 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
10593 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
10594 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
10595 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
10596 prototypes.
10597 * libgomp.map: Export lock routines also @@OMP_2.0.
10598 (GOMP_loop_ordered_dynamic_first,
10599 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
10600 GOMP_loop_ordered_static_first): Remove.
10601 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
10602 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
10603 GOMP_loop_ull_ordered_dynamic_next,
10604 GOMP_loop_ull_ordered_dynamic_start,
10605 GOMP_loop_ull_ordered_guided_next,
10606 GOMP_loop_ull_ordered_guided_start,
10607 GOMP_loop_ull_ordered_runtime_next,
10608 GOMP_loop_ull_ordered_runtime_start,
10609 GOMP_loop_ull_ordered_static_next,
10610 GOMP_loop_ull_ordered_static_start,
10611 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
10612 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
10613 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
10614 (omp_set_schedule, omp_get_schedule,
10615 omp_get_thread_limit, omp_set_max_active_levels,
10616 omp_get_max_active_levels, omp_get_level,
10617 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
10618 omp_set_schedule_, omp_set_schedule_8_,
10619 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
10620 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
10621 omp_get_max_active_levels_, omp_get_level_,
10622 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
10623 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
10624 New exports @@OMP_3.0.
10625 * omp.h.in (omp_sched_t): New type.
10626 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10627 omp_set_max_active_levels, omp_get_max_active_levels,
10628 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
10629 omp_get_active_level): New prototypes.
10630 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
10631 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
10632 gomp_thread_limit_var, gomp_remaining_threads_count,
10633 gomp_remaining_threads_lock): New variables.
10634 (parse_spincount): New function.
10635 (initialize_env): Call gomp_init_num_threads unconditionally.
10636 Initialize gomp_available_cpus. Call parse_spincount,
10637 initialize gomp_{,throttled_}spin_count_var
10638 depending on presence and value of OMP_WAIT_POLICY and
10639 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
10640 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
10641 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
10642 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
10643 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
10644 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
10645 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
10646 (gomp_global_icv): New.
10647 (parse_schedule): Use it. Parse "auto".
10648 (omp_set_num_threads): Use gomp_icv.
10649 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
10650 Likewise.
10651 (omp_get_max_threads): Move from parallel.c.
10652 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10653 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
10654 add ialias.
10655 (parse_stacksize, parse_wait_policy): New functions.
10656 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
10657 both wrappers for compatibility and new locks.
10658 (omp_set_schedule, omp_get_schedule,
10659 omp_get_thread_limit, omp_set_max_active_levels,
10660 omp_get_max_active_levels, omp_get_level,
10661 omp_get_ancestor_thread_num, omp_get_team_size,
10662 omp_get_active_level): New ialias_redirect.
10663 (omp_set_schedule_, omp_set_schedule_8_,
10664 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
10665 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
10666 omp_get_max_active_levels_, omp_get_level_,
10667 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
10668 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
10669 New functions.
10670 * parallel.c: Include limits.h.
10671 (gomp_resolve_num_threads): Add count argument. Rewritten.
10672 (GOMP_parallel_start): Call gomp_new_team and pass that as last
10673 argument to gomp_team_start. Pass 0 as second argument to
10674 gomp_resolve_num_threads.
10675 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
10676 if gomp_thread_limit_var != ULONG_MAX.
10677 (omp_in_parallel): Implement using ts.active_level.
10678 (omp_get_max_threads): Move to env.c.
10679 (omp_get_level, omp_get_ancestor_thread_num,
10680 omp_get_team_size, omp_get_active_level): New functions,
10681 add ialias.
10682 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
10683 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
10684 gomp_iter_dynamic_next instead of the _locked variant and don't take
10685 lock around it, otherwise acquire it before calling
10686 gomp_iter_dynamic_next_locked.
10687 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
10688 gomp_iter_dynamic_next instead of the _locked variant and don't take
10689 lock around it.
10690 (GOMP_parallel_sections_start): Call gomp_new_team instead of
10691 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
10692 Adjust gomp_team_start caller. Pass count as second argument to
10693 gomp_resolve_num_threads, don't adjust num_threads after the call.
10694 Use gomp_icv.
10695 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
10696 ws->chunk_size by incr.
10697 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
10698 code.
10699 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
10700 types.
10701 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
10702 (omp_check_defines): Check even the compat defines.
10703 * config/linux/ptrlock.c: New file.
10704 * config/linux/ptrlock.h: New file.
10705 * config/linux/wait.h: New file.
10706 * config/posix/ptrlock.c: New file.
10707 * config/posix/ptrlock.h: New file.
10708 * config/linux/bar.h (gomp_team_barrier_wait,
10709 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
10710 (gomp_team_barrier_set_task_pending,
10711 gomp_team_barrier_clear_task_pending,
10712 gomp_team_barrier_set_waiting_for_tasks,
10713 gomp_team_barrier_waiting_for_tasks,
10714 gomp_team_barrier_done): New inlines.
10715 (gomp_barrier_t): Rewritten.
10716 (gomp_barrier_state_t): New typedef.
10717 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
10718 gomp_barrier_wait_start): Rewritten.
10719 (gomp_barrier_wait_end): Change second argument to
10720 gomp_barrier_state_t.
10721 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
10722 inlines.
10723 * config/linux/bar.c: Include wait.h instead of libgomp.h and
10724 futex.h.
10725 (gomp_barrier_wait_end): Rewritten.
10726 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
10727 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
10728 * config/posix/bar.h (gomp_barrier_t): Add generation field.
10729 (gomp_barrier_state_t): New typedef.
10730 (gomp_team_barrier_wait,
10731 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
10732 (gomp_barrier_wait_start): Or all but low 2 bits from generation
10733 into the return value. Return gomp_barrier_state_t.
10734 (gomp_team_barrier_set_task_pending,
10735 gomp_team_barrier_clear_task_pending,
10736 gomp_team_barrier_set_waiting_for_tasks,
10737 gomp_team_barrier_waiting_for_tasks,
10738 gomp_team_barrier_done): New inlines.
10739 (gomp_barrier_wait_end): Change second argument to
10740 gomp_barrier_state_t.
10741 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
10742 inlines.
10743 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
10744 (gomp_barrier_wait_end): Change second argument to
10745 gomp_barrier_state_t.
10746 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
10747 gomp_team_barrier_wake): New functions.
10748 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
10749 futex.h.
10750 (gomp_futex_wake, gomp_futex_wait): New variables.
10751 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
10752 * config/linux/lock.c: Rewrite to make locks task owned,
10753 for backwards compatibility provide the old entrypoints
10754 if symbol versioning. Include wait.h instead of libgomp.h and
10755 futex.h.
10756 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
10757 * config/posix95/lock.c: Rewrite to make locks task owned,
10758 for backwards compatibility provide the old entrypoints
10759 if symbol versioning.
10760 * config/posix/lock.c: Rewrite to make locks task owned,
10761 for backwards compatibility provide the old entrypoints
10762 if symbol versioning.
10763 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
10764 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
10765 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
10766 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10767 (sys_futex0): Return error code.
10768 (futex_wake, futex_wait): If ENOSYS was returned, clear
10769 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10770 (cpu_relax, atomic_write_barrier): New static inlines.
10771 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10772 (futex_wake, futex_wait): If ENOSYS was returned, clear
10773 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10774 (cpu_relax, atomic_write_barrier): New static inlines.
10775 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10776 (sys_futex0): Return error code.
10777 (futex_wake, futex_wait): If ENOSYS was returned, clear
10778 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10779 (cpu_relax, atomic_write_barrier): New static inlines.
10780 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10781 (sys_futex0): Return error code.
10782 (futex_wake, futex_wait): If ENOSYS was returned, clear
10783 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10784 (cpu_relax, atomic_write_barrier): New static inlines.
10785 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10786 (sys_futex0): Return error code.
10787 (futex_wake, futex_wait): If ENOSYS was returned, clear
10788 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10789 (cpu_relax, atomic_write_barrier): New static inlines.
10790 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10791 (sys_futex0): Return error code.
10792 (futex_wake, futex_wait): If ENOSYS was returned, clear
10793 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10794 (cpu_relax, atomic_write_barrier): New static inlines.
10795 * config/linux/sem.c: Include wait.h instead of libgomp.h and
10796 futex.h.
10797 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
10798 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
10799 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
10800 types.
10801 (omp_nest_lock_t): Change owner into void *, add lock field.
10802 * config/posix95/omp-lock.h: Include semaphore.h.
10803 (omp_lock_25_t, omp_nest_lock_25_t): New types.
10804 (omp_lock_t): Use sem_t instead of mutex if semaphores
10805 aren't broken.
10806 (omp_nest_lock_t): Likewise. Change owner to void *.
10807 * config/posix/omp-lock.h: Include semaphore.h.
10808 (omp_lock_25_t, omp_nest_lock_25_t): New types.
10809 (omp_lock_t): Use sem_t instead of mutex if semaphores
10810 aren't broken.
10811 (omp_nest_lock_t): Likewise. Add owner field.
10812
10813 2008-06-06 Jakub Jelinek <jakub@redhat.com>
10814
10815 * testsuite/libgomp.c/collapse-1.c: New test.
10816 * testsuite/libgomp.c/collapse-2.c: New test.
10817 * testsuite/libgomp.c/collapse-3.c: New test.
10818 * testsuite/libgomp.c/icv-1.c: New test.
10819 * testsuite/libgomp.c/icv-2.c: New test.
10820 * testsuite/libgomp.c/lib-2.c: New test.
10821 * testsuite/libgomp.c/lock-1.c: New test.
10822 * testsuite/libgomp.c/lock-2.c: New test.
10823 * testsuite/libgomp.c/lock-3.c: New test.
10824 * testsuite/libgomp.c/loop-4.c: New test.
10825 * testsuite/libgomp.c/loop-5.c: New test.
10826 * testsuite/libgomp.c/loop-6.c: New test.
10827 * testsuite/libgomp.c/loop-7.c: New test.
10828 * testsuite/libgomp.c/loop-8.c: New test.
10829 * testsuite/libgomp.c/loop-9.c: New test.
10830 * testsuite/libgomp.c/nested-3.c: New test.
10831 * testsuite/libgomp.c/nestedfn-6.c: New test.
10832 * testsuite/libgomp.c/sort-1.c: New test.
10833 * testsuite/libgomp.c/task-1.c: New test.
10834 * testsuite/libgomp.c/task-2.c: New test.
10835 * testsuite/libgomp.c/task-3.c: New test.
10836 * testsuite/libgomp.c/task-4.c: New test.
10837 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
10838 to C++ testsuite default compiler options.
10839 * testsuite/libgomp.c++/collapse-1.C: New test.
10840 * testsuite/libgomp.c++/collapse-2.C: New test.
10841 * testsuite/libgomp.c++/ctor-10.C: New test.
10842 * testsuite/libgomp.c++/for-1.C: New test.
10843 * testsuite/libgomp.c++/for-2.C: New test.
10844 * testsuite/libgomp.c++/for-3.C: New test.
10845 * testsuite/libgomp.c++/for-4.C: New test.
10846 * testsuite/libgomp.c++/for-5.C: New test.
10847 * testsuite/libgomp.c++/loop-8.C: New test.
10848 * testsuite/libgomp.c++/loop-9.C: New test.
10849 * testsuite/libgomp.c++/loop-10.C: New test.
10850 * testsuite/libgomp.c++/task-1.C: New test.
10851 * testsuite/libgomp.c++/task-2.C: New test.
10852 * testsuite/libgomp.c++/task-3.C: New test.
10853 * testsuite/libgomp.c++/task-4.C: New test.
10854 * testsuite/libgomp.c++/task-5.C: New test.
10855 * testsuite/libgomp.c++/task-6.C: New test.
10856 * testsuite/libgomp.fortran/allocatable1.f90: New test.
10857 * testsuite/libgomp.fortran/allocatable2.f90: New test.
10858 * testsuite/libgomp.fortran/allocatable3.f90: New test.
10859 * testsuite/libgomp.fortran/allocatable4.f90: New test.
10860 * testsuite/libgomp.fortran/collapse1.f90: New test.
10861 * testsuite/libgomp.fortran/collapse2.f90: New test.
10862 * testsuite/libgomp.fortran/collapse3.f90: New test.
10863 * testsuite/libgomp.fortran/collapse4.f90: New test.
10864 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
10865 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
10866 * testsuite/libgomp.fortran/lib4.f90: New test.
10867 * testsuite/libgomp.fortran/lock-1.f90: New test.
10868 * testsuite/libgomp.fortran/lock-2.f90: New test.
10869 * testsuite/libgomp.fortran/nested1.f90: New test.
10870 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
10871 * testsuite/libgomp.fortran/strassen.f90: New test.
10872 * testsuite/libgomp.fortran/tabs1.f90: New test.
10873 * testsuite/libgomp.fortran/tabs2.f: New test.
10874 * testsuite/libgomp.fortran/task1.f90: New test.
10875 * testsuite/libgomp.fortran/task2.f90: New test.
10876 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
10877 * testsuite/libgomp.fortran/vla5.f90: Likewise.
10878 * testsuite/libgomp.c/pr26943-2.c: Likewise.
10879 * testsuite/libgomp.c/pr26943-3.c: Likewise.
10880 * testsuite/libgomp.c/pr26943-4.c: Likewise.
10881
10882 2008-05-23 Jakub Jelinek <jakub@redhat.com>
10883
10884 PR c++/36308
10885 * testsuite/libgomp.c++/ctor-11.C: New test.
10886 * testsuite/libgomp.c++/ctor-12.C: New test.
10887
10888 2008-05-15 Janis Johnson <janis187@us.ibm.com>
10889
10890 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
10891
10892 2008-05-07 Jakub Jelinek <jakub@redhat.com>
10893
10894 PR middle-end/36106
10895 * testsuite/libgomp.c/atomic-5.c: New test.
10896 * testsuite/libgomp.c/atomic-6.c: New test.
10897 * testsuite/libgomp.c/autopar-1.c: New test.
10898
10899 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10900
10901 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
10902 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
10903 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
10904 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
10905 * configure: Regenerate.
10906 * Makefile.in, testsuite/Makefile.in: Likewise.
10907
10908 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
10909
10910 PR bootstrap/35457
10911 * aclocal.m4: Regenerate.
10912 * configure: Regenerate.
10913
10914 2008-03-18 Jakub Jelinek <jakub@redhat.com>
10915
10916 PR middle-end/35611
10917 * testsuite/libgomp.c/atomic-4.c: New test.
10918
10919 PR libgomp/35625
10920 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
10921 (gomp_iter_guided_next): Likewise.
10922 * testsuite/libgomp.c/pr35625.c: New test.
10923
10924 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10925
10926 * aclocal.m4: Regenerate.
10927 * configure: Likewise.
10928 * Makefile.in: Likewise.
10929 * testsuite/Makefile.in: Likewise.
10930
10931 2008-03-13 Jakub Jelinek <jakub@redhat.com>
10932
10933 PR middle-end/35185
10934 * testsuite/libgomp.c++/pr35185.C: New test.
10935
10936 2008-03-12 Jakub Jelinek <jakub@redhat.com>
10937
10938 PR middle-end/35549
10939 * testsuite/libgomp.c/pr35549.c: New test.
10940
10941 2008-03-06 Jakub Jelinek <jakub@redhat.com>
10942
10943 * testsuite/libgomp.c/atomic-3.c: New test.
10944
10945 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10946
10947 PR fortran/33197
10948 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
10949 .F08 file suffixes.
10950
10951 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
10952
10953 PR libgomp/33131
10954 * configure.ac: Add ACX_HEADER_STRING.
10955 * env.c: Include strings.h.
10956 * aclocal.m4: Regenerate.
10957 * config.h.in: Regenerate.
10958 * configure: Regenerate.
10959 * Makefile.in: Regenerate.
10960 * testsuite/Makefile.in: Regenerate.
10961
10962 2008-02-15 Jakub Jelinek <jakub@redhat.com>
10963
10964 PR middle-end/35196
10965 * testsuite/libgomp.c/pr35196.c: New test.
10966
10967 PR middle-end/35130
10968 * testsuite/libgomp.fortran/pr35130.f90: New test.
10969 * testsuite/libgomp.c/pr35130.c: New test.
10970
10971 2008-01-25 Jakub Jelinek <jakub@redhat.com>
10972
10973 PR middle-end/33880
10974 * testsuite/libgomp.c/pr33880.c: New test.
10975 * testsuite/libgomp.fortran/pr33880.f90: New test.
10976
10977 2008-01-24 David Edelsohn <edelsohn@gnu.org>
10978
10979 * configure: Regenerate.
10980
10981 2008-01-08 Jakub Jelinek <jakub@redhat.com>
10982
10983 * configure.ac: Move futex checking into ../config/futex.m4.
10984 * configure: Rebuilt.
10985 * aclocal.m4: Rebuilt.
10986 * Makefile.in: Rebuilt.
10987
10988 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
10989 2007-10-15 ../config/tls.m4 change.
10990
10991 2007-12-19 Jakub Jelinek <jakub@redhat.com>
10992
10993 PR c++/34513
10994 * testsuite/libgomp.c/pr34513.c: New test.
10995 * testsuite/libgomp.c++/pr34513.C: New test.
10996
10997 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
10998
10999 PR target/32765
11000 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
11001
11002 2007-12-04 Jakub Jelinek <jakub@redhat.com>
11003
11004 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
11005
11006 2007-12-03 Jakub Jelinek <jakub@redhat.com>
11007
11008 * testsuite/libgomp.c/private-1.c: New test.
11009
11010 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
11011 Paolo Bonzini <bonzini@gnu.org>
11012
11013 * Makefile.am: Use space as vpath separator. Use 'vpath %'
11014 instead of 'VPATH ='.
11015 * Makefile.in: Regenerate.
11016
11017 2007-11-23 Matthias Klose <doko@ubuntu.com>
11018
11019 * configure.ac: Adjust makeinfo version check.
11020 * configure: Regenerate.
11021
11022 2007-11-10 Jakub Jelinek <jakub@redhat.com>
11023
11024 PR fortran/34020
11025 * testsuite/libgomp.fortran/pr34020.f90: New test.
11026
11027 2007-11-06 Jakub Jelinek <jakub@redhat.com>
11028
11029 PR c++/33894
11030 * testsuite/libgomp.c++/atomic-1.C: New test.
11031
11032 2007-10-25 Jakub Jelinek <jakub@redhat.com>
11033
11034 PR libgomp/33275
11035 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
11036 Make x and y integers rather than (implicit) reals. Add private (j)
11037 clause to the last omp parallel.
11038
11039 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
11040
11041 * configure: Regenerate following changes to ../config/tls.m4.
11042
11043 2007-09-28 Jakub Jelinek <jakub@redhat.com>
11044
11045 * testsuite/libgomp.fortran/stack.f90: New test.
11046
11047 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
11048
11049 * config/mingw32/proc.c: New file.
11050
11051 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
11052
11053 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
11054 (main): Use __get_cpuid to get i386 target fetaures.
11055 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
11056 (main): Use __get_cpuid to get x86_64 target fetaures.
11057
11058 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
11059
11060 PR target/32765
11061 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
11062 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
11063
11064 2007-07-12 Jakub Jelinek <jakub@redhat.com>
11065
11066 PR fortran/32550
11067 * testsuite/libgomp.fortran/pr32550.f90: New test.
11068 * testsuite/libgomp.fortran/crayptr2.f90: New test.
11069
11070 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
11071
11072 * aclocal.m4: Regenerated.
11073
11074 2007-07-05 Tobias Burnus <burnus@net-b.de>
11075
11076 PR fortran/32359
11077 * testsuite/libgomp.fortran/pr32359.f90: New.
11078
11079 2007-07-02 Jakub Jelinek <jakub@redhat.com>
11080
11081 PR libgomp/32468
11082 * sections.c (GOMP_parallel_sections_start): Only decrease
11083 number of threads to COUNT if dyn_var is true.
11084 * testsuite/libgomp.c/pr32468.c: New test.
11085
11086 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11087
11088 PR libgomp/26308
11089 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
11090
11091 2007-06-21 Jakub Jelinek <jakub@redhat.com>
11092
11093 PR middle-end/32362
11094 * testsuite/libgomp.c/pr32362-1.c: New test.
11095 * testsuite/libgomp.c/pr32362-2.c: New test.
11096 * testsuite/libgomp.c/pr32362-3.c: New test.
11097
11098 2007-06-07 Jakub Jelinek <jakub@redhat.com>
11099
11100 * team.c (gomp_team_start): Fix setting up thread_attr
11101 stack size.
11102
11103 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
11104
11105 * configure: Regenerate.
11106
11107 2007-05-23 Steve Ellcey <sje@cup.hp.com>
11108
11109 * Makefile.in: Regenerate.
11110 * configure: Regenerate.
11111 * aclocal.m4: Regenerate.
11112 * testsuite/Makefile.in: Regenerate.
11113
11114 2007-05-04 Jakub Jelinek <jakub@redhat.com>
11115
11116 * config/linux/proc.c: New file.
11117
11118 PR libgomp/28482
11119 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
11120
11121 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
11122
11123 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
11124
11125 2007-04-16 Matthias Klose <doko@debian.org>
11126
11127 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
11128 flags if not building with -m64.
11129 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
11130 flag for i?86-*-* targets, if current target matches -m64.
11131
11132 2007-04-14 Steve Ellcey <sje@cup.hp.com>
11133
11134 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
11135 * Makefile.in: Regenerate.
11136
11137 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11138
11139 PR testsuite/31369
11140 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
11141 ld_library_path.
11142 * testsuite/libgomp.fortran/fortran.exp: Likewise.
11143
11144 2007-04-04 Jakub Jelinek <jakub@redhat.com>
11145
11146 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
11147 decls.
11148 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
11149 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
11150 (parse_affinity): New function.
11151 (initialize_env): Call it and gomp_init_affinity.
11152 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
11153 create new pthread_attr_t and call gomp_init_thread_affinity
11154 on it for each thread before passing the attribute to pthread_create.
11155 * config/linux/affinity.c: New file.
11156 * config/posix/affinity.c: New file.
11157 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
11158 * configure: Rebuilt.
11159 * config.h.in: Rebuilt.
11160 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
11161 * Makefile.in: Rebuilt.
11162
11163 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
11164
11165 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
11166 *-*-darwin*.
11167 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
11168 and use it if found.
11169
11170 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
11171
11172 * testsuite/config/default.exp: New file.
11173 * testsuite/lib/libgomp.exp: New file.
11174 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
11175 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
11176 load_lib *, load_gcc_lib *): Move to libgomp.exp.
11177 (libgomp_load): Remove.
11178 * testsuite/lib/libgomp.exp (libgomp_init): Compute
11179 always_ld_library_path, not ld_library_path. Set additional_flags
11180 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
11181 (target_compile): Do not call libgomp_init. Append lang_library_path
11182 and lang_link_flags to options.
11183 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
11184 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
11185 here.
11186 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
11187 always_ld_library_path. Set LD_LIBRARY_PATH here.
11188 * testsuite/libgomp.fortran/fortran.exp: Ditto.
11189 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
11190 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
11191 CX8 flag.
11192 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
11193 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
11194 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
11195 * testsuite/libgomp.c/pr29947-1.c: Ditto.
11196 * testsuite/libgomp.c/atomic-10.c: Ditto.
11197
11198 2007-03-21 Jakub Jelinek <jakub@redhat.com>
11199
11200 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
11201 dg-final cleanup-modules line.
11202 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
11203 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
11204 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
11205 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11206 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11207 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11208 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11209
11210 2007-03-18 Andreas Schwab <schwab@suse.de>
11211
11212 * acinclude.m4: Adjust regular expression for ld version
11213 extraction.
11214 * configure: Regenerate.
11215
11216 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
11217
11218 * Makefile.am: Add install-pdf target as copied from
11219 automake v1.10 rules.
11220 * Makefile.in: Regenerate
11221
11222 2007-02-07 Jakub Jelinek <jakub@redhat.com>
11223
11224 PR libgomp/28486
11225 * configure: Regenerate.
11226
11227 PR c++/30703
11228 * testsuite/libgomp.c++/pr30703.C: New test.
11229
11230 2007-02-02 Jakub Jelinek <jakub@redhat.com>
11231
11232 Revert:
11233 2006-07-05 Eric Christopher <echristo@apple.com>
11234 * configure.ac: Depend addition of -pthread on host OS.
11235 * configure: Regenerate.
11236
11237 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11238
11239 * libgomp.texi: Fix spacing after abbreviations.
11240
11241 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
11242
11243 PR libgomp/30546
11244 * configure.ac: Add check for makeinfo
11245 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
11246 if an appropriate version of makeinfo is found.
11247 * aclocal.m4: Regenerated.
11248 * configure: Regenerated.
11249 * Makefile.in: Regenerated.
11250 * testsuite/Makefile.in: Regenerated.
11251
11252 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
11253
11254 PR libgomp/30540
11255 * libgomp.texi: More about implementation-dependent settings.
11256
11257 2007-01-26 Tobias Burnus <burnus@net-b.de>
11258
11259 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
11260
11261 2007-01-24 Jakub Jelinek <jakub@redhat.com>
11262
11263 PR middle-end/30494
11264 * testsuite/libgomp.c/pr30494.c: New test.
11265
11266 2007-01-15 Tom Tromey <tromey@redhat.com>
11267
11268 * configure: Rebuilt.
11269 * configure.ac: Fixed comment.
11270
11271 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
11272
11273 * libgomp.texi: Document implementation specific default values of
11274 environment variables.
11275
11276 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
11277
11278 PR libgomp/28209
11279 * libgomp.texi: New file.
11280 * configure.ac: Add --enable-generated-files-in-srcdir option.
11281 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
11282 files to srcdir.
11283 * Makefile.in: Regenerated.
11284 * config.h.in: Regenerated.
11285 * testsuite/Makefile.in: Regenerated.
11286 * NOTES: Removed.
11287
11288 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
11289
11290 PR libgomp/29949
11291 * env.c (omp_set_num_threads): Set illegal thread count to 1.
11292
11293 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
11294
11295 * configure: Regenerate.
11296
11297 2006-12-04 Jakub Jelinek <jakub@redhat.com>
11298
11299 PR libgomp/29947
11300 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
11301 start if there shouldn't be any loop iterations.
11302 (gomp_loop_ordered_static_start): Remove start == end test.
11303 * testsuite/libgomp.c/pr29947-1.c: New test.
11304 * testsuite/libgomp.c/pr29947-2.c: New test.
11305
11306 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
11307
11308 * configure.tgt: Force initial-exec TLS model on Linux only.
11309
11310 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
11311
11312 * configure: Regenerated.
11313
11314 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
11315
11316 * env.c (parse_schedule): Reject out of range values.
11317 (parse_unsigned_long): Reject out of range, negative or zero values.
11318
11319 2006-10-29 Jakub Jelinek <jakub@redhat.com>
11320
11321 PR fortran/29629
11322 * testsuite/libgomp.fortran/pr29629.f90: New test.
11323
11324 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
11325
11326 PR libgomp/29494
11327 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
11328 * config/posix95: New directory.
11329 * config/posix95/omp-lock.h: New file.
11330 * config/posix95/lock.c: Likewise.
11331
11332 2006-10-14 Geoffrey Keating <geoffk@apple.com>
11333
11334 * aclocal.m4: Regenerate.
11335 * configure: Regenerate.
11336
11337 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
11338
11339 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
11340 '<' to '<='.
11341
11342 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
11343
11344 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
11345 test.
11346 * configure: Regenerate.
11347 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
11348
11349 2006-09-26 Jakub Jelinek <jakub@redhat.com>
11350
11351 PR middle-end/25261
11352 PR middle-end/28790
11353 * testsuite/libgomp.c/nestedfn-4.c: New test.
11354 * testsuite/libgomp.c/nestedfn-5.c: New test.
11355 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
11356
11357 PR fortran/29097
11358 * testsuite/libgomp.fortran/condinc1.f: New test.
11359 * testsuite/libgomp.fortran/condinc2.f: New test.
11360 * testsuite/libgomp.fortran/condinc3.f90: New test.
11361 * testsuite/libgomp.fortran/condinc4.f90: New test.
11362 * testsuite/libgomp.fortran/condinc1.inc: New file.
11363
11364 2006-09-18 Tom Tromey <tromey@redhat.com>
11365
11366 * configure: Rebuilt.
11367
11368 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
11369
11370 PR c/28768
11371 PR preprocessor/14634
11372 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
11373 to AC_DEFINE.
11374 * configure: Regenerate.
11375
11376 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
11377
11378 * testsuite/libgomp.fortran/reduction3.f90: Change
11379 -2147483648 to -huge(i)-1 to avoid overflow.
11380 * testsuite/libgomp.fortran/reduction4.f90: Change
11381 Z'ffffffff' to not(0) to avoid overflow.
11382
11383 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
11384
11385 PR libgomp/25938
11386 * Makefile.am (libsubincludedir): New.
11387 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
11388 * Makefile.in: Regenerate.
11389
11390 2006-08-17 Jakub Jelinek <jakub@redhat.com>
11391
11392 PR libgomp/28725
11393 * env.c: Include ctype.h.
11394 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
11395 leading and/or trailing whitespace and compare strings case
11396 insensitively.
11397
11398 2006-07-16 Jakub Jelinek <jakub@redhat.com>
11399
11400 PR fortran/28390
11401 * testsuite/libgomp.fortran/pr28390.f: New test.
11402
11403 2006-07-05 Eric Christopher <echristo@apple.com>
11404
11405 * configure.ac: Depend addition of -pthread on host OS.
11406 * configure: Regenerate.
11407
11408 2006-06-21 Jakub Jelinek <jakub@redhat.com>
11409
11410 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
11411 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
11412 defined.
11413
11414 2006-06-20 Jakub Jelinek <jakub@redhat.com>
11415
11416 PR libgomp/26175
11417 PR libgomp/26477
11418 * configure.ac: If neither --enable-linux-futex nor
11419 --disable-linux-futex is passed, determine the default by checking
11420 for compiling and/or running against NPTL. With --enable-linux-futex,
11421 check if SYS_gettid and SYS_futex are defined.
11422 * configure: Rebuilt.
11423
11424 2006-06-14 Richard Henderson <rth@redhat.com>
11425
11426 PR libgomp/28008
11427 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
11428 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
11429
11430 2006-06-09 Richard Henderson <rth@redhat.com>
11431
11432 * env.c (gomp_nthreads_var): Change to unsigned long.
11433 (gomp_run_sched_chunk): Likewise.
11434 (parse_unsigned_long): Rename from parse_num_threads and generalize.
11435 (initialize_env): Initialize gomp_thread_attr.
11436 * libgomp.h (gomp_nthreads_var): Update decl.
11437 (gomp_run_sched_chunk): Likewise.
11438 (gomp_thread_attr): Declare.
11439 * team.c (gomp_thread_attr): Export.
11440 (initialize_team): Don't initialize it.
11441
11442 2006-06-09 Jakub Jelinek <jakub@redhat.com>
11443
11444 PR fortran/27916
11445 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
11446 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
11447
11448 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
11449
11450 * config/mingw32/time.c: New file.
11451 * configure.tgt: Use it.
11452
11453 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
11454
11455 * Makefile.am: Add install-html target. Add install-html to .PHONY
11456 * Makefile.in: Regenerate.
11457
11458 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11459
11460 PR libgomp/27612
11461 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
11462 * testsuite/libgomp.c/critical-1.c: Likewise.
11463 * testsuite/libgomp.c/loop-1.c: Likewise.
11464 * testsuite/libgomp.c/loop-2.c: Likewise.
11465 * testsuite/libgomp.c/single-1.c: Likewise.
11466 * testsuite/libgomp.c/ordered-1.c: Likewise.
11467 * testsuite/libgomp.c/ordered-2.c: Likewise.
11468
11469 2006-05-15 Jakub Jelinek <jakub@redhat.com>
11470
11471 PR middle-end/27416
11472 * libgomp.fortran/pr27416-1.f90: New test.
11473
11474 2006-05-03 Jakub Jelinek <jakub@redhat.com>
11475
11476 PR fortran/27395
11477 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
11478 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
11479
11480 2006-05-02 Jakub Jelinek <jakub@redhat.com>
11481
11482 PR c++/26943
11483 * testsuite/libgomp.c/pr26943-1.c: New test.
11484 * testsuite/libgomp.c/pr26943-2.c: New test.
11485 * testsuite/libgomp.c/pr26943-3.c: New test.
11486 * testsuite/libgomp.c/pr26943-4.c: New test.
11487 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
11488 * testsuite/libgomp.c++/pr26943.C: New test.
11489
11490 2006-05-02 Jakub Jelinek <jakub@redhat.com>
11491
11492 PR middle-end/27337
11493 * testsuite/libgomp.c++/pr27337.C: New test.
11494
11495 2006-04-26 Jakub Jelinek <jakub@redhat.com>
11496
11497 PR c/26171
11498 * testsuite/libgomp.c/pr26171.c: New test.
11499
11500 2006-04-25 Richard Henderson <rth@redhat.com>
11501
11502 PR libgomp/25865
11503 * configure.ac: Use GCC_CHECK_TLS.
11504 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
11505 * Makefile.in, aclocal.m4, configure: Regenerate.
11506
11507 2006-04-10 Matthias Klose <doko@debian.org>
11508
11509 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
11510 directory names containing underscores.
11511
11512 2006-03-21 Jakub Jelinek <jakub@redhat.com>
11513
11514 PR c++/26691
11515 * testsuite/libgomp.c++/pr26691.C: New test.
11516
11517 2006-03-13 Jakub Jelinek <jakub@redhat.com>
11518
11519 * testsuite/libgomp.fortran/retval2.f90: New test.
11520
11521 2006-03-09 Diego Novillo <dnovillo@redhat.com>
11522
11523 * testsuite/libgomp.c++: New directory.
11524
11525 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
11526
11527 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
11528 * config/posix/sem.c: Implement the above.
11529
11530 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
11531
11532 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
11533 define HAVE_BROKEN_POSIX_SEMAPHORES.
11534 * configure: Rebuilt.
11535 * config.h.in: Rebuilt.
11536
11537 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
11538
11539 PR bootstrap/26161
11540 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
11541 for the other pthread check.
11542 * configure: Regenerate.
11543 * config.h.in: Regenerate.
11544
11545 2006-02-15 Jakub Jelinek <jakub@redhat.com>
11546
11547 PR libgomp/25938
11548 PR libgomp/25984
11549 * Makefile.am (fincludedir): New variable.
11550 (nodist_include_HEADERS): Remove Fortran files.
11551 (nodist_finclude_HEADERS): New variable.
11552 * Makefile.in: Regenerated.
11553
11554 2006-02-13 Jakub Jelinek <jakub@redhat.com>
11555
11556 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
11557 Remove tests for returning assumed character length arrays.
11558
11559 2006-02-12 Roger Sayle <roger@eyesopen.com>
11560 John David Anglin <dave@hiauly1.hia.nrc.ca>
11561
11562 PR libgomp/25936
11563 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
11564
11565 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
11566
11567 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
11568
11569 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
11570
11571 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
11572 part of LD_LIBRARY_PATH manually.
11573
11574 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
11575
11576 PR libgomp/25852
11577 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
11578 libgomp_init.
11579
11580 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
11581
11582 PR libgomp/25884
11583 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
11584 * configure.ac (PERL): Don't set.
11585 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
11586 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
11587 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
11588 * omp.h.in: Wrap the new configure substitutions with @ characters.
11589 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
11590 * aclocal.m4, configure, Makefile.in: Regenerate.
11591 * mkomp_h.pl: Delete.
11592
11593 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
11594
11595 PR libgomp/25259
11596 * configure.ac: Use GCC_HEADER_STDINT.
11597 * libgomp.h: Include gstdint.h.
11598 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
11599 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
11600
11601 2006-01-24 Richard Henderson <rth@redhat.com>
11602
11603 PR libgomp/25942
11604 * configure.ac: Add AM_MAINTAINER_MODE.
11605 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
11606
11607 2006-01-24 Diego Novillo <dnovillo@redhat.com>
11608
11609 * Makefile.in: Regenerate.
11610 * testsuite/Makefile.in: Regenerate.
11611 * aclocal.m4: Regenerate.
11612
11613 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
11614
11615 * config/posix/proc.c: Conditional include of sys/loadavg.h for
11616 Solaris.
11617 * configure.ac: Add check for loadavg.h.
11618 (link_gomp): Adjust comment.
11619 * configure: Regenerate.
11620 * config.h.in: Regenerate.
11621
11622 2006-01-21 Steve Ellcey <sje@cup.hp.com>
11623
11624 PR libgomp/25877
11625 * configure.ac: Remove check for alloca.h.
11626 * configure: Regenerate.
11627 * config.h.in: Regenerate.
11628 * libgomp.h: define gomp_alloca to be __builtin_alloca.
11629 * team.c: Remove use of alloca.h.
11630 Call gomp_alloca instead of alloca.
11631
11632 2006-01-20 Steve Ellcey <sje@cup.hp.com>
11633
11634 PR libgomp/25877
11635 * team.c: Add include of alloca.h.
11636 * configure.ac: Add check for alloca.h.
11637 * configure: Regenerate.
11638 * config.h.in: Regenerate.
11639
11640 2006-01-17 Jakub Jelinek <jakub@redhat.com>
11641
11642 PR fortran/25219
11643 * testsuite/libgomp.fortran/pr25219.f90: New test.
11644
11645 2005-12-05 Uros Bizjak <uros@kss-loka.si>
11646
11647 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
11648 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
11649 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
11650 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
11651 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
11652 testsuite/libgomp.fortran/threadprivate1.f90,
11653 testsuite/libgomp.fortran/threadprivate2.f90,
11654 testsuite/libgomp.fortran/threadprivate3.f90,
11655 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
11656 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
11657 testsuite/libgomp.fortran/omp_parse3.f90: Change required
11658 effective-target to TLS runtime.
11659
11660 * testsuite/libgomp.fortran/pr25162.f: Require
11661 effective-target TLS runtime.
11662
11663 2005-12-01 Jakub Jelinek <jakub@redhat.com>
11664
11665 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
11666 * testsuite/libgomp.c/nestedfn-3.c: New test.
11667
11668 2005-11-30 Jakub Jelinek <jakub@redhat.com>
11669
11670 PR fortran/25162
11671 * testsuite/libgomp.fortran/pr25162.f: New test.
11672
11673 2005-11-28 Jakub Jelinek <jakub@redhat.com>
11674
11675 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
11676 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
11677
11678 2005-11-25 Jakub Jelinek <jakub@redhat.com>
11679
11680 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
11681 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
11682 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
11683 single.c, team.c, work.c, config/linux/alpha/futex.h,
11684 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
11685 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
11686 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
11687 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
11688 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
11689 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
11690 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
11691 FSF address.
11692
11693 2005-11-18 Jakub Jelinek <jakub@redhat.com>
11694
11695 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
11696 to nodist_noinst_HEADERS.
11697 * Makefile.in: Rebuilt.
11698
11699 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
11700 add integer count field.
11701 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
11702 omp_nest_lock_t type change.
11703 (omp_init_nest_lock): Likewise. Initialize count to 0.
11704 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
11705 Increment count.
11706 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
11707 Decrement count.
11708 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
11709 Increment count if successful and return the new nesting level.
11710 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
11711 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
11712 * testsuite/libgomp.c/lib-1.c: New test.
11713 * testsuite/libgomp.fortran/lib1.f90: New test.
11714 * testsuite/libgomp.fortran/lib2.f: New test.
11715 * testsuite/libgomp.fortran/lib3.f: New test.
11716
11717 2005-11-17 Richard Henderson <rth@redhat.com>
11718
11719 PR 24845
11720 * Makefile.am (nodist_toolexeclib_HEADERS): New.
11721 * configure.ac (link_gomp): New. Substitute it.
11722 (AC_CONFIG_FILES): Add libgomp.spec.
11723 * libgomp.spec.in: New file.
11724 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
11725 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
11726
11727 2005-11-18 Jakub Jelinek <jakub@redhat.com>
11728
11729 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
11730 reduction(-:var) behaving the same as reduction(+:var).
11731 * testsuite/libgomp.c/reduction-4.c: New test.
11732
11733 2005-11-15 Uros Bizjak <uros@kss-loka.si>
11734
11735 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
11736 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
11737 testsuite/libgomp.c/copyin-3.c,
11738 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
11739 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
11740 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
11741 testsuite/libgomp.c++/pr24455.C,
11742 testsuite/libgomp.fortran/threadprivate1.f90,
11743 testsuite/libgomp.fortran/threadprivate2.f90,
11744 testsuite/libgomp.fortran/threadprivate3.f90,
11745 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
11746 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
11747 testsuite/libgomp.fortran/omp_parse3.f90: Require
11748 effective-target TLS.
11749
11750 2005-11-14 Diego Novillo <dnovillo@redhat.com>
11751
11752 * HEADER: Remove.
11753
11754 2005-11-13 Jakub Jelinek <jakub@redhat.com>
11755
11756 PR libgomp/24797
11757 * team.c (initialize_team): Pass NULL rather than free as
11758 pthread_key_create destructor. Initialize thread specific data
11759 pointer in initial thread to a static local variable rather than
11760 malloced memory.
11761
11762 2005-11-11 Uros Bizjak <uros@kss-loka.si>
11763
11764 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
11765 its location to ld_library_path.
11766
11767 2005-11-10 Diego Novillo <dnovillo@redhat.com>
11768
11769 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
11770
11771 2005-11-10 Diego Novillo <dnovillo@redhat.com>
11772
11773 * testsuite/libgomp.c: Rename from libgomp.dg.
11774
11775 2005-11-09 Diego Novillo <dnovillo@redhat.com>
11776
11777 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
11778 threadprivate variable 'i'.
11779
11780 2005-11-09 Jakub Jelinek <jakub@redhat.com>
11781
11782 * config/linux/s390/futex.h: New file.
11783 * configure.tgt: Use it.
11784
11785 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
11786 before the parallel.
11787
11788 2005-11-08 Jakub Jelinek <jakub@redhat.com>
11789
11790 PR c++/24734
11791 * testsuite/libgomp.c++/master-1.C: New test.
11792
11793 2005-11-07 Jakub Jelinek <jakub@redhat.com>
11794
11795 * testsuite/libgomp.dg/copyin-3.c: New test.
11796
11797 2005-11-07 Jakub Jelinek <jakub@redhat.com>
11798
11799 * testsuite/libgomp.fortran/retval1.f90: New test.
11800 * testsuite/libgomp.fortran/vla7.f90: New test.
11801
11802 2005-11-06 Jakub Jelinek <jakub@redhat.com>
11803
11804 * testsuite/libgomp.fortran/vla2.f90: New test.
11805 * testsuite/libgomp.fortran/vla3.f90: New test.
11806 * testsuite/libgomp.fortran/vla4.f90: New test.
11807 * testsuite/libgomp.fortran/vla5.f90: New test.
11808 * testsuite/libgomp.fortran/vla6.f90: New test.
11809
11810 2005-11-01 Jakub Jelinek <jakub@redhat.com>
11811
11812 * config/linux/sparc/futex.h: New file.
11813 * configure.tgt: Use it.
11814 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
11815
11816 * critical.c: Include stdlib.h.
11817 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
11818 ignoring return value.
11819 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
11820 LIBGOMP_CHECK_SYNC_BUILTINS check.
11821 * configure: Rebuilt.
11822
11823 2005-10-31 Jakub Jelinek <jakub@redhat.com>
11824
11825 * testsuite/libgomp.fortran/vla1.f90: New test.
11826
11827 2005-10-31 Richard Henderson <rth@redhat.com>
11828
11829 * testsuite/libgomp.fortran/character2.f90: Fix race condition
11830 setting 's' in different threads.
11831
11832 2005-10-31 Jakub Jelinek <jakub@redhat.com>
11833
11834 * libgomp.h (attribute_hidden, ialias): Define.
11835 * config/posix/proc.c (omp_get_num_procs): Add ialias.
11836 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
11837 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
11838 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
11839 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
11840 omp_test_lock, omp_test_nest_lock): Likewise.
11841 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
11842 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
11843 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
11844 omp_test_lock, omp_test_nest_lock): Likewise.
11845 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
11846 omp_get_dynamic, omp_get_nested): Likewise.
11847 * parallel.c (omp_get_num_threads, omp_get_max_threads,
11848 omp_get_thread_num, omp_in_parallel): Likewise.
11849 * fortran.c (ialias_redirect): Define.
11850 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
11851 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
11852 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
11853 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
11854 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
11855 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
11856 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
11857 omp_get_wtime): Add ialias_redirect.
11858
11859 2005-10-30 Jakub Jelinek <jakub@redhat.com>
11860
11861 * fortran.c: Include stdlib.h.
11862
11863 2005-10-29 Jakub Jelinek <jakub@redhat.com>
11864
11865 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
11866 * Makefile.in: Regenerated.
11867
11868 2005-10-28 Jakub Jelinek <jakub@redhat.com>
11869
11870 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
11871 * libgomp_f.h.in (omp_check_defines): New function.
11872 * env.c: Include libgomp_f.h.
11873 (initialize_env): Call omp_check_defines.
11874
11875 * testsuite/libgomp.dg/copyin-2.c: New test.
11876 * testsuite/libgomp.c++/copyin-2.C: New test.
11877 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
11878
11879 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
11880 * testsuite/libgomp.fortran/sharing2.f90: New test.
11881
11882 * testsuite/libgomp.dg/copyin-1.c: New test.
11883 * testsuite/libgomp.c++/copyin-1.C: New test.
11884
11885 2005-10-26 Jakub Jelinek <jakub@redhat.com>
11886
11887 * testsuite/libgomp.fortran/crayptr1.f90: New test.
11888
11889 * testsuite/libgomp.fortran/workshare1.f90: New test.
11890
11891 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
11892 only test.
11893 * libgomp.fortran/sharing1.f90: New test.
11894
11895 2005-10-24 Jakub Jelinek <jakub@redhat.com>
11896
11897 PR c++/24502
11898 * testsuite/libgomp.c++/loop-7.C: New test.
11899
11900 * testsuite/libgomp.dg/nestedfn-2.c: New test.
11901
11902 * testsuite/libgomp.dg/nestedfn-1.c: New test.
11903 * testsuite/libgomp.fortran/reduction6.f90: New test.
11904 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
11905
11906 2005-10-23 Richard Henderson <rth@redhat.com>
11907
11908 * testsuite/libgomp.c++/ctor-1.C: New.
11909 * testsuite/libgomp.c++/ctor-2.C: New.
11910 * testsuite/libgomp.c++/ctor-3.C: New.
11911 * testsuite/libgomp.c++/ctor-4.C: New.
11912 * testsuite/libgomp.c++/ctor-5.C: New.
11913 * testsuite/libgomp.c++/ctor-6.C: New.
11914 * testsuite/libgomp.c++/ctor-7.C: New.
11915 * testsuite/libgomp.c++/ctor-8.C: New.
11916 * testsuite/libgomp.c++/ctor-9.C: New.
11917
11918 2005-10-21 Diego Novillo <dnovillo@redhat.com>
11919
11920 PR 24455
11921 * testsuite/libgomp.c++/pr24455-1.C: New test.
11922 * testsuite/libgomp.c++/pr24455.C: New test.
11923 * testsuite/libgomp.dg/pr24455-1.c: New test.
11924 * testsuite/libgomp.dg/pr24455.c: New test.
11925
11926 2005-10-20 Richard Henderson <rth@redhat.com>
11927
11928 * testsuite/libgomp.c++/loop-6.C: New.
11929 * testsuite/libgomp.dg/loop-3.c: New.
11930
11931 2005-10-20 Jakub Jelinek <jakub@redhat.com>
11932
11933 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
11934 explicitly private.
11935 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
11936 explicitly shared.
11937
11938 2005-10-19 Diego Novillo <dnovillo@redhat.com>
11939
11940 * testsuite/libgomp.fortran/jacobi.f: New test.
11941
11942 2005-10-19 Richard Henderson <rth@redhat.com>
11943
11944 * configure.tgt (i?86-linux): Default to with_arch instead of
11945 CFLAGS. Add -mtune to match target_cpu.
11946 (x86_64-linux): Tune to i686.
11947
11948 * fortran.c (omp_test_nest_lock_): Fix typo.
11949
11950 2005-10-19 Jakub Jelinek <jakub@redhat.com>
11951
11952 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
11953 gomp_ordered_sync): Do nothing if team->nthreads == 1.
11954 * testsuite/libgomp.dg/ordered-3.c: New test.
11955
11956 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
11957 Remove volatile keyword.
11958
11959 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
11960 in COMMON block to avoid warnings on 64-bit targets.
11961
11962 2005-10-18 Diego Novillo <dnovillo@redhat.com>
11963
11964 * testsuite/libgomp.dg/shared-3.c: New test.
11965
11966 2005-10-18 Jakub Jelinek <jakub@redhat.com>
11967
11968 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
11969 * testsuite/libgomp.fortran/reduction5.f90: New test.
11970
11971 2005-10-18 Jakub Jelinek <jakub@redhat.com>
11972
11973 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
11974 dg-options.
11975 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
11976 flush loop now that __sync_synchronize has proper memory barrier.
11977 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
11978 Add -ffixed-form to dg-options.
11979
11980 2005-10-17 Diego Novillo <dnovillo@redhat.com>
11981
11982 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
11983 from subdirectories.
11984 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
11985 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
11986 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
11987 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
11988 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
11989 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
11990 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
11991 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
11992 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
11993 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
11994 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
11995 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
11996 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
11997 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
11998 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
11999 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
12000 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
12001 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
12002 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
12003 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
12004 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
12005 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
12006 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
12007 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
12008 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
12009
12010 2005-10-17 Jakub Jelinek <jakub@redhat.com>
12011
12012 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
12013 lang_library_path exists. Use find instead of glob to gather tests.
12014 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
12015
12016 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12017
12018 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
12019 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
12020 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
12021 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
12022 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
12023 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
12024 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
12025 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
12026 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
12027 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
12028 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
12029 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
12030 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
12031
12032 2005-10-15 Jakub Jelinek <jakub@redhat.com>
12033
12034 * testsuite/libgomp.dg/vla-1.c: New test.
12035
12036 * testsuite/libgomp.fortran/reference2.f90: New test.
12037
12038 * testsuite/libgomp.fortran/character2.f90: Remove explicit
12039 declaration of omp_get_thread_num.
12040 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
12041 use omp_lib.
12042
12043 * testsuite/libgomp.fortran/reduction1.f90: New test.
12044 * testsuite/libgomp.fortran/reduction2.f90: New test.
12045 * testsuite/libgomp.fortran/reduction3.f90: New test.
12046 * testsuite/libgomp.fortran/reduction4.f90: New test.
12047
12048 2005-10-13 Richard Henderson <rth@redhat.com>
12049
12050 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
12051 * Makefile.in: Regenerate.
12052 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
12053 * libgomp.h: Include bar.h.
12054 (struct gomp_barrier): Remove.
12055 (struct gomp_team): Add barrier. Replace master_barrier with
12056 master_release. Replace threads with ordered_release.
12057 (struct gomp_thread): Replace barrier with release.
12058 * ordered.c (gomp_ordered_first): Update for ordered_release change.
12059 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
12060 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
12061 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
12062 (GOMP_single_copy_end): Likewise.
12063 * team.c (gomp_threads_dock): New.
12064 (gomp_barrier_init, gomp_barrier_destroy): Remove.
12065 (gomp_thread_start): Use gomp_barrier_wait.
12066 (new_team, free_team): Update for gomp_team changes.
12067 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
12068 (gomp_team_end): Use gomp_barrier_wait.
12069 (initialize_team): Update for gomp_thread changes.
12070 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
12071 (gomp_work_share_end_nowait): Use atomic ops when available.
12072 * config/linux/bar.c, config/linux/bar.h: New files.
12073 * config/posix/bar.c, config/posix/bar.h: New files.
12074
12075 2005-10-13 Jakub Jelinek <jakub@redhat.com>
12076
12077 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
12078 * testsuite/libgomp.dg/single-2.c: New test.
12079
12080 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
12081 lang_link_flags): Unset, so that they aren't inherited from previously
12082 sourced *.exp.
12083
12084 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
12085
12086 2005-10-12 Richard Henderson <rth@redhat.com>
12087
12088 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
12089 (libgomp_init): Use lang_test_file, lang_library_path, and
12090 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
12091
12092 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
12093 (lang_test_file, lang_link_flags): New.
12094 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
12095
12096 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
12097 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
12098 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
12099 testsuite/libgomp.c++/parallel-1.C,
12100 testsuite/libgomp.c++/reduction-1.C,
12101 testsuite/libgomp.c++/reduction-2.C,
12102 testsuite/libgomp.c++/reduction-3.C,
12103 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
12104 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
12105 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
12106 New files, largely cribbed from the C testsuite.
12107
12108 2005-10-12 Jakub Jelinek <jakub@redhat.com>
12109
12110 * testsuite/libgomp.fortran/character1.f90: New test.
12111 * testsuite/libgomp.fortran/character2.f90: New test.
12112
12113 * testsuite/libgomp.dg/nested-1.c: New test.
12114 * testsuite/libgomp.dg/nested-2.c: New test.
12115 * testsuite/libgomp.fortran/do1.f90: New test.
12116 * testsuite/libgomp.fortran/do2.f90: New test.
12117
12118 * testsuite/libgomp.fortran/reference1.f90: New test.
12119
12120 2005-10-11 Jakub Jelinek <jakub@redhat.com>
12121
12122 * testsuite/libgomp.dg/reduction-1.c: New test.
12123 * testsuite/libgomp.dg/reduction-2.c: New test.
12124 * testsuite/libgomp.dg/reduction-3.c: New test.
12125
12126 2005-10-10 Jakub Jelinek <jakub@redhat.com>
12127
12128 * testsuite/libgomp.dg/atomic-1.c: New test.
12129 * testsuite/libgomp.dg/atomic-2.c: New test.
12130
12131 2005-10-09 Richard Henderson <rth@redhat.com>
12132
12133 * critical.c (atomic_lock): New.
12134 (initialize_critical): Initialize it.
12135 (GOMP_atomic_start, GOMP_atomic_end): New.
12136 * libgomp.map: Export them.
12137 * libgomp_g.h: Declare them.
12138
12139 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
12140
12141 2005-10-02 Richard Henderson <rth@redhat.com>
12142
12143 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
12144 to XCFLAGS instead of CFLAGS.
12145
12146 2005-09-30 Richard Henderson <rth@redhat.com>
12147
12148 * configure.ac: Determine whether -pthread or -lpthread is needed.
12149 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
12150 * Makefile.in, configure: Rebuild.
12151
12152 2005-09-28 Richard Henderson <rth@redhat.com>
12153
12154 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
12155 * testsuite/libgomp.dg/omp-single-3.c: New test.
12156
12157 2005-09-28 Diego Novillo <dnovillo@redhat.com>
12158
12159 * testsuite/libgomp.dg/omp-single-2.c: New test.
12160 * testsuite/libgomp.dg/shared-2.c: Fix return code.
12161
12162 2005-09-27 Richard Henderson <rth@redhat.com>
12163
12164 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
12165 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
12166
12167 2005-09-27 Jakub Jelinek <jakub@redhat.com>
12168
12169 * testsuite/libgomp.dg/omp-loop03.c: New test.
12170
12171 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12172
12173 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
12174
12175 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12176
12177 * testsuite/libgomp.dg/omp-single-1.c: New test.
12178 * testsuite/libgomp.dg/shared-1.c: Return 0.
12179 Add prototype for abort.
12180 * testsuite/libgomp.dg/shared-2.c: Likewise.
12181
12182 2005-09-26 Jakub Jelinek <jakub@redhat.com>
12183
12184 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
12185 constructs.
12186
12187 2005-09-26 Diego Novillo <dnovillo@redhat.com>
12188
12189 * testsuite/libgomp.dg/shared-1.c: New test.
12190 * testsuite/libgomp.dg/shared-2.c: New test.
12191
12192 2005-09-24 Richard Henderson <rth@redhat.com>
12193
12194 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
12195
12196 2005-09-24 Richard Henderson <rth@redhat.com>
12197
12198 * iter.c (gomp_iter_static_next): Round up when computing number
12199 of iterations. Don't bother distributing a remainder equally.
12200
12201 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
12202 Don't call srand. Zero b before testing.
12203 (main): New.
12204
12205 2005-09-24 Jakub Jelinek <jakub@redhat.com>
12206
12207 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
12208 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
12209
12210 2005-09-23 Jakub Jelinek <jakub@redhat.com>
12211
12212 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
12213 without !$omp end do, followed immediately by subroutine end.
12214
12215 2005-09-23 Diego Novillo <dnovillo@redhat.com>
12216
12217 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
12218
12219 2005-09-22 Richard Henderson <rth@redhat.com>
12220
12221 * critical.c (GOMP_critical_name_start): Change argument to void**.
12222 Reuse the pointer space if the mutex fits.
12223 (GOMP_critical_name_end): Likewise.
12224 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
12225 * libgomp_g.h (GOMP_critical_name_start): Update decl.
12226 (GOMP_critical_name_end): Likewise.
12227 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
12228 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
12229
12230 2005-09-20 Richard Henderson <rth@redhat.com>
12231
12232 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
12233 (create_lock_lock): New.
12234 (initialize_critical): Initialize it.
12235 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
12236 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
12237
12238 2005-09-20 Diego Novillo <dnovillo@redhat.com>
12239
12240 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
12241
12242 2005-09-20 Diego Novillo <dnovillo@redhat.com>
12243
12244 * testsuite/libgomp.dg/omp-loop01.c: New test.
12245 * testsuite/libgomp.dg/omp-loop02.c: New test.
12246
12247 2005-09-20 Jakub Jelinek <jakub@redhat.com>
12248
12249 * configure.ac (AC_PROG_FC): Add.
12250 (USE_FORTRAN): New automake conditional.
12251 * configure: Rebuilt.
12252 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
12253 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
12254 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
12255 Add rules to build them.
12256 * Makefile.in: Rebuilt.
12257 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
12258 OMP_NEST_LOCK_KIND.
12259 * libgomp.map: Add Fortran wrappers.
12260 * libgomp_f.h.in: New file.
12261 * omp_lib.h.in: New file.
12262 * omp_lib.f90.in: New file.
12263 * fortran.c: New file.
12264 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
12265 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
12266 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
12267 libgfortran has been built.
12268 * testsuite/libgomp.fortran/fortran.exp: New file.
12269 * testsuite/libgomp.fortran/omp_cond1.f: New test.
12270 * testsuite/libgomp.fortran/omp_cond2.f: New test.
12271 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
12272 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
12273 * testsuite/libgomp.fortran/omp_hello.f: New test.
12274 * testsuite/libgomp.fortran/omp_orphan.f: New test.
12275 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
12276 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
12277 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
12278 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
12279 * testsuite/libgomp.fortran/omp_reduction.f: New test.
12280 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
12281 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
12282
12283 2005-08-30 Richard Henderson <rth@redhat.com>
12284
12285 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
12286 function for when aliases are not usable.
12287 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
12288 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
12289 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
12290 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
12291 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
12292 GOMP_loop_ordered_guided_next): Likewise.
12293 * ordered.c (GOMP_ordered_start): Likewise.
12294
12295 2005-08-01 Diego Novillo <dnovillo@redhat.com>
12296
12297 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
12298 * testsuite/libgomp.dg/omp_hello.c: Fix return code
12299 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
12300 * testsuite/libgomp.dg/omp_orphan.c: Likewise
12301 * testsuite/libgomp.dg/omp_reduction.c: Likewise
12302 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
12303 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
12304 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
12305 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
12306
12307 2005-07-07 Eric Christopher <echristo@redhat.com>
12308 Diego Novillo <dnovillo@redhat.com>
12309
12310 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
12311 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
12312 up code.
12313 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
12314 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
12315 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
12316 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
12317 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
12318 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
12319 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
12320
12321 2005-06-13 Diego Novillo <dnovillo@redhat.com>
12322
12323 * TOPLEVEL.patch: Remove.
12324
12325 2005-05-16 Richard Henderson <rth@redhat.com>
12326
12327 * configure.ac: Test for clock_gettime.
12328 * config.h.in, configure: Rebuild.
12329 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
12330 (omp_get_wtime): Use clock_gettime if available.
12331 (omp_get_wtick): Use clock_getres if available.
12332
12333 2005-05-11 Richard Henderson <rth@redhat.com>
12334
12335 * config/linux/ia64/futex.h: New file.
12336 * configure.tgt: Use it.
12337
12338 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
12339
12340 2005-05-07 Richard Henderson <rth@redhat.com>
12341
12342 * config/linux/powerpc/futex.h: New file.
12343 * configure.tgt: Use it.
12344
12345 * config/linux/i486/futex.h: Merge ...
12346 * config/linux/x86_64/futex.h: ... into ...
12347 * config/linux/x86/futex.h: ... here.
12348 * configure.tgt: Update to match.
12349
12350 2005-05-06 Richard Henderson <rth@redhat.com>
12351
12352 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
12353 * config/linux/i486/futex.h: Likewise.
12354 * config/linux/x86_64/futex.h: Likewise.
12355
12356 * config/linux/lock.c: New file.
12357 * config/linux/omp-lock.h: New file.
12358
12359 * critical.c, env.h: Don't include omp.h
12360 * config/posix/lock.c: Include libgomp.h instead of omp.h.
12361 * config/posix/time.c: Likewise.
12362 * config/posix/omp-lock.h: New file.
12363 * libgomp.h: Include omp-lock.h and omp.h.
12364 * Makefile.am (nodist_include_HEADERS): New.
12365 (omp.h): New rule.
12366 * configure.ac (PERL): New.
12367 * mkomp_h.pl: New file.
12368 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
12369 with templates.
12370 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
12371
12372 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
12373 build directory. Re-add -march=i486 hack.
12374
12375 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
12376 (libgomp_link_flags): Remove.
12377 (libgomp_initialized): Remove.
12378 (libgomp_init): Don't protect from reinitialization. Copy code
12379 from libstdc++ for getting the multilib set correctly.
12380
12381 2005-05-05 Richard Henderson <rth@redhat.com>
12382
12383 * config/linux/alpha/futex.h: New file.
12384 * configure.tgt (alpha*-*-linux*): Use it.
12385
12386 * config/posix/mutex.c: New file.
12387 * config/posix/sem.c: Use libgomp.h.
12388
12389 * configure.tgt (x86_64-linux): Also test CC for -m32.
12390 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
12391
12392 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
12393 after $gccpath.
12394
12395 * Makefile.am (SUBDIRS): New.
12396 (libgomp_la_LDFLAGS): Add -lpthread.
12397 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
12398 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
12399
12400 * libgomp_g.h: New file.
12401 * libgomp.h: Split out all public declarations to libgomp_g.h.
12402 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
12403 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
12404 * config/linux/sem.h: Likewise.
12405 * config/posix/sem.h: Likewise.
12406
12407 * Makefile.am (AM_LDFLAGS): New.
12408 (libgomp_version_script): Split out from ...
12409 (libgomp_la_LDFLAGS): ... here.
12410 (libgomp_version_info): New.
12411 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
12412 (LIBGOMP_ENABLE): New.
12413 (LIBGOMP_CHECK_LINKER_FEATURES): New.
12414 (LIBGOMP_ENABLE_SYMVERS): New.
12415 * configure.ac (AC_INIT): Version 1.0.
12416 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
12417 (enable-linux-futex): Likewise. Rename from enable-futex.
12418 (libtool_VERSION): New.
12419 (LIBGOMP_ENABLE_SYMVERS): Use it.
12420 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
12421 * Makefile.in, aclocal.m4, configure: Rebuild.
12422
12423 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
12424 (gomp_mutex_unlock_slow): Fix typo.
12425 * config/linux/sem.c: Similarly.
12426 (gomp_sem_post_slow): Fix typo.
12427 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
12428 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
12429 [__PIC__] (sys_futex0): Don't use tmp output in asm.
12430
12431 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
12432 (libgomp_la_LDFLAGS): Add top_srcdir to path.
12433 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
12434 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
12435 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
12436 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
12437 LDFLAGS. Pull enable_futex check to top-level.
12438 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
12439 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
12440
12441 First attempt at real configury.
12442 * Makefile, config.h: Remove file.
12443 * Makefile.am, Makefile.in: New file.
12444 * acinclude.m4 aclocal.m4: New file.
12445 * configure.ac, configure.tgt, configure: New file.
12446
12447 * config/posix/lock.c: Rename from sys-lock.c.
12448 * config/posix/mutex.h: Rename from sys-mutex.h.
12449 * config/posix/sem.c: Rename from sys-sem.c.
12450 * config/posix/sem.h: Rename from sys-sem.h.
12451 * config/posix/proc.c: Rename from sys-proc.c.
12452 * config/posix/time.c: Rename from sys-proc.c.
12453
12454 * config/linux/mutex.c: New file.
12455 * config/linux/mutex.h: New file.
12456 * config/linux/sem.c: New file.
12457 * config/linux/sem.h: New file.
12458 * config/linux/i486/futex.h: New file.
12459 * config/linux/x86_64/futex.h: New file.
12460
12461 2005-05-04 Richard Henderson <rth@redhat.com>
12462
12463 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
12464 * libgomp.h: Declare them.
12465 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
12466 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
12467
12468 2005-05-04 Richard Henderson <rth@redhat.com>
12469
12470 * libgomp-1 code drop
12471
12472 2005-05-04 Richard Henderson <rth@redhat.com>
12473
12474 * iter.c (gomp_iter_static_next): Return tri-state on 0.
12475 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
12476 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
12477 (gomp_iter_static_next): Update.
12478 (gomp_ordered_static_next): Update.
12479 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
12480 (gomp_loop_ordered_static_start): Likewise. Exit early for a
12481 totally empty range.
12482 (gomp_loop_ordered_static_next): Refine test for calling
12483 gomp_ordered_static_next.
12484 * testsuite/ordered-1.c: Add case for more threads than iterations.
12485
12486 * iter.c (gomp_iter_runtime_next_locked): Remove.
12487 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
12488 gomp_loop_guided_start, gomp_loop_ordered_static_start,
12489 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
12490 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
12491 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
12492 gomp_loop_ordered_guided_next): Downcase name, make static, add
12493 an external alias with the old name.
12494 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
12495 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
12496 switch and call one of the above static functions.
12497 * libgomp.h: Update.
12498
12499 * work.c (gomp_work_share_start): Lock the mutex for !first too.
12500 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
12501 GOMP_loop_guided_start, GOMP_loop_runtime_start,
12502 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
12503 GOMP_loop_ordered_guided_start): Update to match.
12504 * sections.c (GOMP_sections_start): Likewise.
12505 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
12506
12507 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12508 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
12509 Use bounds check instead of modulus.
12510 (gomp_ordered_sync): Split out of GOMP_ordered_start.
12511 (gomp_ordered_last): Don't sync with ordered_owner here.
12512 (gomp_ordered_next): Likewise.
12513 (gomp_ordered_static_loop_next): Likewise.
12514 * loop.c, libgomp.h: Update to match.
12515
12516 * libgomp.h (GOMP_barrier): Declare.
12517
12518 * testsuite/barrier-1.c: New file.
12519 * testsuite/critical-1.c: New file.
12520 * testsuite/ordered-2.c: New file.
12521 * testsuite/ordered-1.c: New file.
12522 * testsuite/sections-1.c: New file.
12523 * testsuite/single-1.c: New file.
12524 * testsuite/Makefile (TESTS): Add them.
12525
12526 2005-05-04 Richard Henderson <rth@redhat.com>
12527
12528 * libgomp.h (struct gomp_work_share): Add ordered_owner.
12529 * loop.c (GOMP_loop_static_start): If not the startup thread,
12530 acquire the mutex to wait for initialization complete.
12531 (GOMP_loop_ordered_static_start): Likewise.
12532 (GOMP_loop_ordered_runtime_start): Likewise.
12533 (GOMP_loop_ordered_static_first): Remove.
12534 (GOMP_loop_ordered_dynamic_first): Remove.
12535 (GOMP_loop_ordered_guided_first): Remove.
12536 (GOMP_loop_ordered_runtime_first): Remove.
12537 * ordered.c (gomp_ordered_loop_first): Post to own release when
12538 we're the first thread.
12539 (gomp_ordered_loop_last): Wait on release if not owner.
12540 (gomp_ordered_loop_next): Likewise.
12541 (gomp_ordered_static_loop_init): New.
12542 (gomp_ordered_static_loop_next): Use ordered_owner.
12543 (GOMP_ordered_start): Likewise.
12544 * work.c (gomp_new_work_share): Initialize ordered_owner.
12545
12546 2005-05-03 Richard Henderson <rth@redhat.com>
12547
12548 * Makefile (OPT): New.
12549 (CFLAGS): Use it.
12550
12551 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
12552 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
12553 * libgomp.h, libgomp.map, NOTES: Update to match.
12554
12555 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
12556 Add initialized and thr members.
12557 (gomp_thread_start): Pause when initially spawned to wait for
12558 the whole team to be created.
12559 (gomp_team_start): Release team members at the end.
12560
12561 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
12562 (f_foo_1): Use GOMP_loop_end.
12563 (f_foo_2): Use GOMP_loop_end_nowait.
12564
12565 * testsuite/loop-2.c: New file.
12566 * testsuite/Makefile (TESTS): Add it.
12567
12568 2005-05-03 Richard Henderson <rth@redhat.com>
12569
12570 * iter.c (gomp_iter_static_next): Fix overflow check typo.
12571 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
12572 * team.c (new_team): Initialize oldest_live_gen to 1 if no
12573 initial work_share.
12574
12575 * testsuite/Makefile: New file.
12576 * testsuite/loop-1.c: New file.
12577
12578 2005-05-03 Richard Henderson <rth@redhat.com>
12579
12580 Initial implementation and checkin.
12581 \f
12582 Copyright (C) 2005-2019 Free Software Foundation, Inc.
12583
12584 Copying and distribution of this file, with or without modification,
12585 are permitted in any medium without royalty provided the copyright
12586 notice and this notice are preserved.