[nvptx] Remove use of CUDA unified memory in libgomp
[gcc.git] / libgomp / ChangeLog
1 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
2
3 * plugin/plugin-nvptx.c (struct cuda_map): New.
4 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
5 h_tail with (cuda_map *) map.
6 (cuda_map_create): New function.
7 (cuda_map_destroy): New function.
8 (map_init): Update to use a linked list of cuda_map objects.
9 (map_fini): Likewise.
10 (map_pop): Likewise.
11 (map_push): Likewise. Return CUdeviceptr instead of void.
12 (init_streams_for_device): Remove stales references to ptx_stream
13 members.
14 (select_stream_for_async): Likewise.
15 (nvptx_exec): Update call to map_init.
16
17 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
18 Julian Brown <julian@codesourcery.com>
19
20 PR middle-end/86336
21 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
22
23 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
24 Thomas Koenig <tkoenig@gcc.gnu.org>
25
26 PR fortran/25829
27 * testsuite/libgomp.fortran/async_io_1.f90: New test.
28 * testsuite/libgomp.fortran/async_io_2.f90: New test.
29 * testsuite/libgomp.fortran/async_io_3.f90: New test.
30 * testsuite/libgomp.fortran/async_io_4.f90: New test.
31 * testsuite/libgomp.fortran/async_io_5.f90: New test.
32 * testsuite/libgomp.fortran/async_io_6.f90: New test.
33 * testsuite/libgomp.fortran/async_io_7.f90: New test.
34
35 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
36 Tom de Vries <tdevries@suse.de>
37
38 PR target/85590
39 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
40 (cuOccupancyMaxPotentialBlockSize): Declare.
41 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
42 CUDA_ONE_CALL_MAYBE_NULL.
43 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
44 CUoccupancyB2DSize and declare
45 cuOccupancyMaxPotentialBlockSize.
46 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
47 default num_gangs and num_workers when the driver supports it.
48
49 2018-08-08 Tom de Vries <tdevries@suse.de>
50
51 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
52 CUDA_ONE_CALL_MAYBE_NULL.
53 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
54 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
55 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
56 are not found.
57
58 2018-08-08 Tom de Vries <tdevries@suse.de>
59
60 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
61 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
62 present.
63
64 2018-08-08 Tom de Vries <tdevries@suse.de>
65
66 * plugin/plugin-nvptx.c
67 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
68 (nvptx_open_device): Use
69 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
70
71 2018-08-08 Tom de Vries <tdevries@suse.de>
72
73 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
74 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
75
76 2018-08-07 Tom de Vries <tdevries@suse.de>
77
78 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
79 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
80 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
81 corresponding call in CUDA_ONE_CALL. Add def/undef of
82 CUDA_ONE_CALL_MAYBE_NULL.
83 (CUDA_CALL_EXISTS): Define.
84
85 2018-08-07 Tom de Vries <tdevries@suse.de>
86
87 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
88 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
89 corresponding undefs right after.
90
91 2018-08-04 Tom de Vries <tdevries@suse.de>
92
93 * plugin/configfrag.ac: For --without-cuda-driver, set
94 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
95 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
96 * configure: Regenerate.
97
98 2018-08-02 Tom de Vries <tdevries@suse.de>
99
100 PR target/86660
101 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
102 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
103 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
104 Same.
105 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
106 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
107 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
108
109 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
110 Thomas Schwinge <thomas@codesourcery.com>
111
112 * config/nvptx/oacc-parallel.c: Truncate.
113
114 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
115 James Norris <jnorris@codesourcery.com>
116
117 * plugin/plugin-nvptx.c (struct map): Removed.
118 (map_init, map_pop): Remove use of struct map.
119 (map_push): Likewise and change argument list.
120 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
121
122 2018-08-01 Tom de Vries <tdevries@suse.de>
123
124 * plugin/cuda-lib.def: New file. Factor out of ...
125 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
126 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
127 using CUDA_CALLS.
128
129 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
130
131 Revert 'AsyncI/O patch committed'.
132 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
133 Thomas Koenig <tkoenig@gcc.gnu.org>
134
135 PR fortran/25829
136 * testsuite/libgomp.fortran/async_io_1.f90: New test.
137 * testsuite/libgomp.fortran/async_io_2.f90: New test.
138 * testsuite/libgomp.fortran/async_io_3.f90: New test.
139 * testsuite/libgomp.fortran/async_io_4.f90: New test.
140 * testsuite/libgomp.fortran/async_io_5.f90: New test.
141 * testsuite/libgomp.fortran/async_io_6.f90: New test.
142 * testsuite/libgomp.fortran/async_io_7.f90: New test.
143
144 2018-07-30 Tom de Vries <tdevries@suse.de>
145
146 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
147 (nvptx_exec): Ensure worker and vector default dims don't exceed
148 targ_fn->max_threads_per_block.
149
150 2018-07-30 Tom de Vries <tdevries@suse.de>
151
152 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
153 (nvptx_open_device): Init default_dims for device.
154 (nvptx_exec): Use default_dims from device.
155
156 2018-07-26 Jakub Jelinek <jakub@redhat.com>
157
158 PR testsuite/86660
159 * testsuite/libgomp.c++/for-15.C (results): Include it in
160 omp declare target region.
161 (main): Use map (always, tofrom: results) instead of
162 map (tofrom: results).
163
164 PR middle-end/86660
165 * testsuite/libgomp.c/pr86660.c: New test.
166
167 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
168 Tom de Vries <tdevries@suse.de>
169
170 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
171 sufficient resources to launch a kernel, and give a hint on how to fix
172 it.
173
174 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
175 Tom de Vries <tdevries@suse.de>
176
177 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
178 max_threads_per_block and max_threads_per_multiprocessor fields.
179 (nvptx_open_device): Initialize new fields.
180 (nvptx_exec): Use num_sms, and new fields.
181
182 2018-07-26 Tom de Vries <tdevries@suse.de>
183
184 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
185 to correct locations. Remove xfail.
186
187 2018-07-26 Tom de Vries <tdevries@suse.de>
188
189 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
190 acc_wait. Move acc_async_test calls to correct locations. Remove
191 xfail.
192
193 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
194 Thomas Koenig <tkoenig@gcc.gnu.org>
195
196 PR fortran/25829
197 * testsuite/libgomp.fortran/async_io_1.f90: New test.
198 * testsuite/libgomp.fortran/async_io_2.f90: New test.
199 * testsuite/libgomp.fortran/async_io_3.f90: New test.
200 * testsuite/libgomp.fortran/async_io_4.f90: New test.
201 * testsuite/libgomp.fortran/async_io_5.f90: New test.
202 * testsuite/libgomp.fortran/async_io_6.f90: New test.
203 * testsuite/libgomp.fortran/async_io_7.f90: New test.
204
205 2018-07-17 Jakub Jelinek <jakub@redhat.com>
206
207 PR middle-end/86542
208 * testsuite/libgomp.c++/pr86542.C: New test.
209
210 PR middle-end/86539
211 * testsuite/libgomp.c++/pr86539.C: New test.
212
213 2018-07-11 Jakub Jelinek <jakub@redhat.com>
214
215 PR c++/86443
216 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
217 (results): Make sure the variable is not inside declare target region.
218 (qux): Remove unused function.
219
220 2018-07-10 Jakub Jelinek <jakub@redhat.com>
221
222 PR c++/86443
223 * testsuite/libgomp.c++/for-15.C: New test.
224
225 2018-06-26 Jakub Jelinek <jakub@redhat.com>
226
227 PR c++/86291
228 * testsuite/libgomp.c++/pr86291.C: New test.
229
230 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
231
232 * libgomp.texi (Top): Move www.openmp.org to https.
233 (Enabling OpenMP): Ditto.
234 (omp_get_active_level): Ditto.
235 (omp_get_ancestor_thread_num): Ditto.
236 (omp_get_cancellation): Ditto.
237 (omp_get_default_device): Ditto.
238 (omp_get_dynamic): Ditto.
239 (omp_get_level): Ditto.
240 (omp_get_max_active_levels): Ditto.
241 (omp_get_max_task_priority): Ditto.
242 (omp_get_max_threads): Ditto.
243 (omp_get_nested): Ditto.
244 (omp_get_num_devices): Ditto.
245 (omp_get_num_procs): Ditto.
246 (omp_get_num_teams): Ditto.
247 (omp_get_num_threads): Ditto.
248 (omp_get_proc_bind): Ditto.
249 (omp_get_schedule): Ditto.
250 (omp_get_team_num): Ditto.
251 (omp_get_team_size): Ditto.
252 (omp_get_thread_limit): Ditto.
253 (omp_get_thread_num): Ditto.
254 (omp_in_parallel): Ditto.
255 (omp_in_final): Ditto.
256 (omp_is_initial_device): Ditto.
257 (omp_set_default_device): Ditto.
258 (omp_set_dynamic): Ditto.
259 (omp_set_max_active_levels): Ditto.
260 (omp_set_nested): Ditto.
261 (omp_set_num_threads): Ditto.
262 (omp_set_schedule): Ditto.
263 (omp_init_lock): Ditto.
264 (omp_set_lock): Ditto.
265 (omp_test_lock): Ditto.
266 (omp_unset_lock): Ditto.
267 (omp_destroy_lock): Ditto.
268 (omp_init_nest_lock): Ditto.
269 (omp_set_nest_lock): Ditto.
270 (omp_test_nest_lock): Ditto.
271 (omp_unset_nest_lock): Ditto.
272 (omp_destroy_nest_lock): Ditto.
273 (omp_get_wtick): Ditto.
274 (omp_get_wtime): Ditto.
275 (OMP_CANCELLATION): Ditto.
276 (OMP_DISPLAY_ENV): Ditto.
277 (OMP_DEFAULT_DEVICE): Ditto.
278 (OMP_DYNAMIC): Ditto.
279 (OMP_MAX_ACTIVE_LEVELS): Ditto.
280 (OMP_MAX_TASK_PRIORITY): Ditto.
281 (OMP_NESTED): Ditto.
282 (OMP_NUM_THREADS): Ditto.
283 (OMP_PROC_BIND): Ditto.
284 (OMP_PLACES): Ditto.
285 (OMP_STACKSIZE): Ditto.
286 (OMP_SCHEDULE): Ditto.
287 (OMP_THREAD_LIMIT): Ditto.
288 (OMP_WAIT_POLICY): Ditto.
289
290 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
291 James Norris <jnorris@codesourcery.com>
292 Julian Brown <julian@codesourcery.com>
293 Thomas Schwinge <thomas@codesourcery.com>
294 Tom de Vries <tom@codesourcery.com>
295
296 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
297 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
298 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
299 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
300 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
301 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
302 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
303 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
304 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
305 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
306 Likewise.
307 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
308 Likewise.
309 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
310 Likewise.
311 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
312 Likewise.
313 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
314 Likewise.
315 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
316 Likewise.
317 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
318 Likewise.
319 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
320 Likewise.
321 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
322 Likewise.
323 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
324 Likewise.
325 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
326 Likewise.
327 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
328 Likewise.
329 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
330 Likewise.
331 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
332 Likewise.
333 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
334 Likewise.
335 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
336 Likewise.
337 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
338 Likewise.
339 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
340 Likewise.
341 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
342 Likewise.
343 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
344 Likewise.
345 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
346 Likewise.
347 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
348 Likewise.
349 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
350 Likewise.
351 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
352 Likewise.
353 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
354 Likewise.
355 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
356 Likewise.
357 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
358 Likewise.
359 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
360 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
361 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
362 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
363 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
364 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
365 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
366 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
367 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
368 Likewise.
369 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
370 Likewise.
371 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
372 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
373 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
374 Likewise.
375 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
376 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
377 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
378 Likewise.
379 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
380 Likewise.
381 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
382 Likewise.
383 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
384 Likewise.
385 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
386 Likewise.
387 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
388 Likewise.
389 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
390 Likewise.
391 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
392 Likewise.
393 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
394 Likewise.
395 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
396 Likewise.
397 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
398 Likewise.
399 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
400 Likewise.
401 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
402 Likewise.
403 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
404 Likewise.
405 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
406 Likewise.
407 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
408 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
409 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
410 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
411 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
412 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
413 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
414
415 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
416 Thomas Schwinge <thomas@codesourcery.com>
417 Cesar Philippidis <cesar@codesourcery.com>
418
419 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
420 (gomp_acc_remove_pointer): Update declaration.
421 (gomp_acc_declare_allocate): Declare.
422 (gomp_remove_var): Declare.
423 * libgomp.map (OACC_2.5): Define.
424 * oacc-mem.c (acc_map_data): Update refcount.
425 (acc_unmap_data): Likewise.
426 (present_create_copy): Likewise.
427 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
428 (acc_copyin): Likewise.
429 (FLAG_FINALIZE): Define.
430 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
431 (acc_delete_finalize): New function.
432 (acc_delete_finalize_async): New function.
433 (acc_copyout_finalize): New function.
434 (acc_copyout_finalize_async): New function.
435 (gomp_acc_insert_pointer): Update refcounts.
436 (gomp_acc_remove_pointer): Return if data is not present on the
437 accelerator.
438 * oacc-parallel.c (find_pset): Rename to find_pointer.
439 (find_pointer): Add support for GOMP_MAP_POINTER.
440 (handle_ftn_pointers): New function.
441 (GOACC_parallel_keyed): Update refcounts of variables.
442 (GOACC_enter_exit_data): Add support for finalized data mappings.
443 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
444 of fortran arrays.
445 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
446 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
447 for GOMP_MAP_FORCE_FROM.
448 * openacc.f90 (module openacc_internal): Add
449 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
450 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
451 acc_copyout_finalize and acc_delete_finalize.
452 (acc_copyout_finalize_32_h): New subroutine.
453 (acc_copyout_finalize_64_h): New subroutine.
454 (acc_copyout_finalize_array_h): New subroutine.
455 (acc_delete_finalize_32_h): New subroutine.
456 (acc_delete_finalize_64_h): New subroutine.
457 (acc_delete_finalize_array_h): New subroutine.
458 * openacc.h (acc_copyout_finalize): Declare.
459 (acc_copyout_finalize_async): Declare.
460 (acc_delete_finalize): Declare.
461 (acc_delete_finalize_async): Declare.
462 * openacc_lib.h (acc_copyout_finalize): New interface.
463 (acc_delete_finalize): New interface.
464 * target.c (gomp_map_vars): Update dynamic_refcount.
465 (gomp_remove_var): New function.
466 (gomp_unmap_vars): Use it.
467 (gomp_unload_image_from_device): Likewise.
468 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
469 case to utilize OpenACC 2.5 data clause semantics.
470 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
471 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
472 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
473 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
474 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
475 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
476 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
477 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
478 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
479 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
480 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
481 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
482 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
483 utilize OpenACC 2.5 data clause semantics.
484 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
485 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
486 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
487 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
488 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
489 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
490 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
491 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
492 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
493
494 2018-05-21 Janus Weil <janus@gcc.gnu.org>
495
496 PR fortran/85841
497 PR testsuite/85865
498 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
499 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
500 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
501 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
502 * testsuite/libgomp.fortran/task2.f90: Ditto.
503 * testsuite/libgomp.fortran/vla1.f90: Ditto.
504 * testsuite/libgomp.fortran/vla2.f90: Ditto.
505 * testsuite/libgomp.fortran/vla3.f90: Ditto.
506 * testsuite/libgomp.fortran/vla4.f90: Ditto.
507 * testsuite/libgomp.fortran/vla5.f90: Ditto.
508 * testsuite/libgomp.fortran/vla6.f90: Ditto.
509 * testsuite/libgomp.fortran/vla8.f90: Ditto.
510 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
511 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
512
513 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
514
515 PR c++/85782
516 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
517
518 2018-05-09 Tom de Vries <tom@codesourcery.com>
519
520 PR libgomp/82901
521 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
522 to GOACC_enter_exit_data.
523
524 2018-05-09 Tom de Vries <tom@codesourcery.com>
525
526 PR libgomp/83792
527 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
528 (async_synchronous_p): New function.
529 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
530 async_valid_p.
531 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
532 async_valid_stream_id_p.
533 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
534 * oacc-parallel.c (GOACC_parallel_keyed): Same.
535
536 2018-05-07 Tom de Vries <tom@codesourcery.com>
537
538 PR testsuite/85677
539 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
540 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
541
542 2018-05-03 Tom de Vries <tom@codesourcery.com>
543
544 PR testsuite/85106
545 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
546 extra_tool_flags if it contains an -foffload=-fdump-* flag.
547 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
548 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
549
550 2018-05-02 Tom de Vries <tom@codesourcery.com>
551
552 PR libgomp/85411
553 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
554 GOMP_OPENACC_DIM ...
555 * env.c (parse_gomp_openacc_dim): ... here. New function.
556 (initialize_env): Call parse_gomp_openacc_dim.
557 (goacc_default_dims): Define.
558 * libgomp.h (goacc_default_dims): Declare.
559 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
560 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
561 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
562 GOMP_PLUGIN_acc_default_dim.
563 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
564 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
565
566 2018-05-02 Tom de Vries <tom@codesourcery.com>
567
568 PR testsuite/83791
569 * testsuite/libgomp.c++/udr-9.C: Update.
570 * testsuite/libgomp.c++/atomic-16.C: Remove.
571 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
572 * testsuite/libgomp.c++/loop-13.C: Remove.
573 * testsuite/libgomp.c++/loop-14.C: Remove.
574 * testsuite/libgomp.c++/loop-15.C: Remove.
575 * testsuite/libgomp.c++/monotonic-1.C: Remove.
576 * testsuite/libgomp.c++/monotonic-2.C: Remove.
577 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
578 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
579 * testsuite/libgomp.c++/ordered-1.C: Remove.
580 * testsuite/libgomp.c++/pr45784.C: Remove.
581 * testsuite/libgomp.c++/pr64824.C: Remove.
582 * testsuite/libgomp.c++/pr64868.C: Remove.
583 * testsuite/libgomp.c++/pr66199-1.C: Remove.
584 * testsuite/libgomp.c++/pr66199-2.C: Remove.
585 * testsuite/libgomp.c++/pr66199-3.C: Remove.
586 * testsuite/libgomp.c++/pr66199-4.C: Remove.
587 * testsuite/libgomp.c++/pr66199-5.C: Remove.
588 * testsuite/libgomp.c++/pr66199-6.C: Remove.
589 * testsuite/libgomp.c++/pr66199-7.C: Remove.
590 * testsuite/libgomp.c++/pr66199-8.C: Remove.
591 * testsuite/libgomp.c++/pr66199-9.C: Remove.
592 * testsuite/libgomp.c++/pr69389.C: Remove.
593 * testsuite/libgomp.c++/simd10.C: Remove.
594 * testsuite/libgomp.c++/simd11.C: Remove.
595 * testsuite/libgomp.c++/simd12.C: Remove.
596 * testsuite/libgomp.c++/simd13.C: Remove.
597 * testsuite/libgomp.c++/target-1.C: Remove.
598 * testsuite/libgomp.c++/target-3.C: Remove.
599 * testsuite/libgomp.c++/target-4.C: Remove.
600 * testsuite/libgomp.c++/target-5.C: Remove.
601 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
602 * testsuite/libgomp.c++/taskloop-1.C: Remove.
603 * testsuite/libgomp.c++/taskloop-2.C: Remove.
604 * testsuite/libgomp.c++/taskloop-3.C: Remove.
605 * testsuite/libgomp.c++/taskloop-4.C: Remove.
606 * testsuite/libgomp.c++/udr-9.C: Remove.
607 * testsuite/libgomp.c++/for-10.C: Remove.
608 * testsuite/libgomp.c++/for-11.C: Remove.
609 * testsuite/libgomp.c++/for-12.C: Remove.
610 * testsuite/libgomp.c++/for-13.C: Remove.
611 * testsuite/libgomp.c++/for-14.C: Remove.
612 * testsuite/libgomp.c++/for-9.C: Remove.
613 * testsuite/libgomp.c/atomic-18.c: Move ...
614 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
615 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
616 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
617 * testsuite/libgomp.c/loop-13.c: Move ...
618 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
619 * testsuite/libgomp.c/loop-14.c: Move ...
620 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
621 * testsuite/libgomp.c/loop-15.c: Remove.
622 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
623 * testsuite/libgomp.c/monotonic-1.c: Move ...
624 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
625 * testsuite/libgomp.c/monotonic-2.c: Move ...
626 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
627 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
628 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
629 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
630 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
631 * testsuite/libgomp.c/ordered-4.c: Move ...
632 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
633 * testsuite/libgomp.c/pr45784.c: Move ...
634 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
635 * testsuite/libgomp.c/pr64824.c: Move ...
636 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
637 * testsuite/libgomp.c/pr64868.c: Move ...
638 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
639 * testsuite/libgomp.c/pr66199-1.c: Move ...
640 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
641 * testsuite/libgomp.c/pr66199-2.c: Move ...
642 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
643 * testsuite/libgomp.c/pr66199-3.c: Move ...
644 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
645 * testsuite/libgomp.c/pr66199-4.c: Move ...
646 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
647 * testsuite/libgomp.c/pr66199-5.c: Move ...
648 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
649 * testsuite/libgomp.c/pr66199-6.c: Move ...
650 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
651 * testsuite/libgomp.c/pr66199-7.c: Move ...
652 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
653 * testsuite/libgomp.c/pr66199-8.c: Move ...
654 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
655 * testsuite/libgomp.c/pr66199-9.c: Move ...
656 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
657 * testsuite/libgomp.c/pr69389.c: Move ...
658 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
659 * testsuite/libgomp.c/simd-14.c: Move ...
660 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
661 * testsuite/libgomp.c/simd-15.c: Move ...
662 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
663 * testsuite/libgomp.c/simd-16.c: Move ...
664 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
665 * testsuite/libgomp.c/simd-17.c: Move ...
666 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
667 * testsuite/libgomp.c/target-1.c: Move ...
668 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
669 * testsuite/libgomp.c/target-10.c: Move ...
670 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
671 * testsuite/libgomp.c/target-13.c: Move ...
672 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
673 * testsuite/libgomp.c/target-2.c: Move ...
674 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
675 * testsuite/libgomp.c/taskgroup-1.c: Move ...
676 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
677 * testsuite/libgomp.c/taskloop-1.c: Move ...
678 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
679 * testsuite/libgomp.c/taskloop-2.c: Move ...
680 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
681 * testsuite/libgomp.c/taskloop-3.c: Move ...
682 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
683 * testsuite/libgomp.c/taskloop-4.c: Move ...
684 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
685 * testsuite/libgomp.c/udr-1.c: Move ...
686 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
687 * testsuite/libgomp.c/for-1.c: Move ...
688 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
689 * testsuite/libgomp.c/for-1.h: Move ...
690 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
691 * testsuite/libgomp.c/for-2.c: Move ...
692 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
693 * testsuite/libgomp.c/for-2.h: Move ...
694 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
695 * testsuite/libgomp.c/for-3.c: Move ...
696 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
697 * testsuite/libgomp.c/for-4.c: Move ...
698 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
699 * testsuite/libgomp.c/for-5.c: Move ...
700 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
701 * testsuite/libgomp.c/for-6.c: Move ...
702 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
703
704 2018-05-02 Tom de Vries <tom@codesourcery.com>
705
706 PR libgomp/82428
707 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
708 __builtin_goacc_parlevel_{id,size}.
709 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
710 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
711 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
712 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
713 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
714 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
715 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
716 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
717 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
718 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
719 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
720 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
721 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
722 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
723 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
724 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
725 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
726 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
727 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
728 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
729 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
730 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
731 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
732
733 2018-05-02 Tom de Vries <tom@codesourcery.com>
734
735 PR testsuite/85106
736 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
737
738 2018-05-02 Tom de Vries <tom@codesourcery.com>
739
740 PR testsuite/85106
741 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
742
743 2018-04-29 Julian Brown <julian@codesourcery.com>
744 Tom de Vries <tom@codesourcery.com>
745
746 PR testsuite/85527
747 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
748 arbitrary order for iterations of atomic subtract check.
749
750 2018-04-28 Tom de Vries <tom@codesourcery.com>
751
752 PR testsuite/85527
753 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
754 atomic capture results obtained in parallel loop to an array, instead of
755 to a scalar.
756
757 2018-04-26 Tom de Vries <tom@codesourcery.com>
758
759 PR libgomp/84020
760 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
761 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
762 (process_GOMP_NVPTX_JIT): New function.
763 (link_ptx): Use process_GOMP_NVPTX_JIT.
764
765 2018-04-26 Richard Biener <rguenther@suse.de>
766 Tom de Vries <tom@codesourcery.com>
767
768 PR lto/85422
769 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
770
771 2018-04-26 Tom de Vries <tom@codesourcery.com>
772
773 PR target/85519
774 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
775 recursion depth from 25 to 23.
776 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
777
778 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
779
780 * configure: Regenerated.
781
782 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
783 Tom de Vries <tom@codesourcery.com>
784
785 PR target/85445
786 * testsuite/libgomp.oacc-c++/ref-1.C: New.
787
788 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
789
790 PR libgomp/85463
791 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
792 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
793 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
794 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
795 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
796 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
797
798 PR libfortran/85166
799 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
800 abort".
801 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
802
803 2018-04-19 Jakub Jelinek <jakub@redhat.com>
804
805 * configure: Regenerated.
806
807 2018-04-18 David Malcolm <dmalcolm@redhat.com>
808
809 PR jit/85384
810 * configure: Regenerate.
811
812 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
813 Tom de Vries <tom@codesourcery.com>
814
815 PR middle-end/84955
816 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
817 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
818
819 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
820
821 PR fortran/83064
822 PR testsuite/85346
823 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
824 test from gfortran.dg to here.
825
826 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
827
828 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
829 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
830
831 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
832
833 PR middle-end/84955
834 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
835 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
836
837 2018-04-05 Tom de Vries <tom@codesourcery.com>
838
839 PR target/85204
840 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
841
842 2018-03-26 Tom de Vries <tom@codesourcery.com>
843
844 PR tree-optimization/85063
845 * testsuite/libgomp.c/switch-conversion-2.c: New test.
846 * testsuite/libgomp.c/switch-conversion.c: New test.
847 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
848 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
849
850 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
851
852 PR fortran/84381
853 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
854 call abort by STOP n.
855 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
856 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
857 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
858 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
859 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
860 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
861 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
862 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
863 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
864 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
865 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
866 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
867 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
868 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
869 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
870 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
871 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
872 * testsuite/libgomp.fortran/associate1.f90: Likewise.
873 * testsuite/libgomp.fortran/associate2.f90: Likewise.
874 * testsuite/libgomp.fortran/associate3.f90: Likewise.
875 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
876 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
877 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
878 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
879 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
880 * testsuite/libgomp.fortran/character1.f90: Likewise.
881 * testsuite/libgomp.fortran/character2.f90: Likewise.
882 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
883 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
884 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
885 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
886 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
887 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
888 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
889 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
890 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
891 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
892 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
893 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
894 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
895 * testsuite/libgomp.fortran/do1.f90: Likewise.
896 * testsuite/libgomp.fortran/do2.f90: Likewise.
897 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
898 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
899 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
900 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
901 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
902 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
903 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
904 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
905 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
906 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
907 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
908 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
909 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
910 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
911 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
912 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
913 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
914 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
915 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
916 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
917 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
918 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
919 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
920 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
921 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
922 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
923 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
924 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
925 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
926 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
927 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
928 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
929 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
930 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
931 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
932 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
933 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
934 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
935 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
936 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
937 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
938 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
939 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
940 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
941 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
942 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
943 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
944 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
945 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
946 * testsuite/libgomp.fortran/lib1.f90: Likewise.
947 * testsuite/libgomp.fortran/lib2.f: Likewise.
948 * testsuite/libgomp.fortran/lib3.f: Likewise.
949 * testsuite/libgomp.fortran/lib4.f90: Likewise.
950 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
951 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
952 * testsuite/libgomp.fortran/nested1.f90: Likewise.
953 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
954 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
955 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
956 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
957 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
958 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
959 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
960 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
961 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
962 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
963 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
964 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
965 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
966 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
967 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
968 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
969 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
970 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
971 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
972 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
973 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
974 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
975 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
976 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
977 * testsuite/libgomp.fortran/pr25162.f: Likewise.
978 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
979 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
980 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
981 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
982 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
983 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
984 * testsuite/libgomp.fortran/pr28390.f: Likewise.
985 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
986 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
987 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
988 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
989 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
990 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
991 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
992 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
993 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
994 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
995 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
996 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
997 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
998 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
999 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
1000 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
1001 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
1002 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
1003 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
1004 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
1005 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
1006 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
1007 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
1008 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
1009 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
1010 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1011 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
1012 * testsuite/libgomp.fortran/reference1.f90: Likewise.
1013 * testsuite/libgomp.fortran/reference2.f90: Likewise.
1014 * testsuite/libgomp.fortran/retval1.f90: Likewise.
1015 * testsuite/libgomp.fortran/retval2.f90: Likewise.
1016 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
1017 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
1018 * testsuite/libgomp.fortran/simd1.f90: Likewise.
1019 * testsuite/libgomp.fortran/simd2.f90: Likewise.
1020 * testsuite/libgomp.fortran/simd3.f90: Likewise.
1021 * testsuite/libgomp.fortran/simd4.f90: Likewise.
1022 * testsuite/libgomp.fortran/simd5.f90: Likewise.
1023 * testsuite/libgomp.fortran/simd6.f90: Likewise.
1024 * testsuite/libgomp.fortran/simd7.f90: Likewise.
1025 * testsuite/libgomp.fortran/stack.f90: Likewise.
1026 * testsuite/libgomp.fortran/strassen.f90: Likewise.
1027 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
1028 * testsuite/libgomp.fortran/tabs2.f: Likewise.
1029 * testsuite/libgomp.fortran/target1.f90: Likewise.
1030 * testsuite/libgomp.fortran/target2.f90: Likewise.
1031 * testsuite/libgomp.fortran/target3.f90: Likewise.
1032 * testsuite/libgomp.fortran/target4.f90: Likewise.
1033 * testsuite/libgomp.fortran/target5.f90: Likewise.
1034 * testsuite/libgomp.fortran/target6.f90: Likewise.
1035 * testsuite/libgomp.fortran/target7.f90: Likewise.
1036 * testsuite/libgomp.fortran/target8.f90: Likewise.
1037 * testsuite/libgomp.fortran/task1.f90: Likewise.
1038 * testsuite/libgomp.fortran/task2.f90: Likewise.
1039 * testsuite/libgomp.fortran/task3.f90: Likewise.
1040 * testsuite/libgomp.fortran/task4.f90: Likewise.
1041 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
1042 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
1043 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
1044 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
1045 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
1046 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1047 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1048 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1049 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
1050 * testsuite/libgomp.fortran/udr1.f90: Likewise.
1051 * testsuite/libgomp.fortran/udr10.f90: Likewise.
1052 * testsuite/libgomp.fortran/udr11.f90: Likewise.
1053 * testsuite/libgomp.fortran/udr12.f90: Likewise.
1054 * testsuite/libgomp.fortran/udr13.f90: Likewise.
1055 * testsuite/libgomp.fortran/udr14.f90: Likewise.
1056 * testsuite/libgomp.fortran/udr15.f90: Likewise.
1057 * testsuite/libgomp.fortran/udr2.f90: Likewise.
1058 * testsuite/libgomp.fortran/udr3.f90: Likewise.
1059 * testsuite/libgomp.fortran/udr4.f90: Likewise.
1060 * testsuite/libgomp.fortran/udr5.f90: Likewise.
1061 * testsuite/libgomp.fortran/udr6.f90: Likewise.
1062 * testsuite/libgomp.fortran/udr7.f90: Likewise.
1063 * testsuite/libgomp.fortran/udr8.f90: Likewise.
1064 * testsuite/libgomp.fortran/udr9.f90: Likewise.
1065 * testsuite/libgomp.fortran/vla1.f90: Likewise.
1066 * testsuite/libgomp.fortran/vla2.f90: Likewise.
1067 * testsuite/libgomp.fortran/vla3.f90: Likewise.
1068 * testsuite/libgomp.fortran/vla4.f90: Likewise.
1069 * testsuite/libgomp.fortran/vla5.f90: Likewise.
1070 * testsuite/libgomp.fortran/vla6.f90: Likewise.
1071 * testsuite/libgomp.fortran/vla7.f90: Likewise.
1072 * testsuite/libgomp.fortran/vla8.f90: Likewise.
1073 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
1074 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
1075 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
1076 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
1077 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1078 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1079 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1080 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
1081 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
1082 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
1083 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
1084 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
1085 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
1086 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
1087 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
1088 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
1089 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
1090 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
1091 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
1092 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
1093 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
1094 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
1095 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
1096 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
1097 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
1098 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
1099 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
1100 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
1101 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
1102 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
1103 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
1104 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
1105 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
1106 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
1107 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
1108 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
1109 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
1110 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
1111 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
1112 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1113 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
1114 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
1115 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
1116 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
1117 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
1118 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
1119 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
1120 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
1121 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
1122 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
1123 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
1124 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
1125 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
1126 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
1127 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
1128 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
1129 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
1130 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
1131 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
1132 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
1133 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
1134 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
1135 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
1136 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
1137 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
1138 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
1139 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
1140 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1141 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1142 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
1143 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
1144 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
1145 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
1146 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
1147 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
1148 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
1149 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1150 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
1151 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
1152 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
1153 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1154 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1155 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
1156 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
1157 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
1158 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
1159 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
1160 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
1161 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
1162 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
1163 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
1164 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
1165 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
1166 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
1167
1168 2018-03-20 Richard Biener <rguenther@suse.de>
1169
1170 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
1171 parallelizable loop.
1172
1173 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
1174
1175 PR target/84148
1176 * configure: Regenerate.
1177
1178 2018-02-16 Jakub Jelinek <jakub@redhat.com>
1179
1180 PR fortran/84418
1181 * libgomp.fortran/pr84418-1.f90: New test.
1182 * libgomp.fortran/pr84418-2.f90: New test.
1183
1184 2018-02-14 Jakub Jelinek <jakub@redhat.com>
1185
1186 PR fortran/84313
1187 * testsuite/libgomp.fortran/threadprivate4.f90: Add
1188 -std=f2003 -fall-intrinsics into dg-additional-options.
1189
1190 2018-02-08 Martin Jambor <mjambor@suse.cz>
1191
1192 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
1193 clonable.
1194
1195 2018-02-08 Martin Jambor <mjambor@suse.cz>
1196
1197 * testsuite/libgomp.hsa.c/staticvar.c: New test.
1198
1199 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1200
1201 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
1202 [__cplusplus]: Declare extern "C".
1203
1204 2018-02-07 Tom de Vries <tom@codesourcery.com>
1205
1206 PR libgomp/84217
1207 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
1208
1209 2018-01-29 Christoph Spiel <cspiel@freenet.de>
1210 Jakub Jelinek <jakub@redhat.com>
1211
1212 PR libgomp/84096
1213 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
1214 instead of omp_lock_t.
1215
1216 2018-01-25 Tom de Vries <tom@codesourcery.com>
1217
1218 PR target/84028
1219 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
1220
1221 2018-01-24 Tom de Vries <tom@codesourcery.com>
1222
1223 PR target/83589
1224 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
1225
1226 2018-01-24 Tom de Vries <tom@codesourcery.com>
1227
1228 PR target/81352
1229 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
1230
1231 2018-01-19 Tom de Vries <tom@codesourcery.com>
1232 Cesar Philippidis <cesar@codesourcery.com>
1233
1234 PR target/83920
1235 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
1236 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
1237
1238 2018-01-03 Jakub Jelinek <jakub@redhat.com>
1239
1240 Update copyright years.
1241
1242 * libgomp.texi: Bump @copying's copyright year.
1243
1244 2017-12-30 Tom de Vries <tom@codesourcery.com>
1245
1246 PR libgomp/83046
1247 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
1248 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
1249
1250 2017-12-27 Tom de Vries <tom@codesourcery.com>
1251
1252 PR c++/83046
1253 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
1254 (test_nonstatic): Fix return type to workaround PR83046.
1255
1256 2017-12-05 Jakub Jelinek <jakub@redhat.com>
1257
1258 PR testsuite/83281
1259 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
1260 j suffix instead of i.
1261 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
1262 Likewise.
1263
1264 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
1265
1266 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
1267 call to acc_wait (1).
1268
1269 2017-11-24 Jakub Jelinek <jakub@redhat.com>
1270
1271 PR fortran/81304
1272 * testsuite/libgomp.fortran/pr81304.f90: New test.
1273
1274 2017-11-23 Jakub Jelinek <jakub@redhat.com>
1275
1276 PR fortran/81841
1277 * libgomp.fortran/pr81841.f90: New test.
1278
1279 2017-11-22 Jakub Jelinek <jakub@redhat.com>
1280
1281 PR libgomp/83106
1282 * target.c (gomp_target_init): Compute lengths just once and
1283 use them in both malloc size and subsequent copying.
1284
1285 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
1286
1287 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
1288 * acinclude.m4: Add cet.m4.
1289 * configure: Regenerate.
1290 * Makefile.in: Likewise.
1291 * testsuite/Makefile.in: Likewise.
1292
1293 2017-11-15 Tom de Vries <tom@codesourcery.com>
1294
1295 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
1296 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
1297 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
1298 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
1299 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
1300 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
1301
1302 2017-11-14 Tom de Vries <tom@codesourcery.com>
1303
1304 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
1305 non-nvidia devices.
1306
1307 2017-11-07 Jakub Jelinek <jakub@redhat.com>
1308
1309 PR c++/82835
1310 * testsuite/libgomp.c++/pr82835.C: New test.
1311
1312 2017-11-06 Martin Liska <mliska@suse.cz>
1313
1314 * testsuite/libgomp.c++/loop-2.C: Return a value
1315 for functions with non-void return type, or change type to void,
1316 or add -Wno-return-type for test.
1317 * testsuite/libgomp.c++/loop-4.C: Likewise.
1318 * testsuite/libgomp.c++/parallel-1.C: Likewise.
1319 * testsuite/libgomp.c++/shared-1.C: Likewise.
1320 * testsuite/libgomp.c++/single-1.C: Likewise.
1321 * testsuite/libgomp.c++/single-2.C: Likewise.
1322
1323 2017-10-31 Tom de Vries <tom@codesourcery.com>
1324
1325 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
1326 "do {} while (false)".
1327 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
1328 after HSA_DEBUG call.
1329
1330 2017-10-28 Jakub Jelinek <jakub@redhat.com>
1331
1332 * target.c (struct gomp_coalesce_buf): New type.
1333 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
1334 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
1335 (gomp_copy_host2dev): Add CBUF argument, if copying into
1336 the cached ranges, memcpy into buffer instead of copying
1337 into device.
1338 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
1339 Add CBUF argument, pass it through to other calls.
1340 (gomp_map_vars): Aggregate copies from host to device if small enough
1341 and with small enough gaps in between into memcpy into a buffer and
1342 fewer host to device copies from the buffer.
1343 (gomp_update): Adjust gomp_copy_host2dev caller.
1344
1345 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
1346
1347 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
1348 run" directive.
1349 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
1350 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
1351 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
1352 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
1353
1354 2017-10-16 Tom de Vries <tom@codesourcery.com>
1355
1356 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
1357 openacc_nvidia_accel_selected.
1358 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
1359 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
1360 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
1361 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
1362 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
1363 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
1364 openacc_nvidia_accel_selected. Skip for shared memory device.
1365 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
1366 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
1367
1368 2017-10-09 Martin Jambor <mjambor@suse.cz>
1369
1370 PR hsa/82416
1371 * testsuite/libgomp.hsa.c/pr82416.c: New test.
1372
1373 2017-10-07 Tom de Vries <tom@codesourcery.com>
1374
1375 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
1376 Remove acc_device_nvidia references.
1377 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
1378 Same.
1379
1380 2017-10-05 Tom de Vries <tom@codesourcery.com>
1381
1382 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
1383 vector_length(32) clause from acc parallel directive.
1384 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
1385
1386 2017-10-04 Tom de Vries <tom@codesourcery.com>
1387
1388 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
1389 (main): Reduce sum of arr elements. Assert that hres is exactly
1390 representable in 32-bit floating point.
1391 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
1392 (main): Reduce sum of arr elements. Assert that hres and hmres are
1393 exactly representable in 32-bit floating point.
1394 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
1395
1396 2017-09-28 Tom de Vries <tom@codesourcery.com>
1397
1398 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
1399 setting.
1400 * testsuite/libgomp.c++/pr69393.C: Same.
1401 * testsuite/libgomp.c++/taskloop-1.C: Same.
1402 * testsuite/libgomp.c++/taskloop-3.C: Same.
1403 * testsuite/libgomp.c++/taskloop-4.C: Same.
1404 * testsuite/libgomp.c/for-4.c: Same.
1405 * testsuite/libgomp.c/pr66199-3.c: Same.
1406 * testsuite/libgomp.c/pr66199-4.c: Same.
1407 * testsuite/libgomp.c/pr66199-6.c: Same.
1408 * testsuite/libgomp.c/taskloop-1.c: Same.
1409 * testsuite/libgomp.c/taskloop-3.c: Same.
1410 * testsuite/libgomp.c/taskloop-4.c: Same.
1411 * testsuite/libgomp.fortran/aligned1.f03: Same.
1412 * testsuite/libgomp.fortran/condinc1.f: Same.
1413 * testsuite/libgomp.fortran/condinc3.f90: Same.
1414 * testsuite/libgomp.fortran/crayptr1.f90: Same.
1415 * testsuite/libgomp.fortran/crayptr2.f90: Same.
1416 * testsuite/libgomp.fortran/crayptr3.f90: Same.
1417 * testsuite/libgomp.fortran/omp_cond1.f: Same.
1418 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
1419 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
1420 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
1421 * testsuite/libgomp.fortran/recursion1.f90: Same.
1422 * testsuite/libgomp.fortran/target2.f90: Same.
1423 * testsuite/libgomp.fortran/target5.f90: Same.
1424 * testsuite/libgomp.fortran/task3.f90: Same.
1425
1426 2017-09-28 Tom de Vries <tom@codesourcery.com>
1427
1428 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
1429 vector_length(32) clause from acc parallel directive.
1430 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
1431
1432 2017-09-27 Tom de Vries <tom@codesourcery.com>
1433
1434 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
1435 Remove acc_device_nvidia references.
1436
1437 2017-09-16 Tom de Vries <tom@codesourcery.com>
1438
1439 PR c/81875
1440 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
1441
1442 2017-09-14 Tom de Vries <tom@codesourcery.com>
1443
1444 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
1445 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
1446 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
1447 * testsuite/libgomp.c/c.exp: Include test-cases from
1448 libgomp.c-c++-common.
1449 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
1450 files.
1451
1452 2017-09-14 Jakub Jelinek <jakub@redhat.com>
1453
1454 PR c++/81314
1455 * testsuite/libgomp.c++/pr81314.C: New test.
1456
1457 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
1458
1459 * libgomp.texi (Top): www.openacc.org now uses https.
1460 (Enabling OpenACC): Ditto.
1461 (acc_get_num_devices): Ditto.
1462 (acc_set_device_type): Ditto.
1463 (acc_get_device_type): Ditto.
1464 (acc_set_device_num): Ditto.
1465 (acc_get_device_num): Ditto.
1466 (acc_async_test): Ditto.
1467 (acc_async_test_all): Ditto.
1468 (acc_wait): Ditto.
1469 (acc_wait_all): Ditto.
1470 (acc_wait_all_async): Ditto.
1471 (acc_wait_async): Ditto.
1472 (acc_init): Ditto.
1473 (acc_shutdown): Ditto.
1474 (acc_on_device): Ditto.
1475 (acc_malloc): Ditto.
1476 (acc_free): Ditto.
1477 (acc_copyin): Ditto.
1478 (acc_present_or_copyin): Ditto.
1479 (acc_create): Ditto.
1480 (acc_present_or_create): Ditto.
1481 (acc_copyout): Ditto.
1482 (acc_delete): Ditto.
1483 (acc_update_device): Ditto.
1484 (acc_update_self): Ditto.
1485 (acc_map_data): Ditto.
1486 (acc_unmap_data): Ditto.
1487 (acc_deviceptr): Ditto.
1488 (acc_hostptr): Ditto.
1489 (acc_is_present): Ditto.
1490 (acc_memcpy_to_device): Ditto.
1491 (acc_memcpy_from_device): Ditto.
1492 (acc_get_current_cuda_device): Ditto.
1493 (acc_get_current_cuda_context): Ditto.
1494 (acc_get_cuda_stream): Ditto.
1495 (acc_set_cuda_stream): Ditto.
1496 (ACC_DEVICE_TYPE): Ditto.
1497 (ACC_DEVICE_NUM): Ditto.
1498 (OpenACC Library Interoperability): Ditto.
1499
1500 2017-08-09 Jakub Jelinek <jakub@redhat.com>
1501
1502 PR c/81687
1503 * testsuite/libgomp.c/pr81687-1.c: New test.
1504 * testsuite/libgomp.c/pr81687-2.c: New test.
1505
1506 2017-08-07 Jakub Jelinek <jakub@redhat.com>
1507
1508 PR c/69389
1509 * testsuite/libgomp.c/pr69389.c: New test.
1510 * testsuite/libgomp.c++/pr69389.C: New test.
1511
1512 2017-08-07 Tom de Vries <tom@codesourcery.com>
1513
1514 PR middle-end/78266
1515 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
1516 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
1517
1518 2017-07-27 Jakub Jelinek <jakub@redhat.com>
1519
1520 PR c/45784
1521 * testsuite/libgomp.c/pr45784.c: New test.
1522 * testsuite/libgomp.c++/pr45784.C: New test.
1523
1524 2017-07-19 Tom de Vries <tom@codesourcery.com>
1525
1526 * testsuite/libgomp.oacc-c/vec.c: New test.
1527
1528 2017-07-03 Tom de Vries <tom@codesourcery.com>
1529
1530 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
1531
1532 2017-06-27 Tom de Vries <tom@codesourcery.com>
1533
1534 * plugin/plugin-nvptx.c (notify_var): New function.
1535 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
1536
1537 2017-06-27 Tom de Vries <tom@codesourcery.com>
1538
1539 * env.c (parse_unsigned_long_1): Factor out of ...
1540 (parse_unsigned_long): ... here.
1541 (parse_int_1): Factor out of ...
1542 (parse_int): ... here.
1543 (parse_int_secure): New function.
1544 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
1545 * secure_getenv.h: Factor out of ...
1546 * plugin/plugin-hsa.c: ... here.
1547 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
1548
1549 2017-06-21 Jakub Jelinek <jakub@redhat.com>
1550
1551 PR c++/81130
1552 * testsuite/libgomp.c++/pr81130.C: New test.
1553
1554 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1555
1556 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
1557 default args.
1558 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
1559 dg-xfail-run-if default args.
1560
1561 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
1562
1563 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
1564 * testsuite/libgomp.c/pr39591-3.c: Likewise.
1565
1566 2017-05-30 Jakub Jelinek <jakub@redhat.com>
1567
1568 PR libgomp/80822
1569 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
1570 (gomp_affinity_init_level): Use it. Always analyze the core and thread
1571 sibling lists, depending on level just pick up what CPUs to put
1572 together into a place vs. whether add multiple ordered places.
1573
1574 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
1575
1576 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
1577 * libgomp.map (OACC_2.0.1): Add these.
1578 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
1579 for "acc_wait", and "acc_wait_all", respectively.
1580 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
1581 for "acc_wait", and "acc_wait_all", respectively.
1582 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
1583 * libgomp.texi (acc_wait, acc_wait_all): Update.
1584 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
1585 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
1586 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1587
1588 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
1589 acc_present_or_copyin and acc_present_or_create procedures,
1590 respectively.
1591 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
1592 generally different variants of OpenACC Runtime Library functions.
1593 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
1594
1595 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
1596 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
1597
1598 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
1599 of preprocessor definitions.
1600 * libgomp.h (strong_alias): Guard by "#ifdef
1601 HAVE_ATTRIBUTE_ALIAS".
1602 * oacc-mem.c: Provide "acc_pcreate" as alias for
1603 "acc_present_or_create", and "acc_pcopyin" as alias for
1604 "acc_present_or_copyin".
1605 * libgomp.map: New version "OACC_2.0.1".
1606 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
1607 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
1608 its content into...
1609 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
1610 Extend testing.
1611
1612 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
1613 when disabling nvptx offloading.
1614
1615 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
1616
1617 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
1618 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1619 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
1620
1621 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
1622 * testsuite/lib/libgomp.exp
1623 (check_effective_target_openacc_nvidia_accel_configured): New
1624 proc.
1625 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
1626 (check_effective_target_c++): New procs.
1627 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
1628 (check_effective_target_c++): Likewise.
1629
1630 2017-05-22 Jakub Jelinek <jakub@redhat.com>
1631
1632 PR middle-end/80809
1633 * testsuite/libgomp.c/pr80809-2.c: New test.
1634 * testsuite/libgomp.c/pr80809-3.c: New test.
1635
1636 PR middle-end/80809
1637 * testsuite/libgomp.c/pr80809-1.c: New test.
1638
1639 PR middle-end/80853
1640 * testsuite/libgomp.c/pr80853.c: New test.
1641
1642 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
1643
1644 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
1645 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
1646 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
1647 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
1648 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
1649
1650 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
1651 Debug output for failure.
1652
1653 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1654
1655 * testsuite/lib/libgomp.exp: Load scanlang.exp.
1656
1657 2017-04-27 Jakub Jelinek <jakub@redhat.com>
1658
1659 PR bootstrap/80531
1660 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
1661 bootstrap compare failures.
1662
1663 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
1664
1665 * testsuite/libgomp.c/target-36.c: New testcase.
1666
1667 2017-04-13 Jakub Jelinek <jakub@redhat.com>
1668
1669 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
1670 instead of char.
1671
1672 2017-04-11 Jakub Jelinek <jakub@redhat.com>
1673
1674 PR libgomp/80394
1675 * testsuite/libgomp.c/pr80394.c: New test.
1676
1677 2017-04-04 Jakub Jelinek <jakub@redhat.com>
1678
1679 PR libgomp/79876
1680 * config/posix/thread-stacksize.h: New file.
1681 * config/darwin/thread-stacksize.h: New file.
1682 * config/nvptx/thread-stacksize.h: New file.
1683 * env.c: Include thread-stacksize.h.
1684 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
1685 instead of 0. Call pthread_attr_setstacksize even if
1686 GOMP_DEFAULT_STACKSIZE is non-zero.
1687
1688 2017-03-30 Jakub Jelinek <jakub@redhat.com>
1689
1690 * env.c (initialize_env): Initialize stacksize to 0.
1691
1692 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
1693
1694 PR c++/80029
1695 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
1696
1697 2017-03-08 Jakub Jelinek <jakub@redhat.com>
1698
1699 PR c/79940
1700 * testsuite/libgomp.c/pr79940.c: New test.
1701
1702 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1703
1704 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
1705 targets.
1706 Add __float128 options.
1707
1708 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
1709
1710 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
1711 hppa*-*-* dg-skip-if directive.
1712
1713 2017-02-09 Jakub Jelinek <jakub@redhat.com>
1714
1715 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
1716 dg-skip-if directive into a comment.
1717
1718 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
1719 Chung-Lin Tang <cltang@codesourcery.com>
1720
1721 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
1722 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
1723 add additional case.
1724 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
1725 "openacc_nvidia_accel_selected".
1726 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
1727 Add num_workers(8) clause.
1728
1729 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
1730
1731 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
1732 hppa*-*-*.
1733 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
1734 include complex.h on hppa*-*-hpux*.
1735 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
1736
1737 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
1738
1739 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
1740
1741 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
1742 GOMP_OFFLOAD_openacc_exec. Adjust all users.
1743 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
1744 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
1745 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
1746 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
1747 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
1748 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
1749 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
1750 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
1751
1752 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
1753
1754 * libgomp-plugin.h: #include <stdbool.h>.
1755 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
1756 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
1757 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
1758 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
1759 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
1760 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
1761 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
1762 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
1763 (GOMP_OFFLOAD_openacc_register_async_cleanup)
1764 (GOMP_OFFLOAD_openacc_async_test)
1765 (GOMP_OFFLOAD_openacc_async_test_all)
1766 (GOMP_OFFLOAD_openacc_async_wait)
1767 (GOMP_OFFLOAD_openacc_async_wait_async)
1768 (GOMP_OFFLOAD_openacc_async_wait_all)
1769 (GOMP_OFFLOAD_openacc_async_wait_all_async)
1770 (GOMP_OFFLOAD_openacc_async_set_async)
1771 (GOMP_OFFLOAD_openacc_create_thread_data)
1772 (GOMP_OFFLOAD_openacc_destroy_thread_data)
1773 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
1774 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
1775 (GOMP_OFFLOAD_openacc_get_cuda_stream)
1776 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
1777 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
1778 these.
1779 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
1780 (GOMP_OFFLOAD_unload_image): Fix argument types.
1781
1782 2017-01-26 Jakub Jelinek <jakub@redhat.com>
1783
1784 * testsuite/lib/libgomp.exp
1785 (check_effective_target_hsa_offloading_selected_nocache): Fix up
1786 check_compile invocation. Fix up removal of executable. Drop
1787 bogus "2>&1" argument.
1788
1789 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
1790 directive.
1791
1792 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
1793 Martin Jambor <mjambor@suse.cz>
1794
1795 * plugin/hsa.h: Moved to top level include.
1796 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
1797
1798 2017-01-21 Jakub Jelinek <jakub@redhat.com>
1799
1800 PR other/79046
1801 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
1802 of cat to get version from BASE-VER file.
1803 * testsuite/Makefile.in: Regenerated.
1804
1805 2017-01-19 Jakub Jelinek <jakub@redhat.com>
1806
1807 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
1808 for _WIN64.
1809
1810 2017-01-17 Jakub Jelinek <jakub@redhat.com>
1811
1812 * plugin/hsa.h: Add GCC runtime library exception.
1813 * plugin/hsa_ext_finalize.h: Likewise.
1814
1815 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
1816 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
1817 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
1818 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
1819 plugin/include/cuda as include dir and -ldl instead of -lcuda as
1820 library to link ptx plugin against.
1821 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
1822 (CUDA_CALLS): Define.
1823 (cuda_lib, cuda_lib_inited): New variables.
1824 (init_cuda_lib): New function.
1825 (CUDA_CALL_PREFIX): Define.
1826 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
1827 (CUDA_CALL): Use FN instead of (FN).
1828 (CUDA_CALL_NOCHECK): Define.
1829 (cuda_error, fini_streams_for_device, select_stream_for_async,
1830 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
1831 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
1832 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
1833 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
1834 CUDA_CALL_NOCHECK.
1835 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
1836 CUDA_CALL_NOCHECK.
1837 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
1838 Use CUDA_CALL_NOCHECK.
1839 * plugin/cuda/cuda.h: New file.
1840 * config.h.in: Regenerated.
1841 * configure: Regenerated.
1842
1843 PR other/79046
1844 * configure.ac: Add GCC_BASE_VER.
1845 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
1846 get version from BASE-VER file.
1847 * testsuite/Makefile.in: Regenerated.
1848 * configure: Regenerated.
1849 * Makefile.in: Regenerated.
1850
1851 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1852
1853 PR libgomp/60670
1854 * Makefile.am: Make fincludedir multilib-aware.
1855 * Makefile.in: Regenerate.
1856
1857 2017-01-01 Jakub Jelinek <jakub@redhat.com>
1858
1859 Update copyright years.
1860
1861 * libgomp.texi: Bump @copying's copyright year.
1862
1863 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
1864
1865 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
1866 pthread_spinlock_t instead of gomp_mutex_t lock.
1867 (gomp_get_thread_pool): Likewise.
1868 (gomp_release_thread_pool): Likewise.
1869 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
1870 Likewise.
1871
1872 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
1873
1874 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
1875 thread pool in case nthreads == 1.
1876
1877 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
1878
1879 * config/nvptx/env.c: Delete.
1880 * icv.c: Move definitions of ICV variables back ...
1881 * env.c: ...here. Do not compile environment-related functionality if
1882 LIBGOMP_OFFLOADED_ONLY is set.
1883
1884 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
1885
1886 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
1887 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
1888 * configure: Regenerate.
1889 * config.h.in: Likewise.
1890
1891 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
1892
1893 * Makefile.in: Regenerate with automake-1.11.6.
1894 * aclocal.m4: Likewise.
1895 * configure: Likewise.
1896 * testsuite/Makefile.in: Likewise.
1897
1898 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
1899
1900 * config/nvptx/critical.c: Delete to use generic implementation.
1901
1902 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
1903
1904 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
1905 ../../affinity.c as fallback.
1906 * config/nvptx/affinity.c: Delete to use fallback implementation.
1907
1908 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
1909 Jakub Jelinek <jakub@redhat.com>
1910 Dmitry Melnik <dm@ispras.ru>
1911
1912 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
1913 * Makefile.in. Regenerate.
1914 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
1915 (LIBGOMP_USE_PTHREADS): ...here; new define.
1916 * configure: Regenerate.
1917 * config.h.in: Likewise.
1918 * config/posix/affinity.c: Move to...
1919 * affinity.c: ...here (new file). Guard use of Pthreads-specific
1920 interface by LIBGOMP_USE_PTHREADS.
1921 * critical.c: Split out GOMP_atomic_{start,end} into...
1922 * atomic.c: ...here (new file).
1923 * env.c: Split out ICV definitions into...
1924 * icv.c: ...here (new file) and...
1925 * icv-device.c: ...here. New file.
1926 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
1927 (gomp_destroy_lock_30): Ditto.
1928 (gomp_set_lock_30): Ditto.
1929 (gomp_unset_lock_30): Ditto.
1930 (gomp_test_lock_30): Ditto.
1931 (gomp_init_nest_lock_30): Ditto.
1932 (gomp_destroy_nest_lock_30): Ditto.
1933 (gomp_set_nest_lock_30): Ditto.
1934 (gomp_unset_nest_lock_30): Ditto.
1935 (gomp_test_nest_lock_30): Ditto.
1936 * lock.c: New.
1937 * config/nvptx/lock.c: New.
1938 * config/nvptx/bar.c: New.
1939 * config/nvptx/bar.h: New.
1940 * config/nvptx/doacross.h: New.
1941 * config/nvptx/error.c: New.
1942 * config/nvptx/icv-device.c: New.
1943 * config/nvptx/mutex.h: New.
1944 * config/nvptx/pool.h: New.
1945 * config/nvptx/proc.c: New.
1946 * config/nvptx/ptrlock.h: New.
1947 * config/nvptx/sem.h: New.
1948 * config/nvptx/simple-bar.h: New.
1949 * config/nvptx/target.c: New.
1950 * config/nvptx/task.c: New.
1951 * config/nvptx/team.c: New.
1952 * config/nvptx/time.c: New.
1953 * config/posix/simple-bar.h: New.
1954 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
1955 (gomp_num_teams_var): Declare.
1956 (struct gomp_thread_pool): Change threads_dock member to
1957 gomp_simple_barrier_t.
1958 [__nvptx__] (gomp_thread): New implementation.
1959 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
1960 (gomp_thread_destructor): Ditto.
1961 (gomp_init_thread_affinity): Ditto.
1962 * team.c: Guard uses of Pthreads-specific interfaces by
1963 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
1964 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
1965 * config/nvptx/alloc.c: Delete.
1966 * config/nvptx/barrier.c: Ditto.
1967 * config/nvptx/fortran.c: Ditto.
1968 * config/nvptx/iter.c: Ditto.
1969 * config/nvptx/iter_ull.c: Ditto.
1970 * config/nvptx/loop.c: Ditto.
1971 * config/nvptx/loop_ull.c: Ditto.
1972 * config/nvptx/ordered.c: Ditto.
1973 * config/nvptx/parallel.c: Ditto.
1974 * config/nvptx/priority_queue.c: Ditto.
1975 * config/nvptx/sections.c: Ditto.
1976 * config/nvptx/single.c: Ditto.
1977 * config/nvptx/splay-tree.c: Ditto.
1978 * config/nvptx/work.c: Ditto.
1979 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
1980 -foffload=-lgfortran in addition to -lgfortran.
1981 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
1982 * plugin/plugin-nvptx.c: Include <limits.h>.
1983 (struct targ_fn_descriptor): Add new fields.
1984 (struct ptx_device): Ditto. Set them...
1985 (nvptx_open_device): ...here.
1986 (nvptx_adjust_launch_bounds): New.
1987 (nvptx_host2dev): Allow NULL 'nvthd'.
1988 (nvptx_dev2host): Ditto.
1989 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
1990 (link_ptx): Adjust log sizes.
1991 (nvptx_host2dev): Allow NULL 'nvthd'.
1992 (nvptx_dev2host): Ditto.
1993 (nvptx_set_clocktick): New. Use it...
1994 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
1995 fields.
1996 (GOMP_OFFLOAD_dev2dev): New.
1997 (nvptx_adjust_launch_bounds): New.
1998 (nvptx_stacks_size): New.
1999 (nvptx_stacks_alloc): New.
2000 (nvptx_stacks_free): New.
2001 (GOMP_OFFLOAD_run): New.
2002 (GOMP_OFFLOAD_async_run): New (stub).
2003
2004 2016-11-23 Martin Jambor <mjambor@suse.cz>
2005
2006 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
2007 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
2008 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
2009
2010 2016-11-23 Martin Liska <mliska@suse.cz>
2011 Martin Jambor <mjambor@suse.cz>
2012
2013 * plugin/hsa.h: New file.
2014 * plugin/hsa_ext_finalize.h: New file.
2015 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
2016 header file unistd.h, and functions secure_getenv, __secure_getenv,
2017 getuid, geteuid, getgid and getegid.
2018 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
2019 -D_GNU_SOURCE.
2020 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
2021 Handle various cases of secure_getenv presence, add an implementation
2022 when we can test effective UID and GID.
2023 (struct hsa_runtime_fn_info): New structure.
2024 (hsa_runtime_fn_info hsa_fns): New variable.
2025 (hsa_runtime_lib): Likewise.
2026 (support_cpu_devices): Likewise.
2027 (init_enviroment_variables): Load newly introduced ENV
2028 variables.
2029 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
2030 (hsa_fatal): Likewise.
2031 (DLSYM_FN): New macro.
2032 (init_hsa_runtime_functions): New function.
2033 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
2034 structure. Depending on environment, also allow CPU devices.
2035 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
2036 (get_kernarg_memory_region): Likewise.
2037 (GOMP_OFFLOAD_init_device): Likewise.
2038 (destroy_hsa_program): Likewise.
2039 (init_basic_kernel_info): New function.
2040 (GOMP_OFFLOAD_load_image): Use it.
2041 (create_and_finalize_hsa_program): Call hsa run-time functions via
2042 hsa_fns structure.
2043 (create_single_kernel_dispatch): Likewise.
2044 (release_kernel_dispatch): Likewise.
2045 (init_single_kernel): Likewise.
2046 (parse_target_attributes): Allow up multiple HSA grid dimensions.
2047 (get_group_size): New function.
2048 (run_kernel): Likewise.
2049 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
2050 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
2051 structure.
2052 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
2053 * testsuite/libgomp-test-support.exp.in: Likewise.
2054 * Makefile.in: Regenerated.
2055 * aclocal.m4: Likewise.
2056 * config.h.in: Likewise.
2057 * configure: Likewise.
2058 * testsuite/Makefile.in: Likewise.
2059
2060 2016-11-15 Martin Jambor <mjambor@suse.cz>
2061 Alexander Monakov <amonakov@ispras.ru>
2062
2063 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
2064 mapping clauses to target constructs.
2065 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
2066
2067 2016-11-15 Matthias Klose <doko@ubuntu.com>
2068
2069 * configure: Regenerate.
2070
2071 2016-11-10 Jakub Jelinek <jakub@redhat.com>
2072
2073 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
2074 * omp_lib.h.in (openmp_version): Likewise.
2075 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
2076 of 201307.
2077 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
2078
2079 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
2080 (fib_wrapper): Add map(from: x) clause.
2081 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
2082 (e_53_2): Likewise.
2083 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
2084 (accum): Add map(tmp) clause.
2085 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
2086 (accum): Add map(tofrom: tmp) clause.
2087 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
2088 (gramSchmidt): Likewise.
2089 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
2090 map(tofrom: sum) clause.
2091 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
2092 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
2093 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
2094 only allowed on the loop iterator.
2095 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
2096 * testsuite/libgomp.fortran/taskloop2.f90: New test.
2097 * testsuite/libgomp.fortran/taskloop4.f90: New test.
2098 * testsuite/libgomp.fortran/doacross1.f90: New test.
2099 * testsuite/libgomp.fortran/doacross3.f90: New test.
2100 * testsuite/libgomp.fortran/taskloop1.f90: New test.
2101 * testsuite/libgomp.fortran/taskloop3.f90: New test.
2102 * testsuite/libgomp.fortran/doacross2.f90: New test.
2103 * testsuite/libgomp.c/doacross-1.c (main): Add missing
2104 #pragma omp atomic read.
2105 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
2106 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
2107
2108 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
2109 Nathan Sidwell <nathan@acm.org>
2110
2111 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
2112 to determine default geometry.
2113 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
2114 dimension.
2115
2116 2016-11-01 Jakub Jelinek <jakub@redhat.com>
2117
2118 * hashtab.h: Use standard GPLv3 with runtime exception
2119 boilerplate.
2120
2121 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
2122
2123 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
2124 size when allocating new thread.
2125
2126 2016-09-14 Marek Polacek <polacek@redhat.com>
2127
2128 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
2129
2130 2016-08-19 Jakub Jelinek <jakub@redhat.com>
2131
2132 PR fortran/71014
2133 * testsuite/libgomp.fortran/pr71014.f90: New test.
2134
2135 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
2136
2137 PR middle-end/70895
2138 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
2139 firstprivate clauses.
2140 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
2141 copy clauses.
2142 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
2143 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
2144 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
2145 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
2146 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
2147 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
2148 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
2149 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
2150 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
2151 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
2152 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
2153 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
2154
2155 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
2156
2157 PR fortran/70598
2158 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
2159
2160 2016-08-08 Jakub Jelinek <jakub@redhat.com>
2161
2162 PR c++/58706
2163 * testsuite/libgomp.c++/pr58706.C: New test.
2164
2165 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
2166
2167 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
2168 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
2169 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
2170 Likewise.
2171 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
2172 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
2173 Likewise.
2174 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
2175
2176 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
2177 test, and don't hardcode -O0.
2178
2179 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
2180
2181 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
2182
2183 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
2184
2185 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
2186 test.
2187
2188 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
2189
2190 PR middle-end/71734
2191 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
2192 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
2193
2194 2016-07-01 Jakub Jelinek <jakub@redhat.com>
2195
2196 PR fortran/71717
2197 * testsuite/libgomp.fortran/associate3.f90: New test.
2198
2199 2016-06-17 Jakub Jelinek <jakub@redhat.com>
2200
2201 * testsuite/libgomp.c++/target-21.C: New test.
2202
2203 2016-06-16 Jakub Jelinek <jakub@redhat.com>
2204
2205 * testsuite/libgomp.c++/target-20.C: New test.
2206
2207 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
2208 Cesar Philippidis <cesar@codesourcery.com>
2209
2210 PR middle-end/71373
2211 * libgomp.oacc-c/nested-function-1.c: New file.
2212 * libgomp.oacc-c/nested-function-2.c: Likewise.
2213 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
2214 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
2215 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
2216
2217 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
2218
2219 PR c/71381
2220 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
2221 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
2222 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
2223
2224 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
2225
2226 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
2227 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
2228
2229 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
2230
2231 PR c/70688
2232 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
2233
2234 2016-05-26 Jakub Jelinek <jakub@redhat.com>
2235
2236 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
2237 instead of invalid schedule(static, 0).
2238 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
2239
2240 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
2241
2242 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
2243 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
2244 parameter, use to set async stream around call to gomp_unmap_vars,
2245 call gomp_unmap_vars() with 'do_copyfrom' set to true.
2246 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
2247 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
2248 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
2249 (event_add): Add int parameter, initialize 'val' field when
2250 adding new ptx_event struct.
2251 (nvptx_evec): Adjust event_add() call arguments.
2252 (nvptx_host2dev): Likewise.
2253 (nvptx_dev2host): Likewise.
2254 (nvptx_wait_async): Likewise.
2255 (nvptx_wait_all_async): Likewise.
2256 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
2257 pass to event_add() call.
2258 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
2259 parameter.
2260 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
2261 call openacc.register_async_cleanup_func() hook.
2262 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
2263 * target.c (gomp_copy_from_async): Delete function.
2264 (gomp_map_vars): Remove async_refcount.
2265 (gomp_unmap_vars): Likewise.
2266 (gomp_load_image_to_device): Likewise.
2267 (omp_target_associate_ptr): Likewise.
2268 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
2269 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
2270 (gomp_copy_from_async): Remove.
2271
2272 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
2273
2274 * target.c (gomp_device_copy): New function.
2275 (gomp_copy_host2dev): Likewise.
2276 (gomp_copy_dev2host): Likewise.
2277 (gomp_free_device_memory): Likewise.
2278 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
2279 (gomp_map_pointer): Likewise.
2280 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
2281 NULL value from alloc_func plugin hook.
2282 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
2283 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
2284 (gomp_unmap_vars): Likewise.
2285 (gomp_update): Adjust to call gomp_copy_dev2host and
2286 gomp_copy_host2dev functions.
2287 (gomp_unload_image_from_device): Handle false value from
2288 unload_image_func plugin hook.
2289 (gomp_init_device): Handle false value from init_device_func
2290 plugin hook.
2291 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
2292 (omp_target_free): Adjust to call gomp_free_device_memory.
2293 (omp_target_memcpy): Handle return values from host2dev_func,
2294 dev2host_func, and dev2dev_func plugin hooks.
2295 (omp_target_memcpy_rect_worker): Likewise.
2296 (gomp_target_fini): Handle false value from fini_device_func
2297 plugin hook.
2298 * libgomp.h (struct gomp_device_descr): Adjust return type of
2299 init_device_func, fini_device_func, unload_image_func, free_func,
2300 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
2301 * oacc-init.c (acc_shutdown_1): Handle false value from
2302 fini_device_func plugin hook.
2303 * oacc-host.c (host_init_device): Change return type to bool.
2304 (host_fini_device): Likewise.
2305 (host_unload_image): Likewise.
2306 (host_free): Likewise.
2307 (host_dev2host): Likewise.
2308 (host_host2dev): Likewise.
2309 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
2310 (acc_memcpy_to_device): Likewise.
2311 (acc_memcpy_from_device): Likewise.
2312 (delete_copyout): Add libfnname parameter, handle free_func
2313 hook fatal error case.
2314 (acc_delete): Adjust delete_copyout call.
2315 (acc_copyout): Likewise.
2316 (update_dev_host): Move gomp_mutex_unlock to after
2317 host2dev/dev2host hook calls.
2318
2319 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
2320 to 'hsa_error_msg', for clarity.
2321 (hsa_fatal): Likewise.
2322 (hsa_error): New function.
2323 (init_hsa_context): Change return type to bool, adjust to return
2324 false on error.
2325 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
2326 return value.
2327 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
2328 return false on error.
2329 (get_agent_info): Adjust to return NULL on error.
2330 (destroy_hsa_program): Change return type to bool, adjust to
2331 return false on error.
2332 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
2333 (destroy_module): Change return type to bool, adjust to
2334 return false on error.
2335 (GOMP_OFFLOAD_unload_image): Likewise.
2336 (GOMP_OFFLOAD_fini_device): Likewise.
2337 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
2338 (GOMP_OFFLOAD_free): Change to return false when called.
2339 (GOMP_OFFLOAD_dev2host): Likewise.
2340 (GOMP_OFFLOAD_host2dev): Likewise.
2341 (GOMP_OFFLOAD_dev2dev): Likewise.
2342
2343 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
2344 (CUDA_CALL): Likewise.
2345 (CUDA_CALL_ASSERT): Likewise.
2346 (map_init): Change return type to bool, use CUDA_CALL* macros.
2347 (map_fini): Likewise.
2348 (init_streams_for_device): Change return type to bool, adjust
2349 call to map_init.
2350 (fini_streams_for_device): Change return type to bool, adjust
2351 call to map_fini.
2352 (select_stream_for_async): Release stream_lock before calls to
2353 GOMP_PLUGIN_fatal, adjust call to map_init.
2354 (nvptx_init): Use CUDA_CALL* macros.
2355 (nvptx_attach_host_thread_to_device): Change return type to bool,
2356 use CUDA_CALL* macros.
2357 (nvptx_open_device): Use CUDA_CALL* macros.
2358 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
2359 macros.
2360 (nvptx_get_num_devices): Use CUDA_CALL* macros.
2361 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
2362 (nvptx_exec): Use CUDA_CALL* macros.
2363 (nvptx_alloc): Use CUDA_CALL* macros.
2364 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
2365 (nvptx_host2dev): Likewise.
2366 (nvptx_dev2host): Likewise.
2367 (nvptx_wait): Use CUDA_CALL* macros.
2368 (nvptx_wait_async): Likewise.
2369 (nvptx_wait_all): Likewise.
2370 (nvptx_wait_all_async): Likewise.
2371 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
2372 use CUDA_CALL* macros, adjust call to map_fini.
2373 (GOMP_OFFLOAD_init_device): Change return type to bool,
2374 adjust code accordingly.
2375 (GOMP_OFFLOAD_fini_device): Likewise.
2376 (GOMP_OFFLOAD_load_image): Adjust calls to
2377 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
2378 use CUDA_CALL* macros.
2379 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
2380 return code.
2381 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
2382 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
2383 handle error return.
2384 (GOMP_OFFLOAD_dev2host): Likewise.
2385 (GOMP_OFFLOAD_host2dev): Likewise.
2386 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
2387 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
2388
2389 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
2390
2391 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
2392 (acc_free): Likewise.
2393 (acc_memcpy_to_device): Likewise.
2394 (acc_memcpy_from_device): Likewise.
2395 (acc_deviceptr): Likewise.
2396 (acc_hostptr): Likewise.
2397 (acc_is_present): Likewise.
2398 (acc_map_data): Likewise.
2399 (acc_unmap_data): Likewise.
2400 (present_create_copy): Likewise.
2401 (delete_copyout): Likewise.
2402 (update_dev_host): Likewise.
2403 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
2404 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
2405 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
2406 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
2407 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
2408 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
2409 it only runs on nvptx targets.
2410 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
2411 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
2412 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
2413 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
2414 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
2415 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
2416 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
2417 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
2418 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
2419 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
2420 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
2421 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
2422 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
2423 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
2424 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
2425 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
2426 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
2427 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
2428 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
2429 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
2430 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
2431 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
2432 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
2433
2434 2016-05-23 Martin Jambor <mjambor@suse.cz>
2435
2436 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
2437
2438 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
2439
2440 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
2441 to gomp_init_targets_once.
2442 (acc_set_device_type): Remove !cached_base_dev condition on call to
2443 gomp_init_targets_once, move call to before acc_device_lock acquire,
2444 to avoid deadlock.
2445 (acc_get_device_num): Remove !cached_base_dev condition on call to
2446 gomp_init_targets_once.
2447 (acc_set_device_num): Likewise.
2448
2449 2016-05-16 Martin Jambor <mjambor@suse.cz>
2450
2451 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
2452
2453 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
2454
2455 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
2456 expected partitioning.
2457
2458 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
2459
2460 PR middle-end/70626
2461 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
2462 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
2463 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
2464
2465 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
2466
2467 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
2468 non-fatal.
2469
2470 2016-04-19 Jakub Jelinek <jakub@redhat.com>
2471
2472 PR middle-end/70680
2473 * testsuite/libgomp.c/pr70680-1.c: New test.
2474 * testsuite/libgomp.c/pr70680-2.c: New test.
2475
2476 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
2477
2478 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
2479 pass parameter variables to subroutines.
2480
2481 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
2482
2483 PR middle-end/70643
2484 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
2485
2486 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
2487
2488 PR testsuite/68242
2489 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
2490 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
2491
2492 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
2493
2494 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
2495 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
2496 GOACC_declare prototype.
2497
2498 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
2499 Merge this file, and...
2500 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
2501 ... this file, and...
2502 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
2503 ... this file, and...
2504 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
2505 ... this file, and...
2506 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
2507 ... this file, and...
2508 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
2509 ... this file, and...
2510 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
2511 ... this file, and...
2512 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
2513 ... this file, and...
2514 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
2515 ... this file, and...
2516 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
2517 ... this file, and...
2518 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
2519 ... this file, and...
2520 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
2521 ... this file, and...
2522 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
2523 ... this file into...
2524 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
2525 file.
2526
2527 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
2528 Make failure observable.
2529
2530 2016-04-12 Jakub Jelinek <jakub@redhat.com>
2531
2532 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
2533 field.
2534 * target.c (gomp_target_fallback_firstprivate,
2535 gomp_target_unshare_firstprivate): Removed.
2536 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
2537 before waiting for dependencies.
2538 (gomp_target_task_fn): Don't copy firstprivate vars here.
2539 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
2540 firstprivate_copies here.
2541 (gomp_create_target_task): Don't initialize firstprivate_copies field.
2542 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
2543 explicit/implicit firstprivate.
2544
2545 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
2546
2547 PR lto/70289
2548 PR ipa/70348
2549 PR tree-optimization/70373
2550 PR middle-end/70533
2551 PR middle-end/70534
2552 PR middle-end/70535
2553 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
2554 test.
2555 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
2556 test.
2557 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
2558 test.
2559 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
2560 test.
2561 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
2562 test.
2563 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
2564 test.
2565 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
2566 test.
2567 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
2568 test.
2569 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
2570 test.
2571 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
2572 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
2573 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
2574 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
2575 test.
2576 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
2577 test.
2578 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
2579 test.
2580 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
2581 test.
2582 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
2583 coverage.
2584 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
2585 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2586 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
2587 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
2588 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
2589 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
2590 coverage.
2591 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
2592 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
2593 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
2594 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
2595 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
2596 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
2597 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
2598 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
2599 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
2600 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
2601 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
2602 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
2603 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
2604 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
2605 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
2606
2607 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
2608 James Norris <jnorris@codesourcery.com>
2609 Nathan Sidwell <nathan@codesourcery.com>
2610 Julian Brown <julian@codesourcery.com>
2611 Cesar Philippidis <cesar@codesourcery.com>
2612 Chung-Lin Tang <cltang@codesourcery.com>
2613 Tom de Vries <tom@codesourcery.com>
2614
2615 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
2616 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
2617 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
2618 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
2619 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
2620 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
2621 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
2622 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
2623 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
2624 XFAIL.
2625 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
2626 Incorporate...
2627 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
2628 file.
2629 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
2630 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
2631 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
2632 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
2633 Likewise.
2634 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
2635 Likewise.
2636 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
2637 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
2638 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
2639 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
2640 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
2641 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
2642 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
2643 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
2644 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2645 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
2646 Likewise.
2647 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
2648 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
2649 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
2650 file...
2651 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
2652 file into...
2653 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
2654 file. Update.
2655 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
2656 file.
2657 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
2658 Likewise.
2659 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
2660 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
2661 ... this new file. Update.
2662 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
2663 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
2664 ... this new file. Update.
2665 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
2666 file. Incorporate...
2667 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
2668 file, and...
2669 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
2670 file, and...
2671 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
2672 file.
2673 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
2674
2675 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
2676
2677 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
2678 set-torture-options.
2679
2680 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
2681
2682 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
2683 gcc-dg-runtest.
2684 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2685 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
2686 -fno-builtin-acc_on_device instead of -O0.
2687 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
2688 -O0.
2689 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
2690 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
2691 Likewise.
2692 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
2693 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
2694 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
2695 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
2696 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
2697 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
2698 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
2699 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
2700 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
2701 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
2702 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
2703 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
2704 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
2705 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
2706 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
2707 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
2708 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
2709 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
2710 Don't specify -O2.
2711 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
2712 Likewise.
2713 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
2714 Likewise.
2715
2716 2016-03-24 Martin Liska <mliska@suse.cz>
2717
2718 * plugin/plugin-hsa.c (packet_store_release): New function
2719 that is taken from the HSA runtime manual.
2720 (GOMP_OFFLOAD_run): Use the function.
2721
2722 2016-03-23 Jakub Jelinek <jakub@redhat.com>
2723
2724 PR c++/70376
2725 * testsuite/libgomp.c++/pr70376.C: New test.
2726
2727 2016-03-23 Tom de Vries <tom@codesourcery.com>
2728
2729 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
2730 initialization of lresult and lvresult.
2731 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
2732
2733 2016-03-23 James Norris <jnorris@codesourcery.com>
2734 Daichi Fukuoka <dc-fukuoka@sgi.com>
2735
2736 PR libgomp/69414
2737 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
2738 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
2739 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
2740 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
2741
2742 2016-03-23 Martin Liska <mliska@suse.cz>
2743
2744 PR hsa/70337
2745 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
2746 argument just in case a dispatched kernel uses that argument.
2747
2748 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
2749
2750 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
2751 -ftree-parallelize-loops/-fopenacc changes.
2752 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
2753 Likewise.
2754 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
2755 Likewise.
2756 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
2757 Likewise.
2758 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
2759 Likewise.
2760 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
2761 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
2762
2763 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
2764
2765 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
2766 always_ld_library_path the path to libgcc_s.
2767
2768 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
2769
2770 PR testsuite/70009
2771 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
2772
2773 2016-03-09 Tom de Vries <tom@codesourcery.com>
2774
2775 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
2776 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
2777 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
2778 Same.
2779 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
2780 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
2781 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
2782 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
2783
2784 2016-03-07 Martin Jambor <mjambor@suse.cz>
2785
2786 * testsuite/lib/libgomp.exp
2787 (check_effective_target_hsa_offloading_selected_nocache): New.
2788 (check_effective_target_hsa_offloading_selected): Likewise.
2789 * testsuite/libgomp.hsa.c/c.exp: Likewise.
2790 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
2791 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
2792 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
2793 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
2794 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
2795 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
2796 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
2797 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
2798 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
2799 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
2800 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
2801 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
2802 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
2803 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
2804 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
2805 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
2806
2807 2016-03-07 Martin Jambor <mjambor@suse.cz>
2808
2809 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
2810 non-shared memory accelerators.
2811 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
2812 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
2813 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
2814 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
2815 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
2816 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
2817 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
2818 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
2819 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
2820
2821 2016-03-07 Martin Jambor <mjambor@suse.cz>
2822
2823 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
2824 ALWAYS_CFLAGS.
2825
2826 2016-03-02 Jakub Jelinek <jakub@redhat.com>
2827
2828 PR libgomp/69555
2829 * testsuite/libgomp.c++/pr69555-1.C: New test.
2830 * testsuite/libgomp.c++/pr69555-2.C: New test.
2831
2832 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
2833 Martin Jambor <mjambor@suse.cz>
2834
2835 * testsuite/lib/libgomp.exp
2836 (check_effective_target_offload_device_shared_as): New proc.
2837 * testsuite/libgomp.c++/declare_target-1.C: New test.
2838
2839 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
2840
2841 PR driver/68463
2842 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
2843
2844 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
2845
2846 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
2847 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
2848 dims.
2849 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
2850 -ftree-parallelize-loops/-fopenacc changes.
2851 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
2852 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
2853 Likewise.
2854 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
2855 Likewise.
2856 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
2857 Likewise.
2858 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
2859 Likewise.
2860 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
2861 Likewise.
2862 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
2863 Likewise.
2864 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
2865 Likewise.
2866 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
2867 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
2868 Likewise.
2869 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
2870 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
2871 Likewise.
2872 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
2873 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
2874 Likewise.
2875
2876 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
2877
2878 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
2879
2880 2016-02-19 Jakub Jelinek <jakub@redhat.com>
2881
2882 PR driver/69805
2883 * testsuite/libgomp.c/pr69805.c: New test.
2884
2885 2016-02-16 Tom de Vries <tom@codesourcery.com>
2886
2887 PR lto/67709
2888 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
2889
2890 2016-02-09 Tom de Vries <tom@codesourcery.com>
2891
2892 PR tree-optimization/69599
2893 * testsuite/libgomp.c/omp-nested-3.c: New test.
2894 * testsuite/libgomp.c/pr46032-2.c: New test.
2895 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
2896 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
2897
2898 2016-02-09 Tom de Vries <tom@codesourcery.com>
2899
2900 PR lto/69707
2901 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
2902
2903 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
2904
2905 * testsuite/libgomp.c/target-31.c: Fix testcase.
2906
2907 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
2908
2909 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
2910 clause.
2911 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
2912 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
2913 reduction and map clauses.
2914 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
2915
2916 2016-02-02 James Norris <jnorris@codesourcery.com>
2917
2918 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
2919
2920 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
2921
2922 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
2923 * oacc-parallel.c (GOACC_host_data): Remove function definition.
2924
2925 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
2926 cases.
2927
2928 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
2929 variables.
2930 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
2931 (hsa_kmt_lib): Set variables.
2932 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
2933 always_ld_library_path.
2934 * Makefile.in: Regenerate.
2935 * configure: Likewise.
2936 * testsuite/Makefile.in: Likewise.
2937
2938 * plugin/configfrag.ac (offload_additional_options)
2939 (offload_additional_lib_paths): Don't amend for hsa offloading.
2940 * configure: Regenerate.
2941
2942 * plugin/configfrag.ac: Don't configure for offloading target if
2943 we don't build the corresponding plugin.
2944 * configure: Regenerate.
2945
2946 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
2947
2948 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
2949 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
2950
2951 2016-01-26 Tom de Vries <tom@codesourcery.com>
2952
2953 PR tree-optimization/69110
2954 * testsuite/libgomp.c/pr69110.c: New test.
2955
2956 2016-01-25 Richard Biener <rguenther@suse.de>
2957
2958 PR lto/69393
2959 * testsuite/libgomp.c++/pr69393.C: New testcase.
2960
2961 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
2962
2963 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
2964 function wasn't mapped to the device with non-shared memory.
2965
2966 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
2967
2968 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
2969
2970 2016-01-19 Martin Jambor <mjambor@suse.cz>
2971 Martin Liska <mliska@suse.cz>
2972
2973 * plugin/Makefrag.am: Add HSA plugin requirements.
2974 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
2975 (HSA_RUNTIME_LIB): Likewise.
2976 (HSA_RUNTIME_CPPFLAGS): Likewise.
2977 (HSA_RUNTIME_INCLUDE): New substitution.
2978 (HSA_RUNTIME_LIB): Likewise.
2979 (HSA_RUNTIME_LDFLAGS): Likewise.
2980 (hsa-runtime): New configure option.
2981 (hsa-runtime-include): Likewise.
2982 (hsa-runtime-lib): Likewise.
2983 (PLUGIN_HSA): New substitution variable.
2984 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
2985 configure options.
2986 (PLUGIN_HSA_CPPFLAGS): Likewise.
2987 (PLUGIN_HSA_LDFLAGS): Likewise.
2988 (PLUGIN_HSA_LIBS): Likewise.
2989 Check that we have access to HSA run-time.
2990 * libgomp-plugin.h (offload_target_type): New element
2991 OFFLOAD_TARGET_TYPE_HSA.
2992 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
2993 args.
2994 (bool gomp_create_target_task): Updated.
2995 (gomp_device_descr): Extra parameter of run_func and async_run_func,
2996 new field can_run_func.
2997 * libgomp_g.h (GOMP_target_ext): Update prototype.
2998 * oacc-host.c (host_run): Added a new parameter args.
2999 * target.c (calculate_firstprivate_requirements): New function.
3000 (copy_firstprivate_data): Likewise.
3001 (gomp_target_fallback_firstprivate): Use them.
3002 (gomp_target_unshare_firstprivate): New function.
3003 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
3004 devices.
3005 (GOMP_target): Do host fallback for all shared memory devices. Do not
3006 pass any args to plugins.
3007 (GOMP_target_ext): Introduce device-specific argument parameter args.
3008 Allow host fallback if device shares memory. Do not remap data if
3009 device has shared memory.
3010 (gomp_target_task_fn): Likewise. Also treat shared memory devices
3011 like host fallback for mappings.
3012 (GOMP_target_data): Treat shared memory devices like host fallback.
3013 (GOMP_target_data_ext): Likewise.
3014 (GOMP_target_update): Likewise.
3015 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
3016 gomp_create_target_task.
3017 (GOMP_target_enter_exit_data): Likewise.
3018 (omp_target_alloc): Treat shared memory devices like host fallback.
3019 (omp_target_free): Likewise.
3020 (omp_target_is_present): Likewise.
3021 (omp_target_memcpy): Likewise.
3022 (omp_target_memcpy_rect): Likewise.
3023 (omp_target_associate_ptr): Likewise.
3024 (gomp_load_plugin_for_device): Also load can_run.
3025 * task.c (GOMP_PLUGIN_target_task_completion): Free
3026 firstprivate_copies.
3027 (gomp_create_target_task): Accept new argument args and store it to
3028 ttask.
3029 * plugin/plugin-hsa.c: New file.
3030
3031 2016-01-18 Tom de Vries <tom@codesourcery.com>
3032
3033 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
3034 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
3035 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
3036 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
3037 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
3038 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
3039 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
3040 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
3041 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
3042 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
3043 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
3044 Same.
3045 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
3046 Same.
3047 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
3048 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
3049 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
3050 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
3051 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
3052 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
3053 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
3054 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
3055 Same.
3056 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
3057
3058 2016-01-15 Jakub Jelinek <jakub@redhat.com>
3059
3060 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
3061
3062 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
3063
3064 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
3065
3066 2016-01-12 James Norris <jnorris@codesourcery.com>
3067
3068 * libgomp.texi: Updates for OpenACC.
3069
3070 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
3071
3072 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
3073
3074 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
3075
3076 PR fortran/66680
3077 * testsuite/libgomp.fortran/pr66680.f90: New test.
3078
3079 2016-01-07 Jakub Jelinek <jakub@redhat.com>
3080
3081 PR middle-end/68960
3082 * testsuite/libgomp.c/pr68960.c: New test.
3083
3084 2016-01-06 Nathan Sidwell <nathan@acm.org>
3085
3086 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
3087 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
3088
3089 2016-01-04 Jakub Jelinek <jakub@redhat.com>
3090
3091 Update copyright years.
3092
3093 * libgomp.texi: Bump @copying's copyright year.
3094
3095 2015-12-31 Nathan Sidwell <nathan@acm.org>
3096
3097 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
3098 dg-additional-options syntax.
3099 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3100 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
3101 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
3102 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3103 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
3104 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
3105 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3106 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
3107 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3108 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
3109 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3110 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
3111 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3112 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3113 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3114 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
3115 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
3116 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3117
3118 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
3119
3120 * libgomp.h (REFCOUNT_LINK): Define.
3121 (struct splay_tree_key_s): Add link_key.
3122 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
3123 Replace target address of the pointer with target address of newly
3124 mapped object in the splay tree. Set link pointer on target to the
3125 device address of the mapped object.
3126 (gomp_unmap_vars): Restore target address of the pointer in the splay
3127 tree for REFCOUNT_LINK objects after unmapping.
3128 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
3129 declare target link" objects.
3130 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
3131 "omp declare target link" objects, which were mapped for the image.
3132 (gomp_exit_data): Restore target address of the pointer in the splay
3133 tree for REFCOUNT_LINK objects after unmapping.
3134 * testsuite/libgomp.c/target-link-1.c: New file.
3135
3136 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
3137
3138 * libgomp.h (gomp_device_state): New enum.
3139 (struct gomp_device_descr): Replace is_initialized with state.
3140 (gomp_fini_device): Remove declaration.
3141 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
3142 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
3143 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
3144 (acc_set_device_type): Use state instead of is_initialized.
3145 (acc_set_device_num): Likewise.
3146 * target.c (resolve_device): Use state instead of is_initialized.
3147 Do not initialize finalized device.
3148 (gomp_map_vars): Do nothing if device is finalized.
3149 (gomp_unmap_vars): Likewise.
3150 (gomp_update): Likewise.
3151 (GOMP_offload_register_ver): Use state instead of is_initialized.
3152 (GOMP_offload_unregister_ver): Likewise.
3153 (gomp_init_device): Likewise.
3154 (gomp_unload_device): Likewise.
3155 (gomp_fini_device): Remove.
3156 (gomp_get_target_fn_addr): Do nothing if device is finalized.
3157 (GOMP_target): Go to host fallback if device is finalized.
3158 (GOMP_target_ext): Likewise.
3159 (gomp_exit_data): Do nothing if device is finalized.
3160 (gomp_target_task_fn): Go to host fallback if device is finalized.
3161 (gomp_target_fini): New static function.
3162 (gomp_target_init): Use state instead of is_initialized.
3163 Call gomp_target_fini at exit.
3164
3165 2015-12-09 Tom de Vries <tom@codesourcery.com>
3166
3167 PR tree-optimization/68716
3168 * testsuite/libgomp.c/omp-nested-2.c: New test.
3169
3170 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
3171
3172 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
3173 target openacc_nvidia_accel_selected.
3174 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
3175 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
3176 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
3177 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
3178
3179 2015-12-01 Julian Brown <julian@codesourcery.com>
3180 James Norris <James_Norris@mentor.com>
3181
3182 * oacc-parallel.c (GOACC_host_data): New function.
3183 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
3184 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
3185 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
3186 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
3187 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
3188 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
3189 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
3190
3191 2015-11-30 James Norris <jnorris@codesourcery.com>
3192 Cesar Philippidis <cesar@codesourcery.com>
3193
3194 libgomp/
3195 * libgomp.oacc-fortran/routine-5.f90: New test.
3196 * libgomp.oacc-fortran/routine-7.f90: New test.
3197 * libgomp.oacc-fortran/routine-9.f90: New test.
3198
3199 2015-11-30 Tom de Vries <tom@codesourcery.com>
3200
3201 PR tree-optimization/46032
3202 * testsuite/libgomp.c/pr46032.c: New test.
3203
3204 2015-11-27 Jakub Jelinek <jakub@redhat.com>
3205
3206 PR libgomp/68579
3207 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
3208 (gomp_create_target_task): Call it before freeing
3209 GOMP_TARGET_TASK_DATA tasks.
3210
3211 PR c/63326
3212 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
3213 in between case label and OpenMP standalone directives.
3214 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
3215
3216 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
3217
3218 * configure: Regenerate.
3219
3220 2015-11-26 Jakub Jelinek <jakub@redhat.com>
3221
3222 * testsuite/libgomp.c/target-35.c: New test.
3223
3224 2015-11-22 James Norris <jnorris@codesourcery.com>
3225 Cesar Philippidis <cesar@codesourcery.com>
3226
3227 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
3228 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
3229 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
3230 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
3231 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
3232
3233 2015-11-20 Jakub Jelinek <jakub@redhat.com>
3234
3235 PR middle-end/68221
3236 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
3237 * testsuite/libgomp.c/reduction-12.c: Likewise.
3238 * testsuite/libgomp.c++/reduction-11.C: Likewise.
3239 * testsuite/libgomp.c++/reduction-12.C: Likewise.
3240
3241 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
3242
3243 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
3244 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
3245 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
3246 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
3247 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
3248 and fix.
3249 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
3250 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
3251
3252 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
3253
3254 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
3255 worker & gang cases.
3256 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
3257
3258 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
3259
3260 * config/nvptx/priority_queue.c: New file.
3261
3262 2015-11-14 Jakub Jelinek <jakub@redhat.com>
3263
3264 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
3265 sections.
3266
3267 2015-11-14 Jakub Jelinek <jakub@redhat.com>
3268 Aldy Hernandez <aldyh@redhat.com>
3269 Ilya Verbin <ilya.verbin@intel.com>
3270
3271 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
3272 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
3273 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
3274 iterators or IV by chunk size.
3275 * parallel.c (gomp_resolve_num_threads): Don't assume that
3276 if thr->ts.team is non-NULL, then pool must be non-NULL.
3277 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
3278 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
3279 GOMP_PLUGIN_target_task_completion.
3280 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
3281 * Makefile.in: Regenerate.
3282 * libgomp.h: Shuffle prototypes and forward definitions around so
3283 priority queues can be defined.
3284 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
3285 (enum gomp_target_task_state): New enum.
3286 (struct gomp_target_task): Add state, tgt, task and team fields.
3287 (gomp_create_target_task): Change return type to bool, add
3288 state argument.
3289 (gomp_target_task_fn): Change return type to bool.
3290 (struct gomp_device_descr): Add async_run_func.
3291 (struct gomp_task): Remove children, next_child, prev_child,
3292 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
3293 Add pnode field.
3294 (struct gomp_taskgroup): Remove children.
3295 Add taskgroup_queue.
3296 (struct gomp_team): Change task_queue type to a priority queue.
3297 (splay_compare): Define inline.
3298 (priority_queue_offset): New.
3299 (priority_node_to_task): New.
3300 (task_to_priority_node): New.
3301 * oacc-mem.c: Do not include splay-tree.h.
3302 * priority_queue.c: New file.
3303 * priority_queue.h: New file.
3304 * splay-tree.c: Do not include splay-tree.h.
3305 (splay_tree_foreach_internal): New.
3306 (splay_tree_foreach): New.
3307 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
3308 (splay_tree_callback): Define typedef.
3309 * target.c (splay_compare): Move to libgomp.h.
3310 (GOMP_target): Don't adjust *thr in any way around running offloaded
3311 task.
3312 (GOMP_target_ext): Likewise. Handle target nowait.
3313 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
3314 return value from gomp_create_target_task, if false, fallthrough
3315 as if no dependencies exist.
3316 (gomp_target_task_fn): Change return type to bool, return true
3317 if the task should have another part scheduled later. Handle
3318 target nowait.
3319 (gomp_load_plugin_for_device): Initialize async_run.
3320 * task.c (gomp_init_task): Initialize children_queue.
3321 (gomp_clear_parent_in_list): New.
3322 (gomp_clear_parent_in_tree): New.
3323 (gomp_clear_parent): Handle priorities.
3324 (GOMP_task): Likewise.
3325 (priority_queue_move_task_first,
3326 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
3327 New functions.
3328 (gomp_create_target_task): Use priority queues. Change return type
3329 to bool, add state argument, return false if for async
3330 {{enter,exit} data,update} constructs no dependencies need to be
3331 waited for, handle target nowait. Set task->fn to NULL instead of
3332 gomp_target_task_fn.
3333 (verify_children_queue): Remove.
3334 (priority_list_upgrade_task): New.
3335 (priority_queue_upgrade_task): New.
3336 (verify_task_queue): Remove.
3337 (priority_list_downgrade_task): New.
3338 (priority_queue_downgrade_task): New.
3339 (gomp_task_run_pre): Use priority queues.
3340 Abstract code out to priority_queue_downgrade_task.
3341 (gomp_task_run_post_handle_dependers): Use priority queues.
3342 (gomp_task_run_post_remove_parent): Likewise.
3343 (gomp_task_run_post_remove_taskgroup): Likewise.
3344 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
3345 tasks specially.
3346 (GOMP_taskwait): Likewise.
3347 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
3348 priority-queue_upgrade_task.
3349 (GOMP_taskgroup_start): Use priority queues.
3350 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
3351 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
3352 barrier.
3353 * taskloop.c (GOMP_taskloop): Handle priorities.
3354 * team.c (gomp_new_team): Call priority_queue_init.
3355 (free_team): Call priority_queue_free.
3356 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
3357 team created for target nowait in implicit parallel region.
3358 (gomp_team_start): For nested check, test thr->ts.level instead of
3359 thr->ts.team != NULL.
3360 * testsuite/libgomp.c/doacross-3.c: New test.
3361 * testsuite/libgomp.c/ordered-5.c: New test.
3362 * testsuite/libgomp.c/priority.c: New test.
3363 * testsuite/libgomp.c/target-31.c: New test.
3364 * testsuite/libgomp.c/target-32.c: New test.
3365 * testsuite/libgomp.c/target-33.c: New test.
3366 * testsuite/libgomp.c/target-34.c: New test.
3367
3368 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
3369
3370 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
3371
3372 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
3373 loop is sequential.
3374
3375 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
3376
3377 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
3378 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
3379
3380 2015-11-12 James Norris <jnorris@codesourcery.com>
3381 Joseph Myers <joseph@codesourcery.com>
3382
3383 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
3384 * oacc-parallel.c (GOACC_declare): New function.
3385 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
3386 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
3387 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
3388 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
3389 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
3390
3391 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
3392
3393 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
3394
3395 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
3396
3397 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
3398 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
3399
3400 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
3401
3402 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
3403 inadvertent commit.
3404
3405 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
3406
3407 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
3408 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
3409 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
3410 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
3411 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
3412
3413 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
3414
3415 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
3416 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3417
3418 2015-11-05 Jakub Jelinek <jakub@redhat.com>
3419 Ilya Verbin <ilya.verbin@intel.com>
3420
3421 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
3422 GOMP_loop_nonmonotonic_dynamic_start,
3423 GOMP_loop_nonmonotonic_guided_next,
3424 GOMP_loop_nonmonotonic_guided_start,
3425 GOMP_loop_ull_nonmonotonic_dynamic_next,
3426 GOMP_loop_ull_nonmonotonic_dynamic_start,
3427 GOMP_loop_ull_nonmonotonic_guided_next,
3428 GOMP_loop_ull_nonmonotonic_guided_start,
3429 GOMP_parallel_loop_nonmonotonic_dynamic,
3430 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
3431 (GOMP_target_41): Renamed to ...
3432 (GOMP_target_ext): ... this. Add num_teams and thread_limit
3433 arguments.
3434 (GOMP_target_data_41): Renamed to ...
3435 (GOMP_target_data_ext): ... this.
3436 (GOMP_target_update_41): Renamed to ...
3437 (GOMP_target_update_ext): ... this.
3438 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
3439 GOMP_target_data_ext and GOMP_target_update_ext instead of
3440 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
3441 Export GOMP_loop_nonmonotonic_dynamic_next,
3442 GOMP_loop_nonmonotonic_dynamic_start,
3443 GOMP_loop_nonmonotonic_guided_next,
3444 GOMP_loop_nonmonotonic_guided_start,
3445 GOMP_loop_ull_nonmonotonic_dynamic_next,
3446 GOMP_loop_ull_nonmonotonic_dynamic_start,
3447 GOMP_loop_ull_nonmonotonic_guided_next,
3448 GOMP_loop_ull_nonmonotonic_guided_start,
3449 GOMP_parallel_loop_nonmonotonic_dynamic and
3450 GOMP_parallel_loop_nonmonotonic_guided.
3451 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
3452 GOMP_parallel_loop_nonmonotonic_guided,
3453 GOMP_loop_nonmonotonic_dynamic_start,
3454 GOMP_loop_nonmonotonic_guided_start,
3455 GOMP_loop_nonmonotonic_dynamic_next,
3456 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
3457 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
3458 GOMP_loop_ull_nonmonotonic_guided_start,
3459 GOMP_loop_ull_nonmonotonic_dynamic_next,
3460 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
3461 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
3462 functions.
3463 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
3464 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
3465 Use gomp_map_val function.
3466 (gomp_target_fallback_firstprivate): New static function.
3467 (GOMP_target_41): Renamed to ...
3468 (GOMP_target_ext): ... this. Add num_teams and thread_limit
3469 arguments. Move firstprivate fallback handling into a new
3470 function.
3471 (GOMP_target_data_41): Renamed to ...
3472 (GOMP_target_data_ext): ... this.
3473 (GOMP_target_update_41): Renamed to ...
3474 (GOMP_target_update_ext): ... this.
3475 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
3476 gomp_map_0len_lookup instead of gomp_map_lookup.
3477 (omp_target_is_present): Use gomp_map_0len_lookup instead of
3478 gomp_map_lookup.
3479 * testsuite/libgomp.c/target-28.c: Likewise.
3480 * testsuite/libgomp.c/monotonic-1.c: New test.
3481 * testsuite/libgomp.c/monotonic-2.c: New test.
3482 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
3483 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
3484 * testsuite/libgomp.c/pr66199-5.c: New test.
3485 * testsuite/libgomp.c/pr66199-6.c: New test.
3486 * testsuite/libgomp.c/pr66199-7.c: New test.
3487 * testsuite/libgomp.c/pr66199-8.c: New test.
3488 * testsuite/libgomp.c/pr66199-9.c: New test.
3489 * testsuite/libgomp.c/reduction-11.c: New test.
3490 * testsuite/libgomp.c/reduction-12.c: New test.
3491 * testsuite/libgomp.c/reduction-13.c: New test.
3492 * testsuite/libgomp.c/reduction-14.c: New test.
3493 * testsuite/libgomp.c/reduction-15.c: New test.
3494 * testsuite/libgomp.c/target-12.c (main): Adjust for
3495 omp_target_is_present change for one-past-last element.
3496 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
3497 the same var is both mapped and privatized.
3498 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
3499 handling of zero-length array sections.
3500 * testsuite/libgomp.c/target-28.c: New test.
3501 * testsuite/libgomp.c/target-29.c: New test.
3502 * testsuite/libgomp.c/target-30.c: New test.
3503 * testsuite/libgomp.c/target-teams-1.c: New test.
3504 * testsuite/libgomp.c++/member-6.C: New test.
3505 * testsuite/libgomp.c++/member-7.C: New test.
3506 * testsuite/libgomp.c++/monotonic-1.C: New test.
3507 * testsuite/libgomp.c++/monotonic-2.C: New test.
3508 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
3509 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
3510 * testsuite/libgomp.c++/pr66199-3.C: New test.
3511 * testsuite/libgomp.c++/pr66199-4.C: New test.
3512 * testsuite/libgomp.c++/pr66199-5.C: New test.
3513 * testsuite/libgomp.c++/pr66199-6.C: New test.
3514 * testsuite/libgomp.c++/pr66199-7.C: New test.
3515 * testsuite/libgomp.c++/pr66199-8.C: New test.
3516 * testsuite/libgomp.c++/pr66199-9.C: New test.
3517 * testsuite/libgomp.c++/reduction-11.C: New test.
3518 * testsuite/libgomp.c++/reduction-12.C: New test.
3519 * testsuite/libgomp.c++/target-13.C: New test.
3520 * testsuite/libgomp.c++/target-14.C: New test.
3521 * testsuite/libgomp.c++/target-15.C: New test.
3522 * testsuite/libgomp.c++/target-16.C: New test.
3523 * testsuite/libgomp.c++/target-17.C: New test.
3524 * testsuite/libgomp.c++/target-18.C: New test.
3525 * testsuite/libgomp.c++/target-19.C: New test.
3526
3527 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
3528
3529 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
3530 and reduction copy.
3531 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
3532 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
3533 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
3534 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3535 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
3536 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
3537 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
3538 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
3539 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
3540 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
3541 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
3542 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3543 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
3544 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
3545
3546 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
3547
3548 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
3549 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
3550 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
3551 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
3552 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
3553 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
3554 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
3555 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
3556
3557 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
3558
3559 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
3560 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
3561 (GOMP_OFFLOAD_openacc_parallel): Likewise.
3562 * oacc-host.c (host_openacc_exec): Likewise.
3563 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
3564
3565 2015-11-03 Julian Brown <julian@codesourcery.com>
3566 Thomas Schwinge <thomas@codesourcery.com>
3567
3568 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
3569 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
3570 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
3571 Likewise.
3572 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
3573 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
3574
3575 2015-11-03 James Norris <jnorris@codesourcery.com>
3576
3577 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
3578 file.
3579 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
3580 Likewise.
3581 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
3582 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
3583 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
3584 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
3585 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
3586
3587 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
3588
3589 * openacc.h (enum acc_device_t): Reformat. Ensure layout
3590 compatibility.
3591 (enum acc_async_t): Reformat.
3592 (acc_on_device): Declare compatible with builtin and provide C++
3593 wrapper.
3594 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
3595
3596 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
3597 Cesar Philippidis <cesar@codesourcery.com>
3598
3599 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
3600 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
3601 ... this. Add a description of the test at the top of the file.
3602 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
3603 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
3604 ... this. Add a description of the test at the top of the file.
3605
3606 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
3607
3608 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
3609 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
3610 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
3611 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
3612 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
3613 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
3614
3615 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
3616
3617 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
3618 dimensions.
3619
3620 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
3621
3622 PR testsuite/68063
3623 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
3624
3625 2015-10-27 James Norris <jnorris@codesourcery.com>
3626
3627 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
3628 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
3629
3630 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
3631
3632 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
3633 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
3634
3635 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
3636 acc_device_nvidia usage.
3637 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
3638 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
3639 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
3640
3641 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
3642 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
3643
3644 PR libgomp/66518
3645 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
3646
3647 PR libgomp/65437
3648 PR libgomp/66518
3649 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
3650 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
3651
3652 2015-10-23 Tom de Vries <tom@codesourcery.com>
3653
3654 PR testsuite/68063
3655 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
3656
3657 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
3658
3659 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
3660 vector_length.
3661 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3662
3663 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
3664 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
3665
3666 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
3667 to 0 when mapnum is 0.
3668
3669 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
3670
3671 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
3672 Cast to int from int32_t.
3673
3674 2015-10-13 Jakub Jelinek <jakub@redhat.com>
3675 Aldy Hernandez <aldyh@redhat.com>
3676 Ilya Verbin <ilya.verbin@intel.com>
3677
3678 * config/linux/affinity.c (omp_get_place_num_procs,
3679 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
3680 * config/linux/doacross.h: New file.
3681 * config/posix/affinity.c (omp_get_place_num_procs,
3682 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
3683 * config/posix/doacross.h: New file.
3684 * env.c: Include gomp-constants.h.
3685 (struct gomp_task_icv): Rename run_sched_modifier to
3686 run_sched_chunk_size.
3687 (gomp_max_task_priority_var): New variable.
3688 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
3689 (handle_omp_display_env): Change _OPENMP value from 201307 to
3690 201511. Print OMP_MAX_TASK_PRIORITY.
3691 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
3692 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
3693 chunk_size and run_sched_modifier to run_sched_chunk_size.
3694 (omp_get_max_task_priority, omp_get_initial_device,
3695 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
3696 omp_get_partition_place_nums): New functions.
3697 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
3698 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
3699 to chunk_size.
3700 (omp_get_num_places_, omp_get_place_num_procs_,
3701 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
3702 omp_get_place_proc_ids_8_, omp_get_place_num_,
3703 omp_get_partition_num_places_, omp_get_partition_place_nums_,
3704 omp_get_partition_place_nums_8_, omp_get_initial_device_,
3705 omp_get_max_task_priority_): New functions.
3706 * libgomp_g.h (GOMP_loop_doacross_static_start,
3707 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
3708 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
3709 GOMP_loop_ull_doacross_dynamic_start,
3710 GOMP_loop_ull_doacross_guided_start,
3711 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
3712 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
3713 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
3714 GOMP_target_data_41, GOMP_target_update_41,
3715 GOMP_target_enter_exit_data): New prototypes.
3716 (GOMP_task): Add prototype argument.
3717 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
3718 (struct gomp_doacross_work_share): New type.
3719 (struct gomp_work_share): Add doacross field.
3720 (struct gomp_task_icv): Rename run_sched_modifier to
3721 run_sched_chunk_size.
3722 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
3723 GOMP_TASK_UNDEFERRED. Add comments.
3724 (struct gomp_task_depend_entry): Add comments.
3725 (struct gomp_task): Likewise.
3726 (struct gomp_taskgroup): Likewise.
3727 (struct gomp_target_task): New type.
3728 (struct gomp_team): Add comment.
3729 (gomp_get_place_proc_ids_8, gomp_doacross_init,
3730 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
3731 gomp_create_target_task, gomp_target_task_fn): New prototypes.
3732 (struct target_var_desc): New type.
3733 (struct target_mem_desc): Adjust comment. Use struct
3734 target_var_desc instead of splay_tree_key for list.
3735 (REFCOUNT_INFINITY): Define.
3736 (struct splay_tree_key_s): Remove copy_from field.
3737 (struct gomp_device_descr): Add dev2dev_func field.
3738 (enum gomp_map_vars_kind): New enum.
3739 (gomp_map_vars): Add one argument.
3740 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
3741 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
3742 omp_get_place_num_procs, omp_get_place_num_procs_,
3743 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
3744 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
3745 omp_get_place_num_, omp_get_partition_num_places,
3746 omp_get_partition_num_places_, omp_get_partition_place_nums,
3747 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
3748 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
3749 omp_target_free, omp_target_is_present, omp_target_memcpy,
3750 omp_target_memcpy_rect, omp_target_associate_ptr and
3751 omp_target_disassociate_ptr.
3752 (GOMP_4.0.2): Renamed to ...
3753 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
3754 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
3755 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
3756 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
3757 GOMP_loop_doacross_static_start, GOMP_doacross_post,
3758 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
3759 GOMP_loop_ull_doacross_guided_start,
3760 GOMP_loop_ull_doacross_runtime_start,
3761 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
3762 GOMP_doacross_ull_wait.
3763 * libgomp.texi: Document omp_get_max_task_priority.
3764 Rename modifier argument to chunk_size for omp_set_schedule and
3765 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
3766 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
3767 to run_sched_chunk_size renaming.
3768 (GOMP_loop_ordered_runtime_start): Likewise.
3769 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
3770 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
3771 GOMP_parallel_loop_runtime_start): New functions.
3772 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
3773 to run_sched_chunk_size renaming.
3774 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
3775 GOMP_loop_doacross_guided_start): New functions or aliases.
3776 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
3777 run_sched_modifier to run_sched_chunk_size renaming.
3778 (GOMP_loop_ull_ordered_runtime_start): Likewise.
3779 (gomp_loop_ull_doacross_static_start,
3780 gomp_loop_ull_doacross_dynamic_start,
3781 gomp_loop_ull_doacross_guided_start,
3782 GOMP_loop_ull_doacross_runtime_start): New functions.
3783 (GOMP_loop_ull_doacross_static_start,
3784 GOMP_loop_ull_doacross_dynamic_start,
3785 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
3786 * oacc-mem.c (acc_map_data, present_create_copy,
3787 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
3788 to gomp_map_vars.
3789 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
3790 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
3791 instead of false to gomp_map_vars.
3792 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
3793 * omp.h.in (omp_lock_hint_t): New type.
3794 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
3795 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
3796 omp_get_place_num, omp_get_partition_num_places,
3797 omp_get_partition_place_nums, omp_get_initial_device,
3798 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
3799 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
3800 omp_target_associate_ptr, omp_target_disassociate_ptr): New
3801 prototypes.
3802 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
3803 (omp_lock_hint_none, omp_lock_hint_uncontended,
3804 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
3805 omp_lock_hint_speculative): New parameters.
3806 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
3807 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
3808 omp_get_place_num, omp_get_partition_num_places,
3809 omp_get_partition_place_nums, omp_get_initial_device,
3810 omp_get_max_task_priority): New interfaces.
3811 (omp_set_schedule, omp_get_schedule): Rename modifier argument
3812 to chunk_size.
3813 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
3814 (omp_lock_hint_none, omp_lock_hint_uncontended,
3815 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
3816 omp_lock_hint_speculative): New parameters.
3817 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
3818 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
3819 omp_get_place_num, omp_get_partition_num_places,
3820 omp_get_partition_place_nums, omp_get_initial_device,
3821 omp_get_max_task_priority): New functions and subroutines.
3822 * ordered.c: Include stdarg.h and string.h.
3823 (MAX_COLLAPSED_BITS): Define.
3824 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
3825 gomp_doacross_ull_init, GOMP_doacross_ull_post,
3826 GOMP_doacross_ull_wait): New functions.
3827 * target.c: Include errno.h.
3828 (resolve_device): If device is not initialized, call
3829 gomp_init_device on it.
3830 (gomp_map_lookup): New function.
3831 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
3832 Don't bump refcount if REFCOUNT_INFINITY. Handle
3833 GOMP_MAP_ALWAYS_TO_P.
3834 (get_kind): Rename is_openacc argument to short_mapkind.
3835 (gomp_map_pointer): Use gomp_map_lookup.
3836 (gomp_map_fields_existing): New function.
3837 (gomp_map_vars): Rename is_openacc argument to short_mapkind
3838 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
3839 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
3840 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
3841 Adjust for tgt->list changed type and copy_from living in there.
3842 (gomp_copy_from_async): Adjust for tgt->list changed type and
3843 copy_from living in there.
3844 (gomp_unmap_vars): Likewise.
3845 (gomp_update): Likewise. Rename is_openacc argument to
3846 short_mapkind. Don't fail if object is not mapped.
3847 (gomp_load_image_to_device): Initialize refcount to
3848 REFCOUNT_INFINITY.
3849 (gomp_target_fallback): New function.
3850 (gomp_get_target_fn_addr): Likewise.
3851 (GOMP_target): Adjust gomp_map_vars caller, use
3852 gomp_get_target_fn_addr and gomp_target_fallback.
3853 (GOMP_target_41): New function.
3854 (gomp_target_data_fallback): New function.
3855 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
3856 (GOMP_target_data_41): New function.
3857 (GOMP_target_update): Adjust gomp_update caller.
3858 (GOMP_target_update_41): New function.
3859 (gomp_exit_data, GOMP_target_enter_exit_data,
3860 gomp_target_task_fn, omp_target_alloc, omp_target_free,
3861 omp_target_is_present, omp_target_memcpy,
3862 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
3863 omp_target_associate_ptr, omp_target_disassociate_ptr,
3864 gomp_load_plugin_for_device): New functions.
3865 * task.c: Include gomp-constants.h. Include taskloop.c
3866 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
3867 (gomp_task_handle_depend): New function.
3868 (GOMP_task): Use it. Add priority argument. Use
3869 gomp-constant.h constants instead of hardcoded numbers.
3870 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
3871 (gomp_create_target_task): New function.
3872 (verify_children_queue, verify_taskgroup_queue,
3873 verify_task_queue): New functions.
3874 (gomp_task_run_pre): Call verify_*_queue functions.
3875 If an upcoming tied task is about to leave the sibling or
3876 taskgroup queues in an invalid state, adjust appropriately.
3877 Remove taskgroup argument. Add comments.
3878 (gomp_task_run_post_handle_dependers): Add comments.
3879 (gomp_task_run_post_remove_parent): Likewise.
3880 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
3881 (GOMP_taskwait): Likewise. Add comments.
3882 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
3883 problem such that the first non parent_depends_on task does not
3884 end up at the end of the children queue.
3885 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
3886 GOMP_TASK_UNDEFERRED.
3887 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
3888 * taskloop.c: New file.
3889 * testsuite/lib/libgomp.exp
3890 (check_effective_target_offload_device_nonshared_as): New proc.
3891 * testsuite/libgomp.c/affinity-2.c: New test.
3892 * testsuite/libgomp.c/doacross-1.c: New test.
3893 * testsuite/libgomp.c/doacross-2.c: New test.
3894 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
3895 Add map clause to target.
3896 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
3897 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
3898 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
3899 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
3900 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
3901 Likewise.
3902 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
3903 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
3904 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
3905 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
3906 not defined. Use those where needed.
3907 * testsuite/libgomp.c/for-4.c: New test.
3908 * testsuite/libgomp.c/for-5.c: New test.
3909 * testsuite/libgomp.c/for-6.c: New test.
3910 * testsuite/libgomp.c/linear-1.c: New test.
3911 * testsuite/libgomp.c/ordered-4.c: New test.
3912 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
3913 only allowed on the loop iterator.
3914 * testsuite/libgomp.c/pr66199-3.c: New test.
3915 * testsuite/libgomp.c/pr66199-4.c: New test.
3916 * testsuite/libgomp.c/reduction-7.c: New test.
3917 * testsuite/libgomp.c/reduction-8.c: New test.
3918 * testsuite/libgomp.c/reduction-9.c: New test.
3919 * testsuite/libgomp.c/reduction-10.c: New test.
3920 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
3921 map(tofrom:s).
3922 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
3923 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
3924 * testsuite/libgomp.c/target-11.c: New test.
3925 * testsuite/libgomp.c/target-12.c: New test.
3926 * testsuite/libgomp.c/target-13.c: New test.
3927 * testsuite/libgomp.c/target-14.c: New test.
3928 * testsuite/libgomp.c/target-15.c: New test.
3929 * testsuite/libgomp.c/target-16.c: New test.
3930 * testsuite/libgomp.c/target-17.c: New test.
3931 * testsuite/libgomp.c/target-18.c: New test.
3932 * testsuite/libgomp.c/target-19.c: New test.
3933 * testsuite/libgomp.c/target-20.c: New test.
3934 * testsuite/libgomp.c/target-21.c: New test.
3935 * testsuite/libgomp.c/target-22.c: New test.
3936 * testsuite/libgomp.c/target-23.c: New test.
3937 * testsuite/libgomp.c/target-24.c: New test.
3938 * testsuite/libgomp.c/target-25.c: New test.
3939 * testsuite/libgomp.c/target-26.c: New test.
3940 * testsuite/libgomp.c/target-27.c: New test.
3941 * testsuite/libgomp.c/taskloop-1.c: New test.
3942 * testsuite/libgomp.c/taskloop-2.c: New test.
3943 * testsuite/libgomp.c/taskloop-3.c: New test.
3944 * testsuite/libgomp.c/taskloop-4.c: New test.
3945 * testsuite/libgomp.c++/ctor-13.C: New test.
3946 * testsuite/libgomp.c++/doacross-1.C: New test.
3947 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
3948 Replace offload_device with offload_device_nonshared_as.
3949 * testsuite/libgomp.c++/for-12.C: New test.
3950 * testsuite/libgomp.c++/for-13.C: New test.
3951 * testsuite/libgomp.c++/for-14.C: New test.
3952 * testsuite/libgomp.c++/linear-1.C: New test.
3953 * testsuite/libgomp.c++/member-1.C: New test.
3954 * testsuite/libgomp.c++/member-2.C: New test.
3955 * testsuite/libgomp.c++/member-3.C: New test.
3956 * testsuite/libgomp.c++/member-4.C: New test.
3957 * testsuite/libgomp.c++/member-5.C: New test.
3958 * testsuite/libgomp.c++/ordered-1.C: New test.
3959 * testsuite/libgomp.c++/reduction-5.C: New test.
3960 * testsuite/libgomp.c++/reduction-6.C: New test.
3961 * testsuite/libgomp.c++/reduction-7.C: New test.
3962 * testsuite/libgomp.c++/reduction-8.C: New test.
3963 * testsuite/libgomp.c++/reduction-9.C: New test.
3964 * testsuite/libgomp.c++/reduction-10.C: New test.
3965 * testsuite/libgomp.c++/reference-1.C: New test.
3966 * testsuite/libgomp.c++/simd14.C: New test.
3967 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
3968 * testsuite/libgomp.c++/target-5.C: New test.
3969 * testsuite/libgomp.c++/target-6.C: New test.
3970 * testsuite/libgomp.c++/target-7.C: New test.
3971 * testsuite/libgomp.c++/target-8.C: New test.
3972 * testsuite/libgomp.c++/target-9.C: New test.
3973 * testsuite/libgomp.c++/target-10.C: New test.
3974 * testsuite/libgomp.c++/target-11.C: New test.
3975 * testsuite/libgomp.c++/target-12.C: New test.
3976 * testsuite/libgomp.c++/taskloop-1.C: New test.
3977 * testsuite/libgomp.c++/taskloop-2.C: New test.
3978 * testsuite/libgomp.c++/taskloop-3.C: New test.
3979 * testsuite/libgomp.c++/taskloop-4.C: New test.
3980 * testsuite/libgomp.c++/taskloop-5.C: New test.
3981 * testsuite/libgomp.c++/taskloop-6.C: New test.
3982 * testsuite/libgomp.c++/taskloop-7.C: New test.
3983 * testsuite/libgomp.c++/taskloop-8.C: New test.
3984 * testsuite/libgomp.c++/taskloop-9.C: New test.
3985 * testsuite/libgomp.fortran/affinity1.f90: New test.
3986 * testsuite/libgomp.fortran/affinity2.f90: New test.
3987
3988 2015-10-13 Tom de Vries <tom@codesourcery.com>
3989
3990 PR tree-optimization/67476
3991 * testsuite/libgomp.c/autopar-3.c: New test.
3992 * testsuite/libgomp.c/autopar-4.c: New test.
3993 * testsuite/libgomp.c/autopar-5.c: New test.
3994 * testsuite/libgomp.c/autopar-6.c: New test.
3995 * testsuite/libgomp.c/autopar-7.c: New test.
3996 * testsuite/libgomp.c/autopar-8.c: New test.
3997
3998 2015-10-12 James Norris <jnorris@codesourcery.com>
3999
4000 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
4001 initializer.
4002
4003 2015-10-09 David Malcolm <dmalcolm@redhat.com>
4004
4005 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
4006 using load_gcc_lib.
4007
4008 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
4009
4010 * oacc-ptx.h: Remove file, moving its content into...
4011 * config/nvptx/fortran.c: ... here...
4012 * config/nvptx/oacc-init.c: ..., here...
4013 * config/nvptx/oacc-parallel.c: ..., and here.
4014 * config/nvptx/openacc.f90: New file.
4015 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
4016 (link_ptx): Don't link in predefined bits of PTX code.
4017
4018 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
4019 Bernd Schmidt <bernds@codesourcery.com>
4020
4021 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
4022 (struct targ_ptx_obj): New.
4023 (nvptx_tdata): Move earlier, change data format.
4024 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
4025 objects.
4026 (GOMP_OFFLOAD_load_image): Adjust.
4027
4028 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
4029
4030 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
4031 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
4032 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
4033 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
4034 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
4035 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
4036 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
4037 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
4038 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
4039 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
4040 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
4041 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
4042 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
4043 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
4044 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
4045 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
4046 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
4047 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
4048 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
4049 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
4050 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4051 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
4052 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
4053 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
4054 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
4055 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
4056 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
4057 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
4058 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
4059 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
4060 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
4061 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
4062 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
4063 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
4064 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
4065 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
4066 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
4067 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
4068 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
4069 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
4070 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
4071 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
4072 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
4073 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
4074 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
4075 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
4076 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
4077 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
4078 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
4079 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
4080 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
4081 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
4082 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
4083 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
4084 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
4085 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
4086 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
4087 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
4088 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
4089 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
4090 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
4091 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
4092 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
4093
4094 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
4095
4096 * oacc-init.c (acc_on_device): Force optimization level.
4097
4098 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
4099
4100 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
4101 (cuda_errlist): Delete.
4102 (cuda_error): Reimplement.
4103
4104 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
4105
4106 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
4107 array.
4108 * libgomp.map (GOACC_parallel_keyed): New.
4109 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
4110 all callers.
4111 (GOACC_parallel_keyed): New interface. Lose geometry arguments
4112 and take keyed varargs list. Adjust call to exec_func.
4113 (GOACC_parallel): Force host fallback.
4114 * libgomp_g.h (GOACC_parallel): Remove.
4115 (GOACC_parallel_keyed): Declare.
4116 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
4117 (stuct targ_gn_descriptor): Replace name field with launch field.
4118 (nvptx_exec): Lose separate geometry args, take array. Process
4119 dynamic dimensions and adjust.
4120 (struct nvptx_tdata): Replace fn_names field with fn_descs.
4121 (GOMP_OFFLOAD_load_image): Adjust for change in function table
4122 data.
4123 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
4124 passing.
4125 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
4126 passing.
4127
4128 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
4129
4130 PR libgomp/67141
4131 * oacc-int.h (goacc_host_init): Add declaration.
4132 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
4133 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
4134
4135 2015-09-08 Aditya Kumar <hiraditya@msn.com>
4136 Sebastian Pop <s.pop@samsung.com>
4137
4138 * testsuite/libgomp.graphite/bounds.c (int foo): Modifed test case to
4139 match o/p.
4140 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
4141 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
4142 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
4143 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
4144 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
4145
4146 2015-09-03 Jakub Jelinek <jakub@redhat.com>
4147
4148 * configure.tgt: Add missing ;; in between nvptx and rtems
4149 snippets.
4150
4151 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
4152
4153 * config/posix/pool.h (gomp_adjust_thread_attr): New.
4154 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
4155 (gomp_thread_pool_reservoir): Add priority member.
4156 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
4157 priority.
4158 (parse_thread_pools): Likewise.
4159 * team.c (gomp_team_start): Call configuration provided
4160 gomp_adjust_thread_attr(). Destroy thread attributes if
4161 necessary.
4162 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
4163
4164 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
4165
4166 * config/posix/pool.h: New.
4167 * config/rtems/pool.h: Likewise.
4168 * config/rtems/proc.c: Likewise.
4169 * libgomp.h (gomp_thread_destructor): Declare.
4170 * team.c: Include configuration provided "pool.h".
4171 (gomp_get_thread_pool): Define in configuration.
4172 (gomp_team_end): Call configuration defined
4173 gomp_release_thread_pool().
4174
4175 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
4176
4177 * config/rtems/bar.c: New.
4178 * config/rtems/bar.h: Likewise.
4179 * config/rtems/mutex.c: Likewise.
4180 * config/rtems/mutex.h: Likewise.
4181 * config/rtems/sem.c: Likewise.
4182 * config/rtems/sem.h: Likewise.
4183 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
4184 <sys/lock.h> header file.
4185 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
4186 supported by Newlib.
4187 * configure: Regenerate.
4188
4189 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
4190
4191 * team.c (gomp_new_thread_pool): Delete and move content to ...
4192 (gomp_get_thread_pool): ... new function. Allocate and
4193 initialize thread pool on demand.
4194 (get_last_team): Use gomp_get_thread_pool().
4195 (gomp_team_start): Delete thread pool initialization.
4196
4197 2015-09-03 Tom de Vries <tom@codesourcery.com>
4198
4199 PR tree-optimization/65637
4200 * testsuite/libgomp.c/autopar-2.c: New test.
4201
4202 2015-08-29 Tom de Vries <tom@codesourcery.com>
4203
4204 PR tree-optimization/46193
4205 * testsuite/libgomp.c/pr46193.c: New test.
4206
4207 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
4208
4209 libgomp/
4210 * libgomp.map: Add 4.0.2 version.
4211 * target.c (offload_image_descr): Add version field.
4212 (gomp_load_image_to_device): Add version argument. Adjust plugin
4213 call. Improve load mismatch diagnostic.
4214 (gomp_unload_image_from_device): Add version argument. Adjust plugin
4215 call.
4216 (GOMP_offload_regster): Make stub function, move bulk to ...
4217 (GOMP_offload_register_ver): ... here. Process version argument.
4218 (GOMP_offload_unregister): Make stub function, move bulk to ...
4219 (GOMP_offload_unregister_ver): ... here. Process version argument.
4220 (gomp_init_device): Process version field.
4221 (gomp_unload_device): Process version field.
4222 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
4223 macros. Check plugin version.
4224 * libgomp.h (gomp_device_descr): Add version function field. Adjust
4225 loader and unloader types.
4226 * oacc-host.c: Include gomp-constants.h.
4227 (host_version): New.
4228 (host_load_image, host_unload_image): Adjust.
4229 (host_dispatch): Add host_version.
4230 * plugin/plugin-nvptx.c: Include gomp-constants.h.
4231 (GOMP_OFFLOAD_version): New.
4232 (GOMP_OFFLOAD_load_image): Add version arg and check it.
4233 (GOMP_OFFLOAD_unload_image): Likewise.
4234 * plugin/plugin-host.c: Include gomp-constants.h.
4235 (GOMP_OFFLOAD_version): New.
4236 (GOMP_OFFLOAD_load_image): Add version arg.
4237 (GOMP_OFFLOAD_unload_image): Likewise.
4238
4239 2015-08-24 Tom de Vries <tom@codesourcery.com>
4240
4241 PR tree-optimization/65468
4242 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
4243
4244 2015-08-24 Tom de Vries <tom@codesourcery.com>
4245
4246 PR tree-optimization/65468
4247 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
4248
4249 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
4250
4251 PR libgomp/66761
4252 PR libgomp/67303
4253 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
4254 (gomp_iter_guided_next): Idem.
4255 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
4256 (gomp_iter_ull_guided_next): Idem.
4257 * config/linux/wait.h (do_spin): Idem.
4258
4259 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
4260
4261 * libgomp-plugin.h (enum offload_target_type): Remove
4262 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
4263 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
4264 * openacc.h (enum acc_device_t): Likewise.
4265 * openacc_lib.h: Likewise.
4266 * oacc-init.c (name_of_acc_device_t): Don't handle it.
4267 (acc_on_device): Just use __builtin_acc_on_device.
4268 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
4269 of acc_on_device builtin.
4270 * plugin/plugin-host.h: Remove file.
4271 * plugin/plugin-host.c: Likewise, but salvage some content into...
4272 * oacc-host.c: ... this file.
4273 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
4274 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
4275 * Makefile.in: Regenerate.
4276 * configure: Likewise.
4277 * testsuite/lib/libgomp.exp
4278 (check_effective_target_openacc_host_nonshm_selected): Remove.
4279 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
4280 ACC_DEVICE_TYPE=host_nonshm.
4281 * testsuite/libgomp.oacc-c/c.exp: Likewise.
4282 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4283 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
4284 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4285 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4286 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4287
4288 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
4289 Jakub Jelinek <jakub@redhat.com>
4290
4291 * config/nvptx/affinity.c: New file.
4292 * config/nvptx/alloc.c: Likewise.
4293 * config/nvptx/bar.c: Likewise.
4294 * config/nvptx/barrier.c: Likewise.
4295 * config/nvptx/critical.c: Likewise.
4296 * config/nvptx/env.c: Likewise.
4297 * config/nvptx/error.c: Likewise.
4298 * config/nvptx/fortran.c: Likewise.
4299 * config/nvptx/iter.c: Likewise.
4300 * config/nvptx/iter_ull.c: Likewise.
4301 * config/nvptx/libgomp-plugin.c: Likewise.
4302 * config/nvptx/lock.c: Likewise.
4303 * config/nvptx/loop.c: Likewise.
4304 * config/nvptx/loop_ull.c: Likewise.
4305 * config/nvptx/mutex.c: Likewise.
4306 * config/nvptx/oacc-async.c: Likewise.
4307 * config/nvptx/oacc-cuda.c: Likewise.
4308 * config/nvptx/oacc-host.c: Likewise.
4309 * config/nvptx/oacc-init.c: Likewise.
4310 * config/nvptx/oacc-mem.c: Likewise.
4311 * config/nvptx/oacc-parallel.c: Likewise.
4312 * config/nvptx/oacc-plugin.c: Likewise.
4313 * config/nvptx/omp-lock.h: Likewise.
4314 * config/nvptx/ordered.c: Likewise.
4315 * config/nvptx/parallel.c: Likewise.
4316 * config/nvptx/proc.c: Likewise.
4317 * config/nvptx/ptrlock.c: Likewise.
4318 * config/nvptx/sections.c: Likewise.
4319 * config/nvptx/sem.c: Likewise.
4320 * config/nvptx/single.c: Likewise.
4321 * config/nvptx/splay-tree.c: Likewise.
4322 * config/nvptx/target.c: Likewise.
4323 * config/nvptx/task.c: Likewise.
4324 * config/nvptx/team.c: Likewise.
4325 * config/nvptx/time.c: Likewise.
4326 * config/nvptx/work.c: Likewise.
4327 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
4328 * configure: Regenerate.
4329 * configure.tgt (config_path): Set to "nvptx" for target
4330 nvptx*-*-*.
4331
4332 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
4333
4334 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
4335
4336 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
4337
4338 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
4339 (cuda_errlist): Constify.
4340 (errmsg): Move into ...
4341 (cuda_error): ... here. Make smaller.
4342 (_XSTR, _STR): Delete.
4343 (cuda_synames): Delete.
4344 (verify_device_library): Delete.
4345 (nvptx_init): Don't call it.
4346
4347 2015-07-28 Tom de Vries <tom@codesourcery.com>
4348
4349 * testsuite/libgomp.c/uns-outer-4.c: New test.
4350
4351 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
4352
4353 * testsuite/libgomp.c/pr66714.c: New test.
4354
4355 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
4356
4357 PR libgomp/66950
4358 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
4359 (fib_ref): New function.
4360 (fib): Correct corner cases in the recursion.
4361 (main): Replace the non-simd loop with fib_ref call.
4362 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
4363 subroutine.
4364 (fibonacci): Lower the parameter N to 30. Correct accordingly check
4365 for the last array element value. Replace the non-simd loop with
4366 fib_ref call. Remove redundant b_ref array. Remove the comparison
4367 of the last array element with according Fibonacci sequence element.
4368 (fib): Correct corner cases in the recursion.
4369
4370 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
4371
4372 * target.c (gomp_offload_image_to_device): Rename to ...
4373 (gomp_load_image_to_device): ... here.
4374 (GOMP_offload_register): Adjust call.
4375 (gomp_init_device): Likewise.
4376 (gomp_unload_image_from_device): New. Broken out of ...
4377 (GOMP_offload_unregister): ... here. Call it.
4378 (gomp_unload_device): New.
4379 * libgomp.h (gomp_unload_device): Declare.
4380 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
4381 mem maps.
4382
4383 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
4384
4385 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
4386 wait=-specific if.
4387 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
4388 !=0 condition.
4389 (goacc_waits): Move !num_waits handling to ...
4390 (GOACC_wait): ... here, the only caller that might have zero waits.
4391
4392 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
4393 (struct ptx_image_data): Move earlier, add fns field.
4394 (struct ptx_device): Add images and image_lock fields.
4395 (ptx_images, ptx_image_lock): Delete.
4396 (nvptx_open_device): Initialize images and image_lock fields.
4397 (nvptx_close_device): Destroy image_lock.
4398 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
4399 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
4400 fields.
4401
4402 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
4403
4404 * target.c (GOMP_offload_register): Use int for device type arg.
4405 (GOMP_offload_unregister): Likewise.
4406
4407 * target.c (struct_offload_image_descr): Constify host_table.
4408 (gomp_offload_image_to_device): Likewise.
4409 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
4410
4411 * libgomp.h (gomp_device_descr): Constify target data arguments.
4412 * target.c (struct offload_image_descr): Constify target_data.
4413 (gomp_offload_image_to_device): Likewise.
4414 (GOMP_offload_register): Likewise.
4415 (GOMP_offload_unrefister): Likewise.
4416 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
4417 GOMP_OFFLOAD_unload_image): Constify target data.
4418 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
4419 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
4420
4421 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
4422
4423 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
4424 Workaround driver library const error.
4425 (struct nvptx_tdata, nvptx_tdata_t): New.
4426 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
4427 type.
4428
4429 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
4430
4431 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
4432 of EPS parameter from integer to real.
4433 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
4434 type of EPS parameter from integer to real.
4435
4436 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
4437
4438 * team.c (get_last_team): New.
4439 (gomp_new_team): Recycle last non-nested team if possible.
4440 (gomp_team_end): Move team work share list free lock destruction
4441 to ...
4442 (free_team): ... here.
4443
4444 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
4445
4446 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
4447 and ref from int to double. Replaced their comparison with
4448 an inequality of their difference and EPS.
4449 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
4450 comparison of pri and a reference number with an inequality of their
4451 difference and EPS.
4452 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
4453 the comparison of sum and sum_ref with an inequality of their
4454 difference and EPS.
4455 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
4456 the comparison of pri and a reference number with an inequality of
4457 their difference and EPS.
4458
4459 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
4460
4461 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
4462 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
4463 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
4464 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
4465 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
4466 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
4467 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
4468 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
4469 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
4470 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
4471 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
4472 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
4473 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
4474 variables.
4475 (vec_mult): Likewise. Add #pragma omp taskwait.
4476 (main): Adjust caller.
4477 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
4478 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
4479 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
4480 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
4481 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
4482 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
4483 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
4484 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
4485 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
4486 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
4487 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
4488 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
4489 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
4490 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
4491 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
4492 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
4493 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
4494 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
4495 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
4496 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
4497 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
4498 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
4499 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
4500 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
4501 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
4502 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
4503 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
4504 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
4505 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
4506 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
4507 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
4508 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
4509 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
4510 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
4511 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
4512 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
4513 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
4514 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
4515 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
4516 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
4517 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
4518 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
4519 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
4520 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
4521 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
4522 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
4523 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
4524 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
4525 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
4526 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
4527 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
4528 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
4529 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
4530 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
4531 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
4532 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
4533 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
4534 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
4535 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
4536 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
4537 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
4538 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
4539 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
4540 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
4541 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
4542 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
4543 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
4544 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
4545 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
4546 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
4547 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
4548 (vec_mult): Add !$omp taskwait.
4549 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
4550 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
4551 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
4552 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
4553 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
4554 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
4555 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
4556 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
4557 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
4558 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
4559 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
4560 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
4561 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
4562 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
4563 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
4564 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
4565 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
4566 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
4567 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
4568 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
4569 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
4570 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
4571 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
4572 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
4573 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
4574 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
4575 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
4576 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
4577 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
4578 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
4579 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
4580 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
4581 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
4582 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
4583 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
4584 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
4585 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
4586 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
4587 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
4588 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
4589 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
4590 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
4591 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
4592 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
4593 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
4594 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
4595 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
4596 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
4597 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
4598 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
4599 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
4600 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
4601 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
4602 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
4603 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
4604 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
4605 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
4606 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
4607 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
4608 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
4609 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
4610 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
4611 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
4612 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
4613 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
4614 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
4615 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
4616
4617 2015-07-10 Tom de Vries <tom@codesourcery.com>
4618
4619 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
4620 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
4621
4622 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
4623
4624 PR libgomp/65099
4625 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
4626 in a 64-bit configuration.
4627 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
4628 offloading testing if no such device is available.
4629 * testsuite/libgomp.oacc-c/c.exp: Likewise.
4630 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4631
4632 2015-07-08 Tom de Vries <tom@codesourcery.com>
4633
4634 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
4635 second call to f.
4636 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
4637
4638 2015-07-07 Tom de Vries <tom@codesourcery.com>
4639
4640 PR tree-optimization/66642
4641 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
4642 iteration count case.
4643 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
4644 function, factor out of ...
4645 (main): ... here. Test low iteration count case.
4646
4647 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
4648
4649 * libgomp.h (gomp_thread_pool): Comment last_team field.
4650
4651 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
4652
4653 * testsuite/libgomp.c++/pr66702-1.C: Require
4654 vect_simd_clones effective target.
4655 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
4656
4657 2015-06-30 Tom de Vries <tom@codesourcery.com>
4658
4659 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
4660 already set. Use DEFAULT_CFLAGS in dg-runtest.
4661 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
4662 "-O2".
4663
4664 2015-06-30 Tom de Vries <tom@codesourcery.com>
4665
4666 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
4667 already set. Use DEFAULT_CFLAGS in dg-runtest.
4668 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
4669 * testsuite/libgomp.c++/pr64824.C: Same.
4670 * testsuite/libgomp.c++/pr64868.C: Same.
4671 * testsuite/libgomp.c++/pr66199-1.C: Same.
4672 * testsuite/libgomp.c++/pr66199-2.C: Same.
4673 * testsuite/libgomp.c++/target-2.C: Same.
4674 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
4675 -std=<standard> option.
4676 * testsuite/libgomp.c++/udr-11.C: Same.
4677 * testsuite/libgomp.c++/udr-12.C: Same.
4678 * testsuite/libgomp.c++/udr-13.C: Same.
4679 * testsuite/libgomp.c++/udr-14.C: Same.
4680 * testsuite/libgomp.c++/udr-15.C: Same.
4681 * testsuite/libgomp.c++/udr-16.C: Same.
4682 * testsuite/libgomp.c++/udr-17.C: Same.
4683 * testsuite/libgomp.c++/udr-18.C: Same.
4684 * testsuite/libgomp.c++/udr-19.C: Same.
4685 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
4686 * testsuite/libgomp.c++/simd-1.C: Same.
4687 * testsuite/libgomp.c++/simd-2.C: Same.
4688 * testsuite/libgomp.c++/simd-3.C: Same.
4689 * testsuite/libgomp.c++/simd-4.C: Same.
4690 * testsuite/libgomp.c++/simd-5.C: Same.
4691 * testsuite/libgomp.c++/simd-6.C: Same.
4692 * testsuite/libgomp.c++/simd-7.C: Same.
4693 * testsuite/libgomp.c++/simd-8.C: Same.
4694 * testsuite/libgomp.c++/simd-9.C: Same.
4695 * testsuite/libgomp.c++/simd10.C: Same.
4696 * testsuite/libgomp.c++/simd11.C: Same.
4697 * testsuite/libgomp.c++/simd12.C: Same.
4698 * testsuite/libgomp.c++/simd13.C: Same.
4699
4700 2015-06-30 Jakub Jelinek <jakub@redhat.com>
4701
4702 PR middle-end/66702
4703 * testsuite/libgomp.c++/pr66702-1.C: New test.
4704 * testsuite/libgomp.c++/pr66702-2.C: New test.
4705
4706 2015-06-30 Tom de Vries <tom@codesourcery.com>
4707
4708 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
4709 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
4710 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
4711 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
4712
4713 2015-06-30 Tom de Vries <tom@codesourcery.com>
4714
4715 PR tree-optimization/66652
4716 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
4717 using restrict pointers.
4718 (main): Add arguments to calls to f.
4719 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
4720
4721 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
4722
4723 * configure.ac: Fix check for header <sys/sysctl.h>.
4724 * configure: Regenerate.
4725 * config.h.in: Likewise.
4726
4727 2015-06-23 Tom de Vries <tom@codesourcery.com>
4728
4729 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
4730 abort.
4731 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
4732
4733 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
4734
4735 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
4736 acc_device_nvidia.
4737
4738 PR libgomp/66518
4739 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
4740 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
4741
4742 2015-06-15 Tom de Vries <tom@codesourcery.com>
4743
4744 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
4745 dg-additional-options for any remaining options.
4746 * testsuite/libgomp.c/atomic-2.c: Same.
4747 * testsuite/libgomp.c/atomic-4.c: Same.
4748 * testsuite/libgomp.c/atomic-5.c: Same.
4749 * testsuite/libgomp.c/atomic-6.c: Same.
4750 * testsuite/libgomp.c/autopar-1.c: Same.
4751 * testsuite/libgomp.c/copyin-1.c: Same.
4752 * testsuite/libgomp.c/copyin-2.c: Same.
4753 * testsuite/libgomp.c/copyin-3.c: Same.
4754 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
4755 * testsuite/libgomp.c/nestedfn-5.c: Same.
4756 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
4757 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
4758 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
4759 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
4760 * testsuite/libgomp.c/pr32362-1.c: Same.
4761 * testsuite/libgomp.c/pr32362-2.c: Same.
4762 * testsuite/libgomp.c/pr32362-3.c: Same.
4763 * testsuite/libgomp.c/pr39591-1.c: Same.
4764 * testsuite/libgomp.c/pr39591-2.c: Same.
4765 * testsuite/libgomp.c/pr39591-3.c: Same.
4766 * testsuite/libgomp.c/pr58392.c: Same.
4767 * testsuite/libgomp.c/pr58756.c: Same.
4768 * testsuite/libgomp.c/simd-1.c: Same.
4769 * testsuite/libgomp.c/simd-10.c: Same.
4770 * testsuite/libgomp.c/simd-11.c: Same.
4771 * testsuite/libgomp.c/simd-12.c: Same.
4772 * testsuite/libgomp.c/simd-13.c: Same.
4773 * testsuite/libgomp.c/simd-14.c: Same.
4774 * testsuite/libgomp.c/simd-15.c: Same.
4775 * testsuite/libgomp.c/simd-2.c: Same.
4776 * testsuite/libgomp.c/simd-3.c: Same.
4777 * testsuite/libgomp.c/simd-4.c: Same.
4778 * testsuite/libgomp.c/simd-5.c: Same.
4779 * testsuite/libgomp.c/simd-6.c: Same.
4780 * testsuite/libgomp.c/simd-7.c: Same.
4781 * testsuite/libgomp.c/simd-8.c: Same.
4782 * testsuite/libgomp.c/simd-9.c: Same.
4783
4784 2015-06-15 Tom de Vries <tom@codesourcery.com>
4785
4786 * testsuite/libgomp.c/pr35625.c: Fix typo.
4787
4788 2015-06-15 Tom de Vries <tom@codesourcery.com>
4789
4790 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
4791 in dg-options.
4792 * testsuite/libgomp.c/atomic-3.c: Same.
4793 * testsuite/libgomp.c/debug-1.c: Same.
4794 * testsuite/libgomp.c/nqueens-1.c: Same.
4795 * testsuite/libgomp.c/pr26171.c: Same.
4796 * testsuite/libgomp.c/pr48591.c: Same.
4797 * testsuite/libgomp.c/pr64824.c: Same.
4798 * testsuite/libgomp.c/pr64868.c: Same.
4799 * testsuite/libgomp.c/pr66133.c: Same.
4800 * testsuite/libgomp.c/pr66199-1.c: Same.
4801 * testsuite/libgomp.c/pr66199-2.c: Same.
4802 * testsuite/libgomp.c/target-8.c: Same.
4803
4804 2015-06-15 Tom de Vries <tom@codesourcery.com>
4805
4806 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
4807 -std={gnu99,c99}.
4808 * testsuite/libgomp.c/for-1.c: Same.
4809 * testsuite/libgomp.c/for-2.c: Same.
4810 * testsuite/libgomp.c/for-3.c: Same.
4811 * testsuite/libgomp.c/pr35625.c: Same.
4812 * testsuite/libgomp.c/pr39154.c: Same.
4813 * testsuite/libgomp.c/simd-16.c: Same.
4814 * testsuite/libgomp.c/simd-17.c: Same.
4815
4816 2015-06-13 Tom de Vries <tom@codesourcery.com>
4817
4818 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
4819
4820 2015-06-13 Tom de Vries <tom@codesourcery.com>
4821
4822 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
4823 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
4824 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
4825 (N): Define.
4826 (main): Use N instead of hardcoded constants.
4827
4828 2015-06-05 Tom de Vries <tom@codesourcery.com>
4829
4830 merge from gomp4 branch:
4831 2015-05-28 Tom de Vries <tom@codesourcery.com>
4832
4833 PR tree-optimization/65443
4834 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
4835 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
4836 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
4837
4838 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4839
4840 * testsuite/libgomp.graphite/bounds.c: Adjust for
4841 cleanup-tree-dump removal.
4842 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
4843 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
4844 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
4845 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
4846 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
4847 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
4848 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
4849 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
4850 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
4851 * testsuite/libgomp.graphite/pr41118.c: Likewise.
4852
4853 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
4854
4855 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
4856 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
4857 (futex_wake) [!__x86_64__]: Ditto.
4858
4859 2015-05-28 Julian Brown <julian@codesourcery.com>
4860
4861 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
4862 function comment. Only call gomp_fatal if new argument is true.
4863 (acc_dev_num_out_of_range): New function.
4864 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
4865 acc_dev_num_out_of_range as appropriate.
4866 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
4867 (acc_get_device_num, acc_set_device_num): Update calls to
4868 resolve_device.
4869 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
4870 output.
4871
4872 2015-05-28 Julian Brown <julian@codesourcery.com>
4873
4874 PR libgomp/65742
4875 * oacc-init.c (plugin/plugin-host.h): Include.
4876 (acc_on_device): Check whether we're in an offloaded region for
4877 host_nonshm
4878 plugin. Don't use __builtin_acc_on_device.
4879 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
4880 nonshm_exec flag in thread-local data.
4881 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
4882 data for host_nonshm plugin.
4883 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
4884 for host_nonshm plugin.
4885 * plugin/plugin-host.h: New.
4886
4887 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
4888
4889 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
4890
4891 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
4892
4893 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
4894 Declare as int.
4895 (FUTEX_PRIVATE_FLAG): Remove L suffix.
4896 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
4897 Declare as int.
4898
4899 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
4900
4901 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
4902
4903 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
4904
4905 * target.c (gomp_map_pointer): New function abstracting out
4906 GOMP_MAP_POINTER handling.
4907 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
4908 gomp_map_pointer().
4909
4910 2015-05-19 Jakub Jelinek <jakub@redhat.com>
4911
4912 PR middle-end/66199
4913 * testsuite/libgomp.c/pr66199-1.c: New test.
4914 * testsuite/libgomp.c/pr66199-2.c: New test.
4915 * testsuite/libgomp.c++/pr66199-1.C: New test.
4916 * testsuite/libgomp.c++/pr66199-2.C: New test.
4917 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
4918 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
4919
4920 2015-05-19 Julian Brown <julian@codesourcery.com>
4921
4922 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
4923 on cuInit failure.
4924
4925 2015-05-13 Jakub Jelinek <jakub@redhat.com>
4926
4927 PR middle-end/66133
4928 * testsuite/libgomp.c/pr66133.c: New test.
4929
4930 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
4931
4932 * Makefile.in: Regenerated with automake-1.11.6.
4933 * aclocal.m4: Likewise.
4934 * config.h.in: Likewise.
4935 * configure: Likewise.
4936 * testsuite/Makefile.in: Likewise.
4937
4938 2015-05-08 Jason Merrill <jason@redhat.com>
4939
4940 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
4941 _Complex.
4942
4943 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
4944
4945 2015-05-06 Julian Brown <julian@codesourcery.com>
4946
4947 * oacc-init.c (acc_device_lock): Add explanatory comment.
4948 (resolve_device): Add comment about locking requirement.
4949 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
4950 gomp_init_device and gomp_fini_device calls.
4951 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
4952 (acc_get_device_num, acc_set_device_num): Add locking around
4953 resolve_device and gomp_init_device calls.
4954
4955 2015-05-06 Julian Brown <julian@codesourcery.com>
4956
4957 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
4958 goacc_thread_lock on error paths.
4959 * oacc-mem.c (lookup_host): Remove locking from function. Note
4960 locking requirement for caller in function comment.
4961 (lookup_dev): Likewise.
4962 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
4963 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
4964 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
4965 Add locking.
4966
4967 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
4968
4969 PR testsuite/65205
4970 PR libgomp/65993
4971 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
4972 don't expect "0x" prefix for "%p" format specifier, don't expect
4973 "(nil)" for NULL pointer.
4974 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
4975 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
4976 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
4977 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
4978 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
4979 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
4980 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4981 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
4982 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
4983 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
4984 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
4985 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
4986 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
4987 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
4988 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
4989 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
4990 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
4991 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
4992 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
4993 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
4994 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
4995 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
4996 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
4997 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
4998 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
4999 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5000 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
5001 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5002 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
5003 accurately specify what we're looking for.
5004 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
5005 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
5006 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
5007 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
5008 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
5009
5010 2015-04-30 James Norris <jnorris@codesourcery.com>
5011
5012 PR testsuite/65205
5013 * testsuite/lib/libgomp.exp
5014 (check_effective_target_openacc_host_selected)
5015 (check_effective_target_openacc_host_nonshm_selected): New
5016 procedures.
5017 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
5018 dg-shouldfail.
5019 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
5020 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
5021 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5022 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5023 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5024 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
5025 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5026 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5027 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5028 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5029 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5030 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
5031 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
5032 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5033 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5034 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
5035 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5036 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5037 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
5038 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
5039 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
5040 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
5041 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
5042 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5043 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5044 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5045 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5046 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5047 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5048 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5049 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5050 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
5051 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5052 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
5053 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5054 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5055 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5056 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5057 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5058 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
5059 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
5060 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
5061 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
5062
5063 2015-04-08 Julian Brown <julian@codesourcery.com>
5064
5065 * libgomp.h (target_mem_desc: Remove mem_map field.
5066 (acc_dispatch_t): Remove open_device_func, close_device_func,
5067 get_device_num_func, set_device_num_func, target_data members.
5068 Change create_thread_data_func argument to device number instead of
5069 generic pointer.
5070 * oacc-async.c (assert.h): Include.
5071 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
5072 (acc_wait_all, acc_wait_all_async): Use current host thread's
5073 active device, not base_dev.
5074 * oacc-cuda.c (acc_get_current_cuda_device)
5075 (acc_get_current_cuda_context, acc_get_cuda_stream)
5076 (acc_set_cuda_stream): Likewise.
5077 * oacc-host.c (host_dispatch): Don't set open_device_func,
5078 close_device_func, get_device_num_func or set_device_num_func.
5079 * oacc-init.c (base_dev, init_key): Remove.
5080 (cached_base_dev): New.
5081 (name_of_acc_device_t): New.
5082 (acc_init_1): Initialise default-numbered device, not zeroth.
5083 (acc_shutdown_1): Close all devices of a given type.
5084 (goacc_destroy_thread): Don't use base_dev.
5085 (lazy_open, lazy_init, lazy_init_and_open): Remove.
5086 (goacc_attach_host_thread_to_device): New.
5087 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
5088 (acc_get_num_devices): Don't use base_dev.
5089 (acc_set_device_type): Reimplement.
5090 (acc_get_device_type): Don't use base_dev.
5091 (acc_get_device_num): Tweak logic.
5092 (acc_set_device_num): Likewise.
5093 (acc_on_device): Use acc_get_device_type.
5094 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
5095 (goacc_lazy_initialize): Reimplement with acc_init and
5096 goacc_attach_host_thread_to_device.
5097 * oacc-int.h (goacc_thread): Add base_dev field.
5098 (base_dev): Remove extern declaration.
5099 (goacc_attach_host_thread_to_device): Add prototype.
5100 * oacc-mem.c (acc_malloc): Use current thread's device instead of
5101 base_dev.
5102 (acc_free): Likewise.
5103 (acc_memcpy_to_device): Likewise.
5104 (acc_memcpy_from_device): Likewise.
5105 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
5106 goacc_lazy_initialize (throughout).
5107 (GOACC_parallel): Use tgt_offset to locate target functions.
5108 * target.c (gomp_map_vars): Don't set tgt->mem_map.
5109 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
5110 (gomp_load_plugin_for_device): Remove open_device, close_device,
5111 get_device_num, set_device_num openacc hook initialisation. Don't set
5112 openacc.target_data.
5113 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
5114 (GOMP_OFFLOAD_openacc_close_device)
5115 (GOMP_OFFLOAD_openacc_get_device_num)
5116 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
5117 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
5118 to int.
5119 * plugin/plugin-nvptx.c (ptx_inited): Remove.
5120 (instantiated_devices, ptx_dev_lock): New.
5121 (struct ptx_image_data): New.
5122 (ptx_devices, ptx_images, ptx_image_lock): New.
5123 (fini_streams_for_device): Reorder cuStreamDestroy call.
5124 (nvptx_get_num_devices): Remove forward declaration.
5125 (nvptx_init): Change return type to bool.
5126 (nvptx_fini): Remove.
5127 (nvptx_attach_host_thread_to_device): New.
5128 (nvptx_open_device): Return struct ptx_device* instead of void*.
5129 (nvptx_close_device): Change argument type to struct ptx_device*,
5130 return type to void.
5131 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
5132 (kernel_target_data, kernel_host_table): Remove static globals.
5133 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
5134 (GOMP_OFFLOAD_init_device): Reimplement.
5135 (GOMP_OFFLOAD_fini_device): Likewise.
5136 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
5137 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
5138 (GOMP_OFFLOAD_host2dev): Use ORD argument.
5139 (GOMP_OFFLOAD_openacc_open_device)
5140 (GOMP_OFFLOAD_openacc_close_device)
5141 (GOMP_OFFLOAD_openacc_set_device_num)
5142 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
5143 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
5144 (device number).
5145
5146 testsuite/
5147 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
5148
5149 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
5150
5151 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
5152 * libgomp.h (struct gomp_memory_mapping): Remove.
5153 (struct target_mem_desc): Change type of mem_map from
5154 gomp_memory_mapping * to splay_tree_s *.
5155 (struct gomp_device_descr): Remove register_image_func, get_table_func.
5156 Add load_image_func, unload_image_func.
5157 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
5158 Remove offload_regions_registered.
5159 (gomp_init_tables): Remove.
5160 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
5161 to splay_tree_s *.
5162 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
5163 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
5164 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
5165 offload_regions_registered.
5166 Initialize load_image_func, unload_image_func, mem_map.root.
5167 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
5168 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
5169 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
5170 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
5171 gomp_memory_mapping *. Use dev's lock and splay_tree.
5172 (lookup_dev): Use dev's lock.
5173 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
5174 (acc_is_present): Likewise.
5175 (acc_map_data): Likewise.
5176 (acc_unmap_data): Likewise. Use dev's lock.
5177 (present_create_copy): Likewise.
5178 (delete_copyout): Pass dev to lookup_host instead of mem_map.
5179 (update_dev_host): Likewise.
5180 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
5181 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
5182 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
5183 (GOMP_OFFLOAD_get_table): Remove
5184 (GOMP_OFFLOAD_load_image): New function.
5185 (GOMP_OFFLOAD_unload_image): New function.
5186 * target.c (register_lock): New mutex for offload image registration.
5187 (num_devices): Do not guard with PLUGIN_SUPPORT.
5188 (gomp_realloc_unlock): New static function.
5189 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
5190 before gomp_fatal.
5191 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
5192 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
5193 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
5194 mem_map's.
5195 (gomp_unmap_vars): Likewise.
5196 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
5197 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
5198 (gomp_offload_image_to_device): New static function.
5199 (GOMP_offload_register): Add mutex lock.
5200 Call gomp_offload_image_to_device for all initialized devices.
5201 Replace gomp_realloc with gomp_realloc_unlock.
5202 (GOMP_offload_unregister): New function.
5203 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
5204 get_table_func from the plugin with calls to init_device_func and
5205 gomp_offload_image_to_device.
5206 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
5207 to splay_tree_s *.
5208 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
5209 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
5210 (GOMP_target_data): Do not call gomp_init_tables.
5211 (GOMP_target_update): Likewise. Remove argument from gomp_update.
5212 (gomp_load_plugin_for_device): Replace register_image and get_table
5213 with load_image and unload_image in DLSYM ().
5214 (gomp_register_images_for_device): Remove function.
5215 (gomp_target_init): Do not initialize current_device.mem_map.*,
5216 current_device.offload_regions_registered.
5217 Remove call to gomp_register_images_for_device.
5218 Do not free offload_images and num_offload_images.
5219
5220 2015-03-30 Jakub Jelinek <jakub@redhat.com>
5221
5222 PR fortran/65597
5223 * testsuite/libgomp.fortran/pr65597.f90: New test.
5224
5225 2015-03-27 Tom de Vries <tom@codesourcery.com>
5226
5227 PR testsuite/65594
5228 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
5229 (init, check): New function.
5230 (foo): Change return type to void.
5231 (main): Call init and check.
5232
5233 2015-03-27 Tom de Vries <tom@codesourcery.com>
5234
5235 PR testsuite/65594
5236 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
5237 (foo): Use M for non-inner loops to scale down test-case.
5238
5239 2015-03-25 Kai Tietz <ktietz@redhat.com>
5240
5241 PR libgomp/64972
5242 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
5243 (GOACC_data_start): Likewise.
5244 * target.c (gomp_map_vars): Likewise.
5245
5246 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
5247
5248 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
5249 hppa*-*-hpux*.
5250
5251 2015-03-19 Jakub Jelinek <jakub@redhat.com>
5252
5253 * testsuite/libgomp.c/target-10.c: New test.
5254 * testsuite/libgomp.c++/target-4.C: New test.
5255
5256 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
5257
5258 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
5259 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
5260
5261 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
5262
5263 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
5264 * configure.ac (*-*-rtems*): Assume Pthread is supported.
5265 (pthread.h): Check for this header file.
5266 * configure: Regenerate.
5267
5268 2015-02-25 Tom de Vries <tom@codesourcery.com>
5269
5270 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
5271 (check_reduction_op, check_reduction_macro, max, min):
5272 Declare.
5273 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
5274 function.
5275 (main): Use new functions.
5276
5277 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
5278
5279 * target.c (gomp_load_plugin_for_device): Use const char * instead of
5280 char * for variables holding dlerror return values.
5281 (DLSYM_OPT): Ditto.
5282
5283 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
5284
5285 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
5286
5287 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
5288 Cesar Philippidis <cesar@codesourcery.com>
5289
5290 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
5291 GOACC_ctaid, and GOACC_nctaid routines.
5292
5293 2015-02-11 Jakub Jelinek <jakub@redhat.com>
5294
5295 PR c/64824
5296 * testsuite/libgomp.c/atomic-18.c: New test.
5297 * testsuite/libgomp.c++/atomic-16.C: New test.
5298
5299 2015-02-04 Jakub Jelinek <jakub@redhat.com>
5300
5301 PR c/64824
5302 PR c/64868
5303 * testsuite/libgomp.c/pr64824.c: New test.
5304 * testsuite/libgomp.c/pr64868.c: New test.
5305 * testsuite/libgomp.c++/pr64824.C: New test.
5306 * testsuite/libgomp.c++/pr64868.C: New test.
5307
5308 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
5309
5310 PR libgomp/64635
5311 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
5312 Link with -lpthread.
5313 * config/aix/plugin-suffix.h: Delete.
5314
5315 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
5316
5317 PR libgomp/64635
5318 * configure.tgt (*-*-aix*): Use config_path "aix posix".
5319 (*-*-darwin*): Use config_path "bsd darwin posix".
5320 (*-*-hpux*): Use config_path "hpux posix".
5321 * target.c: Add include of plugin-suffix.h and use
5322 SONAME_SUFFIX macro.
5323 * config/aix/plugin-suffix.h: New file.
5324 * config/darwin/plugin-suffix.h: New file.
5325 * config/hpux/plugin-suffix.h: New file.
5326 * config/posix/plugin-suffix.h: New file.
5327
5328 2015-01-23 Jakub Jelinek <jakub@redhat.com>
5329
5330 PR middle-end/64734
5331 * libgomp.c/pr64734.c: New test.
5332
5333 2015-01-23 Tom de Vries <tom@codesourcery.com>
5334
5335 PR libgomp/64672
5336 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
5337
5338 2015-01-23 Tom de Vries <tom@codesourcery.com>
5339
5340 PR libgomp/64707
5341 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
5342 dg-options.
5343
5344 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
5345
5346 PR libgomp/64625
5347 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
5348 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
5349 formal parameter. Update all users.
5350 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
5351 Document unused formal parameter.
5352
5353 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
5354
5355 * oacc-parallel.c: Don't include <alloca.h>.
5356 (GOACC_parallel): Use gomp_alloca instead of alloca.
5357
5358 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
5359
5360 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
5361
5362 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
5363 James Norris <jnorris@codesourcery.com>
5364 Tom de Vries <tom@codesourcery.com>
5365 Julian Brown <julian@codesourcery.com>
5366 Cesar Philippidis <cesar@codesourcery.com>
5367 Nathan Sidwell <nathan@codesourcery.com>
5368 Tobias Burnus <burnus@net-b.de>
5369
5370 * Makefile.am (search_path): Add $(top_srcdir)/../include.
5371 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
5372 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
5373 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
5374 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
5375 Include $(top_srcdir)/plugin/Makefrag.am.
5376 (nodist_libsubinclude_HEADERS): Add openacc.h.
5377 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
5378 openacc.f90, openacc.mod, openacc_kinds.mod.
5379 (omp_lib.mod): Generalize into...
5380 (%.mod): ... this new rule.
5381 (openacc_kinds.mod, openacc.mod): New rules.
5382 * plugin/configfrag.ac: New file.
5383 * configure.ac: Move plugin/offloading support into it. Include
5384 it. Instantiate testsuite/libgomp-test-support.pt.exp.
5385 * plugin/Makefrag.am: New file.
5386 * testsuite/Makefile.am (OFFLOAD_TARGETS)
5387 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
5388 export.
5389 (libgomp-test-support.exp): New rule.
5390 (all-local): Depend on it.
5391 * Makefile.in: Regenerate.
5392 * testsuite/Makefile.in: Regenerate.
5393 * config.h.in: Likewise.
5394 * configure: Likewise.
5395 * configure.tgt: Harden shell syntax.
5396 * env.c: Include "oacc-int.h".
5397 (parse_acc_device_type): New function.
5398 (gomp_debug_var, goacc_device_type, goacc_device_num): New
5399 variables.
5400 (initialize_env): Initialize those. Call
5401 goacc_runtime_initialize.
5402 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
5403 (gomp_fatal): Call gomp_vfatal.
5404 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
5405 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
5406 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
5407 (splay_tree_node, splay_tree, splay_tree_key)
5408 (struct target_mem_desc, struct splay_tree_key_s)
5409 (struct gomp_memory_mapping, struct acc_dispatch_t)
5410 (struct gomp_device_descr, gomp_acc_insert_pointer)
5411 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
5412 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
5413 (gomp_free_memmap, gomp_fini_device): New declarations.
5414 (gomp_vdebug, gomp_debug): New macros.
5415 Include "splay-tree.h".
5416 * libgomp.map (OACC_2.0): New symbol version. Use for
5417 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
5418 acc_set_device_type_h_, acc_get_device_type,
5419 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
5420 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
5421 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
5422 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
5423 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
5424 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
5425 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
5426 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
5427 acc_copyin_array_h_, acc_present_or_copyin,
5428 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
5429 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
5430 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
5431 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
5432 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
5433 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
5434 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
5435 acc_update_device, acc_update_device_32_h_,
5436 acc_update_device_64_h_, acc_update_device_array_h_,
5437 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
5438 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
5439 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
5440 acc_is_present_64_h_, acc_is_present_array_h_,
5441 acc_memcpy_to_device, acc_memcpy_from_device,
5442 acc_get_current_cuda_device, acc_get_current_cuda_context,
5443 acc_get_cuda_stream, acc_set_cuda_stream.
5444 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
5445 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
5446 GOACC_update, GOACC_wait, GOACC_get_thread_num,
5447 GOACC_get_num_threads.
5448 (GOMP_PLUGIN_1.0): New symbol version. Use for
5449 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
5450 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
5451 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
5452 GOMP_PLUGIN_acc_thread.
5453 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
5454 environment variable.
5455 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
5456 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
5457 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
5458 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
5459 (splay_tree_remove): New declarations.
5460 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
5461 (splay_tree_remove, splay_tree_lookup): Move into...
5462 * splay-tree.c: ... this new file.
5463 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
5464 (splay_tree_node, splay_tree, splay_tree_key)
5465 (struct target_mem_desc, struct splay_tree_key_s)
5466 (struct gomp_device_descr): Don't declare.
5467 (num_devices_openmp): New variable.
5468 (gomp_get_num_devices ): Use it.
5469 (gomp_init_targets_once): New function.
5470 (gomp_get_num_devices ): Use it.
5471 (get_kind, gomp_copy_from_async, gomp_free_memmap)
5472 (gomp_fini_device, gomp_register_image_for_device): New functions.
5473 (gomp_map_vars): Add devaddrs parameter.
5474 (gomp_update): Add mm parameter.
5475 (gomp_init_device): Move most of it into...
5476 (gomp_init_tables): ... this new function.
5477 (gomp_register_images_for_device): Remove function.
5478 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
5479 Make them hidden instead of static.
5480 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
5481 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
5482 (GOMP_target_end_data, GOMP_target_update)
5483 (gomp_load_plugin_for_device, gomp_target_init): Update for
5484 OpenACC changes.
5485 * oacc-async.c: New file.
5486 * oacc-cuda.c: Likewise.
5487 * oacc-host.c: Likewise.
5488 * oacc-init.c: Likewise.
5489 * oacc-int.h: Likewise.
5490 * oacc-mem.c: Likewise.
5491 * oacc-parallel.c: Likewise.
5492 * oacc-plugin.c: Likewise.
5493 * oacc-plugin.h: Likewise.
5494 * oacc-ptx.h: Likewise.
5495 * openacc.f90: Likewise.
5496 * openacc.h: Likewise.
5497 * openacc_lib.h: Likewise.
5498 * plugin/plugin-host.c: Likewise.
5499 * plugin/plugin-nvptx.c: Likewise.
5500 * libgomp-plugin.c: Likewise.
5501 * libgomp-plugin.h: Likewise.
5502 * libgomp_target.h: Remove file after merging content into the
5503 former file. Update all users.
5504 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
5505 (offload_targets_s, offload_targets_s_openacc): New variables.
5506 (check_effective_target_openacc_nvidia_accel_present)
5507 (check_effective_target_openacc_nvidia_accel_selected): New
5508 procedures.
5509 (libgomp_init): Update for OpenACC changes.
5510 * testsuite/libgomp-test-support.exp.in: New file.
5511 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
5512 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5513 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5514 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
5515 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
5516 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
5517 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
5518 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
5519 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
5520 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
5521 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
5522 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
5523 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
5524 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
5525 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
5526 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
5527 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
5528 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
5529 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
5530 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
5531 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
5532 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5533 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5534 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
5535 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
5536 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
5537 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
5538 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
5539 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
5540 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
5541 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
5542 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
5543 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
5544 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
5545 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
5546 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
5547 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
5548 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
5549 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
5550 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
5551 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5552 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5553 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5554 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5555 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5556 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
5557 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
5558 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5559 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5560 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5561 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5562 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5563 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5564 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
5565 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
5566 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5567 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5568 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
5569 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5570 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
5571 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
5572 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
5573 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5574 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
5575 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
5576 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
5577 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
5578 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
5579 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
5580 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
5581 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
5582 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5583 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5584 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5585 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
5586 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
5587 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5588 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5589 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
5590 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
5591 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
5592 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
5593 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5594 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5595 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5596 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
5597 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
5598 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
5599 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5600 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
5601 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
5602 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
5603 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
5604 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
5605 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5606 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5607 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5608 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
5609 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5610 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5611 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
5612 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
5613 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
5614 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
5615 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
5616 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
5617 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
5618 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
5619 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
5620 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
5621 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
5622 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5623 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
5624 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
5625 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
5626 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
5627 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
5628 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5629 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
5630 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
5631 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
5632 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
5633 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
5634 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
5635 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
5636 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
5637 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
5638 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
5639 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
5640 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
5641 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
5642 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
5643 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
5644 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
5645 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
5646 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5647 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5648 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5649 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5650 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
5651 Likewise.
5652 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
5653 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
5654 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
5655 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
5656 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
5657 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
5658 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
5659 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5660 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5661 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5662 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
5663 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
5664 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
5665 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
5666 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
5667 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
5668 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
5669 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
5670 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
5671 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
5672 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
5673 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
5674 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
5675 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
5676 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
5677 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
5678 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
5679 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
5680 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
5681 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
5682 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
5683 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
5684 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
5685 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
5686 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
5687 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
5688 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
5689 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
5690 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
5691 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
5692 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
5693 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
5694 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
5695 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
5696 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
5697 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
5698 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
5699 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
5700 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5701 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
5702 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
5703 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
5704 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5705 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5706 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
5707 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
5708 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
5709 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
5710 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
5711 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
5712
5713 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
5714 Julian Brown <julian@codesourcery.com>
5715 David Malcolm <dmalcolm@redhat.com>
5716
5717 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
5718 to "GNU Offloading and Multi Processing Runtime Library". Change
5719 all users.
5720 * configure: Regenerate.
5721 * libgomp.texi: Update.
5722
5723 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
5724
5725 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
5726 "$tgt_dir/lib32".
5727 * configure: Regenerate.
5728
5729 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
5730 "intelmic" in $offload_targets.
5731
5732 2015-01-05 Jakub Jelinek <jakub@redhat.com>
5733
5734 Update copyright years.
5735
5736 * libgomp.texi: Bump @copying's copyright year.
5737
5738 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5739
5740 * testsuite/lib/libgomp.exp: Load target-utils.exp.
5741 Move load of target-supportes.exp earlier.
5742
5743 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
5744
5745 * testsuite/libgomp.c/target-9.c: New test.
5746
5747 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
5748
5749 * config.h.in: Regenerate.
5750 * configure: Regenerate.
5751 * configure.ac: Add GCC_CHECK_EMUTLS.
5752 * libgomp.h: Add check for USE_EMUTLS: this case
5753 is equal to HAVE_TLS.
5754 * team.c: Likewise.
5755
5756 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
5757
5758 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
5759
5760 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
5761 Ilya Verbin <ilya.verbin@intel.com>
5762
5763 * testsuite/libgomp.c/target-critical-1.c: New test.
5764
5765 2014-11-26 Jakub Jelinek <jakub@redhat.com>
5766
5767 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
5768 to dg-options unless expensive testing is on.
5769 (TESTITERS): Define to N if not defined.
5770 (main): Use TESTITERS instead of N.
5771 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
5772 dg-additional-options depending on whether expensive testing is on.
5773 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
5774 Decrease N to 100000 and CHUNKSZ to 10000.
5775
5776 2014-11-24 Jakub Jelinek <jakub@redhat.com>
5777
5778 PR fortran/63938
5779 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
5780 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
5781
5782 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
5783
5784 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
5785
5786 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
5787
5788 PR bootstrap/63784
5789 * configure: Regenerated.
5790
5791 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
5792
5793 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
5794 vect_simd_clones effective target.
5795 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
5796
5797 2014-11-14 Jakub Jelinek <jakub@redhat.com>
5798
5799 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
5800 of 32 as block_size.
5801 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
5802 instead of 32 as block_size.
5803
5804 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
5805 Ilya Verbin <ilya.verbin@intel.com>
5806
5807 * Makefile.in: Regenerate.
5808 * configure: Regenerate.
5809 * configure.ac: Set up offload_additional_options,
5810 offload_additional_lib_paths and offload_targets.
5811 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
5812 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
5813 * testsuite/Makefile.in: Regenerate.
5814 * testsuite/lib/libgomp.exp (libgomp_init): Append
5815 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
5816 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
5817 build directory to LD_LIBRARY_PATH for intelmic offload targets.
5818
5819 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
5820 Ilya Verbin <ilya.verbin@intel.com>
5821 Kirill Yukhin <kirill.yukhin@intel.com>
5822 Ilya Tocar <ilya.tocar@intel.com>
5823
5824 * testsuite/lib/libgomp.exp
5825 (check_effective_target_offload_device): New.
5826 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
5827 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
5828 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
5829 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
5830 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
5831 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
5832 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
5833 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
5834 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
5835 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
5836 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
5837 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
5838 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
5839 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
5840 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
5841 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
5842 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
5843 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
5844 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
5845 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
5846 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
5847 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
5848 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
5849 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
5850 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
5851 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
5852 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
5853 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
5854 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
5855 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
5856 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
5857 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
5858 * testsuite/libgomp.c/target-7.c: Fix test.
5859 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
5860 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
5861 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
5862 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
5863 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
5864 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
5865 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
5866 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
5867 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
5868 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
5869 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
5870 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
5871 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
5872 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
5873 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
5874 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
5875 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
5876 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
5877 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
5878 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
5879 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
5880 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
5881 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
5882 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
5883 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
5884 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
5885 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
5886 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
5887 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
5888 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
5889 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
5890
5891 2014-11-13 Jakub Jelinek <jakub@redhat.com>
5892 Ilya Verbin <ilya.verbin@intel.com>
5893 Thomas Schwinge <thomas@codesourcery.com>
5894 Andrey Turetskiy <andrey.turetskiy@intel.com>
5895
5896 * libgomp.map (GOMP_4.0.1): New symbol version.
5897 Add GOMP_offload_register.
5898 * libgomp_target.h: New file.
5899 * splay-tree.h: New file.
5900 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
5901 (gomp_target_init): New forward declaration.
5902 (gomp_is_initialized): New static variable.
5903 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
5904 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
5905 New structures.
5906 (offload_images, num_offload_images, devices, num_devices): New static
5907 variables.
5908 (splay_compare): New static function.
5909 (struct gomp_device_descr): New structure.
5910 (gomp_get_num_devices): Call gomp_target_init.
5911 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
5912 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
5913 (GOMP_offload_register): New function.
5914 (GOMP_target): Arrange for host callback to be performed in a separate
5915 initial thread and contention group, inheriting ICVs from
5916 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
5917 Add device initialization and lookup for target function in splay tree.
5918 (GOMP_target_data): Add device initialization and call gomp_map_vars.
5919 (GOMP_target_end_data): Call gomp_unmap_vars.
5920 (GOMP_target_update): Add device initialization and call gomp_update.
5921 (gomp_load_plugin_for_device, gomp_register_images_for_device)
5922 (gomp_target_init): New static functions.
5923
5924 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
5925 Thomas Schwinge <thomas@codesourcery.com>
5926 Ilya Verbin <ilya.verbin@intel.com>
5927 Andrey Turetskiy <andrey.turetskiy@intel.com>
5928
5929 * config.h.in: Regenerate.
5930 * configure: Regenerate.
5931 * configure.ac: Check for libdl, required for plugin support.
5932 (PLUGIN_SUPPORT): Define if plugins are supported.
5933 (enable_offload_targets): Support Intel MIC targets.
5934 (OFFLOAD_TARGETS): List of target names suitable for offloading.
5935
5936 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5937
5938 PR target/63610
5939 * configure: Regenerate.
5940
5941 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5942
5943 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
5944
5945 2014-10-06 Marek Polacek <polacek@redhat.com>
5946
5947 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
5948 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
5949 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
5950 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
5951
5952 2014-10-06 Marek Polacek <polacek@redhat.com>
5953
5954 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
5955 * testsuite/libgomp.c/nqueens-1.c: Likewise.
5956 * testsuite/libgomp.c/pr26943-3.c: Likewise.
5957 * testsuite/libgomp.c/pr26943-4.c: Likewise.
5958 * testsuite/libgomp.c/pr36802-2.c: Likewise.
5959 * testsuite/libgomp.c/pr36802-3.c: Likewise.
5960 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
5961 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
5962 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
5963 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
5964 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
5965 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
5966 * testsuite/libgomp.c/omp-single-1.c: Likewise.
5967 * testsuite/libgomp.c/omp-single-2.c: Likewise.
5968 * testsuite/libgomp.c/omp_matvec.c: Likewise.
5969 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
5970 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
5971 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
5972 declarations.
5973
5974 2014-10-03 Jakub Jelinek <jakub@redhat.com>
5975
5976 PR libgomp/61200
5977 * testsuite/libgomp.c/pr61200.c: New test.
5978
5979 2014-09-18 Jakub Jelinek <jakub@redhat.com>
5980
5981 PR c++/63248
5982 * testsuite/libgomp.c++/pr63248.C: New test.
5983
5984 2014-08-04 Jakub Jelinek <jakub@redhat.com>
5985
5986 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
5987 is not zero, but taskgroup->children is NULL and there are
5988 any task->children, schedule those instead of waiting.
5989 * testsuite/libgomp.c/depend-6.c: New test.
5990 * testsuite/libgomp.c/depend-7.c: New test.
5991 * testsuite/libgomp.c/depend-8.c: New test.
5992 * testsuite/libgomp.c/depend-9.c: New test.
5993 * testsuite/libgomp.c/depend-10.c: New test.
5994
5995 2014-08-01 Jakub Jelinek <jakub@redhat.com>
5996
5997 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
5998 (struct gomp_taskwait): New type.
5999 (struct gomp_task): Add taskwait and parent_depends_on, remove
6000 in_taskwait and taskwait_sem fields.
6001 (gomp_finish_task): Don't destroy taskwait_sem.
6002 * task.c (gomp_init_task): Don't init in_taskwait, instead init
6003 taskwait and parent_depends_on.
6004 (GOMP_task): For if (0) tasks with depend clause that depend on
6005 earlier tasks don't defer them, instead call
6006 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
6007 Initialize redundant_out field, for redundant out entries just
6008 move them at the end of linked list instead of removing them
6009 completely, and set redundant_out flag instead of redundant.
6010 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
6011 that task.
6012 (gomp_task_run_post_handle_dependers): If parent is in
6013 gomp_task_maybe_wait_for_dependencies and newly runnable task
6014 is not parent_depends_on, queue it in parent->children linked
6015 list after all runnable tasks with parent_depends_on set.
6016 Adjust for addition of taskwait indirection.
6017 (gomp_task_run_post_remove_parent): If parent is in
6018 gomp_task_maybe_wait_for_dependencies and task to be removed
6019 is parent_depends_on, decrement n_depend and if needed awake
6020 parent. Adjust for addition of taskwait indirection.
6021 (GOMP_taskwait): Adjust for addition of taskwait indirection.
6022 (gomp_task_maybe_wait_for_dependencies): New function.
6023 * testsuite/libgomp.c/depend-5.c: New test.
6024
6025 2014-07-13 Tobias Burnus <burnus@net-b.de>
6026
6027 * testsuite/libgomp.fortran/pr34020.f90: Make compile
6028 with TS 18508/Fortran 2015.
6029
6030 2014-07-06 Marek Polacek <polacek@redhat.com>
6031
6032 PR c/6940
6033 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
6034
6035 2014-07-03 Jakub Jelinek <jakub@redhat.com>
6036
6037 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
6038 matches regex $lang_source_re, add $lang_include_flags to options.
6039 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
6040 * testsuite/libgomp.c++/c++.exp: Likewise.
6041 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
6042 and lang_include_flags instead of adding -fintrinsic-modules-path= to
6043 ALWAYS_CFLAGS.
6044 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
6045
6046 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
6047
6048 * testsuite/libgomp.fortran/fortran.exp: Explain
6049 gfortran-dg-runtest usage.
6050
6051 2014-06-25 Jakub Jelinek <jakub@redhat.com>
6052
6053 * testsuite/libgomp.fortran/simd5.f90: New test.
6054 * testsuite/libgomp.fortran/simd6.f90: New test.
6055 * testsuite/libgomp.fortran/simd7.f90: New test.
6056
6057 2014-06-24 Jakub Jelinek <jakub@redhat.com>
6058
6059 * testsuite/libgomp.c/for-2.c: Define SC to static for
6060 #pragma omp for simd testing.
6061 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
6062 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
6063 SC macro.
6064 * testsuite/libgomp.c/simd-14.c: New test.
6065 * testsuite/libgomp.c/simd-15.c: New test.
6066 * testsuite/libgomp.c/simd-16.c: New test.
6067 * testsuite/libgomp.c/simd-17.c: New test.
6068 * testsuite/libgomp.c++/for-10.C: Define SC to static for
6069 #pragma omp for simd testing.
6070 * testsuite/libgomp.c++/simd10.C: New test.
6071 * testsuite/libgomp.c++/simd11.C: New test.
6072 * testsuite/libgomp.c++/simd12.C: New test.
6073 * testsuite/libgomp.c++/simd13.C: New test.
6074
6075 * testsuite/libgomp.fortran/aligned1.f03: New test.
6076 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
6077 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
6078 tasks with !$omp parallel !$omp single.
6079 * testsuite/libgomp.fortran/target8.f90: New test.
6080 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
6081 not to use trim in the combiner, instead call elemental function.
6082 (fn): New elemental function.
6083 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
6084 Make elemental.
6085 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
6086 omp_in): Likewise.
6087 * testsuite/libgomp.fortran/udr12.f90: New test.
6088 * testsuite/libgomp.fortran/udr13.f90: New test.
6089 * testsuite/libgomp.fortran/udr14.f90: New test.
6090 * testsuite/libgomp.fortran/udr15.f90: New test.
6091
6092 2014-06-18 Jakub Jelinek <jakub@redhat.com>
6093
6094 * omp_lib.f90.in (openmp_version): Set to 201307.
6095 * omp_lib.h.in (openmp_version): Likewise.
6096 * testsuite/libgomp.c/target-8.c: New test.
6097 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
6098 and inbranch clauses.
6099 * testsuite/libgomp.fortran/depend-3.f90: New test.
6100 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
6101 openmp_version.
6102 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
6103 * testsuite/libgomp.fortran/target1.f90: New test.
6104 * testsuite/libgomp.fortran/target2.f90: New test.
6105 * testsuite/libgomp.fortran/target3.f90: New test.
6106 * testsuite/libgomp.fortran/target4.f90: New test.
6107 * testsuite/libgomp.fortran/target5.f90: New test.
6108 * testsuite/libgomp.fortran/target6.f90: New test.
6109 * testsuite/libgomp.fortran/target7.f90: New test.
6110
6111 2014-06-10 Jakub Jelinek <jakub@redhat.com>
6112
6113 PR fortran/60928
6114 * testsuite/libgomp.fortran/allocatable9.f90: New test.
6115 * testsuite/libgomp.fortran/allocatable10.f90: New test.
6116 * testsuite/libgomp.fortran/allocatable11.f90: New test.
6117 * testsuite/libgomp.fortran/allocatable12.f90: New test.
6118 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
6119 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
6120 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
6121 * testsuite/libgomp.fortran/associate1.f90: New test.
6122 * testsuite/libgomp.fortran/associate2.f90: New test.
6123 * testsuite/libgomp.fortran/procptr1.f90: New test.
6124
6125 2014-06-06 Jakub Jelinek <jakub@redhat.com>
6126
6127 * testsuite/libgomp.fortran/simd1.f90: New test.
6128 * testsuite/libgomp.fortran/udr1.f90: New test.
6129 * testsuite/libgomp.fortran/udr2.f90: New test.
6130 * testsuite/libgomp.fortran/udr3.f90: New test.
6131 * testsuite/libgomp.fortran/udr4.f90: New test.
6132 * testsuite/libgomp.fortran/udr5.f90: New test.
6133 * testsuite/libgomp.fortran/udr6.f90: New test.
6134 * testsuite/libgomp.fortran/udr7.f90: New test.
6135 * testsuite/libgomp.fortran/udr8.f90: New test.
6136 * testsuite/libgomp.fortran/udr9.f90: New test.
6137 * testsuite/libgomp.fortran/udr10.f90: New test.
6138 * testsuite/libgomp.fortran/udr11.f90: New test.
6139
6140 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
6141
6142 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
6143 vect_simd_clones effective target.
6144 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
6145
6146 2014-05-21 Jakub Jelinek <jakub@redhat.com>
6147
6148 PR middle-end/61252
6149 * testsuite/libgomp.c++/simd-9.C: New test.
6150
6151 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
6152
6153 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
6154 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
6155 texts according to their @menu entry positions.
6156
6157 2014-05-11 Jakub Jelinek <jakub@redhat.com>
6158
6159 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
6160 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
6161 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
6162 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
6163 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
6164 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
6165 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
6166 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
6167 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
6168 * testsuite/libgomp.fortran/depend-1.f90: New test.
6169 * testsuite/libgomp.fortran/depend-2.f90: New test.
6170 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
6171 * testsuite/libgomp.fortran/simd1.f90: New test.
6172 * testsuite/libgomp.fortran/simd2.f90: New test.
6173 * testsuite/libgomp.fortran/simd3.f90: New test.
6174 * testsuite/libgomp.fortran/simd4.f90: New test.
6175 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
6176
6177 2014-05-02 Jakub Jelinek <jakub@redhat.com>
6178
6179 * testsuite/libgomp.c/simd-10.c: New test.
6180 * testsuite/libgomp.c/simd-11.c: New test.
6181 * testsuite/libgomp.c/simd-12.c: New test.
6182 * testsuite/libgomp.c/simd-13.c: New test.
6183
6184 2014-04-24 Jakub Jelinek <jakub@redhat.com>
6185
6186 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
6187 atomic type clauses in any order and optional comma in between.
6188 * testsuite/libgomp.c++/atomic-15.C: Likewise.
6189 * testsuite/libgomp.c/atomic-17.c: Likewise.
6190
6191 * testsuite/libgomp.c/simd-7.c: New test.
6192 * testsuite/libgomp.c/simd-8.c: New test.
6193 * testsuite/libgomp.c/simd-9.c: New test.
6194 * testsuite/libgomp.c/loop-16.c: New test.
6195
6196 2014-04-02 Richard Henderson <rth@redhat.com>
6197
6198 * config/linux/futex.h (futex_wait): Get error value from errno.
6199 (futex_wake): Likewise.
6200
6201 2014-03-25 Jakub Jelinek <jakub@redhat.com>
6202
6203 PR c++/60331
6204 * testsuite/libgomp.c++/udr-11.C: New test.
6205 * testsuite/libgomp.c++/udr-12.C: New test.
6206 * testsuite/libgomp.c++/udr-13.C: New test.
6207 * testsuite/libgomp.c++/udr-14.C: New test.
6208 * testsuite/libgomp.c++/udr-15.C: New test.
6209 * testsuite/libgomp.c++/udr-16.C: New test.
6210 * testsuite/libgomp.c++/udr-17.C: New test.
6211 * testsuite/libgomp.c++/udr-18.C: New test.
6212 * testsuite/libgomp.c++/udr-19.C: New test.
6213
6214 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
6215
6216 Update copyright years
6217
6218 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
6219
6220 * hashtab.h: Use the standard form for the copyright notice.
6221
6222 2014-01-02 Tobias Burnus <burnus@net-b.de>
6223
6224 * libgomp.texi: Bump @copying's copyright year.
6225
6226 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
6227
6228 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
6229 alloca () with __builtin_alloca ().
6230 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
6231 * testsuite/libgomp.c/lock-3.c: Likewise.
6232 * testsuite/libgomp.c/pr48591.c: Likewise.
6233
6234 2013-12-17 Jakub Jelinek <jakub@redhat.com>
6235
6236 PR testsuite/59534
6237 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
6238 comparisons.
6239
6240 2013-12-16 Jakub Jelinek <jakub@redhat.com>
6241
6242 PR libgomp/58756
6243 * testsuite/libgomp.c/pr58756.c: New test.
6244
6245 2013-12-12 Jakub Jelinek <jakub@redhat.com>
6246
6247 PR libgomp/59467
6248 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
6249 !$omp parallel.
6250
6251 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
6252
6253 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
6254 ALWAYS_CFLAGS.
6255 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
6256 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
6257 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
6258 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
6259 Likewise.
6260
6261 * libgomp_g.h: Include <stddef.h> for size_t.
6262
6263 * libgomp.spec.in: Update comment about libgomp's dependencies.
6264 * configure.ac: Likewise.
6265 * configure: Regenerate.
6266
6267 2013-10-16 Tobias Burnus <burnus@net-b.de>
6268
6269 * libgomp.texi: (Runtime Library Routines): Update references for
6270 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
6271 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
6272 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
6273 (Environment Variables): Update references for OpenMP 4.0. Add
6274 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
6275 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
6276 order.
6277
6278 2013-10-14 Jakub Jelinek <jakub@redhat.com>
6279
6280 * env.c (parse_bind_var): Initialize value to avoid
6281 (false positive) warning.
6282
6283 2013-10-12 Jakub Jelinek <jakub@redhat.com>
6284
6285 PR libgomp/58691
6286 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
6287 to check variable.
6288 (gomp_init_num_threads): Move i variable declaration into
6289 #ifdef CPU_ALLOC_SIZE block.
6290 * config/linux/affinity.c (gomp_affinity_init_level): Test
6291 gomp_places_list_len == 0 rather than gomp_places_list == 0
6292 when checking for topology reading error.
6293 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
6294 * env.c (parse_affinity): Add ignore argument, if true, don't populate
6295 gomp_places_list, only parse env var and always return false.
6296 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
6297 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
6298 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
6299 and either of these variables were parsed correctly into a places
6300 list.
6301
6302 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
6303 Jakub Jelinek <jakub@redhat.com>
6304
6305 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
6306 of 5 loopfn matches.
6307 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
6308 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
6309 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
6310 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
6311 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
6312 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
6313 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
6314 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
6315
6316 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
6317
6318 * Makefile.am (omp_lib.mod): Streamline rule.
6319 * Makefile.in: Regenerate.
6320
6321 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
6322 exceptions.
6323
6324 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
6325 * testsuite/libgomp.fortran/lib1.f90: Likewise.
6326 * testsuite/libgomp.fortran/lib2.f: Likewise.
6327 * testsuite/libgomp.fortran/lib3.f: Likewise.
6328
6329 * configure.ac: Typo fix.
6330 * configure: Regenerate.
6331
6332 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
6333 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
6334
6335 * omp.h.in: Don't touch the user's namespace.
6336
6337 2013-10-11 Jakub Jelinek <jakub@redhat.com>
6338 Tobias Burnus <burnus@net-b.de>
6339 Richard Henderson <rth@redhat.com>
6340
6341 * target.c: New file.
6342 * Makefile.am (libgomp_la_SOURCES): Add target.c.
6343 * Makefile.in: Regenerated.
6344 * libgomp_g.h (GOMP_task): Add depend argument.
6345 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
6346 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
6347 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
6348 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
6349 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
6350 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
6351 GOMP_taskgroup_start, GOMP_taskgroup_end,
6352 GOMP_parallel_sections): New prototypes.
6353 * fortran.c (omp_is_initial_device): Add ialias_redirect.
6354 (omp_is_initial_device_): New function.
6355 (ULP, STR1, STR2, ialias_redirect): Removed.
6356 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
6357 omp_set_default_device_8_, omp_get_default_device_,
6358 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
6359 functions.
6360 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
6361 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
6362 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
6363 @@GOMP_4.0.
6364 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
6365 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
6366 omp_set_default_device, omp_set_default_device_,
6367 omp_set_default_device_8_, omp_get_default_device,
6368 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
6369 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
6370 omp_get_team_num_): Export @@OMP_4.0.
6371 * team.c (struct gomp_thread_start_data): Add place field.
6372 (gomp_thread_start): Clear thr->thread_pool and
6373 thr->task before returning. Use gomp_team_barrier_wait_final
6374 instead of gomp_team_barrier_wait. Initialize thr->place.
6375 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
6376 team_cancelled and task_queued_count fields.
6377 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
6378 before calling pthread_exit.
6379 (gomp_free_thread): No longer static. Use
6380 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
6381 (gomp_team_start): Add flags argument. Set
6382 thr->thread_pool->threads_busy to nthreads immediately after creating
6383 new pool. Use gomp_managed_threads_lock instead of
6384 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
6385 (gomp_team_end): Use gomp_managed_threads_lock instead of
6386 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
6387 of gomp_team_barrier_wait. If team->team_cancelled, call
6388 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
6389 rather than thr->ts.work_share.
6390 (initialize_team): Don't call gomp_sem_init here.
6391 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
6392 caller.
6393 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
6394 * env.c (gomp_global_icv): Add default_device_var, target_data and
6395 bind_var initializers.
6396 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
6397 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
6398 gomp_places_list_len): New variables.
6399 (parse_bind_var, parse_one_place, parse_places_var): New functions.
6400 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
6401 sized places.
6402 (gomp_cancel_var): New global variable.
6403 (parse_int): New function.
6404 (handle_omp_display_env): New function.
6405 (initialize_env): Use it. Initialize default_device_var.
6406 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
6407 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
6408 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
6409 been successfully parsed (and call gomp_init_affinity in that case).
6410 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
6411 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
6412 omp_get_team_num, omp_is_initial_device): New functions.
6413 * libgomp.h: Include stdlib.h.
6414 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
6415 Define.
6416 (struct target_mem_desc): Forward declare.
6417 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
6418 and thread_limit_var fields.
6419 (gomp_get_num_devices): New prototype.
6420 (gomp_cancel_var): New extern decl.
6421 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
6422 team_cancelled and task_queued_count fields. Add comments about
6423 task_{,queued_,running_}count.
6424 (gomp_cancel_kind): New enum.
6425 (gomp_work_share_end_cancel): New prototype.
6426 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
6427 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
6428 and depend fields.
6429 (struct gomp_taskgroup): New type.
6430 (struct gomp_task_depend_entry,
6431 struct gomp_dependers_vec): New types.
6432 (gomp_finish_task): Free depend_hash if non-NULL.
6433 (struct gomp_team_state): Add place_partition_off
6434 and place_partition_len fields.
6435 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
6436 gomp_places_list_len): New extern decls.
6437 (struct gomp_thread): Add place field.
6438 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
6439 (gomp_init_thread_affinity): Add place argument.
6440 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
6441 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
6442 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
6443 gomp_affinity_init_level, gomp_affinity_print_place): New
6444 prototypes.
6445 (gomp_team_start): Add flags argument.
6446 (gomp_thread_limit_var, gomp_remaining_threads_count,
6447 gomp_remaining_threads_lock): Remove.
6448 (gomp_managed_threads_lock): New variable.
6449 (struct gomp_thread_pool): Add threads_busy field.
6450 (gomp_free_thread): New prototype.
6451 * task.c: Include hashtab.h.
6452 (hash_entry_type): New typedef.
6453 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
6454 (gomp_init_task): Clear dependers, depend_hash, depend_count,
6455 copy_ctors_done and taskgroup fields.
6456 (GOMP_task): Add depend argument, handle depend clauses. If
6457 gomp_team_barrier_cancelled or if it's taskgroup has been
6458 cancelled, don't queue or start new tasks. Set copy_ctors_done
6459 field if needed. Initialize taskgroup field. If copy_ctors_done
6460 and already cancelled, don't discard the task. If taskgroup is
6461 non-NULL, enqueue the task into taskgroup queue. Increment
6462 num_children field in taskgroup. Increment task_queued_count.
6463 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
6464 gomp_task_run_post_remove_taskgroup): New inline functions.
6465 (gomp_task_run_post_handle_depend_hash,
6466 gomp_task_run_post_handle_dependers,
6467 gomp_task_run_post_handle_depend): New functions.
6468 (GOMP_taskwait): Use them. If more than one new tasks
6469 have been queued, wake other threads if needed.
6470 (gomp_barrier_handle_tasks): Likewise. If
6471 gomp_team_barrier_cancelled, don't start any new tasks, just free
6472 all tasks.
6473 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
6474 * omp_lib.f90.in
6475 (omp_proc_bind_kind, omp_proc_bind_false,
6476 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
6477 omp_proc_bind_spread): New params.
6478 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
6479 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
6480 omp_get_team_num, omp_is_initial_device): New interfaces.
6481 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
6482 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
6483 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
6484 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
6485 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
6486 useless use omp_lib_kinds.
6487 * omp.h.in (omp_proc_bind_t): New typedef.
6488 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
6489 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
6490 omp_get_team_num, omp_is_initial_device): New prototypes.
6491 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
6492 through to gomp_team_start.
6493 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
6494 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
6495 Adjust gomp_parallel_loop_start callers.
6496 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
6497 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
6498 GOMP_loop_end_cancel): New functions.
6499 (GOMP_parallel_end): Add ialias_redirect.
6500 * hashtab.h: New file.
6501 * libgomp.texi (Environment Variables): Minor cleanup,
6502 update section refs to OpenMP 4.0rc2.
6503 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
6504 environment variables.
6505 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
6506 team->work_shares_to_free to thr->ts.work_share before calling
6507 free_work_share.
6508 (gomp_work_share_end_cancel): New function.
6509 * config/linux/proc.c: Include errno.h.
6510 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
6511 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
6512 sizeof (cpu_set_t) to determine number of iterations. Fix up check
6513 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
6514 gomp_cpuset_size is sizeof (cpu_set_t).
6515 (gomp_init_num_threads): Initialize gomp_cpuset_size,
6516 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
6517 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
6518 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
6519 contain any logical CPUs.
6520 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
6521 is NULL. Use gomp_cpusetp instead of &cpuset and pass
6522 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
6523 pthread_getaffinity_np. Check gomp_places_list instead of
6524 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
6525 * config/linux/bar.c (gomp_barrier_wait_end,
6526 gomp_barrier_wait_last): Use BAR_* defines.
6527 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
6528 from state where needed. Set work_share_cancelled to 0 on last
6529 thread.
6530 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
6531 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
6532 functions.
6533 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
6534 Add cpusetsize argument.
6535 (gomp_cpuset_size, gomp_cpusetp): Declare.
6536 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
6537 (affinity_counter): Remove.
6538 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
6539 if CPU_ALLOC_SIZE isn't defined.
6540 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
6541 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
6542 bind current thread to the first place.
6543 (gomp_init_thread_affinity): Rewritten. Add place argument, just
6544 pthread_setaffinity_np to gomp_places_list[place].
6545 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
6546 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
6547 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
6548 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
6549 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
6550 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
6551 (gomp_barrier_t): Add awaited_final field.
6552 (gomp_barrier_init): Initialize awaited_final field.
6553 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
6554 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
6555 prototypes.
6556 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
6557 defines.
6558 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
6559 gomp_team_barrier_cancelled): New inline functions.
6560 (gomp_barrier_last_thread,
6561 gomp_team_barrier_set_task_pending,
6562 gomp_team_barrier_clear_task_pending,
6563 gomp_team_barrier_set_waiting_for_tasks,
6564 gomp_team_barrier_waiting_for_tasks,
6565 gomp_team_barrier_done): Use BAR_* defines.
6566 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
6567 (gomp_barrier_wait_end): Use BAR_* defines.
6568 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
6569 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
6570 Use BAR_* defines.
6571 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
6572 gomp_team_barrier_cancel): New functions.
6573 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
6574 argument.
6575 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
6576 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
6577 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
6578 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
6579 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
6580 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
6581 (gomp_barrier_t): Add cancellable field.
6582 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
6583 gomp_team_barrier_cancel): New prototypes.
6584 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
6585 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
6586 gomp_team_barrier_cancelled): New inline functions.
6587 (gomp_barrier_wait_start, gomp_barrier_last_thread,
6588 gomp_team_barrier_set_task_pending,
6589 gomp_team_barrier_clear_task_pending,
6590 gomp_team_barrier_set_waiting_for_tasks,
6591 gomp_team_barrier_waiting_for_tasks,
6592 gomp_team_barrier_done): Use BAR_* defines.
6593 * barrier.c (GOMP_barrier_cancel): New function.
6594 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
6595 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
6596 omp_proc_bind_spread): New params.
6597 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
6598 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
6599 omp_get_team_num, omp_is_initial_device): New externals.
6600 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
6601 New functions.
6602 (gomp_resolve_num_threads): Adjust for thread_limit now being in
6603 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
6604 infinity. If not nested, just return minimum of max_num_threads
6605 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
6606 to the returned value. Otherwise, don't update atomically
6607 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
6608 (GOMP_parallel_end): Adjust for thread_limit now being in
6609 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
6610 infinity. Adjust threads_busy in the pool rather than
6611 gomp_remaining_threads_count. Remember team->nthreads and call
6612 gomp_team_end before adjusting threads_busy, if not nested
6613 afterwards, just set it to 1 non-atomically. Add ialias.
6614 (GOMP_parallel_start): Adjust gomp_team_start caller.
6615 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
6616 * testsuite/libgomp.c/affinity-1.c: New test.
6617 * testsuite/libgomp.c/atomic-15.c: New test.
6618 * testsuite/libgomp.c/atomic-16.c: New test.
6619 * testsuite/libgomp.c/atomic-17.c: New test.
6620 * testsuite/libgomp.c/cancel-for-1.c: New test.
6621 * testsuite/libgomp.c/cancel-for-2.c: New test.
6622 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
6623 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
6624 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
6625 * testsuite/libgomp.c/cancel-sections-1.c: New test.
6626 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
6627 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
6628 * testsuite/libgomp.c/depend-1.c: New test.
6629 * testsuite/libgomp.c/depend-2.c: New test.
6630 * testsuite/libgomp.c/depend-3.c: New test.
6631 * testsuite/libgomp.c/depend-4.c: New test.
6632 * testsuite/libgomp.c/for-1.c: New test.
6633 * testsuite/libgomp.c/for-1.h: New file.
6634 * testsuite/libgomp.c/for-2.c: New test.
6635 * testsuite/libgomp.c/for-2.h: New file.
6636 * testsuite/libgomp.c/for-3.c: New test.
6637 * testsuite/libgomp.c/pr58392.c: New test.
6638 * testsuite/libgomp.c/simd-1.c: New test.
6639 * testsuite/libgomp.c/simd-2.c: New test.
6640 * testsuite/libgomp.c/simd-3.c: New test.
6641 * testsuite/libgomp.c/simd-4.c: New test.
6642 * testsuite/libgomp.c/simd-5.c: New test.
6643 * testsuite/libgomp.c/simd-6.c: New test.
6644 * testsuite/libgomp.c/target-1.c: New test.
6645 * testsuite/libgomp.c/target-2.c: New test.
6646 * testsuite/libgomp.c/target-3.c: New test.
6647 * testsuite/libgomp.c/target-4.c: New test.
6648 * testsuite/libgomp.c/target-5.c: New test.
6649 * testsuite/libgomp.c/target-6.c: New test.
6650 * testsuite/libgomp.c/target-7.c: New test.
6651 * testsuite/libgomp.c/taskgroup-1.c: New test.
6652 * testsuite/libgomp.c/thread-limit-1.c: New test.
6653 * testsuite/libgomp.c/thread-limit-2.c: New test.
6654 * testsuite/libgomp.c/thread-limit-3.c: New test.
6655 * testsuite/libgomp.c/udr-1.c: New test.
6656 * testsuite/libgomp.c/udr-2.c: New test.
6657 * testsuite/libgomp.c/udr-3.c: New test.
6658 * testsuite/libgomp.c++/affinity-1.C: New test.
6659 * testsuite/libgomp.c++/atomic-10.C: New test.
6660 * testsuite/libgomp.c++/atomic-11.C: New test.
6661 * testsuite/libgomp.c++/atomic-12.C: New test.
6662 * testsuite/libgomp.c++/atomic-13.C: New test.
6663 * testsuite/libgomp.c++/atomic-14.C: New test.
6664 * testsuite/libgomp.c++/atomic-15.C: New test.
6665 * testsuite/libgomp.c++/cancel-for-1.C: New test.
6666 * testsuite/libgomp.c++/cancel-for-2.C: New test.
6667 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
6668 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
6669 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
6670 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
6671 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
6672 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
6673 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
6674 * testsuite/libgomp.c++/cancel-test.h: New file.
6675 * testsuite/libgomp.c++/for-9.C: New test.
6676 * testsuite/libgomp.c++/for-10.C: New test.
6677 * testsuite/libgomp.c++/for-11.C: New test.
6678 * testsuite/libgomp.c++/simd-1.C: New test.
6679 * testsuite/libgomp.c++/simd-2.C: New test.
6680 * testsuite/libgomp.c++/simd-3.C: New test.
6681 * testsuite/libgomp.c++/simd-4.C: New test.
6682 * testsuite/libgomp.c++/simd-5.C: New test.
6683 * testsuite/libgomp.c++/simd-6.C: New test.
6684 * testsuite/libgomp.c++/simd-7.C: New test.
6685 * testsuite/libgomp.c++/simd-8.C: New test.
6686 * testsuite/libgomp.c++/target-1.C: New test.
6687 * testsuite/libgomp.c++/target-2.C: New test.
6688 * testsuite/libgomp.c++/target-2-aux.cc: New file.
6689 * testsuite/libgomp.c++/target-3.C: New test.
6690 * testsuite/libgomp.c++/taskgroup-1.C: New test.
6691 * testsuite/libgomp.c++/udr-1.C: New test.
6692 * testsuite/libgomp.c++/udr-2.C: New test.
6693 * testsuite/libgomp.c++/udr-3.C: New test.
6694 * testsuite/libgomp.c++/udr-4.C: New test.
6695 * testsuite/libgomp.c++/udr-5.C: New test.
6696 * testsuite/libgomp.c++/udr-6.C: New test.
6697 * testsuite/libgomp.c++/udr-7.C: New test.
6698 * testsuite/libgomp.c++/udr-8.C: New test.
6699 * testsuite/libgomp.c++/udr-9.C: New test.
6700
6701 2013-09-20 Jakub Jelinek <jakub@redhat.com>
6702
6703 PR testsuite/57605
6704 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
6705 ALWAYS_CFLAGS.
6706
6707 2013-09-20 Alan Modra <amodra@gmail.com>
6708
6709 * configure: Regenerate.
6710
6711 2013-09-19 Jakub Jelinek <jakub@redhat.com>
6712
6713 * testsuite/libgomp.c/sections-2.c: New test.
6714
6715 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
6716
6717 * testsuite/libgomp.fortran/strassen.f90:
6718 Add dg-skip-if aarch64_tiny.
6719
6720 2013-06-20 Iain Sandoe <iain@codesourcery.com>
6721 Cesar Philippidis <cesar@codesourcery.com>
6722
6723 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
6724 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
6725 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
6726 * testsuite/libgomp.fortran/fortran.exp: Likewise.
6727 * testsuite/libgomp.graphite/graphite.exp: Likewise.
6728 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
6729 Use dg-runtest rather than gfortran-dg-runtest.
6730
6731 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
6732
6733 * testsuite/libgomp.c/icv-2.c: Extend current handling of
6734 Linux-based x86 systems to cover all GNU systems.
6735 * testsuite/libgomp.c/lock-3.c: Likewise.
6736 * testsuite/libgomp.c/pr48591.c: Likewise.
6737
6738 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
6739
6740 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
6741 GNU/Hurd, as done for Linux-based systems.
6742
6743 * config/posix/ptrlock.h: Fix comment.
6744
6745 2013-05-27 Tobias Burnus <burnus@net-b.de>
6746
6747 PR fortran/57423
6748 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
6749 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
6750 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
6751 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
6752 omp_destroy_nest_lock): Correct arguments to match the one in
6753 the OpenMP spec.
6754 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
6755 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
6756 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
6757 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
6758
6759 2013-05-16 Jakub Jelinek <jakub@redhat.com>
6760
6761 * testsuite/libgomp.c/loop-13.c: New test.
6762 * testsuite/libgomp.c/loop-14.c: New test.
6763 * testsuite/libgomp.c/loop-15.c: New test.
6764 * testsuite/libgomp.c++/loop-13.C: New test.
6765 * testsuite/libgomp.c++/loop-14.C: New test.
6766 * testsuite/libgomp.c++/loop-15.C: New test.
6767
6768 2013-02-06 Jakub Jelinek <jakub@redhat.com>
6769
6770 PR middle-end/56217
6771 * testsuite/libgomp.c++/pr56217.C: New test.
6772
6773 2013-02-01 Alan Modra <amodra@gmail.com>
6774
6775 * task.c (GOMP_task, GOMP_taskwait): Comment.
6776
6777 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
6778 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
6779
6780 PR libgomp/55561
6781 * config/linux/wait.h (do_spin): Use atomic load for addr.
6782 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
6783 for intptr and ptrlock.
6784 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
6785 for ptrlock.
6786
6787 2013-01-22 Alan Modra <amodra@gmail.com>
6788
6789 PR libgomp/51376
6790 PR libgomp/56073
6791 * task.c (GOMP_task): Revert 2011-12-09 change.
6792 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
6793 barrier to read task->children..
6794 (gomp_barrier_handle_tasks): ..and matching atomic store with
6795 release barrier here when setting parent->children to NULL.
6796
6797 2013-01-16 Jakub Jelinek <jakub@redhat.com>
6798 Tobias Burnus <burnus@net-b.de>
6799
6800 PR driver/55884
6801 * testsuite/libgomp.fortran/fortran.exp: Use
6802 -fintrinsic-modules-path= instead of
6803 -fintrinsic-modules-path.
6804
6805 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
6806
6807 Update copyright years.
6808
6809 2012-12-19 Tobias Burnus <burnus@net-b.de>
6810
6811 * testsuite/libgomp.fortran/fortran.exp: Set
6812 -fintrinsic-modules-path.
6813
6814 2012-12-19 Tobias Burnus <burnus@net-b.de>
6815
6816 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
6817 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
6818
6819 2012-11-21 Jakub Jelinek <jakub@redhat.com>
6820
6821 PR libgomp/55411
6822 * team.c (gomp_free_thread): Decrease gomp_managed_threads
6823 if pool had any threads_used.
6824
6825 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
6826
6827 * testsuite/libgomp.c++/pr24455.C: Use
6828 -Wl,-undefined,dynamic_lookup on darwin.
6829
6830 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
6831
6832 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
6833
6834 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
6835
6836 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
6837
6838 2012-10-23 Ian Bolton <ian.bolton@arm.com>
6839 Jim MacArthur <jim.macarthur@arm.com>
6840 Marcus Shawcroft <marcus.shawcroft@arm.com>
6841 Nigel Stephens <nigel.stephens@arm.com>
6842 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6843 Richard Earnshaw <rearnsha@arm.com>
6844 Sofiane Naci <sofiane.naci@arm.com>
6845 Stephen Thomas <stephen.thomas@arm.com>
6846 Tejas Belagod <tejas.belagod@arm.com>
6847 Yufeng Zhang <yufeng.zhang@arm.com>
6848
6849 * configure.tgt: Add AArch64.
6850
6851 2012-10-04 Jason Merrill <jason@redhat.com>
6852
6853 * testsuite/libgomp.c++/tls-init1.C: New.
6854
6855 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
6856
6857 * configure: Regenerated.
6858
6859 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
6860
6861 * config/linux/mips/futex.h (sys_futex0): Change to static
6862 function with noinline, nomips16 attributes under MIPS16. Adjust
6863 asm statement to place 'li v0,SYS_futex' immediately before
6864 syscall insn.
6865
6866 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
6867
6868 * libgomp.texi (Library Index): Renamed from "Index" to prevent
6869 conflict with index.html on case-insensitive file systems.
6870
6871 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
6872
6873 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
6874 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
6875
6876 2012-07-02 Richard Guenther <rguenther@suse.de>
6877 Michael Matz <matz@suse.de>
6878 Tobias Grosser <tobias@grosser.es>
6879 Sebastian Pop <sebpop@gmail.com>
6880
6881 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
6882 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
6883 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
6884 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
6885
6886 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
6887
6888 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
6889
6890 2012-06-22 Richard Guenther <rguenther@suse.de>
6891
6892 Merge from graphite branch
6893 2012-01-13 Tobias Grosser <tobias@grosser.es>
6894
6895 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
6896 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
6897
6898 2012-06-07 Jakub Jelinek <jakub@redhat.com>
6899
6900 PR middle-end/53580
6901 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
6902 use GOMP_barrier () call instead.
6903 * testsuite/libgomp.c/pr26943-3.c: Likewise.
6904 * testsuite/libgomp.c/pr26943-4.c: Likewise.
6905 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
6906 call GOMP_barrier instead.
6907 * testsuite/libgomp.fortran/vla5.f90: Likewise.
6908
6909 2012-06-06 Jakub Jelinek <jakub@redhat.com>
6910
6911 PR libgomp/52993
6912 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
6913 argument to memset call.
6914
6915 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
6916
6917 * configure: Regenerated.
6918
6919 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
6920
6921 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
6922
6923 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
6924
6925 PR bootstrap/52812
6926 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
6927
6928 2012-03-22 Jakub Jelinek <jakub@redhat.com>
6929
6930 PR middle-end/52547
6931 * testsuite/libgomp.c/pr52547.c: New test.
6932
6933 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
6934
6935 * testsuite/lib/libgomp.exp: load fortran-modules.exp
6936
6937 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6938
6939 * configure.tgt (mips-sgi-irix6*): Remove.
6940
6941 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6942
6943 * configure.tgt (alpha*-dec-osf*): Remove.
6944
6945 * config/osf/sem.h: Remove.
6946 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
6947
6948 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
6949
6950 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
6951
6952 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6953
6954 PR libstdc++/52188
6955 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
6956 Remove ENABLE_SYMVERS_SOL2.
6957 * configure: Regenerate.
6958 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
6959 (PREPROCESS): New variable.
6960 (libgomp.ver): New target.
6961 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
6962 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
6963 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
6964 Use libgomp.ver.
6965 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
6966 * Makefile.in: Regenerate.
6967
6968 2012-02-14 Walter Lee <walt@tilera.com>
6969
6970 * configure.tgt: Handle tilegx and tilepro.
6971 * config/linux/tile/futex.h: New file.
6972
6973 2012-02-08 Richard Guenther <rguenther@suse.de>
6974
6975 PR tree-optimization/46886
6976 * testsuite/libgomp.c/pr46886.c: New testcase.
6977
6978 2012-01-25 Matthias Klose <doko@ubuntu.com>
6979
6980 * config/linux/arm: Remove empty directory.
6981 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
6982
6983 2011-12-09 Alan Modra <amodra@gmail.com>
6984
6985 PR libgomp/51376
6986 * task.c (GOMP_taskwait): Don't access task->children outside of
6987 task_lock mutex region.
6988 (GOMP_task): Likewise.
6989
6990 2011-12-06 Jakub Jelinek <jakub@redhat.com>
6991
6992 PR libgomp/51132
6993 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
6994 to file scope.
6995 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
6996 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
6997 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
6998 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
6999 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7000
7001 2011-12-02 Alan Modra <amodra@gmail.com>
7002
7003 * config/linux/affinity.c: Use atomic rather than sync builtin.
7004 * config/linux/lock.c: Likewise.
7005 * config/linux/ptrlock.h: Likewise.
7006 * config/linux/ptrlock.c: Likewise.
7007 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
7008 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
7009 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
7010 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
7011 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
7012 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
7013 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
7014 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
7015 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
7016 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
7017
7018 2011-11-30 Alan Modra <amodra@gmail.com>
7019
7020 PR libgomp/51298
7021 * config/linux/bar.h: Use atomic rather than sync builtins.
7022 * config/linux/bar.c: Likewise. Add missing acquire
7023 synchronisation on generation field.
7024 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
7025 double unlock.
7026
7027 2011-11-30 Alan Modra <amodra@gmail.com>
7028
7029 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
7030 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
7031 * config/linux/mutex.h: Use atomic rather than sync builtins.
7032 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
7033 * config/linux/omp-lock.h: Comment fix.
7034 * config/linux/arm/mutex.h: Delete.
7035 * config/linux/powerpc/mutex.h: Delete.
7036 * config/linux/ia64/mutex.h: Delete.
7037 * config/linux/mips/mutex.h: Delete.
7038
7039 2011-11-30 Alan Modra <amodra@gmail.com>
7040
7041 PR libgomp/51249
7042 * config/linux/sem.h: Rewrite.
7043 * config/linux/sem.c: Rewrite.
7044
7045 2011-11-28 Richard Henderson <rth@redhat.com>
7046
7047 * libgomp.h (enum memmodel): New.
7048
7049 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
7050
7051 * configure: Regenerate.
7052
7053 2011-10-10 Matthias Klose <doko@ubuntu.com>
7054
7055 * config/posix95: Remove empty directory.
7056
7057 2011-08-26 Jakub Jelinek <jakub@redhat.com>
7058
7059 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
7060
7061 2011-08-19 Jakub Jelinek <jakub@redhat.com>
7062
7063 PR fortran/49792
7064 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
7065 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
7066
7067 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7068
7069 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
7070
7071 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7072
7073 PR libgomp/49965
7074 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
7075
7076 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
7077
7078 * config/linux/proc.h: New.
7079 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
7080 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
7081 (gomp_init_num_threads): Update call to cpuset_popcount.
7082 (get_num_procs): Ditto.
7083 * config/linux/affinity.c (gomp_init_affinity): Call
7084 gomp_cpuset_popcount.
7085
7086 2011-08-02 Jakub Jelinek <jakub@redhat.com>
7087
7088 PR fortran/42041
7089 PR fortran/46752
7090 * omp.h.in (omp_in_final): New prototype.
7091 * omp_lib.f90.in (omp_in_final): New interface.
7092 (omp_integer_kind, omp_logical_kind): Remove
7093 and replace all its uses in the module with 4.
7094 (openmp_version): Change to 201107.
7095 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
7096 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
7097 kind for the parameters.
7098 (omp_in_final): New external.
7099 (openmp_version): Change to 201107.
7100 * task.c (omp_in_final): New function.
7101 (gomp_init_task): Initialize final_task.
7102 (GOMP_task): Remove unused attribute from flags. Handle final
7103 tasks.
7104 (GOMP_taskyield): New function.
7105 (omp_in_final): Return true if if (false) or final (true) task
7106 or descendant of final (true).
7107 * fortran.c (omp_in_final_): New function.
7108 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
7109 (GOMP_3.0): Export GOMP_taskyield.
7110 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
7111 variables.
7112 (parse_unsigned_long_list): New function.
7113 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
7114 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
7115 even if parse_affinity returned false.
7116 * config/linux/affinity.c (gomp_init_affinity): Handle
7117 gomp_cpu_affinity_len == 0.
7118 * libgomp_g.h (GOMP_taskyield): New prototype.
7119 * libgomp.h (struct gomp_task): Add final_task field.
7120 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
7121 * team.c (gomp_team_start): Override new task's nthreads_var icv
7122 if list form OMP_NUM_THREADS has been used and it has value for
7123 the new nesting level.
7124
7125 * testsuite/libgomp.c/atomic-11.c: New test.
7126 * testsuite/libgomp.c/atomic-12.c: New test.
7127 * testsuite/libgomp.c/atomic-13.c: New test.
7128 * testsuite/libgomp.c/atomic-14.c: New test.
7129 * testsuite/libgomp.c/reduction-6.c: New test.
7130 * testsuite/libgomp.c/task-5.c: New test.
7131 * testsuite/libgomp.c++/atomic-2.C: New test.
7132 * testsuite/libgomp.c++/atomic-3.C: New test.
7133 * testsuite/libgomp.c++/atomic-4.C: New test.
7134 * testsuite/libgomp.c++/atomic-5.C: New test.
7135 * testsuite/libgomp.c++/atomic-6.C: New test.
7136 * testsuite/libgomp.c++/atomic-7.C: New test.
7137 * testsuite/libgomp.c++/atomic-8.C: New test.
7138 * testsuite/libgomp.c++/atomic-9.C: New test.
7139 * testsuite/libgomp.c++/task-8.C: New test.
7140 * testsuite/libgomp.c++/reduction-4.C: New test.
7141 * testsuite/libgomp.fortran/allocatable7.f90: New test.
7142 * testsuite/libgomp.fortran/allocatable8.f90: New test.
7143 * testsuite/libgomp.fortran/crayptr3.f90: New test.
7144 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
7145 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
7146 * testsuite/libgomp.fortran/pointer1.f90: New test.
7147 * testsuite/libgomp.fortran/pointer2.f90: New test.
7148 * testsuite/libgomp.fortran/task4.f90: New test.
7149
7150 2011-08-02 Tobias Burnus <burnus@net-b.de>
7151
7152 * libgomp.texi: Update OpenMP spec references to 3.1.
7153 (omp_in_final,OMP_PROC_BIND): New sections.
7154 (OMP_NUM_THREADS): Document that the value can be now a list.
7155 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
7156
7157 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
7158
7159 * config/linux/x86/futex.h: Check __x86_64__ instead of
7160 __LP64__.
7161
7162 2011-07-29 Jakub Jelinek <jakub@redhat.com>
7163
7164 PR middle-end/49897
7165 PR middle-end/49898
7166 * testsuite/libgomp.c/pr49897-1.c: New test.
7167 * testsuite/libgomp.c/pr49897-2.c: New test.
7168 * testsuite/libgomp.c/pr49898-1.c: New test.
7169 * testsuite/libgomp.c/pr49898-2.c: New test.
7170
7171 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
7172
7173 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
7174 for ia32 instead of ilp32.
7175
7176 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
7177 * testsuite/libgomp.c/atomic-6.c: Likewise.
7178
7179 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
7180
7181 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
7182 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
7183
7184 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7185
7186 PR libgomp/45351
7187 * config/osf/sem.h: New file.
7188 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
7189
7190 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7191
7192 PR target/49541
7193 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
7194 ldflags.
7195
7196 2011-07-15 Jakub Jelinek <jakub@redhat.com>
7197
7198 * config/linux/wait.h (do_spin): New inline, largely copied
7199 from do_wait, just don't do futex_wait here, instead return true if
7200 it should be done.
7201 (do_wait): Implement using do_spin.
7202 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
7203 to prototype.
7204 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
7205 __sync_bool_compare_and_swap, pass the oldval to
7206 gomp_mutex_lock_slow.
7207 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
7208 If all mutex contenders are just spinning and not sleeping, don't
7209 change state to 2 unnecessarily. Optimize the loop when state has
7210 already become 2 to use just one atomic operation per loop instead
7211 of two.
7212 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
7213 to prototype.
7214 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
7215 __sync_bool_compare_and_swap, pass the oldval to
7216 gomp_mutex_lock_slow.
7217
7218 2011-06-22 Jakub Jelinek <jakub@redhat.com>
7219
7220 PR libgomp/49490
7221 * iter.c (gomp_iter_static_next): For chunk size 0
7222 only use n ceil/ nthreads size for the first
7223 n % nthreads threads in the team instead of
7224 all threads except for the last few ones which
7225 get less work or none at all.
7226 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
7227 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
7228 chunk argument, set run_sched_modifier to 0 for static
7229 resp. 1 for other kinds. If chunk argument is 0
7230 and not static, set value to 1.
7231
7232 2011-05-19 Jakub Jelinek <jakub@redhat.com>
7233
7234 PR c++/49043
7235 * testsuite/libgomp.c++/pr49043.C: New test.
7236
7237 PR c++/48869
7238 * testsuite/libgomp.c++/pr48869.C: New test.
7239
7240 2011-05-06 Jakub Jelinek <jakub@redhat.com>
7241
7242 PR fortran/48894
7243 * fortran.c: Include limits.h.
7244 (TO_INT): Define.
7245 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
7246 *set.
7247 (omp_set_num_threads_8_, omp_set_schedule_8_,
7248 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
7249 omp_get_team_size_8_): Use TO_INT macro.
7250 * testsuite/libgomp.fortran/pr48894.f90: New test.
7251
7252 2011-04-13 Jakub Jelinek <jakub@redhat.com>
7253
7254 PR middle-end/48591
7255 * testsuite/libgomp.c/pr48591.c: New test.
7256
7257 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7258
7259 PR bootstrap/48135
7260 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
7261 * configure: Regenerate.
7262
7263 2011-02-27 Jakub Jelinek <jakub@redhat.com>
7264
7265 PR fortran/47886
7266 * testsuite/libgomp.fortran/task3.f90: New test.
7267
7268 2011-02-24 Tobias Burnus <burnus@net-b.de>
7269
7270 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
7271
7272 2011-02-23 Jakub Jelinek <jakub@redhat.com>
7273
7274 PR libgomp/47854
7275 * libgomp.texi (omp_get_wtime): Don't say time in the past
7276 must be Unix Epoch.
7277
7278 2011-02-18 Jakub Jelinek <jakub@redhat.com>
7279
7280 PR libgomp/47804
7281 * testsuite/libgomp.fortran/fortran.exp: Check for both
7282 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
7283 but $blddir != "", still append ${blddir}/${lang_library_path}
7284 to ld_library_path.
7285
7286 2011-02-16 Tobias Burnus <burnus@net-b.de>
7287
7288 PR libgomp/47758
7289 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
7290 of libquadmath.a before adding its libpath to ldflags.
7291
7292 2011-02-14 Jakub Jelinek <jakub@redhat.com>
7293
7294 PR libgomp/47731
7295 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
7296 to FUTEX_WAIT futex syscall.
7297 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
7298
7299 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7300
7301 * configure: Regenerate.
7302
7303 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
7304
7305 PR libstdc++/36104
7306 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
7307
7308 2011-01-16 Gerald Pfeifer
7309
7310 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
7311
7312 2010-12-14 Jakub Jelinek <jakub@redhat.com>
7313
7314 PR fortran/46874
7315 * libgomp.fortran/allocatable6.f90: New test.
7316
7317 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7318
7319 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
7320 * configure: Regenerate.
7321
7322 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
7323
7324 PR target/40125
7325 PR lto/46695
7326 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
7327 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
7328 * aclocal.m4: Regenerate.
7329 * configure: Regenerate.
7330 * Makefile.in: Regenerate.
7331 * testsuite/Makefile.in: Regenerate.
7332
7333 2010-12-02 Jakub Jelinek <jakub@redhat.com>
7334
7335 PR fortran/46753
7336 * libgomp.fortran/pr46753.f90: New test.
7337
7338 PR libgomp/43706
7339 * env.c (initialize_env): Default to spin count 300000
7340 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
7341 is specified.
7342
7343 PR libgomp/45240
7344 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
7345 at the end if sync builtins aren't supported.
7346
7347 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7348
7349 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
7350
7351 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7352
7353 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
7354
7355 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
7356
7357 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
7358
7359 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7360 Tobias Burnus <burnus@net-b.de>
7361
7362 PR fortran/32049
7363 * configure.ac:
7364 * configure: Regenerate.
7365
7366 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
7367
7368 * config/linux/futex.h: New.
7369 * config/linux/arm/mutex.h: New.
7370 * configure.tgt (arm*-*-linux*): Add config path.
7371
7372 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
7373
7374 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
7375
7376 2010-09-23 Tobias Burnus <burnus@net-b.de>
7377
7378 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
7379 Change Fortran datatype to LOGICAL.
7380 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
7381 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
7382
7383 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7384
7385 * configure: Regenerate.
7386
7387 2010-07-26 Jakub Jelinek <jakub@redhat.com>
7388
7389 * libgomp.texi: Add function keyword to a couple of Fortran
7390 interfaces, use integer instead of int for Fortran.
7391
7392 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
7393
7394 * libgomp.texi: Fix spelling and pasto problems throughout.
7395 Adjust prototypes to match code.
7396
7397 2010-07-24 Tobias Burnus <burnus@net-b.de>
7398
7399 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
7400 silence -fwhole-file warning.
7401
7402 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7403
7404 * configure.tgt (*-*-solaris2.[56]*): Removed.
7405
7406 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7407
7408 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
7409 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
7410 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
7411 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
7412 targetting solaris2*.
7413 * configure: Regenerate.
7414 * config.h.in: Regenerate.
7415
7416 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
7417 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
7418 Add libgomp_version_dep.
7419 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
7420 versioning.
7421 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
7422 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
7423 * Makefile.in: Regenerate.
7424
7425 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
7426 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
7427 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
7428 to common block, protected by
7429 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
7430
7431 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
7432
7433 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
7434
7435 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
7436
7437 PR bootstrap/43170
7438 * configure: Regenerate.
7439
7440 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7441
7442 PR other/43620
7443 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
7444 * configure: Regenerate.
7445 * Makefile.in: Regenerate.
7446 * testsuite/Makefile.in: Regenerate.
7447
7448 2010-04-26 Jakub Jelinek <jakub@redhat.com>
7449
7450 PR c/43893
7451 * testsuite/libgomp.c/pr43893.c: New test.
7452 * testsuite/libgomp.c++/pr43893.C: New test.
7453
7454 2010-04-21 Jakub Jelinek <jakub@redhat.com>
7455
7456 PR middle-end/43570
7457 * testsuite/libgomp.fortran/vla8.f90: New test.
7458
7459 2010-04-20 Jakub Jelinek <jakub@redhat.com>
7460
7461 PR libgomp/43706
7462 * config/linux/affinity.c (gomp_init_affinity): Decrease
7463 gomp_available_cpus if affinity mask confines the process to fewer
7464 CPUs.
7465 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
7466 non-NULL, just return gomp_available_cpus.
7467
7468 PR libgomp/43569
7469 * sections.c (gomp_sections_init): Initialize ws->mode.
7470
7471 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
7472
7473 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
7474 not unused bar variable.
7475 * configure: Regenerate.
7476
7477 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7478
7479 * Makefile.in: Regenerate.
7480 * aclocal.m4: Regenerate.
7481 * testsuite/Makefile.in: Regenerate.
7482
7483 2010-03-22 Jakub Jelinek <jakub@redhat.com>
7484
7485 PR libgomp/42942
7486 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
7487 (initialize_env): Adjust callers.
7488 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
7489 when the argument is 0.
7490
7491 * testsuite/libgomp.c/pr42942.c: New test.
7492
7493 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
7494
7495 PR middle-end/42644
7496 PR middle-end/42130
7497 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
7498 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
7499
7500 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7501
7502 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
7503 * testsuite/libgomp.c++/task-6.C: Likewise.
7504
7505 2010-01-28 Steve Ellcey <sje@cup.hp.com>
7506
7507 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
7508
7509 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
7510
7511 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
7512 * configure: Regenerate.
7513
7514 2010-01-26 Jakub Jelinek <jakub@redhat.com>
7515
7516 PR fortran/42866
7517 * testsuite/libgomp.fortran/allocatable5.f90: New test.
7518
7519 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
7520
7521 * configure.ac: Test for executability of GFORTRAN.
7522 * configure: Regenerate.
7523
7524 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7525
7526 * configure: Regenerate.
7527
7528 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
7529
7530 PR libgomp/42602
7531 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
7532
7533 2010-01-03 Richard Guenther <rguenther@suse.de>
7534
7535 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
7536
7537 2009-12-23 Sebastian Pop <sebpop@gmail.com>
7538
7539 * testsuite/libgomp.graphite/pr4118.c: New.
7540
7541 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
7542
7543 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
7544 for darwin, protect the test with require-effective-target tls_runtime.
7545 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
7546
7547 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
7548
7549 PR target/41605
7550 * testsuite/lib/libgomp.exp: Provide -B options to allow for
7551 link spec %s substitutions for static libraries.
7552
7553 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
7554
7555 PR testsuite/42135
7556 * libgomp.graphite/force-parallel-2.c: Reduce array size.
7557
7558 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7559
7560 * Makefile.in: Regenerate.
7561 * configure: Regenerate.
7562 * testsuite/Makefile.in: Regenerate.
7563
7564 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
7565
7566 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
7567 settings for LC_ALL and LANG.
7568
7569 2009-11-25 Jakub Jelinek <jakub@redhat.com>
7570
7571 PR fortran/42162
7572 * testsuite/libgomp.fortran/pr42162.f90: New test.
7573
7574 2009-11-13 Jakub Jelinek <jakub@redhat.com>
7575
7576 PR middle-end/42029
7577 * testsuite/libgomp.c/pr42029.c: New test.
7578
7579 2009-10-26 Jakub Jelinek <jakub@redhat.com>
7580
7581 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
7582 *s. Accept ld version without text in ()s.
7583 * configure: Regenerated.
7584
7585 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
7586
7587 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
7588
7589 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7590
7591 PR libgomp/41418
7592 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
7593 or a hyphen (happens with fortran language disabled).
7594 * configure: Regenerate.
7595
7596 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7597
7598 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
7599 use sed script portable to Solaris /bin/sed for extracting ld
7600 version.
7601 * configure: Regenerate.
7602
7603 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
7604
7605 * testsuite/libgomp.graphite/bounds.c: New test.
7606
7607 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7608
7609 * Makefile.am (libgomp_la_LINK): New.
7610 * Makefile.in: Regenerate.
7611
7612 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7613
7614 * configure.ac (AC_PREREQ): Bump to 2.64.
7615
7616 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7617
7618 * Makefile.am (install-html, install-pdf): Remove.
7619 * Makefile.in: Regenerate.
7620
7621 * Makefile.in: Regenerate.
7622 * aclocal.m4: Regenerate.
7623 * config.h.in: Regenerate.
7624 * configure: Regenerate.
7625 * testsuite/Makefile.in: Regenerate.
7626
7627 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7628
7629 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
7630 * Makefile.in: Regenerate.
7631
7632 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
7633
7634 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
7635 * Makefile.in: Regenerate.
7636
7637 2009-08-19 Tobias Burnus <burnus@net-b.de>
7638
7639 PR fortran/41102
7640 omp_lib.h.in: Fix -std=f95 errors.
7641
7642 2009-08-14 David Edelsohn <edelsohn@gnu.org>
7643
7644 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
7645 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
7646 * testsuite/libgomp.graphite/graphite.exp: New.
7647
7648 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
7649
7650 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
7651 only build.
7652
7653 2009-08-04 David Daney <ddaney@caviumnetworks.com>
7654
7655 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
7656 needed memory barrier semantics.
7657 * config/linux/mips/mutex.h: New file.
7658
7659 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7660
7661 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
7662
7663 2009-07-16 Joseph Myers <joseph@codesourcery.com>
7664
7665 * configure: Regenerate.
7666
7667 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
7668
7669 PR testsuite/40699
7670 PR testsuite/40707
7671 PR testsuite/40709
7672 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
7673 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
7674 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
7675
7676 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
7677
7678 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
7679 options when choosing a multilib.
7680
7681 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
7682
7683 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
7684 ld_library_path. Use add_path. Add just find_libgcc_s to
7685 ld_library_path, not every libgcc multilib directory.
7686 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
7687 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
7688 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
7689 Use add_path.
7690 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
7691
7692 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
7693
7694 * Makefile.am (LTLDFLAGS): Define.
7695 (LINK): Define.
7696 * Makefile.in: Regenerate.
7697
7698 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
7699
7700 PR fortran/39718
7701 * testsuite/libgomp.fortran/fortran.exp: Don't link with
7702 libgfortranbegin, check existence of libgfortran.a instead of
7703 libgfortranbegin.a.
7704
7705 2009-05-20 Jakub Jelinek <jakub@redhat.com>
7706
7707 PR libgomp/40174
7708 * team.c (gomp_thread_start): Destroy thr->release semaphore.
7709 (gomp_free_pool_helper): Likewise.
7710
7711 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
7712 Jakub Jelinek <jakub@redhat.com>
7713
7714 PR fortran/35423
7715 * testsuite/libgomp.fortran/workshare2.f90: New test.
7716
7717 2009-04-09 Nick Clifton <nickc@redhat.com>
7718
7719 * iter.c: Change copyright header to refer to version 3 of the
7720 GNU General Public License with version 3.1 of the GCC Runtime
7721 Library Exception and to point readers at the COPYING3 and
7722 COPYING3.RUNTIME files and the FSF's license web page.
7723 * alloc.c: Likewise.
7724 * barrier.c: Likewise.
7725 * config/bsd/proc.c: Likewise.
7726 * config/linux/affinity.c: Likewise.
7727 * config/linux/alpha/futex.h: Likewise.
7728 * config/linux/bar.c: Likewise.
7729 * config/linux/bar.h: Likewise.
7730 * config/linux/ia64/futex.h: Likewise.
7731 * config/linux/ia64/mutex.h: Likewise.
7732 * config/linux/lock.c: Likewise.
7733 * config/linux/mips/futex.h: Likewise.
7734 * config/linux/mutex.c: Likewise.
7735 * config/linux/mutex.h: Likewise.
7736 * config/linux/powerpc/futex.h: Likewise.
7737 * config/linux/proc.c: Likewise.
7738 * config/linux/ptrlock.c: Likewise.
7739 * config/linux/ptrlock.h: Likewise.
7740 * config/linux/s390/futex.h: Likewise.
7741 * config/linux/sem.c: Likewise.
7742 * config/linux/sem.h: Likewise.
7743 * config/linux/sparc/futex.h: Likewise.
7744 * config/linux/wait.h: Likewise.
7745 * config/linux/x86/futex.h: Likewise.
7746 * config/mingw32/proc.c: Likewise.
7747 * config/mingw32/time.c: Likewise.
7748 * config/posix/affinity.c: Likewise.
7749 * config/posix/bar.c: Likewise.
7750 * config/posix/bar.h: Likewise.
7751 * config/posix/lock.c: Likewise.
7752 * config/posix/mutex.h: Likewise.
7753 * config/posix/proc.c: Likewise.
7754 * config/posix/ptrlock.h: Likewise.
7755 * config/posix/sem.c: Likewise.
7756 * config/posix/sem.h: Likewise.
7757 * config/posix/time.c: Likewise.
7758 * config/posix95/lock.c: Likewise.
7759 * critical.c: Likewise.
7760 * env.c: Likewise.
7761 * error.c: Likewise.
7762 * fortran.c: Likewise.
7763 * iter_ull.c: Likewise.
7764 * libgomp.h: Likewise.
7765 * libgomp_f.h.in: Likewise.
7766 * libgomp_g.h: Likewise.
7767 * loop.c: Likewise.
7768 * loop_ull.c: Likewise.
7769 * omp.h.in: Likewise.
7770 * omp_lib.f90.in: Likewise.
7771 * omp_lib.h.in: Likewise.
7772 * ordered.c: Likewise.
7773 * parallel.c: Likewise.
7774 * sections.c: Likewise.
7775 * single.c: Likewise.
7776 * task.c: Likewise.
7777 * team.c: Likewise.
7778 * work.c: Likewise.
7779
7780 2009-04-09 Jakub Jelinek <jakub@redhat.com>
7781
7782 * testsuite/config/default.exp: Change copyright header to refer to
7783 version 3 of the GNU General Public License and to point readers
7784 at the COPYING3 file and the FSF's license web page.
7785
7786 2009-04-08 Jakub Jelinek <jakub@redhat.com>
7787
7788 PR middle-end/39573
7789 * libgomp.c++/pr39573.C: New test.
7790
7791 2009-04-01 Jakub Jelinek <jakub@redhat.com>
7792
7793 PR other/39591
7794 * testsuite/libgomp.c/pr39591-1.c: New test.
7795 * testsuite/libgomp.c/pr39591-2.c: New test.
7796 * testsuite/libgomp.c/pr39591-3.c: New test.
7797
7798 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
7799
7800 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
7801 * testsuite/libgomp.c/atomic-6.c: Ditto.
7802
7803 2009-03-23 Jakub Jelinek <jakub@redhat.com>
7804
7805 PR c/39495
7806 * testsuite/libgomp.c/loop-12.c: New test.
7807 * testsuite/libgomp.c/loop-11.c: New test.
7808 * testsuite/libgomp.c++/loop-11.C: New test.
7809 * testsuite/libgomp.c++/loop-12.C: New test.
7810 * testsuite/libgomp.c++/for-8.C: New test.
7811
7812 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7813
7814 * configure: Regenerate.
7815
7816 2009-02-11 Jakub Jelinek <jakub@redhat.com>
7817
7818 PR middle-end/39154
7819 * testsuite/libgomp.c/pr39154.c: New test.
7820
7821 2009-01-30 Ian Lance Taylor <iant@google.com>
7822
7823 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
7824 libgomp_ld_is_gold. Get gold version number.
7825 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
7826 * configure: Rebuild.
7827
7828 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
7829
7830 * testsuite/lib/libgomp.exp: Add -B option for targets that
7831 use libgfortran.a%s in their specs.
7832
7833 2009-01-07 Jakub Jelinek <jakub@redhat.com>
7834
7835 PR libgomp/38086
7836 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
7837 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
7838 HAVE_AS_SYMVER_DIRECTIVE is not defined.
7839 * configure: Regenerated.
7840 * config.h.in: Likewise.
7841
7842 2008-12-28 Jakub Jelinek <jakub@redhat.com>
7843
7844 PR c++/38650
7845 * testsuite/libgomp.c/pr38650.c: New test.
7846 * testsuite/libgomp.c++/pr38650.C: New test.
7847
7848 2008-12-27 Jakub Jelinek <jakub@redhat.com>
7849
7850 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
7851
7852 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
7853
7854 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
7855
7856 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7857
7858 * configure: Regenerate.
7859
7860 2008-12-08 Jakub Jelinek <jakub@redhat.com>
7861
7862 PR middle-end/36802
7863 * testsuite/libgomp.c/pr36802-1.c: New test.
7864 * testsuite/libgomp.c/pr36802-2.c: New test.
7865 * testsuite/libgomp.c/pr36802-3.c: New test.
7866
7867 2008-12-01 Janis Johnson <janis187@us.ibm.com>
7868
7869 PR libgomp/38270
7870 * config/linux/powerpc/mutex.h: New.
7871
7872 2008-12-01 Jakub Jelinek <jakub@redhat.com>
7873
7874 PR c++/38257
7875 * testsuite/libgomp.c++/for-7.C: New test.
7876
7877 PR c++/38348
7878 * testsuite/libgomp.c++/for-6.C: New test.
7879
7880 2008-11-26 Janis Johnson <janis187@us.ibm.com>
7881
7882 PR testsuite/28870
7883 * testsuite/lib/libgomp.exp: Include new timeout library files.
7884 (libgomp_target_compile): Set timeout value from new proc.
7885
7886 2008-11-13 Steve Ellcey <sje@cup.hp.com>
7887
7888 PR libgomp/37938
7889 * config/linux/ia64/mutex.h: New.
7890
7891 2008-11-04 Tobias Burnus <burnus@net-b.de>
7892
7893 PR libgomp/37935
7894 * libgomp.texi (Runtime library routines, environment variables):
7895 Update for OpenMP version 3.0.
7896
7897 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
7898 Steve Ellcey <sje@cup.hp.com>
7899
7900 * configure: Regenerate for new libtool.
7901 * Makefile.in: Ditto.
7902 * testsuite/Makefile.in: Ditto.
7903
7904 2008-09-19 Jakub Jelinek <jakub@redhat.com>
7905 Andreas Tobler <a.tobler@schweiz.org>
7906
7907 * config/bsd/proc.c: New file.
7908 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
7909 * configure.ac: Check for header <sys/sysctl.h>
7910 * configure: Regenerate.
7911 * config.h.in: Likewise.
7912
7913 2008-09-05 Janis Johnson <janis187@us.ibm.com>
7914
7915 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
7916
7917 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
7918
7919 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
7920 * Makefile.in: Regenerated.
7921 * testsuite/Makefile.in: Regenerated.
7922
7923 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
7924
7925 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
7926 depend on blddir if blddir exists.
7927 (libgomp_target_compile): Likewise.
7928 * testsuite/libgomp.c++/c++.exp: Likewise.
7929 * testsuite/libgomp.fortran/fortran.exp: Likewise.
7930
7931 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7932
7933 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
7934 Do not list GPL as Invariant Section.
7935
7936 2008-07-28 Ilie Garbacea <ilie@mips.com>
7937 Chao-ying Fu <fu@mips.com>
7938
7939 * configure.tgt: Enable futex for MIPS.
7940 * config/linux/mips/futex.h: New file.
7941
7942 2008-07-16 Jakub Jelinek <jakub@redhat.com>
7943
7944 * team.c (gomp_team_end): Free team immediately if it has
7945 just one thread.
7946
7947 2008-07-08 David Edelsohn <edelsohn@gnu.org>
7948
7949 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
7950 * testsuite/libgomp.fortran/fortran.exp: Same.
7951 * testsuite/libgomp.c/c.exp: Same.
7952 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
7953 directory to library path first.
7954
7955 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
7956
7957 * env.c (parse_stacksize): Add cast to avoid warning.
7958 (parse_spincount): Likewise.
7959
7960 2008-06-27 Jakub Jelinek <jakub@redhat.com>
7961
7962 * testsuite/libgomp.c/loop-10.c: New test.
7963 * libgomp.c/loop-3.c (main): Add lastprivate clause.
7964 * libgomp.c++/loop-6.C (main): Likewise.
7965
7966 PR debug/36617
7967 * testsuite/libgomp.c/debug-1.c: New test.
7968
7969 2008-06-19 Jakub Jelinek <jakub@redhat.com>
7970
7971 * testsuite/libgomp.c/nqueens-1.c: New test.
7972
7973 PR c++/36523
7974 * testsuite/libgomp.c++/task-7.C: New function.
7975
7976 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7977
7978 * configure: Regenerate.
7979
7980 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7981
7982 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
7983 mutex when HAVE_SYNC_BUILTINS isn't defined.
7984
7985 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7986
7987 * libgomp.texi (omp_test_lock): Fix typo.
7988
7989 2008-06-12 Tobias Burnus <burnus@net-b.de>
7990
7991 * omp_lib.f90.in: Add "implicit none".
7992
7993 2008-06-12 Jakub Jelinek <jakub@redhat.com>
7994
7995 PR middle-end/36506
7996 * testsuite/libgomp.c/reduction-5.c: New test.
7997
7998 2008-06-11 Jakub Jelinek <jakub@redhat.com>
7999
8000 * libgomp.h (struct gomp_task): Add in_tied_task field.
8001 * task.c (gomp_init_task): Initialize it.
8002 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
8003 unconditionally. Don't call gomp_team_barrier_wake if
8004 current task is implicit or if(0) from implicit and number of
8005 running tasks is equal to nthreads - 1.
8006
8007 PR libgomp/36471
8008 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
8009 omp_get_team_size_8): Fix pastos.
8010
8011 PR libgomp/36469
8012 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
8013 * configure: Regenerated.
8014 * config.h.in: Regenerated.
8015 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
8016 defined.
8017
8018 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
8019
8020 PR bootstrap/36452
8021 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
8022 (GOMP_loop_ull_dynamic_start): Likewise.
8023 (GOMP_loop_ull_guided_start): Likewise.
8024 (GOMP_loop_ull_ordered_static_start): Likewise.
8025 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
8026 (GOMP_loop_ull_ordered_guided_start): Likewise.
8027
8028 2008-06-06 Jakub Jelinek <jakub@redhat.com>
8029 Richard Henderson <rth@redhat.com>
8030 Ulrich Drepper <drepper@redhat.com>
8031 Jakob Blomer <jakob.blomer@ira.uka.de>
8032
8033 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
8034 Substitute also OMP_*LOCK_25*.
8035 * configure: Regenerated.
8036 * config.h.in: Regenerated.
8037 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
8038 ptrlock.c and task.c.
8039 * Makefile.in: Regenerated.
8040 * testsuite/Makefile.in: Regenerated.
8041 * task.c: New file.
8042 * loop_ull.c: New file.
8043 * iter_ull.c: New file.
8044 * libgomp.h: Include ptrlock.h.
8045 (enum gomp_task_kind): New type.
8046 (struct gomp_team): Add task_lock, task_queue, task_count,
8047 task_running_count, single_count fields. Add
8048 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
8049 Remove work_share_lock, generation_mask,
8050 oldest_live_gen, num_live_gen and init_work_shares fields, add
8051 work work_share_list_alloc, work_share_list_free and work_share_chunk
8052 fields. Change work_shares from pointer to pointers into an array.
8053 Change ordered_release field into gomp_sem_t ** from flexible array
8054 member. Add implicit_task and initial_work_shares fields.
8055 Move close to the end of the struct.
8056 (struct gomp_team_state): Add single_count, last_work_share,
8057 active_level and level fields, remove work_share_generation.
8058 (gomp_barrier_handle_tasks): New prototype.
8059 (gomp_finish_task): New inline function.
8060 (struct gomp_work_share): Move chunk_size, end, incr into
8061 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
8062 next_ll fields. Reshuffle fields. Add next_alloc,
8063 next_ws, next_free and inline_ordered_team_ids fields, change
8064 ordered_team_ids into pointer from flexible array member.
8065 Add mode field. Put lock and next into a different cache line
8066 from most of the write-once fields.
8067 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
8068 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
8069 gomp_iter_ull_guided_next): New prototypes.
8070 (gomp_new_icv): New prototype.
8071 (struct gomp_thread): Add thread_pool and task fields.
8072 (struct gomp_thread_pool): New type.
8073 (gomp_new_team): New prototype.
8074 (gomp_team_start): Change type of last argument.
8075 (gomp_new_work_share): Removed.
8076 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
8077 (gomp_work_share_init_done): New static inline.
8078 (gomp_throttled_spin_count_var, gomp_available_cpus,
8079 gomp_managed_threads): New extern decls.
8080 (gomp_init_task): New prototype.
8081 (gomp_spin_count_var): New extern var decl.
8082 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
8083 or no alias support, or if not PIC.
8084 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
8085 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
8086 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
8087 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
8088 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
8089 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
8090 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
8091 gomp_test_nest_lock_25): New prototypes.
8092 (omp_lock_symver, strong_alias): Define.
8093 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
8094 decls.
8095 (gomp_end_task): New.
8096 (struct gomp_task_icv, gomp_global_icv): New.
8097 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
8098 (struct gomp_task): New.
8099 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
8100 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
8101 (gomp_icv): New.
8102 (gomp_schedule_type): Reorder enum to match
8103 omp_sched_t.
8104 * team.c (struct gomp_thread_start_data): Add thread_pool and task
8105 fields.
8106 (gomp_thread_start): Add gomp_team_barrier_wait call.
8107 For non-nested case remove clearing of docked thread thr fields.
8108 Use pool fields instead of global gomp_* variables. Use
8109 gomp_barrier_wait_last when needed. Initialize ts.active_level.
8110 Create tasks for each member thread.
8111 (free_team): Only destroy team barrier, task_lock here and free it.
8112 (gomp_free_thread): Free last_team if non-NULL.
8113 (gomp_team_end): Call gomp_team_barrier_wait instead of
8114 gomp_barrier_wait. For nested case call one extra
8115 gomp_barrier_wait. Move here some destruction from free_team.
8116 Call free_team on pool->last_team if any, rather than freeing
8117 current team. Destroy work_share_list_free_lock ifndef
8118 HAVE_SYNC_BUILTINS.
8119 (gomp_new_icv): New function.
8120 (gomp_threads, gomp_threads_size, gomp_threads_used,
8121 gomp_threads_dock): Removed.
8122 (gomp_thread_destructor): New variable.
8123 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
8124 functions.
8125 (gomp_team_start): Create new pool if current thread doesn't have
8126 one. Use pool fields instead of global gomp_* variables.
8127 Initialize thread_pool field for new threads. Clear single_count.
8128 Change last argument from ws to team, don't create
8129 new team, set ts.work_share to &team->work_shares[0] and clear
8130 ts.last_work_share. Don't clear ts.work_share_generation.
8131 If number of threads changed, adjust atomically gomp_managed_threads.
8132 Use gomp_init_task instead of gomp_new_task,
8133 set thr->task to the corresponding implicit_task array entry.
8134 Create tasks for each member thread. Initialize ts.level.
8135 (initialize_team): Call pthread_key_create on
8136 gomp_thread_destructor.
8137 (team_destructor): New function.
8138 (new_team): Removed.
8139 (gomp_new_team): New function.
8140 (free_team): Free gomp_work_share blocks chained through next_alloc,
8141 instead of freeing work_shares and destroying work_share_lock.
8142 (gomp_team_end): Call gomp_fini_work_share. If number of threads
8143 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
8144 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
8145 of gomp_barrier_wait.
8146 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
8147 instead of gomp_barrier_wait. Call gomp_work_share_init_done
8148 if gomp_work_share_start returned true. Don't unlock ws->lock.
8149 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
8150 of gomp_barrier_wait.
8151 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
8152 gomp_work_share_init_done if gomp_work_share_start returned true.
8153 Don't unlock ws->lock.
8154 * work.c: Include stddef.h.
8155 (free_work_share): Use work_share_list_free_lock instead
8156 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
8157 Call gomp_fini_work_share and then either free ws if orphaned, or
8158 put it into work_share_list_free list of the current team.
8159 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
8160 functions.
8161 (gomp_work_share_start, gomp_work_share_end,
8162 gomp_work_share_end_nowait): Rewritten.
8163 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
8164 (openmp_version): Set to 200805.
8165 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
8166 omp_sched_guided, omp_sched_auto): New parameters.
8167 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
8168 omp_set_max_active_levels, omp_get_max_active_levels,
8169 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
8170 omp_get_active_level): New interfaces.
8171 * omp_lib.h.in (openmp_version): Set to 200805.
8172 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
8173 omp_sched_guided, omp_sched_auto): New parameters.
8174 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
8175 omp_set_max_active_levels, omp_get_max_active_levels,
8176 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
8177 omp_get_active_level): New externals.
8178 * loop.c: Include limits.h.
8179 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
8180 GFS_AUTO.
8181 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
8182 Likewise. Use gomp_icv.
8183 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
8184 ts.static_trip here.
8185 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
8186 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
8187 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
8188 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
8189 don't unlock ws->lock, otherwise lock it.
8190 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
8191 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
8192 (gomp_parallel_loop_start): Call gomp_new_team instead of
8193 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
8194 Adjust gomp_team_start caller. Pass 0 as second argument to
8195 gomp_resolve_num_threads.
8196 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
8197 If adding ws->chunk_size nthreads + 1 times after end won't
8198 overflow, set ws->mode to 1.
8199 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
8200 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
8201 GOMP_loop_ull_ordered_static_start,
8202 GOMP_loop_ull_ordered_dynamic_start,
8203 GOMP_loop_ull_ordered_guided_start,
8204 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
8205 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
8206 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
8207 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
8208 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
8209 prototypes.
8210 * libgomp.map: Export lock routines also @@OMP_2.0.
8211 (GOMP_loop_ordered_dynamic_first,
8212 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
8213 GOMP_loop_ordered_static_first): Remove.
8214 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
8215 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
8216 GOMP_loop_ull_ordered_dynamic_next,
8217 GOMP_loop_ull_ordered_dynamic_start,
8218 GOMP_loop_ull_ordered_guided_next,
8219 GOMP_loop_ull_ordered_guided_start,
8220 GOMP_loop_ull_ordered_runtime_next,
8221 GOMP_loop_ull_ordered_runtime_start,
8222 GOMP_loop_ull_ordered_static_next,
8223 GOMP_loop_ull_ordered_static_start,
8224 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
8225 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
8226 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
8227 (omp_set_schedule, omp_get_schedule,
8228 omp_get_thread_limit, omp_set_max_active_levels,
8229 omp_get_max_active_levels, omp_get_level,
8230 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
8231 omp_set_schedule_, omp_set_schedule_8_,
8232 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
8233 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
8234 omp_get_max_active_levels_, omp_get_level_,
8235 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
8236 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
8237 New exports @@OMP_3.0.
8238 * omp.h.in (omp_sched_t): New type.
8239 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
8240 omp_set_max_active_levels, omp_get_max_active_levels,
8241 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
8242 omp_get_active_level): New prototypes.
8243 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
8244 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
8245 gomp_thread_limit_var, gomp_remaining_threads_count,
8246 gomp_remaining_threads_lock): New variables.
8247 (parse_spincount): New function.
8248 (initialize_env): Call gomp_init_num_threads unconditionally.
8249 Initialize gomp_available_cpus. Call parse_spincount,
8250 initialize gomp_{,throttled_}spin_count_var
8251 depending on presence and value of OMP_WAIT_POLICY and
8252 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
8253 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
8254 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
8255 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
8256 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
8257 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
8258 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
8259 (gomp_global_icv): New.
8260 (parse_schedule): Use it. Parse "auto".
8261 (omp_set_num_threads): Use gomp_icv.
8262 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
8263 Likewise.
8264 (omp_get_max_threads): Move from parallel.c.
8265 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
8266 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
8267 add ialias.
8268 (parse_stacksize, parse_wait_policy): New functions.
8269 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
8270 both wrappers for compatibility and new locks.
8271 (omp_set_schedule, omp_get_schedule,
8272 omp_get_thread_limit, omp_set_max_active_levels,
8273 omp_get_max_active_levels, omp_get_level,
8274 omp_get_ancestor_thread_num, omp_get_team_size,
8275 omp_get_active_level): New ialias_redirect.
8276 (omp_set_schedule_, omp_set_schedule_8_,
8277 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
8278 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
8279 omp_get_max_active_levels_, omp_get_level_,
8280 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
8281 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
8282 New functions.
8283 * parallel.c: Include limits.h.
8284 (gomp_resolve_num_threads): Add count argument. Rewritten.
8285 (GOMP_parallel_start): Call gomp_new_team and pass that as last
8286 argument to gomp_team_start. Pass 0 as second argument to
8287 gomp_resolve_num_threads.
8288 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
8289 if gomp_thread_limit_var != ULONG_MAX.
8290 (omp_in_parallel): Implement using ts.active_level.
8291 (omp_get_max_threads): Move to env.c.
8292 (omp_get_level, omp_get_ancestor_thread_num,
8293 omp_get_team_size, omp_get_active_level): New functions,
8294 add ialias.
8295 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
8296 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
8297 gomp_iter_dynamic_next instead of the _locked variant and don't take
8298 lock around it, otherwise acquire it before calling
8299 gomp_iter_dynamic_next_locked.
8300 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
8301 gomp_iter_dynamic_next instead of the _locked variant and don't take
8302 lock around it.
8303 (GOMP_parallel_sections_start): Call gomp_new_team instead of
8304 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
8305 Adjust gomp_team_start caller. Pass count as second argument to
8306 gomp_resolve_num_threads, don't adjust num_threads after the call.
8307 Use gomp_icv.
8308 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
8309 ws->chunk_size by incr.
8310 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
8311 code.
8312 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
8313 types.
8314 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
8315 (omp_check_defines): Check even the compat defines.
8316 * config/linux/ptrlock.c: New file.
8317 * config/linux/ptrlock.h: New file.
8318 * config/linux/wait.h: New file.
8319 * config/posix/ptrlock.c: New file.
8320 * config/posix/ptrlock.h: New file.
8321 * config/linux/bar.h (gomp_team_barrier_wait,
8322 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
8323 (gomp_team_barrier_set_task_pending,
8324 gomp_team_barrier_clear_task_pending,
8325 gomp_team_barrier_set_waiting_for_tasks,
8326 gomp_team_barrier_waiting_for_tasks,
8327 gomp_team_barrier_done): New inlines.
8328 (gomp_barrier_t): Rewritten.
8329 (gomp_barrier_state_t): New typedef.
8330 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
8331 gomp_barrier_wait_start): Rewritten.
8332 (gomp_barrier_wait_end): Change second argument to
8333 gomp_barrier_state_t.
8334 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
8335 inlines.
8336 * config/linux/bar.c: Include wait.h instead of libgomp.h and
8337 futex.h.
8338 (gomp_barrier_wait_end): Rewritten.
8339 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
8340 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
8341 * config/posix/bar.h (gomp_barrier_t): Add generation field.
8342 (gomp_barrier_state_t): New typedef.
8343 (gomp_team_barrier_wait,
8344 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
8345 (gomp_barrier_wait_start): Or all but low 2 bits from generation
8346 into the return value. Return gomp_barrier_state_t.
8347 (gomp_team_barrier_set_task_pending,
8348 gomp_team_barrier_clear_task_pending,
8349 gomp_team_barrier_set_waiting_for_tasks,
8350 gomp_team_barrier_waiting_for_tasks,
8351 gomp_team_barrier_done): New inlines.
8352 (gomp_barrier_wait_end): Change second argument to
8353 gomp_barrier_state_t.
8354 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
8355 inlines.
8356 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
8357 (gomp_barrier_wait_end): Change second argument to
8358 gomp_barrier_state_t.
8359 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
8360 gomp_team_barrier_wake): New functions.
8361 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
8362 futex.h.
8363 (gomp_futex_wake, gomp_futex_wait): New variables.
8364 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
8365 * config/linux/lock.c: Rewrite to make locks task owned,
8366 for backwards compatibility provide the old entrypoints
8367 if symbol versioning. Include wait.h instead of libgomp.h and
8368 futex.h.
8369 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
8370 * config/posix95/lock.c: Rewrite to make locks task owned,
8371 for backwards compatibility provide the old entrypoints
8372 if symbol versioning.
8373 * config/posix/lock.c: Rewrite to make locks task owned,
8374 for backwards compatibility provide the old entrypoints
8375 if symbol versioning.
8376 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
8377 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
8378 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
8379 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
8380 (sys_futex0): Return error code.
8381 (futex_wake, futex_wait): If ENOSYS was returned, clear
8382 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
8383 (cpu_relax, atomic_write_barrier): New static inlines.
8384 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
8385 (futex_wake, futex_wait): If ENOSYS was returned, clear
8386 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
8387 (cpu_relax, atomic_write_barrier): New static inlines.
8388 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
8389 (sys_futex0): Return error code.
8390 (futex_wake, futex_wait): If ENOSYS was returned, clear
8391 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
8392 (cpu_relax, atomic_write_barrier): New static inlines.
8393 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
8394 (sys_futex0): Return error code.
8395 (futex_wake, futex_wait): If ENOSYS was returned, clear
8396 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
8397 (cpu_relax, atomic_write_barrier): New static inlines.
8398 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
8399 (sys_futex0): Return error code.
8400 (futex_wake, futex_wait): If ENOSYS was returned, clear
8401 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
8402 (cpu_relax, atomic_write_barrier): New static inlines.
8403 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
8404 (sys_futex0): Return error code.
8405 (futex_wake, futex_wait): If ENOSYS was returned, clear
8406 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
8407 (cpu_relax, atomic_write_barrier): New static inlines.
8408 * config/linux/sem.c: Include wait.h instead of libgomp.h and
8409 futex.h.
8410 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
8411 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
8412 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
8413 types.
8414 (omp_nest_lock_t): Change owner into void *, add lock field.
8415 * config/posix95/omp-lock.h: Include semaphore.h.
8416 (omp_lock_25_t, omp_nest_lock_25_t): New types.
8417 (omp_lock_t): Use sem_t instead of mutex if semaphores
8418 aren't broken.
8419 (omp_nest_lock_t): Likewise. Change owner to void *.
8420 * config/posix/omp-lock.h: Include semaphore.h.
8421 (omp_lock_25_t, omp_nest_lock_25_t): New types.
8422 (omp_lock_t): Use sem_t instead of mutex if semaphores
8423 aren't broken.
8424 (omp_nest_lock_t): Likewise. Add owner field.
8425
8426 2008-06-06 Jakub Jelinek <jakub@redhat.com>
8427
8428 * testsuite/libgomp.c/collapse-1.c: New test.
8429 * testsuite/libgomp.c/collapse-2.c: New test.
8430 * testsuite/libgomp.c/collapse-3.c: New test.
8431 * testsuite/libgomp.c/icv-1.c: New test.
8432 * testsuite/libgomp.c/icv-2.c: New test.
8433 * testsuite/libgomp.c/lib-2.c: New test.
8434 * testsuite/libgomp.c/lock-1.c: New test.
8435 * testsuite/libgomp.c/lock-2.c: New test.
8436 * testsuite/libgomp.c/lock-3.c: New test.
8437 * testsuite/libgomp.c/loop-4.c: New test.
8438 * testsuite/libgomp.c/loop-5.c: New test.
8439 * testsuite/libgomp.c/loop-6.c: New test.
8440 * testsuite/libgomp.c/loop-7.c: New test.
8441 * testsuite/libgomp.c/loop-8.c: New test.
8442 * testsuite/libgomp.c/loop-9.c: New test.
8443 * testsuite/libgomp.c/nested-3.c: New test.
8444 * testsuite/libgomp.c/nestedfn-6.c: New test.
8445 * testsuite/libgomp.c/sort-1.c: New test.
8446 * testsuite/libgomp.c/task-1.c: New test.
8447 * testsuite/libgomp.c/task-2.c: New test.
8448 * testsuite/libgomp.c/task-3.c: New test.
8449 * testsuite/libgomp.c/task-4.c: New test.
8450 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
8451 to C++ testsuite default compiler options.
8452 * testsuite/libgomp.c++/collapse-1.C: New test.
8453 * testsuite/libgomp.c++/collapse-2.C: New test.
8454 * testsuite/libgomp.c++/ctor-10.C: New test.
8455 * testsuite/libgomp.c++/for-1.C: New test.
8456 * testsuite/libgomp.c++/for-2.C: New test.
8457 * testsuite/libgomp.c++/for-3.C: New test.
8458 * testsuite/libgomp.c++/for-4.C: New test.
8459 * testsuite/libgomp.c++/for-5.C: New test.
8460 * testsuite/libgomp.c++/loop-8.C: New test.
8461 * testsuite/libgomp.c++/loop-9.C: New test.
8462 * testsuite/libgomp.c++/loop-10.C: New test.
8463 * testsuite/libgomp.c++/task-1.C: New test.
8464 * testsuite/libgomp.c++/task-2.C: New test.
8465 * testsuite/libgomp.c++/task-3.C: New test.
8466 * testsuite/libgomp.c++/task-4.C: New test.
8467 * testsuite/libgomp.c++/task-5.C: New test.
8468 * testsuite/libgomp.c++/task-6.C: New test.
8469 * testsuite/libgomp.fortran/allocatable1.f90: New test.
8470 * testsuite/libgomp.fortran/allocatable2.f90: New test.
8471 * testsuite/libgomp.fortran/allocatable3.f90: New test.
8472 * testsuite/libgomp.fortran/allocatable4.f90: New test.
8473 * testsuite/libgomp.fortran/collapse1.f90: New test.
8474 * testsuite/libgomp.fortran/collapse2.f90: New test.
8475 * testsuite/libgomp.fortran/collapse3.f90: New test.
8476 * testsuite/libgomp.fortran/collapse4.f90: New test.
8477 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
8478 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
8479 * testsuite/libgomp.fortran/lib4.f90: New test.
8480 * testsuite/libgomp.fortran/lock-1.f90: New test.
8481 * testsuite/libgomp.fortran/lock-2.f90: New test.
8482 * testsuite/libgomp.fortran/nested1.f90: New test.
8483 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
8484 * testsuite/libgomp.fortran/strassen.f90: New test.
8485 * testsuite/libgomp.fortran/tabs1.f90: New test.
8486 * testsuite/libgomp.fortran/tabs2.f: New test.
8487 * testsuite/libgomp.fortran/task1.f90: New test.
8488 * testsuite/libgomp.fortran/task2.f90: New test.
8489 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
8490 * testsuite/libgomp.fortran/vla5.f90: Likewise.
8491 * testsuite/libgomp.c/pr26943-2.c: Likewise.
8492 * testsuite/libgomp.c/pr26943-3.c: Likewise.
8493 * testsuite/libgomp.c/pr26943-4.c: Likewise.
8494
8495 2008-05-23 Jakub Jelinek <jakub@redhat.com>
8496
8497 PR c++/36308
8498 * testsuite/libgomp.c++/ctor-11.C: New test.
8499 * testsuite/libgomp.c++/ctor-12.C: New test.
8500
8501 2008-05-15 Janis Johnson <janis187@us.ibm.com>
8502
8503 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
8504
8505 2008-05-07 Jakub Jelinek <jakub@redhat.com>
8506
8507 PR middle-end/36106
8508 * testsuite/libgomp.c/atomic-5.c: New test.
8509 * testsuite/libgomp.c/atomic-6.c: New test.
8510 * testsuite/libgomp.c/autopar-1.c: New test.
8511
8512 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8513
8514 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
8515 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
8516 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
8517 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
8518 * configure: Regenerate.
8519 * Makefile.in, testsuite/Makefile.in: Likewise.
8520
8521 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
8522
8523 PR bootstrap/35457
8524 * aclocal.m4: Regenerate.
8525 * configure: Regenerate.
8526
8527 2008-03-18 Jakub Jelinek <jakub@redhat.com>
8528
8529 PR middle-end/35611
8530 * testsuite/libgomp.c/atomic-4.c: New test.
8531
8532 PR libgomp/35625
8533 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
8534 (gomp_iter_guided_next): Likewise.
8535 * testsuite/libgomp.c/pr35625.c: New test.
8536
8537 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8538
8539 * aclocal.m4: Regenerate.
8540 * configure: Likewise.
8541 * Makefile.in: Likewise.
8542 * testsuite/Makefile.in: Likewise.
8543
8544 2008-03-13 Jakub Jelinek <jakub@redhat.com>
8545
8546 PR middle-end/35185
8547 * testsuite/libgomp.c++/pr35185.C: New test.
8548
8549 2008-03-12 Jakub Jelinek <jakub@redhat.com>
8550
8551 PR middle-end/35549
8552 * testsuite/libgomp.c/pr35549.c: New test.
8553
8554 2008-03-06 Jakub Jelinek <jakub@redhat.com>
8555
8556 * testsuite/libgomp.c/atomic-3.c: New test.
8557
8558 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8559
8560 PR fortran/33197
8561 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
8562 .F08 file suffixes.
8563
8564 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
8565
8566 PR libgomp/33131
8567 * configure.ac: Add ACX_HEADER_STRING.
8568 * env.c: Include strings.h.
8569 * aclocal.m4: Regenerate.
8570 * config.h.in: Regenerate.
8571 * configure: Regenerate.
8572 * Makefile.in: Regenerate.
8573 * testsuite/Makefile.in: Regenerate.
8574
8575 2008-02-15 Jakub Jelinek <jakub@redhat.com>
8576
8577 PR middle-end/35196
8578 * testsuite/libgomp.c/pr35196.c: New test.
8579
8580 PR middle-end/35130
8581 * testsuite/libgomp.fortran/pr35130.f90: New test.
8582 * testsuite/libgomp.c/pr35130.c: New test.
8583
8584 2008-01-25 Jakub Jelinek <jakub@redhat.com>
8585
8586 PR middle-end/33880
8587 * testsuite/libgomp.c/pr33880.c: New test.
8588 * testsuite/libgomp.fortran/pr33880.f90: New test.
8589
8590 2008-01-24 David Edelsohn <edelsohn@gnu.org>
8591
8592 * configure: Regenerate.
8593
8594 2008-01-08 Jakub Jelinek <jakub@redhat.com>
8595
8596 * configure.ac: Move futex checking into ../config/futex.m4.
8597 * configure: Rebuilt.
8598 * aclocal.m4: Rebuilt.
8599 * Makefile.in: Rebuilt.
8600
8601 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
8602 2007-10-15 ../config/tls.m4 change.
8603
8604 2007-12-19 Jakub Jelinek <jakub@redhat.com>
8605
8606 PR c++/34513
8607 * testsuite/libgomp.c/pr34513.c: New test.
8608 * testsuite/libgomp.c++/pr34513.C: New test.
8609
8610 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
8611
8612 PR target/32765
8613 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
8614
8615 2007-12-04 Jakub Jelinek <jakub@redhat.com>
8616
8617 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
8618
8619 2007-12-03 Jakub Jelinek <jakub@redhat.com>
8620
8621 * testsuite/libgomp.c/private-1.c: New test.
8622
8623 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
8624 Paolo Bonzini <bonzini@gnu.org>
8625
8626 * Makefile.am: Use space as vpath separator. Use 'vpath %'
8627 instead of 'VPATH ='.
8628 * Makefile.in: Regenerate.
8629
8630 2007-11-23 Matthias Klose <doko@ubuntu.com>
8631
8632 * configure.ac: Adjust makeinfo version check.
8633 * configure: Regenerate.
8634
8635 2007-11-10 Jakub Jelinek <jakub@redhat.com>
8636
8637 PR fortran/34020
8638 * testsuite/libgomp.fortran/pr34020.f90: New test.
8639
8640 2007-11-06 Jakub Jelinek <jakub@redhat.com>
8641
8642 PR c++/33894
8643 * testsuite/libgomp.c++/atomic-1.C: New test.
8644
8645 2007-10-25 Jakub Jelinek <jakub@redhat.com>
8646
8647 PR libgomp/33275
8648 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
8649 Make x and y integers rather than (implicit) reals. Add private (j)
8650 clause to the last omp parallel.
8651
8652 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
8653
8654 * configure: Regenerate following changes to ../config/tls.m4.
8655
8656 2007-09-28 Jakub Jelinek <jakub@redhat.com>
8657
8658 * testsuite/libgomp.fortran/stack.f90: New test.
8659
8660 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
8661
8662 * config/mingw32/proc.c: New file.
8663
8664 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
8665
8666 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
8667 (main): Use __get_cpuid to get i386 target fetaures.
8668 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
8669 (main): Use __get_cpuid to get x86_64 target fetaures.
8670
8671 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
8672
8673 PR target/32765
8674 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
8675 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
8676
8677 2007-07-12 Jakub Jelinek <jakub@redhat.com>
8678
8679 PR fortran/32550
8680 * testsuite/libgomp.fortran/pr32550.f90: New test.
8681 * testsuite/libgomp.fortran/crayptr2.f90: New test.
8682
8683 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
8684
8685 * aclocal.m4: Regenerated.
8686
8687 2007-07-05 Tobias Burnus <burnus@net-b.de>
8688
8689 PR fortran/32359
8690 * testsuite/libgomp.fortran/pr32359.f90: New.
8691
8692 2007-07-02 Jakub Jelinek <jakub@redhat.com>
8693
8694 PR libgomp/32468
8695 * sections.c (GOMP_parallel_sections_start): Only decrease
8696 number of threads to COUNT if dyn_var is true.
8697 * testsuite/libgomp.c/pr32468.c: New test.
8698
8699 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8700
8701 PR libgomp/26308
8702 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
8703
8704 2007-06-21 Jakub Jelinek <jakub@redhat.com>
8705
8706 PR middle-end/32362
8707 * testsuite/libgomp.c/pr32362-1.c: New test.
8708 * testsuite/libgomp.c/pr32362-2.c: New test.
8709 * testsuite/libgomp.c/pr32362-3.c: New test.
8710
8711 2007-06-07 Jakub Jelinek <jakub@redhat.com>
8712
8713 * team.c (gomp_team_start): Fix setting up thread_attr
8714 stack size.
8715
8716 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
8717
8718 * configure: Regenerate.
8719
8720 2007-05-23 Steve Ellcey <sje@cup.hp.com>
8721
8722 * Makefile.in: Regenerate.
8723 * configure: Regenerate.
8724 * aclocal.m4: Regenerate.
8725 * testsuite/Makefile.in: Regenerate.
8726
8727 2007-05-04 Jakub Jelinek <jakub@redhat.com>
8728
8729 * config/linux/proc.c: New file.
8730
8731 PR libgomp/28482
8732 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
8733
8734 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
8735
8736 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
8737
8738 2007-04-16 Matthias Klose <doko@debian.org>
8739
8740 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
8741 flags if not building with -m64.
8742 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
8743 flag for i?86-*-* targets, if current target matches -m64.
8744
8745 2007-04-14 Steve Ellcey <sje@cup.hp.com>
8746
8747 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
8748 * Makefile.in: Regenerate.
8749
8750 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8751
8752 PR testsuite/31369
8753 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
8754 ld_library_path.
8755 * testsuite/libgomp.fortran/fortran.exp: Likewise.
8756
8757 2007-04-04 Jakub Jelinek <jakub@redhat.com>
8758
8759 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
8760 decls.
8761 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
8762 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
8763 (parse_affinity): New function.
8764 (initialize_env): Call it and gomp_init_affinity.
8765 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
8766 create new pthread_attr_t and call gomp_init_thread_affinity
8767 on it for each thread before passing the attribute to pthread_create.
8768 * config/linux/affinity.c: New file.
8769 * config/posix/affinity.c: New file.
8770 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
8771 * configure: Rebuilt.
8772 * config.h.in: Rebuilt.
8773 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
8774 * Makefile.in: Rebuilt.
8775
8776 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
8777
8778 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
8779 *-*-darwin*.
8780 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
8781 and use it if found.
8782
8783 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
8784
8785 * testsuite/config/default.exp: New file.
8786 * testsuite/lib/libgomp.exp: New file.
8787 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
8788 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
8789 load_lib *, load_gcc_lib *): Move to libgomp.exp.
8790 (libgomp_load): Remove.
8791 * testsuite/lib/libgomp.exp (libgomp_init): Compute
8792 always_ld_library_path, not ld_library_path. Set additional_flags
8793 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
8794 (target_compile): Do not call libgomp_init. Append lang_library_path
8795 and lang_link_flags to options.
8796 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
8797 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
8798 here.
8799 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
8800 always_ld_library_path. Set LD_LIBRARY_PATH here.
8801 * testsuite/libgomp.fortran/fortran.exp: Ditto.
8802 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
8803 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
8804 CX8 flag.
8805 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
8806 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
8807 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
8808 * testsuite/libgomp.c/pr29947-1.c: Ditto.
8809 * testsuite/libgomp.c/atomic-10.c: Ditto.
8810
8811 2007-03-21 Jakub Jelinek <jakub@redhat.com>
8812
8813 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
8814 dg-final cleanup-modules line.
8815 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
8816 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
8817 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
8818 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
8819 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
8820 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
8821 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
8822
8823 2007-03-18 Andreas Schwab <schwab@suse.de>
8824
8825 * acinclude.m4: Adjust regular expression for ld version
8826 extraction.
8827 * configure: Regenerate.
8828
8829 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
8830
8831 * Makefile.am: Add install-pdf target as copied from
8832 automake v1.10 rules.
8833 * Makefile.in: Regenerate
8834
8835 2007-02-07 Jakub Jelinek <jakub@redhat.com>
8836
8837 PR libgomp/28486
8838 * configure: Regenerate.
8839
8840 PR c++/30703
8841 * testsuite/libgomp.c++/pr30703.C: New test.
8842
8843 2007-02-02 Jakub Jelinek <jakub@redhat.com>
8844
8845 Revert:
8846 2006-07-05 Eric Christopher <echristo@apple.com>
8847 * configure.ac: Depend addition of -pthread on host OS.
8848 * configure: Regenerate.
8849
8850 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8851
8852 * libgomp.texi: Fix spacing after abbreviations.
8853
8854 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
8855
8856 PR libgomp/30546
8857 * configure.ac: Add check for makeinfo
8858 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
8859 if an appropiate version of makeinfo is found.
8860 * aclocal.m4: Regenerated.
8861 * configure: Regenerated.
8862 * Makefile.in: Regenerated.
8863 * testsuite/Makefile.in: Regenerated.
8864
8865 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
8866
8867 PR libgomp/30540
8868 * libgomp.texi: More about implementation-dependent settings.
8869
8870 2007-01-26 Tobias Burnus <burnus@net-b.de>
8871
8872 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
8873
8874 2007-01-24 Jakub Jelinek <jakub@redhat.com>
8875
8876 PR middle-end/30494
8877 * testsuite/libgomp.c/pr30494.c: New test.
8878
8879 2007-01-15 Tom Tromey <tromey@redhat.com>
8880
8881 * configure: Rebuilt.
8882 * configure.ac: Fixed comment.
8883
8884 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
8885
8886 * libgomp.texi: Document implementation specific default values of
8887 environment variables.
8888
8889 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
8890
8891 PR libgomp/28209
8892 * libgomp.texi: New file.
8893 * configure.ac: Add --enable-generated-files-in-srcdir option.
8894 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
8895 files to srcdir.
8896 * Makefile.in: Regenerated.
8897 * config.h.in: Regenerated.
8898 * testsuite/Makefile.in: Regenerated.
8899 * NOTES: Removed.
8900
8901 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
8902
8903 PR libgomp/29949
8904 * env.c (omp_set_num_threads): Set illegal thread count to 1.
8905
8906 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
8907
8908 * configure: Regenerate.
8909
8910 2006-12-04 Jakub Jelinek <jakub@redhat.com>
8911
8912 PR libgomp/29947
8913 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
8914 start if there shouldn't be any loop iterations.
8915 (gomp_loop_ordered_static_start): Remove start == end test.
8916 * testsuite/libgomp.c/pr29947-1.c: New test.
8917 * testsuite/libgomp.c/pr29947-2.c: New test.
8918
8919 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
8920
8921 * configure.tgt: Force initial-exec TLS model on Linux only.
8922
8923 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
8924
8925 * configure: Regenerated.
8926
8927 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
8928
8929 * env.c (parse_schedule): Reject out of range values.
8930 (parse_unsigned_long): Reject out of range, negative or zero values.
8931
8932 2006-10-29 Jakub Jelinek <jakub@redhat.com>
8933
8934 PR fortran/29629
8935 * testsuite/libgomp.fortran/pr29629.f90: New test.
8936
8937 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
8938
8939 PR libgomp/29494
8940 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
8941 * config/posix95: New directory.
8942 * config/posix95/omp-lock.h: New file.
8943 * config/posix95/lock.c: Likewise.
8944
8945 2006-10-14 Geoffrey Keating <geoffk@apple.com>
8946
8947 * aclocal.m4: Regenerate.
8948 * configure: Regenerate.
8949
8950 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
8951
8952 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
8953 '<' to '<='.
8954
8955 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
8956
8957 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
8958 test.
8959 * configure: Regenerate.
8960 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
8961
8962 2006-09-26 Jakub Jelinek <jakub@redhat.com>
8963
8964 PR middle-end/25261
8965 PR middle-end/28790
8966 * testsuite/libgomp.c/nestedfn-4.c: New test.
8967 * testsuite/libgomp.c/nestedfn-5.c: New test.
8968 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
8969
8970 PR fortran/29097
8971 * testsuite/libgomp.fortran/condinc1.f: New test.
8972 * testsuite/libgomp.fortran/condinc2.f: New test.
8973 * testsuite/libgomp.fortran/condinc3.f90: New test.
8974 * testsuite/libgomp.fortran/condinc4.f90: New test.
8975 * testsuite/libgomp.fortran/condinc1.inc: New file.
8976
8977 2006-09-18 Tom Tromey <tromey@redhat.com>
8978
8979 * configure: Rebuilt.
8980
8981 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
8982
8983 PR c/28768
8984 PR preprocessor/14634
8985 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
8986 to AC_DEFINE.
8987 * configure: Regenerate.
8988
8989 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
8990
8991 * testsuite/libgomp.fortran/reduction3.f90: Change
8992 -2147483648 to -huge(i)-1 to avoid overflow.
8993 * testsuite/libgomp.fortran/reduction4.f90: Change
8994 Z'ffffffff' to not(0) to avoid overflow.
8995
8996 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
8997
8998 PR libgomp/25938
8999 * Makefile.am (libsubincludedir): New.
9000 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
9001 * Makefile.in: Regenerate.
9002
9003 2006-08-17 Jakub Jelinek <jakub@redhat.com>
9004
9005 PR libgomp/28725
9006 * env.c: Include ctype.h.
9007 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
9008 leading and/or trailing whitespace and compare strings case
9009 insensitively.
9010
9011 2006-07-16 Jakub Jelinek <jakub@redhat.com>
9012
9013 PR fortran/28390
9014 * testsuite/libgomp.fortran/pr28390.f: New test.
9015
9016 2006-07-05 Eric Christopher <echristo@apple.com>
9017
9018 * configure.ac: Depend addition of -pthread on host OS.
9019 * configure: Regenerate.
9020
9021 2006-06-21 Jakub Jelinek <jakub@redhat.com>
9022
9023 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
9024 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
9025 defined.
9026
9027 2006-06-20 Jakub Jelinek <jakub@redhat.com>
9028
9029 PR libgomp/26175
9030 PR libgomp/26477
9031 * configure.ac: If neither --enable-linux-futex nor
9032 --disable-linux-futex is passed, determine the default by checking
9033 for compiling and/or running against NPTL. With --enable-linux-futex,
9034 check if SYS_gettid and SYS_futex are defined.
9035 * configure: Rebuilt.
9036
9037 2006-06-14 Richard Henderson <rth@redhat.com>
9038
9039 PR libgomp/28008
9040 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
9041 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
9042
9043 2006-06-09 Richard Henderson <rth@redhat.com>
9044
9045 * env.c (gomp_nthreads_var): Change to unsigned long.
9046 (gomp_run_sched_chunk): Likewise.
9047 (parse_unsigned_long): Rename from parse_num_threads and generalize.
9048 (initialize_env): Initialize gomp_thread_attr.
9049 * libgomp.h (gomp_nthreads_var): Update decl.
9050 (gomp_run_sched_chunk): Likewise.
9051 (gomp_thread_attr): Declare.
9052 * team.c (gomp_thread_attr): Export.
9053 (initialize_team): Don't initialize it.
9054
9055 2006-06-09 Jakub Jelinek <jakub@redhat.com>
9056
9057 PR fortran/27916
9058 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
9059 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
9060
9061 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
9062
9063 * config/mingw32/time.c: New file.
9064 * configure.tgt: Use it.
9065
9066 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
9067
9068 * Makefile.am: Add install-html target. Add install-html to .PHONY
9069 * Makefile.in: Regenerate.
9070
9071 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9072
9073 PR libgomp/27612
9074 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
9075 * testsuite/libgomp.c/critical-1.c: Likewise.
9076 * testsuite/libgomp.c/loop-1.c: Likewise.
9077 * testsuite/libgomp.c/loop-2.c: Likewise.
9078 * testsuite/libgomp.c/single-1.c: Likewise.
9079 * testsuite/libgomp.c/ordered-1.c: Likewise.
9080 * testsuite/libgomp.c/ordered-2.c: Likewise.
9081
9082 2006-05-15 Jakub Jelinek <jakub@redhat.com>
9083
9084 PR middle-end/27416
9085 * libgomp.fortran/pr27416-1.f90: New test.
9086
9087 2006-05-03 Jakub Jelinek <jakub@redhat.com>
9088
9089 PR fortran/27395
9090 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
9091 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
9092
9093 2006-05-02 Jakub Jelinek <jakub@redhat.com>
9094
9095 PR c++/26943
9096 * testsuite/libgomp.c/pr26943-1.c: New test.
9097 * testsuite/libgomp.c/pr26943-2.c: New test.
9098 * testsuite/libgomp.c/pr26943-3.c: New test.
9099 * testsuite/libgomp.c/pr26943-4.c: New test.
9100 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
9101 * testsuite/libgomp.c++/pr26943.C: New test.
9102
9103 2006-05-02 Jakub Jelinek <jakub@redhat.com>
9104
9105 PR middle-end/27337
9106 * testsuite/libgomp.c++/pr27337.C: New test.
9107
9108 2006-04-26 Jakub Jelinek <jakub@redhat.com>
9109
9110 PR c/26171
9111 * testsuite/libgomp.c/pr26171.c: New test.
9112
9113 2006-04-25 Richard Henderson <rth@redhat.com>
9114
9115 PR libgomp/25865
9116 * configure.ac: Use GCC_CHECK_TLS.
9117 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
9118 * Makefile.in, aclocal.m4, configure: Regenerate.
9119
9120 2006-04-10 Matthias Klose <doko@debian.org>
9121
9122 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
9123 directory names containing underscores.
9124
9125 2006-03-21 Jakub Jelinek <jakub@redhat.com>
9126
9127 PR c++/26691
9128 * testsuite/libgomp.c++/pr26691.C: New test.
9129
9130 2006-03-13 Jakub Jelinek <jakub@redhat.com>
9131
9132 * testsuite/libgomp.fortran/retval2.f90: New test.
9133
9134 2006-03-09 Diego Novillo <dnovillo@redhat.com>
9135
9136 * testsuite/libgomp.c++: New directory.
9137
9138 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
9139
9140 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
9141 * config/posix/sem.c: Implement the above.
9142
9143 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
9144
9145 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
9146 define HAVE_BROKEN_POSIX_SEMAPHORES.
9147 * configure: Rebuilt.
9148 * config.h.in: Rebuilt.
9149
9150 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
9151
9152 PR bootstrap/26161
9153 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
9154 for the other pthread check.
9155 * configure: Regenerate.
9156 * config.h.in: Regenerate.
9157
9158 2006-02-15 Jakub Jelinek <jakub@redhat.com>
9159
9160 PR libgomp/25938
9161 PR libgomp/25984
9162 * Makefile.am (fincludedir): New variable.
9163 (nodist_include_HEADERS): Remove Fortran files.
9164 (nodist_finclude_HEADERS): New variable.
9165 * Makefile.in: Regenerated.
9166
9167 2006-02-13 Jakub Jelinek <jakub@redhat.com>
9168
9169 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
9170 Remove tests for returning assumed character length arrays.
9171
9172 2006-02-12 Roger Sayle <roger@eyesopen.com>
9173 John David Anglin <dave@hiauly1.hia.nrc.ca>
9174
9175 PR libgomp/25936
9176 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
9177
9178 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9179
9180 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
9181
9182 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
9183
9184 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
9185 part of LD_LIBRARY_PATH manually.
9186
9187 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
9188
9189 PR libgomp/25852
9190 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
9191 libgomp_init.
9192
9193 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
9194
9195 PR libgomp/25884
9196 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
9197 * configure.ac (PERL): Don't set.
9198 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
9199 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
9200 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
9201 * omp.h.in: Wrap the new configure substitutions with @ characters.
9202 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
9203 * aclocal.m4, configure, Makefile.in: Regenerate.
9204 * mkomp_h.pl: Delete.
9205
9206 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
9207
9208 PR libgomp/25259
9209 * configure.ac: Use GCC_HEADER_STDINT.
9210 * libgomp.h: Include gstdint.h.
9211 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
9212 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
9213
9214 2006-01-24 Richard Henderson <rth@redhat.com>
9215
9216 PR libgomp/25942
9217 * configure.ac: Add AM_MAINTAINER_MODE.
9218 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
9219
9220 2006-01-24 Diego Novillo <dnovillo@redhat.com>
9221
9222 * Makefile.in: Regenerate.
9223 * testsuite/Makefile.in: Regenerate.
9224 * aclocal.m4: Regenerate.
9225
9226 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
9227
9228 * config/posix/proc.c: Conditional include of sys/loadavg.h for
9229 Solaris.
9230 * configure.ac: Add check for loadavg.h.
9231 (link_gomp): Adjust comment.
9232 * configure: Regenerate.
9233 * config.h.in: Regenerate.
9234
9235 2006-01-21 Steve Ellcey <sje@cup.hp.com>
9236
9237 PR libgomp/25877
9238 * configure.ac: Remove check for alloca.h.
9239 * configure: Regenerate.
9240 * config.h.in: Regenerate.
9241 * libgomp.h: define gomp_alloca to be __builtin_alloca.
9242 * team.c: Remove use of alloca.h.
9243 Call gomp_alloca instead of alloca.
9244
9245 2006-01-20 Steve Ellcey <sje@cup.hp.com>
9246
9247 PR libgomp/25877
9248 * team.c: Add include of alloca.h.
9249 * configure.ac: Add check for alloca.h.
9250 * configure: Regenerate.
9251 * config.h.in: Regenerate.
9252
9253 2006-01-17 Jakub Jelinek <jakub@redhat.com>
9254
9255 PR fortran/25219
9256 * testsuite/libgomp.fortran/pr25219.f90: New test.
9257
9258 2005-12-05 Uros Bizjak <uros@kss-loka.si>
9259
9260 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
9261 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
9262 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
9263 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
9264 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
9265 testsuite/libgomp.fortran/threadprivate1.f90,
9266 testsuite/libgomp.fortran/threadprivate2.f90,
9267 testsuite/libgomp.fortran/threadprivate3.f90,
9268 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
9269 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
9270 testsuite/libgomp.fortran/omp_parse3.f90: Change required
9271 effective-target to TLS runtime.
9272
9273 * testsuite/libgomp.fortran/pr25162.f: Require
9274 effective-target TLS runtime.
9275
9276 2005-12-01 Jakub Jelinek <jakub@redhat.com>
9277
9278 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
9279 * testsuite/libgomp.c/nestedfn-3.c: New test.
9280
9281 2005-11-30 Jakub Jelinek <jakub@redhat.com>
9282
9283 PR fortran/25162
9284 * testsuite/libgomp.fortran/pr25162.f: New test.
9285
9286 2005-11-28 Jakub Jelinek <jakub@redhat.com>
9287
9288 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
9289 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
9290
9291 2005-11-25 Jakub Jelinek <jakub@redhat.com>
9292
9293 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
9294 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
9295 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
9296 single.c, team.c, work.c, config/linux/alpha/futex.h,
9297 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
9298 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
9299 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
9300 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
9301 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
9302 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
9303 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
9304 FSF address.
9305
9306 2005-11-18 Jakub Jelinek <jakub@redhat.com>
9307
9308 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
9309 to nodist_noinst_HEADERS.
9310 * Makefile.in: Rebuilt.
9311
9312 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
9313 add integer count field.
9314 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
9315 omp_nest_lock_t type change.
9316 (omp_init_nest_lock): Likewise. Initialize count to 0.
9317 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
9318 Increment count.
9319 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
9320 Decrement count.
9321 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
9322 Increment count if successful and return the new nesting level.
9323 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
9324 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
9325 * testsuite/libgomp.c/lib-1.c: New test.
9326 * testsuite/libgomp.fortran/lib1.f90: New test.
9327 * testsuite/libgomp.fortran/lib2.f: New test.
9328 * testsuite/libgomp.fortran/lib3.f: New test.
9329
9330 2005-11-17 Richard Henderson <rth@redhat.com>
9331
9332 PR 24845
9333 * Makefile.am (nodist_toolexeclib_HEADERS): New.
9334 * configure.ac (link_gomp): New. Substitute it.
9335 (AC_CONFIG_FILES): Add libgomp.spec.
9336 * libgomp.spec.in: New file.
9337 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
9338 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
9339
9340 2005-11-18 Jakub Jelinek <jakub@redhat.com>
9341
9342 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
9343 reduction(-:var) behaving the same as reduction(+:var).
9344 * testsuite/libgomp.c/reduction-4.c: New test.
9345
9346 2005-11-15 Uros Bizjak <uros@kss-loka.si>
9347
9348 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
9349 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
9350 testsuite/libgomp.c/copyin-3.c,
9351 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
9352 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
9353 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
9354 testsuite/libgomp.c++/pr24455.C,
9355 testsuite/libgomp.fortran/threadprivate1.f90,
9356 testsuite/libgomp.fortran/threadprivate2.f90,
9357 testsuite/libgomp.fortran/threadprivate3.f90,
9358 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
9359 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
9360 testsuite/libgomp.fortran/omp_parse3.f90: Require
9361 effective-target TLS.
9362
9363 2005-11-14 Diego Novillo <dnovillo@redhat.com>
9364
9365 * HEADER: Remove.
9366
9367 2005-11-13 Jakub Jelinek <jakub@redhat.com>
9368
9369 PR libgomp/24797
9370 * team.c (initialize_team): Pass NULL rather than free as
9371 pthread_key_create destructor. Initialize thread specific data
9372 pointer in initial thread to a static local variable rather than
9373 malloced memory.
9374
9375 2005-11-11 Uros Bizjak <uros@kss-loka.si>
9376
9377 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
9378 its location to ld_library_path.
9379
9380 2005-11-10 Diego Novillo <dnovillo@redhat.com>
9381
9382 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
9383
9384 2005-11-10 Diego Novillo <dnovillo@redhat.com>
9385
9386 * testsuite/libgomp.c: Rename from libgomp.dg.
9387
9388 2005-11-09 Diego Novillo <dnovillo@redhat.com>
9389
9390 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
9391 threadprivate variable 'i'.
9392
9393 2005-11-09 Jakub Jelinek <jakub@redhat.com>
9394
9395 * config/linux/s390/futex.h: New file.
9396 * configure.tgt: Use it.
9397
9398 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
9399 before the parallel.
9400
9401 2005-11-08 Jakub Jelinek <jakub@redhat.com>
9402
9403 PR c++/24734
9404 * testsuite/libgomp.c++/master-1.C: New test.
9405
9406 2005-11-07 Jakub Jelinek <jakub@redhat.com>
9407
9408 * testsuite/libgomp.dg/copyin-3.c: New test.
9409
9410 2005-11-07 Jakub Jelinek <jakub@redhat.com>
9411
9412 * testsuite/libgomp.fortran/retval1.f90: New test.
9413 * testsuite/libgomp.fortran/vla7.f90: New test.
9414
9415 2005-11-06 Jakub Jelinek <jakub@redhat.com>
9416
9417 * testsuite/libgomp.fortran/vla2.f90: New test.
9418 * testsuite/libgomp.fortran/vla3.f90: New test.
9419 * testsuite/libgomp.fortran/vla4.f90: New test.
9420 * testsuite/libgomp.fortran/vla5.f90: New test.
9421 * testsuite/libgomp.fortran/vla6.f90: New test.
9422
9423 2005-11-01 Jakub Jelinek <jakub@redhat.com>
9424
9425 * config/linux/sparc/futex.h: New file.
9426 * configure.tgt: Use it.
9427 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
9428
9429 * critical.c: Include stdlib.h.
9430 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
9431 ignoring return value.
9432 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
9433 LIBGOMP_CHECK_SYNC_BUILTINS check.
9434 * configure: Rebuilt.
9435
9436 2005-10-31 Jakub Jelinek <jakub@redhat.com>
9437
9438 * testsuite/libgomp.fortran/vla1.f90: New test.
9439
9440 2005-10-31 Richard Henderson <rth@redhat.com>
9441
9442 * testsuite/libgomp.fortran/character2.f90: Fix race condition
9443 setting 's' in different threads.
9444
9445 2005-10-31 Jakub Jelinek <jakub@redhat.com>
9446
9447 * libgomp.h (attribute_hidden, ialias): Define.
9448 * config/posix/proc.c (omp_get_num_procs): Add ialias.
9449 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
9450 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
9451 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
9452 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
9453 omp_test_lock, omp_test_nest_lock): Likewise.
9454 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
9455 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
9456 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
9457 omp_test_lock, omp_test_nest_lock): Likewise.
9458 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
9459 omp_get_dynamic, omp_get_nested): Likewise.
9460 * parallel.c (omp_get_num_threads, omp_get_max_threads,
9461 omp_get_thread_num, omp_in_parallel): Likewise.
9462 * fortran.c (ialias_redirect): Define.
9463 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
9464 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
9465 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
9466 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
9467 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
9468 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
9469 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
9470 omp_get_wtime): Add ialias_redirect.
9471
9472 2005-10-30 Jakub Jelinek <jakub@redhat.com>
9473
9474 * fortran.c: Include stdlib.h.
9475
9476 2005-10-29 Jakub Jelinek <jakub@redhat.com>
9477
9478 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
9479 * Makefile.in: Regenerated.
9480
9481 2005-10-28 Jakub Jelinek <jakub@redhat.com>
9482
9483 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
9484 * libgomp_f.h.in (omp_check_defines): New function.
9485 * env.c: Include libgomp_f.h.
9486 (initialize_env): Call omp_check_defines.
9487
9488 * testsuite/libgomp.dg/copyin-2.c: New test.
9489 * testsuite/libgomp.c++/copyin-2.C: New test.
9490 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
9491
9492 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
9493 * testsuite/libgomp.fortran/sharing2.f90: New test.
9494
9495 * testsuite/libgomp.dg/copyin-1.c: New test.
9496 * testsuite/libgomp.c++/copyin-1.C: New test.
9497
9498 2005-10-26 Jakub Jelinek <jakub@redhat.com>
9499
9500 * testsuite/libgomp.fortran/crayptr1.f90: New test.
9501
9502 * testsuite/libgomp.fortran/workshare1.f90: New test.
9503
9504 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
9505 only test.
9506 * libgomp.fortran/sharing1.f90: New test.
9507
9508 2005-10-24 Jakub Jelinek <jakub@redhat.com>
9509
9510 PR c++/24502
9511 * testsuite/libgomp.c++/loop-7.C: New test.
9512
9513 * testsuite/libgomp.dg/nestedfn-2.c: New test.
9514
9515 * testsuite/libgomp.dg/nestedfn-1.c: New test.
9516 * testsuite/libgomp.fortran/reduction6.f90: New test.
9517 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
9518
9519 2005-10-23 Richard Henderson <rth@redhat.com>
9520
9521 * testsuite/libgomp.c++/ctor-1.C: New.
9522 * testsuite/libgomp.c++/ctor-2.C: New.
9523 * testsuite/libgomp.c++/ctor-3.C: New.
9524 * testsuite/libgomp.c++/ctor-4.C: New.
9525 * testsuite/libgomp.c++/ctor-5.C: New.
9526 * testsuite/libgomp.c++/ctor-6.C: New.
9527 * testsuite/libgomp.c++/ctor-7.C: New.
9528 * testsuite/libgomp.c++/ctor-8.C: New.
9529 * testsuite/libgomp.c++/ctor-9.C: New.
9530
9531 2005-10-21 Diego Novillo <dnovillo@redhat.com>
9532
9533 PR 24455
9534 * testsuite/libgomp.c++/pr24455-1.C: New test.
9535 * testsuite/libgomp.c++/pr24455.C: New test.
9536 * testsuite/libgomp.dg/pr24455-1.c: New test.
9537 * testsuite/libgomp.dg/pr24455.c: New test.
9538
9539 2005-10-20 Richard Henderson <rth@redhat.com>
9540
9541 * testsuite/libgomp.c++/loop-6.C: New.
9542 * testsuite/libgomp.dg/loop-3.c: New.
9543
9544 2005-10-20 Jakub Jelinek <jakub@redhat.com>
9545
9546 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
9547 explicitly private.
9548 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
9549 explicitly shared.
9550
9551 2005-10-19 Diego Novillo <dnovillo@redhat.com>
9552
9553 * testsuite/libgomp.fortran/jacobi.f: New test.
9554
9555 2005-10-19 Richard Henderson <rth@redhat.com>
9556
9557 * configure.tgt (i?86-linux): Default to with_arch instead of
9558 CFLAGS. Add -mtune to match target_cpu.
9559 (x86_64-linux): Tune to i686.
9560
9561 * fortran.c (omp_test_nest_lock_): Fix typo.
9562
9563 2005-10-19 Jakub Jelinek <jakub@redhat.com>
9564
9565 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
9566 gomp_ordered_sync): Do nothing if team->nthreads == 1.
9567 * testsuite/libgomp.dg/ordered-3.c: New test.
9568
9569 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
9570 Remove volatile keyword.
9571
9572 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
9573 in COMMON block to avoid warnings on 64-bit targets.
9574
9575 2005-10-18 Diego Novillo <dnovillo@redhat.com>
9576
9577 * testsuite/libgomp.dg/shared-3.c: New test.
9578
9579 2005-10-18 Jakub Jelinek <jakub@redhat.com>
9580
9581 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
9582 * testsuite/libgomp.fortran/reduction5.f90: New test.
9583
9584 2005-10-18 Jakub Jelinek <jakub@redhat.com>
9585
9586 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
9587 dg-options.
9588 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
9589 flush loop now that __sync_synchronize has proper memory barrier.
9590 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
9591 Add -ffixed-form to dg-options.
9592
9593 2005-10-17 Diego Novillo <dnovillo@redhat.com>
9594
9595 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
9596 from subdirectories.
9597 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
9598 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
9599 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
9600 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
9601 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
9602 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
9603 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
9604 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
9605 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
9606 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
9607 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
9608 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
9609 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
9610 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
9611 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
9612 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
9613 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
9614 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
9615 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
9616 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
9617 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
9618 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
9619 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
9620 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
9621 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
9622
9623 2005-10-17 Jakub Jelinek <jakub@redhat.com>
9624
9625 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
9626 lang_library_path exists. Use find instead of glob to gather tests.
9627 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
9628
9629 2005-10-17 Diego Novillo <dnovillo@redhat.com>
9630
9631 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
9632 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
9633 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
9634 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
9635 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
9636 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
9637 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
9638 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
9639 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
9640 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
9641 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
9642 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
9643 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
9644
9645 2005-10-15 Jakub Jelinek <jakub@redhat.com>
9646
9647 * testsuite/libgomp.dg/vla-1.c: New test.
9648
9649 * testsuite/libgomp.fortran/reference2.f90: New test.
9650
9651 * testsuite/libgomp.fortran/character2.f90: Remove explicit
9652 declaration of omp_get_thread_num.
9653 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
9654 use omp_lib.
9655
9656 * testsuite/libgomp.fortran/reduction1.f90: New test.
9657 * testsuite/libgomp.fortran/reduction2.f90: New test.
9658 * testsuite/libgomp.fortran/reduction3.f90: New test.
9659 * testsuite/libgomp.fortran/reduction4.f90: New test.
9660
9661 2005-10-13 Richard Henderson <rth@redhat.com>
9662
9663 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
9664 * Makefile.in: Regenerate.
9665 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
9666 * libgomp.h: Include bar.h.
9667 (struct gomp_barrier): Remove.
9668 (struct gomp_team): Add barrier. Replace master_barrier with
9669 master_release. Replace threads with ordered_release.
9670 (struct gomp_thread): Replace barrier with release.
9671 * ordered.c (gomp_ordered_first): Update for ordered_release change.
9672 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
9673 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
9674 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
9675 (GOMP_single_copy_end): Likewise.
9676 * team.c (gomp_threads_dock): New.
9677 (gomp_barrier_init, gomp_barrier_destroy): Remove.
9678 (gomp_thread_start): Use gomp_barrier_wait.
9679 (new_team, free_team): Update for gomp_team changes.
9680 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
9681 (gomp_team_end): Use gomp_barrier_wait.
9682 (initialize_team): Update for gomp_thread changes.
9683 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
9684 (gomp_work_share_end_nowait): Use atomic ops when available.
9685 * config/linux/bar.c, config/linux/bar.h: New files.
9686 * config/posix/bar.c, config/posix/bar.h: New files.
9687
9688 2005-10-13 Jakub Jelinek <jakub@redhat.com>
9689
9690 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
9691 * testsuite/libgomp.dg/single-2.c: New test.
9692
9693 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
9694 lang_link_flags): Unset, so that they aren't inherited from previously
9695 sourced *.exp.
9696
9697 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
9698
9699 2005-10-12 Richard Henderson <rth@redhat.com>
9700
9701 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
9702 (libgomp_init): Use lang_test_file, lang_library_path, and
9703 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
9704
9705 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
9706 (lang_test_file, lang_link_flags): New.
9707 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
9708
9709 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
9710 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
9711 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
9712 testsuite/libgomp.c++/parallel-1.C,
9713 testsuite/libgomp.c++/reduction-1.C,
9714 testsuite/libgomp.c++/reduction-2.C,
9715 testsuite/libgomp.c++/reduction-3.C,
9716 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
9717 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
9718 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
9719 New files, largely cribbed from the C testsuite.
9720
9721 2005-10-12 Jakub Jelinek <jakub@redhat.com>
9722
9723 * testsuite/libgomp.fortran/character1.f90: New test.
9724 * testsuite/libgomp.fortran/character2.f90: New test.
9725
9726 * testsuite/libgomp.dg/nested-1.c: New test.
9727 * testsuite/libgomp.dg/nested-2.c: New test.
9728 * testsuite/libgomp.fortran/do1.f90: New test.
9729 * testsuite/libgomp.fortran/do2.f90: New test.
9730
9731 * testsuite/libgomp.fortran/reference1.f90: New test.
9732
9733 2005-10-11 Jakub Jelinek <jakub@redhat.com>
9734
9735 * testsuite/libgomp.dg/reduction-1.c: New test.
9736 * testsuite/libgomp.dg/reduction-2.c: New test.
9737 * testsuite/libgomp.dg/reduction-3.c: New test.
9738
9739 2005-10-10 Jakub Jelinek <jakub@redhat.com>
9740
9741 * testsuite/libgomp.dg/atomic-1.c: New test.
9742 * testsuite/libgomp.dg/atomic-2.c: New test.
9743
9744 2005-10-09 Richard Henderson <rth@redhat.com>
9745
9746 * critical.c (atomic_lock): New.
9747 (initialize_critical): Initialize it.
9748 (GOMP_atomic_start, GOMP_atomic_end): New.
9749 * libgomp.map: Export them.
9750 * libgomp_g.h: Declare them.
9751
9752 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
9753
9754 2005-10-02 Richard Henderson <rth@redhat.com>
9755
9756 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
9757 to XCFLAGS instead of CFLAGS.
9758
9759 2005-09-30 Richard Henderson <rth@redhat.com>
9760
9761 * configure.ac: Determine whether -pthread or -lpthread is needed.
9762 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
9763 * Makefine.in, configure: Rebuild.
9764
9765 2005-09-28 Richard Henderson <rth@redhat.com>
9766
9767 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
9768 * testsuite/libgomp.dg/omp-single-3.c: New test.
9769
9770 2005-09-28 Diego Novillo <dnovillo@redhat.com>
9771
9772 * testsuite/libgomp.dg/omp-single-2.c: New test.
9773 * testsuite/libgomp.dg/shared-2.c: Fix return code.
9774
9775 2005-09-27 Richard Henderson <rth@redhat.com>
9776
9777 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
9778 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
9779
9780 2005-09-27 Jakub Jelinek <jakub@redhat.com>
9781
9782 * testsuite/libgomp.dg/omp-loop03.c: New test.
9783
9784 2005-09-27 Diego Novillo <dnovillo@redhat.com>
9785
9786 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
9787
9788 2005-09-27 Diego Novillo <dnovillo@redhat.com>
9789
9790 * testsuite/libgomp.dg/omp-single-1.c: New test.
9791 * testsuite/libgomp.dg/shared-1.c: Return 0.
9792 Add prototype for abort.
9793 * testsuite/libgomp.dg/shared-2.c: Likewise.
9794
9795 2005-09-26 Jakub Jelinek <jakub@redhat.com>
9796
9797 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
9798 constructs.
9799
9800 2005-09-26 Diego Novillo <dnovillo@redhat.com>
9801
9802 * testsuite/libgomp.dg/shared-1.c: New test.
9803 * testsuite/libgomp.dg/shared-2.c: New test.
9804
9805 2005-09-24 Richard Henderson <rth@redhat.com>
9806
9807 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
9808
9809 2005-09-24 Richard Henderson <rth@redhat.com>
9810
9811 * iter.c (gomp_iter_static_next): Round up when computing number
9812 of iterations. Don't bother distributing a remainder equally.
9813
9814 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
9815 Don't call srand. Zero b before testing.
9816 (main): New.
9817
9818 2005-09-24 Jakub Jelinek <jakub@redhat.com>
9819
9820 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
9821 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
9822
9823 2005-09-23 Jakub Jelinek <jakub@redhat.com>
9824
9825 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
9826 without !$omp end do, followed immediately by subroutine end.
9827
9828 2005-09-23 Diego Novillo <dnovillo@redhat.com>
9829
9830 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
9831
9832 2005-09-22 Richard Henderson <rth@redhat.com>
9833
9834 * critical.c (GOMP_critical_name_start): Change argument to void**.
9835 Reuse the pointer space if the mutex fits.
9836 (GOMP_critical_name_end): Likewise.
9837 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
9838 * libgomp_g.h (GOMP_critical_name_start): Update decl.
9839 (GOMP_critical_name_end): Likewise.
9840 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
9841 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
9842
9843 2005-09-20 Richard Henderson <rth@redhat.com>
9844
9845 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
9846 (create_lock_lock): New.
9847 (initialize_critical): Initialize it.
9848 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
9849 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
9850
9851 2005-09-20 Diego Novillo <dnovillo@redhat.com>
9852
9853 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
9854
9855 2005-09-20 Diego Novillo <dnovillo@redhat.com>
9856
9857 * testsuite/libgomp.dg/omp-loop01.c: New test.
9858 * testsuite/libgomp.dg/omp-loop02.c: New test.
9859
9860 2005-09-20 Jakub Jelinek <jakub@redhat.com>
9861
9862 * configure.ac (AC_PROG_FC): Add.
9863 (USE_FORTRAN): New automake conditional.
9864 * configure: Rebuilt.
9865 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
9866 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
9867 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
9868 Add rules to build them.
9869 * Makefile.in: Rebuilt.
9870 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
9871 OMP_NEST_LOCK_KIND.
9872 * libgomp.map: Add Fortran wrappers.
9873 * libgomp_f.h.in: New file.
9874 * omp_lib.h.in: New file.
9875 * omp_lib.f90.in: New file.
9876 * fortran.c: New file.
9877 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
9878 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
9879 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
9880 libgfortran has been built.
9881 * testsuite/libgomp.fortran/fortran.exp: New file.
9882 * testsuite/libgomp.fortran/omp_cond1.f: New test.
9883 * testsuite/libgomp.fortran/omp_cond2.f: New test.
9884 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
9885 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
9886 * testsuite/libgomp.fortran/omp_hello.f: New test.
9887 * testsuite/libgomp.fortran/omp_orphan.f: New test.
9888 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
9889 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
9890 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
9891 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
9892 * testsuite/libgomp.fortran/omp_reduction.f: New test.
9893 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
9894 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
9895
9896 2005-08-30 Richard Henderson <rth@redhat.com>
9897
9898 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
9899 function for when aliases are not usable.
9900 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
9901 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
9902 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
9903 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
9904 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
9905 GOMP_loop_ordered_guided_next): Likewise.
9906 * ordered.c (GOMP_ordered_start): Likewise.
9907
9908 2005-08-01 Diego Novillo <dnovillo@redhat.com>
9909
9910 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
9911 * testsuite/libgomp.dg/omp_hello.c: Fix return code
9912 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
9913 * testsuite/libgomp.dg/omp_orphan.c: Likewise
9914 * testsuite/libgomp.dg/omp_reduction.c: Likewise
9915 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
9916 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
9917 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
9918 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
9919
9920 2005-07-07 Eric Christopher <echristo@redhat.com>
9921 Diego Novillo <dnovillo@redhat.com>
9922
9923 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
9924 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
9925 up code.
9926 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
9927 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
9928 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
9929 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
9930 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
9931 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
9932 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
9933
9934 2005-06-13 Diego Novillo <dnovillo@redhat.com>
9935
9936 * TOPLEVEL.patch: Remove.
9937
9938 2005-05-16 Richard Henderson <rth@redhat.com>
9939
9940 * configure.ac: Test for clock_gettime.
9941 * config.h.in, configure: Rebuild.
9942 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
9943 (omp_get_wtime): Use clock_gettime if available.
9944 (omp_get_wtick): Use clock_getres if available.
9945
9946 2005-05-11 Richard Henderson <rth@redhat.com>
9947
9948 * config/linux/ia64/futex.h: New file.
9949 * configure.tgt: Use it.
9950
9951 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
9952
9953 2005-05-07 Richard Henderson <rth@redhat.com>
9954
9955 * config/linux/powerpc/futex.h: New file.
9956 * configure.tgt: Use it.
9957
9958 * config/linux/i486/futex.h: Merge ...
9959 * config/linux/x86_64/futex.h: ... into ...
9960 * config/linux/x86/futex.h: ... here.
9961 * configure.tgt: Update to match.
9962
9963 2005-05-06 Richard Henderson <rth@redhat.com>
9964
9965 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
9966 * config/linux/i486/futex.h: Likewise.
9967 * config/linux/x86_64/futex.h: Likewise.
9968
9969 * config/linux/lock.c: New file.
9970 * config/linux/omp-lock.h: New file.
9971
9972 * critical.c, env.h: Don't include omp.h
9973 * config/posix/lock.c: Include libgomp.h instead of omp.h.
9974 * config/posix/time.c: Likewise.
9975 * config/posix/omp-lock.h: New file.
9976 * libgomp.h: Include omp-lock.h and omp.h.
9977 * Makefile.am (nodist_include_HEADERS): New.
9978 (omp.h): New rule.
9979 * configure.ac (PERL): New.
9980 * mkomp_h.pl: New file.
9981 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
9982 with templates.
9983 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
9984
9985 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
9986 build directory. Re-add -march=i486 hack.
9987
9988 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
9989 (libgomp_link_flags): Remove.
9990 (libgomp_initialized): Remove.
9991 (libgomp_init): Don't protect from reinitialization. Copy code
9992 from libstdc++ for getting the multilib set correctly.
9993
9994 2005-05-05 Richard Henderson <rth@redhat.com>
9995
9996 * config/linux/alpha/futex.h: New file.
9997 * configure.tgt (alpha*-*-linux*): Use it.
9998
9999 * config/posix/mutex.c: New file.
10000 * config/posix/sem.c: Use libgomp.h.
10001
10002 * configure.tgt (x86_64-linux): Also test CC for -m32.
10003 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
10004
10005 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
10006 after $gccpath.
10007
10008 * Makefile.am (SUBDIRS): New.
10009 (libgomp_la_LDFLAGS): Add -lpthread.
10010 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
10011 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
10012
10013 * libgomp_g.h: New file.
10014 * libgomp.h: Split out all public declarations to libgomp_g.h.
10015 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
10016 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
10017 * config/linux/sem.h: Likewise.
10018 * config/posix/sem.h: Likewise.
10019
10020 * Makefile.am (AM_LDFLAGS): New.
10021 (libgomp_version_script): Split out from ...
10022 (libgomp_la_LDFLAGS): ... here.
10023 (libgomp_version_info): New.
10024 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
10025 (LIBGOMP_ENABLE): New.
10026 (LIBGOMP_CHECK_LINKER_FEATURES): New.
10027 (LIBGOMP_ENABLE_SYMVERS): New.
10028 * configure.ac (AC_INIT): Version 1.0.
10029 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
10030 (enable-linux-futex): Likewise. Rename from enable-futex.
10031 (libtool_VERSION): New.
10032 (LIBGOMP_ENABLE_SYMVERS): Use it.
10033 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
10034 * Makefile.in, aclocal.m4, configure: Rebuild.
10035
10036 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
10037 (gomp_mutex_unlock_slow): Fix typo.
10038 * config/linux/sem.c: Similarly.
10039 (gomp_sem_post_slow): Fix typo.
10040 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
10041 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
10042 [__PIC__] (sys_futex0): Don't use tmp output in asm.
10043
10044 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
10045 (libgomp_la_LDFLAGS): Add top_srcdir to path.
10046 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
10047 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
10048 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
10049 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
10050 LDFLAGS. Pull enable_futex check to top-level.
10051 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
10052 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
10053
10054 First attempt at real configury.
10055 * Makefile, config.h: Remove file.
10056 * Makefile.am, Makefile.in: New file.
10057 * acinclude.m4 aclocal.m4: New file.
10058 * configure.ac, configure.tgt, configure: New file.
10059
10060 * config/posix/lock.c: Rename from sys-lock.c.
10061 * config/posix/mutex.h: Rename from sys-mutex.h.
10062 * config/posix/sem.c: Rename from sys-sem.c.
10063 * config/posix/sem.h: Rename from sys-sem.h.
10064 * config/posix/proc.c: Rename from sys-proc.c.
10065 * config/posix/time.c: Rename from sys-proc.c.
10066
10067 * config/linux/mutex.c: New file.
10068 * config/linux/mutex.h: New file.
10069 * config/linux/sem.c: New file.
10070 * config/linux/sem.h: New file.
10071 * config/linux/i486/futex.h: New file.
10072 * config/linux/x86_64/futex.h: New file.
10073
10074 2005-05-04 Richard Henderson <rth@redhat.com>
10075
10076 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
10077 * libgomp.h: Declare them.
10078 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
10079 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
10080
10081 2005-05-04 Richard Henderson <rth@redhat.com>
10082
10083 * libgomp-1 code drop
10084
10085 2005-05-04 Richard Henderson <rth@redhat.com>
10086
10087 * iter.c (gomp_iter_static_next): Return tri-state on 0.
10088 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
10089 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
10090 (gomp_iter_static_next): Update.
10091 (gomp_ordered_static_next): Update.
10092 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
10093 (gomp_loop_ordered_static_start): Likewise. Exit early for a
10094 totally empty range.
10095 (gomp_loop_ordered_static_next): Refine test for calling
10096 gomp_ordered_static_next.
10097 * testsuite/ordered-1.c: Add case for more threads than iterations.
10098
10099 * iter.c (gomp_iter_runtime_next_locked): Remove.
10100 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
10101 gomp_loop_guided_start, gomp_loop_ordered_static_start,
10102 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
10103 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
10104 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
10105 gomp_loop_ordered_guided_next): Downcase name, make static, add
10106 an external alias with the old name.
10107 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
10108 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
10109 switch and call one of the above static functions.
10110 * libgomp.h: Update.
10111
10112 * work.c (gomp_work_share_start): Lock the mutex for !first too.
10113 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
10114 GOMP_loop_guided_start, GOMP_loop_runtime_start,
10115 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
10116 GOMP_loop_ordered_guided_start): Update to match.
10117 * sections.c (GOMP_sections_start): Likewise.
10118 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
10119
10120 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
10121 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
10122 Use bounds check instead of modulus.
10123 (gomp_ordered_sync): Split out of GOMP_ordered_start.
10124 (gomp_ordered_last): Don't sync with ordered_owner here.
10125 (gomp_ordered_next): Likewise.
10126 (gomp_ordered_static_loop_next): Likewise.
10127 * loop.c, libgomp.h: Update to match.
10128
10129 * libgomp.h (GOMP_barrier): Declare.
10130
10131 * testsuite/barrier-1.c: New file.
10132 * testsuite/critical-1.c: New file.
10133 * testsuite/ordered-2.c: New file.
10134 * testsuite/ordered-1.c: New file.
10135 * testsuite/sections-1.c: New file.
10136 * testsuite/single-1.c: New file.
10137 * testsuite/Makefile (TESTS): Add them.
10138
10139 2005-05-04 Richard Henderson <rth@redhat.com>
10140
10141 * libgomp.h (struct gomp_work_share): Add ordered_owner.
10142 * loop.c (GOMP_loop_static_start): If not the startup thread,
10143 acquire the mutex to wait for initialization complete.
10144 (GOMP_loop_ordered_static_start): Likewise.
10145 (GOMP_loop_ordered_runtime_start): Likewise.
10146 (GOMP_loop_ordered_static_first): Remove.
10147 (GOMP_loop_ordered_dynamic_first): Remove.
10148 (GOMP_loop_ordered_guided_first): Remove.
10149 (GOMP_loop_ordered_runtime_first): Remove.
10150 * ordered.c (gomp_ordered_loop_first): Post to own release when
10151 we're the first thread.
10152 (gomp_ordered_loop_last): Wait on release if not owner.
10153 (gomp_ordered_loop_next): Likewise.
10154 (gomp_ordered_static_loop_init): New.
10155 (gomp_ordered_static_loop_next): Use ordered_owner.
10156 (GOMP_ordered_start): Likewise.
10157 * work.c (gomp_new_work_share): Initialize ordered_owner.
10158
10159 2005-05-03 Richard Henderson <rth@redhat.com>
10160
10161 * Makefile (OPT): New.
10162 (CFLAGS): Use it.
10163
10164 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
10165 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
10166 * libgomp.h, libgomp.map, NOTES: Update to match.
10167
10168 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
10169 Add initialized and thr members.
10170 (gomp_thread_start): Pause when initially spawned to wait for
10171 the whole team to be created.
10172 (gomp_team_start): Release team members at the end.
10173
10174 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
10175 (f_foo_1): Use GOMP_loop_end.
10176 (f_foo_2): Use GOMP_loop_end_nowait.
10177
10178 * testsuite/loop-2.c: New file.
10179 * testsuite/Makefile (TESTS): Add it.
10180
10181 2005-05-03 Richard Henderson <rth@redhat.com>
10182
10183 * iter.c (gomp_iter_static_next): Fix overflow check typo.
10184 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
10185 * team.c (new_team): Initialize oldest_live_gen to 1 if no
10186 initial work_share.
10187
10188 * testsuite/Makefile: New file.
10189 * testsuite/loop-1.c: New file.
10190
10191 2005-05-03 Richard Henderson <rth@redhat.com>
10192
10193 Initial implementation and checkin.
10194 \f
10195 Copyright (C) 2005-2018 Free Software Foundation, Inc.
10196
10197 Copying and distribution of this file, with or without modification,
10198 are permitted in any medium without royalty provided the copyright
10199 notice and this notice are preserved.