]> gcc.gnu.org Git - gcc.git/blob - libgomp/ChangeLog
Daily bump.
[gcc.git] / libgomp / ChangeLog
1 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
2
3 Backported from master:
4 2021-03-25 Thomas Schwinge <thomas@codesourcery.com>
5
6 * plugin/plugin-hsa.c (init_enviroment_variables): Don't prepend
7 the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
8 * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
9 * config.h.in: Regenerate.
10 * configure: Likewise.
11
12 2021-01-14 Kwok Cheung Yeung <kcy@codesourcery.com>
13
14 Backported from master:
15 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
16
17 * libgomp_g.h: Include stdint.h instead of gstdint.h.
18
19 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
20
21 Backported from master:
22 2021-01-14 Thomas Schwinge <thomas@codesourcery.com>
23
24 PR libgomp/65099
25 * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
26 configurations.
27 * configure: Regenerate.
28 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
29 check.
30
31 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
32
33 Backported from master:
34 2020-11-25 Thomas Schwinge <thomas@codesourcery.com>
35
36 * testsuite/libgomp.oacc-c++/cache-1.C: New.
37 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
38
39 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
40
41 Backported from master:
42 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
43
44 PR target/85486
45 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
46 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
47 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
48
49 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
50
51 Backported from master:
52 2020-11-02 Thomas Schwinge <thomas@codesourcery.com>
53
54 PR testsuite/80219
55 PR testsuite/85303
56 * testsuite/lib/libgomp.exp (libgomp_init): Set
57 'gcc_warning_prefix', 'gcc_error_prefix'.
58
59 2020-09-16 Jakub Jelinek <jakub@redhat.com>
60
61 Backported from master:
62 2020-08-08 Jakub Jelinek <jakub@redhat.com>
63 Tobias Burnus <tobias@codesourcery.com>
64
65 PR fortran/93553
66 * testsuite/libgomp.fortran/pr93553.f90: New test.
67
68 2020-09-16 Jakub Jelinek <jakub@redhat.com>
69
70 Backported from master:
71 2020-08-05 Jakub Jelinek <jakub@redhat.com>
72
73 PR middle-end/96459
74 * testsuite/libgomp.c/teams-3.c: New test.
75 * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
76 if not defined yet.
77 (N(test)): Use it before all N(f*) calls.
78 * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
79 (main): Don't call all test_* functions from within
80 #pragma omp teams reduction(|:err), call them directly.
81
82 2020-06-04 Thomas Schwinge <thomas@codesourcery.com>
83
84 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
85 the checkpoint.
86 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
87 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
88 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
89 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
90 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
91
92 2020-05-27 Thomas Koenig <tkoenig@gcc.gnu.org>
93
94 PR libfortran/95191
95 * testsuite/libgomp.fortran/async_io_9.f90: New test.
96
97 2020-05-22 Thomas Koenig <tkoenig@gcc.gnu.org>
98
99 PR libfortran/95119
100 * testsuite/libgomp.fortran/close_errors_1.f90: New test.
101
102 2020-04-13 Thomas Schwinge <thomas@codesourcery.com>
103
104 PR libgomp/92843
105 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
106 Rename to...
107 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
108 ... this.
109 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
110 Rename to...
111 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
112 ... this.
113 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
114 Rename to...
115 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
116 ... this.
117 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
118 Rename to...
119 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
120 ... this.
121 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
122 Rename to...
123 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
124 ... this.
125 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
126 Rename to...
127 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
128 ... this.
129 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
130 Rename to...
131 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
132 ... this.
133 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
134 Rename to...
135 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
136 ... this.
137 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
138 Rename to...
139 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
140 ... this.
141 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
142 Rename to...
143 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
144 ... this.
145 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
146 Rename to...
147 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
148 ... this.
149 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
150 Rename to...
151 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
152 ... this.
153 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
154 Rename to...
155 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
156 ... this.
157 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
158 Rename to...
159 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
160 ... this.
161 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
162 Rename to...
163 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
164 ... this.
165 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
166 Rename to...
167 * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
168 ... this.
169
170 2020-04-10 Julian Brown <julian@codesourcery.com>
171 Thomas Schwinge <thomas@codesourcery.com>
172
173 PR libgomp/92843
174 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
175 New file.
176 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
177 Likewise.
178 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
179 Likewise.
180 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
181 Likewise.
182 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
183 Likewise.
184 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
185 Likewise.
186 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
187 Likewise.
188 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
189 Likewise.
190 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
191 Likewise.
192 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
193 Likewise.
194 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
195 Likewise.
196 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
197 Likewise.
198 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
199 Likewise.
200 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
201 Likewise.
202 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
203 Likewise.
204 * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
205 Likewise.
206
207 2020-04-07 Jakub Jelinek <jakub@redhat.com>
208
209 Backported from mainline
210 2020-03-19 Jakub Jelinek <jakub@redhat.com>
211
212 PR c++/93931
213 * testsuite/libgomp.c++/pr93931.C: New test.
214
215 2020-03-17 Jakub Jelinek <jakub@redhat.com>
216
217 Backported from mainline
218 2020-03-14 Jakub Jelinek <jakub@redhat.com>
219
220 PR middle-end/93566
221 * testsuite/libgomp.c/pr93566.c: New test.
222
223 2020-03-12 Release Manager
224
225 * GCC 9.3.0 released.
226
227 2020-02-13 Jakub Jelinek <jakub@redhat.com>
228
229 Backported from mainline
230 2020-02-06 Jakub Jelinek <jakub@redhat.com>
231
232 PR libgomp/93515
233 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
234
235 2020-01-22 Jakub Jelinek <jakub@redhat.com>
236
237 Backported from mainline
238 2020-01-10 Jakub Jelinek <jakub@redhat.com>
239
240 PR libgomp/93219
241 * libgomp.h (gomp_print_string): Change return type from void to int.
242 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
243 not all characters have been written.
244
245 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
246
247 PR libgomp/93065
248 * oacc-init.c (goacc_runtime_deinitialize): New function.
249
250 2019-12-20 Jakub Jelinek <jakub@redhat.com>
251
252 Backported from mainline
253 2019-12-11 Jakub Jelinek <jakub@redhat.com>
254
255 PR fortran/92899
256 * testsuite/libgomp.fortran/atomic1.f90: New test.
257
258 2019-11-29 Jakub Jelinek <jakub@redhat.com>
259
260 PR c++/60228
261 * testsuite/libgomp.c++/udr-20.C: New test.
262 * testsuite/libgomp.c++/udr-21.C: New test.
263
264 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
265 Julian Brown <julian@codesourcery.com>
266
267 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
268 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
269
270 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
271
272 Backported from mainline
273 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
274
275 * omp_lib.h.in: Fix spelling of function declaration
276 omp_get_cancell(l)ation.
277
278 2019-08-13 Thomas Koenig <tkoenig@gcc.gnu.org>
279
280 Backport from trunk
281 PR fortran/91422
282 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
283 dimension.
284
285 2019-08-12 Release Manager
286
287 * GCC 9.2.0 released.
288
289 2019-08-01 Jakub Jelinek <jakub@redhat.com>
290
291 Backported from mainline
292 2019-07-31 Jakub Jelinek <jakub@redhat.com>
293
294 PR middle-end/91301
295 * testsuite/libgomp.c++/for-27.C: New test.
296
297 2019-06-11 Jakub Jelinek <jakub@redhat.com>
298
299 PR target/90811
300 * testsuite/libgomp.c/pr90811.c: New test.
301
302 2019-06-05 Jakub Jelinek <jakub@redhat.com>
303
304 Backported from mainline
305 2019-05-27 Jakub Jelinek <jakub@redhat.com>
306
307 PR libgomp/90641
308 * work.c (gomp_init_work_share): Instead of aligning final ordered
309 value to multiples of long long alignment, align to that the
310 first part (ordered team ids) and if inline_ordered_team_ids
311 is not on a long long alignment boundary within the structure,
312 use __alignof__ (long long) - 1 pad size always.
313 * loop.c (GOMP_loop_start): Fix *mem computation if
314 inline_ordered_team_ids is not aligned on long long alignment boundary
315 within the structure.
316 * loop-ull.c (GOMP_loop_ull_start): Likewise.
317 * sections.c (GOMP_sections2_start): Likewise.
318
319 2019-05-24 Jakub Jelinek <jakub@redhat.com>
320
321 PR libgomp/90585
322 * plugin/plugin-hsa.c (print_kernel_dispatch, run_kernel): Use PRIu64
323 macro instead of "lu".
324 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
325 before casting to void *.
326
327 2019-05-20 Jakub Jelinek <jakub@redhat.com>
328
329 PR libgomp/90527
330 * alloc.c (_GNU_SOURCE): Define.
331
332 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
333
334 PR target/87835
335 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
336
337 2019-05-03 Release Manager
338
339 * GCC 9.1.0 released.
340
341 2019-03-27 Kevin Buettner <kevinb@redhat.com>
342
343 * team.c (gomp_team_start): Initialize pool->threads[0].
344
345 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
346
347 * testsuite/libgomp.oacc-c++/c++.exp: Specify
348 "-foffload=$offload_target".
349 * testsuite/libgomp.oacc-c/c.exp: Likewise.
350 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
351 * testsuite/lib/libgomp.exp
352 (check_effective_target_openacc_nvidia_accel_configured): Remove,
353 as (conceptually) merged into
354 check_effective_target_openacc_nvidia_accel_selected. Adjust all
355 users.
356
357 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
358 * testsuite/libgomp-test-support.exp.in: Adjust.
359 * testsuite/lib/libgomp.exp: Likewise. Don't populate
360 openacc_device_types_s.
361 (offload_target_to_openacc_device_type): New proc.
362 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
363 * testsuite/libgomp.oacc-c/c.exp: Likewise.
364 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
365 * Makefile.in: Regenerate.
366 * configure: Likewise.
367 * testsuite/Makefile.in: Likewise.
368
369 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
370 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
371 instead of OFFLOAD_TARGETS.
372 * target.c (gomp_target_init): Adjust.
373 * testsuite/libgomp-test-support.exp.in: Likewise.
374 * testsuite/lib/libgomp.exp: Likewise. Populate
375 openacc_device_types_s instead of offload_targets_s_openacc.
376 (check_effective_target_openacc_nvidia_accel_selected)
377 (check_effective_target_openacc_host_selected): Adjust.
378 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
379 * testsuite/libgomp.oacc-c/c.exp: Likewise.
380 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
381 * Makefile.in: Regenerate.
382 * config.h.in: Likewise.
383 * configure: Likewise.
384 * testsuite/Makefile.in: Likewise.
385
386 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
387 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
388 "offloading: supported, but hardware not accessible".
389 * testsuite/libgomp.oacc-c/c.exp: Likewise.
390 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
391
392 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
393
394 PR c/87924
395 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
396 goacc_wait().
397 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
398 and related adjustment.
399
400 2019-01-30 Jakub Jelinek <jakub@redhat.com>
401
402 PR c++/88988
403 * testsuite/libgomp.c++/pr88988.C: New test.
404
405 2019-01-28 Jakub Jelinek <jakub@redhat.com>
406
407 PR middle-end/89002
408 * testsuite/libgomp.c/pr89002.c: New test.
409
410 2019-01-28 Richard Biener <rguenther@suse.de>
411
412 PR testsuite/89064
413 PR tree-optimization/86865
414 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
415
416 2019-01-24 Tom de Vries <tdevries@suse.de>
417
418 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
419 once instantiated_devices drops to 0.
420
421 2019-01-23 Tom de Vries <tdevries@suse.de>
422
423 PR target/PR88946
424 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
425 cuMemFree.
426 (nvptx_exec): Don't call map_push if mapnum == 0.
427 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
428
429 2019-01-23 Tom de Vries <tdevries@suse.de>
430
431 PR target/88941
432 PR target/88939
433 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
434 (map_fini): Remove "assert (!s->map->active)".
435 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
436
437 2019-01-23 Tom de Vries <tdevries@suse.de>
438
439 PR target/87835
440 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
441 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
442
443 2019-01-15 Tom de Vries <tdevries@suse.de>
444
445 PR target/80547
446 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
447 New test.
448
449 2019-01-12 Tom de Vries <tdevries@suse.de>
450
451 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
452 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
453 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
454 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
455
456 2019-01-12 Tom de Vries <tdevries@suse.de>
457
458 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
459
460 2019-01-12 Tom de Vries <tdevries@suse.de>
461
462 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
463 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
464 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
465
466 2019-01-12 Tom de Vries <tdevries@suse.de>
467
468 PR target/85486
469 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
470 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
471
472 2019-01-12 Tom de Vries <tdevries@suse.de>
473
474 PR target/85381
475 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
476 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
477
478 2019-01-12 Tom de Vries <tdevries@suse.de>
479
480 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
481 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
482 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
483
484 2019-01-12 Tom de Vries <tdevries@suse.de>
485
486 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
487 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
488 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
489
490 2019-01-12 Tom de Vries <tdevries@suse.de>
491
492 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
493 resources diagnostic.
494
495 2019-01-12 Tom de Vries <tdevries@suse.de>
496
497 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
498 vector length to be 128.
499 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
500 length 2097152 to be reduced to 1024 instead of 32.
501
502 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
503 James Norris <jnorris@codesourcery.com>
504
505 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
506 Library Routines", and "Environment Variables".
507
508 2019-01-11 Tom de Vries <tdevries@suse.de>
509
510 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
511 num_workers 16.
512
513 2019-01-11 Tom de Vries <tdevries@suse.de>
514
515 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
516 -foffload=-w.
517 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
518 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
519 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
520 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
521
522 2019-01-11 Tom de Vries <tdevries@suse.de>
523
524 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
525 test.
526
527 2019-01-10 Nathan Sidwell <nathan@acm.org>
528 Julian Brown <julian@codesourcery.com>
529
530 PR lto/71959
531 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
532 * testsuite/libgomp.oacc-c++/pr71959.C: New.
533
534 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
535
536 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
537 and paste code.
538
539 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
540
541 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
542 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
543 write.
544
545 2019-01-09 Tom de Vries <tdevries@suse.de>
546
547 PR target/88756
548 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
549 #define instead of "const int".
550 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
551 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
552 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
553 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
554
555 2019-01-09 Tom de Vries <tdevries@suse.de>
556
557 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
558 one worker.
559
560 2019-01-07 Tom de Vries <tdevries@suse.de>
561
562 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
563 GOMP_OPENACC_DIM argument.
564
565 2019-01-03 Tom de Vries <tdevries@suse.de>
566
567 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
568 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
569
570 2019-01-01 Jakub Jelinek <jakub@redhat.com>
571
572 Update copyright years.
573
574 2019-01-01 Jakub Jelinek <jakub@redhat.com>
575
576 * libgomp.texi: Bump @copying's copyright year.
577
578 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
579
580 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
581 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
582 (GOACC_declare): Redefine the "device" argument to "flags".
583
584 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
585 Cesar Philippidis <cesar@codesourcery.com>
586
587 * target.c (struct gomp_coalesce_chunk): New structure.
588 (struct gomp_coalesce_buf): Update the chunks member to use that
589 type. Adjust all users.
590
591 2018-12-19 Tom de Vries <tdevries@suse.de>
592
593 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
594 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
595 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
596
597 2018-12-19 Tom de Vries <tdevries@suse.de>
598
599 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
600 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
601 gcc/testsuite/gcc.dg/goacc.
602 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
603
604 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
605 Chung-Lin Tang <cltang@codesourcery.com>
606
607 * oacc-mem.c (acc_present_or_create): Remove definition and change
608 to alias of acc_create.
609 (acc_present_or_copyin): Remove definition and change to alias of
610 acc_copyin.
611 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
612 of acc_present_or_create.
613 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
614 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
615 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
616 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
617 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
618 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
619 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
620 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
621 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
622 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
623 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
624 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
625 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
626 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
627 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
628 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
629
630 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
631
632 PR libgomp/88495
633 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
634 "identical parameters".
635 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
636 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
637
638 PR libgomp/88484
639 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
640 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
641
642 PR libgomp/88407
643 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
644 (nvptx_wait_async): Unseen async-argument is a no-op.
645 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
646 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
647 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
648 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
649 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
650 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
651 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
652 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
653 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
654
655 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
656 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
657
658 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
659
660 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
661 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
662 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
663
664 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
665
666 PR libgomp/88370
667 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
668 (acc_set_cuda_stream): Clarify.
669 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
670 "async_valid_p".
671 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
672 acc_async_sync".
673 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
674 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
675 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
676 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
677
678 2018-12-14 Tom de Vries <tdevries@suse.de>
679
680 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
681 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
682 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
683 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
684 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
685
686 2018-12-13 Tom de Vries <tdevries@suse.de>
687
688 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
689 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
690 * fortran.c (omp_display_affinity_): ... here.
691 * libgomp.h (gomp_print_string): Declare.
692 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
693 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
694 write.
695
696 2018-12-13 Jakub Jelinek <jakub@redhat.com>
697
698 PR libgomp/88460
699 * testsuite/libgomp.c++/for-24.C (results): Include it in
700 omp declare target region.
701 (main): Use map (always, tofrom: results) instead of
702 map (tofrom: results).
703
704 2018-12-12 Jakub Jelinek <jakub@redhat.com>
705
706 PR fortran/88463
707 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
708 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
709
710 * testsuite/libgomp.c-c++-common/for-16.c: New test.
711
712 2018-12-12 Andreas Schwab <schwab@suse.de>
713
714 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
715 clobbered.
716
717 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
718
719 PR fortran/88411
720 * testsuite/libgomp.fortran/async_io_8.f90: New test.
721
722 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
723 Jakub Jelinek <jakub@redhat.com>
724
725 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
726 devicep->host2dev_func.
727
728 2018-12-08 Jakub Jelinek <jakub@redhat.com>
729
730 PR libgomp/87995
731 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
732 tls_runtime effective target.
733 (t): New threadprivate variable.
734 (main): Set t in threads which execute iterations of the worksharing
735 loop. Propagate that to the task after the loop and don't abort
736 if the current taskgroup hasn't been cancelled.
737
738 2018-12-02 Jakub Jelinek <jakub@redhat.com>
739
740 * testsuite/libgomp.c/task-reduction-3.c: New test.
741
742 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
743
744 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
745
746 PR libgomp/88288
747 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
748 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
749
750 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
751
752 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
753
754 2018-10-19 Richard Biener <rguenther@suse.de>
755
756 PR tree-optimization/88182
757 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
758
759 2018-11-26 Jakub Jelinek <jakub@redhat.com>
760
761 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
762 (RUNTEST): Don't define.
763 (RUNTESTDEFAULTFLAGS): Add.
764 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
765 (distclean-am): Depend on distclean-DEJAGNU.
766 (check-am): If -j% option is present in MFLAGS and if
767 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
768 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
769 * testsuite/Makefile.in: Regenerated.
770
771 2018-11-26 Richard Biener <rguenther@suse.de>
772
773 PR tree-optimization/88182
774 * testsuite/libgomp.c++/pr88182.C: New testcase.
775
776 2018-11-20 Jakub Jelinek <jakub@redhat.com>
777
778 PR bootstrap/88106
779 * config/mingw32/affinity-fmt.c: New file.
780
781 2018-11-09 Jakub Jelinek <jakub@redhat.com>
782
783 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
784 (gomp_display_affinity): Use __builtin_choose_expr to handle
785 properly handle argument having integral, or pointer or some other
786 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
787 with uint64_t type instead of %llx and unsigned long long.
788
789 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
790 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
791
792 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
793
794 * affinity.c: Include <string.h>, <stdio.h>.
795 (gomp_display_affinity_place): Remove cpusetp.
796 * teams.c: Include <limits.h>.
797
798 2018-11-08 Jakub Jelinek <jakub@redhat.com>
799
800 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
801 in_reduction clause for s[0].
802
803 * affinity.c (gomp_display_affinity_place): New function.
804 * affinity-fmt.c: New file.
805 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
806 * config/linux/affinity.c (gomp_display_affinity_place): New function.
807 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
808 Move these functions to ...
809 * config/nvptx/teams.c: ... here. New file.
810 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
811 New functions.
812 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
813 functions.
814 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
815 and _aligned_malloc.
816 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
817 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
818 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
819 gomp_affinity_format_len): New variables.
820 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
821 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
822 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
823 modifiers. Display (non-default) chunk sizes. Print
824 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
825 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
826 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
827 * fortran.c: Include stdio.h and string.h.
828 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
829 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
830 (omp_set_affinity_format_, omp_get_affinity_format_,
831 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
832 omp_pause_resource_all_): New functions.
833 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
834 switch.
835 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
836 functions to ...
837 * teams.c: ... here. New file.
838 * libgomp_g.h: Include gstdint.h.
839 (GOMP_loop_nonmonotonic_runtime_start,
840 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
841 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
842 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
843 GOMP_parallel_loop_nonmonotonic_runtime,
844 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
845 GOMP_loop_ull_nonmonotonic_runtime_start,
846 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
847 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
848 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
849 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
850 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
851 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
852 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
853 GOMP_teams_reg): Declare.
854 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
855 gomp_aligned_alloc uses fallback implementation.
856 (gomp_aligned_alloc, gomp_aligned_free): Declare.
857 (enum gomp_schedule_type): Add GFS_MONOTONIC.
858 (struct gomp_doacross_work_share): Add extra field.
859 (struct gomp_work_share): Add task_reductions field.
860 (struct gomp_taskgroup): Add workshare and reductions fields.
861 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
862 (gomp_thread_handle): New typedef.
863 (gomp_display_affinity_place, gomp_set_affinity_format,
864 gomp_display_string, gomp_display_affinity,
865 gomp_display_affinity_thread): Declare.
866 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
867 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
868 gomp_workshare_task_reduction_register): Declare.
869 (gomp_team_start): Add taskgroup argument.
870 (gomp_pause_host): Declare.
871 (gomp_init_work_share, gomp_work_share_start): Change bool argument
872 to size_t.
873 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
874 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
875 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
876 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
877 GOMP_loop_ull_doacross_start,
878 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
879 GOMP_loop_maybe_nonmonotonic_runtime_next,
880 GOMP_loop_maybe_nonmonotonic_runtime_start,
881 GOMP_loop_nonmonotonic_runtime_next,
882 GOMP_loop_nonmonotonic_runtime_start,
883 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
884 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
885 GOMP_loop_ull_nonmonotonic_runtime_next,
886 GOMP_loop_ull_nonmonotonic_runtime_start,
887 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
888 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
889 GOMP_taskgroup_reduction_register,
890 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
891 GOMP_teams_reg and GOMP_taskwait_depend.
892 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
893 omp_{capture,display}_affinity{,_}, and
894 omp_[gs]et_affinity_format{,_}.
895 * loop.c: Include string.h.
896 (GOMP_loop_runtime_next): Add ialias.
897 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
898 (gomp_loop_static_start, gomp_loop_dynamic_start,
899 gomp_loop_guided_start, gomp_loop_ordered_static_start,
900 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
901 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
902 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
903 or gomp_doacross_init callers.
904 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
905 GOMP_loop_doacross_start): New functions.
906 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
907 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
908 Mask off GFS_MONOTONIC bit.
909 (GOMP_loop_maybe_nonmonotonic_runtime_next,
910 GOMP_loop_maybe_nonmonotonic_runtime_start,
911 GOMP_loop_nonmonotonic_runtime_next,
912 GOMP_loop_nonmonotonic_runtime_start,
913 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
914 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
915 functions.
916 (gomp_parallel_loop_start): Pass NULL as taskgroup to
917 gomp_team_start.
918 * loop_ull.c: Include string.h.
919 (GOMP_loop_ull_runtime_next): Add ialias.
920 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
921 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
922 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
923 gomp_loop_ull_ordered_dynamic_start,
924 gomp_loop_ull_ordered_guided_start,
925 gomp_loop_ull_doacross_static_start,
926 gomp_loop_ull_doacross_dynamic_start,
927 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
928 and gomp_doacross_ull_init callers.
929 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
930 GOMP_loop_ull_doacross_start): New functions.
931 (GOMP_loop_ull_runtime_start,
932 GOMP_loop_ull_ordered_runtime_start,
933 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
934 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
935 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
936 GOMP_loop_ull_nonmonotonic_runtime_next,
937 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
938 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
939 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
940 (omp_pause_resource_t, omp_depend_t): New typedefs.
941 (enum omp_lock_hint_t): Renamed to ...
942 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
943 enumerators using numbers and omp_lock_hint_* as their aliases.
944 (omp_lock_hint_t): New typedef. Rename to ...
945 (omp_sync_hint_t): ... this.
946 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
947 omp_sync_hint_t instead of omp_lock_hint_t.
948 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
949 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
950 Declare.
951 (omp_target_is_present, omp_target_disassociate_ptr):
952 Change first argument from void * to const void *.
953 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
954 from void * to const void *.
955 (omp_target_associate_ptr): Change first and second arguments from
956 void * to const void *.
957 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
958 omp_pause_hard): New parameters.
959 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
960 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
961 New interfaces.
962 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
963 omp_pause_hard): New parameters.
964 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
965 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
966 New externals.
967 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
968 EXTRA argument. If not needed to prepare array, if extra is 0,
969 clear ws->doacross, otherwise allocate just doacross structure and
970 extra payload. If array is needed, allocate also extra payload.
971 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
972 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
973 doacross == NULL.
974 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
975 gomp_team_start.
976 (GOMP_parallel): Likewise. Formatting fix.
977 (GOMP_parallel_reductions): New function.
978 (GOMP_cancellation_point): If taskgroup has workshare
979 flag set, check cancelled of prev taskgroup if any.
980 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
981 on prev taskgroup if any.
982 * sections.c: Include string.h.
983 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
984 (GOMP_sections_start): Adjust gomp_work_share_start caller.
985 (GOMP_sections2_start): New function.
986 (GOMP_parallel_sections_start, GOMP_parallel_sections):
987 Pass NULL as taskgroup to gomp_team_start.
988 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
989 gomp_work_share_start callers.
990 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
991 If taskgroup has workshare flag set, check cancelled on prev
992 taskgroup if any. Guard all cancellation tests with
993 gomp_cancel_var test.
994 (omp_target_is_present, omp_target_disassociate_ptr):
995 Change ptr argument from void * to const void *.
996 (omp_target_memcpy): Change src argument from void * to const void *.
997 (omp_target_memcpy_rect): Likewise.
998 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
999 instead of char * where needed.
1000 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
1001 from void * to const void *.
1002 (omp_pause_resource, omp_pause_resource_all): New functions.
1003 * task.c (gomp_task_handle_depend): Handle new depend array format
1004 in addition to the old. Handle mutexinoutset kinds the same as
1005 inout for now, handle unspecified kinds.
1006 (gomp_create_target_task): If taskgroup has workshare flag set, check
1007 cancelled on prev taskgroup if any. Guard all cancellation tests with
1008 gomp_cancel_var test. Handle new depend array format count in
1009 addition to the old.
1010 (GOMP_task): Likewise. Adjust function comment.
1011 (gomp_task_run_pre): If taskgroup has workshare flag set, check
1012 cancelled on prev taskgroup if any. Guard all cancellation tests with
1013 gomp_cancel_var test.
1014 (GOMP_taskwait_depend): New function.
1015 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
1016 format in addition to the old. Handle mutexinoutset kinds the same as
1017 inout for now, handle unspecified kinds. Fix a function comment typo.
1018 (gomp_taskgroup_init): New function.
1019 (GOMP_taskgroup_start): Use it.
1020 (gomp_reduction_register, gomp_create_artificial_team,
1021 GOMP_taskgroup_reduction_register,
1022 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
1023 gomp_parallel_reduction_register,
1024 gomp_workshare_task_reduction_register,
1025 gomp_workshare_taskgroup_start,
1026 GOMP_workshare_task_reduction_unregister): New functions.
1027 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
1028 check cancelled on prev taskgroup if any. Guard all cancellation
1029 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
1030 by calling GOMP_taskgroup_reduction_register.
1031 * team.c (gomp_thread_attr): Remove comment.
1032 (struct gomp_thread_start_data): Add handle field.
1033 (gomp_thread_start): Call pthread_detach.
1034 (gomp_new_team): Adjust gomp_init_work_share caller.
1035 (gomp_free_pool_helper): Call pthread_detach.
1036 (gomp_team_start): Add taskgroup argument, initialize implicit
1037 tasks' taskgroup field to that. Don't call
1038 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
1039 (gomp_team_end): Determine nesting by thr->ts.level != 0
1040 rather than thr->ts.team != NULL.
1041 (gomp_pause_pool_helper, gomp_pause_host): New functions.
1042 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
1043 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
1044 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
1045 if more than 1 allocate also extra payload at the end of array. Never
1046 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
1047 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
1048 return true instead of ws.
1049 * Makefile.in: Regenerated.
1050 * configure: Regenerated.
1051 * config.h.in: Regenerated.
1052 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
1053 in some cases.
1054 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
1055 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
1056 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
1057 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
1058 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
1059 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
1060 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
1061 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
1062 * testsuite/libgomp.c-c++-common/for-10.c: New test.
1063 * testsuite/libgomp.c-c++-common/for-11.c: New test.
1064 * testsuite/libgomp.c-c++-common/for-12.c: New test.
1065 * testsuite/libgomp.c-c++-common/for-13.c: New test.
1066 * testsuite/libgomp.c-c++-common/for-14.c: New test.
1067 * testsuite/libgomp.c-c++-common/for-15.c: New test.
1068 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
1069 define a different N(test), don't define N(f0) to N(f14), but instead
1070 define N(f20) to N(f34) using != comparisons.
1071 * testsuite/libgomp.c-c++-common/for-7.c: New test.
1072 * testsuite/libgomp.c-c++-common/for-8.c: New test.
1073 * testsuite/libgomp.c-c++-common/for-9.c: New test.
1074 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
1075 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
1076 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
1077 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
1078 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
1079 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
1080 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
1081 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
1082 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
1083 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
1084 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
1085 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
1086 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
1087 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
1088 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
1089 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
1090 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
1091 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
1092 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
1093 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
1094 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
1095 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
1096 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
1097 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
1098 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
1099 * testsuite/libgomp.c++/depend-1.C: New test.
1100 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
1101 * testsuite/libgomp.c++/depobj-1.C: New test.
1102 * testsuite/libgomp.c++/for-16.C: New test.
1103 * testsuite/libgomp.c++/for-21.C: New test.
1104 * testsuite/libgomp.c++/for-22.C: New test.
1105 * testsuite/libgomp.c++/for-23.C: New test.
1106 * testsuite/libgomp.c++/for-24.C: New test.
1107 * testsuite/libgomp.c++/for-25.C: New test.
1108 * testsuite/libgomp.c++/for-26.C: New test.
1109 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
1110 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
1111 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
1112 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
1113 * testsuite/libgomp.c++/task-reduction-10.C: New test.
1114 * testsuite/libgomp.c++/task-reduction-11.C: New test.
1115 * testsuite/libgomp.c++/task-reduction-12.C: New test.
1116 * testsuite/libgomp.c++/task-reduction-13.C: New test.
1117 * testsuite/libgomp.c++/task-reduction-14.C: New test.
1118 * testsuite/libgomp.c++/task-reduction-15.C: New test.
1119 * testsuite/libgomp.c++/task-reduction-16.C: New test.
1120 * testsuite/libgomp.c++/task-reduction-17.C: New test.
1121 * testsuite/libgomp.c++/task-reduction-18.C: New test.
1122 * testsuite/libgomp.c++/task-reduction-19.C: New test.
1123 * testsuite/libgomp.c/task-reduction-1.c: New test.
1124 * testsuite/libgomp.c++/task-reduction-1.C: New test.
1125 * testsuite/libgomp.c/task-reduction-2.c: New test.
1126 * testsuite/libgomp.c++/task-reduction-2.C: New test.
1127 * testsuite/libgomp.c++/task-reduction-3.C: New test.
1128 * testsuite/libgomp.c++/task-reduction-4.C: New test.
1129 * testsuite/libgomp.c++/task-reduction-5.C: New test.
1130 * testsuite/libgomp.c++/task-reduction-6.C: New test.
1131 * testsuite/libgomp.c++/task-reduction-7.C: New test.
1132 * testsuite/libgomp.c++/task-reduction-8.C: New test.
1133 * testsuite/libgomp.c++/task-reduction-9.C: New test.
1134 * testsuite/libgomp.c/teams-1.c: New test.
1135 * testsuite/libgomp.c/teams-2.c: New test.
1136 * testsuite/libgomp.c/thread-limit-4.c: New test.
1137 * testsuite/libgomp.c/thread-limit-5.c: New test.
1138 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
1139
1140 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
1141
1142 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
1143 acc_memcpy_to/from_device functions, now with async parameter.
1144 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
1145 (acc_memcpy_from_device): Likewise.
1146 (acc_memcpy_to_device_async): New API function.
1147 (acc_memcpy_from_device_async): Likewise.
1148 (present_create_copy): Add async parameter and async setting/unsetting.
1149 (acc_create): Adjust present_create_copy call.
1150 (acc_copyin): Likewise.
1151 (acc_present_or_create): Likewise.
1152 (acc_present_or_copyin): Likewise.
1153 (acc_create_async): New API function.
1154 (acc_copyin_async): New API function.
1155 (delete_copyout): Add async parameter and async setting/unsetting.
1156 (acc_delete): Adjust delete_copyout call.
1157 (acc_copyout): Likewise.
1158 (acc_delete_async): New API function.
1159 (acc_copyout_async): Likewise.
1160 (update_dev_host): Add async parameter and async setting/unsetting.
1161 (acc_update_device): Adjust update_dev_host call.
1162 (acc_update_self): Likewise.
1163 (acc_update_device_async): New API function.
1164 (acc_update_self_async): Likewise.
1165 * openacc.h (acc_copyin_async): Declare new API function.
1166 (acc_create_async): Likewise.
1167 (acc_copyout_async): Likewise.
1168 (acc_delete_async): Likewise.
1169 (acc_update_device_async): Likewise.
1170 (acc_update_self_async): Likewise.
1171 (acc_memcpy_to_device_async): Likewise.
1172 (acc_memcpy_from_device_async): Likewise.
1173 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
1174 (acc_copyin_async_64_h): New subroutine.
1175 (acc_copyin_async_array_h): New subroutine.
1176 (acc_create_async_32_h): New subroutine.
1177 (acc_create_async_64_h): New subroutine.
1178 (acc_create_async_array_h): New subroutine.
1179 (acc_copyout_async_32_h): New subroutine.
1180 (acc_copyout_async_64_h): New subroutine.
1181 (acc_copyout_async_array_h): New subroutine.
1182 (acc_delete_async_32_h): New subroutine.
1183 (acc_delete_async_64_h): New subroutine.
1184 (acc_delete_async_array_h): New subroutine.
1185 (acc_update_device_async_32_h): New subroutine.
1186 (acc_update_device_async_64_h): New subroutine.
1187 (acc_update_device_async_array_h): New subroutine.
1188 (acc_update_self_async_32_h): New subroutine.
1189 (acc_update_self_async_64_h): New subroutine.
1190 (acc_update_self_async_array_h): New subroutine.
1191 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
1192 (acc_copyin_async_64_h): New subroutine.
1193 (acc_copyin_async_array_h): New subroutine.
1194 (acc_create_async_32_h): New subroutine.
1195 (acc_create_async_64_h): New subroutine.
1196 (acc_create_async_array_h): New subroutine.
1197 (acc_copyout_async_32_h): New subroutine.
1198 (acc_copyout_async_64_h): New subroutine.
1199 (acc_copyout_async_array_h): New subroutine.
1200 (acc_delete_async_32_h): New subroutine.
1201 (acc_delete_async_64_h): New subroutine.
1202 (acc_delete_async_array_h): New subroutine.
1203 (acc_update_device_async_32_h): New subroutine.
1204 (acc_update_device_async_64_h): New subroutine.
1205 (acc_update_device_async_array_h): New subroutine.
1206 (acc_update_self_async_32_h): New subroutine.
1207 (acc_update_self_async_64_h): New subroutine.
1208 (acc_update_self_async_array_h): New subroutine.
1209 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
1210 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
1211 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
1212 acc_memcpy_to_device_async*, acc_update_device_async*, and
1213 acc_update_self_async* entries.
1214 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
1215 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
1216 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
1217
1218 2018-10-31 Joseph Myers <joseph@codesourcery.com>
1219
1220 PR bootstrap/82856
1221 * Makefile.am: Include multilib.am
1222 (AUTOMAKE_OPTIONS): Add info-in-builddir.
1223 (CLEANFILES): Remove libgomp.info.
1224 * configure.ac: Remove AC_PREREQ.
1225 * testsuite/Makefile.am (RUNTEST): Remove quotes.
1226 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
1227 Regenerate.
1228
1229 2018-10-29 Joseph Myers <joseph@codesourcery.com>
1230 Julian Brown <julian@codesourcery.com>
1231
1232 * testsuite/libgomp.oacc-c++/this.C: New.
1233
1234 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
1235
1236 * plugin/plugin-nvptx.c (struct cuda_map): New.
1237 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
1238 h_tail with (cuda_map *) map.
1239 (cuda_map_create): New function.
1240 (cuda_map_destroy): New function.
1241 (map_init): Update to use a linked list of cuda_map objects.
1242 (map_fini): Likewise.
1243 (map_pop): Likewise.
1244 (map_push): Likewise. Return CUdeviceptr instead of void.
1245 (init_streams_for_device): Remove stales references to ptx_stream
1246 members.
1247 (select_stream_for_async): Likewise.
1248 (nvptx_exec): Update call to map_init.
1249
1250 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
1251 Julian Brown <julian@codesourcery.com>
1252
1253 PR middle-end/86336
1254 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
1255
1256 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
1257 Thomas Koenig <tkoenig@gcc.gnu.org>
1258
1259 PR fortran/25829
1260 * testsuite/libgomp.fortran/async_io_1.f90: New test.
1261 * testsuite/libgomp.fortran/async_io_2.f90: New test.
1262 * testsuite/libgomp.fortran/async_io_3.f90: New test.
1263 * testsuite/libgomp.fortran/async_io_4.f90: New test.
1264 * testsuite/libgomp.fortran/async_io_5.f90: New test.
1265 * testsuite/libgomp.fortran/async_io_6.f90: New test.
1266 * testsuite/libgomp.fortran/async_io_7.f90: New test.
1267
1268 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
1269 Tom de Vries <tdevries@suse.de>
1270
1271 PR target/85590
1272 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
1273 (cuOccupancyMaxPotentialBlockSize): Declare.
1274 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
1275 CUDA_ONE_CALL_MAYBE_NULL.
1276 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
1277 CUoccupancyB2DSize and declare
1278 cuOccupancyMaxPotentialBlockSize.
1279 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
1280 default num_gangs and num_workers when the driver supports it.
1281
1282 2018-08-08 Tom de Vries <tdevries@suse.de>
1283
1284 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
1285 CUDA_ONE_CALL_MAYBE_NULL.
1286 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
1287 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
1288 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
1289 are not found.
1290
1291 2018-08-08 Tom de Vries <tdevries@suse.de>
1292
1293 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
1294 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
1295 present.
1296
1297 2018-08-08 Tom de Vries <tdevries@suse.de>
1298
1299 * plugin/plugin-nvptx.c
1300 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
1301 (nvptx_open_device): Use
1302 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
1303
1304 2018-08-08 Tom de Vries <tdevries@suse.de>
1305
1306 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
1307 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
1308
1309 2018-08-07 Tom de Vries <tdevries@suse.de>
1310
1311 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
1312 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
1313 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
1314 corresponding call in CUDA_ONE_CALL. Add def/undef of
1315 CUDA_ONE_CALL_MAYBE_NULL.
1316 (CUDA_CALL_EXISTS): Define.
1317
1318 2018-08-07 Tom de Vries <tdevries@suse.de>
1319
1320 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
1321 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
1322 corresponding undefs right after.
1323
1324 2018-08-04 Tom de Vries <tdevries@suse.de>
1325
1326 * plugin/configfrag.ac: For --without-cuda-driver, set
1327 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
1328 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
1329 * configure: Regenerate.
1330
1331 2018-08-02 Tom de Vries <tdevries@suse.de>
1332
1333 PR target/86660
1334 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
1335 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
1336 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
1337 Same.
1338 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
1339 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
1340 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
1341
1342 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
1343 Thomas Schwinge <thomas@codesourcery.com>
1344
1345 * config/nvptx/oacc-parallel.c: Truncate.
1346
1347 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
1348 James Norris <jnorris@codesourcery.com>
1349
1350 * plugin/plugin-nvptx.c (struct map): Removed.
1351 (map_init, map_pop): Remove use of struct map.
1352 (map_push): Likewise and change argument list.
1353 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
1354
1355 2018-08-01 Tom de Vries <tdevries@suse.de>
1356
1357 * plugin/cuda-lib.def: New file. Factor out of ...
1358 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
1359 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
1360 using CUDA_CALLS.
1361
1362 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
1363
1364 Revert 'AsyncI/O patch committed'.
1365 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
1366 Thomas Koenig <tkoenig@gcc.gnu.org>
1367
1368 PR fortran/25829
1369 * testsuite/libgomp.fortran/async_io_1.f90: New test.
1370 * testsuite/libgomp.fortran/async_io_2.f90: New test.
1371 * testsuite/libgomp.fortran/async_io_3.f90: New test.
1372 * testsuite/libgomp.fortran/async_io_4.f90: New test.
1373 * testsuite/libgomp.fortran/async_io_5.f90: New test.
1374 * testsuite/libgomp.fortran/async_io_6.f90: New test.
1375 * testsuite/libgomp.fortran/async_io_7.f90: New test.
1376
1377 2018-07-30 Tom de Vries <tdevries@suse.de>
1378
1379 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
1380 (nvptx_exec): Ensure worker and vector default dims don't exceed
1381 targ_fn->max_threads_per_block.
1382
1383 2018-07-30 Tom de Vries <tdevries@suse.de>
1384
1385 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
1386 (nvptx_open_device): Init default_dims for device.
1387 (nvptx_exec): Use default_dims from device.
1388
1389 2018-07-26 Jakub Jelinek <jakub@redhat.com>
1390
1391 PR testsuite/86660
1392 * testsuite/libgomp.c++/for-15.C (results): Include it in
1393 omp declare target region.
1394 (main): Use map (always, tofrom: results) instead of
1395 map (tofrom: results).
1396
1397 PR middle-end/86660
1398 * testsuite/libgomp.c/pr86660.c: New test.
1399
1400 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
1401 Tom de Vries <tdevries@suse.de>
1402
1403 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
1404 sufficient resources to launch a kernel, and give a hint on how to fix
1405 it.
1406
1407 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
1408 Tom de Vries <tdevries@suse.de>
1409
1410 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
1411 max_threads_per_block and max_threads_per_multiprocessor fields.
1412 (nvptx_open_device): Initialize new fields.
1413 (nvptx_exec): Use num_sms, and new fields.
1414
1415 2018-07-26 Tom de Vries <tdevries@suse.de>
1416
1417 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
1418 to correct locations. Remove xfail.
1419
1420 2018-07-26 Tom de Vries <tdevries@suse.de>
1421
1422 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
1423 acc_wait. Move acc_async_test calls to correct locations. Remove
1424 xfail.
1425
1426 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
1427 Thomas Koenig <tkoenig@gcc.gnu.org>
1428
1429 PR fortran/25829
1430 * testsuite/libgomp.fortran/async_io_1.f90: New test.
1431 * testsuite/libgomp.fortran/async_io_2.f90: New test.
1432 * testsuite/libgomp.fortran/async_io_3.f90: New test.
1433 * testsuite/libgomp.fortran/async_io_4.f90: New test.
1434 * testsuite/libgomp.fortran/async_io_5.f90: New test.
1435 * testsuite/libgomp.fortran/async_io_6.f90: New test.
1436 * testsuite/libgomp.fortran/async_io_7.f90: New test.
1437
1438 2018-07-17 Jakub Jelinek <jakub@redhat.com>
1439
1440 PR middle-end/86542
1441 * testsuite/libgomp.c++/pr86542.C: New test.
1442
1443 PR middle-end/86539
1444 * testsuite/libgomp.c++/pr86539.C: New test.
1445
1446 2018-07-11 Jakub Jelinek <jakub@redhat.com>
1447
1448 PR c++/86443
1449 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
1450 (results): Make sure the variable is not inside declare target region.
1451 (qux): Remove unused function.
1452
1453 2018-07-10 Jakub Jelinek <jakub@redhat.com>
1454
1455 PR c++/86443
1456 * testsuite/libgomp.c++/for-15.C: New test.
1457
1458 2018-06-26 Jakub Jelinek <jakub@redhat.com>
1459
1460 PR c++/86291
1461 * testsuite/libgomp.c++/pr86291.C: New test.
1462
1463 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
1464
1465 * libgomp.texi (Top): Move www.openmp.org to https.
1466 (Enabling OpenMP): Ditto.
1467 (omp_get_active_level): Ditto.
1468 (omp_get_ancestor_thread_num): Ditto.
1469 (omp_get_cancellation): Ditto.
1470 (omp_get_default_device): Ditto.
1471 (omp_get_dynamic): Ditto.
1472 (omp_get_level): Ditto.
1473 (omp_get_max_active_levels): Ditto.
1474 (omp_get_max_task_priority): Ditto.
1475 (omp_get_max_threads): Ditto.
1476 (omp_get_nested): Ditto.
1477 (omp_get_num_devices): Ditto.
1478 (omp_get_num_procs): Ditto.
1479 (omp_get_num_teams): Ditto.
1480 (omp_get_num_threads): Ditto.
1481 (omp_get_proc_bind): Ditto.
1482 (omp_get_schedule): Ditto.
1483 (omp_get_team_num): Ditto.
1484 (omp_get_team_size): Ditto.
1485 (omp_get_thread_limit): Ditto.
1486 (omp_get_thread_num): Ditto.
1487 (omp_in_parallel): Ditto.
1488 (omp_in_final): Ditto.
1489 (omp_is_initial_device): Ditto.
1490 (omp_set_default_device): Ditto.
1491 (omp_set_dynamic): Ditto.
1492 (omp_set_max_active_levels): Ditto.
1493 (omp_set_nested): Ditto.
1494 (omp_set_num_threads): Ditto.
1495 (omp_set_schedule): Ditto.
1496 (omp_init_lock): Ditto.
1497 (omp_set_lock): Ditto.
1498 (omp_test_lock): Ditto.
1499 (omp_unset_lock): Ditto.
1500 (omp_destroy_lock): Ditto.
1501 (omp_init_nest_lock): Ditto.
1502 (omp_set_nest_lock): Ditto.
1503 (omp_test_nest_lock): Ditto.
1504 (omp_unset_nest_lock): Ditto.
1505 (omp_destroy_nest_lock): Ditto.
1506 (omp_get_wtick): Ditto.
1507 (omp_get_wtime): Ditto.
1508 (OMP_CANCELLATION): Ditto.
1509 (OMP_DISPLAY_ENV): Ditto.
1510 (OMP_DEFAULT_DEVICE): Ditto.
1511 (OMP_DYNAMIC): Ditto.
1512 (OMP_MAX_ACTIVE_LEVELS): Ditto.
1513 (OMP_MAX_TASK_PRIORITY): Ditto.
1514 (OMP_NESTED): Ditto.
1515 (OMP_NUM_THREADS): Ditto.
1516 (OMP_PROC_BIND): Ditto.
1517 (OMP_PLACES): Ditto.
1518 (OMP_STACKSIZE): Ditto.
1519 (OMP_SCHEDULE): Ditto.
1520 (OMP_THREAD_LIMIT): Ditto.
1521 (OMP_WAIT_POLICY): Ditto.
1522
1523 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
1524 James Norris <jnorris@codesourcery.com>
1525 Julian Brown <julian@codesourcery.com>
1526 Thomas Schwinge <thomas@codesourcery.com>
1527 Tom de Vries <tom@codesourcery.com>
1528
1529 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
1530 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
1531 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
1532 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
1533 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
1534 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
1535 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
1536 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
1537 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
1538 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
1539 Likewise.
1540 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
1541 Likewise.
1542 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
1543 Likewise.
1544 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
1545 Likewise.
1546 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
1547 Likewise.
1548 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
1549 Likewise.
1550 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1551 Likewise.
1552 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1553 Likewise.
1554 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1555 Likewise.
1556 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1557 Likewise.
1558 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1559 Likewise.
1560 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1561 Likewise.
1562 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1563 Likewise.
1564 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1565 Likewise.
1566 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1567 Likewise.
1568 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1569 Likewise.
1570 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1571 Likewise.
1572 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1573 Likewise.
1574 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1575 Likewise.
1576 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1577 Likewise.
1578 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1579 Likewise.
1580 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1581 Likewise.
1582 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1583 Likewise.
1584 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1585 Likewise.
1586 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1587 Likewise.
1588 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1589 Likewise.
1590 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
1591 Likewise.
1592 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
1593 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
1594 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
1595 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
1596 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
1597 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
1598 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
1599 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
1600 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
1601 Likewise.
1602 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
1603 Likewise.
1604 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
1605 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
1606 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
1607 Likewise.
1608 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
1609 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
1610 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
1611 Likewise.
1612 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1613 Likewise.
1614 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1615 Likewise.
1616 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1617 Likewise.
1618 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1619 Likewise.
1620 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1621 Likewise.
1622 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1623 Likewise.
1624 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1625 Likewise.
1626 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1627 Likewise.
1628 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1629 Likewise.
1630 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1631 Likewise.
1632 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1633 Likewise.
1634 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1635 Likewise.
1636 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1637 Likewise.
1638 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
1639 Likewise.
1640 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
1641 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
1642 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
1643 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
1644 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
1645 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
1646 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
1647
1648 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
1649 Thomas Schwinge <thomas@codesourcery.com>
1650 Cesar Philippidis <cesar@codesourcery.com>
1651
1652 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
1653 (gomp_acc_remove_pointer): Update declaration.
1654 (gomp_acc_declare_allocate): Declare.
1655 (gomp_remove_var): Declare.
1656 * libgomp.map (OACC_2.5): Define.
1657 * oacc-mem.c (acc_map_data): Update refcount.
1658 (acc_unmap_data): Likewise.
1659 (present_create_copy): Likewise.
1660 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
1661 (acc_copyin): Likewise.
1662 (FLAG_FINALIZE): Define.
1663 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
1664 (acc_delete_finalize): New function.
1665 (acc_delete_finalize_async): New function.
1666 (acc_copyout_finalize): New function.
1667 (acc_copyout_finalize_async): New function.
1668 (gomp_acc_insert_pointer): Update refcounts.
1669 (gomp_acc_remove_pointer): Return if data is not present on the
1670 accelerator.
1671 * oacc-parallel.c (find_pset): Rename to find_pointer.
1672 (find_pointer): Add support for GOMP_MAP_POINTER.
1673 (handle_ftn_pointers): New function.
1674 (GOACC_parallel_keyed): Update refcounts of variables.
1675 (GOACC_enter_exit_data): Add support for finalized data mappings.
1676 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
1677 of fortran arrays.
1678 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
1679 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
1680 for GOMP_MAP_FORCE_FROM.
1681 * openacc.f90 (module openacc_internal): Add
1682 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
1683 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
1684 acc_copyout_finalize and acc_delete_finalize.
1685 (acc_copyout_finalize_32_h): New subroutine.
1686 (acc_copyout_finalize_64_h): New subroutine.
1687 (acc_copyout_finalize_array_h): New subroutine.
1688 (acc_delete_finalize_32_h): New subroutine.
1689 (acc_delete_finalize_64_h): New subroutine.
1690 (acc_delete_finalize_array_h): New subroutine.
1691 * openacc.h (acc_copyout_finalize): Declare.
1692 (acc_copyout_finalize_async): Declare.
1693 (acc_delete_finalize): Declare.
1694 (acc_delete_finalize_async): Declare.
1695 * openacc_lib.h (acc_copyout_finalize): New interface.
1696 (acc_delete_finalize): New interface.
1697 * target.c (gomp_map_vars): Update dynamic_refcount.
1698 (gomp_remove_var): New function.
1699 (gomp_unmap_vars): Use it.
1700 (gomp_unload_image_from_device): Likewise.
1701 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
1702 case to utilize OpenACC 2.5 data clause semantics.
1703 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1704 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
1705 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
1706 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
1707 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
1708 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
1709 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1710 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1711 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
1712 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
1713 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
1714 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
1715 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
1716 utilize OpenACC 2.5 data clause semantics.
1717 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1718 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
1719 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
1720 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
1721 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
1722 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
1723 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1724 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
1725 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
1726
1727 2018-05-21 Janus Weil <janus@gcc.gnu.org>
1728
1729 PR fortran/85841
1730 PR testsuite/85865
1731 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
1732 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
1733 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
1734 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
1735 * testsuite/libgomp.fortran/task2.f90: Ditto.
1736 * testsuite/libgomp.fortran/vla1.f90: Ditto.
1737 * testsuite/libgomp.fortran/vla2.f90: Ditto.
1738 * testsuite/libgomp.fortran/vla3.f90: Ditto.
1739 * testsuite/libgomp.fortran/vla4.f90: Ditto.
1740 * testsuite/libgomp.fortran/vla5.f90: Ditto.
1741 * testsuite/libgomp.fortran/vla6.f90: Ditto.
1742 * testsuite/libgomp.fortran/vla8.f90: Ditto.
1743 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
1744 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
1745
1746 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
1747
1748 PR c++/85782
1749 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
1750
1751 2018-05-09 Tom de Vries <tom@codesourcery.com>
1752
1753 PR libgomp/82901
1754 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
1755 to GOACC_enter_exit_data.
1756
1757 2018-05-09 Tom de Vries <tom@codesourcery.com>
1758
1759 PR libgomp/83792
1760 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
1761 (async_synchronous_p): New function.
1762 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
1763 async_valid_p.
1764 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
1765 async_valid_stream_id_p.
1766 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
1767 * oacc-parallel.c (GOACC_parallel_keyed): Same.
1768
1769 2018-05-07 Tom de Vries <tom@codesourcery.com>
1770
1771 PR testsuite/85677
1772 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
1773 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
1774
1775 2018-05-03 Tom de Vries <tom@codesourcery.com>
1776
1777 PR testsuite/85106
1778 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
1779 extra_tool_flags if it contains an -foffload=-fdump-* flag.
1780 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
1781 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
1782
1783 2018-05-02 Tom de Vries <tom@codesourcery.com>
1784
1785 PR libgomp/85411
1786 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
1787 GOMP_OPENACC_DIM ...
1788 * env.c (parse_gomp_openacc_dim): ... here. New function.
1789 (initialize_env): Call parse_gomp_openacc_dim.
1790 (goacc_default_dims): Define.
1791 * libgomp.h (goacc_default_dims): Declare.
1792 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
1793 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
1794 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
1795 GOMP_PLUGIN_acc_default_dim.
1796 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
1797 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
1798
1799 2018-05-02 Tom de Vries <tom@codesourcery.com>
1800
1801 PR testsuite/83791
1802 * testsuite/libgomp.c++/udr-9.C: Update.
1803 * testsuite/libgomp.c++/atomic-16.C: Remove.
1804 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
1805 * testsuite/libgomp.c++/loop-13.C: Remove.
1806 * testsuite/libgomp.c++/loop-14.C: Remove.
1807 * testsuite/libgomp.c++/loop-15.C: Remove.
1808 * testsuite/libgomp.c++/monotonic-1.C: Remove.
1809 * testsuite/libgomp.c++/monotonic-2.C: Remove.
1810 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
1811 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
1812 * testsuite/libgomp.c++/ordered-1.C: Remove.
1813 * testsuite/libgomp.c++/pr45784.C: Remove.
1814 * testsuite/libgomp.c++/pr64824.C: Remove.
1815 * testsuite/libgomp.c++/pr64868.C: Remove.
1816 * testsuite/libgomp.c++/pr66199-1.C: Remove.
1817 * testsuite/libgomp.c++/pr66199-2.C: Remove.
1818 * testsuite/libgomp.c++/pr66199-3.C: Remove.
1819 * testsuite/libgomp.c++/pr66199-4.C: Remove.
1820 * testsuite/libgomp.c++/pr66199-5.C: Remove.
1821 * testsuite/libgomp.c++/pr66199-6.C: Remove.
1822 * testsuite/libgomp.c++/pr66199-7.C: Remove.
1823 * testsuite/libgomp.c++/pr66199-8.C: Remove.
1824 * testsuite/libgomp.c++/pr66199-9.C: Remove.
1825 * testsuite/libgomp.c++/pr69389.C: Remove.
1826 * testsuite/libgomp.c++/simd10.C: Remove.
1827 * testsuite/libgomp.c++/simd11.C: Remove.
1828 * testsuite/libgomp.c++/simd12.C: Remove.
1829 * testsuite/libgomp.c++/simd13.C: Remove.
1830 * testsuite/libgomp.c++/target-1.C: Remove.
1831 * testsuite/libgomp.c++/target-3.C: Remove.
1832 * testsuite/libgomp.c++/target-4.C: Remove.
1833 * testsuite/libgomp.c++/target-5.C: Remove.
1834 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
1835 * testsuite/libgomp.c++/taskloop-1.C: Remove.
1836 * testsuite/libgomp.c++/taskloop-2.C: Remove.
1837 * testsuite/libgomp.c++/taskloop-3.C: Remove.
1838 * testsuite/libgomp.c++/taskloop-4.C: Remove.
1839 * testsuite/libgomp.c++/udr-9.C: Remove.
1840 * testsuite/libgomp.c++/for-10.C: Remove.
1841 * testsuite/libgomp.c++/for-11.C: Remove.
1842 * testsuite/libgomp.c++/for-12.C: Remove.
1843 * testsuite/libgomp.c++/for-13.C: Remove.
1844 * testsuite/libgomp.c++/for-14.C: Remove.
1845 * testsuite/libgomp.c++/for-9.C: Remove.
1846 * testsuite/libgomp.c/atomic-18.c: Move ...
1847 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
1848 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
1849 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
1850 * testsuite/libgomp.c/loop-13.c: Move ...
1851 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
1852 * testsuite/libgomp.c/loop-14.c: Move ...
1853 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
1854 * testsuite/libgomp.c/loop-15.c: Remove.
1855 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
1856 * testsuite/libgomp.c/monotonic-1.c: Move ...
1857 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
1858 * testsuite/libgomp.c/monotonic-2.c: Move ...
1859 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
1860 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
1861 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
1862 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
1863 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
1864 * testsuite/libgomp.c/ordered-4.c: Move ...
1865 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
1866 * testsuite/libgomp.c/pr45784.c: Move ...
1867 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
1868 * testsuite/libgomp.c/pr64824.c: Move ...
1869 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
1870 * testsuite/libgomp.c/pr64868.c: Move ...
1871 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
1872 * testsuite/libgomp.c/pr66199-1.c: Move ...
1873 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
1874 * testsuite/libgomp.c/pr66199-2.c: Move ...
1875 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
1876 * testsuite/libgomp.c/pr66199-3.c: Move ...
1877 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
1878 * testsuite/libgomp.c/pr66199-4.c: Move ...
1879 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
1880 * testsuite/libgomp.c/pr66199-5.c: Move ...
1881 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
1882 * testsuite/libgomp.c/pr66199-6.c: Move ...
1883 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
1884 * testsuite/libgomp.c/pr66199-7.c: Move ...
1885 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
1886 * testsuite/libgomp.c/pr66199-8.c: Move ...
1887 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
1888 * testsuite/libgomp.c/pr66199-9.c: Move ...
1889 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
1890 * testsuite/libgomp.c/pr69389.c: Move ...
1891 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
1892 * testsuite/libgomp.c/simd-14.c: Move ...
1893 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
1894 * testsuite/libgomp.c/simd-15.c: Move ...
1895 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
1896 * testsuite/libgomp.c/simd-16.c: Move ...
1897 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
1898 * testsuite/libgomp.c/simd-17.c: Move ...
1899 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
1900 * testsuite/libgomp.c/target-1.c: Move ...
1901 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
1902 * testsuite/libgomp.c/target-10.c: Move ...
1903 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
1904 * testsuite/libgomp.c/target-13.c: Move ...
1905 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
1906 * testsuite/libgomp.c/target-2.c: Move ...
1907 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
1908 * testsuite/libgomp.c/taskgroup-1.c: Move ...
1909 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
1910 * testsuite/libgomp.c/taskloop-1.c: Move ...
1911 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
1912 * testsuite/libgomp.c/taskloop-2.c: Move ...
1913 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
1914 * testsuite/libgomp.c/taskloop-3.c: Move ...
1915 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
1916 * testsuite/libgomp.c/taskloop-4.c: Move ...
1917 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
1918 * testsuite/libgomp.c/udr-1.c: Move ...
1919 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
1920 * testsuite/libgomp.c/for-1.c: Move ...
1921 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
1922 * testsuite/libgomp.c/for-1.h: Move ...
1923 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
1924 * testsuite/libgomp.c/for-2.c: Move ...
1925 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
1926 * testsuite/libgomp.c/for-2.h: Move ...
1927 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
1928 * testsuite/libgomp.c/for-3.c: Move ...
1929 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
1930 * testsuite/libgomp.c/for-4.c: Move ...
1931 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
1932 * testsuite/libgomp.c/for-5.c: Move ...
1933 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
1934 * testsuite/libgomp.c/for-6.c: Move ...
1935 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
1936
1937 2018-05-02 Tom de Vries <tom@codesourcery.com>
1938
1939 PR libgomp/82428
1940 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
1941 __builtin_goacc_parlevel_{id,size}.
1942 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
1943 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
1944 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
1945 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
1946 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
1947 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
1948 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
1949 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
1950 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
1951 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
1952 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
1953 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
1954 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
1955 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
1956 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
1957 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
1958 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
1959 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
1960 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
1961 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
1962 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
1963 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
1964 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
1965
1966 2018-05-02 Tom de Vries <tom@codesourcery.com>
1967
1968 PR testsuite/85106
1969 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
1970
1971 2018-05-02 Tom de Vries <tom@codesourcery.com>
1972
1973 PR testsuite/85106
1974 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
1975
1976 2018-04-29 Julian Brown <julian@codesourcery.com>
1977 Tom de Vries <tom@codesourcery.com>
1978
1979 PR testsuite/85527
1980 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
1981 arbitrary order for iterations of atomic subtract check.
1982
1983 2018-04-28 Tom de Vries <tom@codesourcery.com>
1984
1985 PR testsuite/85527
1986 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
1987 atomic capture results obtained in parallel loop to an array, instead of
1988 to a scalar.
1989
1990 2018-04-26 Tom de Vries <tom@codesourcery.com>
1991
1992 PR libgomp/84020
1993 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
1994 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
1995 (process_GOMP_NVPTX_JIT): New function.
1996 (link_ptx): Use process_GOMP_NVPTX_JIT.
1997
1998 2018-04-26 Richard Biener <rguenther@suse.de>
1999 Tom de Vries <tom@codesourcery.com>
2000
2001 PR lto/85422
2002 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
2003
2004 2018-04-26 Tom de Vries <tom@codesourcery.com>
2005
2006 PR target/85519
2007 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
2008 recursion depth from 25 to 23.
2009 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
2010
2011 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
2012
2013 * configure: Regenerated.
2014
2015 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
2016 Tom de Vries <tom@codesourcery.com>
2017
2018 PR target/85445
2019 * testsuite/libgomp.oacc-c++/ref-1.C: New.
2020
2021 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
2022
2023 PR libgomp/85463
2024 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
2025 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
2026 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
2027 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
2028 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
2029 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
2030
2031 PR libfortran/85166
2032 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
2033 abort".
2034 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
2035
2036 2018-04-19 Jakub Jelinek <jakub@redhat.com>
2037
2038 * configure: Regenerated.
2039
2040 2018-04-18 David Malcolm <dmalcolm@redhat.com>
2041
2042 PR jit/85384
2043 * configure: Regenerate.
2044
2045 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
2046 Tom de Vries <tom@codesourcery.com>
2047
2048 PR middle-end/84955
2049 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
2050 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
2051
2052 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
2053
2054 PR fortran/83064
2055 PR testsuite/85346
2056 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
2057 test from gfortran.dg to here.
2058
2059 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
2060
2061 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
2062 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
2063
2064 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
2065
2066 PR middle-end/84955
2067 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
2068 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
2069
2070 2018-04-05 Tom de Vries <tom@codesourcery.com>
2071
2072 PR target/85204
2073 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
2074
2075 2018-03-26 Tom de Vries <tom@codesourcery.com>
2076
2077 PR tree-optimization/85063
2078 * testsuite/libgomp.c/switch-conversion-2.c: New test.
2079 * testsuite/libgomp.c/switch-conversion.c: New test.
2080 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
2081 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
2082
2083 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
2084
2085 PR fortran/84381
2086 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
2087 call abort by STOP n.
2088 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
2089 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
2090 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
2091 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
2092 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
2093 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
2094 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
2095 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
2096 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
2097 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
2098 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
2099 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
2100 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
2101 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
2102 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
2103 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
2104 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
2105 * testsuite/libgomp.fortran/associate1.f90: Likewise.
2106 * testsuite/libgomp.fortran/associate2.f90: Likewise.
2107 * testsuite/libgomp.fortran/associate3.f90: Likewise.
2108 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
2109 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
2110 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
2111 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
2112 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
2113 * testsuite/libgomp.fortran/character1.f90: Likewise.
2114 * testsuite/libgomp.fortran/character2.f90: Likewise.
2115 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
2116 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
2117 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
2118 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
2119 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
2120 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
2121 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
2122 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
2123 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
2124 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
2125 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
2126 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
2127 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
2128 * testsuite/libgomp.fortran/do1.f90: Likewise.
2129 * testsuite/libgomp.fortran/do2.f90: Likewise.
2130 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
2131 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
2132 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
2133 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
2134 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
2135 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
2136 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
2137 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
2138 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
2139 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
2140 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
2141 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
2142 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
2143 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
2144 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
2145 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
2146 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
2147 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
2148 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
2149 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
2150 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
2151 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
2152 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
2153 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
2154 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
2155 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
2156 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
2157 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
2158 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
2159 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
2160 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
2161 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
2162 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
2163 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
2164 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
2165 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
2166 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
2167 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
2168 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
2169 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
2170 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
2171 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
2172 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
2173 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
2174 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
2175 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
2176 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
2177 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
2178 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
2179 * testsuite/libgomp.fortran/lib1.f90: Likewise.
2180 * testsuite/libgomp.fortran/lib2.f: Likewise.
2181 * testsuite/libgomp.fortran/lib3.f: Likewise.
2182 * testsuite/libgomp.fortran/lib4.f90: Likewise.
2183 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
2184 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
2185 * testsuite/libgomp.fortran/nested1.f90: Likewise.
2186 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
2187 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
2188 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
2189 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
2190 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
2191 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
2192 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
2193 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
2194 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
2195 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
2196 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
2197 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
2198 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
2199 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
2200 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
2201 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
2202 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
2203 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
2204 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
2205 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
2206 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
2207 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
2208 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
2209 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
2210 * testsuite/libgomp.fortran/pr25162.f: Likewise.
2211 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
2212 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
2213 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
2214 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
2215 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
2216 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
2217 * testsuite/libgomp.fortran/pr28390.f: Likewise.
2218 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
2219 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
2220 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
2221 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
2222 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
2223 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
2224 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
2225 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
2226 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
2227 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
2228 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
2229 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
2230 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
2231 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
2232 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
2233 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
2234 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
2235 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
2236 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
2237 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
2238 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
2239 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
2240 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
2241 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
2242 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
2243 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
2244 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
2245 * testsuite/libgomp.fortran/reference1.f90: Likewise.
2246 * testsuite/libgomp.fortran/reference2.f90: Likewise.
2247 * testsuite/libgomp.fortran/retval1.f90: Likewise.
2248 * testsuite/libgomp.fortran/retval2.f90: Likewise.
2249 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
2250 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
2251 * testsuite/libgomp.fortran/simd1.f90: Likewise.
2252 * testsuite/libgomp.fortran/simd2.f90: Likewise.
2253 * testsuite/libgomp.fortran/simd3.f90: Likewise.
2254 * testsuite/libgomp.fortran/simd4.f90: Likewise.
2255 * testsuite/libgomp.fortran/simd5.f90: Likewise.
2256 * testsuite/libgomp.fortran/simd6.f90: Likewise.
2257 * testsuite/libgomp.fortran/simd7.f90: Likewise.
2258 * testsuite/libgomp.fortran/stack.f90: Likewise.
2259 * testsuite/libgomp.fortran/strassen.f90: Likewise.
2260 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
2261 * testsuite/libgomp.fortran/tabs2.f: Likewise.
2262 * testsuite/libgomp.fortran/target1.f90: Likewise.
2263 * testsuite/libgomp.fortran/target2.f90: Likewise.
2264 * testsuite/libgomp.fortran/target3.f90: Likewise.
2265 * testsuite/libgomp.fortran/target4.f90: Likewise.
2266 * testsuite/libgomp.fortran/target5.f90: Likewise.
2267 * testsuite/libgomp.fortran/target6.f90: Likewise.
2268 * testsuite/libgomp.fortran/target7.f90: Likewise.
2269 * testsuite/libgomp.fortran/target8.f90: Likewise.
2270 * testsuite/libgomp.fortran/task1.f90: Likewise.
2271 * testsuite/libgomp.fortran/task2.f90: Likewise.
2272 * testsuite/libgomp.fortran/task3.f90: Likewise.
2273 * testsuite/libgomp.fortran/task4.f90: Likewise.
2274 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
2275 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
2276 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
2277 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
2278 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
2279 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
2280 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
2281 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
2282 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
2283 * testsuite/libgomp.fortran/udr1.f90: Likewise.
2284 * testsuite/libgomp.fortran/udr10.f90: Likewise.
2285 * testsuite/libgomp.fortran/udr11.f90: Likewise.
2286 * testsuite/libgomp.fortran/udr12.f90: Likewise.
2287 * testsuite/libgomp.fortran/udr13.f90: Likewise.
2288 * testsuite/libgomp.fortran/udr14.f90: Likewise.
2289 * testsuite/libgomp.fortran/udr15.f90: Likewise.
2290 * testsuite/libgomp.fortran/udr2.f90: Likewise.
2291 * testsuite/libgomp.fortran/udr3.f90: Likewise.
2292 * testsuite/libgomp.fortran/udr4.f90: Likewise.
2293 * testsuite/libgomp.fortran/udr5.f90: Likewise.
2294 * testsuite/libgomp.fortran/udr6.f90: Likewise.
2295 * testsuite/libgomp.fortran/udr7.f90: Likewise.
2296 * testsuite/libgomp.fortran/udr8.f90: Likewise.
2297 * testsuite/libgomp.fortran/udr9.f90: Likewise.
2298 * testsuite/libgomp.fortran/vla1.f90: Likewise.
2299 * testsuite/libgomp.fortran/vla2.f90: Likewise.
2300 * testsuite/libgomp.fortran/vla3.f90: Likewise.
2301 * testsuite/libgomp.fortran/vla4.f90: Likewise.
2302 * testsuite/libgomp.fortran/vla5.f90: Likewise.
2303 * testsuite/libgomp.fortran/vla6.f90: Likewise.
2304 * testsuite/libgomp.fortran/vla7.f90: Likewise.
2305 * testsuite/libgomp.fortran/vla8.f90: Likewise.
2306 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
2307 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
2308 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
2309 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
2310 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
2311 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
2312 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
2313 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
2314 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
2315 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
2316 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
2317 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
2318 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
2319 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
2320 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
2321 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
2322 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
2323 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
2324 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
2325 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
2326 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
2327 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
2328 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
2329 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
2330 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
2331 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
2332 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
2333 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
2334 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
2335 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
2336 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
2337 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
2338 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
2339 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
2340 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
2341 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
2342 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
2343 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
2344 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
2345 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2346 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
2347 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2348 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
2349 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
2350 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
2351 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
2352 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
2353 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
2354 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
2355 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
2356 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
2357 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
2358 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
2359 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2360 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
2361 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
2362 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
2363 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
2364 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
2365 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
2366 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
2367 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
2368 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
2369 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
2370 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
2371 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
2372 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
2373 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
2374 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
2375 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
2376 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
2377 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
2378 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
2379 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
2380 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
2381 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
2382 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
2383 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
2384 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
2385 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
2386 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
2387 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
2388 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
2389 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
2390 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
2391 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
2392 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
2393 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
2394 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
2395 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
2396 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
2397 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
2398 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
2399 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
2400
2401 2018-03-20 Richard Biener <rguenther@suse.de>
2402
2403 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
2404 parallelizable loop.
2405
2406 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
2407
2408 PR target/84148
2409 * configure: Regenerate.
2410
2411 2018-02-16 Jakub Jelinek <jakub@redhat.com>
2412
2413 PR fortran/84418
2414 * libgomp.fortran/pr84418-1.f90: New test.
2415 * libgomp.fortran/pr84418-2.f90: New test.
2416
2417 2018-02-14 Jakub Jelinek <jakub@redhat.com>
2418
2419 PR fortran/84313
2420 * testsuite/libgomp.fortran/threadprivate4.f90: Add
2421 -std=f2003 -fall-intrinsics into dg-additional-options.
2422
2423 2018-02-08 Martin Jambor <mjambor@suse.cz>
2424
2425 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
2426 clonable.
2427
2428 2018-02-08 Martin Jambor <mjambor@suse.cz>
2429
2430 * testsuite/libgomp.hsa.c/staticvar.c: New test.
2431
2432 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2433
2434 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
2435 [__cplusplus]: Declare extern "C".
2436
2437 2018-02-07 Tom de Vries <tom@codesourcery.com>
2438
2439 PR libgomp/84217
2440 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
2441
2442 2018-01-29 Christoph Spiel <cspiel@freenet.de>
2443 Jakub Jelinek <jakub@redhat.com>
2444
2445 PR libgomp/84096
2446 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
2447 instead of omp_lock_t.
2448
2449 2018-01-25 Tom de Vries <tom@codesourcery.com>
2450
2451 PR target/84028
2452 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
2453
2454 2018-01-24 Tom de Vries <tom@codesourcery.com>
2455
2456 PR target/83589
2457 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
2458
2459 2018-01-24 Tom de Vries <tom@codesourcery.com>
2460
2461 PR target/81352
2462 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
2463
2464 2018-01-19 Tom de Vries <tom@codesourcery.com>
2465 Cesar Philippidis <cesar@codesourcery.com>
2466
2467 PR target/83920
2468 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
2469 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
2470
2471 2018-01-03 Jakub Jelinek <jakub@redhat.com>
2472
2473 Update copyright years.
2474
2475 * libgomp.texi: Bump @copying's copyright year.
2476
2477 2017-12-30 Tom de Vries <tom@codesourcery.com>
2478
2479 PR libgomp/83046
2480 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
2481 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
2482
2483 2017-12-27 Tom de Vries <tom@codesourcery.com>
2484
2485 PR c++/83046
2486 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
2487 (test_nonstatic): Fix return type to workaround PR83046.
2488
2489 2017-12-05 Jakub Jelinek <jakub@redhat.com>
2490
2491 PR testsuite/83281
2492 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
2493 j suffix instead of i.
2494 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
2495 Likewise.
2496
2497 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
2498
2499 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
2500 call to acc_wait (1).
2501
2502 2017-11-24 Jakub Jelinek <jakub@redhat.com>
2503
2504 PR fortran/81304
2505 * testsuite/libgomp.fortran/pr81304.f90: New test.
2506
2507 2017-11-23 Jakub Jelinek <jakub@redhat.com>
2508
2509 PR fortran/81841
2510 * libgomp.fortran/pr81841.f90: New test.
2511
2512 2017-11-22 Jakub Jelinek <jakub@redhat.com>
2513
2514 PR libgomp/83106
2515 * target.c (gomp_target_init): Compute lengths just once and
2516 use them in both malloc size and subsequent copying.
2517
2518 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
2519
2520 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
2521 * acinclude.m4: Add cet.m4.
2522 * configure: Regenerate.
2523 * Makefile.in: Likewise.
2524 * testsuite/Makefile.in: Likewise.
2525
2526 2017-11-15 Tom de Vries <tom@codesourcery.com>
2527
2528 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
2529 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
2530 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
2531 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
2532 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
2533 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
2534
2535 2017-11-14 Tom de Vries <tom@codesourcery.com>
2536
2537 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
2538 non-nvidia devices.
2539
2540 2017-11-07 Jakub Jelinek <jakub@redhat.com>
2541
2542 PR c++/82835
2543 * testsuite/libgomp.c++/pr82835.C: New test.
2544
2545 2017-11-06 Martin Liska <mliska@suse.cz>
2546
2547 * testsuite/libgomp.c++/loop-2.C: Return a value
2548 for functions with non-void return type, or change type to void,
2549 or add -Wno-return-type for test.
2550 * testsuite/libgomp.c++/loop-4.C: Likewise.
2551 * testsuite/libgomp.c++/parallel-1.C: Likewise.
2552 * testsuite/libgomp.c++/shared-1.C: Likewise.
2553 * testsuite/libgomp.c++/single-1.C: Likewise.
2554 * testsuite/libgomp.c++/single-2.C: Likewise.
2555
2556 2017-10-31 Tom de Vries <tom@codesourcery.com>
2557
2558 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
2559 "do {} while (false)".
2560 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
2561 after HSA_DEBUG call.
2562
2563 2017-10-28 Jakub Jelinek <jakub@redhat.com>
2564
2565 * target.c (struct gomp_coalesce_buf): New type.
2566 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
2567 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
2568 (gomp_copy_host2dev): Add CBUF argument, if copying into
2569 the cached ranges, memcpy into buffer instead of copying
2570 into device.
2571 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
2572 Add CBUF argument, pass it through to other calls.
2573 (gomp_map_vars): Aggregate copies from host to device if small enough
2574 and with small enough gaps in between into memcpy into a buffer and
2575 fewer host to device copies from the buffer.
2576 (gomp_update): Adjust gomp_copy_host2dev caller.
2577
2578 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
2579
2580 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
2581 run" directive.
2582 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
2583 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
2584 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
2585 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
2586
2587 2017-10-16 Tom de Vries <tom@codesourcery.com>
2588
2589 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
2590 openacc_nvidia_accel_selected.
2591 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
2592 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
2593 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
2594 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
2595 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
2596 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
2597 openacc_nvidia_accel_selected. Skip for shared memory device.
2598 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
2599 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
2600
2601 2017-10-09 Martin Jambor <mjambor@suse.cz>
2602
2603 PR hsa/82416
2604 * testsuite/libgomp.hsa.c/pr82416.c: New test.
2605
2606 2017-10-07 Tom de Vries <tom@codesourcery.com>
2607
2608 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
2609 Remove acc_device_nvidia references.
2610 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
2611 Same.
2612
2613 2017-10-05 Tom de Vries <tom@codesourcery.com>
2614
2615 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
2616 vector_length(32) clause from acc parallel directive.
2617 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
2618
2619 2017-10-04 Tom de Vries <tom@codesourcery.com>
2620
2621 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
2622 (main): Reduce sum of arr elements. Assert that hres is exactly
2623 representable in 32-bit floating point.
2624 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
2625 (main): Reduce sum of arr elements. Assert that hres and hmres are
2626 exactly representable in 32-bit floating point.
2627 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
2628
2629 2017-09-28 Tom de Vries <tom@codesourcery.com>
2630
2631 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
2632 setting.
2633 * testsuite/libgomp.c++/pr69393.C: Same.
2634 * testsuite/libgomp.c++/taskloop-1.C: Same.
2635 * testsuite/libgomp.c++/taskloop-3.C: Same.
2636 * testsuite/libgomp.c++/taskloop-4.C: Same.
2637 * testsuite/libgomp.c/for-4.c: Same.
2638 * testsuite/libgomp.c/pr66199-3.c: Same.
2639 * testsuite/libgomp.c/pr66199-4.c: Same.
2640 * testsuite/libgomp.c/pr66199-6.c: Same.
2641 * testsuite/libgomp.c/taskloop-1.c: Same.
2642 * testsuite/libgomp.c/taskloop-3.c: Same.
2643 * testsuite/libgomp.c/taskloop-4.c: Same.
2644 * testsuite/libgomp.fortran/aligned1.f03: Same.
2645 * testsuite/libgomp.fortran/condinc1.f: Same.
2646 * testsuite/libgomp.fortran/condinc3.f90: Same.
2647 * testsuite/libgomp.fortran/crayptr1.f90: Same.
2648 * testsuite/libgomp.fortran/crayptr2.f90: Same.
2649 * testsuite/libgomp.fortran/crayptr3.f90: Same.
2650 * testsuite/libgomp.fortran/omp_cond1.f: Same.
2651 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
2652 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
2653 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
2654 * testsuite/libgomp.fortran/recursion1.f90: Same.
2655 * testsuite/libgomp.fortran/target2.f90: Same.
2656 * testsuite/libgomp.fortran/target5.f90: Same.
2657 * testsuite/libgomp.fortran/task3.f90: Same.
2658
2659 2017-09-28 Tom de Vries <tom@codesourcery.com>
2660
2661 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
2662 vector_length(32) clause from acc parallel directive.
2663 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
2664
2665 2017-09-27 Tom de Vries <tom@codesourcery.com>
2666
2667 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
2668 Remove acc_device_nvidia references.
2669
2670 2017-09-16 Tom de Vries <tom@codesourcery.com>
2671
2672 PR c/81875
2673 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
2674
2675 2017-09-14 Tom de Vries <tom@codesourcery.com>
2676
2677 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
2678 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
2679 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
2680 * testsuite/libgomp.c/c.exp: Include test-cases from
2681 libgomp.c-c++-common.
2682 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
2683 files.
2684
2685 2017-09-14 Jakub Jelinek <jakub@redhat.com>
2686
2687 PR c++/81314
2688 * testsuite/libgomp.c++/pr81314.C: New test.
2689
2690 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
2691
2692 * libgomp.texi (Top): www.openacc.org now uses https.
2693 (Enabling OpenACC): Ditto.
2694 (acc_get_num_devices): Ditto.
2695 (acc_set_device_type): Ditto.
2696 (acc_get_device_type): Ditto.
2697 (acc_set_device_num): Ditto.
2698 (acc_get_device_num): Ditto.
2699 (acc_async_test): Ditto.
2700 (acc_async_test_all): Ditto.
2701 (acc_wait): Ditto.
2702 (acc_wait_all): Ditto.
2703 (acc_wait_all_async): Ditto.
2704 (acc_wait_async): Ditto.
2705 (acc_init): Ditto.
2706 (acc_shutdown): Ditto.
2707 (acc_on_device): Ditto.
2708 (acc_malloc): Ditto.
2709 (acc_free): Ditto.
2710 (acc_copyin): Ditto.
2711 (acc_present_or_copyin): Ditto.
2712 (acc_create): Ditto.
2713 (acc_present_or_create): Ditto.
2714 (acc_copyout): Ditto.
2715 (acc_delete): Ditto.
2716 (acc_update_device): Ditto.
2717 (acc_update_self): Ditto.
2718 (acc_map_data): Ditto.
2719 (acc_unmap_data): Ditto.
2720 (acc_deviceptr): Ditto.
2721 (acc_hostptr): Ditto.
2722 (acc_is_present): Ditto.
2723 (acc_memcpy_to_device): Ditto.
2724 (acc_memcpy_from_device): Ditto.
2725 (acc_get_current_cuda_device): Ditto.
2726 (acc_get_current_cuda_context): Ditto.
2727 (acc_get_cuda_stream): Ditto.
2728 (acc_set_cuda_stream): Ditto.
2729 (ACC_DEVICE_TYPE): Ditto.
2730 (ACC_DEVICE_NUM): Ditto.
2731 (OpenACC Library Interoperability): Ditto.
2732
2733 2017-08-09 Jakub Jelinek <jakub@redhat.com>
2734
2735 PR c/81687
2736 * testsuite/libgomp.c/pr81687-1.c: New test.
2737 * testsuite/libgomp.c/pr81687-2.c: New test.
2738
2739 2017-08-07 Jakub Jelinek <jakub@redhat.com>
2740
2741 PR c/69389
2742 * testsuite/libgomp.c/pr69389.c: New test.
2743 * testsuite/libgomp.c++/pr69389.C: New test.
2744
2745 2017-08-07 Tom de Vries <tom@codesourcery.com>
2746
2747 PR middle-end/78266
2748 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
2749 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
2750
2751 2017-07-27 Jakub Jelinek <jakub@redhat.com>
2752
2753 PR c/45784
2754 * testsuite/libgomp.c/pr45784.c: New test.
2755 * testsuite/libgomp.c++/pr45784.C: New test.
2756
2757 2017-07-19 Tom de Vries <tom@codesourcery.com>
2758
2759 * testsuite/libgomp.oacc-c/vec.c: New test.
2760
2761 2017-07-03 Tom de Vries <tom@codesourcery.com>
2762
2763 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
2764
2765 2017-06-27 Tom de Vries <tom@codesourcery.com>
2766
2767 * plugin/plugin-nvptx.c (notify_var): New function.
2768 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
2769
2770 2017-06-27 Tom de Vries <tom@codesourcery.com>
2771
2772 * env.c (parse_unsigned_long_1): Factor out of ...
2773 (parse_unsigned_long): ... here.
2774 (parse_int_1): Factor out of ...
2775 (parse_int): ... here.
2776 (parse_int_secure): New function.
2777 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
2778 * secure_getenv.h: Factor out of ...
2779 * plugin/plugin-hsa.c: ... here.
2780 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
2781
2782 2017-06-21 Jakub Jelinek <jakub@redhat.com>
2783
2784 PR c++/81130
2785 * testsuite/libgomp.c++/pr81130.C: New test.
2786
2787 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2788
2789 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
2790 default args.
2791 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
2792 dg-xfail-run-if default args.
2793
2794 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
2795
2796 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
2797 * testsuite/libgomp.c/pr39591-3.c: Likewise.
2798
2799 2017-05-30 Jakub Jelinek <jakub@redhat.com>
2800
2801 PR libgomp/80822
2802 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
2803 (gomp_affinity_init_level): Use it. Always analyze the core and thread
2804 sibling lists, depending on level just pick up what CPUs to put
2805 together into a place vs. whether add multiple ordered places.
2806
2807 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
2808
2809 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
2810 * libgomp.map (OACC_2.0.1): Add these.
2811 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
2812 for "acc_wait", and "acc_wait_all", respectively.
2813 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
2814 for "acc_wait", and "acc_wait_all", respectively.
2815 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
2816 * libgomp.texi (acc_wait, acc_wait_all): Update.
2817 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
2818 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
2819 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
2820
2821 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
2822 acc_present_or_copyin and acc_present_or_create procedures,
2823 respectively.
2824 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
2825 generally different variants of OpenACC Runtime Library functions.
2826 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2827
2828 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
2829 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2830
2831 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
2832 of preprocessor definitions.
2833 * libgomp.h (strong_alias): Guard by "#ifdef
2834 HAVE_ATTRIBUTE_ALIAS".
2835 * oacc-mem.c: Provide "acc_pcreate" as alias for
2836 "acc_present_or_create", and "acc_pcopyin" as alias for
2837 "acc_present_or_copyin".
2838 * libgomp.map: New version "OACC_2.0.1".
2839 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
2840 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
2841 its content into...
2842 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
2843 Extend testing.
2844
2845 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
2846 when disabling nvptx offloading.
2847
2848 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
2849
2850 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
2851 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2852 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2853
2854 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
2855 * testsuite/lib/libgomp.exp
2856 (check_effective_target_openacc_nvidia_accel_configured): New
2857 proc.
2858 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
2859 (check_effective_target_c++): New procs.
2860 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
2861 (check_effective_target_c++): Likewise.
2862
2863 2017-05-22 Jakub Jelinek <jakub@redhat.com>
2864
2865 PR middle-end/80809
2866 * testsuite/libgomp.c/pr80809-2.c: New test.
2867 * testsuite/libgomp.c/pr80809-3.c: New test.
2868
2869 PR middle-end/80809
2870 * testsuite/libgomp.c/pr80809-1.c: New test.
2871
2872 PR middle-end/80853
2873 * testsuite/libgomp.c/pr80853.c: New test.
2874
2875 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
2876
2877 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
2878 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
2879 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
2880 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
2881 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
2882
2883 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
2884 Debug output for failure.
2885
2886 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2887
2888 * testsuite/lib/libgomp.exp: Load scanlang.exp.
2889
2890 2017-04-27 Jakub Jelinek <jakub@redhat.com>
2891
2892 PR bootstrap/80531
2893 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
2894 bootstrap compare failures.
2895
2896 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
2897
2898 * testsuite/libgomp.c/target-36.c: New testcase.
2899
2900 2017-04-13 Jakub Jelinek <jakub@redhat.com>
2901
2902 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
2903 instead of char.
2904
2905 2017-04-11 Jakub Jelinek <jakub@redhat.com>
2906
2907 PR libgomp/80394
2908 * testsuite/libgomp.c/pr80394.c: New test.
2909
2910 2017-04-04 Jakub Jelinek <jakub@redhat.com>
2911
2912 PR libgomp/79876
2913 * config/posix/thread-stacksize.h: New file.
2914 * config/darwin/thread-stacksize.h: New file.
2915 * config/nvptx/thread-stacksize.h: New file.
2916 * env.c: Include thread-stacksize.h.
2917 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
2918 instead of 0. Call pthread_attr_setstacksize even if
2919 GOMP_DEFAULT_STACKSIZE is non-zero.
2920
2921 2017-03-30 Jakub Jelinek <jakub@redhat.com>
2922
2923 * env.c (initialize_env): Initialize stacksize to 0.
2924
2925 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
2926
2927 PR c++/80029
2928 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
2929
2930 2017-03-08 Jakub Jelinek <jakub@redhat.com>
2931
2932 PR c/79940
2933 * testsuite/libgomp.c/pr79940.c: New test.
2934
2935 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2936
2937 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
2938 targets.
2939 Add __float128 options.
2940
2941 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
2942
2943 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
2944 hppa*-*-* dg-skip-if directive.
2945
2946 2017-02-09 Jakub Jelinek <jakub@redhat.com>
2947
2948 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
2949 dg-skip-if directive into a comment.
2950
2951 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
2952 Chung-Lin Tang <cltang@codesourcery.com>
2953
2954 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
2955 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
2956 add additional case.
2957 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
2958 "openacc_nvidia_accel_selected".
2959 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
2960 Add num_workers(8) clause.
2961
2962 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
2963
2964 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
2965 hppa*-*-*.
2966 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
2967 include complex.h on hppa*-*-hpux*.
2968 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
2969
2970 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
2971
2972 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
2973
2974 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
2975 GOMP_OFFLOAD_openacc_exec. Adjust all users.
2976 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
2977 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
2978 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
2979 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
2980 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
2981 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
2982 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
2983 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
2984
2985 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
2986
2987 * libgomp-plugin.h: #include <stdbool.h>.
2988 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
2989 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
2990 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
2991 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
2992 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
2993 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
2994 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
2995 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
2996 (GOMP_OFFLOAD_openacc_register_async_cleanup)
2997 (GOMP_OFFLOAD_openacc_async_test)
2998 (GOMP_OFFLOAD_openacc_async_test_all)
2999 (GOMP_OFFLOAD_openacc_async_wait)
3000 (GOMP_OFFLOAD_openacc_async_wait_async)
3001 (GOMP_OFFLOAD_openacc_async_wait_all)
3002 (GOMP_OFFLOAD_openacc_async_wait_all_async)
3003 (GOMP_OFFLOAD_openacc_async_set_async)
3004 (GOMP_OFFLOAD_openacc_create_thread_data)
3005 (GOMP_OFFLOAD_openacc_destroy_thread_data)
3006 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
3007 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
3008 (GOMP_OFFLOAD_openacc_get_cuda_stream)
3009 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
3010 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
3011 these.
3012 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
3013 (GOMP_OFFLOAD_unload_image): Fix argument types.
3014
3015 2017-01-26 Jakub Jelinek <jakub@redhat.com>
3016
3017 * testsuite/lib/libgomp.exp
3018 (check_effective_target_hsa_offloading_selected_nocache): Fix up
3019 check_compile invocation. Fix up removal of executable. Drop
3020 bogus "2>&1" argument.
3021
3022 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
3023 directive.
3024
3025 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
3026 Martin Jambor <mjambor@suse.cz>
3027
3028 * plugin/hsa.h: Moved to top level include.
3029 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
3030
3031 2017-01-21 Jakub Jelinek <jakub@redhat.com>
3032
3033 PR other/79046
3034 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
3035 of cat to get version from BASE-VER file.
3036 * testsuite/Makefile.in: Regenerated.
3037
3038 2017-01-19 Jakub Jelinek <jakub@redhat.com>
3039
3040 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
3041 for _WIN64.
3042
3043 2017-01-17 Jakub Jelinek <jakub@redhat.com>
3044
3045 * plugin/hsa.h: Add GCC runtime library exception.
3046 * plugin/hsa_ext_finalize.h: Likewise.
3047
3048 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
3049 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
3050 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
3051 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
3052 plugin/include/cuda as include dir and -ldl instead of -lcuda as
3053 library to link ptx plugin against.
3054 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
3055 (CUDA_CALLS): Define.
3056 (cuda_lib, cuda_lib_inited): New variables.
3057 (init_cuda_lib): New function.
3058 (CUDA_CALL_PREFIX): Define.
3059 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
3060 (CUDA_CALL): Use FN instead of (FN).
3061 (CUDA_CALL_NOCHECK): Define.
3062 (cuda_error, fini_streams_for_device, select_stream_for_async,
3063 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
3064 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
3065 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
3066 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
3067 CUDA_CALL_NOCHECK.
3068 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
3069 CUDA_CALL_NOCHECK.
3070 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
3071 Use CUDA_CALL_NOCHECK.
3072 * plugin/cuda/cuda.h: New file.
3073 * config.h.in: Regenerated.
3074 * configure: Regenerated.
3075
3076 PR other/79046
3077 * configure.ac: Add GCC_BASE_VER.
3078 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
3079 get version from BASE-VER file.
3080 * testsuite/Makefile.in: Regenerated.
3081 * configure: Regenerated.
3082 * Makefile.in: Regenerated.
3083
3084 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3085
3086 PR libgomp/60670
3087 * Makefile.am: Make fincludedir multilib-aware.
3088 * Makefile.in: Regenerate.
3089
3090 2017-01-01 Jakub Jelinek <jakub@redhat.com>
3091
3092 Update copyright years.
3093
3094 * libgomp.texi: Bump @copying's copyright year.
3095
3096 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3097
3098 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
3099 pthread_spinlock_t instead of gomp_mutex_t lock.
3100 (gomp_get_thread_pool): Likewise.
3101 (gomp_release_thread_pool): Likewise.
3102 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
3103 Likewise.
3104
3105 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
3106
3107 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
3108 thread pool in case nthreads == 1.
3109
3110 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
3111
3112 * config/nvptx/env.c: Delete.
3113 * icv.c: Move definitions of ICV variables back ...
3114 * env.c: ...here. Do not compile environment-related functionality if
3115 LIBGOMP_OFFLOADED_ONLY is set.
3116
3117 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
3118
3119 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
3120 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
3121 * configure: Regenerate.
3122 * config.h.in: Likewise.
3123
3124 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
3125
3126 * Makefile.in: Regenerate with automake-1.11.6.
3127 * aclocal.m4: Likewise.
3128 * configure: Likewise.
3129 * testsuite/Makefile.in: Likewise.
3130
3131 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
3132
3133 * config/nvptx/critical.c: Delete to use generic implementation.
3134
3135 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
3136
3137 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
3138 ../../affinity.c as fallback.
3139 * config/nvptx/affinity.c: Delete to use fallback implementation.
3140
3141 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
3142 Jakub Jelinek <jakub@redhat.com>
3143 Dmitry Melnik <dm@ispras.ru>
3144
3145 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
3146 * Makefile.in. Regenerate.
3147 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
3148 (LIBGOMP_USE_PTHREADS): ...here; new define.
3149 * configure: Regenerate.
3150 * config.h.in: Likewise.
3151 * config/posix/affinity.c: Move to...
3152 * affinity.c: ...here (new file). Guard use of Pthreads-specific
3153 interface by LIBGOMP_USE_PTHREADS.
3154 * critical.c: Split out GOMP_atomic_{start,end} into...
3155 * atomic.c: ...here (new file).
3156 * env.c: Split out ICV definitions into...
3157 * icv.c: ...here (new file) and...
3158 * icv-device.c: ...here. New file.
3159 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
3160 (gomp_destroy_lock_30): Ditto.
3161 (gomp_set_lock_30): Ditto.
3162 (gomp_unset_lock_30): Ditto.
3163 (gomp_test_lock_30): Ditto.
3164 (gomp_init_nest_lock_30): Ditto.
3165 (gomp_destroy_nest_lock_30): Ditto.
3166 (gomp_set_nest_lock_30): Ditto.
3167 (gomp_unset_nest_lock_30): Ditto.
3168 (gomp_test_nest_lock_30): Ditto.
3169 * lock.c: New.
3170 * config/nvptx/lock.c: New.
3171 * config/nvptx/bar.c: New.
3172 * config/nvptx/bar.h: New.
3173 * config/nvptx/doacross.h: New.
3174 * config/nvptx/error.c: New.
3175 * config/nvptx/icv-device.c: New.
3176 * config/nvptx/mutex.h: New.
3177 * config/nvptx/pool.h: New.
3178 * config/nvptx/proc.c: New.
3179 * config/nvptx/ptrlock.h: New.
3180 * config/nvptx/sem.h: New.
3181 * config/nvptx/simple-bar.h: New.
3182 * config/nvptx/target.c: New.
3183 * config/nvptx/task.c: New.
3184 * config/nvptx/team.c: New.
3185 * config/nvptx/time.c: New.
3186 * config/posix/simple-bar.h: New.
3187 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
3188 (gomp_num_teams_var): Declare.
3189 (struct gomp_thread_pool): Change threads_dock member to
3190 gomp_simple_barrier_t.
3191 [__nvptx__] (gomp_thread): New implementation.
3192 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
3193 (gomp_thread_destructor): Ditto.
3194 (gomp_init_thread_affinity): Ditto.
3195 * team.c: Guard uses of Pthreads-specific interfaces by
3196 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
3197 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
3198 * config/nvptx/alloc.c: Delete.
3199 * config/nvptx/barrier.c: Ditto.
3200 * config/nvptx/fortran.c: Ditto.
3201 * config/nvptx/iter.c: Ditto.
3202 * config/nvptx/iter_ull.c: Ditto.
3203 * config/nvptx/loop.c: Ditto.
3204 * config/nvptx/loop_ull.c: Ditto.
3205 * config/nvptx/ordered.c: Ditto.
3206 * config/nvptx/parallel.c: Ditto.
3207 * config/nvptx/priority_queue.c: Ditto.
3208 * config/nvptx/sections.c: Ditto.
3209 * config/nvptx/single.c: Ditto.
3210 * config/nvptx/splay-tree.c: Ditto.
3211 * config/nvptx/work.c: Ditto.
3212 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
3213 -foffload=-lgfortran in addition to -lgfortran.
3214 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
3215 * plugin/plugin-nvptx.c: Include <limits.h>.
3216 (struct targ_fn_descriptor): Add new fields.
3217 (struct ptx_device): Ditto. Set them...
3218 (nvptx_open_device): ...here.
3219 (nvptx_adjust_launch_bounds): New.
3220 (nvptx_host2dev): Allow NULL 'nvthd'.
3221 (nvptx_dev2host): Ditto.
3222 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
3223 (link_ptx): Adjust log sizes.
3224 (nvptx_host2dev): Allow NULL 'nvthd'.
3225 (nvptx_dev2host): Ditto.
3226 (nvptx_set_clocktick): New. Use it...
3227 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
3228 fields.
3229 (GOMP_OFFLOAD_dev2dev): New.
3230 (nvptx_adjust_launch_bounds): New.
3231 (nvptx_stacks_size): New.
3232 (nvptx_stacks_alloc): New.
3233 (nvptx_stacks_free): New.
3234 (GOMP_OFFLOAD_run): New.
3235 (GOMP_OFFLOAD_async_run): New (stub).
3236
3237 2016-11-23 Martin Jambor <mjambor@suse.cz>
3238
3239 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
3240 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
3241 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
3242
3243 2016-11-23 Martin Liska <mliska@suse.cz>
3244 Martin Jambor <mjambor@suse.cz>
3245
3246 * plugin/hsa.h: New file.
3247 * plugin/hsa_ext_finalize.h: New file.
3248 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
3249 header file unistd.h, and functions secure_getenv, __secure_getenv,
3250 getuid, geteuid, getgid and getegid.
3251 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
3252 -D_GNU_SOURCE.
3253 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
3254 Handle various cases of secure_getenv presence, add an implementation
3255 when we can test effective UID and GID.
3256 (struct hsa_runtime_fn_info): New structure.
3257 (hsa_runtime_fn_info hsa_fns): New variable.
3258 (hsa_runtime_lib): Likewise.
3259 (support_cpu_devices): Likewise.
3260 (init_enviroment_variables): Load newly introduced ENV
3261 variables.
3262 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
3263 (hsa_fatal): Likewise.
3264 (DLSYM_FN): New macro.
3265 (init_hsa_runtime_functions): New function.
3266 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
3267 structure. Depending on environment, also allow CPU devices.
3268 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
3269 (get_kernarg_memory_region): Likewise.
3270 (GOMP_OFFLOAD_init_device): Likewise.
3271 (destroy_hsa_program): Likewise.
3272 (init_basic_kernel_info): New function.
3273 (GOMP_OFFLOAD_load_image): Use it.
3274 (create_and_finalize_hsa_program): Call hsa run-time functions via
3275 hsa_fns structure.
3276 (create_single_kernel_dispatch): Likewise.
3277 (release_kernel_dispatch): Likewise.
3278 (init_single_kernel): Likewise.
3279 (parse_target_attributes): Allow up multiple HSA grid dimensions.
3280 (get_group_size): New function.
3281 (run_kernel): Likewise.
3282 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
3283 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
3284 structure.
3285 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
3286 * testsuite/libgomp-test-support.exp.in: Likewise.
3287 * Makefile.in: Regenerated.
3288 * aclocal.m4: Likewise.
3289 * config.h.in: Likewise.
3290 * configure: Likewise.
3291 * testsuite/Makefile.in: Likewise.
3292
3293 2016-11-15 Martin Jambor <mjambor@suse.cz>
3294 Alexander Monakov <amonakov@ispras.ru>
3295
3296 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
3297 mapping clauses to target constructs.
3298 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
3299
3300 2016-11-15 Matthias Klose <doko@ubuntu.com>
3301
3302 * configure: Regenerate.
3303
3304 2016-11-10 Jakub Jelinek <jakub@redhat.com>
3305
3306 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
3307 * omp_lib.h.in (openmp_version): Likewise.
3308 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
3309 of 201307.
3310 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3311
3312 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
3313 (fib_wrapper): Add map(from: x) clause.
3314 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
3315 (e_53_2): Likewise.
3316 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
3317 (accum): Add map(tmp) clause.
3318 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
3319 (accum): Add map(tofrom: tmp) clause.
3320 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
3321 (gramSchmidt): Likewise.
3322 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
3323 map(tofrom: sum) clause.
3324 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
3325 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
3326 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
3327 only allowed on the loop iterator.
3328 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
3329 * testsuite/libgomp.fortran/taskloop2.f90: New test.
3330 * testsuite/libgomp.fortran/taskloop4.f90: New test.
3331 * testsuite/libgomp.fortran/doacross1.f90: New test.
3332 * testsuite/libgomp.fortran/doacross3.f90: New test.
3333 * testsuite/libgomp.fortran/taskloop1.f90: New test.
3334 * testsuite/libgomp.fortran/taskloop3.f90: New test.
3335 * testsuite/libgomp.fortran/doacross2.f90: New test.
3336 * testsuite/libgomp.c/doacross-1.c (main): Add missing
3337 #pragma omp atomic read.
3338 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
3339 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
3340
3341 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
3342 Nathan Sidwell <nathan@acm.org>
3343
3344 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
3345 to determine default geometry.
3346 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
3347 dimension.
3348
3349 2016-11-01 Jakub Jelinek <jakub@redhat.com>
3350
3351 * hashtab.h: Use standard GPLv3 with runtime exception
3352 boilerplate.
3353
3354 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
3355
3356 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
3357 size when allocating new thread.
3358
3359 2016-09-14 Marek Polacek <polacek@redhat.com>
3360
3361 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
3362
3363 2016-08-19 Jakub Jelinek <jakub@redhat.com>
3364
3365 PR fortran/71014
3366 * testsuite/libgomp.fortran/pr71014.f90: New test.
3367
3368 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
3369
3370 PR middle-end/70895
3371 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
3372 firstprivate clauses.
3373 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
3374 copy clauses.
3375 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
3376 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
3377 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
3378 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
3379 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3380 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
3381 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3382 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
3383 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
3384 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3385 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3386 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
3387
3388 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
3389
3390 PR fortran/70598
3391 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
3392
3393 2016-08-08 Jakub Jelinek <jakub@redhat.com>
3394
3395 PR c++/58706
3396 * testsuite/libgomp.c++/pr58706.C: New test.
3397
3398 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
3399
3400 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
3401 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
3402 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
3403 Likewise.
3404 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
3405 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
3406 Likewise.
3407 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
3408
3409 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
3410 test, and don't hardcode -O0.
3411
3412 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
3413
3414 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
3415
3416 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
3417
3418 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
3419 test.
3420
3421 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
3422
3423 PR middle-end/71734
3424 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
3425 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
3426
3427 2016-07-01 Jakub Jelinek <jakub@redhat.com>
3428
3429 PR fortran/71717
3430 * testsuite/libgomp.fortran/associate3.f90: New test.
3431
3432 2016-06-17 Jakub Jelinek <jakub@redhat.com>
3433
3434 * testsuite/libgomp.c++/target-21.C: New test.
3435
3436 2016-06-16 Jakub Jelinek <jakub@redhat.com>
3437
3438 * testsuite/libgomp.c++/target-20.C: New test.
3439
3440 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
3441 Cesar Philippidis <cesar@codesourcery.com>
3442
3443 PR middle-end/71373
3444 * libgomp.oacc-c/nested-function-1.c: New file.
3445 * libgomp.oacc-c/nested-function-2.c: Likewise.
3446 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
3447 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
3448 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
3449
3450 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
3451
3452 PR c/71381
3453 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
3454 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
3455 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
3456
3457 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
3458
3459 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
3460 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
3461
3462 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
3463
3464 PR c/70688
3465 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
3466
3467 2016-05-26 Jakub Jelinek <jakub@redhat.com>
3468
3469 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
3470 instead of invalid schedule(static, 0).
3471 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
3472
3473 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
3474
3475 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
3476 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
3477 parameter, use to set async stream around call to gomp_unmap_vars,
3478 call gomp_unmap_vars() with 'do_copyfrom' set to true.
3479 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
3480 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
3481 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
3482 (event_add): Add int parameter, initialize 'val' field when
3483 adding new ptx_event struct.
3484 (nvptx_evec): Adjust event_add() call arguments.
3485 (nvptx_host2dev): Likewise.
3486 (nvptx_dev2host): Likewise.
3487 (nvptx_wait_async): Likewise.
3488 (nvptx_wait_all_async): Likewise.
3489 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
3490 pass to event_add() call.
3491 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
3492 parameter.
3493 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
3494 call openacc.register_async_cleanup_func() hook.
3495 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
3496 * target.c (gomp_copy_from_async): Delete function.
3497 (gomp_map_vars): Remove async_refcount.
3498 (gomp_unmap_vars): Likewise.
3499 (gomp_load_image_to_device): Likewise.
3500 (omp_target_associate_ptr): Likewise.
3501 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
3502 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
3503 (gomp_copy_from_async): Remove.
3504
3505 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
3506
3507 * target.c (gomp_device_copy): New function.
3508 (gomp_copy_host2dev): Likewise.
3509 (gomp_copy_dev2host): Likewise.
3510 (gomp_free_device_memory): Likewise.
3511 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
3512 (gomp_map_pointer): Likewise.
3513 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
3514 NULL value from alloc_func plugin hook.
3515 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
3516 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
3517 (gomp_unmap_vars): Likewise.
3518 (gomp_update): Adjust to call gomp_copy_dev2host and
3519 gomp_copy_host2dev functions.
3520 (gomp_unload_image_from_device): Handle false value from
3521 unload_image_func plugin hook.
3522 (gomp_init_device): Handle false value from init_device_func
3523 plugin hook.
3524 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
3525 (omp_target_free): Adjust to call gomp_free_device_memory.
3526 (omp_target_memcpy): Handle return values from host2dev_func,
3527 dev2host_func, and dev2dev_func plugin hooks.
3528 (omp_target_memcpy_rect_worker): Likewise.
3529 (gomp_target_fini): Handle false value from fini_device_func
3530 plugin hook.
3531 * libgomp.h (struct gomp_device_descr): Adjust return type of
3532 init_device_func, fini_device_func, unload_image_func, free_func,
3533 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
3534 * oacc-init.c (acc_shutdown_1): Handle false value from
3535 fini_device_func plugin hook.
3536 * oacc-host.c (host_init_device): Change return type to bool.
3537 (host_fini_device): Likewise.
3538 (host_unload_image): Likewise.
3539 (host_free): Likewise.
3540 (host_dev2host): Likewise.
3541 (host_host2dev): Likewise.
3542 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
3543 (acc_memcpy_to_device): Likewise.
3544 (acc_memcpy_from_device): Likewise.
3545 (delete_copyout): Add libfnname parameter, handle free_func
3546 hook fatal error case.
3547 (acc_delete): Adjust delete_copyout call.
3548 (acc_copyout): Likewise.
3549 (update_dev_host): Move gomp_mutex_unlock to after
3550 host2dev/dev2host hook calls.
3551
3552 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
3553 to 'hsa_error_msg', for clarity.
3554 (hsa_fatal): Likewise.
3555 (hsa_error): New function.
3556 (init_hsa_context): Change return type to bool, adjust to return
3557 false on error.
3558 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
3559 return value.
3560 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
3561 return false on error.
3562 (get_agent_info): Adjust to return NULL on error.
3563 (destroy_hsa_program): Change return type to bool, adjust to
3564 return false on error.
3565 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
3566 (destroy_module): Change return type to bool, adjust to
3567 return false on error.
3568 (GOMP_OFFLOAD_unload_image): Likewise.
3569 (GOMP_OFFLOAD_fini_device): Likewise.
3570 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
3571 (GOMP_OFFLOAD_free): Change to return false when called.
3572 (GOMP_OFFLOAD_dev2host): Likewise.
3573 (GOMP_OFFLOAD_host2dev): Likewise.
3574 (GOMP_OFFLOAD_dev2dev): Likewise.
3575
3576 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
3577 (CUDA_CALL): Likewise.
3578 (CUDA_CALL_ASSERT): Likewise.
3579 (map_init): Change return type to bool, use CUDA_CALL* macros.
3580 (map_fini): Likewise.
3581 (init_streams_for_device): Change return type to bool, adjust
3582 call to map_init.
3583 (fini_streams_for_device): Change return type to bool, adjust
3584 call to map_fini.
3585 (select_stream_for_async): Release stream_lock before calls to
3586 GOMP_PLUGIN_fatal, adjust call to map_init.
3587 (nvptx_init): Use CUDA_CALL* macros.
3588 (nvptx_attach_host_thread_to_device): Change return type to bool,
3589 use CUDA_CALL* macros.
3590 (nvptx_open_device): Use CUDA_CALL* macros.
3591 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
3592 macros.
3593 (nvptx_get_num_devices): Use CUDA_CALL* macros.
3594 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
3595 (nvptx_exec): Use CUDA_CALL* macros.
3596 (nvptx_alloc): Use CUDA_CALL* macros.
3597 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
3598 (nvptx_host2dev): Likewise.
3599 (nvptx_dev2host): Likewise.
3600 (nvptx_wait): Use CUDA_CALL* macros.
3601 (nvptx_wait_async): Likewise.
3602 (nvptx_wait_all): Likewise.
3603 (nvptx_wait_all_async): Likewise.
3604 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
3605 use CUDA_CALL* macros, adjust call to map_fini.
3606 (GOMP_OFFLOAD_init_device): Change return type to bool,
3607 adjust code accordingly.
3608 (GOMP_OFFLOAD_fini_device): Likewise.
3609 (GOMP_OFFLOAD_load_image): Adjust calls to
3610 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
3611 use CUDA_CALL* macros.
3612 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
3613 return code.
3614 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
3615 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
3616 handle error return.
3617 (GOMP_OFFLOAD_dev2host): Likewise.
3618 (GOMP_OFFLOAD_host2dev): Likewise.
3619 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
3620 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
3621
3622 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
3623
3624 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
3625 (acc_free): Likewise.
3626 (acc_memcpy_to_device): Likewise.
3627 (acc_memcpy_from_device): Likewise.
3628 (acc_deviceptr): Likewise.
3629 (acc_hostptr): Likewise.
3630 (acc_is_present): Likewise.
3631 (acc_map_data): Likewise.
3632 (acc_unmap_data): Likewise.
3633 (present_create_copy): Likewise.
3634 (delete_copyout): Likewise.
3635 (update_dev_host): Likewise.
3636 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
3637 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
3638 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
3639 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
3640 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
3641 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
3642 it only runs on nvptx targets.
3643 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
3644 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
3645 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3646 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
3647 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
3648 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
3649 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
3650 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
3651 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
3652 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
3653 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3654 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
3655 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
3656 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
3657 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
3658 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
3659 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
3660 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
3661 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
3662 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
3663 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
3664 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
3665 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
3666
3667 2016-05-23 Martin Jambor <mjambor@suse.cz>
3668
3669 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
3670
3671 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
3672
3673 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
3674 to gomp_init_targets_once.
3675 (acc_set_device_type): Remove !cached_base_dev condition on call to
3676 gomp_init_targets_once, move call to before acc_device_lock acquire,
3677 to avoid deadlock.
3678 (acc_get_device_num): Remove !cached_base_dev condition on call to
3679 gomp_init_targets_once.
3680 (acc_set_device_num): Likewise.
3681
3682 2016-05-16 Martin Jambor <mjambor@suse.cz>
3683
3684 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
3685
3686 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
3687
3688 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
3689 expected partitioning.
3690
3691 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
3692
3693 PR middle-end/70626
3694 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
3695 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
3696 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
3697
3698 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
3699
3700 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
3701 non-fatal.
3702
3703 2016-04-19 Jakub Jelinek <jakub@redhat.com>
3704
3705 PR middle-end/70680
3706 * testsuite/libgomp.c/pr70680-1.c: New test.
3707 * testsuite/libgomp.c/pr70680-2.c: New test.
3708
3709 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
3710
3711 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
3712 pass parameter variables to subroutines.
3713
3714 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
3715
3716 PR middle-end/70643
3717 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
3718
3719 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
3720
3721 PR testsuite/68242
3722 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
3723 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
3724
3725 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
3726
3727 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
3728 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
3729 GOACC_declare prototype.
3730
3731 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
3732 Merge this file, and...
3733 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
3734 ... this file, and...
3735 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
3736 ... this file, and...
3737 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
3738 ... this file, and...
3739 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
3740 ... this file, and...
3741 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
3742 ... this file, and...
3743 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
3744 ... this file, and...
3745 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
3746 ... this file, and...
3747 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
3748 ... this file, and...
3749 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
3750 ... this file, and...
3751 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
3752 ... this file, and...
3753 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
3754 ... this file, and...
3755 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
3756 ... this file into...
3757 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
3758 file.
3759
3760 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
3761 Make failure observable.
3762
3763 2016-04-12 Jakub Jelinek <jakub@redhat.com>
3764
3765 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
3766 field.
3767 * target.c (gomp_target_fallback_firstprivate,
3768 gomp_target_unshare_firstprivate): Removed.
3769 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
3770 before waiting for dependencies.
3771 (gomp_target_task_fn): Don't copy firstprivate vars here.
3772 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
3773 firstprivate_copies here.
3774 (gomp_create_target_task): Don't initialize firstprivate_copies field.
3775 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
3776 explicit/implicit firstprivate.
3777
3778 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
3779
3780 PR lto/70289
3781 PR ipa/70348
3782 PR tree-optimization/70373
3783 PR middle-end/70533
3784 PR middle-end/70534
3785 PR middle-end/70535
3786 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
3787 test.
3788 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
3789 test.
3790 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
3791 test.
3792 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
3793 test.
3794 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
3795 test.
3796 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
3797 test.
3798 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
3799 test.
3800 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
3801 test.
3802 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
3803 test.
3804 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
3805 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
3806 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
3807 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
3808 test.
3809 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
3810 test.
3811 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
3812 test.
3813 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
3814 test.
3815 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
3816 coverage.
3817 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
3818 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3819 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
3820 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
3821 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
3822 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
3823 coverage.
3824 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
3825 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
3826 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
3827 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3828 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
3829 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
3830 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
3831 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
3832 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
3833 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
3834 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
3835 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
3836 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3837 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3838 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
3839
3840 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
3841 James Norris <jnorris@codesourcery.com>
3842 Nathan Sidwell <nathan@codesourcery.com>
3843 Julian Brown <julian@codesourcery.com>
3844 Cesar Philippidis <cesar@codesourcery.com>
3845 Chung-Lin Tang <cltang@codesourcery.com>
3846 Tom de Vries <tom@codesourcery.com>
3847
3848 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
3849 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
3850 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
3851 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
3852 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3853 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3854 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3855 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
3856 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
3857 XFAIL.
3858 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
3859 Incorporate...
3860 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
3861 file.
3862 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
3863 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
3864 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
3865 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
3866 Likewise.
3867 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
3868 Likewise.
3869 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
3870 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
3871 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
3872 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
3873 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
3874 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
3875 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
3876 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
3877 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3878 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
3879 Likewise.
3880 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
3881 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3882 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
3883 file...
3884 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
3885 file into...
3886 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
3887 file. Update.
3888 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
3889 file.
3890 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
3891 Likewise.
3892 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
3893 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
3894 ... this new file. Update.
3895 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
3896 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
3897 ... this new file. Update.
3898 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
3899 file. Incorporate...
3900 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
3901 file, and...
3902 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
3903 file, and...
3904 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
3905 file.
3906 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
3907
3908 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
3909
3910 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
3911 set-torture-options.
3912
3913 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
3914
3915 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
3916 gcc-dg-runtest.
3917 * testsuite/libgomp.oacc-c/c.exp: Likewise.
3918 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
3919 -fno-builtin-acc_on_device instead of -O0.
3920 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
3921 -O0.
3922 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
3923 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
3924 Likewise.
3925 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
3926 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
3927 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
3928 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
3929 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3930 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3931 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3932 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3933 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3934 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3935 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3936 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3937 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
3938 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
3939 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
3940 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3941 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
3942 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
3943 Don't specify -O2.
3944 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
3945 Likewise.
3946 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
3947 Likewise.
3948
3949 2016-03-24 Martin Liska <mliska@suse.cz>
3950
3951 * plugin/plugin-hsa.c (packet_store_release): New function
3952 that is taken from the HSA runtime manual.
3953 (GOMP_OFFLOAD_run): Use the function.
3954
3955 2016-03-23 Jakub Jelinek <jakub@redhat.com>
3956
3957 PR c++/70376
3958 * testsuite/libgomp.c++/pr70376.C: New test.
3959
3960 2016-03-23 Tom de Vries <tom@codesourcery.com>
3961
3962 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
3963 initialization of lresult and lvresult.
3964 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
3965
3966 2016-03-23 James Norris <jnorris@codesourcery.com>
3967 Daichi Fukuoka <dc-fukuoka@sgi.com>
3968
3969 PR libgomp/69414
3970 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
3971 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
3972 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
3973 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
3974
3975 2016-03-23 Martin Liska <mliska@suse.cz>
3976
3977 PR hsa/70337
3978 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
3979 argument just in case a dispatched kernel uses that argument.
3980
3981 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
3982
3983 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
3984 -ftree-parallelize-loops/-fopenacc changes.
3985 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
3986 Likewise.
3987 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
3988 Likewise.
3989 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
3990 Likewise.
3991 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
3992 Likewise.
3993 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
3994 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
3995
3996 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
3997
3998 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
3999 always_ld_library_path the path to libgcc_s.
4000
4001 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
4002
4003 PR testsuite/70009
4004 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
4005
4006 2016-03-09 Tom de Vries <tom@codesourcery.com>
4007
4008 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
4009 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
4010 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
4011 Same.
4012 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
4013 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
4014 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
4015 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
4016
4017 2016-03-07 Martin Jambor <mjambor@suse.cz>
4018
4019 * testsuite/lib/libgomp.exp
4020 (check_effective_target_hsa_offloading_selected_nocache): New.
4021 (check_effective_target_hsa_offloading_selected): Likewise.
4022 * testsuite/libgomp.hsa.c/c.exp: Likewise.
4023 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
4024 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
4025 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
4026 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
4027 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
4028 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
4029 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
4030 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
4031 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
4032 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
4033 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
4034 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
4035 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
4036 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
4037 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
4038 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
4039
4040 2016-03-07 Martin Jambor <mjambor@suse.cz>
4041
4042 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
4043 non-shared memory accelerators.
4044 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
4045 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
4046 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
4047 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
4048 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
4049 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
4050 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
4051 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
4052 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
4053
4054 2016-03-07 Martin Jambor <mjambor@suse.cz>
4055
4056 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
4057 ALWAYS_CFLAGS.
4058
4059 2016-03-02 Jakub Jelinek <jakub@redhat.com>
4060
4061 PR libgomp/69555
4062 * testsuite/libgomp.c++/pr69555-1.C: New test.
4063 * testsuite/libgomp.c++/pr69555-2.C: New test.
4064
4065 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
4066 Martin Jambor <mjambor@suse.cz>
4067
4068 * testsuite/lib/libgomp.exp
4069 (check_effective_target_offload_device_shared_as): New proc.
4070 * testsuite/libgomp.c++/declare_target-1.C: New test.
4071
4072 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
4073
4074 PR driver/68463
4075 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
4076
4077 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
4078
4079 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
4080 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
4081 dims.
4082 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
4083 -ftree-parallelize-loops/-fopenacc changes.
4084 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
4085 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
4086 Likewise.
4087 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
4088 Likewise.
4089 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
4090 Likewise.
4091 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
4092 Likewise.
4093 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
4094 Likewise.
4095 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
4096 Likewise.
4097 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
4098 Likewise.
4099 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
4100 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
4101 Likewise.
4102 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
4103 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
4104 Likewise.
4105 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
4106 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
4107 Likewise.
4108
4109 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
4110
4111 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
4112
4113 2016-02-19 Jakub Jelinek <jakub@redhat.com>
4114
4115 PR driver/69805
4116 * testsuite/libgomp.c/pr69805.c: New test.
4117
4118 2016-02-16 Tom de Vries <tom@codesourcery.com>
4119
4120 PR lto/67709
4121 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
4122
4123 2016-02-09 Tom de Vries <tom@codesourcery.com>
4124
4125 PR tree-optimization/69599
4126 * testsuite/libgomp.c/omp-nested-3.c: New test.
4127 * testsuite/libgomp.c/pr46032-2.c: New test.
4128 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
4129 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
4130
4131 2016-02-09 Tom de Vries <tom@codesourcery.com>
4132
4133 PR lto/69707
4134 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
4135
4136 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
4137
4138 * testsuite/libgomp.c/target-31.c: Fix testcase.
4139
4140 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
4141
4142 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
4143 clause.
4144 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
4145 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
4146 reduction and map clauses.
4147 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
4148
4149 2016-02-02 James Norris <jnorris@codesourcery.com>
4150
4151 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
4152
4153 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
4154
4155 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
4156 * oacc-parallel.c (GOACC_host_data): Remove function definition.
4157
4158 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
4159 cases.
4160
4161 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
4162 variables.
4163 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
4164 (hsa_kmt_lib): Set variables.
4165 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
4166 always_ld_library_path.
4167 * Makefile.in: Regenerate.
4168 * configure: Likewise.
4169 * testsuite/Makefile.in: Likewise.
4170
4171 * plugin/configfrag.ac (offload_additional_options)
4172 (offload_additional_lib_paths): Don't amend for hsa offloading.
4173 * configure: Regenerate.
4174
4175 * plugin/configfrag.ac: Don't configure for offloading target if
4176 we don't build the corresponding plugin.
4177 * configure: Regenerate.
4178
4179 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
4180
4181 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
4182 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
4183
4184 2016-01-26 Tom de Vries <tom@codesourcery.com>
4185
4186 PR tree-optimization/69110
4187 * testsuite/libgomp.c/pr69110.c: New test.
4188
4189 2016-01-25 Richard Biener <rguenther@suse.de>
4190
4191 PR lto/69393
4192 * testsuite/libgomp.c++/pr69393.C: New testcase.
4193
4194 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
4195
4196 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
4197 function wasn't mapped to the device with non-shared memory.
4198
4199 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
4200
4201 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
4202
4203 2016-01-19 Martin Jambor <mjambor@suse.cz>
4204 Martin Liska <mliska@suse.cz>
4205
4206 * plugin/Makefrag.am: Add HSA plugin requirements.
4207 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
4208 (HSA_RUNTIME_LIB): Likewise.
4209 (HSA_RUNTIME_CPPFLAGS): Likewise.
4210 (HSA_RUNTIME_INCLUDE): New substitution.
4211 (HSA_RUNTIME_LIB): Likewise.
4212 (HSA_RUNTIME_LDFLAGS): Likewise.
4213 (hsa-runtime): New configure option.
4214 (hsa-runtime-include): Likewise.
4215 (hsa-runtime-lib): Likewise.
4216 (PLUGIN_HSA): New substitution variable.
4217 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
4218 configure options.
4219 (PLUGIN_HSA_CPPFLAGS): Likewise.
4220 (PLUGIN_HSA_LDFLAGS): Likewise.
4221 (PLUGIN_HSA_LIBS): Likewise.
4222 Check that we have access to HSA run-time.
4223 * libgomp-plugin.h (offload_target_type): New element
4224 OFFLOAD_TARGET_TYPE_HSA.
4225 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
4226 args.
4227 (bool gomp_create_target_task): Updated.
4228 (gomp_device_descr): Extra parameter of run_func and async_run_func,
4229 new field can_run_func.
4230 * libgomp_g.h (GOMP_target_ext): Update prototype.
4231 * oacc-host.c (host_run): Added a new parameter args.
4232 * target.c (calculate_firstprivate_requirements): New function.
4233 (copy_firstprivate_data): Likewise.
4234 (gomp_target_fallback_firstprivate): Use them.
4235 (gomp_target_unshare_firstprivate): New function.
4236 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
4237 devices.
4238 (GOMP_target): Do host fallback for all shared memory devices. Do not
4239 pass any args to plugins.
4240 (GOMP_target_ext): Introduce device-specific argument parameter args.
4241 Allow host fallback if device shares memory. Do not remap data if
4242 device has shared memory.
4243 (gomp_target_task_fn): Likewise. Also treat shared memory devices
4244 like host fallback for mappings.
4245 (GOMP_target_data): Treat shared memory devices like host fallback.
4246 (GOMP_target_data_ext): Likewise.
4247 (GOMP_target_update): Likewise.
4248 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
4249 gomp_create_target_task.
4250 (GOMP_target_enter_exit_data): Likewise.
4251 (omp_target_alloc): Treat shared memory devices like host fallback.
4252 (omp_target_free): Likewise.
4253 (omp_target_is_present): Likewise.
4254 (omp_target_memcpy): Likewise.
4255 (omp_target_memcpy_rect): Likewise.
4256 (omp_target_associate_ptr): Likewise.
4257 (gomp_load_plugin_for_device): Also load can_run.
4258 * task.c (GOMP_PLUGIN_target_task_completion): Free
4259 firstprivate_copies.
4260 (gomp_create_target_task): Accept new argument args and store it to
4261 ttask.
4262 * plugin/plugin-hsa.c: New file.
4263
4264 2016-01-18 Tom de Vries <tom@codesourcery.com>
4265
4266 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
4267 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
4268 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
4269 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
4270 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
4271 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
4272 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
4273 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
4274 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
4275 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
4276 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
4277 Same.
4278 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
4279 Same.
4280 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
4281 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
4282 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
4283 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
4284 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
4285 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
4286 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
4287 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
4288 Same.
4289 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
4290
4291 2016-01-15 Jakub Jelinek <jakub@redhat.com>
4292
4293 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
4294
4295 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
4296
4297 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
4298
4299 2016-01-12 James Norris <jnorris@codesourcery.com>
4300
4301 * libgomp.texi: Updates for OpenACC.
4302
4303 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
4304
4305 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
4306
4307 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
4308
4309 PR fortran/66680
4310 * testsuite/libgomp.fortran/pr66680.f90: New test.
4311
4312 2016-01-07 Jakub Jelinek <jakub@redhat.com>
4313
4314 PR middle-end/68960
4315 * testsuite/libgomp.c/pr68960.c: New test.
4316
4317 2016-01-06 Nathan Sidwell <nathan@acm.org>
4318
4319 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
4320 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
4321
4322 2016-01-04 Jakub Jelinek <jakub@redhat.com>
4323
4324 Update copyright years.
4325
4326 * libgomp.texi: Bump @copying's copyright year.
4327
4328 2015-12-31 Nathan Sidwell <nathan@acm.org>
4329
4330 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
4331 dg-additional-options syntax.
4332 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
4333 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
4334 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
4335 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4336 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
4337 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
4338 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
4339 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
4340 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
4341 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
4342 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4343 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
4344 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4345 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4346 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4347 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
4348 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4349 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4350
4351 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
4352
4353 * libgomp.h (REFCOUNT_LINK): Define.
4354 (struct splay_tree_key_s): Add link_key.
4355 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
4356 Replace target address of the pointer with target address of newly
4357 mapped object in the splay tree. Set link pointer on target to the
4358 device address of the mapped object.
4359 (gomp_unmap_vars): Restore target address of the pointer in the splay
4360 tree for REFCOUNT_LINK objects after unmapping.
4361 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
4362 declare target link" objects.
4363 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
4364 "omp declare target link" objects, which were mapped for the image.
4365 (gomp_exit_data): Restore target address of the pointer in the splay
4366 tree for REFCOUNT_LINK objects after unmapping.
4367 * testsuite/libgomp.c/target-link-1.c: New file.
4368
4369 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
4370
4371 * libgomp.h (gomp_device_state): New enum.
4372 (struct gomp_device_descr): Replace is_initialized with state.
4373 (gomp_fini_device): Remove declaration.
4374 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
4375 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
4376 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
4377 (acc_set_device_type): Use state instead of is_initialized.
4378 (acc_set_device_num): Likewise.
4379 * target.c (resolve_device): Use state instead of is_initialized.
4380 Do not initialize finalized device.
4381 (gomp_map_vars): Do nothing if device is finalized.
4382 (gomp_unmap_vars): Likewise.
4383 (gomp_update): Likewise.
4384 (GOMP_offload_register_ver): Use state instead of is_initialized.
4385 (GOMP_offload_unregister_ver): Likewise.
4386 (gomp_init_device): Likewise.
4387 (gomp_unload_device): Likewise.
4388 (gomp_fini_device): Remove.
4389 (gomp_get_target_fn_addr): Do nothing if device is finalized.
4390 (GOMP_target): Go to host fallback if device is finalized.
4391 (GOMP_target_ext): Likewise.
4392 (gomp_exit_data): Do nothing if device is finalized.
4393 (gomp_target_task_fn): Go to host fallback if device is finalized.
4394 (gomp_target_fini): New static function.
4395 (gomp_target_init): Use state instead of is_initialized.
4396 Call gomp_target_fini at exit.
4397
4398 2015-12-09 Tom de Vries <tom@codesourcery.com>
4399
4400 PR tree-optimization/68716
4401 * testsuite/libgomp.c/omp-nested-2.c: New test.
4402
4403 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
4404
4405 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
4406 target openacc_nvidia_accel_selected.
4407 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
4408 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
4409 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
4410 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
4411
4412 2015-12-01 Julian Brown <julian@codesourcery.com>
4413 James Norris <James_Norris@mentor.com>
4414
4415 * oacc-parallel.c (GOACC_host_data): New function.
4416 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
4417 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
4418 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
4419 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
4420 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
4421 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
4422 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
4423
4424 2015-11-30 James Norris <jnorris@codesourcery.com>
4425 Cesar Philippidis <cesar@codesourcery.com>
4426
4427 libgomp/
4428 * libgomp.oacc-fortran/routine-5.f90: New test.
4429 * libgomp.oacc-fortran/routine-7.f90: New test.
4430 * libgomp.oacc-fortran/routine-9.f90: New test.
4431
4432 2015-11-30 Tom de Vries <tom@codesourcery.com>
4433
4434 PR tree-optimization/46032
4435 * testsuite/libgomp.c/pr46032.c: New test.
4436
4437 2015-11-27 Jakub Jelinek <jakub@redhat.com>
4438
4439 PR libgomp/68579
4440 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
4441 (gomp_create_target_task): Call it before freeing
4442 GOMP_TARGET_TASK_DATA tasks.
4443
4444 PR c/63326
4445 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
4446 in between case label and OpenMP standalone directives.
4447 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
4448
4449 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
4450
4451 * configure: Regenerate.
4452
4453 2015-11-26 Jakub Jelinek <jakub@redhat.com>
4454
4455 * testsuite/libgomp.c/target-35.c: New test.
4456
4457 2015-11-22 James Norris <jnorris@codesourcery.com>
4458 Cesar Philippidis <cesar@codesourcery.com>
4459
4460 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
4461 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4462 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4463 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4464 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4465
4466 2015-11-20 Jakub Jelinek <jakub@redhat.com>
4467
4468 PR middle-end/68221
4469 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
4470 * testsuite/libgomp.c/reduction-12.c: Likewise.
4471 * testsuite/libgomp.c++/reduction-11.C: Likewise.
4472 * testsuite/libgomp.c++/reduction-12.C: Likewise.
4473
4474 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
4475
4476 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
4477 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
4478 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
4479 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
4480 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
4481 and fix.
4482 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
4483 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
4484
4485 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
4486
4487 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
4488 worker & gang cases.
4489 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
4490
4491 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
4492
4493 * config/nvptx/priority_queue.c: New file.
4494
4495 2015-11-14 Jakub Jelinek <jakub@redhat.com>
4496
4497 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
4498 sections.
4499
4500 2015-11-14 Jakub Jelinek <jakub@redhat.com>
4501 Aldy Hernandez <aldyh@redhat.com>
4502 Ilya Verbin <ilya.verbin@intel.com>
4503
4504 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
4505 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
4506 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
4507 iterators or IV by chunk size.
4508 * parallel.c (gomp_resolve_num_threads): Don't assume that
4509 if thr->ts.team is non-NULL, then pool must be non-NULL.
4510 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
4511 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
4512 GOMP_PLUGIN_target_task_completion.
4513 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
4514 * Makefile.in: Regenerate.
4515 * libgomp.h: Shuffle prototypes and forward definitions around so
4516 priority queues can be defined.
4517 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
4518 (enum gomp_target_task_state): New enum.
4519 (struct gomp_target_task): Add state, tgt, task and team fields.
4520 (gomp_create_target_task): Change return type to bool, add
4521 state argument.
4522 (gomp_target_task_fn): Change return type to bool.
4523 (struct gomp_device_descr): Add async_run_func.
4524 (struct gomp_task): Remove children, next_child, prev_child,
4525 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
4526 Add pnode field.
4527 (struct gomp_taskgroup): Remove children.
4528 Add taskgroup_queue.
4529 (struct gomp_team): Change task_queue type to a priority queue.
4530 (splay_compare): Define inline.
4531 (priority_queue_offset): New.
4532 (priority_node_to_task): New.
4533 (task_to_priority_node): New.
4534 * oacc-mem.c: Do not include splay-tree.h.
4535 * priority_queue.c: New file.
4536 * priority_queue.h: New file.
4537 * splay-tree.c: Do not include splay-tree.h.
4538 (splay_tree_foreach_internal): New.
4539 (splay_tree_foreach): New.
4540 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
4541 (splay_tree_callback): Define typedef.
4542 * target.c (splay_compare): Move to libgomp.h.
4543 (GOMP_target): Don't adjust *thr in any way around running offloaded
4544 task.
4545 (GOMP_target_ext): Likewise. Handle target nowait.
4546 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
4547 return value from gomp_create_target_task, if false, fallthrough
4548 as if no dependencies exist.
4549 (gomp_target_task_fn): Change return type to bool, return true
4550 if the task should have another part scheduled later. Handle
4551 target nowait.
4552 (gomp_load_plugin_for_device): Initialize async_run.
4553 * task.c (gomp_init_task): Initialize children_queue.
4554 (gomp_clear_parent_in_list): New.
4555 (gomp_clear_parent_in_tree): New.
4556 (gomp_clear_parent): Handle priorities.
4557 (GOMP_task): Likewise.
4558 (priority_queue_move_task_first,
4559 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
4560 New functions.
4561 (gomp_create_target_task): Use priority queues. Change return type
4562 to bool, add state argument, return false if for async
4563 {{enter,exit} data,update} constructs no dependencies need to be
4564 waited for, handle target nowait. Set task->fn to NULL instead of
4565 gomp_target_task_fn.
4566 (verify_children_queue): Remove.
4567 (priority_list_upgrade_task): New.
4568 (priority_queue_upgrade_task): New.
4569 (verify_task_queue): Remove.
4570 (priority_list_downgrade_task): New.
4571 (priority_queue_downgrade_task): New.
4572 (gomp_task_run_pre): Use priority queues.
4573 Abstract code out to priority_queue_downgrade_task.
4574 (gomp_task_run_post_handle_dependers): Use priority queues.
4575 (gomp_task_run_post_remove_parent): Likewise.
4576 (gomp_task_run_post_remove_taskgroup): Likewise.
4577 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
4578 tasks specially.
4579 (GOMP_taskwait): Likewise.
4580 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
4581 priority-queue_upgrade_task.
4582 (GOMP_taskgroup_start): Use priority queues.
4583 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
4584 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
4585 barrier.
4586 * taskloop.c (GOMP_taskloop): Handle priorities.
4587 * team.c (gomp_new_team): Call priority_queue_init.
4588 (free_team): Call priority_queue_free.
4589 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
4590 team created for target nowait in implicit parallel region.
4591 (gomp_team_start): For nested check, test thr->ts.level instead of
4592 thr->ts.team != NULL.
4593 * testsuite/libgomp.c/doacross-3.c: New test.
4594 * testsuite/libgomp.c/ordered-5.c: New test.
4595 * testsuite/libgomp.c/priority.c: New test.
4596 * testsuite/libgomp.c/target-31.c: New test.
4597 * testsuite/libgomp.c/target-32.c: New test.
4598 * testsuite/libgomp.c/target-33.c: New test.
4599 * testsuite/libgomp.c/target-34.c: New test.
4600
4601 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4602
4603 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
4604
4605 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
4606 loop is sequential.
4607
4608 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4609
4610 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
4611 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
4612
4613 2015-11-12 James Norris <jnorris@codesourcery.com>
4614 Joseph Myers <joseph@codesourcery.com>
4615
4616 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
4617 * oacc-parallel.c (GOACC_declare): New function.
4618 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
4619 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
4620 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
4621 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
4622 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
4623
4624 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
4625
4626 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
4627
4628 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
4629
4630 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
4631 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
4632
4633 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4634
4635 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
4636 inadvertent commit.
4637
4638 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4639
4640 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
4641 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
4642 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
4643 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
4644 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
4645
4646 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
4647
4648 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
4649 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4650
4651 2015-11-05 Jakub Jelinek <jakub@redhat.com>
4652 Ilya Verbin <ilya.verbin@intel.com>
4653
4654 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
4655 GOMP_loop_nonmonotonic_dynamic_start,
4656 GOMP_loop_nonmonotonic_guided_next,
4657 GOMP_loop_nonmonotonic_guided_start,
4658 GOMP_loop_ull_nonmonotonic_dynamic_next,
4659 GOMP_loop_ull_nonmonotonic_dynamic_start,
4660 GOMP_loop_ull_nonmonotonic_guided_next,
4661 GOMP_loop_ull_nonmonotonic_guided_start,
4662 GOMP_parallel_loop_nonmonotonic_dynamic,
4663 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
4664 (GOMP_target_41): Renamed to ...
4665 (GOMP_target_ext): ... this. Add num_teams and thread_limit
4666 arguments.
4667 (GOMP_target_data_41): Renamed to ...
4668 (GOMP_target_data_ext): ... this.
4669 (GOMP_target_update_41): Renamed to ...
4670 (GOMP_target_update_ext): ... this.
4671 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
4672 GOMP_target_data_ext and GOMP_target_update_ext instead of
4673 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
4674 Export GOMP_loop_nonmonotonic_dynamic_next,
4675 GOMP_loop_nonmonotonic_dynamic_start,
4676 GOMP_loop_nonmonotonic_guided_next,
4677 GOMP_loop_nonmonotonic_guided_start,
4678 GOMP_loop_ull_nonmonotonic_dynamic_next,
4679 GOMP_loop_ull_nonmonotonic_dynamic_start,
4680 GOMP_loop_ull_nonmonotonic_guided_next,
4681 GOMP_loop_ull_nonmonotonic_guided_start,
4682 GOMP_parallel_loop_nonmonotonic_dynamic and
4683 GOMP_parallel_loop_nonmonotonic_guided.
4684 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
4685 GOMP_parallel_loop_nonmonotonic_guided,
4686 GOMP_loop_nonmonotonic_dynamic_start,
4687 GOMP_loop_nonmonotonic_guided_start,
4688 GOMP_loop_nonmonotonic_dynamic_next,
4689 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
4690 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
4691 GOMP_loop_ull_nonmonotonic_guided_start,
4692 GOMP_loop_ull_nonmonotonic_dynamic_next,
4693 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
4694 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
4695 functions.
4696 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
4697 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
4698 Use gomp_map_val function.
4699 (gomp_target_fallback_firstprivate): New static function.
4700 (GOMP_target_41): Renamed to ...
4701 (GOMP_target_ext): ... this. Add num_teams and thread_limit
4702 arguments. Move firstprivate fallback handling into a new
4703 function.
4704 (GOMP_target_data_41): Renamed to ...
4705 (GOMP_target_data_ext): ... this.
4706 (GOMP_target_update_41): Renamed to ...
4707 (GOMP_target_update_ext): ... this.
4708 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
4709 gomp_map_0len_lookup instead of gomp_map_lookup.
4710 (omp_target_is_present): Use gomp_map_0len_lookup instead of
4711 gomp_map_lookup.
4712 * testsuite/libgomp.c/target-28.c: Likewise.
4713 * testsuite/libgomp.c/monotonic-1.c: New test.
4714 * testsuite/libgomp.c/monotonic-2.c: New test.
4715 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
4716 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
4717 * testsuite/libgomp.c/pr66199-5.c: New test.
4718 * testsuite/libgomp.c/pr66199-6.c: New test.
4719 * testsuite/libgomp.c/pr66199-7.c: New test.
4720 * testsuite/libgomp.c/pr66199-8.c: New test.
4721 * testsuite/libgomp.c/pr66199-9.c: New test.
4722 * testsuite/libgomp.c/reduction-11.c: New test.
4723 * testsuite/libgomp.c/reduction-12.c: New test.
4724 * testsuite/libgomp.c/reduction-13.c: New test.
4725 * testsuite/libgomp.c/reduction-14.c: New test.
4726 * testsuite/libgomp.c/reduction-15.c: New test.
4727 * testsuite/libgomp.c/target-12.c (main): Adjust for
4728 omp_target_is_present change for one-past-last element.
4729 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
4730 the same var is both mapped and privatized.
4731 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
4732 handling of zero-length array sections.
4733 * testsuite/libgomp.c/target-28.c: New test.
4734 * testsuite/libgomp.c/target-29.c: New test.
4735 * testsuite/libgomp.c/target-30.c: New test.
4736 * testsuite/libgomp.c/target-teams-1.c: New test.
4737 * testsuite/libgomp.c++/member-6.C: New test.
4738 * testsuite/libgomp.c++/member-7.C: New test.
4739 * testsuite/libgomp.c++/monotonic-1.C: New test.
4740 * testsuite/libgomp.c++/monotonic-2.C: New test.
4741 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
4742 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
4743 * testsuite/libgomp.c++/pr66199-3.C: New test.
4744 * testsuite/libgomp.c++/pr66199-4.C: New test.
4745 * testsuite/libgomp.c++/pr66199-5.C: New test.
4746 * testsuite/libgomp.c++/pr66199-6.C: New test.
4747 * testsuite/libgomp.c++/pr66199-7.C: New test.
4748 * testsuite/libgomp.c++/pr66199-8.C: New test.
4749 * testsuite/libgomp.c++/pr66199-9.C: New test.
4750 * testsuite/libgomp.c++/reduction-11.C: New test.
4751 * testsuite/libgomp.c++/reduction-12.C: New test.
4752 * testsuite/libgomp.c++/target-13.C: New test.
4753 * testsuite/libgomp.c++/target-14.C: New test.
4754 * testsuite/libgomp.c++/target-15.C: New test.
4755 * testsuite/libgomp.c++/target-16.C: New test.
4756 * testsuite/libgomp.c++/target-17.C: New test.
4757 * testsuite/libgomp.c++/target-18.C: New test.
4758 * testsuite/libgomp.c++/target-19.C: New test.
4759
4760 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4761
4762 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
4763 and reduction copy.
4764 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4765 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4766 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4767 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4768 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
4769 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
4770 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
4771 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4772 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
4773 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
4774 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
4775 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4776 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
4777 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
4778
4779 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
4780
4781 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
4782 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
4783 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
4784 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
4785 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
4786 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
4787 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
4788 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
4789
4790 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
4791
4792 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
4793 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
4794 (GOMP_OFFLOAD_openacc_parallel): Likewise.
4795 * oacc-host.c (host_openacc_exec): Likewise.
4796 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
4797
4798 2015-11-03 Julian Brown <julian@codesourcery.com>
4799 Thomas Schwinge <thomas@codesourcery.com>
4800
4801 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
4802 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4803 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
4804 Likewise.
4805 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
4806 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
4807
4808 2015-11-03 James Norris <jnorris@codesourcery.com>
4809
4810 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
4811 file.
4812 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
4813 Likewise.
4814 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
4815 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
4816 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
4817 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
4818 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
4819
4820 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
4821
4822 * openacc.h (enum acc_device_t): Reformat. Ensure layout
4823 compatibility.
4824 (enum acc_async_t): Reformat.
4825 (acc_on_device): Declare compatible with builtin and provide C++
4826 wrapper.
4827 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
4828
4829 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
4830 Cesar Philippidis <cesar@codesourcery.com>
4831
4832 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
4833 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
4834 ... this. Add a description of the test at the top of the file.
4835 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
4836 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
4837 ... this. Add a description of the test at the top of the file.
4838
4839 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
4840
4841 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
4842 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
4843 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
4844 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
4845 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
4846 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
4847
4848 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4849
4850 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
4851 dimensions.
4852
4853 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
4854
4855 PR testsuite/68063
4856 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
4857
4858 2015-10-27 James Norris <jnorris@codesourcery.com>
4859
4860 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
4861 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
4862
4863 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
4864
4865 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
4866 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
4867
4868 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
4869 acc_device_nvidia usage.
4870 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
4871 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
4872 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
4873
4874 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
4875 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
4876
4877 PR libgomp/66518
4878 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
4879
4880 PR libgomp/65437
4881 PR libgomp/66518
4882 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
4883 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
4884
4885 2015-10-23 Tom de Vries <tom@codesourcery.com>
4886
4887 PR testsuite/68063
4888 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
4889
4890 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
4891
4892 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
4893 vector_length.
4894 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4895
4896 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
4897 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
4898
4899 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
4900 to 0 when mapnum is 0.
4901
4902 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
4903
4904 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
4905 Cast to int from int32_t.
4906
4907 2015-10-13 Jakub Jelinek <jakub@redhat.com>
4908 Aldy Hernandez <aldyh@redhat.com>
4909 Ilya Verbin <ilya.verbin@intel.com>
4910
4911 * config/linux/affinity.c (omp_get_place_num_procs,
4912 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
4913 * config/linux/doacross.h: New file.
4914 * config/posix/affinity.c (omp_get_place_num_procs,
4915 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
4916 * config/posix/doacross.h: New file.
4917 * env.c: Include gomp-constants.h.
4918 (struct gomp_task_icv): Rename run_sched_modifier to
4919 run_sched_chunk_size.
4920 (gomp_max_task_priority_var): New variable.
4921 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
4922 (handle_omp_display_env): Change _OPENMP value from 201307 to
4923 201511. Print OMP_MAX_TASK_PRIORITY.
4924 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
4925 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
4926 chunk_size and run_sched_modifier to run_sched_chunk_size.
4927 (omp_get_max_task_priority, omp_get_initial_device,
4928 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
4929 omp_get_partition_place_nums): New functions.
4930 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
4931 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
4932 to chunk_size.
4933 (omp_get_num_places_, omp_get_place_num_procs_,
4934 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
4935 omp_get_place_proc_ids_8_, omp_get_place_num_,
4936 omp_get_partition_num_places_, omp_get_partition_place_nums_,
4937 omp_get_partition_place_nums_8_, omp_get_initial_device_,
4938 omp_get_max_task_priority_): New functions.
4939 * libgomp_g.h (GOMP_loop_doacross_static_start,
4940 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
4941 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
4942 GOMP_loop_ull_doacross_dynamic_start,
4943 GOMP_loop_ull_doacross_guided_start,
4944 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
4945 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
4946 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
4947 GOMP_target_data_41, GOMP_target_update_41,
4948 GOMP_target_enter_exit_data): New prototypes.
4949 (GOMP_task): Add prototype argument.
4950 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
4951 (struct gomp_doacross_work_share): New type.
4952 (struct gomp_work_share): Add doacross field.
4953 (struct gomp_task_icv): Rename run_sched_modifier to
4954 run_sched_chunk_size.
4955 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
4956 GOMP_TASK_UNDEFERRED. Add comments.
4957 (struct gomp_task_depend_entry): Add comments.
4958 (struct gomp_task): Likewise.
4959 (struct gomp_taskgroup): Likewise.
4960 (struct gomp_target_task): New type.
4961 (struct gomp_team): Add comment.
4962 (gomp_get_place_proc_ids_8, gomp_doacross_init,
4963 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
4964 gomp_create_target_task, gomp_target_task_fn): New prototypes.
4965 (struct target_var_desc): New type.
4966 (struct target_mem_desc): Adjust comment. Use struct
4967 target_var_desc instead of splay_tree_key for list.
4968 (REFCOUNT_INFINITY): Define.
4969 (struct splay_tree_key_s): Remove copy_from field.
4970 (struct gomp_device_descr): Add dev2dev_func field.
4971 (enum gomp_map_vars_kind): New enum.
4972 (gomp_map_vars): Add one argument.
4973 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
4974 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
4975 omp_get_place_num_procs, omp_get_place_num_procs_,
4976 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
4977 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
4978 omp_get_place_num_, omp_get_partition_num_places,
4979 omp_get_partition_num_places_, omp_get_partition_place_nums,
4980 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
4981 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
4982 omp_target_free, omp_target_is_present, omp_target_memcpy,
4983 omp_target_memcpy_rect, omp_target_associate_ptr and
4984 omp_target_disassociate_ptr.
4985 (GOMP_4.0.2): Renamed to ...
4986 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
4987 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
4988 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
4989 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
4990 GOMP_loop_doacross_static_start, GOMP_doacross_post,
4991 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
4992 GOMP_loop_ull_doacross_guided_start,
4993 GOMP_loop_ull_doacross_runtime_start,
4994 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
4995 GOMP_doacross_ull_wait.
4996 * libgomp.texi: Document omp_get_max_task_priority.
4997 Rename modifier argument to chunk_size for omp_set_schedule and
4998 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
4999 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
5000 to run_sched_chunk_size renaming.
5001 (GOMP_loop_ordered_runtime_start): Likewise.
5002 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
5003 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
5004 GOMP_parallel_loop_runtime_start): New functions.
5005 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
5006 to run_sched_chunk_size renaming.
5007 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
5008 GOMP_loop_doacross_guided_start): New functions or aliases.
5009 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
5010 run_sched_modifier to run_sched_chunk_size renaming.
5011 (GOMP_loop_ull_ordered_runtime_start): Likewise.
5012 (gomp_loop_ull_doacross_static_start,
5013 gomp_loop_ull_doacross_dynamic_start,
5014 gomp_loop_ull_doacross_guided_start,
5015 GOMP_loop_ull_doacross_runtime_start): New functions.
5016 (GOMP_loop_ull_doacross_static_start,
5017 GOMP_loop_ull_doacross_dynamic_start,
5018 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
5019 * oacc-mem.c (acc_map_data, present_create_copy,
5020 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
5021 to gomp_map_vars.
5022 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
5023 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
5024 instead of false to gomp_map_vars.
5025 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
5026 * omp.h.in (omp_lock_hint_t): New type.
5027 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
5028 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
5029 omp_get_place_num, omp_get_partition_num_places,
5030 omp_get_partition_place_nums, omp_get_initial_device,
5031 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
5032 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
5033 omp_target_associate_ptr, omp_target_disassociate_ptr): New
5034 prototypes.
5035 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
5036 (omp_lock_hint_none, omp_lock_hint_uncontended,
5037 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
5038 omp_lock_hint_speculative): New parameters.
5039 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
5040 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
5041 omp_get_place_num, omp_get_partition_num_places,
5042 omp_get_partition_place_nums, omp_get_initial_device,
5043 omp_get_max_task_priority): New interfaces.
5044 (omp_set_schedule, omp_get_schedule): Rename modifier argument
5045 to chunk_size.
5046 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
5047 (omp_lock_hint_none, omp_lock_hint_uncontended,
5048 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
5049 omp_lock_hint_speculative): New parameters.
5050 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
5051 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
5052 omp_get_place_num, omp_get_partition_num_places,
5053 omp_get_partition_place_nums, omp_get_initial_device,
5054 omp_get_max_task_priority): New functions and subroutines.
5055 * ordered.c: Include stdarg.h and string.h.
5056 (MAX_COLLAPSED_BITS): Define.
5057 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
5058 gomp_doacross_ull_init, GOMP_doacross_ull_post,
5059 GOMP_doacross_ull_wait): New functions.
5060 * target.c: Include errno.h.
5061 (resolve_device): If device is not initialized, call
5062 gomp_init_device on it.
5063 (gomp_map_lookup): New function.
5064 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
5065 Don't bump refcount if REFCOUNT_INFINITY. Handle
5066 GOMP_MAP_ALWAYS_TO_P.
5067 (get_kind): Rename is_openacc argument to short_mapkind.
5068 (gomp_map_pointer): Use gomp_map_lookup.
5069 (gomp_map_fields_existing): New function.
5070 (gomp_map_vars): Rename is_openacc argument to short_mapkind
5071 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
5072 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
5073 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
5074 Adjust for tgt->list changed type and copy_from living in there.
5075 (gomp_copy_from_async): Adjust for tgt->list changed type and
5076 copy_from living in there.
5077 (gomp_unmap_vars): Likewise.
5078 (gomp_update): Likewise. Rename is_openacc argument to
5079 short_mapkind. Don't fail if object is not mapped.
5080 (gomp_load_image_to_device): Initialize refcount to
5081 REFCOUNT_INFINITY.
5082 (gomp_target_fallback): New function.
5083 (gomp_get_target_fn_addr): Likewise.
5084 (GOMP_target): Adjust gomp_map_vars caller, use
5085 gomp_get_target_fn_addr and gomp_target_fallback.
5086 (GOMP_target_41): New function.
5087 (gomp_target_data_fallback): New function.
5088 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
5089 (GOMP_target_data_41): New function.
5090 (GOMP_target_update): Adjust gomp_update caller.
5091 (GOMP_target_update_41): New function.
5092 (gomp_exit_data, GOMP_target_enter_exit_data,
5093 gomp_target_task_fn, omp_target_alloc, omp_target_free,
5094 omp_target_is_present, omp_target_memcpy,
5095 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
5096 omp_target_associate_ptr, omp_target_disassociate_ptr,
5097 gomp_load_plugin_for_device): New functions.
5098 * task.c: Include gomp-constants.h. Include taskloop.c
5099 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
5100 (gomp_task_handle_depend): New function.
5101 (GOMP_task): Use it. Add priority argument. Use
5102 gomp-constant.h constants instead of hardcoded numbers.
5103 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
5104 (gomp_create_target_task): New function.
5105 (verify_children_queue, verify_taskgroup_queue,
5106 verify_task_queue): New functions.
5107 (gomp_task_run_pre): Call verify_*_queue functions.
5108 If an upcoming tied task is about to leave the sibling or
5109 taskgroup queues in an invalid state, adjust appropriately.
5110 Remove taskgroup argument. Add comments.
5111 (gomp_task_run_post_handle_dependers): Add comments.
5112 (gomp_task_run_post_remove_parent): Likewise.
5113 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
5114 (GOMP_taskwait): Likewise. Add comments.
5115 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
5116 problem such that the first non parent_depends_on task does not
5117 end up at the end of the children queue.
5118 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
5119 GOMP_TASK_UNDEFERRED.
5120 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
5121 * taskloop.c: New file.
5122 * testsuite/lib/libgomp.exp
5123 (check_effective_target_offload_device_nonshared_as): New proc.
5124 * testsuite/libgomp.c/affinity-2.c: New test.
5125 * testsuite/libgomp.c/doacross-1.c: New test.
5126 * testsuite/libgomp.c/doacross-2.c: New test.
5127 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
5128 Add map clause to target.
5129 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
5130 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
5131 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
5132 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
5133 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
5134 Likewise.
5135 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
5136 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
5137 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
5138 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
5139 not defined. Use those where needed.
5140 * testsuite/libgomp.c/for-4.c: New test.
5141 * testsuite/libgomp.c/for-5.c: New test.
5142 * testsuite/libgomp.c/for-6.c: New test.
5143 * testsuite/libgomp.c/linear-1.c: New test.
5144 * testsuite/libgomp.c/ordered-4.c: New test.
5145 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
5146 only allowed on the loop iterator.
5147 * testsuite/libgomp.c/pr66199-3.c: New test.
5148 * testsuite/libgomp.c/pr66199-4.c: New test.
5149 * testsuite/libgomp.c/reduction-7.c: New test.
5150 * testsuite/libgomp.c/reduction-8.c: New test.
5151 * testsuite/libgomp.c/reduction-9.c: New test.
5152 * testsuite/libgomp.c/reduction-10.c: New test.
5153 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
5154 map(tofrom:s).
5155 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
5156 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
5157 * testsuite/libgomp.c/target-11.c: New test.
5158 * testsuite/libgomp.c/target-12.c: New test.
5159 * testsuite/libgomp.c/target-13.c: New test.
5160 * testsuite/libgomp.c/target-14.c: New test.
5161 * testsuite/libgomp.c/target-15.c: New test.
5162 * testsuite/libgomp.c/target-16.c: New test.
5163 * testsuite/libgomp.c/target-17.c: New test.
5164 * testsuite/libgomp.c/target-18.c: New test.
5165 * testsuite/libgomp.c/target-19.c: New test.
5166 * testsuite/libgomp.c/target-20.c: New test.
5167 * testsuite/libgomp.c/target-21.c: New test.
5168 * testsuite/libgomp.c/target-22.c: New test.
5169 * testsuite/libgomp.c/target-23.c: New test.
5170 * testsuite/libgomp.c/target-24.c: New test.
5171 * testsuite/libgomp.c/target-25.c: New test.
5172 * testsuite/libgomp.c/target-26.c: New test.
5173 * testsuite/libgomp.c/target-27.c: New test.
5174 * testsuite/libgomp.c/taskloop-1.c: New test.
5175 * testsuite/libgomp.c/taskloop-2.c: New test.
5176 * testsuite/libgomp.c/taskloop-3.c: New test.
5177 * testsuite/libgomp.c/taskloop-4.c: New test.
5178 * testsuite/libgomp.c++/ctor-13.C: New test.
5179 * testsuite/libgomp.c++/doacross-1.C: New test.
5180 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
5181 Replace offload_device with offload_device_nonshared_as.
5182 * testsuite/libgomp.c++/for-12.C: New test.
5183 * testsuite/libgomp.c++/for-13.C: New test.
5184 * testsuite/libgomp.c++/for-14.C: New test.
5185 * testsuite/libgomp.c++/linear-1.C: New test.
5186 * testsuite/libgomp.c++/member-1.C: New test.
5187 * testsuite/libgomp.c++/member-2.C: New test.
5188 * testsuite/libgomp.c++/member-3.C: New test.
5189 * testsuite/libgomp.c++/member-4.C: New test.
5190 * testsuite/libgomp.c++/member-5.C: New test.
5191 * testsuite/libgomp.c++/ordered-1.C: New test.
5192 * testsuite/libgomp.c++/reduction-5.C: New test.
5193 * testsuite/libgomp.c++/reduction-6.C: New test.
5194 * testsuite/libgomp.c++/reduction-7.C: New test.
5195 * testsuite/libgomp.c++/reduction-8.C: New test.
5196 * testsuite/libgomp.c++/reduction-9.C: New test.
5197 * testsuite/libgomp.c++/reduction-10.C: New test.
5198 * testsuite/libgomp.c++/reference-1.C: New test.
5199 * testsuite/libgomp.c++/simd14.C: New test.
5200 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
5201 * testsuite/libgomp.c++/target-5.C: New test.
5202 * testsuite/libgomp.c++/target-6.C: New test.
5203 * testsuite/libgomp.c++/target-7.C: New test.
5204 * testsuite/libgomp.c++/target-8.C: New test.
5205 * testsuite/libgomp.c++/target-9.C: New test.
5206 * testsuite/libgomp.c++/target-10.C: New test.
5207 * testsuite/libgomp.c++/target-11.C: New test.
5208 * testsuite/libgomp.c++/target-12.C: New test.
5209 * testsuite/libgomp.c++/taskloop-1.C: New test.
5210 * testsuite/libgomp.c++/taskloop-2.C: New test.
5211 * testsuite/libgomp.c++/taskloop-3.C: New test.
5212 * testsuite/libgomp.c++/taskloop-4.C: New test.
5213 * testsuite/libgomp.c++/taskloop-5.C: New test.
5214 * testsuite/libgomp.c++/taskloop-6.C: New test.
5215 * testsuite/libgomp.c++/taskloop-7.C: New test.
5216 * testsuite/libgomp.c++/taskloop-8.C: New test.
5217 * testsuite/libgomp.c++/taskloop-9.C: New test.
5218 * testsuite/libgomp.fortran/affinity1.f90: New test.
5219 * testsuite/libgomp.fortran/affinity2.f90: New test.
5220
5221 2015-10-13 Tom de Vries <tom@codesourcery.com>
5222
5223 PR tree-optimization/67476
5224 * testsuite/libgomp.c/autopar-3.c: New test.
5225 * testsuite/libgomp.c/autopar-4.c: New test.
5226 * testsuite/libgomp.c/autopar-5.c: New test.
5227 * testsuite/libgomp.c/autopar-6.c: New test.
5228 * testsuite/libgomp.c/autopar-7.c: New test.
5229 * testsuite/libgomp.c/autopar-8.c: New test.
5230
5231 2015-10-12 James Norris <jnorris@codesourcery.com>
5232
5233 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
5234 initializer.
5235
5236 2015-10-09 David Malcolm <dmalcolm@redhat.com>
5237
5238 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
5239 using load_gcc_lib.
5240
5241 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
5242
5243 * oacc-ptx.h: Remove file, moving its content into...
5244 * config/nvptx/fortran.c: ... here...
5245 * config/nvptx/oacc-init.c: ..., here...
5246 * config/nvptx/oacc-parallel.c: ..., and here.
5247 * config/nvptx/openacc.f90: New file.
5248 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
5249 (link_ptx): Don't link in predefined bits of PTX code.
5250
5251 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
5252 Bernd Schmidt <bernds@codesourcery.com>
5253
5254 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
5255 (struct targ_ptx_obj): New.
5256 (nvptx_tdata): Move earlier, change data format.
5257 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
5258 objects.
5259 (GOMP_OFFLOAD_load_image): Adjust.
5260
5261 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
5262
5263 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
5264 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
5265 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
5266 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
5267 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
5268 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
5269 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
5270 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
5271 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
5272 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
5273 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
5274 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
5275 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
5276 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5277 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5278 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5279 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
5280 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5281 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5282 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5283 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5284 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5285 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
5286 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
5287 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5288 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5289 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
5290 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5291 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5292 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
5293 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
5294 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
5295 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
5296 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
5297 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5298 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5299 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5300 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5301 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5302 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5303 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5304 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5305 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
5306 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5307 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
5308 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5309 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5310 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5311 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5312 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5313 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
5314 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
5315 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
5316 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
5317 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
5318 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
5319 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
5320 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
5321 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
5322 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
5323 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
5324 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
5325 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
5326
5327 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
5328
5329 * oacc-init.c (acc_on_device): Force optimization level.
5330
5331 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
5332
5333 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
5334 (cuda_errlist): Delete.
5335 (cuda_error): Reimplement.
5336
5337 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
5338
5339 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
5340 array.
5341 * libgomp.map (GOACC_parallel_keyed): New.
5342 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
5343 all callers.
5344 (GOACC_parallel_keyed): New interface. Lose geometry arguments
5345 and take keyed varargs list. Adjust call to exec_func.
5346 (GOACC_parallel): Force host fallback.
5347 * libgomp_g.h (GOACC_parallel): Remove.
5348 (GOACC_parallel_keyed): Declare.
5349 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
5350 (stuct targ_gn_descriptor): Replace name field with launch field.
5351 (nvptx_exec): Lose separate geometry args, take array. Process
5352 dynamic dimensions and adjust.
5353 (struct nvptx_tdata): Replace fn_names field with fn_descs.
5354 (GOMP_OFFLOAD_load_image): Adjust for change in function table
5355 data.
5356 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
5357 passing.
5358 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
5359 passing.
5360
5361 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
5362
5363 PR libgomp/67141
5364 * oacc-int.h (goacc_host_init): Add declaration.
5365 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
5366 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
5367
5368 2015-09-08 Aditya Kumar <hiraditya@msn.com>
5369 Sebastian Pop <s.pop@samsung.com>
5370
5371 * testsuite/libgomp.graphite/bounds.c (int foo): Modifed test case to
5372 match o/p.
5373 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
5374 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
5375 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
5376 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
5377 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
5378
5379 2015-09-03 Jakub Jelinek <jakub@redhat.com>
5380
5381 * configure.tgt: Add missing ;; in between nvptx and rtems
5382 snippets.
5383
5384 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5385
5386 * config/posix/pool.h (gomp_adjust_thread_attr): New.
5387 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
5388 (gomp_thread_pool_reservoir): Add priority member.
5389 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
5390 priority.
5391 (parse_thread_pools): Likewise.
5392 * team.c (gomp_team_start): Call configuration provided
5393 gomp_adjust_thread_attr(). Destroy thread attributes if
5394 necessary.
5395 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
5396
5397 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5398
5399 * config/posix/pool.h: New.
5400 * config/rtems/pool.h: Likewise.
5401 * config/rtems/proc.c: Likewise.
5402 * libgomp.h (gomp_thread_destructor): Declare.
5403 * team.c: Include configuration provided "pool.h".
5404 (gomp_get_thread_pool): Define in configuration.
5405 (gomp_team_end): Call configuration defined
5406 gomp_release_thread_pool().
5407
5408 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5409
5410 * config/rtems/bar.c: New.
5411 * config/rtems/bar.h: Likewise.
5412 * config/rtems/mutex.c: Likewise.
5413 * config/rtems/mutex.h: Likewise.
5414 * config/rtems/sem.c: Likewise.
5415 * config/rtems/sem.h: Likewise.
5416 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
5417 <sys/lock.h> header file.
5418 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
5419 supported by Newlib.
5420 * configure: Regenerate.
5421
5422 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
5423
5424 * team.c (gomp_new_thread_pool): Delete and move content to ...
5425 (gomp_get_thread_pool): ... new function. Allocate and
5426 initialize thread pool on demand.
5427 (get_last_team): Use gomp_get_thread_pool().
5428 (gomp_team_start): Delete thread pool initialization.
5429
5430 2015-09-03 Tom de Vries <tom@codesourcery.com>
5431
5432 PR tree-optimization/65637
5433 * testsuite/libgomp.c/autopar-2.c: New test.
5434
5435 2015-08-29 Tom de Vries <tom@codesourcery.com>
5436
5437 PR tree-optimization/46193
5438 * testsuite/libgomp.c/pr46193.c: New test.
5439
5440 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
5441
5442 libgomp/
5443 * libgomp.map: Add 4.0.2 version.
5444 * target.c (offload_image_descr): Add version field.
5445 (gomp_load_image_to_device): Add version argument. Adjust plugin
5446 call. Improve load mismatch diagnostic.
5447 (gomp_unload_image_from_device): Add version argument. Adjust plugin
5448 call.
5449 (GOMP_offload_regster): Make stub function, move bulk to ...
5450 (GOMP_offload_register_ver): ... here. Process version argument.
5451 (GOMP_offload_unregister): Make stub function, move bulk to ...
5452 (GOMP_offload_unregister_ver): ... here. Process version argument.
5453 (gomp_init_device): Process version field.
5454 (gomp_unload_device): Process version field.
5455 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
5456 macros. Check plugin version.
5457 * libgomp.h (gomp_device_descr): Add version function field. Adjust
5458 loader and unloader types.
5459 * oacc-host.c: Include gomp-constants.h.
5460 (host_version): New.
5461 (host_load_image, host_unload_image): Adjust.
5462 (host_dispatch): Add host_version.
5463 * plugin/plugin-nvptx.c: Include gomp-constants.h.
5464 (GOMP_OFFLOAD_version): New.
5465 (GOMP_OFFLOAD_load_image): Add version arg and check it.
5466 (GOMP_OFFLOAD_unload_image): Likewise.
5467 * plugin/plugin-host.c: Include gomp-constants.h.
5468 (GOMP_OFFLOAD_version): New.
5469 (GOMP_OFFLOAD_load_image): Add version arg.
5470 (GOMP_OFFLOAD_unload_image): Likewise.
5471
5472 2015-08-24 Tom de Vries <tom@codesourcery.com>
5473
5474 PR tree-optimization/65468
5475 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
5476
5477 2015-08-24 Tom de Vries <tom@codesourcery.com>
5478
5479 PR tree-optimization/65468
5480 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
5481
5482 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
5483
5484 PR libgomp/66761
5485 PR libgomp/67303
5486 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
5487 (gomp_iter_guided_next): Idem.
5488 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
5489 (gomp_iter_ull_guided_next): Idem.
5490 * config/linux/wait.h (do_spin): Idem.
5491
5492 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5493
5494 * libgomp-plugin.h (enum offload_target_type): Remove
5495 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
5496 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
5497 * openacc.h (enum acc_device_t): Likewise.
5498 * openacc_lib.h: Likewise.
5499 * oacc-init.c (name_of_acc_device_t): Don't handle it.
5500 (acc_on_device): Just use __builtin_acc_on_device.
5501 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
5502 of acc_on_device builtin.
5503 * plugin/plugin-host.h: Remove file.
5504 * plugin/plugin-host.c: Likewise, but salvage some content into...
5505 * oacc-host.c: ... this file.
5506 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
5507 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
5508 * Makefile.in: Regenerate.
5509 * configure: Likewise.
5510 * testsuite/lib/libgomp.exp
5511 (check_effective_target_openacc_host_nonshm_selected): Remove.
5512 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
5513 ACC_DEVICE_TYPE=host_nonshm.
5514 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5515 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5516 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
5517 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5518 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5519 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5520
5521 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5522 Jakub Jelinek <jakub@redhat.com>
5523
5524 * config/nvptx/affinity.c: New file.
5525 * config/nvptx/alloc.c: Likewise.
5526 * config/nvptx/bar.c: Likewise.
5527 * config/nvptx/barrier.c: Likewise.
5528 * config/nvptx/critical.c: Likewise.
5529 * config/nvptx/env.c: Likewise.
5530 * config/nvptx/error.c: Likewise.
5531 * config/nvptx/fortran.c: Likewise.
5532 * config/nvptx/iter.c: Likewise.
5533 * config/nvptx/iter_ull.c: Likewise.
5534 * config/nvptx/libgomp-plugin.c: Likewise.
5535 * config/nvptx/lock.c: Likewise.
5536 * config/nvptx/loop.c: Likewise.
5537 * config/nvptx/loop_ull.c: Likewise.
5538 * config/nvptx/mutex.c: Likewise.
5539 * config/nvptx/oacc-async.c: Likewise.
5540 * config/nvptx/oacc-cuda.c: Likewise.
5541 * config/nvptx/oacc-host.c: Likewise.
5542 * config/nvptx/oacc-init.c: Likewise.
5543 * config/nvptx/oacc-mem.c: Likewise.
5544 * config/nvptx/oacc-parallel.c: Likewise.
5545 * config/nvptx/oacc-plugin.c: Likewise.
5546 * config/nvptx/omp-lock.h: Likewise.
5547 * config/nvptx/ordered.c: Likewise.
5548 * config/nvptx/parallel.c: Likewise.
5549 * config/nvptx/proc.c: Likewise.
5550 * config/nvptx/ptrlock.c: Likewise.
5551 * config/nvptx/sections.c: Likewise.
5552 * config/nvptx/sem.c: Likewise.
5553 * config/nvptx/single.c: Likewise.
5554 * config/nvptx/splay-tree.c: Likewise.
5555 * config/nvptx/target.c: Likewise.
5556 * config/nvptx/task.c: Likewise.
5557 * config/nvptx/team.c: Likewise.
5558 * config/nvptx/time.c: Likewise.
5559 * config/nvptx/work.c: Likewise.
5560 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
5561 * configure: Regenerate.
5562 * configure.tgt (config_path): Set to "nvptx" for target
5563 nvptx*-*-*.
5564
5565 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
5566
5567 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
5568
5569 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
5570
5571 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
5572 (cuda_errlist): Constify.
5573 (errmsg): Move into ...
5574 (cuda_error): ... here. Make smaller.
5575 (_XSTR, _STR): Delete.
5576 (cuda_synames): Delete.
5577 (verify_device_library): Delete.
5578 (nvptx_init): Don't call it.
5579
5580 2015-07-28 Tom de Vries <tom@codesourcery.com>
5581
5582 * testsuite/libgomp.c/uns-outer-4.c: New test.
5583
5584 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
5585
5586 * testsuite/libgomp.c/pr66714.c: New test.
5587
5588 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
5589
5590 PR libgomp/66950
5591 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
5592 (fib_ref): New function.
5593 (fib): Correct corner cases in the recursion.
5594 (main): Replace the non-simd loop with fib_ref call.
5595 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
5596 subroutine.
5597 (fibonacci): Lower the parameter N to 30. Correct accordingly check
5598 for the last array element value. Replace the non-simd loop with
5599 fib_ref call. Remove redundant b_ref array. Remove the comparison
5600 of the last array element with according Fibonacci sequence element.
5601 (fib): Correct corner cases in the recursion.
5602
5603 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
5604
5605 * target.c (gomp_offload_image_to_device): Rename to ...
5606 (gomp_load_image_to_device): ... here.
5607 (GOMP_offload_register): Adjust call.
5608 (gomp_init_device): Likewise.
5609 (gomp_unload_image_from_device): New. Broken out of ...
5610 (GOMP_offload_unregister): ... here. Call it.
5611 (gomp_unload_device): New.
5612 * libgomp.h (gomp_unload_device): Declare.
5613 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
5614 mem maps.
5615
5616 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
5617
5618 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
5619 wait=-specific if.
5620 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
5621 !=0 condition.
5622 (goacc_waits): Move !num_waits handling to ...
5623 (GOACC_wait): ... here, the only caller that might have zero waits.
5624
5625 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
5626 (struct ptx_image_data): Move earlier, add fns field.
5627 (struct ptx_device): Add images and image_lock fields.
5628 (ptx_images, ptx_image_lock): Delete.
5629 (nvptx_open_device): Initialize images and image_lock fields.
5630 (nvptx_close_device): Destroy image_lock.
5631 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
5632 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
5633 fields.
5634
5635 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
5636
5637 * target.c (GOMP_offload_register): Use int for device type arg.
5638 (GOMP_offload_unregister): Likewise.
5639
5640 * target.c (struct_offload_image_descr): Constify host_table.
5641 (gomp_offload_image_to_device): Likewise.
5642 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
5643
5644 * libgomp.h (gomp_device_descr): Constify target data arguments.
5645 * target.c (struct offload_image_descr): Constify target_data.
5646 (gomp_offload_image_to_device): Likewise.
5647 (GOMP_offload_register): Likewise.
5648 (GOMP_offload_unrefister): Likewise.
5649 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
5650 GOMP_OFFLOAD_unload_image): Constify target data.
5651 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
5652 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
5653
5654 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
5655
5656 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
5657 Workaround driver library const error.
5658 (struct nvptx_tdata, nvptx_tdata_t): New.
5659 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
5660 type.
5661
5662 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
5663
5664 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
5665 of EPS parameter from integer to real.
5666 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
5667 type of EPS parameter from integer to real.
5668
5669 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
5670
5671 * team.c (get_last_team): New.
5672 (gomp_new_team): Recycle last non-nested team if possible.
5673 (gomp_team_end): Move team work share list free lock destruction
5674 to ...
5675 (free_team): ... here.
5676
5677 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
5678
5679 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
5680 and ref from int to double. Replaced their comparison with
5681 an inequality of their difference and EPS.
5682 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
5683 comparison of pri and a reference number with an inequality of their
5684 difference and EPS.
5685 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
5686 the comparison of sum and sum_ref with an inequality of their
5687 difference and EPS.
5688 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
5689 the comparison of pri and a reference number with an inequality of
5690 their difference and EPS.
5691
5692 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
5693
5694 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
5695 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
5696 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
5697 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
5698 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
5699 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
5700 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
5701 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
5702 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
5703 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
5704 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
5705 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
5706 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
5707 variables.
5708 (vec_mult): Likewise. Add #pragma omp taskwait.
5709 (main): Adjust caller.
5710 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
5711 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
5712 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
5713 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
5714 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
5715 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
5716 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
5717 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
5718 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
5719 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
5720 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
5721 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
5722 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
5723 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
5724 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
5725 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
5726 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
5727 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
5728 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
5729 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
5730 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
5731 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
5732 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
5733 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
5734 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
5735 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
5736 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
5737 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
5738 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
5739 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
5740 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
5741 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
5742 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
5743 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
5744 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
5745 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
5746 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
5747 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
5748 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
5749 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
5750 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
5751 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
5752 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
5753 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
5754 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
5755 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
5756 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
5757 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
5758 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
5759 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
5760 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
5761 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
5762 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
5763 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
5764 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
5765 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
5766 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
5767 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
5768 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
5769 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
5770 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
5771 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
5772 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
5773 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
5774 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
5775 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
5776 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
5777 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
5778 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
5779 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
5780 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
5781 (vec_mult): Add !$omp taskwait.
5782 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
5783 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
5784 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
5785 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
5786 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
5787 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
5788 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
5789 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
5790 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
5791 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
5792 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
5793 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
5794 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
5795 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
5796 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
5797 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
5798 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
5799 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
5800 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
5801 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
5802 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
5803 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
5804 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
5805 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
5806 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
5807 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
5808 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
5809 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
5810 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
5811 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
5812 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
5813 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
5814 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
5815 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
5816 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
5817 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
5818 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
5819 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
5820 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
5821 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
5822 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
5823 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
5824 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
5825 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
5826 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
5827 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
5828 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
5829 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
5830 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
5831 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
5832 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
5833 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
5834 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
5835 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
5836 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
5837 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
5838 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
5839 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
5840 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
5841 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
5842 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
5843 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
5844 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
5845 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
5846 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
5847 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
5848 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
5849
5850 2015-07-10 Tom de Vries <tom@codesourcery.com>
5851
5852 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
5853 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
5854
5855 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
5856
5857 PR libgomp/65099
5858 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
5859 in a 64-bit configuration.
5860 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
5861 offloading testing if no such device is available.
5862 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5863 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5864
5865 2015-07-08 Tom de Vries <tom@codesourcery.com>
5866
5867 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
5868 second call to f.
5869 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
5870
5871 2015-07-07 Tom de Vries <tom@codesourcery.com>
5872
5873 PR tree-optimization/66642
5874 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
5875 iteration count case.
5876 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
5877 function, factor out of ...
5878 (main): ... here. Test low iteration count case.
5879
5880 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
5881
5882 * libgomp.h (gomp_thread_pool): Comment last_team field.
5883
5884 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
5885
5886 * testsuite/libgomp.c++/pr66702-1.C: Require
5887 vect_simd_clones effective target.
5888 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
5889
5890 2015-06-30 Tom de Vries <tom@codesourcery.com>
5891
5892 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
5893 already set. Use DEFAULT_CFLAGS in dg-runtest.
5894 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
5895 "-O2".
5896
5897 2015-06-30 Tom de Vries <tom@codesourcery.com>
5898
5899 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
5900 already set. Use DEFAULT_CFLAGS in dg-runtest.
5901 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
5902 * testsuite/libgomp.c++/pr64824.C: Same.
5903 * testsuite/libgomp.c++/pr64868.C: Same.
5904 * testsuite/libgomp.c++/pr66199-1.C: Same.
5905 * testsuite/libgomp.c++/pr66199-2.C: Same.
5906 * testsuite/libgomp.c++/target-2.C: Same.
5907 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
5908 -std=<standard> option.
5909 * testsuite/libgomp.c++/udr-11.C: Same.
5910 * testsuite/libgomp.c++/udr-12.C: Same.
5911 * testsuite/libgomp.c++/udr-13.C: Same.
5912 * testsuite/libgomp.c++/udr-14.C: Same.
5913 * testsuite/libgomp.c++/udr-15.C: Same.
5914 * testsuite/libgomp.c++/udr-16.C: Same.
5915 * testsuite/libgomp.c++/udr-17.C: Same.
5916 * testsuite/libgomp.c++/udr-18.C: Same.
5917 * testsuite/libgomp.c++/udr-19.C: Same.
5918 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
5919 * testsuite/libgomp.c++/simd-1.C: Same.
5920 * testsuite/libgomp.c++/simd-2.C: Same.
5921 * testsuite/libgomp.c++/simd-3.C: Same.
5922 * testsuite/libgomp.c++/simd-4.C: Same.
5923 * testsuite/libgomp.c++/simd-5.C: Same.
5924 * testsuite/libgomp.c++/simd-6.C: Same.
5925 * testsuite/libgomp.c++/simd-7.C: Same.
5926 * testsuite/libgomp.c++/simd-8.C: Same.
5927 * testsuite/libgomp.c++/simd-9.C: Same.
5928 * testsuite/libgomp.c++/simd10.C: Same.
5929 * testsuite/libgomp.c++/simd11.C: Same.
5930 * testsuite/libgomp.c++/simd12.C: Same.
5931 * testsuite/libgomp.c++/simd13.C: Same.
5932
5933 2015-06-30 Jakub Jelinek <jakub@redhat.com>
5934
5935 PR middle-end/66702
5936 * testsuite/libgomp.c++/pr66702-1.C: New test.
5937 * testsuite/libgomp.c++/pr66702-2.C: New test.
5938
5939 2015-06-30 Tom de Vries <tom@codesourcery.com>
5940
5941 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
5942 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
5943 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
5944 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
5945
5946 2015-06-30 Tom de Vries <tom@codesourcery.com>
5947
5948 PR tree-optimization/66652
5949 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
5950 using restrict pointers.
5951 (main): Add arguments to calls to f.
5952 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
5953
5954 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
5955
5956 * configure.ac: Fix check for header <sys/sysctl.h>.
5957 * configure: Regenerate.
5958 * config.h.in: Likewise.
5959
5960 2015-06-23 Tom de Vries <tom@codesourcery.com>
5961
5962 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
5963 abort.
5964 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
5965
5966 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
5967
5968 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
5969 acc_device_nvidia.
5970
5971 PR libgomp/66518
5972 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
5973 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5974
5975 2015-06-15 Tom de Vries <tom@codesourcery.com>
5976
5977 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
5978 dg-additional-options for any remaining options.
5979 * testsuite/libgomp.c/atomic-2.c: Same.
5980 * testsuite/libgomp.c/atomic-4.c: Same.
5981 * testsuite/libgomp.c/atomic-5.c: Same.
5982 * testsuite/libgomp.c/atomic-6.c: Same.
5983 * testsuite/libgomp.c/autopar-1.c: Same.
5984 * testsuite/libgomp.c/copyin-1.c: Same.
5985 * testsuite/libgomp.c/copyin-2.c: Same.
5986 * testsuite/libgomp.c/copyin-3.c: Same.
5987 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
5988 * testsuite/libgomp.c/nestedfn-5.c: Same.
5989 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
5990 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
5991 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
5992 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
5993 * testsuite/libgomp.c/pr32362-1.c: Same.
5994 * testsuite/libgomp.c/pr32362-2.c: Same.
5995 * testsuite/libgomp.c/pr32362-3.c: Same.
5996 * testsuite/libgomp.c/pr39591-1.c: Same.
5997 * testsuite/libgomp.c/pr39591-2.c: Same.
5998 * testsuite/libgomp.c/pr39591-3.c: Same.
5999 * testsuite/libgomp.c/pr58392.c: Same.
6000 * testsuite/libgomp.c/pr58756.c: Same.
6001 * testsuite/libgomp.c/simd-1.c: Same.
6002 * testsuite/libgomp.c/simd-10.c: Same.
6003 * testsuite/libgomp.c/simd-11.c: Same.
6004 * testsuite/libgomp.c/simd-12.c: Same.
6005 * testsuite/libgomp.c/simd-13.c: Same.
6006 * testsuite/libgomp.c/simd-14.c: Same.
6007 * testsuite/libgomp.c/simd-15.c: Same.
6008 * testsuite/libgomp.c/simd-2.c: Same.
6009 * testsuite/libgomp.c/simd-3.c: Same.
6010 * testsuite/libgomp.c/simd-4.c: Same.
6011 * testsuite/libgomp.c/simd-5.c: Same.
6012 * testsuite/libgomp.c/simd-6.c: Same.
6013 * testsuite/libgomp.c/simd-7.c: Same.
6014 * testsuite/libgomp.c/simd-8.c: Same.
6015 * testsuite/libgomp.c/simd-9.c: Same.
6016
6017 2015-06-15 Tom de Vries <tom@codesourcery.com>
6018
6019 * testsuite/libgomp.c/pr35625.c: Fix typo.
6020
6021 2015-06-15 Tom de Vries <tom@codesourcery.com>
6022
6023 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
6024 in dg-options.
6025 * testsuite/libgomp.c/atomic-3.c: Same.
6026 * testsuite/libgomp.c/debug-1.c: Same.
6027 * testsuite/libgomp.c/nqueens-1.c: Same.
6028 * testsuite/libgomp.c/pr26171.c: Same.
6029 * testsuite/libgomp.c/pr48591.c: Same.
6030 * testsuite/libgomp.c/pr64824.c: Same.
6031 * testsuite/libgomp.c/pr64868.c: Same.
6032 * testsuite/libgomp.c/pr66133.c: Same.
6033 * testsuite/libgomp.c/pr66199-1.c: Same.
6034 * testsuite/libgomp.c/pr66199-2.c: Same.
6035 * testsuite/libgomp.c/target-8.c: Same.
6036
6037 2015-06-15 Tom de Vries <tom@codesourcery.com>
6038
6039 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
6040 -std={gnu99,c99}.
6041 * testsuite/libgomp.c/for-1.c: Same.
6042 * testsuite/libgomp.c/for-2.c: Same.
6043 * testsuite/libgomp.c/for-3.c: Same.
6044 * testsuite/libgomp.c/pr35625.c: Same.
6045 * testsuite/libgomp.c/pr39154.c: Same.
6046 * testsuite/libgomp.c/simd-16.c: Same.
6047 * testsuite/libgomp.c/simd-17.c: Same.
6048
6049 2015-06-13 Tom de Vries <tom@codesourcery.com>
6050
6051 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
6052
6053 2015-06-13 Tom de Vries <tom@codesourcery.com>
6054
6055 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
6056 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
6057 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
6058 (N): Define.
6059 (main): Use N instead of hardcoded constants.
6060
6061 2015-06-05 Tom de Vries <tom@codesourcery.com>
6062
6063 merge from gomp4 branch:
6064 2015-05-28 Tom de Vries <tom@codesourcery.com>
6065
6066 PR tree-optimization/65443
6067 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
6068 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
6069 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
6070
6071 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6072
6073 * testsuite/libgomp.graphite/bounds.c: Adjust for
6074 cleanup-tree-dump removal.
6075 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
6076 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
6077 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
6078 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
6079 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
6080 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
6081 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
6082 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
6083 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
6084 * testsuite/libgomp.graphite/pr41118.c: Likewise.
6085
6086 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
6087
6088 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
6089 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
6090 (futex_wake) [!__x86_64__]: Ditto.
6091
6092 2015-05-28 Julian Brown <julian@codesourcery.com>
6093
6094 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
6095 function comment. Only call gomp_fatal if new argument is true.
6096 (acc_dev_num_out_of_range): New function.
6097 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
6098 acc_dev_num_out_of_range as appropriate.
6099 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
6100 (acc_get_device_num, acc_set_device_num): Update calls to
6101 resolve_device.
6102 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
6103 output.
6104
6105 2015-05-28 Julian Brown <julian@codesourcery.com>
6106
6107 PR libgomp/65742
6108 * oacc-init.c (plugin/plugin-host.h): Include.
6109 (acc_on_device): Check whether we're in an offloaded region for
6110 host_nonshm
6111 plugin. Don't use __builtin_acc_on_device.
6112 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
6113 nonshm_exec flag in thread-local data.
6114 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
6115 data for host_nonshm plugin.
6116 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
6117 for host_nonshm plugin.
6118 * plugin/plugin-host.h: New.
6119
6120 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
6121
6122 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
6123
6124 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
6125
6126 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
6127 Declare as int.
6128 (FUTEX_PRIVATE_FLAG): Remove L suffix.
6129 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
6130 Declare as int.
6131
6132 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
6133
6134 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
6135
6136 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
6137
6138 * target.c (gomp_map_pointer): New function abstracting out
6139 GOMP_MAP_POINTER handling.
6140 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
6141 gomp_map_pointer().
6142
6143 2015-05-19 Jakub Jelinek <jakub@redhat.com>
6144
6145 PR middle-end/66199
6146 * testsuite/libgomp.c/pr66199-1.c: New test.
6147 * testsuite/libgomp.c/pr66199-2.c: New test.
6148 * testsuite/libgomp.c++/pr66199-1.C: New test.
6149 * testsuite/libgomp.c++/pr66199-2.C: New test.
6150 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
6151 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
6152
6153 2015-05-19 Julian Brown <julian@codesourcery.com>
6154
6155 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
6156 on cuInit failure.
6157
6158 2015-05-13 Jakub Jelinek <jakub@redhat.com>
6159
6160 PR middle-end/66133
6161 * testsuite/libgomp.c/pr66133.c: New test.
6162
6163 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
6164
6165 * Makefile.in: Regenerated with automake-1.11.6.
6166 * aclocal.m4: Likewise.
6167 * config.h.in: Likewise.
6168 * configure: Likewise.
6169 * testsuite/Makefile.in: Likewise.
6170
6171 2015-05-08 Jason Merrill <jason@redhat.com>
6172
6173 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
6174 _Complex.
6175
6176 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
6177
6178 2015-05-06 Julian Brown <julian@codesourcery.com>
6179
6180 * oacc-init.c (acc_device_lock): Add explanatory comment.
6181 (resolve_device): Add comment about locking requirement.
6182 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
6183 gomp_init_device and gomp_fini_device calls.
6184 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
6185 (acc_get_device_num, acc_set_device_num): Add locking around
6186 resolve_device and gomp_init_device calls.
6187
6188 2015-05-06 Julian Brown <julian@codesourcery.com>
6189
6190 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
6191 goacc_thread_lock on error paths.
6192 * oacc-mem.c (lookup_host): Remove locking from function. Note
6193 locking requirement for caller in function comment.
6194 (lookup_dev): Likewise.
6195 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
6196 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
6197 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
6198 Add locking.
6199
6200 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
6201
6202 PR testsuite/65205
6203 PR libgomp/65993
6204 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
6205 don't expect "0x" prefix for "%p" format specifier, don't expect
6206 "(nil)" for NULL pointer.
6207 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6208 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6209 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6210 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6211 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6212 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6213 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6214 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6215 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6216 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6217 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6218 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6219 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6220 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6221 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6222 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6223 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6224 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6225 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6226 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6227 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6228 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6229 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6230 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6231 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6232 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6233 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6234 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6235 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
6236 accurately specify what we're looking for.
6237 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6238 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6239 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
6240 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6241 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6242
6243 2015-04-30 James Norris <jnorris@codesourcery.com>
6244
6245 PR testsuite/65205
6246 * testsuite/lib/libgomp.exp
6247 (check_effective_target_openacc_host_selected)
6248 (check_effective_target_openacc_host_nonshm_selected): New
6249 procedures.
6250 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
6251 dg-shouldfail.
6252 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6253 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6254 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6255 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6256 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6257 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6258 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6259 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6260 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6261 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6262 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6263 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6264 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6265 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6266 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6267 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6268 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6269 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6270 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6271 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6272 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6273 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6274 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6275 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6276 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6277 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6278 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6279 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6280 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6281 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6282 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6283 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6284 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6285 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6286 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6287 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6288 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6289 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6290 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6291 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6292 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6293 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6294 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
6295
6296 2015-04-08 Julian Brown <julian@codesourcery.com>
6297
6298 * libgomp.h (target_mem_desc: Remove mem_map field.
6299 (acc_dispatch_t): Remove open_device_func, close_device_func,
6300 get_device_num_func, set_device_num_func, target_data members.
6301 Change create_thread_data_func argument to device number instead of
6302 generic pointer.
6303 * oacc-async.c (assert.h): Include.
6304 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
6305 (acc_wait_all, acc_wait_all_async): Use current host thread's
6306 active device, not base_dev.
6307 * oacc-cuda.c (acc_get_current_cuda_device)
6308 (acc_get_current_cuda_context, acc_get_cuda_stream)
6309 (acc_set_cuda_stream): Likewise.
6310 * oacc-host.c (host_dispatch): Don't set open_device_func,
6311 close_device_func, get_device_num_func or set_device_num_func.
6312 * oacc-init.c (base_dev, init_key): Remove.
6313 (cached_base_dev): New.
6314 (name_of_acc_device_t): New.
6315 (acc_init_1): Initialise default-numbered device, not zeroth.
6316 (acc_shutdown_1): Close all devices of a given type.
6317 (goacc_destroy_thread): Don't use base_dev.
6318 (lazy_open, lazy_init, lazy_init_and_open): Remove.
6319 (goacc_attach_host_thread_to_device): New.
6320 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
6321 (acc_get_num_devices): Don't use base_dev.
6322 (acc_set_device_type): Reimplement.
6323 (acc_get_device_type): Don't use base_dev.
6324 (acc_get_device_num): Tweak logic.
6325 (acc_set_device_num): Likewise.
6326 (acc_on_device): Use acc_get_device_type.
6327 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
6328 (goacc_lazy_initialize): Reimplement with acc_init and
6329 goacc_attach_host_thread_to_device.
6330 * oacc-int.h (goacc_thread): Add base_dev field.
6331 (base_dev): Remove extern declaration.
6332 (goacc_attach_host_thread_to_device): Add prototype.
6333 * oacc-mem.c (acc_malloc): Use current thread's device instead of
6334 base_dev.
6335 (acc_free): Likewise.
6336 (acc_memcpy_to_device): Likewise.
6337 (acc_memcpy_from_device): Likewise.
6338 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
6339 goacc_lazy_initialize (throughout).
6340 (GOACC_parallel): Use tgt_offset to locate target functions.
6341 * target.c (gomp_map_vars): Don't set tgt->mem_map.
6342 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
6343 (gomp_load_plugin_for_device): Remove open_device, close_device,
6344 get_device_num, set_device_num openacc hook initialisation. Don't set
6345 openacc.target_data.
6346 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
6347 (GOMP_OFFLOAD_openacc_close_device)
6348 (GOMP_OFFLOAD_openacc_get_device_num)
6349 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
6350 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
6351 to int.
6352 * plugin/plugin-nvptx.c (ptx_inited): Remove.
6353 (instantiated_devices, ptx_dev_lock): New.
6354 (struct ptx_image_data): New.
6355 (ptx_devices, ptx_images, ptx_image_lock): New.
6356 (fini_streams_for_device): Reorder cuStreamDestroy call.
6357 (nvptx_get_num_devices): Remove forward declaration.
6358 (nvptx_init): Change return type to bool.
6359 (nvptx_fini): Remove.
6360 (nvptx_attach_host_thread_to_device): New.
6361 (nvptx_open_device): Return struct ptx_device* instead of void*.
6362 (nvptx_close_device): Change argument type to struct ptx_device*,
6363 return type to void.
6364 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
6365 (kernel_target_data, kernel_host_table): Remove static globals.
6366 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
6367 (GOMP_OFFLOAD_init_device): Reimplement.
6368 (GOMP_OFFLOAD_fini_device): Likewise.
6369 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
6370 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
6371 (GOMP_OFFLOAD_host2dev): Use ORD argument.
6372 (GOMP_OFFLOAD_openacc_open_device)
6373 (GOMP_OFFLOAD_openacc_close_device)
6374 (GOMP_OFFLOAD_openacc_set_device_num)
6375 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
6376 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
6377 (device number).
6378
6379 testsuite/
6380 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
6381
6382 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
6383
6384 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
6385 * libgomp.h (struct gomp_memory_mapping): Remove.
6386 (struct target_mem_desc): Change type of mem_map from
6387 gomp_memory_mapping * to splay_tree_s *.
6388 (struct gomp_device_descr): Remove register_image_func, get_table_func.
6389 Add load_image_func, unload_image_func.
6390 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
6391 Remove offload_regions_registered.
6392 (gomp_init_tables): Remove.
6393 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
6394 to splay_tree_s *.
6395 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
6396 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
6397 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
6398 offload_regions_registered.
6399 Initialize load_image_func, unload_image_func, mem_map.root.
6400 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
6401 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
6402 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
6403 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
6404 gomp_memory_mapping *. Use dev's lock and splay_tree.
6405 (lookup_dev): Use dev's lock.
6406 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
6407 (acc_is_present): Likewise.
6408 (acc_map_data): Likewise.
6409 (acc_unmap_data): Likewise. Use dev's lock.
6410 (present_create_copy): Likewise.
6411 (delete_copyout): Pass dev to lookup_host instead of mem_map.
6412 (update_dev_host): Likewise.
6413 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
6414 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
6415 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
6416 (GOMP_OFFLOAD_get_table): Remove
6417 (GOMP_OFFLOAD_load_image): New function.
6418 (GOMP_OFFLOAD_unload_image): New function.
6419 * target.c (register_lock): New mutex for offload image registration.
6420 (num_devices): Do not guard with PLUGIN_SUPPORT.
6421 (gomp_realloc_unlock): New static function.
6422 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
6423 before gomp_fatal.
6424 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
6425 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
6426 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
6427 mem_map's.
6428 (gomp_unmap_vars): Likewise.
6429 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
6430 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
6431 (gomp_offload_image_to_device): New static function.
6432 (GOMP_offload_register): Add mutex lock.
6433 Call gomp_offload_image_to_device for all initialized devices.
6434 Replace gomp_realloc with gomp_realloc_unlock.
6435 (GOMP_offload_unregister): New function.
6436 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
6437 get_table_func from the plugin with calls to init_device_func and
6438 gomp_offload_image_to_device.
6439 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
6440 to splay_tree_s *.
6441 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
6442 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
6443 (GOMP_target_data): Do not call gomp_init_tables.
6444 (GOMP_target_update): Likewise. Remove argument from gomp_update.
6445 (gomp_load_plugin_for_device): Replace register_image and get_table
6446 with load_image and unload_image in DLSYM ().
6447 (gomp_register_images_for_device): Remove function.
6448 (gomp_target_init): Do not initialize current_device.mem_map.*,
6449 current_device.offload_regions_registered.
6450 Remove call to gomp_register_images_for_device.
6451 Do not free offload_images and num_offload_images.
6452
6453 2015-03-30 Jakub Jelinek <jakub@redhat.com>
6454
6455 PR fortran/65597
6456 * testsuite/libgomp.fortran/pr65597.f90: New test.
6457
6458 2015-03-27 Tom de Vries <tom@codesourcery.com>
6459
6460 PR testsuite/65594
6461 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
6462 (init, check): New function.
6463 (foo): Change return type to void.
6464 (main): Call init and check.
6465
6466 2015-03-27 Tom de Vries <tom@codesourcery.com>
6467
6468 PR testsuite/65594
6469 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
6470 (foo): Use M for non-inner loops to scale down test-case.
6471
6472 2015-03-25 Kai Tietz <ktietz@redhat.com>
6473
6474 PR libgomp/64972
6475 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
6476 (GOACC_data_start): Likewise.
6477 * target.c (gomp_map_vars): Likewise.
6478
6479 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
6480
6481 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
6482 hppa*-*-hpux*.
6483
6484 2015-03-19 Jakub Jelinek <jakub@redhat.com>
6485
6486 * testsuite/libgomp.c/target-10.c: New test.
6487 * testsuite/libgomp.c++/target-4.C: New test.
6488
6489 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
6490
6491 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
6492 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
6493
6494 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
6495
6496 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
6497 * configure.ac (*-*-rtems*): Assume Pthread is supported.
6498 (pthread.h): Check for this header file.
6499 * configure: Regenerate.
6500
6501 2015-02-25 Tom de Vries <tom@codesourcery.com>
6502
6503 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
6504 (check_reduction_op, check_reduction_macro, max, min):
6505 Declare.
6506 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
6507 function.
6508 (main): Use new functions.
6509
6510 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
6511
6512 * target.c (gomp_load_plugin_for_device): Use const char * instead of
6513 char * for variables holding dlerror return values.
6514 (DLSYM_OPT): Ditto.
6515
6516 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
6517
6518 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
6519
6520 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
6521 Cesar Philippidis <cesar@codesourcery.com>
6522
6523 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
6524 GOACC_ctaid, and GOACC_nctaid routines.
6525
6526 2015-02-11 Jakub Jelinek <jakub@redhat.com>
6527
6528 PR c/64824
6529 * testsuite/libgomp.c/atomic-18.c: New test.
6530 * testsuite/libgomp.c++/atomic-16.C: New test.
6531
6532 2015-02-04 Jakub Jelinek <jakub@redhat.com>
6533
6534 PR c/64824
6535 PR c/64868
6536 * testsuite/libgomp.c/pr64824.c: New test.
6537 * testsuite/libgomp.c/pr64868.c: New test.
6538 * testsuite/libgomp.c++/pr64824.C: New test.
6539 * testsuite/libgomp.c++/pr64868.C: New test.
6540
6541 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
6542
6543 PR libgomp/64635
6544 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
6545 Link with -lpthread.
6546 * config/aix/plugin-suffix.h: Delete.
6547
6548 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
6549
6550 PR libgomp/64635
6551 * configure.tgt (*-*-aix*): Use config_path "aix posix".
6552 (*-*-darwin*): Use config_path "bsd darwin posix".
6553 (*-*-hpux*): Use config_path "hpux posix".
6554 * target.c: Add include of plugin-suffix.h and use
6555 SONAME_SUFFIX macro.
6556 * config/aix/plugin-suffix.h: New file.
6557 * config/darwin/plugin-suffix.h: New file.
6558 * config/hpux/plugin-suffix.h: New file.
6559 * config/posix/plugin-suffix.h: New file.
6560
6561 2015-01-23 Jakub Jelinek <jakub@redhat.com>
6562
6563 PR middle-end/64734
6564 * libgomp.c/pr64734.c: New test.
6565
6566 2015-01-23 Tom de Vries <tom@codesourcery.com>
6567
6568 PR libgomp/64672
6569 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
6570
6571 2015-01-23 Tom de Vries <tom@codesourcery.com>
6572
6573 PR libgomp/64707
6574 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
6575 dg-options.
6576
6577 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
6578
6579 PR libgomp/64625
6580 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
6581 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
6582 formal parameter. Update all users.
6583 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
6584 Document unused formal parameter.
6585
6586 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
6587
6588 * oacc-parallel.c: Don't include <alloca.h>.
6589 (GOACC_parallel): Use gomp_alloca instead of alloca.
6590
6591 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
6592
6593 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
6594
6595 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
6596 James Norris <jnorris@codesourcery.com>
6597 Tom de Vries <tom@codesourcery.com>
6598 Julian Brown <julian@codesourcery.com>
6599 Cesar Philippidis <cesar@codesourcery.com>
6600 Nathan Sidwell <nathan@codesourcery.com>
6601 Tobias Burnus <burnus@net-b.de>
6602
6603 * Makefile.am (search_path): Add $(top_srcdir)/../include.
6604 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
6605 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
6606 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
6607 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
6608 Include $(top_srcdir)/plugin/Makefrag.am.
6609 (nodist_libsubinclude_HEADERS): Add openacc.h.
6610 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
6611 openacc.f90, openacc.mod, openacc_kinds.mod.
6612 (omp_lib.mod): Generalize into...
6613 (%.mod): ... this new rule.
6614 (openacc_kinds.mod, openacc.mod): New rules.
6615 * plugin/configfrag.ac: New file.
6616 * configure.ac: Move plugin/offloading support into it. Include
6617 it. Instantiate testsuite/libgomp-test-support.pt.exp.
6618 * plugin/Makefrag.am: New file.
6619 * testsuite/Makefile.am (OFFLOAD_TARGETS)
6620 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
6621 export.
6622 (libgomp-test-support.exp): New rule.
6623 (all-local): Depend on it.
6624 * Makefile.in: Regenerate.
6625 * testsuite/Makefile.in: Regenerate.
6626 * config.h.in: Likewise.
6627 * configure: Likewise.
6628 * configure.tgt: Harden shell syntax.
6629 * env.c: Include "oacc-int.h".
6630 (parse_acc_device_type): New function.
6631 (gomp_debug_var, goacc_device_type, goacc_device_num): New
6632 variables.
6633 (initialize_env): Initialize those. Call
6634 goacc_runtime_initialize.
6635 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
6636 (gomp_fatal): Call gomp_vfatal.
6637 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
6638 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
6639 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
6640 (splay_tree_node, splay_tree, splay_tree_key)
6641 (struct target_mem_desc, struct splay_tree_key_s)
6642 (struct gomp_memory_mapping, struct acc_dispatch_t)
6643 (struct gomp_device_descr, gomp_acc_insert_pointer)
6644 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
6645 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
6646 (gomp_free_memmap, gomp_fini_device): New declarations.
6647 (gomp_vdebug, gomp_debug): New macros.
6648 Include "splay-tree.h".
6649 * libgomp.map (OACC_2.0): New symbol version. Use for
6650 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
6651 acc_set_device_type_h_, acc_get_device_type,
6652 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
6653 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
6654 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
6655 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
6656 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
6657 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
6658 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
6659 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
6660 acc_copyin_array_h_, acc_present_or_copyin,
6661 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
6662 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
6663 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
6664 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
6665 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
6666 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
6667 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
6668 acc_update_device, acc_update_device_32_h_,
6669 acc_update_device_64_h_, acc_update_device_array_h_,
6670 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
6671 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
6672 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
6673 acc_is_present_64_h_, acc_is_present_array_h_,
6674 acc_memcpy_to_device, acc_memcpy_from_device,
6675 acc_get_current_cuda_device, acc_get_current_cuda_context,
6676 acc_get_cuda_stream, acc_set_cuda_stream.
6677 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
6678 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
6679 GOACC_update, GOACC_wait, GOACC_get_thread_num,
6680 GOACC_get_num_threads.
6681 (GOMP_PLUGIN_1.0): New symbol version. Use for
6682 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
6683 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
6684 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
6685 GOMP_PLUGIN_acc_thread.
6686 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
6687 environment variable.
6688 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
6689 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
6690 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
6691 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
6692 (splay_tree_remove): New declarations.
6693 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
6694 (splay_tree_remove, splay_tree_lookup): Move into...
6695 * splay-tree.c: ... this new file.
6696 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
6697 (splay_tree_node, splay_tree, splay_tree_key)
6698 (struct target_mem_desc, struct splay_tree_key_s)
6699 (struct gomp_device_descr): Don't declare.
6700 (num_devices_openmp): New variable.
6701 (gomp_get_num_devices ): Use it.
6702 (gomp_init_targets_once): New function.
6703 (gomp_get_num_devices ): Use it.
6704 (get_kind, gomp_copy_from_async, gomp_free_memmap)
6705 (gomp_fini_device, gomp_register_image_for_device): New functions.
6706 (gomp_map_vars): Add devaddrs parameter.
6707 (gomp_update): Add mm parameter.
6708 (gomp_init_device): Move most of it into...
6709 (gomp_init_tables): ... this new function.
6710 (gomp_register_images_for_device): Remove function.
6711 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
6712 Make them hidden instead of static.
6713 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
6714 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
6715 (GOMP_target_end_data, GOMP_target_update)
6716 (gomp_load_plugin_for_device, gomp_target_init): Update for
6717 OpenACC changes.
6718 * oacc-async.c: New file.
6719 * oacc-cuda.c: Likewise.
6720 * oacc-host.c: Likewise.
6721 * oacc-init.c: Likewise.
6722 * oacc-int.h: Likewise.
6723 * oacc-mem.c: Likewise.
6724 * oacc-parallel.c: Likewise.
6725 * oacc-plugin.c: Likewise.
6726 * oacc-plugin.h: Likewise.
6727 * oacc-ptx.h: Likewise.
6728 * openacc.f90: Likewise.
6729 * openacc.h: Likewise.
6730 * openacc_lib.h: Likewise.
6731 * plugin/plugin-host.c: Likewise.
6732 * plugin/plugin-nvptx.c: Likewise.
6733 * libgomp-plugin.c: Likewise.
6734 * libgomp-plugin.h: Likewise.
6735 * libgomp_target.h: Remove file after merging content into the
6736 former file. Update all users.
6737 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
6738 (offload_targets_s, offload_targets_s_openacc): New variables.
6739 (check_effective_target_openacc_nvidia_accel_present)
6740 (check_effective_target_openacc_nvidia_accel_selected): New
6741 procedures.
6742 (libgomp_init): Update for OpenACC changes.
6743 * testsuite/libgomp-test-support.exp.in: New file.
6744 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
6745 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6746 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6747 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
6748 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
6749 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6750 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
6751 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
6752 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
6753 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
6754 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
6755 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
6756 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
6757 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6758 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
6759 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
6760 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
6761 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
6762 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
6763 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
6764 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
6765 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
6766 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
6767 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
6768 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6769 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6770 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6771 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6772 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6773 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6774 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6775 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
6776 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
6777 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
6778 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
6779 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6780 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6781 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6782 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
6783 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
6784 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
6785 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
6786 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6787 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6788 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6789 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
6790 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6791 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6792 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6793 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6794 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6795 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
6796 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6797 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6798 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6799 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6800 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6801 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6802 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6803 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
6804 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
6805 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
6806 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6807 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6808 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6809 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
6810 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
6811 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6812 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6813 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6814 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
6815 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6816 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6817 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6818 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
6819 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
6820 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6821 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6822 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
6823 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
6824 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
6825 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
6826 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6827 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6828 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6829 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
6830 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
6831 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6832 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6833 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
6834 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
6835 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
6836 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
6837 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6838 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6839 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6840 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6841 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
6842 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6843 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6844 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
6845 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
6846 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
6847 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6848 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
6849 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
6850 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
6851 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
6852 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
6853 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6854 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
6855 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
6856 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6857 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
6858 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
6859 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
6860 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
6861 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
6862 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
6863 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
6864 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
6865 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
6866 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
6867 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
6868 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
6869 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
6870 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
6871 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
6872 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
6873 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
6874 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
6875 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
6876 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
6877 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
6878 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
6879 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6880 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6881 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6882 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6883 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
6884 Likewise.
6885 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
6886 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
6887 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
6888 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
6889 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
6890 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
6891 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
6892 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
6893 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
6894 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
6895 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
6896 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
6897 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
6898 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
6899 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
6900 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
6901 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
6902 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
6903 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
6904 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
6905 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
6906 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
6907 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
6908 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
6909 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
6910 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
6911 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
6912 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6913 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6914 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6915 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6916 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6917 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6918 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6919 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
6920 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
6921 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
6922 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
6923 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
6924 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
6925 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
6926 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
6927 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
6928 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
6929 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
6930 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
6931 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
6932 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
6933 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6934 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6935 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6936 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6937 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6938 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6939 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
6940 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
6941 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
6942 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
6943 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
6944 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
6945
6946 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
6947 Julian Brown <julian@codesourcery.com>
6948 David Malcolm <dmalcolm@redhat.com>
6949
6950 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
6951 to "GNU Offloading and Multi Processing Runtime Library". Change
6952 all users.
6953 * configure: Regenerate.
6954 * libgomp.texi: Update.
6955
6956 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
6957
6958 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
6959 "$tgt_dir/lib32".
6960 * configure: Regenerate.
6961
6962 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
6963 "intelmic" in $offload_targets.
6964
6965 2015-01-05 Jakub Jelinek <jakub@redhat.com>
6966
6967 Update copyright years.
6968
6969 * libgomp.texi: Bump @copying's copyright year.
6970
6971 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6972
6973 * testsuite/lib/libgomp.exp: Load target-utils.exp.
6974 Move load of target-supportes.exp earlier.
6975
6976 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
6977
6978 * testsuite/libgomp.c/target-9.c: New test.
6979
6980 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
6981
6982 * config.h.in: Regenerate.
6983 * configure: Regenerate.
6984 * configure.ac: Add GCC_CHECK_EMUTLS.
6985 * libgomp.h: Add check for USE_EMUTLS: this case
6986 is equal to HAVE_TLS.
6987 * team.c: Likewise.
6988
6989 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
6990
6991 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
6992
6993 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
6994 Ilya Verbin <ilya.verbin@intel.com>
6995
6996 * testsuite/libgomp.c/target-critical-1.c: New test.
6997
6998 2014-11-26 Jakub Jelinek <jakub@redhat.com>
6999
7000 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
7001 to dg-options unless expensive testing is on.
7002 (TESTITERS): Define to N if not defined.
7003 (main): Use TESTITERS instead of N.
7004 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
7005 dg-additional-options depending on whether expensive testing is on.
7006 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
7007 Decrease N to 100000 and CHUNKSZ to 10000.
7008
7009 2014-11-24 Jakub Jelinek <jakub@redhat.com>
7010
7011 PR fortran/63938
7012 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
7013 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
7014
7015 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
7016
7017 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
7018
7019 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
7020
7021 PR bootstrap/63784
7022 * configure: Regenerated.
7023
7024 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
7025
7026 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
7027 vect_simd_clones effective target.
7028 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
7029
7030 2014-11-14 Jakub Jelinek <jakub@redhat.com>
7031
7032 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
7033 of 32 as block_size.
7034 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
7035 instead of 32 as block_size.
7036
7037 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
7038 Ilya Verbin <ilya.verbin@intel.com>
7039
7040 * Makefile.in: Regenerate.
7041 * configure: Regenerate.
7042 * configure.ac: Set up offload_additional_options,
7043 offload_additional_lib_paths and offload_targets.
7044 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
7045 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
7046 * testsuite/Makefile.in: Regenerate.
7047 * testsuite/lib/libgomp.exp (libgomp_init): Append
7048 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
7049 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
7050 build directory to LD_LIBRARY_PATH for intelmic offload targets.
7051
7052 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
7053 Ilya Verbin <ilya.verbin@intel.com>
7054 Kirill Yukhin <kirill.yukhin@intel.com>
7055 Ilya Tocar <ilya.tocar@intel.com>
7056
7057 * testsuite/lib/libgomp.exp
7058 (check_effective_target_offload_device): New.
7059 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
7060 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
7061 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
7062 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
7063 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
7064 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
7065 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
7066 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
7067 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
7068 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
7069 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
7070 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
7071 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
7072 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
7073 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
7074 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
7075 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
7076 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
7077 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
7078 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
7079 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
7080 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
7081 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
7082 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
7083 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
7084 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
7085 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
7086 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
7087 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
7088 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
7089 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
7090 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
7091 * testsuite/libgomp.c/target-7.c: Fix test.
7092 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
7093 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
7094 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
7095 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
7096 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
7097 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
7098 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
7099 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
7100 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
7101 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
7102 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
7103 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
7104 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
7105 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
7106 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
7107 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
7108 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
7109 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
7110 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
7111 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
7112 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
7113 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
7114 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
7115 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
7116 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
7117 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
7118 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
7119 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
7120 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
7121 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
7122 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
7123
7124 2014-11-13 Jakub Jelinek <jakub@redhat.com>
7125 Ilya Verbin <ilya.verbin@intel.com>
7126 Thomas Schwinge <thomas@codesourcery.com>
7127 Andrey Turetskiy <andrey.turetskiy@intel.com>
7128
7129 * libgomp.map (GOMP_4.0.1): New symbol version.
7130 Add GOMP_offload_register.
7131 * libgomp_target.h: New file.
7132 * splay-tree.h: New file.
7133 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
7134 (gomp_target_init): New forward declaration.
7135 (gomp_is_initialized): New static variable.
7136 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
7137 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
7138 New structures.
7139 (offload_images, num_offload_images, devices, num_devices): New static
7140 variables.
7141 (splay_compare): New static function.
7142 (struct gomp_device_descr): New structure.
7143 (gomp_get_num_devices): Call gomp_target_init.
7144 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
7145 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
7146 (GOMP_offload_register): New function.
7147 (GOMP_target): Arrange for host callback to be performed in a separate
7148 initial thread and contention group, inheriting ICVs from
7149 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
7150 Add device initialization and lookup for target function in splay tree.
7151 (GOMP_target_data): Add device initialization and call gomp_map_vars.
7152 (GOMP_target_end_data): Call gomp_unmap_vars.
7153 (GOMP_target_update): Add device initialization and call gomp_update.
7154 (gomp_load_plugin_for_device, gomp_register_images_for_device)
7155 (gomp_target_init): New static functions.
7156
7157 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
7158 Thomas Schwinge <thomas@codesourcery.com>
7159 Ilya Verbin <ilya.verbin@intel.com>
7160 Andrey Turetskiy <andrey.turetskiy@intel.com>
7161
7162 * config.h.in: Regenerate.
7163 * configure: Regenerate.
7164 * configure.ac: Check for libdl, required for plugin support.
7165 (PLUGIN_SUPPORT): Define if plugins are supported.
7166 (enable_offload_targets): Support Intel MIC targets.
7167 (OFFLOAD_TARGETS): List of target names suitable for offloading.
7168
7169 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7170
7171 PR target/63610
7172 * configure: Regenerate.
7173
7174 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7175
7176 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
7177
7178 2014-10-06 Marek Polacek <polacek@redhat.com>
7179
7180 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
7181 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
7182 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
7183 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
7184
7185 2014-10-06 Marek Polacek <polacek@redhat.com>
7186
7187 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
7188 * testsuite/libgomp.c/nqueens-1.c: Likewise.
7189 * testsuite/libgomp.c/pr26943-3.c: Likewise.
7190 * testsuite/libgomp.c/pr26943-4.c: Likewise.
7191 * testsuite/libgomp.c/pr36802-2.c: Likewise.
7192 * testsuite/libgomp.c/pr36802-3.c: Likewise.
7193 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
7194 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
7195 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
7196 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
7197 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
7198 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
7199 * testsuite/libgomp.c/omp-single-1.c: Likewise.
7200 * testsuite/libgomp.c/omp-single-2.c: Likewise.
7201 * testsuite/libgomp.c/omp_matvec.c: Likewise.
7202 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
7203 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
7204 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
7205 declarations.
7206
7207 2014-10-03 Jakub Jelinek <jakub@redhat.com>
7208
7209 PR libgomp/61200
7210 * testsuite/libgomp.c/pr61200.c: New test.
7211
7212 2014-09-18 Jakub Jelinek <jakub@redhat.com>
7213
7214 PR c++/63248
7215 * testsuite/libgomp.c++/pr63248.C: New test.
7216
7217 2014-08-04 Jakub Jelinek <jakub@redhat.com>
7218
7219 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
7220 is not zero, but taskgroup->children is NULL and there are
7221 any task->children, schedule those instead of waiting.
7222 * testsuite/libgomp.c/depend-6.c: New test.
7223 * testsuite/libgomp.c/depend-7.c: New test.
7224 * testsuite/libgomp.c/depend-8.c: New test.
7225 * testsuite/libgomp.c/depend-9.c: New test.
7226 * testsuite/libgomp.c/depend-10.c: New test.
7227
7228 2014-08-01 Jakub Jelinek <jakub@redhat.com>
7229
7230 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
7231 (struct gomp_taskwait): New type.
7232 (struct gomp_task): Add taskwait and parent_depends_on, remove
7233 in_taskwait and taskwait_sem fields.
7234 (gomp_finish_task): Don't destroy taskwait_sem.
7235 * task.c (gomp_init_task): Don't init in_taskwait, instead init
7236 taskwait and parent_depends_on.
7237 (GOMP_task): For if (0) tasks with depend clause that depend on
7238 earlier tasks don't defer them, instead call
7239 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
7240 Initialize redundant_out field, for redundant out entries just
7241 move them at the end of linked list instead of removing them
7242 completely, and set redundant_out flag instead of redundant.
7243 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
7244 that task.
7245 (gomp_task_run_post_handle_dependers): If parent is in
7246 gomp_task_maybe_wait_for_dependencies and newly runnable task
7247 is not parent_depends_on, queue it in parent->children linked
7248 list after all runnable tasks with parent_depends_on set.
7249 Adjust for addition of taskwait indirection.
7250 (gomp_task_run_post_remove_parent): If parent is in
7251 gomp_task_maybe_wait_for_dependencies and task to be removed
7252 is parent_depends_on, decrement n_depend and if needed awake
7253 parent. Adjust for addition of taskwait indirection.
7254 (GOMP_taskwait): Adjust for addition of taskwait indirection.
7255 (gomp_task_maybe_wait_for_dependencies): New function.
7256 * testsuite/libgomp.c/depend-5.c: New test.
7257
7258 2014-07-13 Tobias Burnus <burnus@net-b.de>
7259
7260 * testsuite/libgomp.fortran/pr34020.f90: Make compile
7261 with TS 18508/Fortran 2015.
7262
7263 2014-07-06 Marek Polacek <polacek@redhat.com>
7264
7265 PR c/6940
7266 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
7267
7268 2014-07-03 Jakub Jelinek <jakub@redhat.com>
7269
7270 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
7271 matches regex $lang_source_re, add $lang_include_flags to options.
7272 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
7273 * testsuite/libgomp.c++/c++.exp: Likewise.
7274 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
7275 and lang_include_flags instead of adding -fintrinsic-modules-path= to
7276 ALWAYS_CFLAGS.
7277 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
7278
7279 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
7280
7281 * testsuite/libgomp.fortran/fortran.exp: Explain
7282 gfortran-dg-runtest usage.
7283
7284 2014-06-25 Jakub Jelinek <jakub@redhat.com>
7285
7286 * testsuite/libgomp.fortran/simd5.f90: New test.
7287 * testsuite/libgomp.fortran/simd6.f90: New test.
7288 * testsuite/libgomp.fortran/simd7.f90: New test.
7289
7290 2014-06-24 Jakub Jelinek <jakub@redhat.com>
7291
7292 * testsuite/libgomp.c/for-2.c: Define SC to static for
7293 #pragma omp for simd testing.
7294 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
7295 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
7296 SC macro.
7297 * testsuite/libgomp.c/simd-14.c: New test.
7298 * testsuite/libgomp.c/simd-15.c: New test.
7299 * testsuite/libgomp.c/simd-16.c: New test.
7300 * testsuite/libgomp.c/simd-17.c: New test.
7301 * testsuite/libgomp.c++/for-10.C: Define SC to static for
7302 #pragma omp for simd testing.
7303 * testsuite/libgomp.c++/simd10.C: New test.
7304 * testsuite/libgomp.c++/simd11.C: New test.
7305 * testsuite/libgomp.c++/simd12.C: New test.
7306 * testsuite/libgomp.c++/simd13.C: New test.
7307
7308 * testsuite/libgomp.fortran/aligned1.f03: New test.
7309 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
7310 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
7311 tasks with !$omp parallel !$omp single.
7312 * testsuite/libgomp.fortran/target8.f90: New test.
7313 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
7314 not to use trim in the combiner, instead call elemental function.
7315 (fn): New elemental function.
7316 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
7317 Make elemental.
7318 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
7319 omp_in): Likewise.
7320 * testsuite/libgomp.fortran/udr12.f90: New test.
7321 * testsuite/libgomp.fortran/udr13.f90: New test.
7322 * testsuite/libgomp.fortran/udr14.f90: New test.
7323 * testsuite/libgomp.fortran/udr15.f90: New test.
7324
7325 2014-06-18 Jakub Jelinek <jakub@redhat.com>
7326
7327 * omp_lib.f90.in (openmp_version): Set to 201307.
7328 * omp_lib.h.in (openmp_version): Likewise.
7329 * testsuite/libgomp.c/target-8.c: New test.
7330 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
7331 and inbranch clauses.
7332 * testsuite/libgomp.fortran/depend-3.f90: New test.
7333 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
7334 openmp_version.
7335 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7336 * testsuite/libgomp.fortran/target1.f90: New test.
7337 * testsuite/libgomp.fortran/target2.f90: New test.
7338 * testsuite/libgomp.fortran/target3.f90: New test.
7339 * testsuite/libgomp.fortran/target4.f90: New test.
7340 * testsuite/libgomp.fortran/target5.f90: New test.
7341 * testsuite/libgomp.fortran/target6.f90: New test.
7342 * testsuite/libgomp.fortran/target7.f90: New test.
7343
7344 2014-06-10 Jakub Jelinek <jakub@redhat.com>
7345
7346 PR fortran/60928
7347 * testsuite/libgomp.fortran/allocatable9.f90: New test.
7348 * testsuite/libgomp.fortran/allocatable10.f90: New test.
7349 * testsuite/libgomp.fortran/allocatable11.f90: New test.
7350 * testsuite/libgomp.fortran/allocatable12.f90: New test.
7351 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
7352 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
7353 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
7354 * testsuite/libgomp.fortran/associate1.f90: New test.
7355 * testsuite/libgomp.fortran/associate2.f90: New test.
7356 * testsuite/libgomp.fortran/procptr1.f90: New test.
7357
7358 2014-06-06 Jakub Jelinek <jakub@redhat.com>
7359
7360 * testsuite/libgomp.fortran/simd1.f90: New test.
7361 * testsuite/libgomp.fortran/udr1.f90: New test.
7362 * testsuite/libgomp.fortran/udr2.f90: New test.
7363 * testsuite/libgomp.fortran/udr3.f90: New test.
7364 * testsuite/libgomp.fortran/udr4.f90: New test.
7365 * testsuite/libgomp.fortran/udr5.f90: New test.
7366 * testsuite/libgomp.fortran/udr6.f90: New test.
7367 * testsuite/libgomp.fortran/udr7.f90: New test.
7368 * testsuite/libgomp.fortran/udr8.f90: New test.
7369 * testsuite/libgomp.fortran/udr9.f90: New test.
7370 * testsuite/libgomp.fortran/udr10.f90: New test.
7371 * testsuite/libgomp.fortran/udr11.f90: New test.
7372
7373 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
7374
7375 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
7376 vect_simd_clones effective target.
7377 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
7378
7379 2014-05-21 Jakub Jelinek <jakub@redhat.com>
7380
7381 PR middle-end/61252
7382 * testsuite/libgomp.c++/simd-9.C: New test.
7383
7384 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
7385
7386 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
7387 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
7388 texts according to their @menu entry positions.
7389
7390 2014-05-11 Jakub Jelinek <jakub@redhat.com>
7391
7392 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
7393 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
7394 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
7395 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
7396 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
7397 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
7398 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
7399 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
7400 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
7401 * testsuite/libgomp.fortran/depend-1.f90: New test.
7402 * testsuite/libgomp.fortran/depend-2.f90: New test.
7403 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
7404 * testsuite/libgomp.fortran/simd1.f90: New test.
7405 * testsuite/libgomp.fortran/simd2.f90: New test.
7406 * testsuite/libgomp.fortran/simd3.f90: New test.
7407 * testsuite/libgomp.fortran/simd4.f90: New test.
7408 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
7409
7410 2014-05-02 Jakub Jelinek <jakub@redhat.com>
7411
7412 * testsuite/libgomp.c/simd-10.c: New test.
7413 * testsuite/libgomp.c/simd-11.c: New test.
7414 * testsuite/libgomp.c/simd-12.c: New test.
7415 * testsuite/libgomp.c/simd-13.c: New test.
7416
7417 2014-04-24 Jakub Jelinek <jakub@redhat.com>
7418
7419 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
7420 atomic type clauses in any order and optional comma in between.
7421 * testsuite/libgomp.c++/atomic-15.C: Likewise.
7422 * testsuite/libgomp.c/atomic-17.c: Likewise.
7423
7424 * testsuite/libgomp.c/simd-7.c: New test.
7425 * testsuite/libgomp.c/simd-8.c: New test.
7426 * testsuite/libgomp.c/simd-9.c: New test.
7427 * testsuite/libgomp.c/loop-16.c: New test.
7428
7429 2014-04-02 Richard Henderson <rth@redhat.com>
7430
7431 * config/linux/futex.h (futex_wait): Get error value from errno.
7432 (futex_wake): Likewise.
7433
7434 2014-03-25 Jakub Jelinek <jakub@redhat.com>
7435
7436 PR c++/60331
7437 * testsuite/libgomp.c++/udr-11.C: New test.
7438 * testsuite/libgomp.c++/udr-12.C: New test.
7439 * testsuite/libgomp.c++/udr-13.C: New test.
7440 * testsuite/libgomp.c++/udr-14.C: New test.
7441 * testsuite/libgomp.c++/udr-15.C: New test.
7442 * testsuite/libgomp.c++/udr-16.C: New test.
7443 * testsuite/libgomp.c++/udr-17.C: New test.
7444 * testsuite/libgomp.c++/udr-18.C: New test.
7445 * testsuite/libgomp.c++/udr-19.C: New test.
7446
7447 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7448
7449 Update copyright years
7450
7451 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7452
7453 * hashtab.h: Use the standard form for the copyright notice.
7454
7455 2014-01-02 Tobias Burnus <burnus@net-b.de>
7456
7457 * libgomp.texi: Bump @copying's copyright year.
7458
7459 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
7460
7461 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
7462 alloca () with __builtin_alloca ().
7463 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
7464 * testsuite/libgomp.c/lock-3.c: Likewise.
7465 * testsuite/libgomp.c/pr48591.c: Likewise.
7466
7467 2013-12-17 Jakub Jelinek <jakub@redhat.com>
7468
7469 PR testsuite/59534
7470 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
7471 comparisons.
7472
7473 2013-12-16 Jakub Jelinek <jakub@redhat.com>
7474
7475 PR libgomp/58756
7476 * testsuite/libgomp.c/pr58756.c: New test.
7477
7478 2013-12-12 Jakub Jelinek <jakub@redhat.com>
7479
7480 PR libgomp/59467
7481 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
7482 !$omp parallel.
7483
7484 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
7485
7486 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
7487 ALWAYS_CFLAGS.
7488 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
7489 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
7490 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
7491 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
7492 Likewise.
7493
7494 * libgomp_g.h: Include <stddef.h> for size_t.
7495
7496 * libgomp.spec.in: Update comment about libgomp's dependencies.
7497 * configure.ac: Likewise.
7498 * configure: Regenerate.
7499
7500 2013-10-16 Tobias Burnus <burnus@net-b.de>
7501
7502 * libgomp.texi: (Runtime Library Routines): Update references for
7503 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
7504 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
7505 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
7506 (Environment Variables): Update references for OpenMP 4.0. Add
7507 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
7508 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
7509 order.
7510
7511 2013-10-14 Jakub Jelinek <jakub@redhat.com>
7512
7513 * env.c (parse_bind_var): Initialize value to avoid
7514 (false positive) warning.
7515
7516 2013-10-12 Jakub Jelinek <jakub@redhat.com>
7517
7518 PR libgomp/58691
7519 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
7520 to check variable.
7521 (gomp_init_num_threads): Move i variable declaration into
7522 #ifdef CPU_ALLOC_SIZE block.
7523 * config/linux/affinity.c (gomp_affinity_init_level): Test
7524 gomp_places_list_len == 0 rather than gomp_places_list == 0
7525 when checking for topology reading error.
7526 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
7527 * env.c (parse_affinity): Add ignore argument, if true, don't populate
7528 gomp_places_list, only parse env var and always return false.
7529 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
7530 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
7531 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
7532 and either of these variables were parsed correctly into a places
7533 list.
7534
7535 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
7536 Jakub Jelinek <jakub@redhat.com>
7537
7538 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
7539 of 5 loopfn matches.
7540 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7541 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7542 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
7543 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7544 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7545 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7546 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7547 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7548
7549 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
7550
7551 * Makefile.am (omp_lib.mod): Streamline rule.
7552 * Makefile.in: Regenerate.
7553
7554 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
7555 exceptions.
7556
7557 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
7558 * testsuite/libgomp.fortran/lib1.f90: Likewise.
7559 * testsuite/libgomp.fortran/lib2.f: Likewise.
7560 * testsuite/libgomp.fortran/lib3.f: Likewise.
7561
7562 * configure.ac: Typo fix.
7563 * configure: Regenerate.
7564
7565 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
7566 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7567
7568 * omp.h.in: Don't touch the user's namespace.
7569
7570 2013-10-11 Jakub Jelinek <jakub@redhat.com>
7571 Tobias Burnus <burnus@net-b.de>
7572 Richard Henderson <rth@redhat.com>
7573
7574 * target.c: New file.
7575 * Makefile.am (libgomp_la_SOURCES): Add target.c.
7576 * Makefile.in: Regenerated.
7577 * libgomp_g.h (GOMP_task): Add depend argument.
7578 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
7579 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
7580 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
7581 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
7582 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
7583 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
7584 GOMP_taskgroup_start, GOMP_taskgroup_end,
7585 GOMP_parallel_sections): New prototypes.
7586 * fortran.c (omp_is_initial_device): Add ialias_redirect.
7587 (omp_is_initial_device_): New function.
7588 (ULP, STR1, STR2, ialias_redirect): Removed.
7589 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
7590 omp_set_default_device_8_, omp_get_default_device_,
7591 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
7592 functions.
7593 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
7594 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
7595 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
7596 @@GOMP_4.0.
7597 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
7598 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
7599 omp_set_default_device, omp_set_default_device_,
7600 omp_set_default_device_8_, omp_get_default_device,
7601 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
7602 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
7603 omp_get_team_num_): Export @@OMP_4.0.
7604 * team.c (struct gomp_thread_start_data): Add place field.
7605 (gomp_thread_start): Clear thr->thread_pool and
7606 thr->task before returning. Use gomp_team_barrier_wait_final
7607 instead of gomp_team_barrier_wait. Initialize thr->place.
7608 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
7609 team_cancelled and task_queued_count fields.
7610 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
7611 before calling pthread_exit.
7612 (gomp_free_thread): No longer static. Use
7613 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
7614 (gomp_team_start): Add flags argument. Set
7615 thr->thread_pool->threads_busy to nthreads immediately after creating
7616 new pool. Use gomp_managed_threads_lock instead of
7617 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
7618 (gomp_team_end): Use gomp_managed_threads_lock instead of
7619 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
7620 of gomp_team_barrier_wait. If team->team_cancelled, call
7621 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
7622 rather than thr->ts.work_share.
7623 (initialize_team): Don't call gomp_sem_init here.
7624 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
7625 caller.
7626 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
7627 * env.c (gomp_global_icv): Add default_device_var, target_data and
7628 bind_var initializers.
7629 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
7630 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
7631 gomp_places_list_len): New variables.
7632 (parse_bind_var, parse_one_place, parse_places_var): New functions.
7633 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
7634 sized places.
7635 (gomp_cancel_var): New global variable.
7636 (parse_int): New function.
7637 (handle_omp_display_env): New function.
7638 (initialize_env): Use it. Initialize default_device_var.
7639 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
7640 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
7641 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
7642 been successfully parsed (and call gomp_init_affinity in that case).
7643 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7644 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7645 omp_get_team_num, omp_is_initial_device): New functions.
7646 * libgomp.h: Include stdlib.h.
7647 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
7648 Define.
7649 (struct target_mem_desc): Forward declare.
7650 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
7651 and thread_limit_var fields.
7652 (gomp_get_num_devices): New prototype.
7653 (gomp_cancel_var): New extern decl.
7654 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
7655 team_cancelled and task_queued_count fields. Add comments about
7656 task_{,queued_,running_}count.
7657 (gomp_cancel_kind): New enum.
7658 (gomp_work_share_end_cancel): New prototype.
7659 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
7660 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
7661 and depend fields.
7662 (struct gomp_taskgroup): New type.
7663 (struct gomp_task_depend_entry,
7664 struct gomp_dependers_vec): New types.
7665 (gomp_finish_task): Free depend_hash if non-NULL.
7666 (struct gomp_team_state): Add place_partition_off
7667 and place_partition_len fields.
7668 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
7669 gomp_places_list_len): New extern decls.
7670 (struct gomp_thread): Add place field.
7671 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
7672 (gomp_init_thread_affinity): Add place argument.
7673 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7674 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7675 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7676 gomp_affinity_init_level, gomp_affinity_print_place): New
7677 prototypes.
7678 (gomp_team_start): Add flags argument.
7679 (gomp_thread_limit_var, gomp_remaining_threads_count,
7680 gomp_remaining_threads_lock): Remove.
7681 (gomp_managed_threads_lock): New variable.
7682 (struct gomp_thread_pool): Add threads_busy field.
7683 (gomp_free_thread): New prototype.
7684 * task.c: Include hashtab.h.
7685 (hash_entry_type): New typedef.
7686 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
7687 (gomp_init_task): Clear dependers, depend_hash, depend_count,
7688 copy_ctors_done and taskgroup fields.
7689 (GOMP_task): Add depend argument, handle depend clauses. If
7690 gomp_team_barrier_cancelled or if it's taskgroup has been
7691 cancelled, don't queue or start new tasks. Set copy_ctors_done
7692 field if needed. Initialize taskgroup field. If copy_ctors_done
7693 and already cancelled, don't discard the task. If taskgroup is
7694 non-NULL, enqueue the task into taskgroup queue. Increment
7695 num_children field in taskgroup. Increment task_queued_count.
7696 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
7697 gomp_task_run_post_remove_taskgroup): New inline functions.
7698 (gomp_task_run_post_handle_depend_hash,
7699 gomp_task_run_post_handle_dependers,
7700 gomp_task_run_post_handle_depend): New functions.
7701 (GOMP_taskwait): Use them. If more than one new tasks
7702 have been queued, wake other threads if needed.
7703 (gomp_barrier_handle_tasks): Likewise. If
7704 gomp_team_barrier_cancelled, don't start any new tasks, just free
7705 all tasks.
7706 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
7707 * omp_lib.f90.in
7708 (omp_proc_bind_kind, omp_proc_bind_false,
7709 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
7710 omp_proc_bind_spread): New params.
7711 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7712 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7713 omp_get_team_num, omp_is_initial_device): New interfaces.
7714 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
7715 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
7716 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
7717 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
7718 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
7719 useless use omp_lib_kinds.
7720 * omp.h.in (omp_proc_bind_t): New typedef.
7721 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7722 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7723 omp_get_team_num, omp_is_initial_device): New prototypes.
7724 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
7725 through to gomp_team_start.
7726 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
7727 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
7728 Adjust gomp_parallel_loop_start callers.
7729 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
7730 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
7731 GOMP_loop_end_cancel): New functions.
7732 (GOMP_parallel_end): Add ialias_redirect.
7733 * hashtab.h: New file.
7734 * libgomp.texi (Environment Variables): Minor cleanup,
7735 update section refs to OpenMP 4.0rc2.
7736 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
7737 environment variables.
7738 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
7739 team->work_shares_to_free to thr->ts.work_share before calling
7740 free_work_share.
7741 (gomp_work_share_end_cancel): New function.
7742 * config/linux/proc.c: Include errno.h.
7743 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
7744 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
7745 sizeof (cpu_set_t) to determine number of iterations. Fix up check
7746 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
7747 gomp_cpuset_size is sizeof (cpu_set_t).
7748 (gomp_init_num_threads): Initialize gomp_cpuset_size,
7749 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
7750 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
7751 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
7752 contain any logical CPUs.
7753 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
7754 is NULL. Use gomp_cpusetp instead of &cpuset and pass
7755 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
7756 pthread_getaffinity_np. Check gomp_places_list instead of
7757 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
7758 * config/linux/bar.c (gomp_barrier_wait_end,
7759 gomp_barrier_wait_last): Use BAR_* defines.
7760 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
7761 from state where needed. Set work_share_cancelled to 0 on last
7762 thread.
7763 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
7764 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
7765 functions.
7766 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
7767 Add cpusetsize argument.
7768 (gomp_cpuset_size, gomp_cpusetp): Declare.
7769 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
7770 (affinity_counter): Remove.
7771 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
7772 if CPU_ALLOC_SIZE isn't defined.
7773 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
7774 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
7775 bind current thread to the first place.
7776 (gomp_init_thread_affinity): Rewritten. Add place argument, just
7777 pthread_setaffinity_np to gomp_places_list[place].
7778 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7779 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7780 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7781 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
7782 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
7783 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
7784 (gomp_barrier_t): Add awaited_final field.
7785 (gomp_barrier_init): Initialize awaited_final field.
7786 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
7787 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
7788 prototypes.
7789 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
7790 defines.
7791 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
7792 gomp_team_barrier_cancelled): New inline functions.
7793 (gomp_barrier_last_thread,
7794 gomp_team_barrier_set_task_pending,
7795 gomp_team_barrier_clear_task_pending,
7796 gomp_team_barrier_set_waiting_for_tasks,
7797 gomp_team_barrier_waiting_for_tasks,
7798 gomp_team_barrier_done): Use BAR_* defines.
7799 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
7800 (gomp_barrier_wait_end): Use BAR_* defines.
7801 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
7802 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
7803 Use BAR_* defines.
7804 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
7805 gomp_team_barrier_cancel): New functions.
7806 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
7807 argument.
7808 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7809 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7810 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7811 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
7812 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
7813 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
7814 (gomp_barrier_t): Add cancellable field.
7815 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
7816 gomp_team_barrier_cancel): New prototypes.
7817 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
7818 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
7819 gomp_team_barrier_cancelled): New inline functions.
7820 (gomp_barrier_wait_start, gomp_barrier_last_thread,
7821 gomp_team_barrier_set_task_pending,
7822 gomp_team_barrier_clear_task_pending,
7823 gomp_team_barrier_set_waiting_for_tasks,
7824 gomp_team_barrier_waiting_for_tasks,
7825 gomp_team_barrier_done): Use BAR_* defines.
7826 * barrier.c (GOMP_barrier_cancel): New function.
7827 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
7828 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
7829 omp_proc_bind_spread): New params.
7830 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7831 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7832 omp_get_team_num, omp_is_initial_device): New externals.
7833 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
7834 New functions.
7835 (gomp_resolve_num_threads): Adjust for thread_limit now being in
7836 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
7837 infinity. If not nested, just return minimum of max_num_threads
7838 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
7839 to the returned value. Otherwise, don't update atomically
7840 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
7841 (GOMP_parallel_end): Adjust for thread_limit now being in
7842 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
7843 infinity. Adjust threads_busy in the pool rather than
7844 gomp_remaining_threads_count. Remember team->nthreads and call
7845 gomp_team_end before adjusting threads_busy, if not nested
7846 afterwards, just set it to 1 non-atomically. Add ialias.
7847 (GOMP_parallel_start): Adjust gomp_team_start caller.
7848 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
7849 * testsuite/libgomp.c/affinity-1.c: New test.
7850 * testsuite/libgomp.c/atomic-15.c: New test.
7851 * testsuite/libgomp.c/atomic-16.c: New test.
7852 * testsuite/libgomp.c/atomic-17.c: New test.
7853 * testsuite/libgomp.c/cancel-for-1.c: New test.
7854 * testsuite/libgomp.c/cancel-for-2.c: New test.
7855 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
7856 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
7857 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
7858 * testsuite/libgomp.c/cancel-sections-1.c: New test.
7859 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
7860 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
7861 * testsuite/libgomp.c/depend-1.c: New test.
7862 * testsuite/libgomp.c/depend-2.c: New test.
7863 * testsuite/libgomp.c/depend-3.c: New test.
7864 * testsuite/libgomp.c/depend-4.c: New test.
7865 * testsuite/libgomp.c/for-1.c: New test.
7866 * testsuite/libgomp.c/for-1.h: New file.
7867 * testsuite/libgomp.c/for-2.c: New test.
7868 * testsuite/libgomp.c/for-2.h: New file.
7869 * testsuite/libgomp.c/for-3.c: New test.
7870 * testsuite/libgomp.c/pr58392.c: New test.
7871 * testsuite/libgomp.c/simd-1.c: New test.
7872 * testsuite/libgomp.c/simd-2.c: New test.
7873 * testsuite/libgomp.c/simd-3.c: New test.
7874 * testsuite/libgomp.c/simd-4.c: New test.
7875 * testsuite/libgomp.c/simd-5.c: New test.
7876 * testsuite/libgomp.c/simd-6.c: New test.
7877 * testsuite/libgomp.c/target-1.c: New test.
7878 * testsuite/libgomp.c/target-2.c: New test.
7879 * testsuite/libgomp.c/target-3.c: New test.
7880 * testsuite/libgomp.c/target-4.c: New test.
7881 * testsuite/libgomp.c/target-5.c: New test.
7882 * testsuite/libgomp.c/target-6.c: New test.
7883 * testsuite/libgomp.c/target-7.c: New test.
7884 * testsuite/libgomp.c/taskgroup-1.c: New test.
7885 * testsuite/libgomp.c/thread-limit-1.c: New test.
7886 * testsuite/libgomp.c/thread-limit-2.c: New test.
7887 * testsuite/libgomp.c/thread-limit-3.c: New test.
7888 * testsuite/libgomp.c/udr-1.c: New test.
7889 * testsuite/libgomp.c/udr-2.c: New test.
7890 * testsuite/libgomp.c/udr-3.c: New test.
7891 * testsuite/libgomp.c++/affinity-1.C: New test.
7892 * testsuite/libgomp.c++/atomic-10.C: New test.
7893 * testsuite/libgomp.c++/atomic-11.C: New test.
7894 * testsuite/libgomp.c++/atomic-12.C: New test.
7895 * testsuite/libgomp.c++/atomic-13.C: New test.
7896 * testsuite/libgomp.c++/atomic-14.C: New test.
7897 * testsuite/libgomp.c++/atomic-15.C: New test.
7898 * testsuite/libgomp.c++/cancel-for-1.C: New test.
7899 * testsuite/libgomp.c++/cancel-for-2.C: New test.
7900 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
7901 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
7902 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
7903 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
7904 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
7905 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
7906 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
7907 * testsuite/libgomp.c++/cancel-test.h: New file.
7908 * testsuite/libgomp.c++/for-9.C: New test.
7909 * testsuite/libgomp.c++/for-10.C: New test.
7910 * testsuite/libgomp.c++/for-11.C: New test.
7911 * testsuite/libgomp.c++/simd-1.C: New test.
7912 * testsuite/libgomp.c++/simd-2.C: New test.
7913 * testsuite/libgomp.c++/simd-3.C: New test.
7914 * testsuite/libgomp.c++/simd-4.C: New test.
7915 * testsuite/libgomp.c++/simd-5.C: New test.
7916 * testsuite/libgomp.c++/simd-6.C: New test.
7917 * testsuite/libgomp.c++/simd-7.C: New test.
7918 * testsuite/libgomp.c++/simd-8.C: New test.
7919 * testsuite/libgomp.c++/target-1.C: New test.
7920 * testsuite/libgomp.c++/target-2.C: New test.
7921 * testsuite/libgomp.c++/target-2-aux.cc: New file.
7922 * testsuite/libgomp.c++/target-3.C: New test.
7923 * testsuite/libgomp.c++/taskgroup-1.C: New test.
7924 * testsuite/libgomp.c++/udr-1.C: New test.
7925 * testsuite/libgomp.c++/udr-2.C: New test.
7926 * testsuite/libgomp.c++/udr-3.C: New test.
7927 * testsuite/libgomp.c++/udr-4.C: New test.
7928 * testsuite/libgomp.c++/udr-5.C: New test.
7929 * testsuite/libgomp.c++/udr-6.C: New test.
7930 * testsuite/libgomp.c++/udr-7.C: New test.
7931 * testsuite/libgomp.c++/udr-8.C: New test.
7932 * testsuite/libgomp.c++/udr-9.C: New test.
7933
7934 2013-09-20 Jakub Jelinek <jakub@redhat.com>
7935
7936 PR testsuite/57605
7937 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
7938 ALWAYS_CFLAGS.
7939
7940 2013-09-20 Alan Modra <amodra@gmail.com>
7941
7942 * configure: Regenerate.
7943
7944 2013-09-19 Jakub Jelinek <jakub@redhat.com>
7945
7946 * testsuite/libgomp.c/sections-2.c: New test.
7947
7948 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
7949
7950 * testsuite/libgomp.fortran/strassen.f90:
7951 Add dg-skip-if aarch64_tiny.
7952
7953 2013-06-20 Iain Sandoe <iain@codesourcery.com>
7954 Cesar Philippidis <cesar@codesourcery.com>
7955
7956 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
7957 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
7958 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
7959 * testsuite/libgomp.fortran/fortran.exp: Likewise.
7960 * testsuite/libgomp.graphite/graphite.exp: Likewise.
7961 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
7962 Use dg-runtest rather than gfortran-dg-runtest.
7963
7964 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
7965
7966 * testsuite/libgomp.c/icv-2.c: Extend current handling of
7967 Linux-based x86 systems to cover all GNU systems.
7968 * testsuite/libgomp.c/lock-3.c: Likewise.
7969 * testsuite/libgomp.c/pr48591.c: Likewise.
7970
7971 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
7972
7973 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
7974 GNU/Hurd, as done for Linux-based systems.
7975
7976 * config/posix/ptrlock.h: Fix comment.
7977
7978 2013-05-27 Tobias Burnus <burnus@net-b.de>
7979
7980 PR fortran/57423
7981 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
7982 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
7983 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
7984 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
7985 omp_destroy_nest_lock): Correct arguments to match the one in
7986 the OpenMP spec.
7987 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
7988 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
7989 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
7990 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
7991
7992 2013-05-16 Jakub Jelinek <jakub@redhat.com>
7993
7994 * testsuite/libgomp.c/loop-13.c: New test.
7995 * testsuite/libgomp.c/loop-14.c: New test.
7996 * testsuite/libgomp.c/loop-15.c: New test.
7997 * testsuite/libgomp.c++/loop-13.C: New test.
7998 * testsuite/libgomp.c++/loop-14.C: New test.
7999 * testsuite/libgomp.c++/loop-15.C: New test.
8000
8001 2013-02-06 Jakub Jelinek <jakub@redhat.com>
8002
8003 PR middle-end/56217
8004 * testsuite/libgomp.c++/pr56217.C: New test.
8005
8006 2013-02-01 Alan Modra <amodra@gmail.com>
8007
8008 * task.c (GOMP_task, GOMP_taskwait): Comment.
8009
8010 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
8011 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
8012
8013 PR libgomp/55561
8014 * config/linux/wait.h (do_spin): Use atomic load for addr.
8015 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
8016 for intptr and ptrlock.
8017 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
8018 for ptrlock.
8019
8020 2013-01-22 Alan Modra <amodra@gmail.com>
8021
8022 PR libgomp/51376
8023 PR libgomp/56073
8024 * task.c (GOMP_task): Revert 2011-12-09 change.
8025 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
8026 barrier to read task->children..
8027 (gomp_barrier_handle_tasks): ..and matching atomic store with
8028 release barrier here when setting parent->children to NULL.
8029
8030 2013-01-16 Jakub Jelinek <jakub@redhat.com>
8031 Tobias Burnus <burnus@net-b.de>
8032
8033 PR driver/55884
8034 * testsuite/libgomp.fortran/fortran.exp: Use
8035 -fintrinsic-modules-path= instead of
8036 -fintrinsic-modules-path.
8037
8038 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
8039
8040 Update copyright years.
8041
8042 2012-12-19 Tobias Burnus <burnus@net-b.de>
8043
8044 * testsuite/libgomp.fortran/fortran.exp: Set
8045 -fintrinsic-modules-path.
8046
8047 2012-12-19 Tobias Burnus <burnus@net-b.de>
8048
8049 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
8050 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
8051
8052 2012-11-21 Jakub Jelinek <jakub@redhat.com>
8053
8054 PR libgomp/55411
8055 * team.c (gomp_free_thread): Decrease gomp_managed_threads
8056 if pool had any threads_used.
8057
8058 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
8059
8060 * testsuite/libgomp.c++/pr24455.C: Use
8061 -Wl,-undefined,dynamic_lookup on darwin.
8062
8063 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
8064
8065 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
8066
8067 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
8068
8069 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
8070
8071 2012-10-23 Ian Bolton <ian.bolton@arm.com>
8072 Jim MacArthur <jim.macarthur@arm.com>
8073 Marcus Shawcroft <marcus.shawcroft@arm.com>
8074 Nigel Stephens <nigel.stephens@arm.com>
8075 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8076 Richard Earnshaw <rearnsha@arm.com>
8077 Sofiane Naci <sofiane.naci@arm.com>
8078 Stephen Thomas <stephen.thomas@arm.com>
8079 Tejas Belagod <tejas.belagod@arm.com>
8080 Yufeng Zhang <yufeng.zhang@arm.com>
8081
8082 * configure.tgt: Add AArch64.
8083
8084 2012-10-04 Jason Merrill <jason@redhat.com>
8085
8086 * testsuite/libgomp.c++/tls-init1.C: New.
8087
8088 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
8089
8090 * configure: Regenerated.
8091
8092 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
8093
8094 * config/linux/mips/futex.h (sys_futex0): Change to static
8095 function with noinline, nomips16 attributes under MIPS16. Adjust
8096 asm statement to place 'li v0,SYS_futex' immediately before
8097 syscall insn.
8098
8099 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
8100
8101 * libgomp.texi (Library Index): Renamed from "Index" to prevent
8102 conflict with index.html on case-insensitive file systems.
8103
8104 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
8105
8106 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
8107 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
8108
8109 2012-07-02 Richard Guenther <rguenther@suse.de>
8110 Michael Matz <matz@suse.de>
8111 Tobias Grosser <tobias@grosser.es>
8112 Sebastian Pop <sebpop@gmail.com>
8113
8114 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
8115 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
8116 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8117 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8118
8119 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
8120
8121 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
8122
8123 2012-06-22 Richard Guenther <rguenther@suse.de>
8124
8125 Merge from graphite branch
8126 2012-01-13 Tobias Grosser <tobias@grosser.es>
8127
8128 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8129 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
8130
8131 2012-06-07 Jakub Jelinek <jakub@redhat.com>
8132
8133 PR middle-end/53580
8134 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
8135 use GOMP_barrier () call instead.
8136 * testsuite/libgomp.c/pr26943-3.c: Likewise.
8137 * testsuite/libgomp.c/pr26943-4.c: Likewise.
8138 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
8139 call GOMP_barrier instead.
8140 * testsuite/libgomp.fortran/vla5.f90: Likewise.
8141
8142 2012-06-06 Jakub Jelinek <jakub@redhat.com>
8143
8144 PR libgomp/52993
8145 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
8146 argument to memset call.
8147
8148 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
8149
8150 * configure: Regenerated.
8151
8152 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
8153
8154 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
8155
8156 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
8157
8158 PR bootstrap/52812
8159 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
8160
8161 2012-03-22 Jakub Jelinek <jakub@redhat.com>
8162
8163 PR middle-end/52547
8164 * testsuite/libgomp.c/pr52547.c: New test.
8165
8166 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
8167
8168 * testsuite/lib/libgomp.exp: load fortran-modules.exp
8169
8170 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8171
8172 * configure.tgt (mips-sgi-irix6*): Remove.
8173
8174 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8175
8176 * configure.tgt (alpha*-dec-osf*): Remove.
8177
8178 * config/osf/sem.h: Remove.
8179 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
8180
8181 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
8182
8183 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
8184
8185 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8186
8187 PR libstdc++/52188
8188 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
8189 Remove ENABLE_SYMVERS_SOL2.
8190 * configure: Regenerate.
8191 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
8192 (PREPROCESS): New variable.
8193 (libgomp.ver): New target.
8194 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
8195 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
8196 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
8197 Use libgomp.ver.
8198 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
8199 * Makefile.in: Regenerate.
8200
8201 2012-02-14 Walter Lee <walt@tilera.com>
8202
8203 * configure.tgt: Handle tilegx and tilepro.
8204 * config/linux/tile/futex.h: New file.
8205
8206 2012-02-08 Richard Guenther <rguenther@suse.de>
8207
8208 PR tree-optimization/46886
8209 * testsuite/libgomp.c/pr46886.c: New testcase.
8210
8211 2012-01-25 Matthias Klose <doko@ubuntu.com>
8212
8213 * config/linux/arm: Remove empty directory.
8214 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
8215
8216 2011-12-09 Alan Modra <amodra@gmail.com>
8217
8218 PR libgomp/51376
8219 * task.c (GOMP_taskwait): Don't access task->children outside of
8220 task_lock mutex region.
8221 (GOMP_task): Likewise.
8222
8223 2011-12-06 Jakub Jelinek <jakub@redhat.com>
8224
8225 PR libgomp/51132
8226 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
8227 to file scope.
8228 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
8229 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
8230 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8231 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8232 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
8233
8234 2011-12-02 Alan Modra <amodra@gmail.com>
8235
8236 * config/linux/affinity.c: Use atomic rather than sync builtin.
8237 * config/linux/lock.c: Likewise.
8238 * config/linux/ptrlock.h: Likewise.
8239 * config/linux/ptrlock.c: Likewise.
8240 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
8241 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
8242 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
8243 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
8244 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
8245 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
8246 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
8247 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
8248 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
8249 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
8250
8251 2011-11-30 Alan Modra <amodra@gmail.com>
8252
8253 PR libgomp/51298
8254 * config/linux/bar.h: Use atomic rather than sync builtins.
8255 * config/linux/bar.c: Likewise. Add missing acquire
8256 synchronisation on generation field.
8257 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
8258 double unlock.
8259
8260 2011-11-30 Alan Modra <amodra@gmail.com>
8261
8262 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
8263 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
8264 * config/linux/mutex.h: Use atomic rather than sync builtins.
8265 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
8266 * config/linux/omp-lock.h: Comment fix.
8267 * config/linux/arm/mutex.h: Delete.
8268 * config/linux/powerpc/mutex.h: Delete.
8269 * config/linux/ia64/mutex.h: Delete.
8270 * config/linux/mips/mutex.h: Delete.
8271
8272 2011-11-30 Alan Modra <amodra@gmail.com>
8273
8274 PR libgomp/51249
8275 * config/linux/sem.h: Rewrite.
8276 * config/linux/sem.c: Rewrite.
8277
8278 2011-11-28 Richard Henderson <rth@redhat.com>
8279
8280 * libgomp.h (enum memmodel): New.
8281
8282 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
8283
8284 * configure: Regenerate.
8285
8286 2011-10-10 Matthias Klose <doko@ubuntu.com>
8287
8288 * config/posix95: Remove empty directory.
8289
8290 2011-08-26 Jakub Jelinek <jakub@redhat.com>
8291
8292 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
8293
8294 2011-08-19 Jakub Jelinek <jakub@redhat.com>
8295
8296 PR fortran/49792
8297 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
8298 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
8299
8300 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8301
8302 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
8303
8304 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8305
8306 PR libgomp/49965
8307 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
8308
8309 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
8310
8311 * config/linux/proc.h: New.
8312 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
8313 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
8314 (gomp_init_num_threads): Update call to cpuset_popcount.
8315 (get_num_procs): Ditto.
8316 * config/linux/affinity.c (gomp_init_affinity): Call
8317 gomp_cpuset_popcount.
8318
8319 2011-08-02 Jakub Jelinek <jakub@redhat.com>
8320
8321 PR fortran/42041
8322 PR fortran/46752
8323 * omp.h.in (omp_in_final): New prototype.
8324 * omp_lib.f90.in (omp_in_final): New interface.
8325 (omp_integer_kind, omp_logical_kind): Remove
8326 and replace all its uses in the module with 4.
8327 (openmp_version): Change to 201107.
8328 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
8329 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
8330 kind for the parameters.
8331 (omp_in_final): New external.
8332 (openmp_version): Change to 201107.
8333 * task.c (omp_in_final): New function.
8334 (gomp_init_task): Initialize final_task.
8335 (GOMP_task): Remove unused attribute from flags. Handle final
8336 tasks.
8337 (GOMP_taskyield): New function.
8338 (omp_in_final): Return true if if (false) or final (true) task
8339 or descendant of final (true).
8340 * fortran.c (omp_in_final_): New function.
8341 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
8342 (GOMP_3.0): Export GOMP_taskyield.
8343 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
8344 variables.
8345 (parse_unsigned_long_list): New function.
8346 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
8347 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
8348 even if parse_affinity returned false.
8349 * config/linux/affinity.c (gomp_init_affinity): Handle
8350 gomp_cpu_affinity_len == 0.
8351 * libgomp_g.h (GOMP_taskyield): New prototype.
8352 * libgomp.h (struct gomp_task): Add final_task field.
8353 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
8354 * team.c (gomp_team_start): Override new task's nthreads_var icv
8355 if list form OMP_NUM_THREADS has been used and it has value for
8356 the new nesting level.
8357
8358 * testsuite/libgomp.c/atomic-11.c: New test.
8359 * testsuite/libgomp.c/atomic-12.c: New test.
8360 * testsuite/libgomp.c/atomic-13.c: New test.
8361 * testsuite/libgomp.c/atomic-14.c: New test.
8362 * testsuite/libgomp.c/reduction-6.c: New test.
8363 * testsuite/libgomp.c/task-5.c: New test.
8364 * testsuite/libgomp.c++/atomic-2.C: New test.
8365 * testsuite/libgomp.c++/atomic-3.C: New test.
8366 * testsuite/libgomp.c++/atomic-4.C: New test.
8367 * testsuite/libgomp.c++/atomic-5.C: New test.
8368 * testsuite/libgomp.c++/atomic-6.C: New test.
8369 * testsuite/libgomp.c++/atomic-7.C: New test.
8370 * testsuite/libgomp.c++/atomic-8.C: New test.
8371 * testsuite/libgomp.c++/atomic-9.C: New test.
8372 * testsuite/libgomp.c++/task-8.C: New test.
8373 * testsuite/libgomp.c++/reduction-4.C: New test.
8374 * testsuite/libgomp.fortran/allocatable7.f90: New test.
8375 * testsuite/libgomp.fortran/allocatable8.f90: New test.
8376 * testsuite/libgomp.fortran/crayptr3.f90: New test.
8377 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
8378 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
8379 * testsuite/libgomp.fortran/pointer1.f90: New test.
8380 * testsuite/libgomp.fortran/pointer2.f90: New test.
8381 * testsuite/libgomp.fortran/task4.f90: New test.
8382
8383 2011-08-02 Tobias Burnus <burnus@net-b.de>
8384
8385 * libgomp.texi: Update OpenMP spec references to 3.1.
8386 (omp_in_final,OMP_PROC_BIND): New sections.
8387 (OMP_NUM_THREADS): Document that the value can be now a list.
8388 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
8389
8390 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
8391
8392 * config/linux/x86/futex.h: Check __x86_64__ instead of
8393 __LP64__.
8394
8395 2011-07-29 Jakub Jelinek <jakub@redhat.com>
8396
8397 PR middle-end/49897
8398 PR middle-end/49898
8399 * testsuite/libgomp.c/pr49897-1.c: New test.
8400 * testsuite/libgomp.c/pr49897-2.c: New test.
8401 * testsuite/libgomp.c/pr49898-1.c: New test.
8402 * testsuite/libgomp.c/pr49898-2.c: New test.
8403
8404 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
8405
8406 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
8407 for ia32 instead of ilp32.
8408
8409 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
8410 * testsuite/libgomp.c/atomic-6.c: Likewise.
8411
8412 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
8413
8414 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
8415 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
8416
8417 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8418
8419 PR libgomp/45351
8420 * config/osf/sem.h: New file.
8421 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
8422
8423 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8424
8425 PR target/49541
8426 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
8427 ldflags.
8428
8429 2011-07-15 Jakub Jelinek <jakub@redhat.com>
8430
8431 * config/linux/wait.h (do_spin): New inline, largely copied
8432 from do_wait, just don't do futex_wait here, instead return true if
8433 it should be done.
8434 (do_wait): Implement using do_spin.
8435 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
8436 to prototype.
8437 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
8438 __sync_bool_compare_and_swap, pass the oldval to
8439 gomp_mutex_lock_slow.
8440 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
8441 If all mutex contenders are just spinning and not sleeping, don't
8442 change state to 2 unnecessarily. Optimize the loop when state has
8443 already become 2 to use just one atomic operation per loop instead
8444 of two.
8445 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
8446 to prototype.
8447 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
8448 __sync_bool_compare_and_swap, pass the oldval to
8449 gomp_mutex_lock_slow.
8450
8451 2011-06-22 Jakub Jelinek <jakub@redhat.com>
8452
8453 PR libgomp/49490
8454 * iter.c (gomp_iter_static_next): For chunk size 0
8455 only use n ceil/ nthreads size for the first
8456 n % nthreads threads in the team instead of
8457 all threads except for the last few ones which
8458 get less work or none at all.
8459 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
8460 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
8461 chunk argument, set run_sched_modifier to 0 for static
8462 resp. 1 for other kinds. If chunk argument is 0
8463 and not static, set value to 1.
8464
8465 2011-05-19 Jakub Jelinek <jakub@redhat.com>
8466
8467 PR c++/49043
8468 * testsuite/libgomp.c++/pr49043.C: New test.
8469
8470 PR c++/48869
8471 * testsuite/libgomp.c++/pr48869.C: New test.
8472
8473 2011-05-06 Jakub Jelinek <jakub@redhat.com>
8474
8475 PR fortran/48894
8476 * fortran.c: Include limits.h.
8477 (TO_INT): Define.
8478 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
8479 *set.
8480 (omp_set_num_threads_8_, omp_set_schedule_8_,
8481 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
8482 omp_get_team_size_8_): Use TO_INT macro.
8483 * testsuite/libgomp.fortran/pr48894.f90: New test.
8484
8485 2011-04-13 Jakub Jelinek <jakub@redhat.com>
8486
8487 PR middle-end/48591
8488 * testsuite/libgomp.c/pr48591.c: New test.
8489
8490 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8491
8492 PR bootstrap/48135
8493 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
8494 * configure: Regenerate.
8495
8496 2011-02-27 Jakub Jelinek <jakub@redhat.com>
8497
8498 PR fortran/47886
8499 * testsuite/libgomp.fortran/task3.f90: New test.
8500
8501 2011-02-24 Tobias Burnus <burnus@net-b.de>
8502
8503 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
8504
8505 2011-02-23 Jakub Jelinek <jakub@redhat.com>
8506
8507 PR libgomp/47854
8508 * libgomp.texi (omp_get_wtime): Don't say time in the past
8509 must be Unix Epoch.
8510
8511 2011-02-18 Jakub Jelinek <jakub@redhat.com>
8512
8513 PR libgomp/47804
8514 * testsuite/libgomp.fortran/fortran.exp: Check for both
8515 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
8516 but $blddir != "", still append ${blddir}/${lang_library_path}
8517 to ld_library_path.
8518
8519 2011-02-16 Tobias Burnus <burnus@net-b.de>
8520
8521 PR libgomp/47758
8522 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
8523 of libquadmath.a before adding its libpath to ldflags.
8524
8525 2011-02-14 Jakub Jelinek <jakub@redhat.com>
8526
8527 PR libgomp/47731
8528 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
8529 to FUTEX_WAIT futex syscall.
8530 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
8531
8532 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8533
8534 * configure: Regenerate.
8535
8536 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
8537
8538 PR libstdc++/36104
8539 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
8540
8541 2011-01-16 Gerald Pfeifer
8542
8543 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
8544
8545 2010-12-14 Jakub Jelinek <jakub@redhat.com>
8546
8547 PR fortran/46874
8548 * libgomp.fortran/allocatable6.f90: New test.
8549
8550 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8551
8552 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
8553 * configure: Regenerate.
8554
8555 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
8556
8557 PR target/40125
8558 PR lto/46695
8559 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
8560 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
8561 * aclocal.m4: Regenerate.
8562 * configure: Regenerate.
8563 * Makefile.in: Regenerate.
8564 * testsuite/Makefile.in: Regenerate.
8565
8566 2010-12-02 Jakub Jelinek <jakub@redhat.com>
8567
8568 PR fortran/46753
8569 * libgomp.fortran/pr46753.f90: New test.
8570
8571 PR libgomp/43706
8572 * env.c (initialize_env): Default to spin count 300000
8573 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
8574 is specified.
8575
8576 PR libgomp/45240
8577 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
8578 at the end if sync builtins aren't supported.
8579
8580 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8581
8582 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
8583
8584 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8585
8586 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
8587
8588 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
8589
8590 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
8591
8592 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8593 Tobias Burnus <burnus@net-b.de>
8594
8595 PR fortran/32049
8596 * configure.ac:
8597 * configure: Regenerate.
8598
8599 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
8600
8601 * config/linux/futex.h: New.
8602 * config/linux/arm/mutex.h: New.
8603 * configure.tgt (arm*-*-linux*): Add config path.
8604
8605 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8606
8607 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8608
8609 2010-09-23 Tobias Burnus <burnus@net-b.de>
8610
8611 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
8612 Change Fortran datatype to LOGICAL.
8613 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
8614 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
8615
8616 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8617
8618 * configure: Regenerate.
8619
8620 2010-07-26 Jakub Jelinek <jakub@redhat.com>
8621
8622 * libgomp.texi: Add function keyword to a couple of Fortran
8623 interfaces, use integer instead of int for Fortran.
8624
8625 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
8626
8627 * libgomp.texi: Fix spelling and pasto problems throughout.
8628 Adjust prototypes to match code.
8629
8630 2010-07-24 Tobias Burnus <burnus@net-b.de>
8631
8632 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
8633 silence -fwhole-file warning.
8634
8635 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8636
8637 * configure.tgt (*-*-solaris2.[56]*): Removed.
8638
8639 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8640
8641 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
8642 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
8643 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
8644 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
8645 targetting solaris2*.
8646 * configure: Regenerate.
8647 * config.h.in: Regenerate.
8648
8649 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
8650 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
8651 Add libgomp_version_dep.
8652 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
8653 versioning.
8654 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
8655 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
8656 * Makefile.in: Regenerate.
8657
8658 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
8659 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
8660 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
8661 to common block, protected by
8662 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
8663
8664 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
8665
8666 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
8667
8668 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
8669
8670 PR bootstrap/43170
8671 * configure: Regenerate.
8672
8673 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8674
8675 PR other/43620
8676 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
8677 * configure: Regenerate.
8678 * Makefile.in: Regenerate.
8679 * testsuite/Makefile.in: Regenerate.
8680
8681 2010-04-26 Jakub Jelinek <jakub@redhat.com>
8682
8683 PR c/43893
8684 * testsuite/libgomp.c/pr43893.c: New test.
8685 * testsuite/libgomp.c++/pr43893.C: New test.
8686
8687 2010-04-21 Jakub Jelinek <jakub@redhat.com>
8688
8689 PR middle-end/43570
8690 * testsuite/libgomp.fortran/vla8.f90: New test.
8691
8692 2010-04-20 Jakub Jelinek <jakub@redhat.com>
8693
8694 PR libgomp/43706
8695 * config/linux/affinity.c (gomp_init_affinity): Decrease
8696 gomp_available_cpus if affinity mask confines the process to fewer
8697 CPUs.
8698 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
8699 non-NULL, just return gomp_available_cpus.
8700
8701 PR libgomp/43569
8702 * sections.c (gomp_sections_init): Initialize ws->mode.
8703
8704 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
8705
8706 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
8707 not unused bar variable.
8708 * configure: Regenerate.
8709
8710 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8711
8712 * Makefile.in: Regenerate.
8713 * aclocal.m4: Regenerate.
8714 * testsuite/Makefile.in: Regenerate.
8715
8716 2010-03-22 Jakub Jelinek <jakub@redhat.com>
8717
8718 PR libgomp/42942
8719 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
8720 (initialize_env): Adjust callers.
8721 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
8722 when the argument is 0.
8723
8724 * testsuite/libgomp.c/pr42942.c: New test.
8725
8726 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
8727
8728 PR middle-end/42644
8729 PR middle-end/42130
8730 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8731 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
8732
8733 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8734
8735 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
8736 * testsuite/libgomp.c++/task-6.C: Likewise.
8737
8738 2010-01-28 Steve Ellcey <sje@cup.hp.com>
8739
8740 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
8741
8742 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
8743
8744 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
8745 * configure: Regenerate.
8746
8747 2010-01-26 Jakub Jelinek <jakub@redhat.com>
8748
8749 PR fortran/42866
8750 * testsuite/libgomp.fortran/allocatable5.f90: New test.
8751
8752 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
8753
8754 * configure.ac: Test for executability of GFORTRAN.
8755 * configure: Regenerate.
8756
8757 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8758
8759 * configure: Regenerate.
8760
8761 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
8762
8763 PR libgomp/42602
8764 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
8765
8766 2010-01-03 Richard Guenther <rguenther@suse.de>
8767
8768 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
8769
8770 2009-12-23 Sebastian Pop <sebpop@gmail.com>
8771
8772 * testsuite/libgomp.graphite/pr4118.c: New.
8773
8774 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8775
8776 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
8777 for darwin, protect the test with require-effective-target tls_runtime.
8778 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
8779
8780 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8781
8782 PR target/41605
8783 * testsuite/lib/libgomp.exp: Provide -B options to allow for
8784 link spec %s substitutions for static libraries.
8785
8786 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
8787
8788 PR testsuite/42135
8789 * libgomp.graphite/force-parallel-2.c: Reduce array size.
8790
8791 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8792
8793 * Makefile.in: Regenerate.
8794 * configure: Regenerate.
8795 * testsuite/Makefile.in: Regenerate.
8796
8797 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
8798
8799 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
8800 settings for LC_ALL and LANG.
8801
8802 2009-11-25 Jakub Jelinek <jakub@redhat.com>
8803
8804 PR fortran/42162
8805 * testsuite/libgomp.fortran/pr42162.f90: New test.
8806
8807 2009-11-13 Jakub Jelinek <jakub@redhat.com>
8808
8809 PR middle-end/42029
8810 * testsuite/libgomp.c/pr42029.c: New test.
8811
8812 2009-10-26 Jakub Jelinek <jakub@redhat.com>
8813
8814 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
8815 *s. Accept ld version without text in ()s.
8816 * configure: Regenerated.
8817
8818 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
8819
8820 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
8821
8822 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8823
8824 PR libgomp/41418
8825 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
8826 or a hyphen (happens with fortran language disabled).
8827 * configure: Regenerate.
8828
8829 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8830
8831 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
8832 use sed script portable to Solaris /bin/sed for extracting ld
8833 version.
8834 * configure: Regenerate.
8835
8836 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
8837
8838 * testsuite/libgomp.graphite/bounds.c: New test.
8839
8840 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8841
8842 * Makefile.am (libgomp_la_LINK): New.
8843 * Makefile.in: Regenerate.
8844
8845 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8846
8847 * configure.ac (AC_PREREQ): Bump to 2.64.
8848
8849 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8850
8851 * Makefile.am (install-html, install-pdf): Remove.
8852 * Makefile.in: Regenerate.
8853
8854 * Makefile.in: Regenerate.
8855 * aclocal.m4: Regenerate.
8856 * config.h.in: Regenerate.
8857 * configure: Regenerate.
8858 * testsuite/Makefile.in: Regenerate.
8859
8860 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8861
8862 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
8863 * Makefile.in: Regenerate.
8864
8865 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
8866
8867 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
8868 * Makefile.in: Regenerate.
8869
8870 2009-08-19 Tobias Burnus <burnus@net-b.de>
8871
8872 PR fortran/41102
8873 omp_lib.h.in: Fix -std=f95 errors.
8874
8875 2009-08-14 David Edelsohn <edelsohn@gnu.org>
8876
8877 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
8878 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
8879 * testsuite/libgomp.graphite/graphite.exp: New.
8880
8881 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
8882
8883 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
8884 only build.
8885
8886 2009-08-04 David Daney <ddaney@caviumnetworks.com>
8887
8888 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
8889 needed memory barrier semantics.
8890 * config/linux/mips/mutex.h: New file.
8891
8892 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8893
8894 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
8895
8896 2009-07-16 Joseph Myers <joseph@codesourcery.com>
8897
8898 * configure: Regenerate.
8899
8900 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
8901
8902 PR testsuite/40699
8903 PR testsuite/40707
8904 PR testsuite/40709
8905 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
8906 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
8907 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
8908
8909 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
8910
8911 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
8912 options when choosing a multilib.
8913
8914 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
8915
8916 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
8917 ld_library_path. Use add_path. Add just find_libgcc_s to
8918 ld_library_path, not every libgcc multilib directory.
8919 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
8920 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
8921 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
8922 Use add_path.
8923 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
8924
8925 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
8926
8927 * Makefile.am (LTLDFLAGS): Define.
8928 (LINK): Define.
8929 * Makefile.in: Regenerate.
8930
8931 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
8932
8933 PR fortran/39718
8934 * testsuite/libgomp.fortran/fortran.exp: Don't link with
8935 libgfortranbegin, check existence of libgfortran.a instead of
8936 libgfortranbegin.a.
8937
8938 2009-05-20 Jakub Jelinek <jakub@redhat.com>
8939
8940 PR libgomp/40174
8941 * team.c (gomp_thread_start): Destroy thr->release semaphore.
8942 (gomp_free_pool_helper): Likewise.
8943
8944 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
8945 Jakub Jelinek <jakub@redhat.com>
8946
8947 PR fortran/35423
8948 * testsuite/libgomp.fortran/workshare2.f90: New test.
8949
8950 2009-04-09 Nick Clifton <nickc@redhat.com>
8951
8952 * iter.c: Change copyright header to refer to version 3 of the
8953 GNU General Public License with version 3.1 of the GCC Runtime
8954 Library Exception and to point readers at the COPYING3 and
8955 COPYING3.RUNTIME files and the FSF's license web page.
8956 * alloc.c: Likewise.
8957 * barrier.c: Likewise.
8958 * config/bsd/proc.c: Likewise.
8959 * config/linux/affinity.c: Likewise.
8960 * config/linux/alpha/futex.h: Likewise.
8961 * config/linux/bar.c: Likewise.
8962 * config/linux/bar.h: Likewise.
8963 * config/linux/ia64/futex.h: Likewise.
8964 * config/linux/ia64/mutex.h: Likewise.
8965 * config/linux/lock.c: Likewise.
8966 * config/linux/mips/futex.h: Likewise.
8967 * config/linux/mutex.c: Likewise.
8968 * config/linux/mutex.h: Likewise.
8969 * config/linux/powerpc/futex.h: Likewise.
8970 * config/linux/proc.c: Likewise.
8971 * config/linux/ptrlock.c: Likewise.
8972 * config/linux/ptrlock.h: Likewise.
8973 * config/linux/s390/futex.h: Likewise.
8974 * config/linux/sem.c: Likewise.
8975 * config/linux/sem.h: Likewise.
8976 * config/linux/sparc/futex.h: Likewise.
8977 * config/linux/wait.h: Likewise.
8978 * config/linux/x86/futex.h: Likewise.
8979 * config/mingw32/proc.c: Likewise.
8980 * config/mingw32/time.c: Likewise.
8981 * config/posix/affinity.c: Likewise.
8982 * config/posix/bar.c: Likewise.
8983 * config/posix/bar.h: Likewise.
8984 * config/posix/lock.c: Likewise.
8985 * config/posix/mutex.h: Likewise.
8986 * config/posix/proc.c: Likewise.
8987 * config/posix/ptrlock.h: Likewise.
8988 * config/posix/sem.c: Likewise.
8989 * config/posix/sem.h: Likewise.
8990 * config/posix/time.c: Likewise.
8991 * config/posix95/lock.c: Likewise.
8992 * critical.c: Likewise.
8993 * env.c: Likewise.
8994 * error.c: Likewise.
8995 * fortran.c: Likewise.
8996 * iter_ull.c: Likewise.
8997 * libgomp.h: Likewise.
8998 * libgomp_f.h.in: Likewise.
8999 * libgomp_g.h: Likewise.
9000 * loop.c: Likewise.
9001 * loop_ull.c: Likewise.
9002 * omp.h.in: Likewise.
9003 * omp_lib.f90.in: Likewise.
9004 * omp_lib.h.in: Likewise.
9005 * ordered.c: Likewise.
9006 * parallel.c: Likewise.
9007 * sections.c: Likewise.
9008 * single.c: Likewise.
9009 * task.c: Likewise.
9010 * team.c: Likewise.
9011 * work.c: Likewise.
9012
9013 2009-04-09 Jakub Jelinek <jakub@redhat.com>
9014
9015 * testsuite/config/default.exp: Change copyright header to refer to
9016 version 3 of the GNU General Public License and to point readers
9017 at the COPYING3 file and the FSF's license web page.
9018
9019 2009-04-08 Jakub Jelinek <jakub@redhat.com>
9020
9021 PR middle-end/39573
9022 * libgomp.c++/pr39573.C: New test.
9023
9024 2009-04-01 Jakub Jelinek <jakub@redhat.com>
9025
9026 PR other/39591
9027 * testsuite/libgomp.c/pr39591-1.c: New test.
9028 * testsuite/libgomp.c/pr39591-2.c: New test.
9029 * testsuite/libgomp.c/pr39591-3.c: New test.
9030
9031 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
9032
9033 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
9034 * testsuite/libgomp.c/atomic-6.c: Ditto.
9035
9036 2009-03-23 Jakub Jelinek <jakub@redhat.com>
9037
9038 PR c/39495
9039 * testsuite/libgomp.c/loop-12.c: New test.
9040 * testsuite/libgomp.c/loop-11.c: New test.
9041 * testsuite/libgomp.c++/loop-11.C: New test.
9042 * testsuite/libgomp.c++/loop-12.C: New test.
9043 * testsuite/libgomp.c++/for-8.C: New test.
9044
9045 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9046
9047 * configure: Regenerate.
9048
9049 2009-02-11 Jakub Jelinek <jakub@redhat.com>
9050
9051 PR middle-end/39154
9052 * testsuite/libgomp.c/pr39154.c: New test.
9053
9054 2009-01-30 Ian Lance Taylor <iant@google.com>
9055
9056 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
9057 libgomp_ld_is_gold. Get gold version number.
9058 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
9059 * configure: Rebuild.
9060
9061 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
9062
9063 * testsuite/lib/libgomp.exp: Add -B option for targets that
9064 use libgfortran.a%s in their specs.
9065
9066 2009-01-07 Jakub Jelinek <jakub@redhat.com>
9067
9068 PR libgomp/38086
9069 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
9070 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
9071 HAVE_AS_SYMVER_DIRECTIVE is not defined.
9072 * configure: Regenerated.
9073 * config.h.in: Likewise.
9074
9075 2008-12-28 Jakub Jelinek <jakub@redhat.com>
9076
9077 PR c++/38650
9078 * testsuite/libgomp.c/pr38650.c: New test.
9079 * testsuite/libgomp.c++/pr38650.C: New test.
9080
9081 2008-12-27 Jakub Jelinek <jakub@redhat.com>
9082
9083 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
9084
9085 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
9086
9087 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
9088
9089 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9090
9091 * configure: Regenerate.
9092
9093 2008-12-08 Jakub Jelinek <jakub@redhat.com>
9094
9095 PR middle-end/36802
9096 * testsuite/libgomp.c/pr36802-1.c: New test.
9097 * testsuite/libgomp.c/pr36802-2.c: New test.
9098 * testsuite/libgomp.c/pr36802-3.c: New test.
9099
9100 2008-12-01 Janis Johnson <janis187@us.ibm.com>
9101
9102 PR libgomp/38270
9103 * config/linux/powerpc/mutex.h: New.
9104
9105 2008-12-01 Jakub Jelinek <jakub@redhat.com>
9106
9107 PR c++/38257
9108 * testsuite/libgomp.c++/for-7.C: New test.
9109
9110 PR c++/38348
9111 * testsuite/libgomp.c++/for-6.C: New test.
9112
9113 2008-11-26 Janis Johnson <janis187@us.ibm.com>
9114
9115 PR testsuite/28870
9116 * testsuite/lib/libgomp.exp: Include new timeout library files.
9117 (libgomp_target_compile): Set timeout value from new proc.
9118
9119 2008-11-13 Steve Ellcey <sje@cup.hp.com>
9120
9121 PR libgomp/37938
9122 * config/linux/ia64/mutex.h: New.
9123
9124 2008-11-04 Tobias Burnus <burnus@net-b.de>
9125
9126 PR libgomp/37935
9127 * libgomp.texi (Runtime library routines, environment variables):
9128 Update for OpenMP version 3.0.
9129
9130 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
9131 Steve Ellcey <sje@cup.hp.com>
9132
9133 * configure: Regenerate for new libtool.
9134 * Makefile.in: Ditto.
9135 * testsuite/Makefile.in: Ditto.
9136
9137 2008-09-19 Jakub Jelinek <jakub@redhat.com>
9138 Andreas Tobler <a.tobler@schweiz.org>
9139
9140 * config/bsd/proc.c: New file.
9141 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
9142 * configure.ac: Check for header <sys/sysctl.h>
9143 * configure: Regenerate.
9144 * config.h.in: Likewise.
9145
9146 2008-09-05 Janis Johnson <janis187@us.ibm.com>
9147
9148 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
9149
9150 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
9151
9152 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
9153 * Makefile.in: Regenerated.
9154 * testsuite/Makefile.in: Regenerated.
9155
9156 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
9157
9158 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
9159 depend on blddir if blddir exists.
9160 (libgomp_target_compile): Likewise.
9161 * testsuite/libgomp.c++/c++.exp: Likewise.
9162 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9163
9164 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9165
9166 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
9167 Do not list GPL as Invariant Section.
9168
9169 2008-07-28 Ilie Garbacea <ilie@mips.com>
9170 Chao-ying Fu <fu@mips.com>
9171
9172 * configure.tgt: Enable futex for MIPS.
9173 * config/linux/mips/futex.h: New file.
9174
9175 2008-07-16 Jakub Jelinek <jakub@redhat.com>
9176
9177 * team.c (gomp_team_end): Free team immediately if it has
9178 just one thread.
9179
9180 2008-07-08 David Edelsohn <edelsohn@gnu.org>
9181
9182 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
9183 * testsuite/libgomp.fortran/fortran.exp: Same.
9184 * testsuite/libgomp.c/c.exp: Same.
9185 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
9186 directory to library path first.
9187
9188 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
9189
9190 * env.c (parse_stacksize): Add cast to avoid warning.
9191 (parse_spincount): Likewise.
9192
9193 2008-06-27 Jakub Jelinek <jakub@redhat.com>
9194
9195 * testsuite/libgomp.c/loop-10.c: New test.
9196 * libgomp.c/loop-3.c (main): Add lastprivate clause.
9197 * libgomp.c++/loop-6.C (main): Likewise.
9198
9199 PR debug/36617
9200 * testsuite/libgomp.c/debug-1.c: New test.
9201
9202 2008-06-19 Jakub Jelinek <jakub@redhat.com>
9203
9204 * testsuite/libgomp.c/nqueens-1.c: New test.
9205
9206 PR c++/36523
9207 * testsuite/libgomp.c++/task-7.C: New function.
9208
9209 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9210
9211 * configure: Regenerate.
9212
9213 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9214
9215 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
9216 mutex when HAVE_SYNC_BUILTINS isn't defined.
9217
9218 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9219
9220 * libgomp.texi (omp_test_lock): Fix typo.
9221
9222 2008-06-12 Tobias Burnus <burnus@net-b.de>
9223
9224 * omp_lib.f90.in: Add "implicit none".
9225
9226 2008-06-12 Jakub Jelinek <jakub@redhat.com>
9227
9228 PR middle-end/36506
9229 * testsuite/libgomp.c/reduction-5.c: New test.
9230
9231 2008-06-11 Jakub Jelinek <jakub@redhat.com>
9232
9233 * libgomp.h (struct gomp_task): Add in_tied_task field.
9234 * task.c (gomp_init_task): Initialize it.
9235 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
9236 unconditionally. Don't call gomp_team_barrier_wake if
9237 current task is implicit or if(0) from implicit and number of
9238 running tasks is equal to nthreads - 1.
9239
9240 PR libgomp/36471
9241 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
9242 omp_get_team_size_8): Fix pastos.
9243
9244 PR libgomp/36469
9245 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
9246 * configure: Regenerated.
9247 * config.h.in: Regenerated.
9248 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
9249 defined.
9250
9251 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
9252
9253 PR bootstrap/36452
9254 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
9255 (GOMP_loop_ull_dynamic_start): Likewise.
9256 (GOMP_loop_ull_guided_start): Likewise.
9257 (GOMP_loop_ull_ordered_static_start): Likewise.
9258 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
9259 (GOMP_loop_ull_ordered_guided_start): Likewise.
9260
9261 2008-06-06 Jakub Jelinek <jakub@redhat.com>
9262 Richard Henderson <rth@redhat.com>
9263 Ulrich Drepper <drepper@redhat.com>
9264 Jakob Blomer <jakob.blomer@ira.uka.de>
9265
9266 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
9267 Substitute also OMP_*LOCK_25*.
9268 * configure: Regenerated.
9269 * config.h.in: Regenerated.
9270 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
9271 ptrlock.c and task.c.
9272 * Makefile.in: Regenerated.
9273 * testsuite/Makefile.in: Regenerated.
9274 * task.c: New file.
9275 * loop_ull.c: New file.
9276 * iter_ull.c: New file.
9277 * libgomp.h: Include ptrlock.h.
9278 (enum gomp_task_kind): New type.
9279 (struct gomp_team): Add task_lock, task_queue, task_count,
9280 task_running_count, single_count fields. Add
9281 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
9282 Remove work_share_lock, generation_mask,
9283 oldest_live_gen, num_live_gen and init_work_shares fields, add
9284 work work_share_list_alloc, work_share_list_free and work_share_chunk
9285 fields. Change work_shares from pointer to pointers into an array.
9286 Change ordered_release field into gomp_sem_t ** from flexible array
9287 member. Add implicit_task and initial_work_shares fields.
9288 Move close to the end of the struct.
9289 (struct gomp_team_state): Add single_count, last_work_share,
9290 active_level and level fields, remove work_share_generation.
9291 (gomp_barrier_handle_tasks): New prototype.
9292 (gomp_finish_task): New inline function.
9293 (struct gomp_work_share): Move chunk_size, end, incr into
9294 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
9295 next_ll fields. Reshuffle fields. Add next_alloc,
9296 next_ws, next_free and inline_ordered_team_ids fields, change
9297 ordered_team_ids into pointer from flexible array member.
9298 Add mode field. Put lock and next into a different cache line
9299 from most of the write-once fields.
9300 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
9301 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
9302 gomp_iter_ull_guided_next): New prototypes.
9303 (gomp_new_icv): New prototype.
9304 (struct gomp_thread): Add thread_pool and task fields.
9305 (struct gomp_thread_pool): New type.
9306 (gomp_new_team): New prototype.
9307 (gomp_team_start): Change type of last argument.
9308 (gomp_new_work_share): Removed.
9309 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
9310 (gomp_work_share_init_done): New static inline.
9311 (gomp_throttled_spin_count_var, gomp_available_cpus,
9312 gomp_managed_threads): New extern decls.
9313 (gomp_init_task): New prototype.
9314 (gomp_spin_count_var): New extern var decl.
9315 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
9316 or no alias support, or if not PIC.
9317 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
9318 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
9319 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
9320 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
9321 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
9322 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
9323 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
9324 gomp_test_nest_lock_25): New prototypes.
9325 (omp_lock_symver, strong_alias): Define.
9326 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
9327 decls.
9328 (gomp_end_task): New.
9329 (struct gomp_task_icv, gomp_global_icv): New.
9330 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
9331 (struct gomp_task): New.
9332 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
9333 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
9334 (gomp_icv): New.
9335 (gomp_schedule_type): Reorder enum to match
9336 omp_sched_t.
9337 * team.c (struct gomp_thread_start_data): Add thread_pool and task
9338 fields.
9339 (gomp_thread_start): Add gomp_team_barrier_wait call.
9340 For non-nested case remove clearing of docked thread thr fields.
9341 Use pool fields instead of global gomp_* variables. Use
9342 gomp_barrier_wait_last when needed. Initialize ts.active_level.
9343 Create tasks for each member thread.
9344 (free_team): Only destroy team barrier, task_lock here and free it.
9345 (gomp_free_thread): Free last_team if non-NULL.
9346 (gomp_team_end): Call gomp_team_barrier_wait instead of
9347 gomp_barrier_wait. For nested case call one extra
9348 gomp_barrier_wait. Move here some destruction from free_team.
9349 Call free_team on pool->last_team if any, rather than freeing
9350 current team. Destroy work_share_list_free_lock ifndef
9351 HAVE_SYNC_BUILTINS.
9352 (gomp_new_icv): New function.
9353 (gomp_threads, gomp_threads_size, gomp_threads_used,
9354 gomp_threads_dock): Removed.
9355 (gomp_thread_destructor): New variable.
9356 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
9357 functions.
9358 (gomp_team_start): Create new pool if current thread doesn't have
9359 one. Use pool fields instead of global gomp_* variables.
9360 Initialize thread_pool field for new threads. Clear single_count.
9361 Change last argument from ws to team, don't create
9362 new team, set ts.work_share to &team->work_shares[0] and clear
9363 ts.last_work_share. Don't clear ts.work_share_generation.
9364 If number of threads changed, adjust atomically gomp_managed_threads.
9365 Use gomp_init_task instead of gomp_new_task,
9366 set thr->task to the corresponding implicit_task array entry.
9367 Create tasks for each member thread. Initialize ts.level.
9368 (initialize_team): Call pthread_key_create on
9369 gomp_thread_destructor.
9370 (team_destructor): New function.
9371 (new_team): Removed.
9372 (gomp_new_team): New function.
9373 (free_team): Free gomp_work_share blocks chained through next_alloc,
9374 instead of freeing work_shares and destroying work_share_lock.
9375 (gomp_team_end): Call gomp_fini_work_share. If number of threads
9376 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
9377 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
9378 of gomp_barrier_wait.
9379 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
9380 instead of gomp_barrier_wait. Call gomp_work_share_init_done
9381 if gomp_work_share_start returned true. Don't unlock ws->lock.
9382 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
9383 of gomp_barrier_wait.
9384 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
9385 gomp_work_share_init_done if gomp_work_share_start returned true.
9386 Don't unlock ws->lock.
9387 * work.c: Include stddef.h.
9388 (free_work_share): Use work_share_list_free_lock instead
9389 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
9390 Call gomp_fini_work_share and then either free ws if orphaned, or
9391 put it into work_share_list_free list of the current team.
9392 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
9393 functions.
9394 (gomp_work_share_start, gomp_work_share_end,
9395 gomp_work_share_end_nowait): Rewritten.
9396 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
9397 (openmp_version): Set to 200805.
9398 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
9399 omp_sched_guided, omp_sched_auto): New parameters.
9400 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9401 omp_set_max_active_levels, omp_get_max_active_levels,
9402 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9403 omp_get_active_level): New interfaces.
9404 * omp_lib.h.in (openmp_version): Set to 200805.
9405 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
9406 omp_sched_guided, omp_sched_auto): New parameters.
9407 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9408 omp_set_max_active_levels, omp_get_max_active_levels,
9409 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9410 omp_get_active_level): New externals.
9411 * loop.c: Include limits.h.
9412 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
9413 GFS_AUTO.
9414 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
9415 Likewise. Use gomp_icv.
9416 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
9417 ts.static_trip here.
9418 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
9419 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
9420 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
9421 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
9422 don't unlock ws->lock, otherwise lock it.
9423 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
9424 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
9425 (gomp_parallel_loop_start): Call gomp_new_team instead of
9426 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
9427 Adjust gomp_team_start caller. Pass 0 as second argument to
9428 gomp_resolve_num_threads.
9429 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
9430 If adding ws->chunk_size nthreads + 1 times after end won't
9431 overflow, set ws->mode to 1.
9432 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
9433 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
9434 GOMP_loop_ull_ordered_static_start,
9435 GOMP_loop_ull_ordered_dynamic_start,
9436 GOMP_loop_ull_ordered_guided_start,
9437 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
9438 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
9439 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
9440 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
9441 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
9442 prototypes.
9443 * libgomp.map: Export lock routines also @@OMP_2.0.
9444 (GOMP_loop_ordered_dynamic_first,
9445 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
9446 GOMP_loop_ordered_static_first): Remove.
9447 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
9448 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
9449 GOMP_loop_ull_ordered_dynamic_next,
9450 GOMP_loop_ull_ordered_dynamic_start,
9451 GOMP_loop_ull_ordered_guided_next,
9452 GOMP_loop_ull_ordered_guided_start,
9453 GOMP_loop_ull_ordered_runtime_next,
9454 GOMP_loop_ull_ordered_runtime_start,
9455 GOMP_loop_ull_ordered_static_next,
9456 GOMP_loop_ull_ordered_static_start,
9457 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
9458 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
9459 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
9460 (omp_set_schedule, omp_get_schedule,
9461 omp_get_thread_limit, omp_set_max_active_levels,
9462 omp_get_max_active_levels, omp_get_level,
9463 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
9464 omp_set_schedule_, omp_set_schedule_8_,
9465 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
9466 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
9467 omp_get_max_active_levels_, omp_get_level_,
9468 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
9469 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
9470 New exports @@OMP_3.0.
9471 * omp.h.in (omp_sched_t): New type.
9472 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9473 omp_set_max_active_levels, omp_get_max_active_levels,
9474 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9475 omp_get_active_level): New prototypes.
9476 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
9477 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
9478 gomp_thread_limit_var, gomp_remaining_threads_count,
9479 gomp_remaining_threads_lock): New variables.
9480 (parse_spincount): New function.
9481 (initialize_env): Call gomp_init_num_threads unconditionally.
9482 Initialize gomp_available_cpus. Call parse_spincount,
9483 initialize gomp_{,throttled_}spin_count_var
9484 depending on presence and value of OMP_WAIT_POLICY and
9485 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
9486 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
9487 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
9488 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
9489 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
9490 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
9491 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
9492 (gomp_global_icv): New.
9493 (parse_schedule): Use it. Parse "auto".
9494 (omp_set_num_threads): Use gomp_icv.
9495 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
9496 Likewise.
9497 (omp_get_max_threads): Move from parallel.c.
9498 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9499 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
9500 add ialias.
9501 (parse_stacksize, parse_wait_policy): New functions.
9502 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
9503 both wrappers for compatibility and new locks.
9504 (omp_set_schedule, omp_get_schedule,
9505 omp_get_thread_limit, omp_set_max_active_levels,
9506 omp_get_max_active_levels, omp_get_level,
9507 omp_get_ancestor_thread_num, omp_get_team_size,
9508 omp_get_active_level): New ialias_redirect.
9509 (omp_set_schedule_, omp_set_schedule_8_,
9510 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
9511 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
9512 omp_get_max_active_levels_, omp_get_level_,
9513 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
9514 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
9515 New functions.
9516 * parallel.c: Include limits.h.
9517 (gomp_resolve_num_threads): Add count argument. Rewritten.
9518 (GOMP_parallel_start): Call gomp_new_team and pass that as last
9519 argument to gomp_team_start. Pass 0 as second argument to
9520 gomp_resolve_num_threads.
9521 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
9522 if gomp_thread_limit_var != ULONG_MAX.
9523 (omp_in_parallel): Implement using ts.active_level.
9524 (omp_get_max_threads): Move to env.c.
9525 (omp_get_level, omp_get_ancestor_thread_num,
9526 omp_get_team_size, omp_get_active_level): New functions,
9527 add ialias.
9528 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
9529 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
9530 gomp_iter_dynamic_next instead of the _locked variant and don't take
9531 lock around it, otherwise acquire it before calling
9532 gomp_iter_dynamic_next_locked.
9533 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
9534 gomp_iter_dynamic_next instead of the _locked variant and don't take
9535 lock around it.
9536 (GOMP_parallel_sections_start): Call gomp_new_team instead of
9537 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
9538 Adjust gomp_team_start caller. Pass count as second argument to
9539 gomp_resolve_num_threads, don't adjust num_threads after the call.
9540 Use gomp_icv.
9541 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
9542 ws->chunk_size by incr.
9543 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
9544 code.
9545 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
9546 types.
9547 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
9548 (omp_check_defines): Check even the compat defines.
9549 * config/linux/ptrlock.c: New file.
9550 * config/linux/ptrlock.h: New file.
9551 * config/linux/wait.h: New file.
9552 * config/posix/ptrlock.c: New file.
9553 * config/posix/ptrlock.h: New file.
9554 * config/linux/bar.h (gomp_team_barrier_wait,
9555 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
9556 (gomp_team_barrier_set_task_pending,
9557 gomp_team_barrier_clear_task_pending,
9558 gomp_team_barrier_set_waiting_for_tasks,
9559 gomp_team_barrier_waiting_for_tasks,
9560 gomp_team_barrier_done): New inlines.
9561 (gomp_barrier_t): Rewritten.
9562 (gomp_barrier_state_t): New typedef.
9563 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
9564 gomp_barrier_wait_start): Rewritten.
9565 (gomp_barrier_wait_end): Change second argument to
9566 gomp_barrier_state_t.
9567 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
9568 inlines.
9569 * config/linux/bar.c: Include wait.h instead of libgomp.h and
9570 futex.h.
9571 (gomp_barrier_wait_end): Rewritten.
9572 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
9573 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
9574 * config/posix/bar.h (gomp_barrier_t): Add generation field.
9575 (gomp_barrier_state_t): New typedef.
9576 (gomp_team_barrier_wait,
9577 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
9578 (gomp_barrier_wait_start): Or all but low 2 bits from generation
9579 into the return value. Return gomp_barrier_state_t.
9580 (gomp_team_barrier_set_task_pending,
9581 gomp_team_barrier_clear_task_pending,
9582 gomp_team_barrier_set_waiting_for_tasks,
9583 gomp_team_barrier_waiting_for_tasks,
9584 gomp_team_barrier_done): New inlines.
9585 (gomp_barrier_wait_end): Change second argument to
9586 gomp_barrier_state_t.
9587 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
9588 inlines.
9589 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
9590 (gomp_barrier_wait_end): Change second argument to
9591 gomp_barrier_state_t.
9592 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
9593 gomp_team_barrier_wake): New functions.
9594 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
9595 futex.h.
9596 (gomp_futex_wake, gomp_futex_wait): New variables.
9597 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
9598 * config/linux/lock.c: Rewrite to make locks task owned,
9599 for backwards compatibility provide the old entrypoints
9600 if symbol versioning. Include wait.h instead of libgomp.h and
9601 futex.h.
9602 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
9603 * config/posix95/lock.c: Rewrite to make locks task owned,
9604 for backwards compatibility provide the old entrypoints
9605 if symbol versioning.
9606 * config/posix/lock.c: Rewrite to make locks task owned,
9607 for backwards compatibility provide the old entrypoints
9608 if symbol versioning.
9609 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
9610 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
9611 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
9612 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9613 (sys_futex0): Return error code.
9614 (futex_wake, futex_wait): If ENOSYS was returned, clear
9615 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9616 (cpu_relax, atomic_write_barrier): New static inlines.
9617 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9618 (futex_wake, futex_wait): If ENOSYS was returned, clear
9619 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9620 (cpu_relax, atomic_write_barrier): New static inlines.
9621 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9622 (sys_futex0): Return error code.
9623 (futex_wake, futex_wait): If ENOSYS was returned, clear
9624 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9625 (cpu_relax, atomic_write_barrier): New static inlines.
9626 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9627 (sys_futex0): Return error code.
9628 (futex_wake, futex_wait): If ENOSYS was returned, clear
9629 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9630 (cpu_relax, atomic_write_barrier): New static inlines.
9631 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9632 (sys_futex0): Return error code.
9633 (futex_wake, futex_wait): If ENOSYS was returned, clear
9634 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9635 (cpu_relax, atomic_write_barrier): New static inlines.
9636 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9637 (sys_futex0): Return error code.
9638 (futex_wake, futex_wait): If ENOSYS was returned, clear
9639 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9640 (cpu_relax, atomic_write_barrier): New static inlines.
9641 * config/linux/sem.c: Include wait.h instead of libgomp.h and
9642 futex.h.
9643 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
9644 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
9645 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
9646 types.
9647 (omp_nest_lock_t): Change owner into void *, add lock field.
9648 * config/posix95/omp-lock.h: Include semaphore.h.
9649 (omp_lock_25_t, omp_nest_lock_25_t): New types.
9650 (omp_lock_t): Use sem_t instead of mutex if semaphores
9651 aren't broken.
9652 (omp_nest_lock_t): Likewise. Change owner to void *.
9653 * config/posix/omp-lock.h: Include semaphore.h.
9654 (omp_lock_25_t, omp_nest_lock_25_t): New types.
9655 (omp_lock_t): Use sem_t instead of mutex if semaphores
9656 aren't broken.
9657 (omp_nest_lock_t): Likewise. Add owner field.
9658
9659 2008-06-06 Jakub Jelinek <jakub@redhat.com>
9660
9661 * testsuite/libgomp.c/collapse-1.c: New test.
9662 * testsuite/libgomp.c/collapse-2.c: New test.
9663 * testsuite/libgomp.c/collapse-3.c: New test.
9664 * testsuite/libgomp.c/icv-1.c: New test.
9665 * testsuite/libgomp.c/icv-2.c: New test.
9666 * testsuite/libgomp.c/lib-2.c: New test.
9667 * testsuite/libgomp.c/lock-1.c: New test.
9668 * testsuite/libgomp.c/lock-2.c: New test.
9669 * testsuite/libgomp.c/lock-3.c: New test.
9670 * testsuite/libgomp.c/loop-4.c: New test.
9671 * testsuite/libgomp.c/loop-5.c: New test.
9672 * testsuite/libgomp.c/loop-6.c: New test.
9673 * testsuite/libgomp.c/loop-7.c: New test.
9674 * testsuite/libgomp.c/loop-8.c: New test.
9675 * testsuite/libgomp.c/loop-9.c: New test.
9676 * testsuite/libgomp.c/nested-3.c: New test.
9677 * testsuite/libgomp.c/nestedfn-6.c: New test.
9678 * testsuite/libgomp.c/sort-1.c: New test.
9679 * testsuite/libgomp.c/task-1.c: New test.
9680 * testsuite/libgomp.c/task-2.c: New test.
9681 * testsuite/libgomp.c/task-3.c: New test.
9682 * testsuite/libgomp.c/task-4.c: New test.
9683 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
9684 to C++ testsuite default compiler options.
9685 * testsuite/libgomp.c++/collapse-1.C: New test.
9686 * testsuite/libgomp.c++/collapse-2.C: New test.
9687 * testsuite/libgomp.c++/ctor-10.C: New test.
9688 * testsuite/libgomp.c++/for-1.C: New test.
9689 * testsuite/libgomp.c++/for-2.C: New test.
9690 * testsuite/libgomp.c++/for-3.C: New test.
9691 * testsuite/libgomp.c++/for-4.C: New test.
9692 * testsuite/libgomp.c++/for-5.C: New test.
9693 * testsuite/libgomp.c++/loop-8.C: New test.
9694 * testsuite/libgomp.c++/loop-9.C: New test.
9695 * testsuite/libgomp.c++/loop-10.C: New test.
9696 * testsuite/libgomp.c++/task-1.C: New test.
9697 * testsuite/libgomp.c++/task-2.C: New test.
9698 * testsuite/libgomp.c++/task-3.C: New test.
9699 * testsuite/libgomp.c++/task-4.C: New test.
9700 * testsuite/libgomp.c++/task-5.C: New test.
9701 * testsuite/libgomp.c++/task-6.C: New test.
9702 * testsuite/libgomp.fortran/allocatable1.f90: New test.
9703 * testsuite/libgomp.fortran/allocatable2.f90: New test.
9704 * testsuite/libgomp.fortran/allocatable3.f90: New test.
9705 * testsuite/libgomp.fortran/allocatable4.f90: New test.
9706 * testsuite/libgomp.fortran/collapse1.f90: New test.
9707 * testsuite/libgomp.fortran/collapse2.f90: New test.
9708 * testsuite/libgomp.fortran/collapse3.f90: New test.
9709 * testsuite/libgomp.fortran/collapse4.f90: New test.
9710 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
9711 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
9712 * testsuite/libgomp.fortran/lib4.f90: New test.
9713 * testsuite/libgomp.fortran/lock-1.f90: New test.
9714 * testsuite/libgomp.fortran/lock-2.f90: New test.
9715 * testsuite/libgomp.fortran/nested1.f90: New test.
9716 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
9717 * testsuite/libgomp.fortran/strassen.f90: New test.
9718 * testsuite/libgomp.fortran/tabs1.f90: New test.
9719 * testsuite/libgomp.fortran/tabs2.f: New test.
9720 * testsuite/libgomp.fortran/task1.f90: New test.
9721 * testsuite/libgomp.fortran/task2.f90: New test.
9722 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
9723 * testsuite/libgomp.fortran/vla5.f90: Likewise.
9724 * testsuite/libgomp.c/pr26943-2.c: Likewise.
9725 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9726 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9727
9728 2008-05-23 Jakub Jelinek <jakub@redhat.com>
9729
9730 PR c++/36308
9731 * testsuite/libgomp.c++/ctor-11.C: New test.
9732 * testsuite/libgomp.c++/ctor-12.C: New test.
9733
9734 2008-05-15 Janis Johnson <janis187@us.ibm.com>
9735
9736 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
9737
9738 2008-05-07 Jakub Jelinek <jakub@redhat.com>
9739
9740 PR middle-end/36106
9741 * testsuite/libgomp.c/atomic-5.c: New test.
9742 * testsuite/libgomp.c/atomic-6.c: New test.
9743 * testsuite/libgomp.c/autopar-1.c: New test.
9744
9745 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9746
9747 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
9748 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
9749 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
9750 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
9751 * configure: Regenerate.
9752 * Makefile.in, testsuite/Makefile.in: Likewise.
9753
9754 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
9755
9756 PR bootstrap/35457
9757 * aclocal.m4: Regenerate.
9758 * configure: Regenerate.
9759
9760 2008-03-18 Jakub Jelinek <jakub@redhat.com>
9761
9762 PR middle-end/35611
9763 * testsuite/libgomp.c/atomic-4.c: New test.
9764
9765 PR libgomp/35625
9766 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
9767 (gomp_iter_guided_next): Likewise.
9768 * testsuite/libgomp.c/pr35625.c: New test.
9769
9770 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9771
9772 * aclocal.m4: Regenerate.
9773 * configure: Likewise.
9774 * Makefile.in: Likewise.
9775 * testsuite/Makefile.in: Likewise.
9776
9777 2008-03-13 Jakub Jelinek <jakub@redhat.com>
9778
9779 PR middle-end/35185
9780 * testsuite/libgomp.c++/pr35185.C: New test.
9781
9782 2008-03-12 Jakub Jelinek <jakub@redhat.com>
9783
9784 PR middle-end/35549
9785 * testsuite/libgomp.c/pr35549.c: New test.
9786
9787 2008-03-06 Jakub Jelinek <jakub@redhat.com>
9788
9789 * testsuite/libgomp.c/atomic-3.c: New test.
9790
9791 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9792
9793 PR fortran/33197
9794 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
9795 .F08 file suffixes.
9796
9797 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
9798
9799 PR libgomp/33131
9800 * configure.ac: Add ACX_HEADER_STRING.
9801 * env.c: Include strings.h.
9802 * aclocal.m4: Regenerate.
9803 * config.h.in: Regenerate.
9804 * configure: Regenerate.
9805 * Makefile.in: Regenerate.
9806 * testsuite/Makefile.in: Regenerate.
9807
9808 2008-02-15 Jakub Jelinek <jakub@redhat.com>
9809
9810 PR middle-end/35196
9811 * testsuite/libgomp.c/pr35196.c: New test.
9812
9813 PR middle-end/35130
9814 * testsuite/libgomp.fortran/pr35130.f90: New test.
9815 * testsuite/libgomp.c/pr35130.c: New test.
9816
9817 2008-01-25 Jakub Jelinek <jakub@redhat.com>
9818
9819 PR middle-end/33880
9820 * testsuite/libgomp.c/pr33880.c: New test.
9821 * testsuite/libgomp.fortran/pr33880.f90: New test.
9822
9823 2008-01-24 David Edelsohn <edelsohn@gnu.org>
9824
9825 * configure: Regenerate.
9826
9827 2008-01-08 Jakub Jelinek <jakub@redhat.com>
9828
9829 * configure.ac: Move futex checking into ../config/futex.m4.
9830 * configure: Rebuilt.
9831 * aclocal.m4: Rebuilt.
9832 * Makefile.in: Rebuilt.
9833
9834 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
9835 2007-10-15 ../config/tls.m4 change.
9836
9837 2007-12-19 Jakub Jelinek <jakub@redhat.com>
9838
9839 PR c++/34513
9840 * testsuite/libgomp.c/pr34513.c: New test.
9841 * testsuite/libgomp.c++/pr34513.C: New test.
9842
9843 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
9844
9845 PR target/32765
9846 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
9847
9848 2007-12-04 Jakub Jelinek <jakub@redhat.com>
9849
9850 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
9851
9852 2007-12-03 Jakub Jelinek <jakub@redhat.com>
9853
9854 * testsuite/libgomp.c/private-1.c: New test.
9855
9856 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
9857 Paolo Bonzini <bonzini@gnu.org>
9858
9859 * Makefile.am: Use space as vpath separator. Use 'vpath %'
9860 instead of 'VPATH ='.
9861 * Makefile.in: Regenerate.
9862
9863 2007-11-23 Matthias Klose <doko@ubuntu.com>
9864
9865 * configure.ac: Adjust makeinfo version check.
9866 * configure: Regenerate.
9867
9868 2007-11-10 Jakub Jelinek <jakub@redhat.com>
9869
9870 PR fortran/34020
9871 * testsuite/libgomp.fortran/pr34020.f90: New test.
9872
9873 2007-11-06 Jakub Jelinek <jakub@redhat.com>
9874
9875 PR c++/33894
9876 * testsuite/libgomp.c++/atomic-1.C: New test.
9877
9878 2007-10-25 Jakub Jelinek <jakub@redhat.com>
9879
9880 PR libgomp/33275
9881 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
9882 Make x and y integers rather than (implicit) reals. Add private (j)
9883 clause to the last omp parallel.
9884
9885 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
9886
9887 * configure: Regenerate following changes to ../config/tls.m4.
9888
9889 2007-09-28 Jakub Jelinek <jakub@redhat.com>
9890
9891 * testsuite/libgomp.fortran/stack.f90: New test.
9892
9893 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
9894
9895 * config/mingw32/proc.c: New file.
9896
9897 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
9898
9899 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
9900 (main): Use __get_cpuid to get i386 target fetaures.
9901 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
9902 (main): Use __get_cpuid to get x86_64 target fetaures.
9903
9904 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
9905
9906 PR target/32765
9907 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
9908 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
9909
9910 2007-07-12 Jakub Jelinek <jakub@redhat.com>
9911
9912 PR fortran/32550
9913 * testsuite/libgomp.fortran/pr32550.f90: New test.
9914 * testsuite/libgomp.fortran/crayptr2.f90: New test.
9915
9916 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
9917
9918 * aclocal.m4: Regenerated.
9919
9920 2007-07-05 Tobias Burnus <burnus@net-b.de>
9921
9922 PR fortran/32359
9923 * testsuite/libgomp.fortran/pr32359.f90: New.
9924
9925 2007-07-02 Jakub Jelinek <jakub@redhat.com>
9926
9927 PR libgomp/32468
9928 * sections.c (GOMP_parallel_sections_start): Only decrease
9929 number of threads to COUNT if dyn_var is true.
9930 * testsuite/libgomp.c/pr32468.c: New test.
9931
9932 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9933
9934 PR libgomp/26308
9935 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
9936
9937 2007-06-21 Jakub Jelinek <jakub@redhat.com>
9938
9939 PR middle-end/32362
9940 * testsuite/libgomp.c/pr32362-1.c: New test.
9941 * testsuite/libgomp.c/pr32362-2.c: New test.
9942 * testsuite/libgomp.c/pr32362-3.c: New test.
9943
9944 2007-06-07 Jakub Jelinek <jakub@redhat.com>
9945
9946 * team.c (gomp_team_start): Fix setting up thread_attr
9947 stack size.
9948
9949 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
9950
9951 * configure: Regenerate.
9952
9953 2007-05-23 Steve Ellcey <sje@cup.hp.com>
9954
9955 * Makefile.in: Regenerate.
9956 * configure: Regenerate.
9957 * aclocal.m4: Regenerate.
9958 * testsuite/Makefile.in: Regenerate.
9959
9960 2007-05-04 Jakub Jelinek <jakub@redhat.com>
9961
9962 * config/linux/proc.c: New file.
9963
9964 PR libgomp/28482
9965 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
9966
9967 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
9968
9969 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
9970
9971 2007-04-16 Matthias Klose <doko@debian.org>
9972
9973 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
9974 flags if not building with -m64.
9975 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
9976 flag for i?86-*-* targets, if current target matches -m64.
9977
9978 2007-04-14 Steve Ellcey <sje@cup.hp.com>
9979
9980 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
9981 * Makefile.in: Regenerate.
9982
9983 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9984
9985 PR testsuite/31369
9986 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
9987 ld_library_path.
9988 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9989
9990 2007-04-04 Jakub Jelinek <jakub@redhat.com>
9991
9992 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
9993 decls.
9994 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
9995 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
9996 (parse_affinity): New function.
9997 (initialize_env): Call it and gomp_init_affinity.
9998 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
9999 create new pthread_attr_t and call gomp_init_thread_affinity
10000 on it for each thread before passing the attribute to pthread_create.
10001 * config/linux/affinity.c: New file.
10002 * config/posix/affinity.c: New file.
10003 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
10004 * configure: Rebuilt.
10005 * config.h.in: Rebuilt.
10006 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
10007 * Makefile.in: Rebuilt.
10008
10009 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
10010
10011 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
10012 *-*-darwin*.
10013 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
10014 and use it if found.
10015
10016 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
10017
10018 * testsuite/config/default.exp: New file.
10019 * testsuite/lib/libgomp.exp: New file.
10020 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
10021 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
10022 load_lib *, load_gcc_lib *): Move to libgomp.exp.
10023 (libgomp_load): Remove.
10024 * testsuite/lib/libgomp.exp (libgomp_init): Compute
10025 always_ld_library_path, not ld_library_path. Set additional_flags
10026 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
10027 (target_compile): Do not call libgomp_init. Append lang_library_path
10028 and lang_link_flags to options.
10029 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
10030 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
10031 here.
10032 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
10033 always_ld_library_path. Set LD_LIBRARY_PATH here.
10034 * testsuite/libgomp.fortran/fortran.exp: Ditto.
10035 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
10036 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
10037 CX8 flag.
10038 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
10039 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
10040 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
10041 * testsuite/libgomp.c/pr29947-1.c: Ditto.
10042 * testsuite/libgomp.c/atomic-10.c: Ditto.
10043
10044 2007-03-21 Jakub Jelinek <jakub@redhat.com>
10045
10046 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
10047 dg-final cleanup-modules line.
10048 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
10049 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
10050 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
10051 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
10052 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
10053 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
10054 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
10055
10056 2007-03-18 Andreas Schwab <schwab@suse.de>
10057
10058 * acinclude.m4: Adjust regular expression for ld version
10059 extraction.
10060 * configure: Regenerate.
10061
10062 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
10063
10064 * Makefile.am: Add install-pdf target as copied from
10065 automake v1.10 rules.
10066 * Makefile.in: Regenerate
10067
10068 2007-02-07 Jakub Jelinek <jakub@redhat.com>
10069
10070 PR libgomp/28486
10071 * configure: Regenerate.
10072
10073 PR c++/30703
10074 * testsuite/libgomp.c++/pr30703.C: New test.
10075
10076 2007-02-02 Jakub Jelinek <jakub@redhat.com>
10077
10078 Revert:
10079 2006-07-05 Eric Christopher <echristo@apple.com>
10080 * configure.ac: Depend addition of -pthread on host OS.
10081 * configure: Regenerate.
10082
10083 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10084
10085 * libgomp.texi: Fix spacing after abbreviations.
10086
10087 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
10088
10089 PR libgomp/30546
10090 * configure.ac: Add check for makeinfo
10091 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
10092 if an appropiate version of makeinfo is found.
10093 * aclocal.m4: Regenerated.
10094 * configure: Regenerated.
10095 * Makefile.in: Regenerated.
10096 * testsuite/Makefile.in: Regenerated.
10097
10098 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
10099
10100 PR libgomp/30540
10101 * libgomp.texi: More about implementation-dependent settings.
10102
10103 2007-01-26 Tobias Burnus <burnus@net-b.de>
10104
10105 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
10106
10107 2007-01-24 Jakub Jelinek <jakub@redhat.com>
10108
10109 PR middle-end/30494
10110 * testsuite/libgomp.c/pr30494.c: New test.
10111
10112 2007-01-15 Tom Tromey <tromey@redhat.com>
10113
10114 * configure: Rebuilt.
10115 * configure.ac: Fixed comment.
10116
10117 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
10118
10119 * libgomp.texi: Document implementation specific default values of
10120 environment variables.
10121
10122 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
10123
10124 PR libgomp/28209
10125 * libgomp.texi: New file.
10126 * configure.ac: Add --enable-generated-files-in-srcdir option.
10127 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
10128 files to srcdir.
10129 * Makefile.in: Regenerated.
10130 * config.h.in: Regenerated.
10131 * testsuite/Makefile.in: Regenerated.
10132 * NOTES: Removed.
10133
10134 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
10135
10136 PR libgomp/29949
10137 * env.c (omp_set_num_threads): Set illegal thread count to 1.
10138
10139 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
10140
10141 * configure: Regenerate.
10142
10143 2006-12-04 Jakub Jelinek <jakub@redhat.com>
10144
10145 PR libgomp/29947
10146 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
10147 start if there shouldn't be any loop iterations.
10148 (gomp_loop_ordered_static_start): Remove start == end test.
10149 * testsuite/libgomp.c/pr29947-1.c: New test.
10150 * testsuite/libgomp.c/pr29947-2.c: New test.
10151
10152 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
10153
10154 * configure.tgt: Force initial-exec TLS model on Linux only.
10155
10156 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
10157
10158 * configure: Regenerated.
10159
10160 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
10161
10162 * env.c (parse_schedule): Reject out of range values.
10163 (parse_unsigned_long): Reject out of range, negative or zero values.
10164
10165 2006-10-29 Jakub Jelinek <jakub@redhat.com>
10166
10167 PR fortran/29629
10168 * testsuite/libgomp.fortran/pr29629.f90: New test.
10169
10170 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
10171
10172 PR libgomp/29494
10173 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
10174 * config/posix95: New directory.
10175 * config/posix95/omp-lock.h: New file.
10176 * config/posix95/lock.c: Likewise.
10177
10178 2006-10-14 Geoffrey Keating <geoffk@apple.com>
10179
10180 * aclocal.m4: Regenerate.
10181 * configure: Regenerate.
10182
10183 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
10184
10185 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
10186 '<' to '<='.
10187
10188 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
10189
10190 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
10191 test.
10192 * configure: Regenerate.
10193 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
10194
10195 2006-09-26 Jakub Jelinek <jakub@redhat.com>
10196
10197 PR middle-end/25261
10198 PR middle-end/28790
10199 * testsuite/libgomp.c/nestedfn-4.c: New test.
10200 * testsuite/libgomp.c/nestedfn-5.c: New test.
10201 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
10202
10203 PR fortran/29097
10204 * testsuite/libgomp.fortran/condinc1.f: New test.
10205 * testsuite/libgomp.fortran/condinc2.f: New test.
10206 * testsuite/libgomp.fortran/condinc3.f90: New test.
10207 * testsuite/libgomp.fortran/condinc4.f90: New test.
10208 * testsuite/libgomp.fortran/condinc1.inc: New file.
10209
10210 2006-09-18 Tom Tromey <tromey@redhat.com>
10211
10212 * configure: Rebuilt.
10213
10214 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
10215
10216 PR c/28768
10217 PR preprocessor/14634
10218 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
10219 to AC_DEFINE.
10220 * configure: Regenerate.
10221
10222 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
10223
10224 * testsuite/libgomp.fortran/reduction3.f90: Change
10225 -2147483648 to -huge(i)-1 to avoid overflow.
10226 * testsuite/libgomp.fortran/reduction4.f90: Change
10227 Z'ffffffff' to not(0) to avoid overflow.
10228
10229 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
10230
10231 PR libgomp/25938
10232 * Makefile.am (libsubincludedir): New.
10233 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
10234 * Makefile.in: Regenerate.
10235
10236 2006-08-17 Jakub Jelinek <jakub@redhat.com>
10237
10238 PR libgomp/28725
10239 * env.c: Include ctype.h.
10240 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
10241 leading and/or trailing whitespace and compare strings case
10242 insensitively.
10243
10244 2006-07-16 Jakub Jelinek <jakub@redhat.com>
10245
10246 PR fortran/28390
10247 * testsuite/libgomp.fortran/pr28390.f: New test.
10248
10249 2006-07-05 Eric Christopher <echristo@apple.com>
10250
10251 * configure.ac: Depend addition of -pthread on host OS.
10252 * configure: Regenerate.
10253
10254 2006-06-21 Jakub Jelinek <jakub@redhat.com>
10255
10256 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
10257 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
10258 defined.
10259
10260 2006-06-20 Jakub Jelinek <jakub@redhat.com>
10261
10262 PR libgomp/26175
10263 PR libgomp/26477
10264 * configure.ac: If neither --enable-linux-futex nor
10265 --disable-linux-futex is passed, determine the default by checking
10266 for compiling and/or running against NPTL. With --enable-linux-futex,
10267 check if SYS_gettid and SYS_futex are defined.
10268 * configure: Rebuilt.
10269
10270 2006-06-14 Richard Henderson <rth@redhat.com>
10271
10272 PR libgomp/28008
10273 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
10274 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
10275
10276 2006-06-09 Richard Henderson <rth@redhat.com>
10277
10278 * env.c (gomp_nthreads_var): Change to unsigned long.
10279 (gomp_run_sched_chunk): Likewise.
10280 (parse_unsigned_long): Rename from parse_num_threads and generalize.
10281 (initialize_env): Initialize gomp_thread_attr.
10282 * libgomp.h (gomp_nthreads_var): Update decl.
10283 (gomp_run_sched_chunk): Likewise.
10284 (gomp_thread_attr): Declare.
10285 * team.c (gomp_thread_attr): Export.
10286 (initialize_team): Don't initialize it.
10287
10288 2006-06-09 Jakub Jelinek <jakub@redhat.com>
10289
10290 PR fortran/27916
10291 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
10292 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
10293
10294 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
10295
10296 * config/mingw32/time.c: New file.
10297 * configure.tgt: Use it.
10298
10299 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
10300
10301 * Makefile.am: Add install-html target. Add install-html to .PHONY
10302 * Makefile.in: Regenerate.
10303
10304 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10305
10306 PR libgomp/27612
10307 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
10308 * testsuite/libgomp.c/critical-1.c: Likewise.
10309 * testsuite/libgomp.c/loop-1.c: Likewise.
10310 * testsuite/libgomp.c/loop-2.c: Likewise.
10311 * testsuite/libgomp.c/single-1.c: Likewise.
10312 * testsuite/libgomp.c/ordered-1.c: Likewise.
10313 * testsuite/libgomp.c/ordered-2.c: Likewise.
10314
10315 2006-05-15 Jakub Jelinek <jakub@redhat.com>
10316
10317 PR middle-end/27416
10318 * libgomp.fortran/pr27416-1.f90: New test.
10319
10320 2006-05-03 Jakub Jelinek <jakub@redhat.com>
10321
10322 PR fortran/27395
10323 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
10324 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
10325
10326 2006-05-02 Jakub Jelinek <jakub@redhat.com>
10327
10328 PR c++/26943
10329 * testsuite/libgomp.c/pr26943-1.c: New test.
10330 * testsuite/libgomp.c/pr26943-2.c: New test.
10331 * testsuite/libgomp.c/pr26943-3.c: New test.
10332 * testsuite/libgomp.c/pr26943-4.c: New test.
10333 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
10334 * testsuite/libgomp.c++/pr26943.C: New test.
10335
10336 2006-05-02 Jakub Jelinek <jakub@redhat.com>
10337
10338 PR middle-end/27337
10339 * testsuite/libgomp.c++/pr27337.C: New test.
10340
10341 2006-04-26 Jakub Jelinek <jakub@redhat.com>
10342
10343 PR c/26171
10344 * testsuite/libgomp.c/pr26171.c: New test.
10345
10346 2006-04-25 Richard Henderson <rth@redhat.com>
10347
10348 PR libgomp/25865
10349 * configure.ac: Use GCC_CHECK_TLS.
10350 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
10351 * Makefile.in, aclocal.m4, configure: Regenerate.
10352
10353 2006-04-10 Matthias Klose <doko@debian.org>
10354
10355 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
10356 directory names containing underscores.
10357
10358 2006-03-21 Jakub Jelinek <jakub@redhat.com>
10359
10360 PR c++/26691
10361 * testsuite/libgomp.c++/pr26691.C: New test.
10362
10363 2006-03-13 Jakub Jelinek <jakub@redhat.com>
10364
10365 * testsuite/libgomp.fortran/retval2.f90: New test.
10366
10367 2006-03-09 Diego Novillo <dnovillo@redhat.com>
10368
10369 * testsuite/libgomp.c++: New directory.
10370
10371 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
10372
10373 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
10374 * config/posix/sem.c: Implement the above.
10375
10376 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
10377
10378 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
10379 define HAVE_BROKEN_POSIX_SEMAPHORES.
10380 * configure: Rebuilt.
10381 * config.h.in: Rebuilt.
10382
10383 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
10384
10385 PR bootstrap/26161
10386 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
10387 for the other pthread check.
10388 * configure: Regenerate.
10389 * config.h.in: Regenerate.
10390
10391 2006-02-15 Jakub Jelinek <jakub@redhat.com>
10392
10393 PR libgomp/25938
10394 PR libgomp/25984
10395 * Makefile.am (fincludedir): New variable.
10396 (nodist_include_HEADERS): Remove Fortran files.
10397 (nodist_finclude_HEADERS): New variable.
10398 * Makefile.in: Regenerated.
10399
10400 2006-02-13 Jakub Jelinek <jakub@redhat.com>
10401
10402 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
10403 Remove tests for returning assumed character length arrays.
10404
10405 2006-02-12 Roger Sayle <roger@eyesopen.com>
10406 John David Anglin <dave@hiauly1.hia.nrc.ca>
10407
10408 PR libgomp/25936
10409 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
10410
10411 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10412
10413 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
10414
10415 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
10416
10417 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
10418 part of LD_LIBRARY_PATH manually.
10419
10420 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
10421
10422 PR libgomp/25852
10423 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
10424 libgomp_init.
10425
10426 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
10427
10428 PR libgomp/25884
10429 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
10430 * configure.ac (PERL): Don't set.
10431 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
10432 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
10433 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
10434 * omp.h.in: Wrap the new configure substitutions with @ characters.
10435 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
10436 * aclocal.m4, configure, Makefile.in: Regenerate.
10437 * mkomp_h.pl: Delete.
10438
10439 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
10440
10441 PR libgomp/25259
10442 * configure.ac: Use GCC_HEADER_STDINT.
10443 * libgomp.h: Include gstdint.h.
10444 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
10445 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
10446
10447 2006-01-24 Richard Henderson <rth@redhat.com>
10448
10449 PR libgomp/25942
10450 * configure.ac: Add AM_MAINTAINER_MODE.
10451 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
10452
10453 2006-01-24 Diego Novillo <dnovillo@redhat.com>
10454
10455 * Makefile.in: Regenerate.
10456 * testsuite/Makefile.in: Regenerate.
10457 * aclocal.m4: Regenerate.
10458
10459 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
10460
10461 * config/posix/proc.c: Conditional include of sys/loadavg.h for
10462 Solaris.
10463 * configure.ac: Add check for loadavg.h.
10464 (link_gomp): Adjust comment.
10465 * configure: Regenerate.
10466 * config.h.in: Regenerate.
10467
10468 2006-01-21 Steve Ellcey <sje@cup.hp.com>
10469
10470 PR libgomp/25877
10471 * configure.ac: Remove check for alloca.h.
10472 * configure: Regenerate.
10473 * config.h.in: Regenerate.
10474 * libgomp.h: define gomp_alloca to be __builtin_alloca.
10475 * team.c: Remove use of alloca.h.
10476 Call gomp_alloca instead of alloca.
10477
10478 2006-01-20 Steve Ellcey <sje@cup.hp.com>
10479
10480 PR libgomp/25877
10481 * team.c: Add include of alloca.h.
10482 * configure.ac: Add check for alloca.h.
10483 * configure: Regenerate.
10484 * config.h.in: Regenerate.
10485
10486 2006-01-17 Jakub Jelinek <jakub@redhat.com>
10487
10488 PR fortran/25219
10489 * testsuite/libgomp.fortran/pr25219.f90: New test.
10490
10491 2005-12-05 Uros Bizjak <uros@kss-loka.si>
10492
10493 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
10494 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
10495 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
10496 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
10497 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
10498 testsuite/libgomp.fortran/threadprivate1.f90,
10499 testsuite/libgomp.fortran/threadprivate2.f90,
10500 testsuite/libgomp.fortran/threadprivate3.f90,
10501 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
10502 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
10503 testsuite/libgomp.fortran/omp_parse3.f90: Change required
10504 effective-target to TLS runtime.
10505
10506 * testsuite/libgomp.fortran/pr25162.f: Require
10507 effective-target TLS runtime.
10508
10509 2005-12-01 Jakub Jelinek <jakub@redhat.com>
10510
10511 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
10512 * testsuite/libgomp.c/nestedfn-3.c: New test.
10513
10514 2005-11-30 Jakub Jelinek <jakub@redhat.com>
10515
10516 PR fortran/25162
10517 * testsuite/libgomp.fortran/pr25162.f: New test.
10518
10519 2005-11-28 Jakub Jelinek <jakub@redhat.com>
10520
10521 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
10522 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
10523
10524 2005-11-25 Jakub Jelinek <jakub@redhat.com>
10525
10526 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
10527 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
10528 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
10529 single.c, team.c, work.c, config/linux/alpha/futex.h,
10530 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
10531 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
10532 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
10533 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
10534 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
10535 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
10536 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
10537 FSF address.
10538
10539 2005-11-18 Jakub Jelinek <jakub@redhat.com>
10540
10541 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
10542 to nodist_noinst_HEADERS.
10543 * Makefile.in: Rebuilt.
10544
10545 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
10546 add integer count field.
10547 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
10548 omp_nest_lock_t type change.
10549 (omp_init_nest_lock): Likewise. Initialize count to 0.
10550 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
10551 Increment count.
10552 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
10553 Decrement count.
10554 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
10555 Increment count if successful and return the new nesting level.
10556 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
10557 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
10558 * testsuite/libgomp.c/lib-1.c: New test.
10559 * testsuite/libgomp.fortran/lib1.f90: New test.
10560 * testsuite/libgomp.fortran/lib2.f: New test.
10561 * testsuite/libgomp.fortran/lib3.f: New test.
10562
10563 2005-11-17 Richard Henderson <rth@redhat.com>
10564
10565 PR 24845
10566 * Makefile.am (nodist_toolexeclib_HEADERS): New.
10567 * configure.ac (link_gomp): New. Substitute it.
10568 (AC_CONFIG_FILES): Add libgomp.spec.
10569 * libgomp.spec.in: New file.
10570 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
10571 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
10572
10573 2005-11-18 Jakub Jelinek <jakub@redhat.com>
10574
10575 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
10576 reduction(-:var) behaving the same as reduction(+:var).
10577 * testsuite/libgomp.c/reduction-4.c: New test.
10578
10579 2005-11-15 Uros Bizjak <uros@kss-loka.si>
10580
10581 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
10582 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
10583 testsuite/libgomp.c/copyin-3.c,
10584 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
10585 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
10586 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
10587 testsuite/libgomp.c++/pr24455.C,
10588 testsuite/libgomp.fortran/threadprivate1.f90,
10589 testsuite/libgomp.fortran/threadprivate2.f90,
10590 testsuite/libgomp.fortran/threadprivate3.f90,
10591 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
10592 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
10593 testsuite/libgomp.fortran/omp_parse3.f90: Require
10594 effective-target TLS.
10595
10596 2005-11-14 Diego Novillo <dnovillo@redhat.com>
10597
10598 * HEADER: Remove.
10599
10600 2005-11-13 Jakub Jelinek <jakub@redhat.com>
10601
10602 PR libgomp/24797
10603 * team.c (initialize_team): Pass NULL rather than free as
10604 pthread_key_create destructor. Initialize thread specific data
10605 pointer in initial thread to a static local variable rather than
10606 malloced memory.
10607
10608 2005-11-11 Uros Bizjak <uros@kss-loka.si>
10609
10610 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
10611 its location to ld_library_path.
10612
10613 2005-11-10 Diego Novillo <dnovillo@redhat.com>
10614
10615 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
10616
10617 2005-11-10 Diego Novillo <dnovillo@redhat.com>
10618
10619 * testsuite/libgomp.c: Rename from libgomp.dg.
10620
10621 2005-11-09 Diego Novillo <dnovillo@redhat.com>
10622
10623 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
10624 threadprivate variable 'i'.
10625
10626 2005-11-09 Jakub Jelinek <jakub@redhat.com>
10627
10628 * config/linux/s390/futex.h: New file.
10629 * configure.tgt: Use it.
10630
10631 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
10632 before the parallel.
10633
10634 2005-11-08 Jakub Jelinek <jakub@redhat.com>
10635
10636 PR c++/24734
10637 * testsuite/libgomp.c++/master-1.C: New test.
10638
10639 2005-11-07 Jakub Jelinek <jakub@redhat.com>
10640
10641 * testsuite/libgomp.dg/copyin-3.c: New test.
10642
10643 2005-11-07 Jakub Jelinek <jakub@redhat.com>
10644
10645 * testsuite/libgomp.fortran/retval1.f90: New test.
10646 * testsuite/libgomp.fortran/vla7.f90: New test.
10647
10648 2005-11-06 Jakub Jelinek <jakub@redhat.com>
10649
10650 * testsuite/libgomp.fortran/vla2.f90: New test.
10651 * testsuite/libgomp.fortran/vla3.f90: New test.
10652 * testsuite/libgomp.fortran/vla4.f90: New test.
10653 * testsuite/libgomp.fortran/vla5.f90: New test.
10654 * testsuite/libgomp.fortran/vla6.f90: New test.
10655
10656 2005-11-01 Jakub Jelinek <jakub@redhat.com>
10657
10658 * config/linux/sparc/futex.h: New file.
10659 * configure.tgt: Use it.
10660 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
10661
10662 * critical.c: Include stdlib.h.
10663 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
10664 ignoring return value.
10665 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
10666 LIBGOMP_CHECK_SYNC_BUILTINS check.
10667 * configure: Rebuilt.
10668
10669 2005-10-31 Jakub Jelinek <jakub@redhat.com>
10670
10671 * testsuite/libgomp.fortran/vla1.f90: New test.
10672
10673 2005-10-31 Richard Henderson <rth@redhat.com>
10674
10675 * testsuite/libgomp.fortran/character2.f90: Fix race condition
10676 setting 's' in different threads.
10677
10678 2005-10-31 Jakub Jelinek <jakub@redhat.com>
10679
10680 * libgomp.h (attribute_hidden, ialias): Define.
10681 * config/posix/proc.c (omp_get_num_procs): Add ialias.
10682 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
10683 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
10684 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
10685 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
10686 omp_test_lock, omp_test_nest_lock): Likewise.
10687 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
10688 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
10689 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
10690 omp_test_lock, omp_test_nest_lock): Likewise.
10691 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
10692 omp_get_dynamic, omp_get_nested): Likewise.
10693 * parallel.c (omp_get_num_threads, omp_get_max_threads,
10694 omp_get_thread_num, omp_in_parallel): Likewise.
10695 * fortran.c (ialias_redirect): Define.
10696 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
10697 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
10698 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
10699 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
10700 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
10701 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
10702 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
10703 omp_get_wtime): Add ialias_redirect.
10704
10705 2005-10-30 Jakub Jelinek <jakub@redhat.com>
10706
10707 * fortran.c: Include stdlib.h.
10708
10709 2005-10-29 Jakub Jelinek <jakub@redhat.com>
10710
10711 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
10712 * Makefile.in: Regenerated.
10713
10714 2005-10-28 Jakub Jelinek <jakub@redhat.com>
10715
10716 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
10717 * libgomp_f.h.in (omp_check_defines): New function.
10718 * env.c: Include libgomp_f.h.
10719 (initialize_env): Call omp_check_defines.
10720
10721 * testsuite/libgomp.dg/copyin-2.c: New test.
10722 * testsuite/libgomp.c++/copyin-2.C: New test.
10723 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
10724
10725 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
10726 * testsuite/libgomp.fortran/sharing2.f90: New test.
10727
10728 * testsuite/libgomp.dg/copyin-1.c: New test.
10729 * testsuite/libgomp.c++/copyin-1.C: New test.
10730
10731 2005-10-26 Jakub Jelinek <jakub@redhat.com>
10732
10733 * testsuite/libgomp.fortran/crayptr1.f90: New test.
10734
10735 * testsuite/libgomp.fortran/workshare1.f90: New test.
10736
10737 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
10738 only test.
10739 * libgomp.fortran/sharing1.f90: New test.
10740
10741 2005-10-24 Jakub Jelinek <jakub@redhat.com>
10742
10743 PR c++/24502
10744 * testsuite/libgomp.c++/loop-7.C: New test.
10745
10746 * testsuite/libgomp.dg/nestedfn-2.c: New test.
10747
10748 * testsuite/libgomp.dg/nestedfn-1.c: New test.
10749 * testsuite/libgomp.fortran/reduction6.f90: New test.
10750 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
10751
10752 2005-10-23 Richard Henderson <rth@redhat.com>
10753
10754 * testsuite/libgomp.c++/ctor-1.C: New.
10755 * testsuite/libgomp.c++/ctor-2.C: New.
10756 * testsuite/libgomp.c++/ctor-3.C: New.
10757 * testsuite/libgomp.c++/ctor-4.C: New.
10758 * testsuite/libgomp.c++/ctor-5.C: New.
10759 * testsuite/libgomp.c++/ctor-6.C: New.
10760 * testsuite/libgomp.c++/ctor-7.C: New.
10761 * testsuite/libgomp.c++/ctor-8.C: New.
10762 * testsuite/libgomp.c++/ctor-9.C: New.
10763
10764 2005-10-21 Diego Novillo <dnovillo@redhat.com>
10765
10766 PR 24455
10767 * testsuite/libgomp.c++/pr24455-1.C: New test.
10768 * testsuite/libgomp.c++/pr24455.C: New test.
10769 * testsuite/libgomp.dg/pr24455-1.c: New test.
10770 * testsuite/libgomp.dg/pr24455.c: New test.
10771
10772 2005-10-20 Richard Henderson <rth@redhat.com>
10773
10774 * testsuite/libgomp.c++/loop-6.C: New.
10775 * testsuite/libgomp.dg/loop-3.c: New.
10776
10777 2005-10-20 Jakub Jelinek <jakub@redhat.com>
10778
10779 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
10780 explicitly private.
10781 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
10782 explicitly shared.
10783
10784 2005-10-19 Diego Novillo <dnovillo@redhat.com>
10785
10786 * testsuite/libgomp.fortran/jacobi.f: New test.
10787
10788 2005-10-19 Richard Henderson <rth@redhat.com>
10789
10790 * configure.tgt (i?86-linux): Default to with_arch instead of
10791 CFLAGS. Add -mtune to match target_cpu.
10792 (x86_64-linux): Tune to i686.
10793
10794 * fortran.c (omp_test_nest_lock_): Fix typo.
10795
10796 2005-10-19 Jakub Jelinek <jakub@redhat.com>
10797
10798 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
10799 gomp_ordered_sync): Do nothing if team->nthreads == 1.
10800 * testsuite/libgomp.dg/ordered-3.c: New test.
10801
10802 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
10803 Remove volatile keyword.
10804
10805 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
10806 in COMMON block to avoid warnings on 64-bit targets.
10807
10808 2005-10-18 Diego Novillo <dnovillo@redhat.com>
10809
10810 * testsuite/libgomp.dg/shared-3.c: New test.
10811
10812 2005-10-18 Jakub Jelinek <jakub@redhat.com>
10813
10814 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
10815 * testsuite/libgomp.fortran/reduction5.f90: New test.
10816
10817 2005-10-18 Jakub Jelinek <jakub@redhat.com>
10818
10819 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
10820 dg-options.
10821 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
10822 flush loop now that __sync_synchronize has proper memory barrier.
10823 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
10824 Add -ffixed-form to dg-options.
10825
10826 2005-10-17 Diego Novillo <dnovillo@redhat.com>
10827
10828 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
10829 from subdirectories.
10830 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
10831 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
10832 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
10833 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
10834 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
10835 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
10836 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
10837 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
10838 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
10839 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
10840 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
10841 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
10842 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
10843 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
10844 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
10845 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
10846 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
10847 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
10848 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
10849 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
10850 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
10851 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
10852 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
10853 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
10854 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
10855
10856 2005-10-17 Jakub Jelinek <jakub@redhat.com>
10857
10858 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
10859 lang_library_path exists. Use find instead of glob to gather tests.
10860 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
10861
10862 2005-10-17 Diego Novillo <dnovillo@redhat.com>
10863
10864 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
10865 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
10866 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
10867 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
10868 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
10869 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
10870 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
10871 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
10872 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
10873 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
10874 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
10875 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
10876 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
10877
10878 2005-10-15 Jakub Jelinek <jakub@redhat.com>
10879
10880 * testsuite/libgomp.dg/vla-1.c: New test.
10881
10882 * testsuite/libgomp.fortran/reference2.f90: New test.
10883
10884 * testsuite/libgomp.fortran/character2.f90: Remove explicit
10885 declaration of omp_get_thread_num.
10886 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
10887 use omp_lib.
10888
10889 * testsuite/libgomp.fortran/reduction1.f90: New test.
10890 * testsuite/libgomp.fortran/reduction2.f90: New test.
10891 * testsuite/libgomp.fortran/reduction3.f90: New test.
10892 * testsuite/libgomp.fortran/reduction4.f90: New test.
10893
10894 2005-10-13 Richard Henderson <rth@redhat.com>
10895
10896 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
10897 * Makefile.in: Regenerate.
10898 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
10899 * libgomp.h: Include bar.h.
10900 (struct gomp_barrier): Remove.
10901 (struct gomp_team): Add barrier. Replace master_barrier with
10902 master_release. Replace threads with ordered_release.
10903 (struct gomp_thread): Replace barrier with release.
10904 * ordered.c (gomp_ordered_first): Update for ordered_release change.
10905 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
10906 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
10907 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
10908 (GOMP_single_copy_end): Likewise.
10909 * team.c (gomp_threads_dock): New.
10910 (gomp_barrier_init, gomp_barrier_destroy): Remove.
10911 (gomp_thread_start): Use gomp_barrier_wait.
10912 (new_team, free_team): Update for gomp_team changes.
10913 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
10914 (gomp_team_end): Use gomp_barrier_wait.
10915 (initialize_team): Update for gomp_thread changes.
10916 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
10917 (gomp_work_share_end_nowait): Use atomic ops when available.
10918 * config/linux/bar.c, config/linux/bar.h: New files.
10919 * config/posix/bar.c, config/posix/bar.h: New files.
10920
10921 2005-10-13 Jakub Jelinek <jakub@redhat.com>
10922
10923 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
10924 * testsuite/libgomp.dg/single-2.c: New test.
10925
10926 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
10927 lang_link_flags): Unset, so that they aren't inherited from previously
10928 sourced *.exp.
10929
10930 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
10931
10932 2005-10-12 Richard Henderson <rth@redhat.com>
10933
10934 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
10935 (libgomp_init): Use lang_test_file, lang_library_path, and
10936 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
10937
10938 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
10939 (lang_test_file, lang_link_flags): New.
10940 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
10941
10942 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
10943 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
10944 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
10945 testsuite/libgomp.c++/parallel-1.C,
10946 testsuite/libgomp.c++/reduction-1.C,
10947 testsuite/libgomp.c++/reduction-2.C,
10948 testsuite/libgomp.c++/reduction-3.C,
10949 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
10950 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
10951 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
10952 New files, largely cribbed from the C testsuite.
10953
10954 2005-10-12 Jakub Jelinek <jakub@redhat.com>
10955
10956 * testsuite/libgomp.fortran/character1.f90: New test.
10957 * testsuite/libgomp.fortran/character2.f90: New test.
10958
10959 * testsuite/libgomp.dg/nested-1.c: New test.
10960 * testsuite/libgomp.dg/nested-2.c: New test.
10961 * testsuite/libgomp.fortran/do1.f90: New test.
10962 * testsuite/libgomp.fortran/do2.f90: New test.
10963
10964 * testsuite/libgomp.fortran/reference1.f90: New test.
10965
10966 2005-10-11 Jakub Jelinek <jakub@redhat.com>
10967
10968 * testsuite/libgomp.dg/reduction-1.c: New test.
10969 * testsuite/libgomp.dg/reduction-2.c: New test.
10970 * testsuite/libgomp.dg/reduction-3.c: New test.
10971
10972 2005-10-10 Jakub Jelinek <jakub@redhat.com>
10973
10974 * testsuite/libgomp.dg/atomic-1.c: New test.
10975 * testsuite/libgomp.dg/atomic-2.c: New test.
10976
10977 2005-10-09 Richard Henderson <rth@redhat.com>
10978
10979 * critical.c (atomic_lock): New.
10980 (initialize_critical): Initialize it.
10981 (GOMP_atomic_start, GOMP_atomic_end): New.
10982 * libgomp.map: Export them.
10983 * libgomp_g.h: Declare them.
10984
10985 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
10986
10987 2005-10-02 Richard Henderson <rth@redhat.com>
10988
10989 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
10990 to XCFLAGS instead of CFLAGS.
10991
10992 2005-09-30 Richard Henderson <rth@redhat.com>
10993
10994 * configure.ac: Determine whether -pthread or -lpthread is needed.
10995 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
10996 * Makefine.in, configure: Rebuild.
10997
10998 2005-09-28 Richard Henderson <rth@redhat.com>
10999
11000 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
11001 * testsuite/libgomp.dg/omp-single-3.c: New test.
11002
11003 2005-09-28 Diego Novillo <dnovillo@redhat.com>
11004
11005 * testsuite/libgomp.dg/omp-single-2.c: New test.
11006 * testsuite/libgomp.dg/shared-2.c: Fix return code.
11007
11008 2005-09-27 Richard Henderson <rth@redhat.com>
11009
11010 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
11011 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
11012
11013 2005-09-27 Jakub Jelinek <jakub@redhat.com>
11014
11015 * testsuite/libgomp.dg/omp-loop03.c: New test.
11016
11017 2005-09-27 Diego Novillo <dnovillo@redhat.com>
11018
11019 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
11020
11021 2005-09-27 Diego Novillo <dnovillo@redhat.com>
11022
11023 * testsuite/libgomp.dg/omp-single-1.c: New test.
11024 * testsuite/libgomp.dg/shared-1.c: Return 0.
11025 Add prototype for abort.
11026 * testsuite/libgomp.dg/shared-2.c: Likewise.
11027
11028 2005-09-26 Jakub Jelinek <jakub@redhat.com>
11029
11030 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
11031 constructs.
11032
11033 2005-09-26 Diego Novillo <dnovillo@redhat.com>
11034
11035 * testsuite/libgomp.dg/shared-1.c: New test.
11036 * testsuite/libgomp.dg/shared-2.c: New test.
11037
11038 2005-09-24 Richard Henderson <rth@redhat.com>
11039
11040 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
11041
11042 2005-09-24 Richard Henderson <rth@redhat.com>
11043
11044 * iter.c (gomp_iter_static_next): Round up when computing number
11045 of iterations. Don't bother distributing a remainder equally.
11046
11047 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
11048 Don't call srand. Zero b before testing.
11049 (main): New.
11050
11051 2005-09-24 Jakub Jelinek <jakub@redhat.com>
11052
11053 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
11054 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
11055
11056 2005-09-23 Jakub Jelinek <jakub@redhat.com>
11057
11058 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
11059 without !$omp end do, followed immediately by subroutine end.
11060
11061 2005-09-23 Diego Novillo <dnovillo@redhat.com>
11062
11063 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
11064
11065 2005-09-22 Richard Henderson <rth@redhat.com>
11066
11067 * critical.c (GOMP_critical_name_start): Change argument to void**.
11068 Reuse the pointer space if the mutex fits.
11069 (GOMP_critical_name_end): Likewise.
11070 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
11071 * libgomp_g.h (GOMP_critical_name_start): Update decl.
11072 (GOMP_critical_name_end): Likewise.
11073 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
11074 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
11075
11076 2005-09-20 Richard Henderson <rth@redhat.com>
11077
11078 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
11079 (create_lock_lock): New.
11080 (initialize_critical): Initialize it.
11081 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
11082 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
11083
11084 2005-09-20 Diego Novillo <dnovillo@redhat.com>
11085
11086 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
11087
11088 2005-09-20 Diego Novillo <dnovillo@redhat.com>
11089
11090 * testsuite/libgomp.dg/omp-loop01.c: New test.
11091 * testsuite/libgomp.dg/omp-loop02.c: New test.
11092
11093 2005-09-20 Jakub Jelinek <jakub@redhat.com>
11094
11095 * configure.ac (AC_PROG_FC): Add.
11096 (USE_FORTRAN): New automake conditional.
11097 * configure: Rebuilt.
11098 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
11099 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
11100 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
11101 Add rules to build them.
11102 * Makefile.in: Rebuilt.
11103 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
11104 OMP_NEST_LOCK_KIND.
11105 * libgomp.map: Add Fortran wrappers.
11106 * libgomp_f.h.in: New file.
11107 * omp_lib.h.in: New file.
11108 * omp_lib.f90.in: New file.
11109 * fortran.c: New file.
11110 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
11111 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
11112 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
11113 libgfortran has been built.
11114 * testsuite/libgomp.fortran/fortran.exp: New file.
11115 * testsuite/libgomp.fortran/omp_cond1.f: New test.
11116 * testsuite/libgomp.fortran/omp_cond2.f: New test.
11117 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
11118 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
11119 * testsuite/libgomp.fortran/omp_hello.f: New test.
11120 * testsuite/libgomp.fortran/omp_orphan.f: New test.
11121 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
11122 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
11123 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
11124 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
11125 * testsuite/libgomp.fortran/omp_reduction.f: New test.
11126 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
11127 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
11128
11129 2005-08-30 Richard Henderson <rth@redhat.com>
11130
11131 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
11132 function for when aliases are not usable.
11133 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
11134 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
11135 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
11136 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
11137 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
11138 GOMP_loop_ordered_guided_next): Likewise.
11139 * ordered.c (GOMP_ordered_start): Likewise.
11140
11141 2005-08-01 Diego Novillo <dnovillo@redhat.com>
11142
11143 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
11144 * testsuite/libgomp.dg/omp_hello.c: Fix return code
11145 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
11146 * testsuite/libgomp.dg/omp_orphan.c: Likewise
11147 * testsuite/libgomp.dg/omp_reduction.c: Likewise
11148 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
11149 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
11150 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
11151 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
11152
11153 2005-07-07 Eric Christopher <echristo@redhat.com>
11154 Diego Novillo <dnovillo@redhat.com>
11155
11156 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
11157 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
11158 up code.
11159 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
11160 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
11161 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
11162 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
11163 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
11164 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
11165 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
11166
11167 2005-06-13 Diego Novillo <dnovillo@redhat.com>
11168
11169 * TOPLEVEL.patch: Remove.
11170
11171 2005-05-16 Richard Henderson <rth@redhat.com>
11172
11173 * configure.ac: Test for clock_gettime.
11174 * config.h.in, configure: Rebuild.
11175 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
11176 (omp_get_wtime): Use clock_gettime if available.
11177 (omp_get_wtick): Use clock_getres if available.
11178
11179 2005-05-11 Richard Henderson <rth@redhat.com>
11180
11181 * config/linux/ia64/futex.h: New file.
11182 * configure.tgt: Use it.
11183
11184 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
11185
11186 2005-05-07 Richard Henderson <rth@redhat.com>
11187
11188 * config/linux/powerpc/futex.h: New file.
11189 * configure.tgt: Use it.
11190
11191 * config/linux/i486/futex.h: Merge ...
11192 * config/linux/x86_64/futex.h: ... into ...
11193 * config/linux/x86/futex.h: ... here.
11194 * configure.tgt: Update to match.
11195
11196 2005-05-06 Richard Henderson <rth@redhat.com>
11197
11198 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
11199 * config/linux/i486/futex.h: Likewise.
11200 * config/linux/x86_64/futex.h: Likewise.
11201
11202 * config/linux/lock.c: New file.
11203 * config/linux/omp-lock.h: New file.
11204
11205 * critical.c, env.h: Don't include omp.h
11206 * config/posix/lock.c: Include libgomp.h instead of omp.h.
11207 * config/posix/time.c: Likewise.
11208 * config/posix/omp-lock.h: New file.
11209 * libgomp.h: Include omp-lock.h and omp.h.
11210 * Makefile.am (nodist_include_HEADERS): New.
11211 (omp.h): New rule.
11212 * configure.ac (PERL): New.
11213 * mkomp_h.pl: New file.
11214 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
11215 with templates.
11216 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
11217
11218 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
11219 build directory. Re-add -march=i486 hack.
11220
11221 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
11222 (libgomp_link_flags): Remove.
11223 (libgomp_initialized): Remove.
11224 (libgomp_init): Don't protect from reinitialization. Copy code
11225 from libstdc++ for getting the multilib set correctly.
11226
11227 2005-05-05 Richard Henderson <rth@redhat.com>
11228
11229 * config/linux/alpha/futex.h: New file.
11230 * configure.tgt (alpha*-*-linux*): Use it.
11231
11232 * config/posix/mutex.c: New file.
11233 * config/posix/sem.c: Use libgomp.h.
11234
11235 * configure.tgt (x86_64-linux): Also test CC for -m32.
11236 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
11237
11238 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
11239 after $gccpath.
11240
11241 * Makefile.am (SUBDIRS): New.
11242 (libgomp_la_LDFLAGS): Add -lpthread.
11243 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
11244 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
11245
11246 * libgomp_g.h: New file.
11247 * libgomp.h: Split out all public declarations to libgomp_g.h.
11248 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
11249 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
11250 * config/linux/sem.h: Likewise.
11251 * config/posix/sem.h: Likewise.
11252
11253 * Makefile.am (AM_LDFLAGS): New.
11254 (libgomp_version_script): Split out from ...
11255 (libgomp_la_LDFLAGS): ... here.
11256 (libgomp_version_info): New.
11257 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
11258 (LIBGOMP_ENABLE): New.
11259 (LIBGOMP_CHECK_LINKER_FEATURES): New.
11260 (LIBGOMP_ENABLE_SYMVERS): New.
11261 * configure.ac (AC_INIT): Version 1.0.
11262 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
11263 (enable-linux-futex): Likewise. Rename from enable-futex.
11264 (libtool_VERSION): New.
11265 (LIBGOMP_ENABLE_SYMVERS): Use it.
11266 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
11267 * Makefile.in, aclocal.m4, configure: Rebuild.
11268
11269 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
11270 (gomp_mutex_unlock_slow): Fix typo.
11271 * config/linux/sem.c: Similarly.
11272 (gomp_sem_post_slow): Fix typo.
11273 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
11274 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
11275 [__PIC__] (sys_futex0): Don't use tmp output in asm.
11276
11277 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
11278 (libgomp_la_LDFLAGS): Add top_srcdir to path.
11279 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
11280 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
11281 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
11282 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
11283 LDFLAGS. Pull enable_futex check to top-level.
11284 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
11285 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
11286
11287 First attempt at real configury.
11288 * Makefile, config.h: Remove file.
11289 * Makefile.am, Makefile.in: New file.
11290 * acinclude.m4 aclocal.m4: New file.
11291 * configure.ac, configure.tgt, configure: New file.
11292
11293 * config/posix/lock.c: Rename from sys-lock.c.
11294 * config/posix/mutex.h: Rename from sys-mutex.h.
11295 * config/posix/sem.c: Rename from sys-sem.c.
11296 * config/posix/sem.h: Rename from sys-sem.h.
11297 * config/posix/proc.c: Rename from sys-proc.c.
11298 * config/posix/time.c: Rename from sys-proc.c.
11299
11300 * config/linux/mutex.c: New file.
11301 * config/linux/mutex.h: New file.
11302 * config/linux/sem.c: New file.
11303 * config/linux/sem.h: New file.
11304 * config/linux/i486/futex.h: New file.
11305 * config/linux/x86_64/futex.h: New file.
11306
11307 2005-05-04 Richard Henderson <rth@redhat.com>
11308
11309 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
11310 * libgomp.h: Declare them.
11311 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
11312 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
11313
11314 2005-05-04 Richard Henderson <rth@redhat.com>
11315
11316 * libgomp-1 code drop
11317
11318 2005-05-04 Richard Henderson <rth@redhat.com>
11319
11320 * iter.c (gomp_iter_static_next): Return tri-state on 0.
11321 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
11322 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
11323 (gomp_iter_static_next): Update.
11324 (gomp_ordered_static_next): Update.
11325 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
11326 (gomp_loop_ordered_static_start): Likewise. Exit early for a
11327 totally empty range.
11328 (gomp_loop_ordered_static_next): Refine test for calling
11329 gomp_ordered_static_next.
11330 * testsuite/ordered-1.c: Add case for more threads than iterations.
11331
11332 * iter.c (gomp_iter_runtime_next_locked): Remove.
11333 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
11334 gomp_loop_guided_start, gomp_loop_ordered_static_start,
11335 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
11336 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
11337 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
11338 gomp_loop_ordered_guided_next): Downcase name, make static, add
11339 an external alias with the old name.
11340 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
11341 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
11342 switch and call one of the above static functions.
11343 * libgomp.h: Update.
11344
11345 * work.c (gomp_work_share_start): Lock the mutex for !first too.
11346 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
11347 GOMP_loop_guided_start, GOMP_loop_runtime_start,
11348 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
11349 GOMP_loop_ordered_guided_start): Update to match.
11350 * sections.c (GOMP_sections_start): Likewise.
11351 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
11352
11353 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
11354 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
11355 Use bounds check instead of modulus.
11356 (gomp_ordered_sync): Split out of GOMP_ordered_start.
11357 (gomp_ordered_last): Don't sync with ordered_owner here.
11358 (gomp_ordered_next): Likewise.
11359 (gomp_ordered_static_loop_next): Likewise.
11360 * loop.c, libgomp.h: Update to match.
11361
11362 * libgomp.h (GOMP_barrier): Declare.
11363
11364 * testsuite/barrier-1.c: New file.
11365 * testsuite/critical-1.c: New file.
11366 * testsuite/ordered-2.c: New file.
11367 * testsuite/ordered-1.c: New file.
11368 * testsuite/sections-1.c: New file.
11369 * testsuite/single-1.c: New file.
11370 * testsuite/Makefile (TESTS): Add them.
11371
11372 2005-05-04 Richard Henderson <rth@redhat.com>
11373
11374 * libgomp.h (struct gomp_work_share): Add ordered_owner.
11375 * loop.c (GOMP_loop_static_start): If not the startup thread,
11376 acquire the mutex to wait for initialization complete.
11377 (GOMP_loop_ordered_static_start): Likewise.
11378 (GOMP_loop_ordered_runtime_start): Likewise.
11379 (GOMP_loop_ordered_static_first): Remove.
11380 (GOMP_loop_ordered_dynamic_first): Remove.
11381 (GOMP_loop_ordered_guided_first): Remove.
11382 (GOMP_loop_ordered_runtime_first): Remove.
11383 * ordered.c (gomp_ordered_loop_first): Post to own release when
11384 we're the first thread.
11385 (gomp_ordered_loop_last): Wait on release if not owner.
11386 (gomp_ordered_loop_next): Likewise.
11387 (gomp_ordered_static_loop_init): New.
11388 (gomp_ordered_static_loop_next): Use ordered_owner.
11389 (GOMP_ordered_start): Likewise.
11390 * work.c (gomp_new_work_share): Initialize ordered_owner.
11391
11392 2005-05-03 Richard Henderson <rth@redhat.com>
11393
11394 * Makefile (OPT): New.
11395 (CFLAGS): Use it.
11396
11397 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
11398 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
11399 * libgomp.h, libgomp.map, NOTES: Update to match.
11400
11401 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
11402 Add initialized and thr members.
11403 (gomp_thread_start): Pause when initially spawned to wait for
11404 the whole team to be created.
11405 (gomp_team_start): Release team members at the end.
11406
11407 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
11408 (f_foo_1): Use GOMP_loop_end.
11409 (f_foo_2): Use GOMP_loop_end_nowait.
11410
11411 * testsuite/loop-2.c: New file.
11412 * testsuite/Makefile (TESTS): Add it.
11413
11414 2005-05-03 Richard Henderson <rth@redhat.com>
11415
11416 * iter.c (gomp_iter_static_next): Fix overflow check typo.
11417 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
11418 * team.c (new_team): Initialize oldest_live_gen to 1 if no
11419 initial work_share.
11420
11421 * testsuite/Makefile: New file.
11422 * testsuite/loop-1.c: New file.
11423
11424 2005-05-03 Richard Henderson <rth@redhat.com>
11425
11426 Initial implementation and checkin.
11427 \f
11428 Copyright (C) 2005-2019 Free Software Foundation, Inc.
11429
11430 Copying and distribution of this file, with or without modification,
11431 are permitted in any medium without royalty provided the copyright
11432 notice and this notice are preserved.
This page took 0.529625 seconds and 5 git commands to generate.