Fix diff_type in expand_oacc_for char iter_type
[gcc.git] / libgomp / ChangeLog
1 2017-08-07 Tom de Vries <tom@codesourcery.com>
2
3 PR middle-end/78266
4 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
5 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
6
7 2017-07-27 Jakub Jelinek <jakub@redhat.com>
8
9 PR c/45784
10 * testsuite/libgomp.c/pr45784.c: New test.
11 * testsuite/libgomp.c++/pr45784.C: New test.
12
13 2017-07-19 Tom de Vries <tom@codesourcery.com>
14
15 * testsuite/libgomp.oacc-c/vec.c: New test.
16
17 2017-07-03 Tom de Vries <tom@codesourcery.com>
18
19 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
20
21 2017-06-27 Tom de Vries <tom@codesourcery.com>
22
23 * plugin/plugin-nvptx.c (notify_var): New function.
24 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
25
26 2017-06-27 Tom de Vries <tom@codesourcery.com>
27
28 * env.c (parse_unsigned_long_1): Factor out of ...
29 (parse_unsigned_long): ... here.
30 (parse_int_1): Factor out of ...
31 (parse_int): ... here.
32 (parse_int_secure): New function.
33 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
34 * secure_getenv.h: Factor out of ...
35 * plugin/plugin-hsa.c: ... here.
36 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
37
38 2017-06-21 Jakub Jelinek <jakub@redhat.com>
39
40 PR c++/81130
41 * testsuite/libgomp.c++/pr81130.C: New test.
42
43 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
44
45 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
46 default args.
47 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
48 dg-xfail-run-if default args.
49
50 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
51
52 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
53 * testsuite/libgomp.c/pr39591-3.c: Likewise.
54
55 2017-05-30 Jakub Jelinek <jakub@redhat.com>
56
57 PR libgomp/80822
58 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
59 (gomp_affinity_init_level): Use it. Always analyze the core and thread
60 sibling lists, depending on level just pick up what CPUs to put
61 together into a place vs. whether add multiple ordered places.
62
63 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
64
65 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
66 * libgomp.map (OACC_2.0.1): Add these.
67 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
68 for "acc_wait", and "acc_wait_all", respectively.
69 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
70 for "acc_wait", and "acc_wait_all", respectively.
71 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
72 * libgomp.texi (acc_wait, acc_wait_all): Update.
73 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
74 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
75 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
76
77 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
78 acc_present_or_copyin and acc_present_or_create procedures,
79 respectively.
80 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
81 generally different variants of OpenACC Runtime Library functions.
82 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
83
84 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
85 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
86
87 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
88 of preprocessor definitions.
89 * libgomp.h (strong_alias): Guard by "#ifdef
90 HAVE_ATTRIBUTE_ALIAS".
91 * oacc-mem.c: Provide "acc_pcreate" as alias for
92 "acc_present_or_create", and "acc_pcopyin" as alias for
93 "acc_present_or_copyin".
94 * libgomp.map: New version "OACC_2.0.1".
95 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
96 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
97 its content into...
98 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
99 Extend testing.
100
101 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
102 when disabling nvptx offloading.
103
104 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
105
106 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
107 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
108 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
109
110 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
111 * testsuite/lib/libgomp.exp
112 (check_effective_target_openacc_nvidia_accel_configured): New
113 proc.
114 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
115 (check_effective_target_c++): New procs.
116 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
117 (check_effective_target_c++): Likewise.
118
119 2017-05-22 Jakub Jelinek <jakub@redhat.com>
120
121 PR middle-end/80809
122 * testsuite/libgomp.c/pr80809-2.c: New test.
123 * testsuite/libgomp.c/pr80809-3.c: New test.
124
125 PR middle-end/80809
126 * testsuite/libgomp.c/pr80809-1.c: New test.
127
128 PR middle-end/80853
129 * testsuite/libgomp.c/pr80853.c: New test.
130
131 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
132
133 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
134 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
135 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
136 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
137 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
138
139 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
140 Debug output for failure.
141
142 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
143
144 * testsuite/lib/libgomp.exp: Load scanlang.exp.
145
146 2017-04-27 Jakub Jelinek <jakub@redhat.com>
147
148 PR bootstrap/80531
149 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
150 bootstrap compare failures.
151
152 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
153
154 * testsuite/libgomp.c/target-36.c: New testcase.
155
156 2017-04-13 Jakub Jelinek <jakub@redhat.com>
157
158 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
159 instead of char.
160
161 2017-04-11 Jakub Jelinek <jakub@redhat.com>
162
163 PR libgomp/80394
164 * testsuite/libgomp.c/pr80394.c: New test.
165
166 2017-04-04 Jakub Jelinek <jakub@redhat.com>
167
168 PR libgomp/79876
169 * config/posix/thread-stacksize.h: New file.
170 * config/darwin/thread-stacksize.h: New file.
171 * config/nvptx/thread-stacksize.h: New file.
172 * env.c: Include thread-stacksize.h.
173 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
174 instead of 0. Call pthread_attr_setstacksize even if
175 GOMP_DEFAULT_STACKSIZE is non-zero.
176
177 2017-03-30 Jakub Jelinek <jakub@redhat.com>
178
179 * env.c (initialize_env): Initialize stacksize to 0.
180
181 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
182
183 PR c++/80029
184 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
185
186 2017-03-08 Jakub Jelinek <jakub@redhat.com>
187
188 PR c/79940
189 * testsuite/libgomp.c/pr79940.c: New test.
190
191 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
192
193 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
194 targets.
195 Add __float128 options.
196
197 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
198
199 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
200 hppa*-*-* dg-skip-if directive.
201
202 2017-02-09 Jakub Jelinek <jakub@redhat.com>
203
204 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
205 dg-skip-if directive into a comment.
206
207 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
208 Chung-Lin Tang <cltang@codesourcery.com>
209
210 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
211 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
212 add additional case.
213 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
214 "openacc_nvidia_accel_selected".
215 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
216 Add num_workers(8) clause.
217
218 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
219
220 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
221 hppa*-*-*.
222 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
223 include complex.h on hppa*-*-hpux*.
224 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
225
226 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
227
228 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
229
230 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
231 GOMP_OFFLOAD_openacc_exec. Adjust all users.
232 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
233 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
234 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
235 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
236 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
237 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
238 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
239 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
240
241 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
242
243 * libgomp-plugin.h: #include <stdbool.h>.
244 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
245 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
246 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
247 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
248 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
249 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
250 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
251 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
252 (GOMP_OFFLOAD_openacc_register_async_cleanup)
253 (GOMP_OFFLOAD_openacc_async_test)
254 (GOMP_OFFLOAD_openacc_async_test_all)
255 (GOMP_OFFLOAD_openacc_async_wait)
256 (GOMP_OFFLOAD_openacc_async_wait_async)
257 (GOMP_OFFLOAD_openacc_async_wait_all)
258 (GOMP_OFFLOAD_openacc_async_wait_all_async)
259 (GOMP_OFFLOAD_openacc_async_set_async)
260 (GOMP_OFFLOAD_openacc_create_thread_data)
261 (GOMP_OFFLOAD_openacc_destroy_thread_data)
262 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
263 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
264 (GOMP_OFFLOAD_openacc_get_cuda_stream)
265 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
266 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
267 these.
268 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
269 (GOMP_OFFLOAD_unload_image): Fix argument types.
270
271 2017-01-26 Jakub Jelinek <jakub@redhat.com>
272
273 * testsuite/lib/libgomp.exp
274 (check_effective_target_hsa_offloading_selected_nocache): Fix up
275 check_compile invocation. Fix up removal of executable. Drop
276 bogus "2>&1" argument.
277
278 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
279 directive.
280
281 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
282 Martin Jambor <mjambor@suse.cz>
283
284 * plugin/hsa.h: Moved to top level include.
285 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
286
287 2017-01-21 Jakub Jelinek <jakub@redhat.com>
288
289 PR other/79046
290 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
291 of cat to get version from BASE-VER file.
292 * testsuite/Makefile.in: Regenerated.
293
294 2017-01-19 Jakub Jelinek <jakub@redhat.com>
295
296 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
297 for _WIN64.
298
299 2017-01-17 Jakub Jelinek <jakub@redhat.com>
300
301 * plugin/hsa.h: Add GCC runtime library exception.
302 * plugin/hsa_ext_finalize.h: Likewise.
303
304 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
305 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
306 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
307 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
308 plugin/include/cuda as include dir and -ldl instead of -lcuda as
309 library to link ptx plugin against.
310 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
311 (CUDA_CALLS): Define.
312 (cuda_lib, cuda_lib_inited): New variables.
313 (init_cuda_lib): New function.
314 (CUDA_CALL_PREFIX): Define.
315 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
316 (CUDA_CALL): Use FN instead of (FN).
317 (CUDA_CALL_NOCHECK): Define.
318 (cuda_error, fini_streams_for_device, select_stream_for_async,
319 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
320 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
321 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
322 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
323 CUDA_CALL_NOCHECK.
324 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
325 CUDA_CALL_NOCHECK.
326 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
327 Use CUDA_CALL_NOCHECK.
328 * plugin/cuda/cuda.h: New file.
329 * config.h.in: Regenerated.
330 * configure: Regenerated.
331
332 PR other/79046
333 * configure.ac: Add GCC_BASE_VER.
334 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
335 get version from BASE-VER file.
336 * testsuite/Makefile.in: Regenerated.
337 * configure: Regenerated.
338 * Makefile.in: Regenerated.
339
340 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
341
342 PR libgomp/60670
343 * Makefile.am: Make fincludedir multilib-aware.
344 * Makefile.in: Regenerate.
345
346 2017-01-01 Jakub Jelinek <jakub@redhat.com>
347
348 Update copyright years.
349
350 * libgomp.texi: Bump @copying's copyright year.
351
352 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
353
354 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
355 pthread_spinlock_t instead of gomp_mutex_t lock.
356 (gomp_get_thread_pool): Likewise.
357 (gomp_release_thread_pool): Likewise.
358 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
359 Likewise.
360
361 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
362
363 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
364 thread pool in case nthreads == 1.
365
366 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
367
368 * config/nvptx/env.c: Delete.
369 * icv.c: Move definitions of ICV variables back ...
370 * env.c: ...here. Do not compile environment-related functionality if
371 LIBGOMP_OFFLOADED_ONLY is set.
372
373 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
374
375 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
376 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
377 * configure: Regenerate.
378 * config.h.in: Likewise.
379
380 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
381
382 * Makefile.in: Regenerate with automake-1.11.6.
383 * aclocal.m4: Likewise.
384 * configure: Likewise.
385 * testsuite/Makefile.in: Likewise.
386
387 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
388
389 * config/nvptx/critical.c: Delete to use generic implementation.
390
391 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
392
393 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
394 ../../affinity.c as fallback.
395 * config/nvptx/affinity.c: Delete to use fallback implementation.
396
397 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
398 Jakub Jelinek <jakub@redhat.com>
399 Dmitry Melnik <dm@ispras.ru>
400
401 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
402 * Makefile.in. Regenerate.
403 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
404 (LIBGOMP_USE_PTHREADS): ...here; new define.
405 * configure: Regenerate.
406 * config.h.in: Likewise.
407 * config/posix/affinity.c: Move to...
408 * affinity.c: ...here (new file). Guard use of Pthreads-specific
409 interface by LIBGOMP_USE_PTHREADS.
410 * critical.c: Split out GOMP_atomic_{start,end} into...
411 * atomic.c: ...here (new file).
412 * env.c: Split out ICV definitions into...
413 * icv.c: ...here (new file) and...
414 * icv-device.c: ...here. New file.
415 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
416 (gomp_destroy_lock_30): Ditto.
417 (gomp_set_lock_30): Ditto.
418 (gomp_unset_lock_30): Ditto.
419 (gomp_test_lock_30): Ditto.
420 (gomp_init_nest_lock_30): Ditto.
421 (gomp_destroy_nest_lock_30): Ditto.
422 (gomp_set_nest_lock_30): Ditto.
423 (gomp_unset_nest_lock_30): Ditto.
424 (gomp_test_nest_lock_30): Ditto.
425 * lock.c: New.
426 * config/nvptx/lock.c: New.
427 * config/nvptx/bar.c: New.
428 * config/nvptx/bar.h: New.
429 * config/nvptx/doacross.h: New.
430 * config/nvptx/error.c: New.
431 * config/nvptx/icv-device.c: New.
432 * config/nvptx/mutex.h: New.
433 * config/nvptx/pool.h: New.
434 * config/nvptx/proc.c: New.
435 * config/nvptx/ptrlock.h: New.
436 * config/nvptx/sem.h: New.
437 * config/nvptx/simple-bar.h: New.
438 * config/nvptx/target.c: New.
439 * config/nvptx/task.c: New.
440 * config/nvptx/team.c: New.
441 * config/nvptx/time.c: New.
442 * config/posix/simple-bar.h: New.
443 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
444 (gomp_num_teams_var): Declare.
445 (struct gomp_thread_pool): Change threads_dock member to
446 gomp_simple_barrier_t.
447 [__nvptx__] (gomp_thread): New implementation.
448 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
449 (gomp_thread_destructor): Ditto.
450 (gomp_init_thread_affinity): Ditto.
451 * team.c: Guard uses of Pthreads-specific interfaces by
452 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
453 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
454 * config/nvptx/alloc.c: Delete.
455 * config/nvptx/barrier.c: Ditto.
456 * config/nvptx/fortran.c: Ditto.
457 * config/nvptx/iter.c: Ditto.
458 * config/nvptx/iter_ull.c: Ditto.
459 * config/nvptx/loop.c: Ditto.
460 * config/nvptx/loop_ull.c: Ditto.
461 * config/nvptx/ordered.c: Ditto.
462 * config/nvptx/parallel.c: Ditto.
463 * config/nvptx/priority_queue.c: Ditto.
464 * config/nvptx/sections.c: Ditto.
465 * config/nvptx/single.c: Ditto.
466 * config/nvptx/splay-tree.c: Ditto.
467 * config/nvptx/work.c: Ditto.
468 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
469 -foffload=-lgfortran in addition to -lgfortran.
470 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
471 * plugin/plugin-nvptx.c: Include <limits.h>.
472 (struct targ_fn_descriptor): Add new fields.
473 (struct ptx_device): Ditto. Set them...
474 (nvptx_open_device): ...here.
475 (nvptx_adjust_launch_bounds): New.
476 (nvptx_host2dev): Allow NULL 'nvthd'.
477 (nvptx_dev2host): Ditto.
478 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
479 (link_ptx): Adjust log sizes.
480 (nvptx_host2dev): Allow NULL 'nvthd'.
481 (nvptx_dev2host): Ditto.
482 (nvptx_set_clocktick): New. Use it...
483 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
484 fields.
485 (GOMP_OFFLOAD_dev2dev): New.
486 (nvptx_adjust_launch_bounds): New.
487 (nvptx_stacks_size): New.
488 (nvptx_stacks_alloc): New.
489 (nvptx_stacks_free): New.
490 (GOMP_OFFLOAD_run): New.
491 (GOMP_OFFLOAD_async_run): New (stub).
492
493 2016-11-23 Martin Jambor <mjambor@suse.cz>
494
495 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
496 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
497 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
498
499 2016-11-23 Martin Liska <mliska@suse.cz>
500 Martin Jambor <mjambor@suse.cz>
501
502 * plugin/hsa.h: New file.
503 * plugin/hsa_ext_finalize.h: New file.
504 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
505 header file unistd.h, and functions secure_getenv, __secure_getenv,
506 getuid, geteuid, getgid and getegid.
507 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
508 -D_GNU_SOURCE.
509 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
510 Handle various cases of secure_getenv presence, add an implementation
511 when we can test effective UID and GID.
512 (struct hsa_runtime_fn_info): New structure.
513 (hsa_runtime_fn_info hsa_fns): New variable.
514 (hsa_runtime_lib): Likewise.
515 (support_cpu_devices): Likewise.
516 (init_enviroment_variables): Load newly introduced ENV
517 variables.
518 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
519 (hsa_fatal): Likewise.
520 (DLSYM_FN): New macro.
521 (init_hsa_runtime_functions): New function.
522 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
523 structure. Depending on environment, also allow CPU devices.
524 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
525 (get_kernarg_memory_region): Likewise.
526 (GOMP_OFFLOAD_init_device): Likewise.
527 (destroy_hsa_program): Likewise.
528 (init_basic_kernel_info): New function.
529 (GOMP_OFFLOAD_load_image): Use it.
530 (create_and_finalize_hsa_program): Call hsa run-time functions via
531 hsa_fns structure.
532 (create_single_kernel_dispatch): Likewise.
533 (release_kernel_dispatch): Likewise.
534 (init_single_kernel): Likewise.
535 (parse_target_attributes): Allow up multiple HSA grid dimensions.
536 (get_group_size): New function.
537 (run_kernel): Likewise.
538 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
539 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
540 structure.
541 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
542 * testsuite/libgomp-test-support.exp.in: Likewise.
543 * Makefile.in: Regenerated.
544 * aclocal.m4: Likewise.
545 * config.h.in: Likewise.
546 * configure: Likewise.
547 * testsuite/Makefile.in: Likewise.
548
549 2016-11-15 Martin Jambor <mjambor@suse.cz>
550 Alexander Monakov <amonakov@ispras.ru>
551
552 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
553 mapping clauses to target constructs.
554 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
555
556 2016-11-15 Matthias Klose <doko@ubuntu.com>
557
558 * configure: Regenerate.
559
560 2016-11-10 Jakub Jelinek <jakub@redhat.com>
561
562 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
563 * omp_lib.h.in (openmp_version): Likewise.
564 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
565 of 201307.
566 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
567
568 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
569 (fib_wrapper): Add map(from: x) clause.
570 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
571 (e_53_2): Likewise.
572 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
573 (accum): Add map(tmp) clause.
574 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
575 (accum): Add map(tofrom: tmp) clause.
576 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
577 (gramSchmidt): Likewise.
578 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
579 map(tofrom: sum) clause.
580 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
581 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
582 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
583 only allowed on the loop iterator.
584 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
585 * testsuite/libgomp.fortran/taskloop2.f90: New test.
586 * testsuite/libgomp.fortran/taskloop4.f90: New test.
587 * testsuite/libgomp.fortran/doacross1.f90: New test.
588 * testsuite/libgomp.fortran/doacross3.f90: New test.
589 * testsuite/libgomp.fortran/taskloop1.f90: New test.
590 * testsuite/libgomp.fortran/taskloop3.f90: New test.
591 * testsuite/libgomp.fortran/doacross2.f90: New test.
592 * testsuite/libgomp.c/doacross-1.c (main): Add missing
593 #pragma omp atomic read.
594 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
595 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
596
597 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
598 Nathan Sidwell <nathan@acm.org>
599
600 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
601 to determine default geometry.
602 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
603 dimension.
604
605 2016-11-01 Jakub Jelinek <jakub@redhat.com>
606
607 * hashtab.h: Use standard GPLv3 with runtime exception
608 boilerplate.
609
610 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
611
612 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
613 size when allocating new thread.
614
615 2016-09-14 Marek Polacek <polacek@redhat.com>
616
617 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
618
619 2016-08-19 Jakub Jelinek <jakub@redhat.com>
620
621 PR fortran/71014
622 * testsuite/libgomp.fortran/pr71014.f90: New test.
623
624 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
625
626 PR middle-end/70895
627 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
628 firstprivate clauses.
629 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
630 copy clauses.
631 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
632 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
633 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
634 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
635 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
636 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
637 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
638 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
639 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
640 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
641 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
642 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
643
644 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
645
646 PR fortran/70598
647 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
648
649 2016-08-08 Jakub Jelinek <jakub@redhat.com>
650
651 PR c++/58706
652 * testsuite/libgomp.c++/pr58706.C: New test.
653
654 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
655
656 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
657 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
658 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
659 Likewise.
660 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
661 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
662 Likewise.
663 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
664
665 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
666 test, and don't hardcode -O0.
667
668 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
669
670 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
671
672 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
673
674 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
675 test.
676
677 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
678
679 PR middle-end/71734
680 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
681 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
682
683 2016-07-01 Jakub Jelinek <jakub@redhat.com>
684
685 PR fortran/71717
686 * testsuite/libgomp.fortran/associate3.f90: New test.
687
688 2016-06-17 Jakub Jelinek <jakub@redhat.com>
689
690 * testsuite/libgomp.c++/target-21.C: New test.
691
692 2016-06-16 Jakub Jelinek <jakub@redhat.com>
693
694 * testsuite/libgomp.c++/target-20.C: New test.
695
696 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
697 Cesar Philippidis <cesar@codesourcery.com>
698
699 PR middle-end/71373
700 * libgomp.oacc-c/nested-function-1.c: New file.
701 * libgomp.oacc-c/nested-function-2.c: Likewise.
702 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
703 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
704 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
705
706 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
707
708 PR c/71381
709 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
710 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
711 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
712
713 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
714
715 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
716 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
717
718 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
719
720 PR c/70688
721 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
722
723 2016-05-26 Jakub Jelinek <jakub@redhat.com>
724
725 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
726 instead of invalid schedule(static, 0).
727 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
728
729 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
730
731 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
732 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
733 parameter, use to set async stream around call to gomp_unmap_vars,
734 call gomp_unmap_vars() with 'do_copyfrom' set to true.
735 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
736 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
737 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
738 (event_add): Add int parameter, initialize 'val' field when
739 adding new ptx_event struct.
740 (nvptx_evec): Adjust event_add() call arguments.
741 (nvptx_host2dev): Likewise.
742 (nvptx_dev2host): Likewise.
743 (nvptx_wait_async): Likewise.
744 (nvptx_wait_all_async): Likewise.
745 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
746 pass to event_add() call.
747 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
748 parameter.
749 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
750 call openacc.register_async_cleanup_func() hook.
751 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
752 * target.c (gomp_copy_from_async): Delete function.
753 (gomp_map_vars): Remove async_refcount.
754 (gomp_unmap_vars): Likewise.
755 (gomp_load_image_to_device): Likewise.
756 (omp_target_associate_ptr): Likewise.
757 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
758 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
759 (gomp_copy_from_async): Remove.
760
761 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
762
763 * target.c (gomp_device_copy): New function.
764 (gomp_copy_host2dev): Likewise.
765 (gomp_copy_dev2host): Likewise.
766 (gomp_free_device_memory): Likewise.
767 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
768 (gomp_map_pointer): Likewise.
769 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
770 NULL value from alloc_func plugin hook.
771 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
772 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
773 (gomp_unmap_vars): Likewise.
774 (gomp_update): Adjust to call gomp_copy_dev2host and
775 gomp_copy_host2dev functions.
776 (gomp_unload_image_from_device): Handle false value from
777 unload_image_func plugin hook.
778 (gomp_init_device): Handle false value from init_device_func
779 plugin hook.
780 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
781 (omp_target_free): Adjust to call gomp_free_device_memory.
782 (omp_target_memcpy): Handle return values from host2dev_func,
783 dev2host_func, and dev2dev_func plugin hooks.
784 (omp_target_memcpy_rect_worker): Likewise.
785 (gomp_target_fini): Handle false value from fini_device_func
786 plugin hook.
787 * libgomp.h (struct gomp_device_descr): Adjust return type of
788 init_device_func, fini_device_func, unload_image_func, free_func,
789 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
790 * oacc-init.c (acc_shutdown_1): Handle false value from
791 fini_device_func plugin hook.
792 * oacc-host.c (host_init_device): Change return type to bool.
793 (host_fini_device): Likewise.
794 (host_unload_image): Likewise.
795 (host_free): Likewise.
796 (host_dev2host): Likewise.
797 (host_host2dev): Likewise.
798 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
799 (acc_memcpy_to_device): Likewise.
800 (acc_memcpy_from_device): Likewise.
801 (delete_copyout): Add libfnname parameter, handle free_func
802 hook fatal error case.
803 (acc_delete): Adjust delete_copyout call.
804 (acc_copyout): Likewise.
805 (update_dev_host): Move gomp_mutex_unlock to after
806 host2dev/dev2host hook calls.
807
808 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
809 to 'hsa_error_msg', for clarity.
810 (hsa_fatal): Likewise.
811 (hsa_error): New function.
812 (init_hsa_context): Change return type to bool, adjust to return
813 false on error.
814 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
815 return value.
816 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
817 return false on error.
818 (get_agent_info): Adjust to return NULL on error.
819 (destroy_hsa_program): Change return type to bool, adjust to
820 return false on error.
821 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
822 (destroy_module): Change return type to bool, adjust to
823 return false on error.
824 (GOMP_OFFLOAD_unload_image): Likewise.
825 (GOMP_OFFLOAD_fini_device): Likewise.
826 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
827 (GOMP_OFFLOAD_free): Change to return false when called.
828 (GOMP_OFFLOAD_dev2host): Likewise.
829 (GOMP_OFFLOAD_host2dev): Likewise.
830 (GOMP_OFFLOAD_dev2dev): Likewise.
831
832 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
833 (CUDA_CALL): Likewise.
834 (CUDA_CALL_ASSERT): Likewise.
835 (map_init): Change return type to bool, use CUDA_CALL* macros.
836 (map_fini): Likewise.
837 (init_streams_for_device): Change return type to bool, adjust
838 call to map_init.
839 (fini_streams_for_device): Change return type to bool, adjust
840 call to map_fini.
841 (select_stream_for_async): Release stream_lock before calls to
842 GOMP_PLUGIN_fatal, adjust call to map_init.
843 (nvptx_init): Use CUDA_CALL* macros.
844 (nvptx_attach_host_thread_to_device): Change return type to bool,
845 use CUDA_CALL* macros.
846 (nvptx_open_device): Use CUDA_CALL* macros.
847 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
848 macros.
849 (nvptx_get_num_devices): Use CUDA_CALL* macros.
850 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
851 (nvptx_exec): Use CUDA_CALL* macros.
852 (nvptx_alloc): Use CUDA_CALL* macros.
853 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
854 (nvptx_host2dev): Likewise.
855 (nvptx_dev2host): Likewise.
856 (nvptx_wait): Use CUDA_CALL* macros.
857 (nvptx_wait_async): Likewise.
858 (nvptx_wait_all): Likewise.
859 (nvptx_wait_all_async): Likewise.
860 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
861 use CUDA_CALL* macros, adjust call to map_fini.
862 (GOMP_OFFLOAD_init_device): Change return type to bool,
863 adjust code accordingly.
864 (GOMP_OFFLOAD_fini_device): Likewise.
865 (GOMP_OFFLOAD_load_image): Adjust calls to
866 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
867 use CUDA_CALL* macros.
868 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
869 return code.
870 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
871 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
872 handle error return.
873 (GOMP_OFFLOAD_dev2host): Likewise.
874 (GOMP_OFFLOAD_host2dev): Likewise.
875 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
876 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
877
878 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
879
880 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
881 (acc_free): Likewise.
882 (acc_memcpy_to_device): Likewise.
883 (acc_memcpy_from_device): Likewise.
884 (acc_deviceptr): Likewise.
885 (acc_hostptr): Likewise.
886 (acc_is_present): Likewise.
887 (acc_map_data): Likewise.
888 (acc_unmap_data): Likewise.
889 (present_create_copy): Likewise.
890 (delete_copyout): Likewise.
891 (update_dev_host): Likewise.
892 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
893 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
894 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
895 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
896 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
897 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
898 it only runs on nvptx targets.
899 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
900 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
901 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
902 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
903 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
904 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
905 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
906 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
907 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
908 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
909 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
910 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
911 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
912 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
913 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
914 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
915 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
916 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
917 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
918 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
919 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
920 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
921 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
922
923 2016-05-23 Martin Jambor <mjambor@suse.cz>
924
925 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
926
927 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
928
929 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
930 to gomp_init_targets_once.
931 (acc_set_device_type): Remove !cached_base_dev condition on call to
932 gomp_init_targets_once, move call to before acc_device_lock acquire,
933 to avoid deadlock.
934 (acc_get_device_num): Remove !cached_base_dev condition on call to
935 gomp_init_targets_once.
936 (acc_set_device_num): Likewise.
937
938 2016-05-16 Martin Jambor <mjambor@suse.cz>
939
940 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
941
942 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
943
944 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
945 expected partitioning.
946
947 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
948
949 PR middle-end/70626
950 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
951 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
952 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
953
954 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
955
956 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
957 non-fatal.
958
959 2016-04-19 Jakub Jelinek <jakub@redhat.com>
960
961 PR middle-end/70680
962 * testsuite/libgomp.c/pr70680-1.c: New test.
963 * testsuite/libgomp.c/pr70680-2.c: New test.
964
965 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
966
967 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
968 pass parameter variables to subroutines.
969
970 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
971
972 PR middle-end/70643
973 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
974
975 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
976
977 PR testsuite/68242
978 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
979 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
980
981 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
982
983 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
984 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
985 GOACC_declare prototype.
986
987 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
988 Merge this file, and...
989 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
990 ... this file, and...
991 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
992 ... this file, and...
993 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
994 ... this file, and...
995 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
996 ... this file, and...
997 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
998 ... this file, and...
999 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
1000 ... this file, and...
1001 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
1002 ... this file, and...
1003 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
1004 ... this file, and...
1005 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
1006 ... this file, and...
1007 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
1008 ... this file, and...
1009 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
1010 ... this file, and...
1011 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
1012 ... this file into...
1013 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
1014 file.
1015
1016 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
1017 Make failure observable.
1018
1019 2016-04-12 Jakub Jelinek <jakub@redhat.com>
1020
1021 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
1022 field.
1023 * target.c (gomp_target_fallback_firstprivate,
1024 gomp_target_unshare_firstprivate): Removed.
1025 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
1026 before waiting for dependencies.
1027 (gomp_target_task_fn): Don't copy firstprivate vars here.
1028 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
1029 firstprivate_copies here.
1030 (gomp_create_target_task): Don't initialize firstprivate_copies field.
1031 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
1032 explicit/implicit firstprivate.
1033
1034 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
1035
1036 PR lto/70289
1037 PR ipa/70348
1038 PR tree-optimization/70373
1039 PR middle-end/70533
1040 PR middle-end/70534
1041 PR middle-end/70535
1042 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
1043 test.
1044 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
1045 test.
1046 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
1047 test.
1048 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
1049 test.
1050 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
1051 test.
1052 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
1053 test.
1054 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
1055 test.
1056 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
1057 test.
1058 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
1059 test.
1060 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
1061 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
1062 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
1063 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
1064 test.
1065 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
1066 test.
1067 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
1068 test.
1069 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
1070 test.
1071 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
1072 coverage.
1073 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1074 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1075 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
1076 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
1077 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
1078 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
1079 coverage.
1080 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
1081 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
1082 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
1083 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1084 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
1085 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
1086 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
1087 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
1088 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
1089 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
1090 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
1091 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
1092 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1093 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1094 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
1095
1096 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
1097 James Norris <jnorris@codesourcery.com>
1098 Nathan Sidwell <nathan@codesourcery.com>
1099 Julian Brown <julian@codesourcery.com>
1100 Cesar Philippidis <cesar@codesourcery.com>
1101 Chung-Lin Tang <cltang@codesourcery.com>
1102 Tom de Vries <tom@codesourcery.com>
1103
1104 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
1105 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
1106 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
1107 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
1108 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
1109 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
1110 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
1111 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
1112 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
1113 XFAIL.
1114 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
1115 Incorporate...
1116 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
1117 file.
1118 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
1119 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
1120 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
1121 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
1122 Likewise.
1123 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
1124 Likewise.
1125 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
1126 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
1127 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
1128 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
1129 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
1130 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
1131 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
1132 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
1133 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1134 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
1135 Likewise.
1136 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
1137 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
1138 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
1139 file...
1140 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
1141 file into...
1142 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
1143 file. Update.
1144 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
1145 file.
1146 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
1147 Likewise.
1148 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
1149 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
1150 ... this new file. Update.
1151 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
1152 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
1153 ... this new file. Update.
1154 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
1155 file. Incorporate...
1156 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
1157 file, and...
1158 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
1159 file, and...
1160 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
1161 file.
1162 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
1163
1164 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
1165
1166 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
1167 set-torture-options.
1168
1169 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
1170
1171 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
1172 gcc-dg-runtest.
1173 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1174 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
1175 -fno-builtin-acc_on_device instead of -O0.
1176 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
1177 -O0.
1178 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
1179 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
1180 Likewise.
1181 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
1182 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
1183 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
1184 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
1185 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
1186 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
1187 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
1188 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1189 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1190 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
1191 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1192 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
1193 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
1194 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
1195 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
1196 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
1197 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
1198 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
1199 Don't specify -O2.
1200 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
1201 Likewise.
1202 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
1203 Likewise.
1204
1205 2016-03-24 Martin Liska <mliska@suse.cz>
1206
1207 * plugin/plugin-hsa.c (packet_store_release): New function
1208 that is taken from the HSA runtime manual.
1209 (GOMP_OFFLOAD_run): Use the function.
1210
1211 2016-03-23 Jakub Jelinek <jakub@redhat.com>
1212
1213 PR c++/70376
1214 * testsuite/libgomp.c++/pr70376.C: New test.
1215
1216 2016-03-23 Tom de Vries <tom@codesourcery.com>
1217
1218 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
1219 initialization of lresult and lvresult.
1220 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
1221
1222 2016-03-23 James Norris <jnorris@codesourcery.com>
1223 Daichi Fukuoka <dc-fukuoka@sgi.com>
1224
1225 PR libgomp/69414
1226 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
1227 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
1228 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
1229 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
1230
1231 2016-03-23 Martin Liska <mliska@suse.cz>
1232
1233 PR hsa/70337
1234 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
1235 argument just in case a dispatched kernel uses that argument.
1236
1237 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
1238
1239 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
1240 -ftree-parallelize-loops/-fopenacc changes.
1241 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
1242 Likewise.
1243 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
1244 Likewise.
1245 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
1246 Likewise.
1247 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
1248 Likewise.
1249 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
1250 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
1251
1252 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
1253
1254 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
1255 always_ld_library_path the path to libgcc_s.
1256
1257 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
1258
1259 PR testsuite/70009
1260 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
1261
1262 2016-03-09 Tom de Vries <tom@codesourcery.com>
1263
1264 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
1265 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
1266 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
1267 Same.
1268 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
1269 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
1270 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
1271 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
1272
1273 2016-03-07 Martin Jambor <mjambor@suse.cz>
1274
1275 * testsuite/lib/libgomp.exp
1276 (check_effective_target_hsa_offloading_selected_nocache): New.
1277 (check_effective_target_hsa_offloading_selected): Likewise.
1278 * testsuite/libgomp.hsa.c/c.exp: Likewise.
1279 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
1280 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
1281 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
1282 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
1283 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
1284 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
1285 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
1286 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
1287 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
1288 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
1289 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
1290 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
1291 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
1292 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
1293 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
1294 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
1295
1296 2016-03-07 Martin Jambor <mjambor@suse.cz>
1297
1298 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
1299 non-shared memory accelerators.
1300 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
1301 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
1302 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
1303 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
1304 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
1305 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
1306 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
1307 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
1308 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
1309
1310 2016-03-07 Martin Jambor <mjambor@suse.cz>
1311
1312 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
1313 ALWAYS_CFLAGS.
1314
1315 2016-03-02 Jakub Jelinek <jakub@redhat.com>
1316
1317 PR libgomp/69555
1318 * testsuite/libgomp.c++/pr69555-1.C: New test.
1319 * testsuite/libgomp.c++/pr69555-2.C: New test.
1320
1321 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
1322 Martin Jambor <mjambor@suse.cz>
1323
1324 * testsuite/lib/libgomp.exp
1325 (check_effective_target_offload_device_shared_as): New proc.
1326 * testsuite/libgomp.c++/declare_target-1.C: New test.
1327
1328 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
1329
1330 PR driver/68463
1331 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
1332
1333 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
1334
1335 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
1336 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
1337 dims.
1338 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
1339 -ftree-parallelize-loops/-fopenacc changes.
1340 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
1341 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
1342 Likewise.
1343 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
1344 Likewise.
1345 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
1346 Likewise.
1347 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
1348 Likewise.
1349 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
1350 Likewise.
1351 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
1352 Likewise.
1353 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
1354 Likewise.
1355 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
1356 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
1357 Likewise.
1358 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
1359 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
1360 Likewise.
1361 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
1362 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
1363 Likewise.
1364
1365 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
1366
1367 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
1368
1369 2016-02-19 Jakub Jelinek <jakub@redhat.com>
1370
1371 PR driver/69805
1372 * testsuite/libgomp.c/pr69805.c: New test.
1373
1374 2016-02-16 Tom de Vries <tom@codesourcery.com>
1375
1376 PR lto/67709
1377 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
1378
1379 2016-02-09 Tom de Vries <tom@codesourcery.com>
1380
1381 PR tree-optimization/69599
1382 * testsuite/libgomp.c/omp-nested-3.c: New test.
1383 * testsuite/libgomp.c/pr46032-2.c: New test.
1384 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
1385 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
1386
1387 2016-02-09 Tom de Vries <tom@codesourcery.com>
1388
1389 PR lto/69707
1390 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
1391
1392 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
1393
1394 * testsuite/libgomp.c/target-31.c: Fix testcase.
1395
1396 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
1397
1398 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
1399 clause.
1400 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
1401 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
1402 reduction and map clauses.
1403 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
1404
1405 2016-02-02 James Norris <jnorris@codesourcery.com>
1406
1407 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
1408
1409 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
1410
1411 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
1412 * oacc-parallel.c (GOACC_host_data): Remove function definition.
1413
1414 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
1415 cases.
1416
1417 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
1418 variables.
1419 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
1420 (hsa_kmt_lib): Set variables.
1421 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
1422 always_ld_library_path.
1423 * Makefile.in: Regenerate.
1424 * configure: Likewise.
1425 * testsuite/Makefile.in: Likewise.
1426
1427 * plugin/configfrag.ac (offload_additional_options)
1428 (offload_additional_lib_paths): Don't amend for hsa offloading.
1429 * configure: Regenerate.
1430
1431 * plugin/configfrag.ac: Don't configure for offloading target if
1432 we don't build the corresponding plugin.
1433 * configure: Regenerate.
1434
1435 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
1436
1437 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
1438 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
1439
1440 2016-01-26 Tom de Vries <tom@codesourcery.com>
1441
1442 PR tree-optimization/69110
1443 * testsuite/libgomp.c/pr69110.c: New test.
1444
1445 2016-01-25 Richard Biener <rguenther@suse.de>
1446
1447 PR lto/69393
1448 * testsuite/libgomp.c++/pr69393.C: New testcase.
1449
1450 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
1451
1452 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
1453 function wasn't mapped to the device with non-shared memory.
1454
1455 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
1456
1457 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
1458
1459 2016-01-19 Martin Jambor <mjambor@suse.cz>
1460 Martin Liska <mliska@suse.cz>
1461
1462 * plugin/Makefrag.am: Add HSA plugin requirements.
1463 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
1464 (HSA_RUNTIME_LIB): Likewise.
1465 (HSA_RUNTIME_CPPFLAGS): Likewise.
1466 (HSA_RUNTIME_INCLUDE): New substitution.
1467 (HSA_RUNTIME_LIB): Likewise.
1468 (HSA_RUNTIME_LDFLAGS): Likewise.
1469 (hsa-runtime): New configure option.
1470 (hsa-runtime-include): Likewise.
1471 (hsa-runtime-lib): Likewise.
1472 (PLUGIN_HSA): New substitution variable.
1473 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
1474 configure options.
1475 (PLUGIN_HSA_CPPFLAGS): Likewise.
1476 (PLUGIN_HSA_LDFLAGS): Likewise.
1477 (PLUGIN_HSA_LIBS): Likewise.
1478 Check that we have access to HSA run-time.
1479 * libgomp-plugin.h (offload_target_type): New element
1480 OFFLOAD_TARGET_TYPE_HSA.
1481 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
1482 args.
1483 (bool gomp_create_target_task): Updated.
1484 (gomp_device_descr): Extra parameter of run_func and async_run_func,
1485 new field can_run_func.
1486 * libgomp_g.h (GOMP_target_ext): Update prototype.
1487 * oacc-host.c (host_run): Added a new parameter args.
1488 * target.c (calculate_firstprivate_requirements): New function.
1489 (copy_firstprivate_data): Likewise.
1490 (gomp_target_fallback_firstprivate): Use them.
1491 (gomp_target_unshare_firstprivate): New function.
1492 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
1493 devices.
1494 (GOMP_target): Do host fallback for all shared memory devices. Do not
1495 pass any args to plugins.
1496 (GOMP_target_ext): Introduce device-specific argument parameter args.
1497 Allow host fallback if device shares memory. Do not remap data if
1498 device has shared memory.
1499 (gomp_target_task_fn): Likewise. Also treat shared memory devices
1500 like host fallback for mappings.
1501 (GOMP_target_data): Treat shared memory devices like host fallback.
1502 (GOMP_target_data_ext): Likewise.
1503 (GOMP_target_update): Likewise.
1504 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
1505 gomp_create_target_task.
1506 (GOMP_target_enter_exit_data): Likewise.
1507 (omp_target_alloc): Treat shared memory devices like host fallback.
1508 (omp_target_free): Likewise.
1509 (omp_target_is_present): Likewise.
1510 (omp_target_memcpy): Likewise.
1511 (omp_target_memcpy_rect): Likewise.
1512 (omp_target_associate_ptr): Likewise.
1513 (gomp_load_plugin_for_device): Also load can_run.
1514 * task.c (GOMP_PLUGIN_target_task_completion): Free
1515 firstprivate_copies.
1516 (gomp_create_target_task): Accept new argument args and store it to
1517 ttask.
1518 * plugin/plugin-hsa.c: New file.
1519
1520 2016-01-18 Tom de Vries <tom@codesourcery.com>
1521
1522 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
1523 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
1524 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
1525 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
1526 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
1527 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
1528 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
1529 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
1530 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
1531 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
1532 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
1533 Same.
1534 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
1535 Same.
1536 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
1537 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
1538 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
1539 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
1540 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
1541 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
1542 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
1543 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
1544 Same.
1545 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
1546
1547 2016-01-15 Jakub Jelinek <jakub@redhat.com>
1548
1549 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
1550
1551 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
1552
1553 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
1554
1555 2016-01-12 James Norris <jnorris@codesourcery.com>
1556
1557 * libgomp.texi: Updates for OpenACC.
1558
1559 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
1560
1561 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
1562
1563 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
1564
1565 PR fortran/66680
1566 * testsuite/libgomp.fortran/pr66680.f90: New test.
1567
1568 2016-01-07 Jakub Jelinek <jakub@redhat.com>
1569
1570 PR middle-end/68960
1571 * testsuite/libgomp.c/pr68960.c: New test.
1572
1573 2016-01-06 Nathan Sidwell <nathan@acm.org>
1574
1575 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
1576 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
1577
1578 2016-01-04 Jakub Jelinek <jakub@redhat.com>
1579
1580 Update copyright years.
1581
1582 * libgomp.texi: Bump @copying's copyright year.
1583
1584 2015-12-31 Nathan Sidwell <nathan@acm.org>
1585
1586 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
1587 dg-additional-options syntax.
1588 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
1589 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
1590 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
1591 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
1592 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
1593 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
1594 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
1595 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
1596 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
1597 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
1598 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
1599 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
1600 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1601 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
1602 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
1603 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
1604 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
1605 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1606
1607 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
1608
1609 * libgomp.h (REFCOUNT_LINK): Define.
1610 (struct splay_tree_key_s): Add link_key.
1611 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
1612 Replace target address of the pointer with target address of newly
1613 mapped object in the splay tree. Set link pointer on target to the
1614 device address of the mapped object.
1615 (gomp_unmap_vars): Restore target address of the pointer in the splay
1616 tree for REFCOUNT_LINK objects after unmapping.
1617 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
1618 declare target link" objects.
1619 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
1620 "omp declare target link" objects, which were mapped for the image.
1621 (gomp_exit_data): Restore target address of the pointer in the splay
1622 tree for REFCOUNT_LINK objects after unmapping.
1623 * testsuite/libgomp.c/target-link-1.c: New file.
1624
1625 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
1626
1627 * libgomp.h (gomp_device_state): New enum.
1628 (struct gomp_device_descr): Replace is_initialized with state.
1629 (gomp_fini_device): Remove declaration.
1630 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
1631 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
1632 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
1633 (acc_set_device_type): Use state instead of is_initialized.
1634 (acc_set_device_num): Likewise.
1635 * target.c (resolve_device): Use state instead of is_initialized.
1636 Do not initialize finalized device.
1637 (gomp_map_vars): Do nothing if device is finalized.
1638 (gomp_unmap_vars): Likewise.
1639 (gomp_update): Likewise.
1640 (GOMP_offload_register_ver): Use state instead of is_initialized.
1641 (GOMP_offload_unregister_ver): Likewise.
1642 (gomp_init_device): Likewise.
1643 (gomp_unload_device): Likewise.
1644 (gomp_fini_device): Remove.
1645 (gomp_get_target_fn_addr): Do nothing if device is finalized.
1646 (GOMP_target): Go to host fallback if device is finalized.
1647 (GOMP_target_ext): Likewise.
1648 (gomp_exit_data): Do nothing if device is finalized.
1649 (gomp_target_task_fn): Go to host fallback if device is finalized.
1650 (gomp_target_fini): New static function.
1651 (gomp_target_init): Use state instead of is_initialized.
1652 Call gomp_target_fini at exit.
1653
1654 2015-12-09 Tom de Vries <tom@codesourcery.com>
1655
1656 PR tree-optimization/68716
1657 * testsuite/libgomp.c/omp-nested-2.c: New test.
1658
1659 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
1660
1661 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
1662 target openacc_nvidia_accel_selected.
1663 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
1664 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
1665 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
1666 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
1667
1668 2015-12-01 Julian Brown <julian@codesourcery.com>
1669 James Norris <James_Norris@mentor.com>
1670
1671 * oacc-parallel.c (GOACC_host_data): New function.
1672 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
1673 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
1674 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
1675 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
1676 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
1677 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
1678 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
1679
1680 2015-11-30 James Norris <jnorris@codesourcery.com>
1681 Cesar Philippidis <cesar@codesourcery.com>
1682
1683 libgomp/
1684 * libgomp.oacc-fortran/routine-5.f90: New test.
1685 * libgomp.oacc-fortran/routine-7.f90: New test.
1686 * libgomp.oacc-fortran/routine-9.f90: New test.
1687
1688 2015-11-30 Tom de Vries <tom@codesourcery.com>
1689
1690 PR tree-optimization/46032
1691 * testsuite/libgomp.c/pr46032.c: New test.
1692
1693 2015-11-27 Jakub Jelinek <jakub@redhat.com>
1694
1695 PR libgomp/68579
1696 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
1697 (gomp_create_target_task): Call it before freeing
1698 GOMP_TARGET_TASK_DATA tasks.
1699
1700 PR c/63326
1701 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
1702 in between case label and OpenMP standalone directives.
1703 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
1704
1705 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
1706
1707 * configure: Regenerate.
1708
1709 2015-11-26 Jakub Jelinek <jakub@redhat.com>
1710
1711 * testsuite/libgomp.c/target-35.c: New test.
1712
1713 2015-11-22 James Norris <jnorris@codesourcery.com>
1714 Cesar Philippidis <cesar@codesourcery.com>
1715
1716 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
1717 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
1718 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
1719 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
1720 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
1721
1722 2015-11-20 Jakub Jelinek <jakub@redhat.com>
1723
1724 PR middle-end/68221
1725 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
1726 * testsuite/libgomp.c/reduction-12.c: Likewise.
1727 * testsuite/libgomp.c++/reduction-11.C: Likewise.
1728 * testsuite/libgomp.c++/reduction-12.C: Likewise.
1729
1730 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
1731
1732 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
1733 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
1734 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
1735 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
1736 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
1737 and fix.
1738 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
1739 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
1740
1741 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
1742
1743 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
1744 worker & gang cases.
1745 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
1746
1747 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
1748
1749 * config/nvptx/priority_queue.c: New file.
1750
1751 2015-11-14 Jakub Jelinek <jakub@redhat.com>
1752
1753 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
1754 sections.
1755
1756 2015-11-14 Jakub Jelinek <jakub@redhat.com>
1757 Aldy Hernandez <aldyh@redhat.com>
1758 Ilya Verbin <ilya.verbin@intel.com>
1759
1760 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
1761 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
1762 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
1763 iterators or IV by chunk size.
1764 * parallel.c (gomp_resolve_num_threads): Don't assume that
1765 if thr->ts.team is non-NULL, then pool must be non-NULL.
1766 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
1767 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
1768 GOMP_PLUGIN_target_task_completion.
1769 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
1770 * Makefile.in: Regenerate.
1771 * libgomp.h: Shuffle prototypes and forward definitions around so
1772 priority queues can be defined.
1773 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
1774 (enum gomp_target_task_state): New enum.
1775 (struct gomp_target_task): Add state, tgt, task and team fields.
1776 (gomp_create_target_task): Change return type to bool, add
1777 state argument.
1778 (gomp_target_task_fn): Change return type to bool.
1779 (struct gomp_device_descr): Add async_run_func.
1780 (struct gomp_task): Remove children, next_child, prev_child,
1781 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
1782 Add pnode field.
1783 (struct gomp_taskgroup): Remove children.
1784 Add taskgroup_queue.
1785 (struct gomp_team): Change task_queue type to a priority queue.
1786 (splay_compare): Define inline.
1787 (priority_queue_offset): New.
1788 (priority_node_to_task): New.
1789 (task_to_priority_node): New.
1790 * oacc-mem.c: Do not include splay-tree.h.
1791 * priority_queue.c: New file.
1792 * priority_queue.h: New file.
1793 * splay-tree.c: Do not include splay-tree.h.
1794 (splay_tree_foreach_internal): New.
1795 (splay_tree_foreach): New.
1796 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
1797 (splay_tree_callback): Define typedef.
1798 * target.c (splay_compare): Move to libgomp.h.
1799 (GOMP_target): Don't adjust *thr in any way around running offloaded
1800 task.
1801 (GOMP_target_ext): Likewise. Handle target nowait.
1802 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
1803 return value from gomp_create_target_task, if false, fallthrough
1804 as if no dependencies exist.
1805 (gomp_target_task_fn): Change return type to bool, return true
1806 if the task should have another part scheduled later. Handle
1807 target nowait.
1808 (gomp_load_plugin_for_device): Initialize async_run.
1809 * task.c (gomp_init_task): Initialize children_queue.
1810 (gomp_clear_parent_in_list): New.
1811 (gomp_clear_parent_in_tree): New.
1812 (gomp_clear_parent): Handle priorities.
1813 (GOMP_task): Likewise.
1814 (priority_queue_move_task_first,
1815 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
1816 New functions.
1817 (gomp_create_target_task): Use priority queues. Change return type
1818 to bool, add state argument, return false if for async
1819 {{enter,exit} data,update} constructs no dependencies need to be
1820 waited for, handle target nowait. Set task->fn to NULL instead of
1821 gomp_target_task_fn.
1822 (verify_children_queue): Remove.
1823 (priority_list_upgrade_task): New.
1824 (priority_queue_upgrade_task): New.
1825 (verify_task_queue): Remove.
1826 (priority_list_downgrade_task): New.
1827 (priority_queue_downgrade_task): New.
1828 (gomp_task_run_pre): Use priority queues.
1829 Abstract code out to priority_queue_downgrade_task.
1830 (gomp_task_run_post_handle_dependers): Use priority queues.
1831 (gomp_task_run_post_remove_parent): Likewise.
1832 (gomp_task_run_post_remove_taskgroup): Likewise.
1833 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
1834 tasks specially.
1835 (GOMP_taskwait): Likewise.
1836 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
1837 priority-queue_upgrade_task.
1838 (GOMP_taskgroup_start): Use priority queues.
1839 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
1840 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
1841 barrier.
1842 * taskloop.c (GOMP_taskloop): Handle priorities.
1843 * team.c (gomp_new_team): Call priority_queue_init.
1844 (free_team): Call priority_queue_free.
1845 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
1846 team created for target nowait in implicit parallel region.
1847 (gomp_team_start): For nested check, test thr->ts.level instead of
1848 thr->ts.team != NULL.
1849 * testsuite/libgomp.c/doacross-3.c: New test.
1850 * testsuite/libgomp.c/ordered-5.c: New test.
1851 * testsuite/libgomp.c/priority.c: New test.
1852 * testsuite/libgomp.c/target-31.c: New test.
1853 * testsuite/libgomp.c/target-32.c: New test.
1854 * testsuite/libgomp.c/target-33.c: New test.
1855 * testsuite/libgomp.c/target-34.c: New test.
1856
1857 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
1858
1859 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
1860
1861 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
1862 loop is sequential.
1863
1864 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
1865
1866 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
1867 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
1868
1869 2015-11-12 James Norris <jnorris@codesourcery.com>
1870 Joseph Myers <joseph@codesourcery.com>
1871
1872 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
1873 * oacc-parallel.c (GOACC_declare): New function.
1874 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
1875 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
1876 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
1877 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
1878 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
1879
1880 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
1881
1882 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
1883
1884 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
1885
1886 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
1887 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
1888
1889 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
1890
1891 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
1892 inadvertent commit.
1893
1894 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
1895
1896 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
1897 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
1898 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
1899 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
1900 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
1901
1902 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
1903
1904 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
1905 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1906
1907 2015-11-05 Jakub Jelinek <jakub@redhat.com>
1908 Ilya Verbin <ilya.verbin@intel.com>
1909
1910 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
1911 GOMP_loop_nonmonotonic_dynamic_start,
1912 GOMP_loop_nonmonotonic_guided_next,
1913 GOMP_loop_nonmonotonic_guided_start,
1914 GOMP_loop_ull_nonmonotonic_dynamic_next,
1915 GOMP_loop_ull_nonmonotonic_dynamic_start,
1916 GOMP_loop_ull_nonmonotonic_guided_next,
1917 GOMP_loop_ull_nonmonotonic_guided_start,
1918 GOMP_parallel_loop_nonmonotonic_dynamic,
1919 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
1920 (GOMP_target_41): Renamed to ...
1921 (GOMP_target_ext): ... this. Add num_teams and thread_limit
1922 arguments.
1923 (GOMP_target_data_41): Renamed to ...
1924 (GOMP_target_data_ext): ... this.
1925 (GOMP_target_update_41): Renamed to ...
1926 (GOMP_target_update_ext): ... this.
1927 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
1928 GOMP_target_data_ext and GOMP_target_update_ext instead of
1929 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
1930 Export GOMP_loop_nonmonotonic_dynamic_next,
1931 GOMP_loop_nonmonotonic_dynamic_start,
1932 GOMP_loop_nonmonotonic_guided_next,
1933 GOMP_loop_nonmonotonic_guided_start,
1934 GOMP_loop_ull_nonmonotonic_dynamic_next,
1935 GOMP_loop_ull_nonmonotonic_dynamic_start,
1936 GOMP_loop_ull_nonmonotonic_guided_next,
1937 GOMP_loop_ull_nonmonotonic_guided_start,
1938 GOMP_parallel_loop_nonmonotonic_dynamic and
1939 GOMP_parallel_loop_nonmonotonic_guided.
1940 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
1941 GOMP_parallel_loop_nonmonotonic_guided,
1942 GOMP_loop_nonmonotonic_dynamic_start,
1943 GOMP_loop_nonmonotonic_guided_start,
1944 GOMP_loop_nonmonotonic_dynamic_next,
1945 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
1946 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
1947 GOMP_loop_ull_nonmonotonic_guided_start,
1948 GOMP_loop_ull_nonmonotonic_dynamic_next,
1949 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
1950 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
1951 functions.
1952 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
1953 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
1954 Use gomp_map_val function.
1955 (gomp_target_fallback_firstprivate): New static function.
1956 (GOMP_target_41): Renamed to ...
1957 (GOMP_target_ext): ... this. Add num_teams and thread_limit
1958 arguments. Move firstprivate fallback handling into a new
1959 function.
1960 (GOMP_target_data_41): Renamed to ...
1961 (GOMP_target_data_ext): ... this.
1962 (GOMP_target_update_41): Renamed to ...
1963 (GOMP_target_update_ext): ... this.
1964 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
1965 gomp_map_0len_lookup instead of gomp_map_lookup.
1966 (omp_target_is_present): Use gomp_map_0len_lookup instead of
1967 gomp_map_lookup.
1968 * testsuite/libgomp.c/target-28.c: Likewise.
1969 * testsuite/libgomp.c/monotonic-1.c: New test.
1970 * testsuite/libgomp.c/monotonic-2.c: New test.
1971 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
1972 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
1973 * testsuite/libgomp.c/pr66199-5.c: New test.
1974 * testsuite/libgomp.c/pr66199-6.c: New test.
1975 * testsuite/libgomp.c/pr66199-7.c: New test.
1976 * testsuite/libgomp.c/pr66199-8.c: New test.
1977 * testsuite/libgomp.c/pr66199-9.c: New test.
1978 * testsuite/libgomp.c/reduction-11.c: New test.
1979 * testsuite/libgomp.c/reduction-12.c: New test.
1980 * testsuite/libgomp.c/reduction-13.c: New test.
1981 * testsuite/libgomp.c/reduction-14.c: New test.
1982 * testsuite/libgomp.c/reduction-15.c: New test.
1983 * testsuite/libgomp.c/target-12.c (main): Adjust for
1984 omp_target_is_present change for one-past-last element.
1985 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
1986 the same var is both mapped and privatized.
1987 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
1988 handling of zero-length array sections.
1989 * testsuite/libgomp.c/target-28.c: New test.
1990 * testsuite/libgomp.c/target-29.c: New test.
1991 * testsuite/libgomp.c/target-30.c: New test.
1992 * testsuite/libgomp.c/target-teams-1.c: New test.
1993 * testsuite/libgomp.c++/member-6.C: New test.
1994 * testsuite/libgomp.c++/member-7.C: New test.
1995 * testsuite/libgomp.c++/monotonic-1.C: New test.
1996 * testsuite/libgomp.c++/monotonic-2.C: New test.
1997 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
1998 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
1999 * testsuite/libgomp.c++/pr66199-3.C: New test.
2000 * testsuite/libgomp.c++/pr66199-4.C: New test.
2001 * testsuite/libgomp.c++/pr66199-5.C: New test.
2002 * testsuite/libgomp.c++/pr66199-6.C: New test.
2003 * testsuite/libgomp.c++/pr66199-7.C: New test.
2004 * testsuite/libgomp.c++/pr66199-8.C: New test.
2005 * testsuite/libgomp.c++/pr66199-9.C: New test.
2006 * testsuite/libgomp.c++/reduction-11.C: New test.
2007 * testsuite/libgomp.c++/reduction-12.C: New test.
2008 * testsuite/libgomp.c++/target-13.C: New test.
2009 * testsuite/libgomp.c++/target-14.C: New test.
2010 * testsuite/libgomp.c++/target-15.C: New test.
2011 * testsuite/libgomp.c++/target-16.C: New test.
2012 * testsuite/libgomp.c++/target-17.C: New test.
2013 * testsuite/libgomp.c++/target-18.C: New test.
2014 * testsuite/libgomp.c++/target-19.C: New test.
2015
2016 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
2017
2018 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
2019 and reduction copy.
2020 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
2021 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
2022 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
2023 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
2024 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
2025 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
2026 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
2027 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
2028 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
2029 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
2030 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
2031 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
2032 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
2033 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
2034
2035 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
2036
2037 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
2038 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
2039 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
2040 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
2041 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
2042 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
2043 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
2044 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
2045
2046 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
2047
2048 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
2049 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
2050 (GOMP_OFFLOAD_openacc_parallel): Likewise.
2051 * oacc-host.c (host_openacc_exec): Likewise.
2052 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
2053
2054 2015-11-03 Julian Brown <julian@codesourcery.com>
2055 Thomas Schwinge <thomas@codesourcery.com>
2056
2057 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
2058 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
2059 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
2060 Likewise.
2061 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
2062 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
2063
2064 2015-11-03 James Norris <jnorris@codesourcery.com>
2065
2066 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
2067 file.
2068 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
2069 Likewise.
2070 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
2071 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
2072 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
2073 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
2074 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
2075
2076 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
2077
2078 * openacc.h (enum acc_device_t): Reformat. Ensure layout
2079 compatibility.
2080 (enum acc_async_t): Reformat.
2081 (acc_on_device): Declare compatible with builtin and provide C++
2082 wrapper.
2083 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
2084
2085 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
2086 Cesar Philippidis <cesar@codesourcery.com>
2087
2088 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
2089 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
2090 ... this. Add a description of the test at the top of the file.
2091 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
2092 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
2093 ... this. Add a description of the test at the top of the file.
2094
2095 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
2096
2097 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
2098 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
2099 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
2100 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
2101 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
2102 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
2103
2104 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
2105
2106 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
2107 dimensions.
2108
2109 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
2110
2111 PR testsuite/68063
2112 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
2113
2114 2015-10-27 James Norris <jnorris@codesourcery.com>
2115
2116 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
2117 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
2118
2119 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
2120
2121 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
2122 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
2123
2124 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
2125 acc_device_nvidia usage.
2126 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
2127 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
2128 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
2129
2130 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
2131 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
2132
2133 PR libgomp/66518
2134 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
2135
2136 PR libgomp/65437
2137 PR libgomp/66518
2138 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
2139 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
2140
2141 2015-10-23 Tom de Vries <tom@codesourcery.com>
2142
2143 PR testsuite/68063
2144 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
2145
2146 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
2147
2148 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
2149 vector_length.
2150 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
2151
2152 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
2153 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
2154
2155 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
2156 to 0 when mapnum is 0.
2157
2158 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
2159
2160 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
2161 Cast to int from int32_t.
2162
2163 2015-10-13 Jakub Jelinek <jakub@redhat.com>
2164 Aldy Hernandez <aldyh@redhat.com>
2165 Ilya Verbin <ilya.verbin@intel.com>
2166
2167 * config/linux/affinity.c (omp_get_place_num_procs,
2168 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
2169 * config/linux/doacross.h: New file.
2170 * config/posix/affinity.c (omp_get_place_num_procs,
2171 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
2172 * config/posix/doacross.h: New file.
2173 * env.c: Include gomp-constants.h.
2174 (struct gomp_task_icv): Rename run_sched_modifier to
2175 run_sched_chunk_size.
2176 (gomp_max_task_priority_var): New variable.
2177 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
2178 (handle_omp_display_env): Change _OPENMP value from 201307 to
2179 201511. Print OMP_MAX_TASK_PRIORITY.
2180 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
2181 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
2182 chunk_size and run_sched_modifier to run_sched_chunk_size.
2183 (omp_get_max_task_priority, omp_get_initial_device,
2184 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
2185 omp_get_partition_place_nums): New functions.
2186 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
2187 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
2188 to chunk_size.
2189 (omp_get_num_places_, omp_get_place_num_procs_,
2190 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
2191 omp_get_place_proc_ids_8_, omp_get_place_num_,
2192 omp_get_partition_num_places_, omp_get_partition_place_nums_,
2193 omp_get_partition_place_nums_8_, omp_get_initial_device_,
2194 omp_get_max_task_priority_): New functions.
2195 * libgomp_g.h (GOMP_loop_doacross_static_start,
2196 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
2197 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
2198 GOMP_loop_ull_doacross_dynamic_start,
2199 GOMP_loop_ull_doacross_guided_start,
2200 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
2201 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
2202 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
2203 GOMP_target_data_41, GOMP_target_update_41,
2204 GOMP_target_enter_exit_data): New prototypes.
2205 (GOMP_task): Add prototype argument.
2206 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
2207 (struct gomp_doacross_work_share): New type.
2208 (struct gomp_work_share): Add doacross field.
2209 (struct gomp_task_icv): Rename run_sched_modifier to
2210 run_sched_chunk_size.
2211 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
2212 GOMP_TASK_UNDEFERRED. Add comments.
2213 (struct gomp_task_depend_entry): Add comments.
2214 (struct gomp_task): Likewise.
2215 (struct gomp_taskgroup): Likewise.
2216 (struct gomp_target_task): New type.
2217 (struct gomp_team): Add comment.
2218 (gomp_get_place_proc_ids_8, gomp_doacross_init,
2219 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
2220 gomp_create_target_task, gomp_target_task_fn): New prototypes.
2221 (struct target_var_desc): New type.
2222 (struct target_mem_desc): Adjust comment. Use struct
2223 target_var_desc instead of splay_tree_key for list.
2224 (REFCOUNT_INFINITY): Define.
2225 (struct splay_tree_key_s): Remove copy_from field.
2226 (struct gomp_device_descr): Add dev2dev_func field.
2227 (enum gomp_map_vars_kind): New enum.
2228 (gomp_map_vars): Add one argument.
2229 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
2230 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
2231 omp_get_place_num_procs, omp_get_place_num_procs_,
2232 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
2233 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
2234 omp_get_place_num_, omp_get_partition_num_places,
2235 omp_get_partition_num_places_, omp_get_partition_place_nums,
2236 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
2237 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
2238 omp_target_free, omp_target_is_present, omp_target_memcpy,
2239 omp_target_memcpy_rect, omp_target_associate_ptr and
2240 omp_target_disassociate_ptr.
2241 (GOMP_4.0.2): Renamed to ...
2242 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
2243 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
2244 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
2245 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
2246 GOMP_loop_doacross_static_start, GOMP_doacross_post,
2247 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
2248 GOMP_loop_ull_doacross_guided_start,
2249 GOMP_loop_ull_doacross_runtime_start,
2250 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
2251 GOMP_doacross_ull_wait.
2252 * libgomp.texi: Document omp_get_max_task_priority.
2253 Rename modifier argument to chunk_size for omp_set_schedule and
2254 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
2255 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
2256 to run_sched_chunk_size renaming.
2257 (GOMP_loop_ordered_runtime_start): Likewise.
2258 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
2259 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
2260 GOMP_parallel_loop_runtime_start): New functions.
2261 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
2262 to run_sched_chunk_size renaming.
2263 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
2264 GOMP_loop_doacross_guided_start): New functions or aliases.
2265 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
2266 run_sched_modifier to run_sched_chunk_size renaming.
2267 (GOMP_loop_ull_ordered_runtime_start): Likewise.
2268 (gomp_loop_ull_doacross_static_start,
2269 gomp_loop_ull_doacross_dynamic_start,
2270 gomp_loop_ull_doacross_guided_start,
2271 GOMP_loop_ull_doacross_runtime_start): New functions.
2272 (GOMP_loop_ull_doacross_static_start,
2273 GOMP_loop_ull_doacross_dynamic_start,
2274 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
2275 * oacc-mem.c (acc_map_data, present_create_copy,
2276 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
2277 to gomp_map_vars.
2278 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
2279 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
2280 instead of false to gomp_map_vars.
2281 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
2282 * omp.h.in (omp_lock_hint_t): New type.
2283 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
2284 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
2285 omp_get_place_num, omp_get_partition_num_places,
2286 omp_get_partition_place_nums, omp_get_initial_device,
2287 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
2288 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
2289 omp_target_associate_ptr, omp_target_disassociate_ptr): New
2290 prototypes.
2291 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
2292 (omp_lock_hint_none, omp_lock_hint_uncontended,
2293 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
2294 omp_lock_hint_speculative): New parameters.
2295 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
2296 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
2297 omp_get_place_num, omp_get_partition_num_places,
2298 omp_get_partition_place_nums, omp_get_initial_device,
2299 omp_get_max_task_priority): New interfaces.
2300 (omp_set_schedule, omp_get_schedule): Rename modifier argument
2301 to chunk_size.
2302 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
2303 (omp_lock_hint_none, omp_lock_hint_uncontended,
2304 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
2305 omp_lock_hint_speculative): New parameters.
2306 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
2307 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
2308 omp_get_place_num, omp_get_partition_num_places,
2309 omp_get_partition_place_nums, omp_get_initial_device,
2310 omp_get_max_task_priority): New functions and subroutines.
2311 * ordered.c: Include stdarg.h and string.h.
2312 (MAX_COLLAPSED_BITS): Define.
2313 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
2314 gomp_doacross_ull_init, GOMP_doacross_ull_post,
2315 GOMP_doacross_ull_wait): New functions.
2316 * target.c: Include errno.h.
2317 (resolve_device): If device is not initialized, call
2318 gomp_init_device on it.
2319 (gomp_map_lookup): New function.
2320 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
2321 Don't bump refcount if REFCOUNT_INFINITY. Handle
2322 GOMP_MAP_ALWAYS_TO_P.
2323 (get_kind): Rename is_openacc argument to short_mapkind.
2324 (gomp_map_pointer): Use gomp_map_lookup.
2325 (gomp_map_fields_existing): New function.
2326 (gomp_map_vars): Rename is_openacc argument to short_mapkind
2327 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
2328 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
2329 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
2330 Adjust for tgt->list changed type and copy_from living in there.
2331 (gomp_copy_from_async): Adjust for tgt->list changed type and
2332 copy_from living in there.
2333 (gomp_unmap_vars): Likewise.
2334 (gomp_update): Likewise. Rename is_openacc argument to
2335 short_mapkind. Don't fail if object is not mapped.
2336 (gomp_load_image_to_device): Initialize refcount to
2337 REFCOUNT_INFINITY.
2338 (gomp_target_fallback): New function.
2339 (gomp_get_target_fn_addr): Likewise.
2340 (GOMP_target): Adjust gomp_map_vars caller, use
2341 gomp_get_target_fn_addr and gomp_target_fallback.
2342 (GOMP_target_41): New function.
2343 (gomp_target_data_fallback): New function.
2344 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
2345 (GOMP_target_data_41): New function.
2346 (GOMP_target_update): Adjust gomp_update caller.
2347 (GOMP_target_update_41): New function.
2348 (gomp_exit_data, GOMP_target_enter_exit_data,
2349 gomp_target_task_fn, omp_target_alloc, omp_target_free,
2350 omp_target_is_present, omp_target_memcpy,
2351 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
2352 omp_target_associate_ptr, omp_target_disassociate_ptr,
2353 gomp_load_plugin_for_device): New functions.
2354 * task.c: Include gomp-constants.h. Include taskloop.c
2355 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
2356 (gomp_task_handle_depend): New function.
2357 (GOMP_task): Use it. Add priority argument. Use
2358 gomp-constant.h constants instead of hardcoded numbers.
2359 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
2360 (gomp_create_target_task): New function.
2361 (verify_children_queue, verify_taskgroup_queue,
2362 verify_task_queue): New functions.
2363 (gomp_task_run_pre): Call verify_*_queue functions.
2364 If an upcoming tied task is about to leave the sibling or
2365 taskgroup queues in an invalid state, adjust appropriately.
2366 Remove taskgroup argument. Add comments.
2367 (gomp_task_run_post_handle_dependers): Add comments.
2368 (gomp_task_run_post_remove_parent): Likewise.
2369 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
2370 (GOMP_taskwait): Likewise. Add comments.
2371 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
2372 problem such that the first non parent_depends_on task does not
2373 end up at the end of the children queue.
2374 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
2375 GOMP_TASK_UNDEFERRED.
2376 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
2377 * taskloop.c: New file.
2378 * testsuite/lib/libgomp.exp
2379 (check_effective_target_offload_device_nonshared_as): New proc.
2380 * testsuite/libgomp.c/affinity-2.c: New test.
2381 * testsuite/libgomp.c/doacross-1.c: New test.
2382 * testsuite/libgomp.c/doacross-2.c: New test.
2383 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
2384 Add map clause to target.
2385 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
2386 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
2387 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
2388 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
2389 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
2390 Likewise.
2391 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
2392 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
2393 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
2394 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
2395 not defined. Use those where needed.
2396 * testsuite/libgomp.c/for-4.c: New test.
2397 * testsuite/libgomp.c/for-5.c: New test.
2398 * testsuite/libgomp.c/for-6.c: New test.
2399 * testsuite/libgomp.c/linear-1.c: New test.
2400 * testsuite/libgomp.c/ordered-4.c: New test.
2401 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
2402 only allowed on the loop iterator.
2403 * testsuite/libgomp.c/pr66199-3.c: New test.
2404 * testsuite/libgomp.c/pr66199-4.c: New test.
2405 * testsuite/libgomp.c/reduction-7.c: New test.
2406 * testsuite/libgomp.c/reduction-8.c: New test.
2407 * testsuite/libgomp.c/reduction-9.c: New test.
2408 * testsuite/libgomp.c/reduction-10.c: New test.
2409 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
2410 map(tofrom:s).
2411 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
2412 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
2413 * testsuite/libgomp.c/target-11.c: New test.
2414 * testsuite/libgomp.c/target-12.c: New test.
2415 * testsuite/libgomp.c/target-13.c: New test.
2416 * testsuite/libgomp.c/target-14.c: New test.
2417 * testsuite/libgomp.c/target-15.c: New test.
2418 * testsuite/libgomp.c/target-16.c: New test.
2419 * testsuite/libgomp.c/target-17.c: New test.
2420 * testsuite/libgomp.c/target-18.c: New test.
2421 * testsuite/libgomp.c/target-19.c: New test.
2422 * testsuite/libgomp.c/target-20.c: New test.
2423 * testsuite/libgomp.c/target-21.c: New test.
2424 * testsuite/libgomp.c/target-22.c: New test.
2425 * testsuite/libgomp.c/target-23.c: New test.
2426 * testsuite/libgomp.c/target-24.c: New test.
2427 * testsuite/libgomp.c/target-25.c: New test.
2428 * testsuite/libgomp.c/target-26.c: New test.
2429 * testsuite/libgomp.c/target-27.c: New test.
2430 * testsuite/libgomp.c/taskloop-1.c: New test.
2431 * testsuite/libgomp.c/taskloop-2.c: New test.
2432 * testsuite/libgomp.c/taskloop-3.c: New test.
2433 * testsuite/libgomp.c/taskloop-4.c: New test.
2434 * testsuite/libgomp.c++/ctor-13.C: New test.
2435 * testsuite/libgomp.c++/doacross-1.C: New test.
2436 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
2437 Replace offload_device with offload_device_nonshared_as.
2438 * testsuite/libgomp.c++/for-12.C: New test.
2439 * testsuite/libgomp.c++/for-13.C: New test.
2440 * testsuite/libgomp.c++/for-14.C: New test.
2441 * testsuite/libgomp.c++/linear-1.C: New test.
2442 * testsuite/libgomp.c++/member-1.C: New test.
2443 * testsuite/libgomp.c++/member-2.C: New test.
2444 * testsuite/libgomp.c++/member-3.C: New test.
2445 * testsuite/libgomp.c++/member-4.C: New test.
2446 * testsuite/libgomp.c++/member-5.C: New test.
2447 * testsuite/libgomp.c++/ordered-1.C: New test.
2448 * testsuite/libgomp.c++/reduction-5.C: New test.
2449 * testsuite/libgomp.c++/reduction-6.C: New test.
2450 * testsuite/libgomp.c++/reduction-7.C: New test.
2451 * testsuite/libgomp.c++/reduction-8.C: New test.
2452 * testsuite/libgomp.c++/reduction-9.C: New test.
2453 * testsuite/libgomp.c++/reduction-10.C: New test.
2454 * testsuite/libgomp.c++/reference-1.C: New test.
2455 * testsuite/libgomp.c++/simd14.C: New test.
2456 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
2457 * testsuite/libgomp.c++/target-5.C: New test.
2458 * testsuite/libgomp.c++/target-6.C: New test.
2459 * testsuite/libgomp.c++/target-7.C: New test.
2460 * testsuite/libgomp.c++/target-8.C: New test.
2461 * testsuite/libgomp.c++/target-9.C: New test.
2462 * testsuite/libgomp.c++/target-10.C: New test.
2463 * testsuite/libgomp.c++/target-11.C: New test.
2464 * testsuite/libgomp.c++/target-12.C: New test.
2465 * testsuite/libgomp.c++/taskloop-1.C: New test.
2466 * testsuite/libgomp.c++/taskloop-2.C: New test.
2467 * testsuite/libgomp.c++/taskloop-3.C: New test.
2468 * testsuite/libgomp.c++/taskloop-4.C: New test.
2469 * testsuite/libgomp.c++/taskloop-5.C: New test.
2470 * testsuite/libgomp.c++/taskloop-6.C: New test.
2471 * testsuite/libgomp.c++/taskloop-7.C: New test.
2472 * testsuite/libgomp.c++/taskloop-8.C: New test.
2473 * testsuite/libgomp.c++/taskloop-9.C: New test.
2474 * testsuite/libgomp.fortran/affinity1.f90: New test.
2475 * testsuite/libgomp.fortran/affinity2.f90: New test.
2476
2477 2015-10-13 Tom de Vries <tom@codesourcery.com>
2478
2479 PR tree-optimization/67476
2480 * testsuite/libgomp.c/autopar-3.c: New test.
2481 * testsuite/libgomp.c/autopar-4.c: New test.
2482 * testsuite/libgomp.c/autopar-5.c: New test.
2483 * testsuite/libgomp.c/autopar-6.c: New test.
2484 * testsuite/libgomp.c/autopar-7.c: New test.
2485 * testsuite/libgomp.c/autopar-8.c: New test.
2486
2487 2015-10-12 James Norris <jnorris@codesourcery.com>
2488
2489 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
2490 initializer.
2491
2492 2015-10-09 David Malcolm <dmalcolm@redhat.com>
2493
2494 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
2495 using load_gcc_lib.
2496
2497 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
2498
2499 * oacc-ptx.h: Remove file, moving its content into...
2500 * config/nvptx/fortran.c: ... here...
2501 * config/nvptx/oacc-init.c: ..., here...
2502 * config/nvptx/oacc-parallel.c: ..., and here.
2503 * config/nvptx/openacc.f90: New file.
2504 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
2505 (link_ptx): Don't link in predefined bits of PTX code.
2506
2507 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
2508 Bernd Schmidt <bernds@codesourcery.com>
2509
2510 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
2511 (struct targ_ptx_obj): New.
2512 (nvptx_tdata): Move earlier, change data format.
2513 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
2514 objects.
2515 (GOMP_OFFLOAD_load_image): Adjust.
2516
2517 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
2518
2519 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
2520 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
2521 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
2522 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
2523 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
2524 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
2525 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
2526 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
2527 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
2528 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
2529 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
2530 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
2531 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
2532 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
2533 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
2534 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
2535 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
2536 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
2537 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
2538 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
2539 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
2540 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
2541 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
2542 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
2543 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
2544 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
2545 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
2546 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
2547 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
2548 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
2549 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
2550 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
2551 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
2552 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
2553 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
2554 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
2555 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
2556 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
2557 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
2558 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
2559 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
2560 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
2561 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
2562 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
2563 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
2564 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
2565 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
2566 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
2567 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
2568 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
2569 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
2570 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
2571 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
2572 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
2573 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
2574 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
2575 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2576 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
2577 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
2578 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
2579 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
2580 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
2581 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2582
2583 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
2584
2585 * oacc-init.c (acc_on_device): Force optimization level.
2586
2587 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
2588
2589 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
2590 (cuda_errlist): Delete.
2591 (cuda_error): Reimplement.
2592
2593 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
2594
2595 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
2596 array.
2597 * libgomp.map (GOACC_parallel_keyed): New.
2598 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
2599 all callers.
2600 (GOACC_parallel_keyed): New interface. Lose geometry arguments
2601 and take keyed varargs list. Adjust call to exec_func.
2602 (GOACC_parallel): Force host fallback.
2603 * libgomp_g.h (GOACC_parallel): Remove.
2604 (GOACC_parallel_keyed): Declare.
2605 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
2606 (stuct targ_gn_descriptor): Replace name field with launch field.
2607 (nvptx_exec): Lose separate geometry args, take array. Process
2608 dynamic dimensions and adjust.
2609 (struct nvptx_tdata): Replace fn_names field with fn_descs.
2610 (GOMP_OFFLOAD_load_image): Adjust for change in function table
2611 data.
2612 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
2613 passing.
2614 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
2615 passing.
2616
2617 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
2618
2619 PR libgomp/67141
2620 * oacc-int.h (goacc_host_init): Add declaration.
2621 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
2622 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
2623
2624 2015-09-08 Aditya Kumar <hiraditya@msn.com>
2625 Sebastian Pop <s.pop@samsung.com>
2626
2627 * testsuite/libgomp.graphite/bounds.c (int foo): Modifed test case to
2628 match o/p.
2629 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
2630 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
2631 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
2632 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
2633 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
2634
2635 2015-09-03 Jakub Jelinek <jakub@redhat.com>
2636
2637 * configure.tgt: Add missing ;; in between nvptx and rtems
2638 snippets.
2639
2640 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
2641
2642 * config/posix/pool.h (gomp_adjust_thread_attr): New.
2643 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
2644 (gomp_thread_pool_reservoir): Add priority member.
2645 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
2646 priority.
2647 (parse_thread_pools): Likewise.
2648 * team.c (gomp_team_start): Call configuration provided
2649 gomp_adjust_thread_attr(). Destroy thread attributes if
2650 necessary.
2651 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
2652
2653 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
2654
2655 * config/posix/pool.h: New.
2656 * config/rtems/pool.h: Likewise.
2657 * config/rtems/proc.c: Likewise.
2658 * libgomp.h (gomp_thread_destructor): Declare.
2659 * team.c: Include configuration provided "pool.h".
2660 (gomp_get_thread_pool): Define in configuration.
2661 (gomp_team_end): Call configuration defined
2662 gomp_release_thread_pool().
2663
2664 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
2665
2666 * config/rtems/bar.c: New.
2667 * config/rtems/bar.h: Likewise.
2668 * config/rtems/mutex.c: Likewise.
2669 * config/rtems/mutex.h: Likewise.
2670 * config/rtems/sem.c: Likewise.
2671 * config/rtems/sem.h: Likewise.
2672 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
2673 <sys/lock.h> header file.
2674 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
2675 supported by Newlib.
2676 * configure: Regenerate.
2677
2678 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
2679
2680 * team.c (gomp_new_thread_pool): Delete and move content to ...
2681 (gomp_get_thread_pool): ... new function. Allocate and
2682 initialize thread pool on demand.
2683 (get_last_team): Use gomp_get_thread_pool().
2684 (gomp_team_start): Delete thread pool initialization.
2685
2686 2015-09-03 Tom de Vries <tom@codesourcery.com>
2687
2688 PR tree-optimization/65637
2689 * testsuite/libgomp.c/autopar-2.c: New test.
2690
2691 2015-08-29 Tom de Vries <tom@codesourcery.com>
2692
2693 PR tree-optimization/46193
2694 * testsuite/libgomp.c/pr46193.c: New test.
2695
2696 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
2697
2698 libgomp/
2699 * libgomp.map: Add 4.0.2 version.
2700 * target.c (offload_image_descr): Add version field.
2701 (gomp_load_image_to_device): Add version argument. Adjust plugin
2702 call. Improve load mismatch diagnostic.
2703 (gomp_unload_image_from_device): Add version argument. Adjust plugin
2704 call.
2705 (GOMP_offload_regster): Make stub function, move bulk to ...
2706 (GOMP_offload_register_ver): ... here. Process version argument.
2707 (GOMP_offload_unregister): Make stub function, move bulk to ...
2708 (GOMP_offload_unregister_ver): ... here. Process version argument.
2709 (gomp_init_device): Process version field.
2710 (gomp_unload_device): Process version field.
2711 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
2712 macros. Check plugin version.
2713 * libgomp.h (gomp_device_descr): Add version function field. Adjust
2714 loader and unloader types.
2715 * oacc-host.c: Include gomp-constants.h.
2716 (host_version): New.
2717 (host_load_image, host_unload_image): Adjust.
2718 (host_dispatch): Add host_version.
2719 * plugin/plugin-nvptx.c: Include gomp-constants.h.
2720 (GOMP_OFFLOAD_version): New.
2721 (GOMP_OFFLOAD_load_image): Add version arg and check it.
2722 (GOMP_OFFLOAD_unload_image): Likewise.
2723 * plugin/plugin-host.c: Include gomp-constants.h.
2724 (GOMP_OFFLOAD_version): New.
2725 (GOMP_OFFLOAD_load_image): Add version arg.
2726 (GOMP_OFFLOAD_unload_image): Likewise.
2727
2728 2015-08-24 Tom de Vries <tom@codesourcery.com>
2729
2730 PR tree-optimization/65468
2731 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
2732
2733 2015-08-24 Tom de Vries <tom@codesourcery.com>
2734
2735 PR tree-optimization/65468
2736 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
2737
2738 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
2739
2740 PR libgomp/66761
2741 PR libgomp/67303
2742 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
2743 (gomp_iter_guided_next): Idem.
2744 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
2745 (gomp_iter_ull_guided_next): Idem.
2746 * config/linux/wait.h (do_spin): Idem.
2747
2748 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
2749
2750 * libgomp-plugin.h (enum offload_target_type): Remove
2751 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
2752 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
2753 * openacc.h (enum acc_device_t): Likewise.
2754 * openacc_lib.h: Likewise.
2755 * oacc-init.c (name_of_acc_device_t): Don't handle it.
2756 (acc_on_device): Just use __builtin_acc_on_device.
2757 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
2758 of acc_on_device builtin.
2759 * plugin/plugin-host.h: Remove file.
2760 * plugin/plugin-host.c: Likewise, but salvage some content into...
2761 * oacc-host.c: ... this file.
2762 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
2763 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
2764 * Makefile.in: Regenerate.
2765 * configure: Likewise.
2766 * testsuite/lib/libgomp.exp
2767 (check_effective_target_openacc_host_nonshm_selected): Remove.
2768 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
2769 ACC_DEVICE_TYPE=host_nonshm.
2770 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2771 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2772 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
2773 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
2774 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
2775 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
2776
2777 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
2778 Jakub Jelinek <jakub@redhat.com>
2779
2780 * config/nvptx/affinity.c: New file.
2781 * config/nvptx/alloc.c: Likewise.
2782 * config/nvptx/bar.c: Likewise.
2783 * config/nvptx/barrier.c: Likewise.
2784 * config/nvptx/critical.c: Likewise.
2785 * config/nvptx/env.c: Likewise.
2786 * config/nvptx/error.c: Likewise.
2787 * config/nvptx/fortran.c: Likewise.
2788 * config/nvptx/iter.c: Likewise.
2789 * config/nvptx/iter_ull.c: Likewise.
2790 * config/nvptx/libgomp-plugin.c: Likewise.
2791 * config/nvptx/lock.c: Likewise.
2792 * config/nvptx/loop.c: Likewise.
2793 * config/nvptx/loop_ull.c: Likewise.
2794 * config/nvptx/mutex.c: Likewise.
2795 * config/nvptx/oacc-async.c: Likewise.
2796 * config/nvptx/oacc-cuda.c: Likewise.
2797 * config/nvptx/oacc-host.c: Likewise.
2798 * config/nvptx/oacc-init.c: Likewise.
2799 * config/nvptx/oacc-mem.c: Likewise.
2800 * config/nvptx/oacc-parallel.c: Likewise.
2801 * config/nvptx/oacc-plugin.c: Likewise.
2802 * config/nvptx/omp-lock.h: Likewise.
2803 * config/nvptx/ordered.c: Likewise.
2804 * config/nvptx/parallel.c: Likewise.
2805 * config/nvptx/proc.c: Likewise.
2806 * config/nvptx/ptrlock.c: Likewise.
2807 * config/nvptx/sections.c: Likewise.
2808 * config/nvptx/sem.c: Likewise.
2809 * config/nvptx/single.c: Likewise.
2810 * config/nvptx/splay-tree.c: Likewise.
2811 * config/nvptx/target.c: Likewise.
2812 * config/nvptx/task.c: Likewise.
2813 * config/nvptx/team.c: Likewise.
2814 * config/nvptx/time.c: Likewise.
2815 * config/nvptx/work.c: Likewise.
2816 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
2817 * configure: Regenerate.
2818 * configure.tgt (config_path): Set to "nvptx" for target
2819 nvptx*-*-*.
2820
2821 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
2822
2823 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
2824
2825 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
2826
2827 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
2828 (cuda_errlist): Constify.
2829 (errmsg): Move into ...
2830 (cuda_error): ... here. Make smaller.
2831 (_XSTR, _STR): Delete.
2832 (cuda_synames): Delete.
2833 (verify_device_library): Delete.
2834 (nvptx_init): Don't call it.
2835
2836 2015-07-28 Tom de Vries <tom@codesourcery.com>
2837
2838 * testsuite/libgomp.c/uns-outer-4.c: New test.
2839
2840 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
2841
2842 * testsuite/libgomp.c/pr66714.c: New test.
2843
2844 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
2845
2846 PR libgomp/66950
2847 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
2848 (fib_ref): New function.
2849 (fib): Correct corner cases in the recursion.
2850 (main): Replace the non-simd loop with fib_ref call.
2851 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
2852 subroutine.
2853 (fibonacci): Lower the parameter N to 30. Correct accordingly check
2854 for the last array element value. Replace the non-simd loop with
2855 fib_ref call. Remove redundant b_ref array. Remove the comparison
2856 of the last array element with according Fibonacci sequence element.
2857 (fib): Correct corner cases in the recursion.
2858
2859 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
2860
2861 * target.c (gomp_offload_image_to_device): Rename to ...
2862 (gomp_load_image_to_device): ... here.
2863 (GOMP_offload_register): Adjust call.
2864 (gomp_init_device): Likewise.
2865 (gomp_unload_image_from_device): New. Broken out of ...
2866 (GOMP_offload_unregister): ... here. Call it.
2867 (gomp_unload_device): New.
2868 * libgomp.h (gomp_unload_device): Declare.
2869 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
2870 mem maps.
2871
2872 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
2873
2874 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
2875 wait=-specific if.
2876 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
2877 !=0 condition.
2878 (goacc_waits): Move !num_waits handling to ...
2879 (GOACC_wait): ... here, the only caller that might have zero waits.
2880
2881 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
2882 (struct ptx_image_data): Move earlier, add fns field.
2883 (struct ptx_device): Add images and image_lock fields.
2884 (ptx_images, ptx_image_lock): Delete.
2885 (nvptx_open_device): Initialize images and image_lock fields.
2886 (nvptx_close_device): Destroy image_lock.
2887 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
2888 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
2889 fields.
2890
2891 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
2892
2893 * target.c (GOMP_offload_register): Use int for device type arg.
2894 (GOMP_offload_unregister): Likewise.
2895
2896 * target.c (struct_offload_image_descr): Constify host_table.
2897 (gomp_offload_image_to_device): Likewise.
2898 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
2899
2900 * libgomp.h (gomp_device_descr): Constify target data arguments.
2901 * target.c (struct offload_image_descr): Constify target_data.
2902 (gomp_offload_image_to_device): Likewise.
2903 (GOMP_offload_register): Likewise.
2904 (GOMP_offload_unrefister): Likewise.
2905 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
2906 GOMP_OFFLOAD_unload_image): Constify target data.
2907 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
2908 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
2909
2910 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
2911
2912 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
2913 Workaround driver library const error.
2914 (struct nvptx_tdata, nvptx_tdata_t): New.
2915 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
2916 type.
2917
2918 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
2919
2920 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
2921 of EPS parameter from integer to real.
2922 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
2923 type of EPS parameter from integer to real.
2924
2925 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
2926
2927 * team.c (get_last_team): New.
2928 (gomp_new_team): Recycle last non-nested team if possible.
2929 (gomp_team_end): Move team work share list free lock destruction
2930 to ...
2931 (free_team): ... here.
2932
2933 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
2934
2935 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
2936 and ref from int to double. Replaced their comparison with
2937 an inequality of their difference and EPS.
2938 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
2939 comparison of pri and a reference number with an inequality of their
2940 difference and EPS.
2941 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
2942 the comparison of sum and sum_ref with an inequality of their
2943 difference and EPS.
2944 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
2945 the comparison of pri and a reference number with an inequality of
2946 their difference and EPS.
2947
2948 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
2949
2950 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
2951 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
2952 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
2953 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
2954 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
2955 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
2956 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
2957 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
2958 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
2959 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
2960 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
2961 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
2962 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
2963 variables.
2964 (vec_mult): Likewise. Add #pragma omp taskwait.
2965 (main): Adjust caller.
2966 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
2967 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
2968 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
2969 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
2970 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
2971 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
2972 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
2973 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
2974 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
2975 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
2976 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
2977 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
2978 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
2979 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
2980 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
2981 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
2982 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
2983 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
2984 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
2985 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
2986 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
2987 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
2988 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
2989 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
2990 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
2991 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
2992 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
2993 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
2994 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
2995 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
2996 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
2997 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
2998 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
2999 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
3000 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
3001 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
3002 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
3003 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
3004 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
3005 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
3006 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
3007 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
3008 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
3009 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
3010 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
3011 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
3012 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
3013 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
3014 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
3015 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
3016 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
3017 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
3018 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
3019 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
3020 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
3021 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
3022 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
3023 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
3024 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
3025 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
3026 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
3027 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
3028 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
3029 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
3030 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
3031 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
3032 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
3033 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
3034 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
3035 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
3036 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
3037 (vec_mult): Add !$omp taskwait.
3038 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
3039 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
3040 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
3041 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
3042 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
3043 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
3044 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
3045 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
3046 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
3047 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
3048 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
3049 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
3050 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
3051 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
3052 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
3053 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
3054 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
3055 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
3056 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
3057 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
3058 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
3059 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
3060 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
3061 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
3062 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
3063 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
3064 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
3065 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
3066 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
3067 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
3068 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
3069 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
3070 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
3071 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
3072 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
3073 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
3074 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
3075 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
3076 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
3077 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
3078 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
3079 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
3080 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
3081 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
3082 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
3083 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
3084 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
3085 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
3086 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
3087 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
3088 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
3089 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
3090 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
3091 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
3092 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
3093 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
3094 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
3095 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
3096 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
3097 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
3098 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
3099 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
3100 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
3101 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
3102 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
3103 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
3104 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
3105
3106 2015-07-10 Tom de Vries <tom@codesourcery.com>
3107
3108 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
3109 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
3110
3111 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
3112
3113 PR libgomp/65099
3114 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
3115 in a 64-bit configuration.
3116 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
3117 offloading testing if no such device is available.
3118 * testsuite/libgomp.oacc-c/c.exp: Likewise.
3119 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3120
3121 2015-07-08 Tom de Vries <tom@codesourcery.com>
3122
3123 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
3124 second call to f.
3125 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
3126
3127 2015-07-07 Tom de Vries <tom@codesourcery.com>
3128
3129 PR tree-optimization/66642
3130 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
3131 iteration count case.
3132 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
3133 function, factor out of ...
3134 (main): ... here. Test low iteration count case.
3135
3136 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
3137
3138 * libgomp.h (gomp_thread_pool): Comment last_team field.
3139
3140 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
3141
3142 * testsuite/libgomp.c++/pr66702-1.C: Require
3143 vect_simd_clones effective target.
3144 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
3145
3146 2015-06-30 Tom de Vries <tom@codesourcery.com>
3147
3148 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
3149 already set. Use DEFAULT_CFLAGS in dg-runtest.
3150 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
3151 "-O2".
3152
3153 2015-06-30 Tom de Vries <tom@codesourcery.com>
3154
3155 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
3156 already set. Use DEFAULT_CFLAGS in dg-runtest.
3157 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
3158 * testsuite/libgomp.c++/pr64824.C: Same.
3159 * testsuite/libgomp.c++/pr64868.C: Same.
3160 * testsuite/libgomp.c++/pr66199-1.C: Same.
3161 * testsuite/libgomp.c++/pr66199-2.C: Same.
3162 * testsuite/libgomp.c++/target-2.C: Same.
3163 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
3164 -std=<standard> option.
3165 * testsuite/libgomp.c++/udr-11.C: Same.
3166 * testsuite/libgomp.c++/udr-12.C: Same.
3167 * testsuite/libgomp.c++/udr-13.C: Same.
3168 * testsuite/libgomp.c++/udr-14.C: Same.
3169 * testsuite/libgomp.c++/udr-15.C: Same.
3170 * testsuite/libgomp.c++/udr-16.C: Same.
3171 * testsuite/libgomp.c++/udr-17.C: Same.
3172 * testsuite/libgomp.c++/udr-18.C: Same.
3173 * testsuite/libgomp.c++/udr-19.C: Same.
3174 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
3175 * testsuite/libgomp.c++/simd-1.C: Same.
3176 * testsuite/libgomp.c++/simd-2.C: Same.
3177 * testsuite/libgomp.c++/simd-3.C: Same.
3178 * testsuite/libgomp.c++/simd-4.C: Same.
3179 * testsuite/libgomp.c++/simd-5.C: Same.
3180 * testsuite/libgomp.c++/simd-6.C: Same.
3181 * testsuite/libgomp.c++/simd-7.C: Same.
3182 * testsuite/libgomp.c++/simd-8.C: Same.
3183 * testsuite/libgomp.c++/simd-9.C: Same.
3184 * testsuite/libgomp.c++/simd10.C: Same.
3185 * testsuite/libgomp.c++/simd11.C: Same.
3186 * testsuite/libgomp.c++/simd12.C: Same.
3187 * testsuite/libgomp.c++/simd13.C: Same.
3188
3189 2015-06-30 Jakub Jelinek <jakub@redhat.com>
3190
3191 PR middle-end/66702
3192 * testsuite/libgomp.c++/pr66702-1.C: New test.
3193 * testsuite/libgomp.c++/pr66702-2.C: New test.
3194
3195 2015-06-30 Tom de Vries <tom@codesourcery.com>
3196
3197 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
3198 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
3199 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
3200 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
3201
3202 2015-06-30 Tom de Vries <tom@codesourcery.com>
3203
3204 PR tree-optimization/66652
3205 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
3206 using restrict pointers.
3207 (main): Add arguments to calls to f.
3208 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
3209
3210 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
3211
3212 * configure.ac: Fix check for header <sys/sysctl.h>.
3213 * configure: Regenerate.
3214 * config.h.in: Likewise.
3215
3216 2015-06-23 Tom de Vries <tom@codesourcery.com>
3217
3218 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
3219 abort.
3220 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
3221
3222 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
3223
3224 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
3225 acc_device_nvidia.
3226
3227 PR libgomp/66518
3228 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
3229 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
3230
3231 2015-06-15 Tom de Vries <tom@codesourcery.com>
3232
3233 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
3234 dg-additional-options for any remaining options.
3235 * testsuite/libgomp.c/atomic-2.c: Same.
3236 * testsuite/libgomp.c/atomic-4.c: Same.
3237 * testsuite/libgomp.c/atomic-5.c: Same.
3238 * testsuite/libgomp.c/atomic-6.c: Same.
3239 * testsuite/libgomp.c/autopar-1.c: Same.
3240 * testsuite/libgomp.c/copyin-1.c: Same.
3241 * testsuite/libgomp.c/copyin-2.c: Same.
3242 * testsuite/libgomp.c/copyin-3.c: Same.
3243 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
3244 * testsuite/libgomp.c/nestedfn-5.c: Same.
3245 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
3246 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
3247 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
3248 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
3249 * testsuite/libgomp.c/pr32362-1.c: Same.
3250 * testsuite/libgomp.c/pr32362-2.c: Same.
3251 * testsuite/libgomp.c/pr32362-3.c: Same.
3252 * testsuite/libgomp.c/pr39591-1.c: Same.
3253 * testsuite/libgomp.c/pr39591-2.c: Same.
3254 * testsuite/libgomp.c/pr39591-3.c: Same.
3255 * testsuite/libgomp.c/pr58392.c: Same.
3256 * testsuite/libgomp.c/pr58756.c: Same.
3257 * testsuite/libgomp.c/simd-1.c: Same.
3258 * testsuite/libgomp.c/simd-10.c: Same.
3259 * testsuite/libgomp.c/simd-11.c: Same.
3260 * testsuite/libgomp.c/simd-12.c: Same.
3261 * testsuite/libgomp.c/simd-13.c: Same.
3262 * testsuite/libgomp.c/simd-14.c: Same.
3263 * testsuite/libgomp.c/simd-15.c: Same.
3264 * testsuite/libgomp.c/simd-2.c: Same.
3265 * testsuite/libgomp.c/simd-3.c: Same.
3266 * testsuite/libgomp.c/simd-4.c: Same.
3267 * testsuite/libgomp.c/simd-5.c: Same.
3268 * testsuite/libgomp.c/simd-6.c: Same.
3269 * testsuite/libgomp.c/simd-7.c: Same.
3270 * testsuite/libgomp.c/simd-8.c: Same.
3271 * testsuite/libgomp.c/simd-9.c: Same.
3272
3273 2015-06-15 Tom de Vries <tom@codesourcery.com>
3274
3275 * testsuite/libgomp.c/pr35625.c: Fix typo.
3276
3277 2015-06-15 Tom de Vries <tom@codesourcery.com>
3278
3279 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
3280 in dg-options.
3281 * testsuite/libgomp.c/atomic-3.c: Same.
3282 * testsuite/libgomp.c/debug-1.c: Same.
3283 * testsuite/libgomp.c/nqueens-1.c: Same.
3284 * testsuite/libgomp.c/pr26171.c: Same.
3285 * testsuite/libgomp.c/pr48591.c: Same.
3286 * testsuite/libgomp.c/pr64824.c: Same.
3287 * testsuite/libgomp.c/pr64868.c: Same.
3288 * testsuite/libgomp.c/pr66133.c: Same.
3289 * testsuite/libgomp.c/pr66199-1.c: Same.
3290 * testsuite/libgomp.c/pr66199-2.c: Same.
3291 * testsuite/libgomp.c/target-8.c: Same.
3292
3293 2015-06-15 Tom de Vries <tom@codesourcery.com>
3294
3295 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
3296 -std={gnu99,c99}.
3297 * testsuite/libgomp.c/for-1.c: Same.
3298 * testsuite/libgomp.c/for-2.c: Same.
3299 * testsuite/libgomp.c/for-3.c: Same.
3300 * testsuite/libgomp.c/pr35625.c: Same.
3301 * testsuite/libgomp.c/pr39154.c: Same.
3302 * testsuite/libgomp.c/simd-16.c: Same.
3303 * testsuite/libgomp.c/simd-17.c: Same.
3304
3305 2015-06-13 Tom de Vries <tom@codesourcery.com>
3306
3307 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
3308
3309 2015-06-13 Tom de Vries <tom@codesourcery.com>
3310
3311 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
3312 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
3313 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
3314 (N): Define.
3315 (main): Use N instead of hardcoded constants.
3316
3317 2015-06-05 Tom de Vries <tom@codesourcery.com>
3318
3319 merge from gomp4 branch:
3320 2015-05-28 Tom de Vries <tom@codesourcery.com>
3321
3322 PR tree-optimization/65443
3323 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
3324 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
3325 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
3326
3327 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3328
3329 * testsuite/libgomp.graphite/bounds.c: Adjust for
3330 cleanup-tree-dump removal.
3331 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
3332 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
3333 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
3334 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
3335 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
3336 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
3337 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
3338 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
3339 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
3340 * testsuite/libgomp.graphite/pr41118.c: Likewise.
3341
3342 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
3343
3344 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
3345 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
3346 (futex_wake) [!__x86_64__]: Ditto.
3347
3348 2015-05-28 Julian Brown <julian@codesourcery.com>
3349
3350 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
3351 function comment. Only call gomp_fatal if new argument is true.
3352 (acc_dev_num_out_of_range): New function.
3353 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
3354 acc_dev_num_out_of_range as appropriate.
3355 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
3356 (acc_get_device_num, acc_set_device_num): Update calls to
3357 resolve_device.
3358 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
3359 output.
3360
3361 2015-05-28 Julian Brown <julian@codesourcery.com>
3362
3363 PR libgomp/65742
3364 * oacc-init.c (plugin/plugin-host.h): Include.
3365 (acc_on_device): Check whether we're in an offloaded region for
3366 host_nonshm
3367 plugin. Don't use __builtin_acc_on_device.
3368 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
3369 nonshm_exec flag in thread-local data.
3370 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
3371 data for host_nonshm plugin.
3372 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
3373 for host_nonshm plugin.
3374 * plugin/plugin-host.h: New.
3375
3376 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
3377
3378 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
3379
3380 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
3381
3382 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
3383 Declare as int.
3384 (FUTEX_PRIVATE_FLAG): Remove L suffix.
3385 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
3386 Declare as int.
3387
3388 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
3389
3390 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
3391
3392 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
3393
3394 * target.c (gomp_map_pointer): New function abstracting out
3395 GOMP_MAP_POINTER handling.
3396 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
3397 gomp_map_pointer().
3398
3399 2015-05-19 Jakub Jelinek <jakub@redhat.com>
3400
3401 PR middle-end/66199
3402 * testsuite/libgomp.c/pr66199-1.c: New test.
3403 * testsuite/libgomp.c/pr66199-2.c: New test.
3404 * testsuite/libgomp.c++/pr66199-1.C: New test.
3405 * testsuite/libgomp.c++/pr66199-2.C: New test.
3406 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
3407 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
3408
3409 2015-05-19 Julian Brown <julian@codesourcery.com>
3410
3411 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
3412 on cuInit failure.
3413
3414 2015-05-13 Jakub Jelinek <jakub@redhat.com>
3415
3416 PR middle-end/66133
3417 * testsuite/libgomp.c/pr66133.c: New test.
3418
3419 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
3420
3421 * Makefile.in: Regenerated with automake-1.11.6.
3422 * aclocal.m4: Likewise.
3423 * config.h.in: Likewise.
3424 * configure: Likewise.
3425 * testsuite/Makefile.in: Likewise.
3426
3427 2015-05-08 Jason Merrill <jason@redhat.com>
3428
3429 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
3430 _Complex.
3431
3432 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
3433
3434 2015-05-06 Julian Brown <julian@codesourcery.com>
3435
3436 * oacc-init.c (acc_device_lock): Add explanatory comment.
3437 (resolve_device): Add comment about locking requirement.
3438 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
3439 gomp_init_device and gomp_fini_device calls.
3440 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
3441 (acc_get_device_num, acc_set_device_num): Add locking around
3442 resolve_device and gomp_init_device calls.
3443
3444 2015-05-06 Julian Brown <julian@codesourcery.com>
3445
3446 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
3447 goacc_thread_lock on error paths.
3448 * oacc-mem.c (lookup_host): Remove locking from function. Note
3449 locking requirement for caller in function comment.
3450 (lookup_dev): Likewise.
3451 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
3452 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
3453 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
3454 Add locking.
3455
3456 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
3457
3458 PR testsuite/65205
3459 PR libgomp/65993
3460 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
3461 don't expect "0x" prefix for "%p" format specifier, don't expect
3462 "(nil)" for NULL pointer.
3463 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3464 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
3465 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
3466 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
3467 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
3468 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
3469 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
3470 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3471 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
3472 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
3473 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
3474 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
3475 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
3476 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
3477 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
3478 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
3479 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
3480 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
3481 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
3482 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
3483 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
3484 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
3485 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
3486 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
3487 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
3488 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
3489 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
3490 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
3491 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
3492 accurately specify what we're looking for.
3493 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
3494 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
3495 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
3496 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
3497 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
3498
3499 2015-04-30 James Norris <jnorris@codesourcery.com>
3500
3501 PR testsuite/65205
3502 * testsuite/lib/libgomp.exp
3503 (check_effective_target_openacc_host_selected)
3504 (check_effective_target_openacc_host_nonshm_selected): New
3505 procedures.
3506 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
3507 dg-shouldfail.
3508 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
3509 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
3510 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3511 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
3512 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
3513 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
3514 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
3515 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
3516 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
3517 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
3518 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3519 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
3520 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
3521 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
3522 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
3523 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
3524 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
3525 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
3526 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
3527 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
3528 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
3529 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
3530 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
3531 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
3532 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
3533 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
3534 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
3535 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
3536 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
3537 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
3538 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
3539 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
3540 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
3541 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
3542 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
3543 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
3544 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
3545 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
3546 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
3547 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
3548 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
3549 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
3550 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
3551
3552 2015-04-08 Julian Brown <julian@codesourcery.com>
3553
3554 * libgomp.h (target_mem_desc: Remove mem_map field.
3555 (acc_dispatch_t): Remove open_device_func, close_device_func,
3556 get_device_num_func, set_device_num_func, target_data members.
3557 Change create_thread_data_func argument to device number instead of
3558 generic pointer.
3559 * oacc-async.c (assert.h): Include.
3560 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
3561 (acc_wait_all, acc_wait_all_async): Use current host thread's
3562 active device, not base_dev.
3563 * oacc-cuda.c (acc_get_current_cuda_device)
3564 (acc_get_current_cuda_context, acc_get_cuda_stream)
3565 (acc_set_cuda_stream): Likewise.
3566 * oacc-host.c (host_dispatch): Don't set open_device_func,
3567 close_device_func, get_device_num_func or set_device_num_func.
3568 * oacc-init.c (base_dev, init_key): Remove.
3569 (cached_base_dev): New.
3570 (name_of_acc_device_t): New.
3571 (acc_init_1): Initialise default-numbered device, not zeroth.
3572 (acc_shutdown_1): Close all devices of a given type.
3573 (goacc_destroy_thread): Don't use base_dev.
3574 (lazy_open, lazy_init, lazy_init_and_open): Remove.
3575 (goacc_attach_host_thread_to_device): New.
3576 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
3577 (acc_get_num_devices): Don't use base_dev.
3578 (acc_set_device_type): Reimplement.
3579 (acc_get_device_type): Don't use base_dev.
3580 (acc_get_device_num): Tweak logic.
3581 (acc_set_device_num): Likewise.
3582 (acc_on_device): Use acc_get_device_type.
3583 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
3584 (goacc_lazy_initialize): Reimplement with acc_init and
3585 goacc_attach_host_thread_to_device.
3586 * oacc-int.h (goacc_thread): Add base_dev field.
3587 (base_dev): Remove extern declaration.
3588 (goacc_attach_host_thread_to_device): Add prototype.
3589 * oacc-mem.c (acc_malloc): Use current thread's device instead of
3590 base_dev.
3591 (acc_free): Likewise.
3592 (acc_memcpy_to_device): Likewise.
3593 (acc_memcpy_from_device): Likewise.
3594 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
3595 goacc_lazy_initialize (throughout).
3596 (GOACC_parallel): Use tgt_offset to locate target functions.
3597 * target.c (gomp_map_vars): Don't set tgt->mem_map.
3598 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
3599 (gomp_load_plugin_for_device): Remove open_device, close_device,
3600 get_device_num, set_device_num openacc hook initialisation. Don't set
3601 openacc.target_data.
3602 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
3603 (GOMP_OFFLOAD_openacc_close_device)
3604 (GOMP_OFFLOAD_openacc_get_device_num)
3605 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
3606 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
3607 to int.
3608 * plugin/plugin-nvptx.c (ptx_inited): Remove.
3609 (instantiated_devices, ptx_dev_lock): New.
3610 (struct ptx_image_data): New.
3611 (ptx_devices, ptx_images, ptx_image_lock): New.
3612 (fini_streams_for_device): Reorder cuStreamDestroy call.
3613 (nvptx_get_num_devices): Remove forward declaration.
3614 (nvptx_init): Change return type to bool.
3615 (nvptx_fini): Remove.
3616 (nvptx_attach_host_thread_to_device): New.
3617 (nvptx_open_device): Return struct ptx_device* instead of void*.
3618 (nvptx_close_device): Change argument type to struct ptx_device*,
3619 return type to void.
3620 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
3621 (kernel_target_data, kernel_host_table): Remove static globals.
3622 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
3623 (GOMP_OFFLOAD_init_device): Reimplement.
3624 (GOMP_OFFLOAD_fini_device): Likewise.
3625 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
3626 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
3627 (GOMP_OFFLOAD_host2dev): Use ORD argument.
3628 (GOMP_OFFLOAD_openacc_open_device)
3629 (GOMP_OFFLOAD_openacc_close_device)
3630 (GOMP_OFFLOAD_openacc_set_device_num)
3631 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
3632 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
3633 (device number).
3634
3635 testsuite/
3636 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
3637
3638 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
3639
3640 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
3641 * libgomp.h (struct gomp_memory_mapping): Remove.
3642 (struct target_mem_desc): Change type of mem_map from
3643 gomp_memory_mapping * to splay_tree_s *.
3644 (struct gomp_device_descr): Remove register_image_func, get_table_func.
3645 Add load_image_func, unload_image_func.
3646 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
3647 Remove offload_regions_registered.
3648 (gomp_init_tables): Remove.
3649 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
3650 to splay_tree_s *.
3651 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
3652 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
3653 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
3654 offload_regions_registered.
3655 Initialize load_image_func, unload_image_func, mem_map.root.
3656 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
3657 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
3658 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
3659 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
3660 gomp_memory_mapping *. Use dev's lock and splay_tree.
3661 (lookup_dev): Use dev's lock.
3662 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
3663 (acc_is_present): Likewise.
3664 (acc_map_data): Likewise.
3665 (acc_unmap_data): Likewise. Use dev's lock.
3666 (present_create_copy): Likewise.
3667 (delete_copyout): Pass dev to lookup_host instead of mem_map.
3668 (update_dev_host): Likewise.
3669 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
3670 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
3671 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
3672 (GOMP_OFFLOAD_get_table): Remove
3673 (GOMP_OFFLOAD_load_image): New function.
3674 (GOMP_OFFLOAD_unload_image): New function.
3675 * target.c (register_lock): New mutex for offload image registration.
3676 (num_devices): Do not guard with PLUGIN_SUPPORT.
3677 (gomp_realloc_unlock): New static function.
3678 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
3679 before gomp_fatal.
3680 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
3681 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
3682 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
3683 mem_map's.
3684 (gomp_unmap_vars): Likewise.
3685 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
3686 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
3687 (gomp_offload_image_to_device): New static function.
3688 (GOMP_offload_register): Add mutex lock.
3689 Call gomp_offload_image_to_device for all initialized devices.
3690 Replace gomp_realloc with gomp_realloc_unlock.
3691 (GOMP_offload_unregister): New function.
3692 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
3693 get_table_func from the plugin with calls to init_device_func and
3694 gomp_offload_image_to_device.
3695 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
3696 to splay_tree_s *.
3697 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
3698 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
3699 (GOMP_target_data): Do not call gomp_init_tables.
3700 (GOMP_target_update): Likewise. Remove argument from gomp_update.
3701 (gomp_load_plugin_for_device): Replace register_image and get_table
3702 with load_image and unload_image in DLSYM ().
3703 (gomp_register_images_for_device): Remove function.
3704 (gomp_target_init): Do not initialize current_device.mem_map.*,
3705 current_device.offload_regions_registered.
3706 Remove call to gomp_register_images_for_device.
3707 Do not free offload_images and num_offload_images.
3708
3709 2015-03-30 Jakub Jelinek <jakub@redhat.com>
3710
3711 PR fortran/65597
3712 * testsuite/libgomp.fortran/pr65597.f90: New test.
3713
3714 2015-03-27 Tom de Vries <tom@codesourcery.com>
3715
3716 PR testsuite/65594
3717 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
3718 (init, check): New function.
3719 (foo): Change return type to void.
3720 (main): Call init and check.
3721
3722 2015-03-27 Tom de Vries <tom@codesourcery.com>
3723
3724 PR testsuite/65594
3725 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
3726 (foo): Use M for non-inner loops to scale down test-case.
3727
3728 2015-03-25 Kai Tietz <ktietz@redhat.com>
3729
3730 PR libgomp/64972
3731 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
3732 (GOACC_data_start): Likewise.
3733 * target.c (gomp_map_vars): Likewise.
3734
3735 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
3736
3737 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
3738 hppa*-*-hpux*.
3739
3740 2015-03-19 Jakub Jelinek <jakub@redhat.com>
3741
3742 * testsuite/libgomp.c/target-10.c: New test.
3743 * testsuite/libgomp.c++/target-4.C: New test.
3744
3745 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
3746
3747 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
3748 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
3749
3750 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
3751
3752 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
3753 * configure.ac (*-*-rtems*): Assume Pthread is supported.
3754 (pthread.h): Check for this header file.
3755 * configure: Regenerate.
3756
3757 2015-02-25 Tom de Vries <tom@codesourcery.com>
3758
3759 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
3760 (check_reduction_op, check_reduction_macro, max, min):
3761 Declare.
3762 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
3763 function.
3764 (main): Use new functions.
3765
3766 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
3767
3768 * target.c (gomp_load_plugin_for_device): Use const char * instead of
3769 char * for variables holding dlerror return values.
3770 (DLSYM_OPT): Ditto.
3771
3772 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
3773
3774 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
3775
3776 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
3777 Cesar Philippidis <cesar@codesourcery.com>
3778
3779 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
3780 GOACC_ctaid, and GOACC_nctaid routines.
3781
3782 2015-02-11 Jakub Jelinek <jakub@redhat.com>
3783
3784 PR c/64824
3785 * testsuite/libgomp.c/atomic-18.c: New test.
3786 * testsuite/libgomp.c++/atomic-16.C: New test.
3787
3788 2015-02-04 Jakub Jelinek <jakub@redhat.com>
3789
3790 PR c/64824
3791 PR c/64868
3792 * testsuite/libgomp.c/pr64824.c: New test.
3793 * testsuite/libgomp.c/pr64868.c: New test.
3794 * testsuite/libgomp.c++/pr64824.C: New test.
3795 * testsuite/libgomp.c++/pr64868.C: New test.
3796
3797 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
3798
3799 PR libgomp/64635
3800 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
3801 Link with -lpthread.
3802 * config/aix/plugin-suffix.h: Delete.
3803
3804 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
3805
3806 PR libgomp/64635
3807 * configure.tgt (*-*-aix*): Use config_path "aix posix".
3808 (*-*-darwin*): Use config_path "bsd darwin posix".
3809 (*-*-hpux*): Use config_path "hpux posix".
3810 * target.c: Add include of plugin-suffix.h and use
3811 SONAME_SUFFIX macro.
3812 * config/aix/plugin-suffix.h: New file.
3813 * config/darwin/plugin-suffix.h: New file.
3814 * config/hpux/plugin-suffix.h: New file.
3815 * config/posix/plugin-suffix.h: New file.
3816
3817 2015-01-23 Jakub Jelinek <jakub@redhat.com>
3818
3819 PR middle-end/64734
3820 * libgomp.c/pr64734.c: New test.
3821
3822 2015-01-23 Tom de Vries <tom@codesourcery.com>
3823
3824 PR libgomp/64672
3825 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
3826
3827 2015-01-23 Tom de Vries <tom@codesourcery.com>
3828
3829 PR libgomp/64707
3830 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
3831 dg-options.
3832
3833 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
3834
3835 PR libgomp/64625
3836 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
3837 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
3838 formal parameter. Update all users.
3839 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
3840 Document unused formal parameter.
3841
3842 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
3843
3844 * oacc-parallel.c: Don't include <alloca.h>.
3845 (GOACC_parallel): Use gomp_alloca instead of alloca.
3846
3847 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
3848
3849 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
3850
3851 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
3852 James Norris <jnorris@codesourcery.com>
3853 Tom de Vries <tom@codesourcery.com>
3854 Julian Brown <julian@codesourcery.com>
3855 Cesar Philippidis <cesar@codesourcery.com>
3856 Nathan Sidwell <nathan@codesourcery.com>
3857 Tobias Burnus <burnus@net-b.de>
3858
3859 * Makefile.am (search_path): Add $(top_srcdir)/../include.
3860 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
3861 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
3862 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
3863 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
3864 Include $(top_srcdir)/plugin/Makefrag.am.
3865 (nodist_libsubinclude_HEADERS): Add openacc.h.
3866 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
3867 openacc.f90, openacc.mod, openacc_kinds.mod.
3868 (omp_lib.mod): Generalize into...
3869 (%.mod): ... this new rule.
3870 (openacc_kinds.mod, openacc.mod): New rules.
3871 * plugin/configfrag.ac: New file.
3872 * configure.ac: Move plugin/offloading support into it. Include
3873 it. Instantiate testsuite/libgomp-test-support.pt.exp.
3874 * plugin/Makefrag.am: New file.
3875 * testsuite/Makefile.am (OFFLOAD_TARGETS)
3876 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
3877 export.
3878 (libgomp-test-support.exp): New rule.
3879 (all-local): Depend on it.
3880 * Makefile.in: Regenerate.
3881 * testsuite/Makefile.in: Regenerate.
3882 * config.h.in: Likewise.
3883 * configure: Likewise.
3884 * configure.tgt: Harden shell syntax.
3885 * env.c: Include "oacc-int.h".
3886 (parse_acc_device_type): New function.
3887 (gomp_debug_var, goacc_device_type, goacc_device_num): New
3888 variables.
3889 (initialize_env): Initialize those. Call
3890 goacc_runtime_initialize.
3891 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
3892 (gomp_fatal): Call gomp_vfatal.
3893 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
3894 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
3895 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
3896 (splay_tree_node, splay_tree, splay_tree_key)
3897 (struct target_mem_desc, struct splay_tree_key_s)
3898 (struct gomp_memory_mapping, struct acc_dispatch_t)
3899 (struct gomp_device_descr, gomp_acc_insert_pointer)
3900 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
3901 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
3902 (gomp_free_memmap, gomp_fini_device): New declarations.
3903 (gomp_vdebug, gomp_debug): New macros.
3904 Include "splay-tree.h".
3905 * libgomp.map (OACC_2.0): New symbol version. Use for
3906 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
3907 acc_set_device_type_h_, acc_get_device_type,
3908 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
3909 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
3910 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
3911 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
3912 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
3913 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
3914 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
3915 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
3916 acc_copyin_array_h_, acc_present_or_copyin,
3917 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
3918 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
3919 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
3920 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
3921 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
3922 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
3923 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
3924 acc_update_device, acc_update_device_32_h_,
3925 acc_update_device_64_h_, acc_update_device_array_h_,
3926 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
3927 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
3928 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
3929 acc_is_present_64_h_, acc_is_present_array_h_,
3930 acc_memcpy_to_device, acc_memcpy_from_device,
3931 acc_get_current_cuda_device, acc_get_current_cuda_context,
3932 acc_get_cuda_stream, acc_set_cuda_stream.
3933 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
3934 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
3935 GOACC_update, GOACC_wait, GOACC_get_thread_num,
3936 GOACC_get_num_threads.
3937 (GOMP_PLUGIN_1.0): New symbol version. Use for
3938 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
3939 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
3940 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
3941 GOMP_PLUGIN_acc_thread.
3942 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
3943 environment variable.
3944 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
3945 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
3946 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
3947 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
3948 (splay_tree_remove): New declarations.
3949 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
3950 (splay_tree_remove, splay_tree_lookup): Move into...
3951 * splay-tree.c: ... this new file.
3952 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
3953 (splay_tree_node, splay_tree, splay_tree_key)
3954 (struct target_mem_desc, struct splay_tree_key_s)
3955 (struct gomp_device_descr): Don't declare.
3956 (num_devices_openmp): New variable.
3957 (gomp_get_num_devices ): Use it.
3958 (gomp_init_targets_once): New function.
3959 (gomp_get_num_devices ): Use it.
3960 (get_kind, gomp_copy_from_async, gomp_free_memmap)
3961 (gomp_fini_device, gomp_register_image_for_device): New functions.
3962 (gomp_map_vars): Add devaddrs parameter.
3963 (gomp_update): Add mm parameter.
3964 (gomp_init_device): Move most of it into...
3965 (gomp_init_tables): ... this new function.
3966 (gomp_register_images_for_device): Remove function.
3967 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
3968 Make them hidden instead of static.
3969 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
3970 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
3971 (GOMP_target_end_data, GOMP_target_update)
3972 (gomp_load_plugin_for_device, gomp_target_init): Update for
3973 OpenACC changes.
3974 * oacc-async.c: New file.
3975 * oacc-cuda.c: Likewise.
3976 * oacc-host.c: Likewise.
3977 * oacc-init.c: Likewise.
3978 * oacc-int.h: Likewise.
3979 * oacc-mem.c: Likewise.
3980 * oacc-parallel.c: Likewise.
3981 * oacc-plugin.c: Likewise.
3982 * oacc-plugin.h: Likewise.
3983 * oacc-ptx.h: Likewise.
3984 * openacc.f90: Likewise.
3985 * openacc.h: Likewise.
3986 * openacc_lib.h: Likewise.
3987 * plugin/plugin-host.c: Likewise.
3988 * plugin/plugin-nvptx.c: Likewise.
3989 * libgomp-plugin.c: Likewise.
3990 * libgomp-plugin.h: Likewise.
3991 * libgomp_target.h: Remove file after merging content into the
3992 former file. Update all users.
3993 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
3994 (offload_targets_s, offload_targets_s_openacc): New variables.
3995 (check_effective_target_openacc_nvidia_accel_present)
3996 (check_effective_target_openacc_nvidia_accel_selected): New
3997 procedures.
3998 (libgomp_init): Update for OpenACC changes.
3999 * testsuite/libgomp-test-support.exp.in: New file.
4000 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
4001 * testsuite/libgomp.oacc-c/c.exp: Likewise.
4002 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4003 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
4004 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
4005 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
4006 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
4007 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
4008 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
4009 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
4010 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
4011 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
4012 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
4013 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
4014 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
4015 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
4016 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
4017 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
4018 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
4019 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
4020 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
4021 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
4022 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
4023 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
4024 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
4025 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
4026 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
4027 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
4028 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
4029 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
4030 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
4031 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
4032 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
4033 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
4034 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
4035 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
4036 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
4037 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
4038 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
4039 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
4040 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
4041 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
4042 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
4043 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
4044 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
4045 * testsuite/libgomp.oacc-c-c++-common/lib-19.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-24.c: Likewise.
4052 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
4053 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
4054 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
4055 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
4056 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
4057 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
4058 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
4059 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
4060 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
4061 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
4062 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
4063 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
4064 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
4065 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
4066 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
4067 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
4068 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
4069 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
4070 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
4071 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
4072 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
4073 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
4074 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
4075 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
4076 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
4077 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
4078 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
4079 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
4080 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
4081 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
4082 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
4083 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
4084 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
4085 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
4086 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
4087 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
4088 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
4089 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
4090 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
4091 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
4092 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
4093 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
4094 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
4095 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
4096 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
4097 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
4098 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
4099 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
4100 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
4101 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
4102 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
4103 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
4104 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
4105 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
4106 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
4107 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
4108 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
4109 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
4110 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
4111 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
4112 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
4113 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
4114 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
4115 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
4116 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
4117 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
4118 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
4119 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
4120 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
4121 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
4122 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
4123 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
4124 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
4125 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
4126 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
4127 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
4128 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
4129 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
4130 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
4131 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
4132 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
4133 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
4134 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
4135 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
4136 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
4137 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
4138 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4139 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
4140 Likewise.
4141 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
4142 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
4143 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
4144 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
4145 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
4146 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
4147 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
4148 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4149 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4150 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4151 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4152 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4153 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4154 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
4155 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
4156 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
4157 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
4158 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
4159 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
4160 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
4161 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
4162 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
4163 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
4164 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
4165 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4166 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
4167 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
4168 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
4169 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
4170 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
4171 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
4172 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
4173 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
4174 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
4175 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
4176 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
4177 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
4178 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
4179 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
4180 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
4181 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
4182 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
4183 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
4184 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
4185 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
4186 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
4187 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
4188 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
4189 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4190 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4191 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4192 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4193 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4194 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4195 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
4196 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
4197 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
4198 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
4199 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
4200 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
4201
4202 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
4203 Julian Brown <julian@codesourcery.com>
4204 David Malcolm <dmalcolm@redhat.com>
4205
4206 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
4207 to "GNU Offloading and Multi Processing Runtime Library". Change
4208 all users.
4209 * configure: Regenerate.
4210 * libgomp.texi: Update.
4211
4212 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
4213
4214 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
4215 "$tgt_dir/lib32".
4216 * configure: Regenerate.
4217
4218 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
4219 "intelmic" in $offload_targets.
4220
4221 2015-01-05 Jakub Jelinek <jakub@redhat.com>
4222
4223 Update copyright years.
4224
4225 * libgomp.texi: Bump @copying's copyright year.
4226
4227 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4228
4229 * testsuite/lib/libgomp.exp: Load target-utils.exp.
4230 Move load of target-supportes.exp earlier.
4231
4232 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
4233
4234 * testsuite/libgomp.c/target-9.c: New test.
4235
4236 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
4237
4238 * config.h.in: Regenerate.
4239 * configure: Regenerate.
4240 * configure.ac: Add GCC_CHECK_EMUTLS.
4241 * libgomp.h: Add check for USE_EMUTLS: this case
4242 is equal to HAVE_TLS.
4243 * team.c: Likewise.
4244
4245 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
4246
4247 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
4248
4249 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
4250 Ilya Verbin <ilya.verbin@intel.com>
4251
4252 * testsuite/libgomp.c/target-critical-1.c: New test.
4253
4254 2014-11-26 Jakub Jelinek <jakub@redhat.com>
4255
4256 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
4257 to dg-options unless expensive testing is on.
4258 (TESTITERS): Define to N if not defined.
4259 (main): Use TESTITERS instead of N.
4260 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
4261 dg-additional-options depending on whether expensive testing is on.
4262 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
4263 Decrease N to 100000 and CHUNKSZ to 10000.
4264
4265 2014-11-24 Jakub Jelinek <jakub@redhat.com>
4266
4267 PR fortran/63938
4268 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
4269 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
4270
4271 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
4272
4273 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
4274
4275 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
4276
4277 PR bootstrap/63784
4278 * configure: Regenerated.
4279
4280 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
4281
4282 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
4283 vect_simd_clones effective target.
4284 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
4285
4286 2014-11-14 Jakub Jelinek <jakub@redhat.com>
4287
4288 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
4289 of 32 as block_size.
4290 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
4291 instead of 32 as block_size.
4292
4293 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
4294 Ilya Verbin <ilya.verbin@intel.com>
4295
4296 * Makefile.in: Regenerate.
4297 * configure: Regenerate.
4298 * configure.ac: Set up offload_additional_options,
4299 offload_additional_lib_paths and offload_targets.
4300 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
4301 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
4302 * testsuite/Makefile.in: Regenerate.
4303 * testsuite/lib/libgomp.exp (libgomp_init): Append
4304 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
4305 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
4306 build directory to LD_LIBRARY_PATH for intelmic offload targets.
4307
4308 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
4309 Ilya Verbin <ilya.verbin@intel.com>
4310 Kirill Yukhin <kirill.yukhin@intel.com>
4311 Ilya Tocar <ilya.tocar@intel.com>
4312
4313 * testsuite/lib/libgomp.exp
4314 (check_effective_target_offload_device): New.
4315 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
4316 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
4317 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
4318 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
4319 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
4320 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
4321 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
4322 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
4323 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
4324 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
4325 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
4326 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
4327 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
4328 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
4329 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
4330 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
4331 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
4332 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
4333 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
4334 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
4335 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
4336 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
4337 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
4338 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
4339 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
4340 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
4341 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
4342 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
4343 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
4344 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
4345 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
4346 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
4347 * testsuite/libgomp.c/target-7.c: Fix test.
4348 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
4349 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
4350 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
4351 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
4352 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
4353 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
4354 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
4355 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
4356 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
4357 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
4358 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
4359 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
4360 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
4361 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
4362 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
4363 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
4364 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
4365 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
4366 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
4367 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
4368 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
4369 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
4370 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
4371 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
4372 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
4373 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
4374 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
4375 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
4376 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
4377 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
4378 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
4379
4380 2014-11-13 Jakub Jelinek <jakub@redhat.com>
4381 Ilya Verbin <ilya.verbin@intel.com>
4382 Thomas Schwinge <thomas@codesourcery.com>
4383 Andrey Turetskiy <andrey.turetskiy@intel.com>
4384
4385 * libgomp.map (GOMP_4.0.1): New symbol version.
4386 Add GOMP_offload_register.
4387 * libgomp_target.h: New file.
4388 * splay-tree.h: New file.
4389 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
4390 (gomp_target_init): New forward declaration.
4391 (gomp_is_initialized): New static variable.
4392 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
4393 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
4394 New structures.
4395 (offload_images, num_offload_images, devices, num_devices): New static
4396 variables.
4397 (splay_compare): New static function.
4398 (struct gomp_device_descr): New structure.
4399 (gomp_get_num_devices): Call gomp_target_init.
4400 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
4401 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
4402 (GOMP_offload_register): New function.
4403 (GOMP_target): Arrange for host callback to be performed in a separate
4404 initial thread and contention group, inheriting ICVs from
4405 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
4406 Add device initialization and lookup for target function in splay tree.
4407 (GOMP_target_data): Add device initialization and call gomp_map_vars.
4408 (GOMP_target_end_data): Call gomp_unmap_vars.
4409 (GOMP_target_update): Add device initialization and call gomp_update.
4410 (gomp_load_plugin_for_device, gomp_register_images_for_device)
4411 (gomp_target_init): New static functions.
4412
4413 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
4414 Thomas Schwinge <thomas@codesourcery.com>
4415 Ilya Verbin <ilya.verbin@intel.com>
4416 Andrey Turetskiy <andrey.turetskiy@intel.com>
4417
4418 * config.h.in: Regenerate.
4419 * configure: Regenerate.
4420 * configure.ac: Check for libdl, required for plugin support.
4421 (PLUGIN_SUPPORT): Define if plugins are supported.
4422 (enable_offload_targets): Support Intel MIC targets.
4423 (OFFLOAD_TARGETS): List of target names suitable for offloading.
4424
4425 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4426
4427 PR target/63610
4428 * configure: Regenerate.
4429
4430 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4431
4432 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
4433
4434 2014-10-06 Marek Polacek <polacek@redhat.com>
4435
4436 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
4437 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
4438 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
4439 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
4440
4441 2014-10-06 Marek Polacek <polacek@redhat.com>
4442
4443 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
4444 * testsuite/libgomp.c/nqueens-1.c: Likewise.
4445 * testsuite/libgomp.c/pr26943-3.c: Likewise.
4446 * testsuite/libgomp.c/pr26943-4.c: Likewise.
4447 * testsuite/libgomp.c/pr36802-2.c: Likewise.
4448 * testsuite/libgomp.c/pr36802-3.c: Likewise.
4449 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
4450 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
4451 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
4452 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
4453 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
4454 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
4455 * testsuite/libgomp.c/omp-single-1.c: Likewise.
4456 * testsuite/libgomp.c/omp-single-2.c: Likewise.
4457 * testsuite/libgomp.c/omp_matvec.c: Likewise.
4458 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
4459 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
4460 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
4461 declarations.
4462
4463 2014-10-03 Jakub Jelinek <jakub@redhat.com>
4464
4465 PR libgomp/61200
4466 * testsuite/libgomp.c/pr61200.c: New test.
4467
4468 2014-09-18 Jakub Jelinek <jakub@redhat.com>
4469
4470 PR c++/63248
4471 * testsuite/libgomp.c++/pr63248.C: New test.
4472
4473 2014-08-04 Jakub Jelinek <jakub@redhat.com>
4474
4475 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
4476 is not zero, but taskgroup->children is NULL and there are
4477 any task->children, schedule those instead of waiting.
4478 * testsuite/libgomp.c/depend-6.c: New test.
4479 * testsuite/libgomp.c/depend-7.c: New test.
4480 * testsuite/libgomp.c/depend-8.c: New test.
4481 * testsuite/libgomp.c/depend-9.c: New test.
4482 * testsuite/libgomp.c/depend-10.c: New test.
4483
4484 2014-08-01 Jakub Jelinek <jakub@redhat.com>
4485
4486 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
4487 (struct gomp_taskwait): New type.
4488 (struct gomp_task): Add taskwait and parent_depends_on, remove
4489 in_taskwait and taskwait_sem fields.
4490 (gomp_finish_task): Don't destroy taskwait_sem.
4491 * task.c (gomp_init_task): Don't init in_taskwait, instead init
4492 taskwait and parent_depends_on.
4493 (GOMP_task): For if (0) tasks with depend clause that depend on
4494 earlier tasks don't defer them, instead call
4495 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
4496 Initialize redundant_out field, for redundant out entries just
4497 move them at the end of linked list instead of removing them
4498 completely, and set redundant_out flag instead of redundant.
4499 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
4500 that task.
4501 (gomp_task_run_post_handle_dependers): If parent is in
4502 gomp_task_maybe_wait_for_dependencies and newly runnable task
4503 is not parent_depends_on, queue it in parent->children linked
4504 list after all runnable tasks with parent_depends_on set.
4505 Adjust for addition of taskwait indirection.
4506 (gomp_task_run_post_remove_parent): If parent is in
4507 gomp_task_maybe_wait_for_dependencies and task to be removed
4508 is parent_depends_on, decrement n_depend and if needed awake
4509 parent. Adjust for addition of taskwait indirection.
4510 (GOMP_taskwait): Adjust for addition of taskwait indirection.
4511 (gomp_task_maybe_wait_for_dependencies): New function.
4512 * testsuite/libgomp.c/depend-5.c: New test.
4513
4514 2014-07-13 Tobias Burnus <burnus@net-b.de>
4515
4516 * testsuite/libgomp.fortran/pr34020.f90: Make compile
4517 with TS 18508/Fortran 2015.
4518
4519 2014-07-06 Marek Polacek <polacek@redhat.com>
4520
4521 PR c/6940
4522 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
4523
4524 2014-07-03 Jakub Jelinek <jakub@redhat.com>
4525
4526 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
4527 matches regex $lang_source_re, add $lang_include_flags to options.
4528 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
4529 * testsuite/libgomp.c++/c++.exp: Likewise.
4530 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
4531 and lang_include_flags instead of adding -fintrinsic-modules-path= to
4532 ALWAYS_CFLAGS.
4533 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
4534
4535 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
4536
4537 * testsuite/libgomp.fortran/fortran.exp: Explain
4538 gfortran-dg-runtest usage.
4539
4540 2014-06-25 Jakub Jelinek <jakub@redhat.com>
4541
4542 * testsuite/libgomp.fortran/simd5.f90: New test.
4543 * testsuite/libgomp.fortran/simd6.f90: New test.
4544 * testsuite/libgomp.fortran/simd7.f90: New test.
4545
4546 2014-06-24 Jakub Jelinek <jakub@redhat.com>
4547
4548 * testsuite/libgomp.c/for-2.c: Define SC to static for
4549 #pragma omp for simd testing.
4550 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
4551 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
4552 SC macro.
4553 * testsuite/libgomp.c/simd-14.c: New test.
4554 * testsuite/libgomp.c/simd-15.c: New test.
4555 * testsuite/libgomp.c/simd-16.c: New test.
4556 * testsuite/libgomp.c/simd-17.c: New test.
4557 * testsuite/libgomp.c++/for-10.C: Define SC to static for
4558 #pragma omp for simd testing.
4559 * testsuite/libgomp.c++/simd10.C: New test.
4560 * testsuite/libgomp.c++/simd11.C: New test.
4561 * testsuite/libgomp.c++/simd12.C: New test.
4562 * testsuite/libgomp.c++/simd13.C: New test.
4563
4564 * testsuite/libgomp.fortran/aligned1.f03: New test.
4565 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
4566 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
4567 tasks with !$omp parallel !$omp single.
4568 * testsuite/libgomp.fortran/target8.f90: New test.
4569 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
4570 not to use trim in the combiner, instead call elemental function.
4571 (fn): New elemental function.
4572 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
4573 Make elemental.
4574 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
4575 omp_in): Likewise.
4576 * testsuite/libgomp.fortran/udr12.f90: New test.
4577 * testsuite/libgomp.fortran/udr13.f90: New test.
4578 * testsuite/libgomp.fortran/udr14.f90: New test.
4579 * testsuite/libgomp.fortran/udr15.f90: New test.
4580
4581 2014-06-18 Jakub Jelinek <jakub@redhat.com>
4582
4583 * omp_lib.f90.in (openmp_version): Set to 201307.
4584 * omp_lib.h.in (openmp_version): Likewise.
4585 * testsuite/libgomp.c/target-8.c: New test.
4586 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
4587 and inbranch clauses.
4588 * testsuite/libgomp.fortran/depend-3.f90: New test.
4589 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
4590 openmp_version.
4591 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
4592 * testsuite/libgomp.fortran/target1.f90: New test.
4593 * testsuite/libgomp.fortran/target2.f90: New test.
4594 * testsuite/libgomp.fortran/target3.f90: New test.
4595 * testsuite/libgomp.fortran/target4.f90: New test.
4596 * testsuite/libgomp.fortran/target5.f90: New test.
4597 * testsuite/libgomp.fortran/target6.f90: New test.
4598 * testsuite/libgomp.fortran/target7.f90: New test.
4599
4600 2014-06-10 Jakub Jelinek <jakub@redhat.com>
4601
4602 PR fortran/60928
4603 * testsuite/libgomp.fortran/allocatable9.f90: New test.
4604 * testsuite/libgomp.fortran/allocatable10.f90: New test.
4605 * testsuite/libgomp.fortran/allocatable11.f90: New test.
4606 * testsuite/libgomp.fortran/allocatable12.f90: New test.
4607 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
4608 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
4609 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
4610 * testsuite/libgomp.fortran/associate1.f90: New test.
4611 * testsuite/libgomp.fortran/associate2.f90: New test.
4612 * testsuite/libgomp.fortran/procptr1.f90: New test.
4613
4614 2014-06-06 Jakub Jelinek <jakub@redhat.com>
4615
4616 * testsuite/libgomp.fortran/simd1.f90: New test.
4617 * testsuite/libgomp.fortran/udr1.f90: New test.
4618 * testsuite/libgomp.fortran/udr2.f90: New test.
4619 * testsuite/libgomp.fortran/udr3.f90: New test.
4620 * testsuite/libgomp.fortran/udr4.f90: New test.
4621 * testsuite/libgomp.fortran/udr5.f90: New test.
4622 * testsuite/libgomp.fortran/udr6.f90: New test.
4623 * testsuite/libgomp.fortran/udr7.f90: New test.
4624 * testsuite/libgomp.fortran/udr8.f90: New test.
4625 * testsuite/libgomp.fortran/udr9.f90: New test.
4626 * testsuite/libgomp.fortran/udr10.f90: New test.
4627 * testsuite/libgomp.fortran/udr11.f90: New test.
4628
4629 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
4630
4631 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
4632 vect_simd_clones effective target.
4633 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
4634
4635 2014-05-21 Jakub Jelinek <jakub@redhat.com>
4636
4637 PR middle-end/61252
4638 * testsuite/libgomp.c++/simd-9.C: New test.
4639
4640 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
4641
4642 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
4643 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
4644 texts according to their @menu entry positions.
4645
4646 2014-05-11 Jakub Jelinek <jakub@redhat.com>
4647
4648 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
4649 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
4650 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
4651 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
4652 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
4653 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
4654 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
4655 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
4656 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
4657 * testsuite/libgomp.fortran/depend-1.f90: New test.
4658 * testsuite/libgomp.fortran/depend-2.f90: New test.
4659 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
4660 * testsuite/libgomp.fortran/simd1.f90: New test.
4661 * testsuite/libgomp.fortran/simd2.f90: New test.
4662 * testsuite/libgomp.fortran/simd3.f90: New test.
4663 * testsuite/libgomp.fortran/simd4.f90: New test.
4664 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
4665
4666 2014-05-02 Jakub Jelinek <jakub@redhat.com>
4667
4668 * testsuite/libgomp.c/simd-10.c: New test.
4669 * testsuite/libgomp.c/simd-11.c: New test.
4670 * testsuite/libgomp.c/simd-12.c: New test.
4671 * testsuite/libgomp.c/simd-13.c: New test.
4672
4673 2014-04-24 Jakub Jelinek <jakub@redhat.com>
4674
4675 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
4676 atomic type clauses in any order and optional comma in between.
4677 * testsuite/libgomp.c++/atomic-15.C: Likewise.
4678 * testsuite/libgomp.c/atomic-17.c: Likewise.
4679
4680 * testsuite/libgomp.c/simd-7.c: New test.
4681 * testsuite/libgomp.c/simd-8.c: New test.
4682 * testsuite/libgomp.c/simd-9.c: New test.
4683 * testsuite/libgomp.c/loop-16.c: New test.
4684
4685 2014-04-02 Richard Henderson <rth@redhat.com>
4686
4687 * config/linux/futex.h (futex_wait): Get error value from errno.
4688 (futex_wake): Likewise.
4689
4690 2014-03-25 Jakub Jelinek <jakub@redhat.com>
4691
4692 PR c++/60331
4693 * testsuite/libgomp.c++/udr-11.C: New test.
4694 * testsuite/libgomp.c++/udr-12.C: New test.
4695 * testsuite/libgomp.c++/udr-13.C: New test.
4696 * testsuite/libgomp.c++/udr-14.C: New test.
4697 * testsuite/libgomp.c++/udr-15.C: New test.
4698 * testsuite/libgomp.c++/udr-16.C: New test.
4699 * testsuite/libgomp.c++/udr-17.C: New test.
4700 * testsuite/libgomp.c++/udr-18.C: New test.
4701 * testsuite/libgomp.c++/udr-19.C: New test.
4702
4703 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
4704
4705 Update copyright years
4706
4707 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
4708
4709 * hashtab.h: Use the standard form for the copyright notice.
4710
4711 2014-01-02 Tobias Burnus <burnus@net-b.de>
4712
4713 * libgomp.texi: Bump @copying's copyright year.
4714
4715 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
4716
4717 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
4718 alloca () with __builtin_alloca ().
4719 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
4720 * testsuite/libgomp.c/lock-3.c: Likewise.
4721 * testsuite/libgomp.c/pr48591.c: Likewise.
4722
4723 2013-12-17 Jakub Jelinek <jakub@redhat.com>
4724
4725 PR testsuite/59534
4726 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
4727 comparisons.
4728
4729 2013-12-16 Jakub Jelinek <jakub@redhat.com>
4730
4731 PR libgomp/58756
4732 * testsuite/libgomp.c/pr58756.c: New test.
4733
4734 2013-12-12 Jakub Jelinek <jakub@redhat.com>
4735
4736 PR libgomp/59467
4737 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
4738 !$omp parallel.
4739
4740 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
4741
4742 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
4743 ALWAYS_CFLAGS.
4744 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
4745 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
4746 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
4747 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
4748 Likewise.
4749
4750 * libgomp_g.h: Include <stddef.h> for size_t.
4751
4752 * libgomp.spec.in: Update comment about libgomp's dependencies.
4753 * configure.ac: Likewise.
4754 * configure: Regenerate.
4755
4756 2013-10-16 Tobias Burnus <burnus@net-b.de>
4757
4758 * libgomp.texi: (Runtime Library Routines): Update references for
4759 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
4760 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
4761 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
4762 (Environment Variables): Update references for OpenMP 4.0. Add
4763 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
4764 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
4765 order.
4766
4767 2013-10-14 Jakub Jelinek <jakub@redhat.com>
4768
4769 * env.c (parse_bind_var): Initialize value to avoid
4770 (false positive) warning.
4771
4772 2013-10-12 Jakub Jelinek <jakub@redhat.com>
4773
4774 PR libgomp/58691
4775 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
4776 to check variable.
4777 (gomp_init_num_threads): Move i variable declaration into
4778 #ifdef CPU_ALLOC_SIZE block.
4779 * config/linux/affinity.c (gomp_affinity_init_level): Test
4780 gomp_places_list_len == 0 rather than gomp_places_list == 0
4781 when checking for topology reading error.
4782 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
4783 * env.c (parse_affinity): Add ignore argument, if true, don't populate
4784 gomp_places_list, only parse env var and always return false.
4785 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
4786 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
4787 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
4788 and either of these variables were parsed correctly into a places
4789 list.
4790
4791 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
4792 Jakub Jelinek <jakub@redhat.com>
4793
4794 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
4795 of 5 loopfn matches.
4796 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
4797 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
4798 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
4799 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
4800 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
4801 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
4802 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
4803 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
4804
4805 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
4806
4807 * Makefile.am (omp_lib.mod): Streamline rule.
4808 * Makefile.in: Regenerate.
4809
4810 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
4811 exceptions.
4812
4813 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
4814 * testsuite/libgomp.fortran/lib1.f90: Likewise.
4815 * testsuite/libgomp.fortran/lib2.f: Likewise.
4816 * testsuite/libgomp.fortran/lib3.f: Likewise.
4817
4818 * configure.ac: Typo fix.
4819 * configure: Regenerate.
4820
4821 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
4822 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
4823
4824 * omp.h.in: Don't touch the user's namespace.
4825
4826 2013-10-11 Jakub Jelinek <jakub@redhat.com>
4827 Tobias Burnus <burnus@net-b.de>
4828 Richard Henderson <rth@redhat.com>
4829
4830 * target.c: New file.
4831 * Makefile.am (libgomp_la_SOURCES): Add target.c.
4832 * Makefile.in: Regenerated.
4833 * libgomp_g.h (GOMP_task): Add depend argument.
4834 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
4835 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
4836 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
4837 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
4838 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
4839 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
4840 GOMP_taskgroup_start, GOMP_taskgroup_end,
4841 GOMP_parallel_sections): New prototypes.
4842 * fortran.c (omp_is_initial_device): Add ialias_redirect.
4843 (omp_is_initial_device_): New function.
4844 (ULP, STR1, STR2, ialias_redirect): Removed.
4845 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
4846 omp_set_default_device_8_, omp_get_default_device_,
4847 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
4848 functions.
4849 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
4850 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
4851 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
4852 @@GOMP_4.0.
4853 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
4854 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
4855 omp_set_default_device, omp_set_default_device_,
4856 omp_set_default_device_8_, omp_get_default_device,
4857 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
4858 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
4859 omp_get_team_num_): Export @@OMP_4.0.
4860 * team.c (struct gomp_thread_start_data): Add place field.
4861 (gomp_thread_start): Clear thr->thread_pool and
4862 thr->task before returning. Use gomp_team_barrier_wait_final
4863 instead of gomp_team_barrier_wait. Initialize thr->place.
4864 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
4865 team_cancelled and task_queued_count fields.
4866 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
4867 before calling pthread_exit.
4868 (gomp_free_thread): No longer static. Use
4869 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
4870 (gomp_team_start): Add flags argument. Set
4871 thr->thread_pool->threads_busy to nthreads immediately after creating
4872 new pool. Use gomp_managed_threads_lock instead of
4873 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
4874 (gomp_team_end): Use gomp_managed_threads_lock instead of
4875 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
4876 of gomp_team_barrier_wait. If team->team_cancelled, call
4877 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
4878 rather than thr->ts.work_share.
4879 (initialize_team): Don't call gomp_sem_init here.
4880 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
4881 caller.
4882 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
4883 * env.c (gomp_global_icv): Add default_device_var, target_data and
4884 bind_var initializers.
4885 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
4886 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
4887 gomp_places_list_len): New variables.
4888 (parse_bind_var, parse_one_place, parse_places_var): New functions.
4889 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
4890 sized places.
4891 (gomp_cancel_var): New global variable.
4892 (parse_int): New function.
4893 (handle_omp_display_env): New function.
4894 (initialize_env): Use it. Initialize default_device_var.
4895 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
4896 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
4897 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
4898 been successfully parsed (and call gomp_init_affinity in that case).
4899 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
4900 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
4901 omp_get_team_num, omp_is_initial_device): New functions.
4902 * libgomp.h: Include stdlib.h.
4903 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
4904 Define.
4905 (struct target_mem_desc): Forward declare.
4906 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
4907 and thread_limit_var fields.
4908 (gomp_get_num_devices): New prototype.
4909 (gomp_cancel_var): New extern decl.
4910 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
4911 team_cancelled and task_queued_count fields. Add comments about
4912 task_{,queued_,running_}count.
4913 (gomp_cancel_kind): New enum.
4914 (gomp_work_share_end_cancel): New prototype.
4915 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
4916 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
4917 and depend fields.
4918 (struct gomp_taskgroup): New type.
4919 (struct gomp_task_depend_entry,
4920 struct gomp_dependers_vec): New types.
4921 (gomp_finish_task): Free depend_hash if non-NULL.
4922 (struct gomp_team_state): Add place_partition_off
4923 and place_partition_len fields.
4924 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
4925 gomp_places_list_len): New extern decls.
4926 (struct gomp_thread): Add place field.
4927 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
4928 (gomp_init_thread_affinity): Add place argument.
4929 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
4930 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
4931 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
4932 gomp_affinity_init_level, gomp_affinity_print_place): New
4933 prototypes.
4934 (gomp_team_start): Add flags argument.
4935 (gomp_thread_limit_var, gomp_remaining_threads_count,
4936 gomp_remaining_threads_lock): Remove.
4937 (gomp_managed_threads_lock): New variable.
4938 (struct gomp_thread_pool): Add threads_busy field.
4939 (gomp_free_thread): New prototype.
4940 * task.c: Include hashtab.h.
4941 (hash_entry_type): New typedef.
4942 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
4943 (gomp_init_task): Clear dependers, depend_hash, depend_count,
4944 copy_ctors_done and taskgroup fields.
4945 (GOMP_task): Add depend argument, handle depend clauses. If
4946 gomp_team_barrier_cancelled or if it's taskgroup has been
4947 cancelled, don't queue or start new tasks. Set copy_ctors_done
4948 field if needed. Initialize taskgroup field. If copy_ctors_done
4949 and already cancelled, don't discard the task. If taskgroup is
4950 non-NULL, enqueue the task into taskgroup queue. Increment
4951 num_children field in taskgroup. Increment task_queued_count.
4952 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
4953 gomp_task_run_post_remove_taskgroup): New inline functions.
4954 (gomp_task_run_post_handle_depend_hash,
4955 gomp_task_run_post_handle_dependers,
4956 gomp_task_run_post_handle_depend): New functions.
4957 (GOMP_taskwait): Use them. If more than one new tasks
4958 have been queued, wake other threads if needed.
4959 (gomp_barrier_handle_tasks): Likewise. If
4960 gomp_team_barrier_cancelled, don't start any new tasks, just free
4961 all tasks.
4962 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
4963 * omp_lib.f90.in
4964 (omp_proc_bind_kind, omp_proc_bind_false,
4965 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
4966 omp_proc_bind_spread): New params.
4967 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
4968 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
4969 omp_get_team_num, omp_is_initial_device): New interfaces.
4970 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
4971 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
4972 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
4973 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
4974 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
4975 useless use omp_lib_kinds.
4976 * omp.h.in (omp_proc_bind_t): New typedef.
4977 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
4978 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
4979 omp_get_team_num, omp_is_initial_device): New prototypes.
4980 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
4981 through to gomp_team_start.
4982 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
4983 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
4984 Adjust gomp_parallel_loop_start callers.
4985 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
4986 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
4987 GOMP_loop_end_cancel): New functions.
4988 (GOMP_parallel_end): Add ialias_redirect.
4989 * hashtab.h: New file.
4990 * libgomp.texi (Environment Variables): Minor cleanup,
4991 update section refs to OpenMP 4.0rc2.
4992 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
4993 environment variables.
4994 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
4995 team->work_shares_to_free to thr->ts.work_share before calling
4996 free_work_share.
4997 (gomp_work_share_end_cancel): New function.
4998 * config/linux/proc.c: Include errno.h.
4999 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
5000 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
5001 sizeof (cpu_set_t) to determine number of iterations. Fix up check
5002 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
5003 gomp_cpuset_size is sizeof (cpu_set_t).
5004 (gomp_init_num_threads): Initialize gomp_cpuset_size,
5005 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
5006 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
5007 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
5008 contain any logical CPUs.
5009 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
5010 is NULL. Use gomp_cpusetp instead of &cpuset and pass
5011 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
5012 pthread_getaffinity_np. Check gomp_places_list instead of
5013 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
5014 * config/linux/bar.c (gomp_barrier_wait_end,
5015 gomp_barrier_wait_last): Use BAR_* defines.
5016 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
5017 from state where needed. Set work_share_cancelled to 0 on last
5018 thread.
5019 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
5020 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
5021 functions.
5022 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
5023 Add cpusetsize argument.
5024 (gomp_cpuset_size, gomp_cpusetp): Declare.
5025 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
5026 (affinity_counter): Remove.
5027 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
5028 if CPU_ALLOC_SIZE isn't defined.
5029 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
5030 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
5031 bind current thread to the first place.
5032 (gomp_init_thread_affinity): Rewritten. Add place argument, just
5033 pthread_setaffinity_np to gomp_places_list[place].
5034 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
5035 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
5036 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
5037 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
5038 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
5039 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
5040 (gomp_barrier_t): Add awaited_final field.
5041 (gomp_barrier_init): Initialize awaited_final field.
5042 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
5043 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
5044 prototypes.
5045 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
5046 defines.
5047 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
5048 gomp_team_barrier_cancelled): New inline functions.
5049 (gomp_barrier_last_thread,
5050 gomp_team_barrier_set_task_pending,
5051 gomp_team_barrier_clear_task_pending,
5052 gomp_team_barrier_set_waiting_for_tasks,
5053 gomp_team_barrier_waiting_for_tasks,
5054 gomp_team_barrier_done): Use BAR_* defines.
5055 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
5056 (gomp_barrier_wait_end): Use BAR_* defines.
5057 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
5058 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
5059 Use BAR_* defines.
5060 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
5061 gomp_team_barrier_cancel): New functions.
5062 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
5063 argument.
5064 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
5065 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
5066 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
5067 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
5068 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
5069 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
5070 (gomp_barrier_t): Add cancellable field.
5071 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
5072 gomp_team_barrier_cancel): New prototypes.
5073 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
5074 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
5075 gomp_team_barrier_cancelled): New inline functions.
5076 (gomp_barrier_wait_start, gomp_barrier_last_thread,
5077 gomp_team_barrier_set_task_pending,
5078 gomp_team_barrier_clear_task_pending,
5079 gomp_team_barrier_set_waiting_for_tasks,
5080 gomp_team_barrier_waiting_for_tasks,
5081 gomp_team_barrier_done): Use BAR_* defines.
5082 * barrier.c (GOMP_barrier_cancel): New function.
5083 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
5084 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
5085 omp_proc_bind_spread): New params.
5086 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
5087 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
5088 omp_get_team_num, omp_is_initial_device): New externals.
5089 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
5090 New functions.
5091 (gomp_resolve_num_threads): Adjust for thread_limit now being in
5092 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
5093 infinity. If not nested, just return minimum of max_num_threads
5094 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
5095 to the returned value. Otherwise, don't update atomically
5096 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
5097 (GOMP_parallel_end): Adjust for thread_limit now being in
5098 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
5099 infinity. Adjust threads_busy in the pool rather than
5100 gomp_remaining_threads_count. Remember team->nthreads and call
5101 gomp_team_end before adjusting threads_busy, if not nested
5102 afterwards, just set it to 1 non-atomically. Add ialias.
5103 (GOMP_parallel_start): Adjust gomp_team_start caller.
5104 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
5105 * testsuite/libgomp.c/affinity-1.c: New test.
5106 * testsuite/libgomp.c/atomic-15.c: New test.
5107 * testsuite/libgomp.c/atomic-16.c: New test.
5108 * testsuite/libgomp.c/atomic-17.c: New test.
5109 * testsuite/libgomp.c/cancel-for-1.c: New test.
5110 * testsuite/libgomp.c/cancel-for-2.c: New test.
5111 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
5112 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
5113 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
5114 * testsuite/libgomp.c/cancel-sections-1.c: New test.
5115 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
5116 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
5117 * testsuite/libgomp.c/depend-1.c: New test.
5118 * testsuite/libgomp.c/depend-2.c: New test.
5119 * testsuite/libgomp.c/depend-3.c: New test.
5120 * testsuite/libgomp.c/depend-4.c: New test.
5121 * testsuite/libgomp.c/for-1.c: New test.
5122 * testsuite/libgomp.c/for-1.h: New file.
5123 * testsuite/libgomp.c/for-2.c: New test.
5124 * testsuite/libgomp.c/for-2.h: New file.
5125 * testsuite/libgomp.c/for-3.c: New test.
5126 * testsuite/libgomp.c/pr58392.c: New test.
5127 * testsuite/libgomp.c/simd-1.c: New test.
5128 * testsuite/libgomp.c/simd-2.c: New test.
5129 * testsuite/libgomp.c/simd-3.c: New test.
5130 * testsuite/libgomp.c/simd-4.c: New test.
5131 * testsuite/libgomp.c/simd-5.c: New test.
5132 * testsuite/libgomp.c/simd-6.c: New test.
5133 * testsuite/libgomp.c/target-1.c: New test.
5134 * testsuite/libgomp.c/target-2.c: New test.
5135 * testsuite/libgomp.c/target-3.c: New test.
5136 * testsuite/libgomp.c/target-4.c: New test.
5137 * testsuite/libgomp.c/target-5.c: New test.
5138 * testsuite/libgomp.c/target-6.c: New test.
5139 * testsuite/libgomp.c/target-7.c: New test.
5140 * testsuite/libgomp.c/taskgroup-1.c: New test.
5141 * testsuite/libgomp.c/thread-limit-1.c: New test.
5142 * testsuite/libgomp.c/thread-limit-2.c: New test.
5143 * testsuite/libgomp.c/thread-limit-3.c: New test.
5144 * testsuite/libgomp.c/udr-1.c: New test.
5145 * testsuite/libgomp.c/udr-2.c: New test.
5146 * testsuite/libgomp.c/udr-3.c: New test.
5147 * testsuite/libgomp.c++/affinity-1.C: New test.
5148 * testsuite/libgomp.c++/atomic-10.C: New test.
5149 * testsuite/libgomp.c++/atomic-11.C: New test.
5150 * testsuite/libgomp.c++/atomic-12.C: New test.
5151 * testsuite/libgomp.c++/atomic-13.C: New test.
5152 * testsuite/libgomp.c++/atomic-14.C: New test.
5153 * testsuite/libgomp.c++/atomic-15.C: New test.
5154 * testsuite/libgomp.c++/cancel-for-1.C: New test.
5155 * testsuite/libgomp.c++/cancel-for-2.C: New test.
5156 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
5157 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
5158 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
5159 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
5160 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
5161 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
5162 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
5163 * testsuite/libgomp.c++/cancel-test.h: New file.
5164 * testsuite/libgomp.c++/for-9.C: New test.
5165 * testsuite/libgomp.c++/for-10.C: New test.
5166 * testsuite/libgomp.c++/for-11.C: New test.
5167 * testsuite/libgomp.c++/simd-1.C: New test.
5168 * testsuite/libgomp.c++/simd-2.C: New test.
5169 * testsuite/libgomp.c++/simd-3.C: New test.
5170 * testsuite/libgomp.c++/simd-4.C: New test.
5171 * testsuite/libgomp.c++/simd-5.C: New test.
5172 * testsuite/libgomp.c++/simd-6.C: New test.
5173 * testsuite/libgomp.c++/simd-7.C: New test.
5174 * testsuite/libgomp.c++/simd-8.C: New test.
5175 * testsuite/libgomp.c++/target-1.C: New test.
5176 * testsuite/libgomp.c++/target-2.C: New test.
5177 * testsuite/libgomp.c++/target-2-aux.cc: New file.
5178 * testsuite/libgomp.c++/target-3.C: New test.
5179 * testsuite/libgomp.c++/taskgroup-1.C: New test.
5180 * testsuite/libgomp.c++/udr-1.C: New test.
5181 * testsuite/libgomp.c++/udr-2.C: New test.
5182 * testsuite/libgomp.c++/udr-3.C: New test.
5183 * testsuite/libgomp.c++/udr-4.C: New test.
5184 * testsuite/libgomp.c++/udr-5.C: New test.
5185 * testsuite/libgomp.c++/udr-6.C: New test.
5186 * testsuite/libgomp.c++/udr-7.C: New test.
5187 * testsuite/libgomp.c++/udr-8.C: New test.
5188 * testsuite/libgomp.c++/udr-9.C: New test.
5189
5190 2013-09-20 Jakub Jelinek <jakub@redhat.com>
5191
5192 PR testsuite/57605
5193 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
5194 ALWAYS_CFLAGS.
5195
5196 2013-09-20 Alan Modra <amodra@gmail.com>
5197
5198 * configure: Regenerate.
5199
5200 2013-09-19 Jakub Jelinek <jakub@redhat.com>
5201
5202 * testsuite/libgomp.c/sections-2.c: New test.
5203
5204 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
5205
5206 * testsuite/libgomp.fortran/strassen.f90:
5207 Add dg-skip-if aarch64_tiny.
5208
5209 2013-06-20 Iain Sandoe <iain@codesourcery.com>
5210 Cesar Philippidis <cesar@codesourcery.com>
5211
5212 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
5213 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
5214 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
5215 * testsuite/libgomp.fortran/fortran.exp: Likewise.
5216 * testsuite/libgomp.graphite/graphite.exp: Likewise.
5217 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
5218 Use dg-runtest rather than gfortran-dg-runtest.
5219
5220 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
5221
5222 * testsuite/libgomp.c/icv-2.c: Extend current handling of
5223 Linux-based x86 systems to cover all GNU systems.
5224 * testsuite/libgomp.c/lock-3.c: Likewise.
5225 * testsuite/libgomp.c/pr48591.c: Likewise.
5226
5227 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
5228
5229 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
5230 GNU/Hurd, as done for Linux-based systems.
5231
5232 * config/posix/ptrlock.h: Fix comment.
5233
5234 2013-05-27 Tobias Burnus <burnus@net-b.de>
5235
5236 PR fortran/57423
5237 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
5238 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
5239 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
5240 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
5241 omp_destroy_nest_lock): Correct arguments to match the one in
5242 the OpenMP spec.
5243 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
5244 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
5245 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
5246 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
5247
5248 2013-05-16 Jakub Jelinek <jakub@redhat.com>
5249
5250 * testsuite/libgomp.c/loop-13.c: New test.
5251 * testsuite/libgomp.c/loop-14.c: New test.
5252 * testsuite/libgomp.c/loop-15.c: New test.
5253 * testsuite/libgomp.c++/loop-13.C: New test.
5254 * testsuite/libgomp.c++/loop-14.C: New test.
5255 * testsuite/libgomp.c++/loop-15.C: New test.
5256
5257 2013-02-06 Jakub Jelinek <jakub@redhat.com>
5258
5259 PR middle-end/56217
5260 * testsuite/libgomp.c++/pr56217.C: New test.
5261
5262 2013-02-01 Alan Modra <amodra@gmail.com>
5263
5264 * task.c (GOMP_task, GOMP_taskwait): Comment.
5265
5266 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
5267 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
5268
5269 PR libgomp/55561
5270 * config/linux/wait.h (do_spin): Use atomic load for addr.
5271 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
5272 for intptr and ptrlock.
5273 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
5274 for ptrlock.
5275
5276 2013-01-22 Alan Modra <amodra@gmail.com>
5277
5278 PR libgomp/51376
5279 PR libgomp/56073
5280 * task.c (GOMP_task): Revert 2011-12-09 change.
5281 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
5282 barrier to read task->children..
5283 (gomp_barrier_handle_tasks): ..and matching atomic store with
5284 release barrier here when setting parent->children to NULL.
5285
5286 2013-01-16 Jakub Jelinek <jakub@redhat.com>
5287 Tobias Burnus <burnus@net-b.de>
5288
5289 PR driver/55884
5290 * testsuite/libgomp.fortran/fortran.exp: Use
5291 -fintrinsic-modules-path= instead of
5292 -fintrinsic-modules-path.
5293
5294 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
5295
5296 Update copyright years.
5297
5298 2012-12-19 Tobias Burnus <burnus@net-b.de>
5299
5300 * testsuite/libgomp.fortran/fortran.exp: Set
5301 -fintrinsic-modules-path.
5302
5303 2012-12-19 Tobias Burnus <burnus@net-b.de>
5304
5305 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
5306 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
5307
5308 2012-11-21 Jakub Jelinek <jakub@redhat.com>
5309
5310 PR libgomp/55411
5311 * team.c (gomp_free_thread): Decrease gomp_managed_threads
5312 if pool had any threads_used.
5313
5314 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
5315
5316 * testsuite/libgomp.c++/pr24455.C: Use
5317 -Wl,-undefined,dynamic_lookup on darwin.
5318
5319 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
5320
5321 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
5322
5323 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
5324
5325 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
5326
5327 2012-10-23 Ian Bolton <ian.bolton@arm.com>
5328 Jim MacArthur <jim.macarthur@arm.com>
5329 Marcus Shawcroft <marcus.shawcroft@arm.com>
5330 Nigel Stephens <nigel.stephens@arm.com>
5331 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5332 Richard Earnshaw <rearnsha@arm.com>
5333 Sofiane Naci <sofiane.naci@arm.com>
5334 Stephen Thomas <stephen.thomas@arm.com>
5335 Tejas Belagod <tejas.belagod@arm.com>
5336 Yufeng Zhang <yufeng.zhang@arm.com>
5337
5338 * configure.tgt: Add AArch64.
5339
5340 2012-10-04 Jason Merrill <jason@redhat.com>
5341
5342 * testsuite/libgomp.c++/tls-init1.C: New.
5343
5344 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
5345
5346 * configure: Regenerated.
5347
5348 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
5349
5350 * config/linux/mips/futex.h (sys_futex0): Change to static
5351 function with noinline, nomips16 attributes under MIPS16. Adjust
5352 asm statement to place 'li v0,SYS_futex' immediately before
5353 syscall insn.
5354
5355 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
5356
5357 * libgomp.texi (Library Index): Renamed from "Index" to prevent
5358 conflict with index.html on case-insensitive file systems.
5359
5360 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
5361
5362 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
5363 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
5364
5365 2012-07-02 Richard Guenther <rguenther@suse.de>
5366 Michael Matz <matz@suse.de>
5367 Tobias Grosser <tobias@grosser.es>
5368 Sebastian Pop <sebpop@gmail.com>
5369
5370 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
5371 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
5372 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
5373 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
5374
5375 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
5376
5377 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
5378
5379 2012-06-22 Richard Guenther <rguenther@suse.de>
5380
5381 Merge from graphite branch
5382 2012-01-13 Tobias Grosser <tobias@grosser.es>
5383
5384 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
5385 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
5386
5387 2012-06-07 Jakub Jelinek <jakub@redhat.com>
5388
5389 PR middle-end/53580
5390 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
5391 use GOMP_barrier () call instead.
5392 * testsuite/libgomp.c/pr26943-3.c: Likewise.
5393 * testsuite/libgomp.c/pr26943-4.c: Likewise.
5394 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
5395 call GOMP_barrier instead.
5396 * testsuite/libgomp.fortran/vla5.f90: Likewise.
5397
5398 2012-06-06 Jakub Jelinek <jakub@redhat.com>
5399
5400 PR libgomp/52993
5401 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
5402 argument to memset call.
5403
5404 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
5405
5406 * configure: Regenerated.
5407
5408 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5409
5410 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
5411
5412 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
5413
5414 PR bootstrap/52812
5415 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
5416
5417 2012-03-22 Jakub Jelinek <jakub@redhat.com>
5418
5419 PR middle-end/52547
5420 * testsuite/libgomp.c/pr52547.c: New test.
5421
5422 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5423
5424 * testsuite/lib/libgomp.exp: load fortran-modules.exp
5425
5426 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5427
5428 * configure.tgt (mips-sgi-irix6*): Remove.
5429
5430 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5431
5432 * configure.tgt (alpha*-dec-osf*): Remove.
5433
5434 * config/osf/sem.h: Remove.
5435 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
5436
5437 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
5438
5439 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
5440
5441 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5442
5443 PR libstdc++/52188
5444 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
5445 Remove ENABLE_SYMVERS_SOL2.
5446 * configure: Regenerate.
5447 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
5448 (PREPROCESS): New variable.
5449 (libgomp.ver): New target.
5450 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
5451 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
5452 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
5453 Use libgomp.ver.
5454 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
5455 * Makefile.in: Regenerate.
5456
5457 2012-02-14 Walter Lee <walt@tilera.com>
5458
5459 * configure.tgt: Handle tilegx and tilepro.
5460 * config/linux/tile/futex.h: New file.
5461
5462 2012-02-08 Richard Guenther <rguenther@suse.de>
5463
5464 PR tree-optimization/46886
5465 * testsuite/libgomp.c/pr46886.c: New testcase.
5466
5467 2012-01-25 Matthias Klose <doko@ubuntu.com>
5468
5469 * config/linux/arm: Remove empty directory.
5470 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
5471
5472 2011-12-09 Alan Modra <amodra@gmail.com>
5473
5474 PR libgomp/51376
5475 * task.c (GOMP_taskwait): Don't access task->children outside of
5476 task_lock mutex region.
5477 (GOMP_task): Likewise.
5478
5479 2011-12-06 Jakub Jelinek <jakub@redhat.com>
5480
5481 PR libgomp/51132
5482 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
5483 to file scope.
5484 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
5485 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
5486 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
5487 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
5488 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
5489
5490 2011-12-02 Alan Modra <amodra@gmail.com>
5491
5492 * config/linux/affinity.c: Use atomic rather than sync builtin.
5493 * config/linux/lock.c: Likewise.
5494 * config/linux/ptrlock.h: Likewise.
5495 * config/linux/ptrlock.c: Likewise.
5496 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
5497 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
5498 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
5499 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
5500 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
5501 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
5502 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
5503 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
5504 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
5505 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
5506
5507 2011-11-30 Alan Modra <amodra@gmail.com>
5508
5509 PR libgomp/51298
5510 * config/linux/bar.h: Use atomic rather than sync builtins.
5511 * config/linux/bar.c: Likewise. Add missing acquire
5512 synchronisation on generation field.
5513 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
5514 double unlock.
5515
5516 2011-11-30 Alan Modra <amodra@gmail.com>
5517
5518 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
5519 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
5520 * config/linux/mutex.h: Use atomic rather than sync builtins.
5521 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
5522 * config/linux/omp-lock.h: Comment fix.
5523 * config/linux/arm/mutex.h: Delete.
5524 * config/linux/powerpc/mutex.h: Delete.
5525 * config/linux/ia64/mutex.h: Delete.
5526 * config/linux/mips/mutex.h: Delete.
5527
5528 2011-11-30 Alan Modra <amodra@gmail.com>
5529
5530 PR libgomp/51249
5531 * config/linux/sem.h: Rewrite.
5532 * config/linux/sem.c: Rewrite.
5533
5534 2011-11-28 Richard Henderson <rth@redhat.com>
5535
5536 * libgomp.h (enum memmodel): New.
5537
5538 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
5539
5540 * configure: Regenerate.
5541
5542 2011-10-10 Matthias Klose <doko@ubuntu.com>
5543
5544 * config/posix95: Remove empty directory.
5545
5546 2011-08-26 Jakub Jelinek <jakub@redhat.com>
5547
5548 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
5549
5550 2011-08-19 Jakub Jelinek <jakub@redhat.com>
5551
5552 PR fortran/49792
5553 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
5554 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
5555
5556 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5557
5558 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
5559
5560 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5561
5562 PR libgomp/49965
5563 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
5564
5565 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
5566
5567 * config/linux/proc.h: New.
5568 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
5569 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
5570 (gomp_init_num_threads): Update call to cpuset_popcount.
5571 (get_num_procs): Ditto.
5572 * config/linux/affinity.c (gomp_init_affinity): Call
5573 gomp_cpuset_popcount.
5574
5575 2011-08-02 Jakub Jelinek <jakub@redhat.com>
5576
5577 PR fortran/42041
5578 PR fortran/46752
5579 * omp.h.in (omp_in_final): New prototype.
5580 * omp_lib.f90.in (omp_in_final): New interface.
5581 (omp_integer_kind, omp_logical_kind): Remove
5582 and replace all its uses in the module with 4.
5583 (openmp_version): Change to 201107.
5584 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
5585 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
5586 kind for the parameters.
5587 (omp_in_final): New external.
5588 (openmp_version): Change to 201107.
5589 * task.c (omp_in_final): New function.
5590 (gomp_init_task): Initialize final_task.
5591 (GOMP_task): Remove unused attribute from flags. Handle final
5592 tasks.
5593 (GOMP_taskyield): New function.
5594 (omp_in_final): Return true if if (false) or final (true) task
5595 or descendant of final (true).
5596 * fortran.c (omp_in_final_): New function.
5597 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
5598 (GOMP_3.0): Export GOMP_taskyield.
5599 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
5600 variables.
5601 (parse_unsigned_long_list): New function.
5602 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
5603 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
5604 even if parse_affinity returned false.
5605 * config/linux/affinity.c (gomp_init_affinity): Handle
5606 gomp_cpu_affinity_len == 0.
5607 * libgomp_g.h (GOMP_taskyield): New prototype.
5608 * libgomp.h (struct gomp_task): Add final_task field.
5609 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
5610 * team.c (gomp_team_start): Override new task's nthreads_var icv
5611 if list form OMP_NUM_THREADS has been used and it has value for
5612 the new nesting level.
5613
5614 * testsuite/libgomp.c/atomic-11.c: New test.
5615 * testsuite/libgomp.c/atomic-12.c: New test.
5616 * testsuite/libgomp.c/atomic-13.c: New test.
5617 * testsuite/libgomp.c/atomic-14.c: New test.
5618 * testsuite/libgomp.c/reduction-6.c: New test.
5619 * testsuite/libgomp.c/task-5.c: New test.
5620 * testsuite/libgomp.c++/atomic-2.C: New test.
5621 * testsuite/libgomp.c++/atomic-3.C: New test.
5622 * testsuite/libgomp.c++/atomic-4.C: New test.
5623 * testsuite/libgomp.c++/atomic-5.C: New test.
5624 * testsuite/libgomp.c++/atomic-6.C: New test.
5625 * testsuite/libgomp.c++/atomic-7.C: New test.
5626 * testsuite/libgomp.c++/atomic-8.C: New test.
5627 * testsuite/libgomp.c++/atomic-9.C: New test.
5628 * testsuite/libgomp.c++/task-8.C: New test.
5629 * testsuite/libgomp.c++/reduction-4.C: New test.
5630 * testsuite/libgomp.fortran/allocatable7.f90: New test.
5631 * testsuite/libgomp.fortran/allocatable8.f90: New test.
5632 * testsuite/libgomp.fortran/crayptr3.f90: New test.
5633 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
5634 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
5635 * testsuite/libgomp.fortran/pointer1.f90: New test.
5636 * testsuite/libgomp.fortran/pointer2.f90: New test.
5637 * testsuite/libgomp.fortran/task4.f90: New test.
5638
5639 2011-08-02 Tobias Burnus <burnus@net-b.de>
5640
5641 * libgomp.texi: Update OpenMP spec references to 3.1.
5642 (omp_in_final,OMP_PROC_BIND): New sections.
5643 (OMP_NUM_THREADS): Document that the value can be now a list.
5644 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
5645
5646 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
5647
5648 * config/linux/x86/futex.h: Check __x86_64__ instead of
5649 __LP64__.
5650
5651 2011-07-29 Jakub Jelinek <jakub@redhat.com>
5652
5653 PR middle-end/49897
5654 PR middle-end/49898
5655 * testsuite/libgomp.c/pr49897-1.c: New test.
5656 * testsuite/libgomp.c/pr49897-2.c: New test.
5657 * testsuite/libgomp.c/pr49898-1.c: New test.
5658 * testsuite/libgomp.c/pr49898-2.c: New test.
5659
5660 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
5661
5662 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
5663 for ia32 instead of ilp32.
5664
5665 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
5666 * testsuite/libgomp.c/atomic-6.c: Likewise.
5667
5668 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
5669
5670 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
5671 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
5672
5673 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5674
5675 PR libgomp/45351
5676 * config/osf/sem.h: New file.
5677 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
5678
5679 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5680
5681 PR target/49541
5682 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
5683 ldflags.
5684
5685 2011-07-15 Jakub Jelinek <jakub@redhat.com>
5686
5687 * config/linux/wait.h (do_spin): New inline, largely copied
5688 from do_wait, just don't do futex_wait here, instead return true if
5689 it should be done.
5690 (do_wait): Implement using do_spin.
5691 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
5692 to prototype.
5693 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
5694 __sync_bool_compare_and_swap, pass the oldval to
5695 gomp_mutex_lock_slow.
5696 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
5697 If all mutex contenders are just spinning and not sleeping, don't
5698 change state to 2 unnecessarily. Optimize the loop when state has
5699 already become 2 to use just one atomic operation per loop instead
5700 of two.
5701 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
5702 to prototype.
5703 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
5704 __sync_bool_compare_and_swap, pass the oldval to
5705 gomp_mutex_lock_slow.
5706
5707 2011-06-22 Jakub Jelinek <jakub@redhat.com>
5708
5709 PR libgomp/49490
5710 * iter.c (gomp_iter_static_next): For chunk size 0
5711 only use n ceil/ nthreads size for the first
5712 n % nthreads threads in the team instead of
5713 all threads except for the last few ones which
5714 get less work or none at all.
5715 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
5716 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
5717 chunk argument, set run_sched_modifier to 0 for static
5718 resp. 1 for other kinds. If chunk argument is 0
5719 and not static, set value to 1.
5720
5721 2011-05-19 Jakub Jelinek <jakub@redhat.com>
5722
5723 PR c++/49043
5724 * testsuite/libgomp.c++/pr49043.C: New test.
5725
5726 PR c++/48869
5727 * testsuite/libgomp.c++/pr48869.C: New test.
5728
5729 2011-05-06 Jakub Jelinek <jakub@redhat.com>
5730
5731 PR fortran/48894
5732 * fortran.c: Include limits.h.
5733 (TO_INT): Define.
5734 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
5735 *set.
5736 (omp_set_num_threads_8_, omp_set_schedule_8_,
5737 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
5738 omp_get_team_size_8_): Use TO_INT macro.
5739 * testsuite/libgomp.fortran/pr48894.f90: New test.
5740
5741 2011-04-13 Jakub Jelinek <jakub@redhat.com>
5742
5743 PR middle-end/48591
5744 * testsuite/libgomp.c/pr48591.c: New test.
5745
5746 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5747
5748 PR bootstrap/48135
5749 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
5750 * configure: Regenerate.
5751
5752 2011-02-27 Jakub Jelinek <jakub@redhat.com>
5753
5754 PR fortran/47886
5755 * testsuite/libgomp.fortran/task3.f90: New test.
5756
5757 2011-02-24 Tobias Burnus <burnus@net-b.de>
5758
5759 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
5760
5761 2011-02-23 Jakub Jelinek <jakub@redhat.com>
5762
5763 PR libgomp/47854
5764 * libgomp.texi (omp_get_wtime): Don't say time in the past
5765 must be Unix Epoch.
5766
5767 2011-02-18 Jakub Jelinek <jakub@redhat.com>
5768
5769 PR libgomp/47804
5770 * testsuite/libgomp.fortran/fortran.exp: Check for both
5771 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
5772 but $blddir != "", still append ${blddir}/${lang_library_path}
5773 to ld_library_path.
5774
5775 2011-02-16 Tobias Burnus <burnus@net-b.de>
5776
5777 PR libgomp/47758
5778 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
5779 of libquadmath.a before adding its libpath to ldflags.
5780
5781 2011-02-14 Jakub Jelinek <jakub@redhat.com>
5782
5783 PR libgomp/47731
5784 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
5785 to FUTEX_WAIT futex syscall.
5786 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
5787
5788 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5789
5790 * configure: Regenerate.
5791
5792 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
5793
5794 PR libstdc++/36104
5795 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
5796
5797 2011-01-16 Gerald Pfeifer
5798
5799 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
5800
5801 2010-12-14 Jakub Jelinek <jakub@redhat.com>
5802
5803 PR fortran/46874
5804 * libgomp.fortran/allocatable6.f90: New test.
5805
5806 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5807
5808 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
5809 * configure: Regenerate.
5810
5811 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
5812
5813 PR target/40125
5814 PR lto/46695
5815 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
5816 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
5817 * aclocal.m4: Regenerate.
5818 * configure: Regenerate.
5819 * Makefile.in: Regenerate.
5820 * testsuite/Makefile.in: Regenerate.
5821
5822 2010-12-02 Jakub Jelinek <jakub@redhat.com>
5823
5824 PR fortran/46753
5825 * libgomp.fortran/pr46753.f90: New test.
5826
5827 PR libgomp/43706
5828 * env.c (initialize_env): Default to spin count 300000
5829 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
5830 is specified.
5831
5832 PR libgomp/45240
5833 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
5834 at the end if sync builtins aren't supported.
5835
5836 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5837
5838 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
5839
5840 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5841
5842 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
5843
5844 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
5845
5846 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
5847
5848 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5849 Tobias Burnus <burnus@net-b.de>
5850
5851 PR fortran/32049
5852 * configure.ac:
5853 * configure: Regenerate.
5854
5855 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
5856
5857 * config/linux/futex.h: New.
5858 * config/linux/arm/mutex.h: New.
5859 * configure.tgt (arm*-*-linux*): Add config path.
5860
5861 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5862
5863 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
5864
5865 2010-09-23 Tobias Burnus <burnus@net-b.de>
5866
5867 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
5868 Change Fortran datatype to LOGICAL.
5869 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
5870 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
5871
5872 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5873
5874 * configure: Regenerate.
5875
5876 2010-07-26 Jakub Jelinek <jakub@redhat.com>
5877
5878 * libgomp.texi: Add function keyword to a couple of Fortran
5879 interfaces, use integer instead of int for Fortran.
5880
5881 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
5882
5883 * libgomp.texi: Fix spelling and pasto problems throughout.
5884 Adjust prototypes to match code.
5885
5886 2010-07-24 Tobias Burnus <burnus@net-b.de>
5887
5888 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
5889 silence -fwhole-file warning.
5890
5891 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5892
5893 * configure.tgt (*-*-solaris2.[56]*): Removed.
5894
5895 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5896
5897 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
5898 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
5899 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
5900 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
5901 targetting solaris2*.
5902 * configure: Regenerate.
5903 * config.h.in: Regenerate.
5904
5905 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
5906 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
5907 Add libgomp_version_dep.
5908 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
5909 versioning.
5910 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
5911 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
5912 * Makefile.in: Regenerate.
5913
5914 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
5915 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
5916 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
5917 to common block, protected by
5918 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
5919
5920 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
5921
5922 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
5923
5924 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
5925
5926 PR bootstrap/43170
5927 * configure: Regenerate.
5928
5929 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5930
5931 PR other/43620
5932 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
5933 * configure: Regenerate.
5934 * Makefile.in: Regenerate.
5935 * testsuite/Makefile.in: Regenerate.
5936
5937 2010-04-26 Jakub Jelinek <jakub@redhat.com>
5938
5939 PR c/43893
5940 * testsuite/libgomp.c/pr43893.c: New test.
5941 * testsuite/libgomp.c++/pr43893.C: New test.
5942
5943 2010-04-21 Jakub Jelinek <jakub@redhat.com>
5944
5945 PR middle-end/43570
5946 * testsuite/libgomp.fortran/vla8.f90: New test.
5947
5948 2010-04-20 Jakub Jelinek <jakub@redhat.com>
5949
5950 PR libgomp/43706
5951 * config/linux/affinity.c (gomp_init_affinity): Decrease
5952 gomp_available_cpus if affinity mask confines the process to fewer
5953 CPUs.
5954 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
5955 non-NULL, just return gomp_available_cpus.
5956
5957 PR libgomp/43569
5958 * sections.c (gomp_sections_init): Initialize ws->mode.
5959
5960 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
5961
5962 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
5963 not unused bar variable.
5964 * configure: Regenerate.
5965
5966 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5967
5968 * Makefile.in: Regenerate.
5969 * aclocal.m4: Regenerate.
5970 * testsuite/Makefile.in: Regenerate.
5971
5972 2010-03-22 Jakub Jelinek <jakub@redhat.com>
5973
5974 PR libgomp/42942
5975 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
5976 (initialize_env): Adjust callers.
5977 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
5978 when the argument is 0.
5979
5980 * testsuite/libgomp.c/pr42942.c: New test.
5981
5982 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
5983
5984 PR middle-end/42644
5985 PR middle-end/42130
5986 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
5987 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
5988
5989 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5990
5991 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
5992 * testsuite/libgomp.c++/task-6.C: Likewise.
5993
5994 2010-01-28 Steve Ellcey <sje@cup.hp.com>
5995
5996 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
5997
5998 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
5999
6000 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
6001 * configure: Regenerate.
6002
6003 2010-01-26 Jakub Jelinek <jakub@redhat.com>
6004
6005 PR fortran/42866
6006 * testsuite/libgomp.fortran/allocatable5.f90: New test.
6007
6008 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
6009
6010 * configure.ac: Test for executability of GFORTRAN.
6011 * configure: Regenerate.
6012
6013 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6014
6015 * configure: Regenerate.
6016
6017 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
6018
6019 PR libgomp/42602
6020 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
6021
6022 2010-01-03 Richard Guenther <rguenther@suse.de>
6023
6024 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
6025
6026 2009-12-23 Sebastian Pop <sebpop@gmail.com>
6027
6028 * testsuite/libgomp.graphite/pr4118.c: New.
6029
6030 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
6031
6032 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
6033 for darwin, protect the test with require-effective-target tls_runtime.
6034 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
6035
6036 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
6037
6038 PR target/41605
6039 * testsuite/lib/libgomp.exp: Provide -B options to allow for
6040 link spec %s substitutions for static libraries.
6041
6042 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
6043
6044 PR testsuite/42135
6045 * libgomp.graphite/force-parallel-2.c: Reduce array size.
6046
6047 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6048
6049 * Makefile.in: Regenerate.
6050 * configure: Regenerate.
6051 * testsuite/Makefile.in: Regenerate.
6052
6053 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
6054
6055 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
6056 settings for LC_ALL and LANG.
6057
6058 2009-11-25 Jakub Jelinek <jakub@redhat.com>
6059
6060 PR fortran/42162
6061 * testsuite/libgomp.fortran/pr42162.f90: New test.
6062
6063 2009-11-13 Jakub Jelinek <jakub@redhat.com>
6064
6065 PR middle-end/42029
6066 * testsuite/libgomp.c/pr42029.c: New test.
6067
6068 2009-10-26 Jakub Jelinek <jakub@redhat.com>
6069
6070 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
6071 *s. Accept ld version without text in ()s.
6072 * configure: Regenerated.
6073
6074 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
6075
6076 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
6077
6078 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6079
6080 PR libgomp/41418
6081 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
6082 or a hyphen (happens with fortran language disabled).
6083 * configure: Regenerate.
6084
6085 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6086
6087 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
6088 use sed script portable to Solaris /bin/sed for extracting ld
6089 version.
6090 * configure: Regenerate.
6091
6092 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
6093
6094 * testsuite/libgomp.graphite/bounds.c: New test.
6095
6096 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6097
6098 * Makefile.am (libgomp_la_LINK): New.
6099 * Makefile.in: Regenerate.
6100
6101 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6102
6103 * configure.ac (AC_PREREQ): Bump to 2.64.
6104
6105 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6106
6107 * Makefile.am (install-html, install-pdf): Remove.
6108 * Makefile.in: Regenerate.
6109
6110 * Makefile.in: Regenerate.
6111 * aclocal.m4: Regenerate.
6112 * config.h.in: Regenerate.
6113 * configure: Regenerate.
6114 * testsuite/Makefile.in: Regenerate.
6115
6116 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6117
6118 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
6119 * Makefile.in: Regenerate.
6120
6121 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
6122
6123 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
6124 * Makefile.in: Regenerate.
6125
6126 2009-08-19 Tobias Burnus <burnus@net-b.de>
6127
6128 PR fortran/41102
6129 omp_lib.h.in: Fix -std=f95 errors.
6130
6131 2009-08-14 David Edelsohn <edelsohn@gnu.org>
6132
6133 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
6134 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
6135 * testsuite/libgomp.graphite/graphite.exp: New.
6136
6137 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
6138
6139 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
6140 only build.
6141
6142 2009-08-04 David Daney <ddaney@caviumnetworks.com>
6143
6144 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
6145 needed memory barrier semantics.
6146 * config/linux/mips/mutex.h: New file.
6147
6148 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6149
6150 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
6151
6152 2009-07-16 Joseph Myers <joseph@codesourcery.com>
6153
6154 * configure: Regenerate.
6155
6156 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
6157
6158 PR testsuite/40699
6159 PR testsuite/40707
6160 PR testsuite/40709
6161 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
6162 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
6163 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
6164
6165 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
6166
6167 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
6168 options when choosing a multilib.
6169
6170 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
6171
6172 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
6173 ld_library_path. Use add_path. Add just find_libgcc_s to
6174 ld_library_path, not every libgcc multilib directory.
6175 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
6176 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
6177 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
6178 Use add_path.
6179 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
6180
6181 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
6182
6183 * Makefile.am (LTLDFLAGS): Define.
6184 (LINK): Define.
6185 * Makefile.in: Regenerate.
6186
6187 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
6188
6189 PR fortran/39718
6190 * testsuite/libgomp.fortran/fortran.exp: Don't link with
6191 libgfortranbegin, check existence of libgfortran.a instead of
6192 libgfortranbegin.a.
6193
6194 2009-05-20 Jakub Jelinek <jakub@redhat.com>
6195
6196 PR libgomp/40174
6197 * team.c (gomp_thread_start): Destroy thr->release semaphore.
6198 (gomp_free_pool_helper): Likewise.
6199
6200 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
6201 Jakub Jelinek <jakub@redhat.com>
6202
6203 PR fortran/35423
6204 * testsuite/libgomp.fortran/workshare2.f90: New test.
6205
6206 2009-04-09 Nick Clifton <nickc@redhat.com>
6207
6208 * iter.c: Change copyright header to refer to version 3 of the
6209 GNU General Public License with version 3.1 of the GCC Runtime
6210 Library Exception and to point readers at the COPYING3 and
6211 COPYING3.RUNTIME files and the FSF's license web page.
6212 * alloc.c: Likewise.
6213 * barrier.c: Likewise.
6214 * config/bsd/proc.c: Likewise.
6215 * config/linux/affinity.c: Likewise.
6216 * config/linux/alpha/futex.h: Likewise.
6217 * config/linux/bar.c: Likewise.
6218 * config/linux/bar.h: Likewise.
6219 * config/linux/ia64/futex.h: Likewise.
6220 * config/linux/ia64/mutex.h: Likewise.
6221 * config/linux/lock.c: Likewise.
6222 * config/linux/mips/futex.h: Likewise.
6223 * config/linux/mutex.c: Likewise.
6224 * config/linux/mutex.h: Likewise.
6225 * config/linux/powerpc/futex.h: Likewise.
6226 * config/linux/proc.c: Likewise.
6227 * config/linux/ptrlock.c: Likewise.
6228 * config/linux/ptrlock.h: Likewise.
6229 * config/linux/s390/futex.h: Likewise.
6230 * config/linux/sem.c: Likewise.
6231 * config/linux/sem.h: Likewise.
6232 * config/linux/sparc/futex.h: Likewise.
6233 * config/linux/wait.h: Likewise.
6234 * config/linux/x86/futex.h: Likewise.
6235 * config/mingw32/proc.c: Likewise.
6236 * config/mingw32/time.c: Likewise.
6237 * config/posix/affinity.c: Likewise.
6238 * config/posix/bar.c: Likewise.
6239 * config/posix/bar.h: Likewise.
6240 * config/posix/lock.c: Likewise.
6241 * config/posix/mutex.h: Likewise.
6242 * config/posix/proc.c: Likewise.
6243 * config/posix/ptrlock.h: Likewise.
6244 * config/posix/sem.c: Likewise.
6245 * config/posix/sem.h: Likewise.
6246 * config/posix/time.c: Likewise.
6247 * config/posix95/lock.c: Likewise.
6248 * critical.c: Likewise.
6249 * env.c: Likewise.
6250 * error.c: Likewise.
6251 * fortran.c: Likewise.
6252 * iter_ull.c: Likewise.
6253 * libgomp.h: Likewise.
6254 * libgomp_f.h.in: Likewise.
6255 * libgomp_g.h: Likewise.
6256 * loop.c: Likewise.
6257 * loop_ull.c: Likewise.
6258 * omp.h.in: Likewise.
6259 * omp_lib.f90.in: Likewise.
6260 * omp_lib.h.in: Likewise.
6261 * ordered.c: Likewise.
6262 * parallel.c: Likewise.
6263 * sections.c: Likewise.
6264 * single.c: Likewise.
6265 * task.c: Likewise.
6266 * team.c: Likewise.
6267 * work.c: Likewise.
6268
6269 2009-04-09 Jakub Jelinek <jakub@redhat.com>
6270
6271 * testsuite/config/default.exp: Change copyright header to refer to
6272 version 3 of the GNU General Public License and to point readers
6273 at the COPYING3 file and the FSF's license web page.
6274
6275 2009-04-08 Jakub Jelinek <jakub@redhat.com>
6276
6277 PR middle-end/39573
6278 * libgomp.c++/pr39573.C: New test.
6279
6280 2009-04-01 Jakub Jelinek <jakub@redhat.com>
6281
6282 PR other/39591
6283 * testsuite/libgomp.c/pr39591-1.c: New test.
6284 * testsuite/libgomp.c/pr39591-2.c: New test.
6285 * testsuite/libgomp.c/pr39591-3.c: New test.
6286
6287 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
6288
6289 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
6290 * testsuite/libgomp.c/atomic-6.c: Ditto.
6291
6292 2009-03-23 Jakub Jelinek <jakub@redhat.com>
6293
6294 PR c/39495
6295 * testsuite/libgomp.c/loop-12.c: New test.
6296 * testsuite/libgomp.c/loop-11.c: New test.
6297 * testsuite/libgomp.c++/loop-11.C: New test.
6298 * testsuite/libgomp.c++/loop-12.C: New test.
6299 * testsuite/libgomp.c++/for-8.C: New test.
6300
6301 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6302
6303 * configure: Regenerate.
6304
6305 2009-02-11 Jakub Jelinek <jakub@redhat.com>
6306
6307 PR middle-end/39154
6308 * testsuite/libgomp.c/pr39154.c: New test.
6309
6310 2009-01-30 Ian Lance Taylor <iant@google.com>
6311
6312 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
6313 libgomp_ld_is_gold. Get gold version number.
6314 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
6315 * configure: Rebuild.
6316
6317 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
6318
6319 * testsuite/lib/libgomp.exp: Add -B option for targets that
6320 use libgfortran.a%s in their specs.
6321
6322 2009-01-07 Jakub Jelinek <jakub@redhat.com>
6323
6324 PR libgomp/38086
6325 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
6326 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
6327 HAVE_AS_SYMVER_DIRECTIVE is not defined.
6328 * configure: Regenerated.
6329 * config.h.in: Likewise.
6330
6331 2008-12-28 Jakub Jelinek <jakub@redhat.com>
6332
6333 PR c++/38650
6334 * testsuite/libgomp.c/pr38650.c: New test.
6335 * testsuite/libgomp.c++/pr38650.C: New test.
6336
6337 2008-12-27 Jakub Jelinek <jakub@redhat.com>
6338
6339 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
6340
6341 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
6342
6343 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
6344
6345 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6346
6347 * configure: Regenerate.
6348
6349 2008-12-08 Jakub Jelinek <jakub@redhat.com>
6350
6351 PR middle-end/36802
6352 * testsuite/libgomp.c/pr36802-1.c: New test.
6353 * testsuite/libgomp.c/pr36802-2.c: New test.
6354 * testsuite/libgomp.c/pr36802-3.c: New test.
6355
6356 2008-12-01 Janis Johnson <janis187@us.ibm.com>
6357
6358 PR libgomp/38270
6359 * config/linux/powerpc/mutex.h: New.
6360
6361 2008-12-01 Jakub Jelinek <jakub@redhat.com>
6362
6363 PR c++/38257
6364 * testsuite/libgomp.c++/for-7.C: New test.
6365
6366 PR c++/38348
6367 * testsuite/libgomp.c++/for-6.C: New test.
6368
6369 2008-11-26 Janis Johnson <janis187@us.ibm.com>
6370
6371 PR testsuite/28870
6372 * testsuite/lib/libgomp.exp: Include new timeout library files.
6373 (libgomp_target_compile): Set timeout value from new proc.
6374
6375 2008-11-13 Steve Ellcey <sje@cup.hp.com>
6376
6377 PR libgomp/37938
6378 * config/linux/ia64/mutex.h: New.
6379
6380 2008-11-04 Tobias Burnus <burnus@net-b.de>
6381
6382 PR libgomp/37935
6383 * libgomp.texi (Runtime library routines, environment variables):
6384 Update for OpenMP version 3.0.
6385
6386 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
6387 Steve Ellcey <sje@cup.hp.com>
6388
6389 * configure: Regenerate for new libtool.
6390 * Makefile.in: Ditto.
6391 * testsuite/Makefile.in: Ditto.
6392
6393 2008-09-19 Jakub Jelinek <jakub@redhat.com>
6394 Andreas Tobler <a.tobler@schweiz.org>
6395
6396 * config/bsd/proc.c: New file.
6397 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
6398 * configure.ac: Check for header <sys/sysctl.h>
6399 * configure: Regenerate.
6400 * config.h.in: Likewise.
6401
6402 2008-09-05 Janis Johnson <janis187@us.ibm.com>
6403
6404 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
6405
6406 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
6407
6408 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
6409 * Makefile.in: Regenerated.
6410 * testsuite/Makefile.in: Regenerated.
6411
6412 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
6413
6414 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
6415 depend on blddir if blddir exists.
6416 (libgomp_target_compile): Likewise.
6417 * testsuite/libgomp.c++/c++.exp: Likewise.
6418 * testsuite/libgomp.fortran/fortran.exp: Likewise.
6419
6420 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6421
6422 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
6423 Do not list GPL as Invariant Section.
6424
6425 2008-07-28 Ilie Garbacea <ilie@mips.com>
6426 Chao-ying Fu <fu@mips.com>
6427
6428 * configure.tgt: Enable futex for MIPS.
6429 * config/linux/mips/futex.h: New file.
6430
6431 2008-07-16 Jakub Jelinek <jakub@redhat.com>
6432
6433 * team.c (gomp_team_end): Free team immediately if it has
6434 just one thread.
6435
6436 2008-07-08 David Edelsohn <edelsohn@gnu.org>
6437
6438 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
6439 * testsuite/libgomp.fortran/fortran.exp: Same.
6440 * testsuite/libgomp.c/c.exp: Same.
6441 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
6442 directory to library path first.
6443
6444 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
6445
6446 * env.c (parse_stacksize): Add cast to avoid warning.
6447 (parse_spincount): Likewise.
6448
6449 2008-06-27 Jakub Jelinek <jakub@redhat.com>
6450
6451 * testsuite/libgomp.c/loop-10.c: New test.
6452 * libgomp.c/loop-3.c (main): Add lastprivate clause.
6453 * libgomp.c++/loop-6.C (main): Likewise.
6454
6455 PR debug/36617
6456 * testsuite/libgomp.c/debug-1.c: New test.
6457
6458 2008-06-19 Jakub Jelinek <jakub@redhat.com>
6459
6460 * testsuite/libgomp.c/nqueens-1.c: New test.
6461
6462 PR c++/36523
6463 * testsuite/libgomp.c++/task-7.C: New function.
6464
6465 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6466
6467 * configure: Regenerate.
6468
6469 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6470
6471 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
6472 mutex when HAVE_SYNC_BUILTINS isn't defined.
6473
6474 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6475
6476 * libgomp.texi (omp_test_lock): Fix typo.
6477
6478 2008-06-12 Tobias Burnus <burnus@net-b.de>
6479
6480 * omp_lib.f90.in: Add "implicit none".
6481
6482 2008-06-12 Jakub Jelinek <jakub@redhat.com>
6483
6484 PR middle-end/36506
6485 * testsuite/libgomp.c/reduction-5.c: New test.
6486
6487 2008-06-11 Jakub Jelinek <jakub@redhat.com>
6488
6489 * libgomp.h (struct gomp_task): Add in_tied_task field.
6490 * task.c (gomp_init_task): Initialize it.
6491 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
6492 unconditionally. Don't call gomp_team_barrier_wake if
6493 current task is implicit or if(0) from implicit and number of
6494 running tasks is equal to nthreads - 1.
6495
6496 PR libgomp/36471
6497 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
6498 omp_get_team_size_8): Fix pastos.
6499
6500 PR libgomp/36469
6501 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
6502 * configure: Regenerated.
6503 * config.h.in: Regenerated.
6504 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
6505 defined.
6506
6507 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
6508
6509 PR bootstrap/36452
6510 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
6511 (GOMP_loop_ull_dynamic_start): Likewise.
6512 (GOMP_loop_ull_guided_start): Likewise.
6513 (GOMP_loop_ull_ordered_static_start): Likewise.
6514 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
6515 (GOMP_loop_ull_ordered_guided_start): Likewise.
6516
6517 2008-06-06 Jakub Jelinek <jakub@redhat.com>
6518 Richard Henderson <rth@redhat.com>
6519 Ulrich Drepper <drepper@redhat.com>
6520 Jakob Blomer <jakob.blomer@ira.uka.de>
6521
6522 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
6523 Substitute also OMP_*LOCK_25*.
6524 * configure: Regenerated.
6525 * config.h.in: Regenerated.
6526 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
6527 ptrlock.c and task.c.
6528 * Makefile.in: Regenerated.
6529 * testsuite/Makefile.in: Regenerated.
6530 * task.c: New file.
6531 * loop_ull.c: New file.
6532 * iter_ull.c: New file.
6533 * libgomp.h: Include ptrlock.h.
6534 (enum gomp_task_kind): New type.
6535 (struct gomp_team): Add task_lock, task_queue, task_count,
6536 task_running_count, single_count fields. Add
6537 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
6538 Remove work_share_lock, generation_mask,
6539 oldest_live_gen, num_live_gen and init_work_shares fields, add
6540 work work_share_list_alloc, work_share_list_free and work_share_chunk
6541 fields. Change work_shares from pointer to pointers into an array.
6542 Change ordered_release field into gomp_sem_t ** from flexible array
6543 member. Add implicit_task and initial_work_shares fields.
6544 Move close to the end of the struct.
6545 (struct gomp_team_state): Add single_count, last_work_share,
6546 active_level and level fields, remove work_share_generation.
6547 (gomp_barrier_handle_tasks): New prototype.
6548 (gomp_finish_task): New inline function.
6549 (struct gomp_work_share): Move chunk_size, end, incr into
6550 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
6551 next_ll fields. Reshuffle fields. Add next_alloc,
6552 next_ws, next_free and inline_ordered_team_ids fields, change
6553 ordered_team_ids into pointer from flexible array member.
6554 Add mode field. Put lock and next into a different cache line
6555 from most of the write-once fields.
6556 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
6557 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
6558 gomp_iter_ull_guided_next): New prototypes.
6559 (gomp_new_icv): New prototype.
6560 (struct gomp_thread): Add thread_pool and task fields.
6561 (struct gomp_thread_pool): New type.
6562 (gomp_new_team): New prototype.
6563 (gomp_team_start): Change type of last argument.
6564 (gomp_new_work_share): Removed.
6565 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
6566 (gomp_work_share_init_done): New static inline.
6567 (gomp_throttled_spin_count_var, gomp_available_cpus,
6568 gomp_managed_threads): New extern decls.
6569 (gomp_init_task): New prototype.
6570 (gomp_spin_count_var): New extern var decl.
6571 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
6572 or no alias support, or if not PIC.
6573 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
6574 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
6575 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
6576 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
6577 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
6578 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
6579 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
6580 gomp_test_nest_lock_25): New prototypes.
6581 (omp_lock_symver, strong_alias): Define.
6582 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
6583 decls.
6584 (gomp_end_task): New.
6585 (struct gomp_task_icv, gomp_global_icv): New.
6586 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
6587 (struct gomp_task): New.
6588 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
6589 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
6590 (gomp_icv): New.
6591 (gomp_schedule_type): Reorder enum to match
6592 omp_sched_t.
6593 * team.c (struct gomp_thread_start_data): Add thread_pool and task
6594 fields.
6595 (gomp_thread_start): Add gomp_team_barrier_wait call.
6596 For non-nested case remove clearing of docked thread thr fields.
6597 Use pool fields instead of global gomp_* variables. Use
6598 gomp_barrier_wait_last when needed. Initialize ts.active_level.
6599 Create tasks for each member thread.
6600 (free_team): Only destroy team barrier, task_lock here and free it.
6601 (gomp_free_thread): Free last_team if non-NULL.
6602 (gomp_team_end): Call gomp_team_barrier_wait instead of
6603 gomp_barrier_wait. For nested case call one extra
6604 gomp_barrier_wait. Move here some destruction from free_team.
6605 Call free_team on pool->last_team if any, rather than freeing
6606 current team. Destroy work_share_list_free_lock ifndef
6607 HAVE_SYNC_BUILTINS.
6608 (gomp_new_icv): New function.
6609 (gomp_threads, gomp_threads_size, gomp_threads_used,
6610 gomp_threads_dock): Removed.
6611 (gomp_thread_destructor): New variable.
6612 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
6613 functions.
6614 (gomp_team_start): Create new pool if current thread doesn't have
6615 one. Use pool fields instead of global gomp_* variables.
6616 Initialize thread_pool field for new threads. Clear single_count.
6617 Change last argument from ws to team, don't create
6618 new team, set ts.work_share to &team->work_shares[0] and clear
6619 ts.last_work_share. Don't clear ts.work_share_generation.
6620 If number of threads changed, adjust atomically gomp_managed_threads.
6621 Use gomp_init_task instead of gomp_new_task,
6622 set thr->task to the corresponding implicit_task array entry.
6623 Create tasks for each member thread. Initialize ts.level.
6624 (initialize_team): Call pthread_key_create on
6625 gomp_thread_destructor.
6626 (team_destructor): New function.
6627 (new_team): Removed.
6628 (gomp_new_team): New function.
6629 (free_team): Free gomp_work_share blocks chained through next_alloc,
6630 instead of freeing work_shares and destroying work_share_lock.
6631 (gomp_team_end): Call gomp_fini_work_share. If number of threads
6632 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
6633 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
6634 of gomp_barrier_wait.
6635 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
6636 instead of gomp_barrier_wait. Call gomp_work_share_init_done
6637 if gomp_work_share_start returned true. Don't unlock ws->lock.
6638 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
6639 of gomp_barrier_wait.
6640 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
6641 gomp_work_share_init_done if gomp_work_share_start returned true.
6642 Don't unlock ws->lock.
6643 * work.c: Include stddef.h.
6644 (free_work_share): Use work_share_list_free_lock instead
6645 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
6646 Call gomp_fini_work_share and then either free ws if orphaned, or
6647 put it into work_share_list_free list of the current team.
6648 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
6649 functions.
6650 (gomp_work_share_start, gomp_work_share_end,
6651 gomp_work_share_end_nowait): Rewritten.
6652 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
6653 (openmp_version): Set to 200805.
6654 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
6655 omp_sched_guided, omp_sched_auto): New parameters.
6656 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
6657 omp_set_max_active_levels, omp_get_max_active_levels,
6658 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
6659 omp_get_active_level): New interfaces.
6660 * omp_lib.h.in (openmp_version): Set to 200805.
6661 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
6662 omp_sched_guided, omp_sched_auto): New parameters.
6663 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
6664 omp_set_max_active_levels, omp_get_max_active_levels,
6665 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
6666 omp_get_active_level): New externals.
6667 * loop.c: Include limits.h.
6668 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
6669 GFS_AUTO.
6670 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
6671 Likewise. Use gomp_icv.
6672 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
6673 ts.static_trip here.
6674 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
6675 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
6676 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
6677 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
6678 don't unlock ws->lock, otherwise lock it.
6679 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
6680 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
6681 (gomp_parallel_loop_start): Call gomp_new_team instead of
6682 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
6683 Adjust gomp_team_start caller. Pass 0 as second argument to
6684 gomp_resolve_num_threads.
6685 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
6686 If adding ws->chunk_size nthreads + 1 times after end won't
6687 overflow, set ws->mode to 1.
6688 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
6689 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
6690 GOMP_loop_ull_ordered_static_start,
6691 GOMP_loop_ull_ordered_dynamic_start,
6692 GOMP_loop_ull_ordered_guided_start,
6693 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
6694 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
6695 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
6696 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
6697 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
6698 prototypes.
6699 * libgomp.map: Export lock routines also @@OMP_2.0.
6700 (GOMP_loop_ordered_dynamic_first,
6701 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
6702 GOMP_loop_ordered_static_first): Remove.
6703 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
6704 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
6705 GOMP_loop_ull_ordered_dynamic_next,
6706 GOMP_loop_ull_ordered_dynamic_start,
6707 GOMP_loop_ull_ordered_guided_next,
6708 GOMP_loop_ull_ordered_guided_start,
6709 GOMP_loop_ull_ordered_runtime_next,
6710 GOMP_loop_ull_ordered_runtime_start,
6711 GOMP_loop_ull_ordered_static_next,
6712 GOMP_loop_ull_ordered_static_start,
6713 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
6714 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
6715 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
6716 (omp_set_schedule, omp_get_schedule,
6717 omp_get_thread_limit, omp_set_max_active_levels,
6718 omp_get_max_active_levels, omp_get_level,
6719 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
6720 omp_set_schedule_, omp_set_schedule_8_,
6721 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
6722 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
6723 omp_get_max_active_levels_, omp_get_level_,
6724 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
6725 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
6726 New exports @@OMP_3.0.
6727 * omp.h.in (omp_sched_t): New type.
6728 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
6729 omp_set_max_active_levels, omp_get_max_active_levels,
6730 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
6731 omp_get_active_level): New prototypes.
6732 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
6733 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
6734 gomp_thread_limit_var, gomp_remaining_threads_count,
6735 gomp_remaining_threads_lock): New variables.
6736 (parse_spincount): New function.
6737 (initialize_env): Call gomp_init_num_threads unconditionally.
6738 Initialize gomp_available_cpus. Call parse_spincount,
6739 initialize gomp_{,throttled_}spin_count_var
6740 depending on presence and value of OMP_WAIT_POLICY and
6741 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
6742 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
6743 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
6744 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
6745 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
6746 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
6747 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
6748 (gomp_global_icv): New.
6749 (parse_schedule): Use it. Parse "auto".
6750 (omp_set_num_threads): Use gomp_icv.
6751 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
6752 Likewise.
6753 (omp_get_max_threads): Move from parallel.c.
6754 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
6755 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
6756 add ialias.
6757 (parse_stacksize, parse_wait_policy): New functions.
6758 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
6759 both wrappers for compatibility and new locks.
6760 (omp_set_schedule, omp_get_schedule,
6761 omp_get_thread_limit, omp_set_max_active_levels,
6762 omp_get_max_active_levels, omp_get_level,
6763 omp_get_ancestor_thread_num, omp_get_team_size,
6764 omp_get_active_level): New ialias_redirect.
6765 (omp_set_schedule_, omp_set_schedule_8_,
6766 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
6767 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
6768 omp_get_max_active_levels_, omp_get_level_,
6769 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
6770 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
6771 New functions.
6772 * parallel.c: Include limits.h.
6773 (gomp_resolve_num_threads): Add count argument. Rewritten.
6774 (GOMP_parallel_start): Call gomp_new_team and pass that as last
6775 argument to gomp_team_start. Pass 0 as second argument to
6776 gomp_resolve_num_threads.
6777 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
6778 if gomp_thread_limit_var != ULONG_MAX.
6779 (omp_in_parallel): Implement using ts.active_level.
6780 (omp_get_max_threads): Move to env.c.
6781 (omp_get_level, omp_get_ancestor_thread_num,
6782 omp_get_team_size, omp_get_active_level): New functions,
6783 add ialias.
6784 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
6785 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
6786 gomp_iter_dynamic_next instead of the _locked variant and don't take
6787 lock around it, otherwise acquire it before calling
6788 gomp_iter_dynamic_next_locked.
6789 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
6790 gomp_iter_dynamic_next instead of the _locked variant and don't take
6791 lock around it.
6792 (GOMP_parallel_sections_start): Call gomp_new_team instead of
6793 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
6794 Adjust gomp_team_start caller. Pass count as second argument to
6795 gomp_resolve_num_threads, don't adjust num_threads after the call.
6796 Use gomp_icv.
6797 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
6798 ws->chunk_size by incr.
6799 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
6800 code.
6801 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
6802 types.
6803 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
6804 (omp_check_defines): Check even the compat defines.
6805 * config/linux/ptrlock.c: New file.
6806 * config/linux/ptrlock.h: New file.
6807 * config/linux/wait.h: New file.
6808 * config/posix/ptrlock.c: New file.
6809 * config/posix/ptrlock.h: New file.
6810 * config/linux/bar.h (gomp_team_barrier_wait,
6811 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
6812 (gomp_team_barrier_set_task_pending,
6813 gomp_team_barrier_clear_task_pending,
6814 gomp_team_barrier_set_waiting_for_tasks,
6815 gomp_team_barrier_waiting_for_tasks,
6816 gomp_team_barrier_done): New inlines.
6817 (gomp_barrier_t): Rewritten.
6818 (gomp_barrier_state_t): New typedef.
6819 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
6820 gomp_barrier_wait_start): Rewritten.
6821 (gomp_barrier_wait_end): Change second argument to
6822 gomp_barrier_state_t.
6823 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
6824 inlines.
6825 * config/linux/bar.c: Include wait.h instead of libgomp.h and
6826 futex.h.
6827 (gomp_barrier_wait_end): Rewritten.
6828 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
6829 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
6830 * config/posix/bar.h (gomp_barrier_t): Add generation field.
6831 (gomp_barrier_state_t): New typedef.
6832 (gomp_team_barrier_wait,
6833 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
6834 (gomp_barrier_wait_start): Or all but low 2 bits from generation
6835 into the return value. Return gomp_barrier_state_t.
6836 (gomp_team_barrier_set_task_pending,
6837 gomp_team_barrier_clear_task_pending,
6838 gomp_team_barrier_set_waiting_for_tasks,
6839 gomp_team_barrier_waiting_for_tasks,
6840 gomp_team_barrier_done): New inlines.
6841 (gomp_barrier_wait_end): Change second argument to
6842 gomp_barrier_state_t.
6843 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
6844 inlines.
6845 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
6846 (gomp_barrier_wait_end): Change second argument to
6847 gomp_barrier_state_t.
6848 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
6849 gomp_team_barrier_wake): New functions.
6850 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
6851 futex.h.
6852 (gomp_futex_wake, gomp_futex_wait): New variables.
6853 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
6854 * config/linux/lock.c: Rewrite to make locks task owned,
6855 for backwards compatibility provide the old entrypoints
6856 if symbol versioning. Include wait.h instead of libgomp.h and
6857 futex.h.
6858 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
6859 * config/posix95/lock.c: Rewrite to make locks task owned,
6860 for backwards compatibility provide the old entrypoints
6861 if symbol versioning.
6862 * config/posix/lock.c: Rewrite to make locks task owned,
6863 for backwards compatibility provide the old entrypoints
6864 if symbol versioning.
6865 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
6866 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
6867 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
6868 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
6869 (sys_futex0): Return error code.
6870 (futex_wake, futex_wait): If ENOSYS was returned, clear
6871 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
6872 (cpu_relax, atomic_write_barrier): New static inlines.
6873 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
6874 (futex_wake, futex_wait): If ENOSYS was returned, clear
6875 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
6876 (cpu_relax, atomic_write_barrier): New static inlines.
6877 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
6878 (sys_futex0): Return error code.
6879 (futex_wake, futex_wait): If ENOSYS was returned, clear
6880 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
6881 (cpu_relax, atomic_write_barrier): New static inlines.
6882 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
6883 (sys_futex0): Return error code.
6884 (futex_wake, futex_wait): If ENOSYS was returned, clear
6885 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
6886 (cpu_relax, atomic_write_barrier): New static inlines.
6887 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
6888 (sys_futex0): Return error code.
6889 (futex_wake, futex_wait): If ENOSYS was returned, clear
6890 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
6891 (cpu_relax, atomic_write_barrier): New static inlines.
6892 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
6893 (sys_futex0): Return error code.
6894 (futex_wake, futex_wait): If ENOSYS was returned, clear
6895 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
6896 (cpu_relax, atomic_write_barrier): New static inlines.
6897 * config/linux/sem.c: Include wait.h instead of libgomp.h and
6898 futex.h.
6899 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
6900 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
6901 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
6902 types.
6903 (omp_nest_lock_t): Change owner into void *, add lock field.
6904 * config/posix95/omp-lock.h: Include semaphore.h.
6905 (omp_lock_25_t, omp_nest_lock_25_t): New types.
6906 (omp_lock_t): Use sem_t instead of mutex if semaphores
6907 aren't broken.
6908 (omp_nest_lock_t): Likewise. Change owner to void *.
6909 * config/posix/omp-lock.h: Include semaphore.h.
6910 (omp_lock_25_t, omp_nest_lock_25_t): New types.
6911 (omp_lock_t): Use sem_t instead of mutex if semaphores
6912 aren't broken.
6913 (omp_nest_lock_t): Likewise. Add owner field.
6914
6915 2008-06-06 Jakub Jelinek <jakub@redhat.com>
6916
6917 * testsuite/libgomp.c/collapse-1.c: New test.
6918 * testsuite/libgomp.c/collapse-2.c: New test.
6919 * testsuite/libgomp.c/collapse-3.c: New test.
6920 * testsuite/libgomp.c/icv-1.c: New test.
6921 * testsuite/libgomp.c/icv-2.c: New test.
6922 * testsuite/libgomp.c/lib-2.c: New test.
6923 * testsuite/libgomp.c/lock-1.c: New test.
6924 * testsuite/libgomp.c/lock-2.c: New test.
6925 * testsuite/libgomp.c/lock-3.c: New test.
6926 * testsuite/libgomp.c/loop-4.c: New test.
6927 * testsuite/libgomp.c/loop-5.c: New test.
6928 * testsuite/libgomp.c/loop-6.c: New test.
6929 * testsuite/libgomp.c/loop-7.c: New test.
6930 * testsuite/libgomp.c/loop-8.c: New test.
6931 * testsuite/libgomp.c/loop-9.c: New test.
6932 * testsuite/libgomp.c/nested-3.c: New test.
6933 * testsuite/libgomp.c/nestedfn-6.c: New test.
6934 * testsuite/libgomp.c/sort-1.c: New test.
6935 * testsuite/libgomp.c/task-1.c: New test.
6936 * testsuite/libgomp.c/task-2.c: New test.
6937 * testsuite/libgomp.c/task-3.c: New test.
6938 * testsuite/libgomp.c/task-4.c: New test.
6939 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
6940 to C++ testsuite default compiler options.
6941 * testsuite/libgomp.c++/collapse-1.C: New test.
6942 * testsuite/libgomp.c++/collapse-2.C: New test.
6943 * testsuite/libgomp.c++/ctor-10.C: New test.
6944 * testsuite/libgomp.c++/for-1.C: New test.
6945 * testsuite/libgomp.c++/for-2.C: New test.
6946 * testsuite/libgomp.c++/for-3.C: New test.
6947 * testsuite/libgomp.c++/for-4.C: New test.
6948 * testsuite/libgomp.c++/for-5.C: New test.
6949 * testsuite/libgomp.c++/loop-8.C: New test.
6950 * testsuite/libgomp.c++/loop-9.C: New test.
6951 * testsuite/libgomp.c++/loop-10.C: New test.
6952 * testsuite/libgomp.c++/task-1.C: New test.
6953 * testsuite/libgomp.c++/task-2.C: New test.
6954 * testsuite/libgomp.c++/task-3.C: New test.
6955 * testsuite/libgomp.c++/task-4.C: New test.
6956 * testsuite/libgomp.c++/task-5.C: New test.
6957 * testsuite/libgomp.c++/task-6.C: New test.
6958 * testsuite/libgomp.fortran/allocatable1.f90: New test.
6959 * testsuite/libgomp.fortran/allocatable2.f90: New test.
6960 * testsuite/libgomp.fortran/allocatable3.f90: New test.
6961 * testsuite/libgomp.fortran/allocatable4.f90: New test.
6962 * testsuite/libgomp.fortran/collapse1.f90: New test.
6963 * testsuite/libgomp.fortran/collapse2.f90: New test.
6964 * testsuite/libgomp.fortran/collapse3.f90: New test.
6965 * testsuite/libgomp.fortran/collapse4.f90: New test.
6966 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
6967 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
6968 * testsuite/libgomp.fortran/lib4.f90: New test.
6969 * testsuite/libgomp.fortran/lock-1.f90: New test.
6970 * testsuite/libgomp.fortran/lock-2.f90: New test.
6971 * testsuite/libgomp.fortran/nested1.f90: New test.
6972 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
6973 * testsuite/libgomp.fortran/strassen.f90: New test.
6974 * testsuite/libgomp.fortran/tabs1.f90: New test.
6975 * testsuite/libgomp.fortran/tabs2.f: New test.
6976 * testsuite/libgomp.fortran/task1.f90: New test.
6977 * testsuite/libgomp.fortran/task2.f90: New test.
6978 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
6979 * testsuite/libgomp.fortran/vla5.f90: Likewise.
6980 * testsuite/libgomp.c/pr26943-2.c: Likewise.
6981 * testsuite/libgomp.c/pr26943-3.c: Likewise.
6982 * testsuite/libgomp.c/pr26943-4.c: Likewise.
6983
6984 2008-05-23 Jakub Jelinek <jakub@redhat.com>
6985
6986 PR c++/36308
6987 * testsuite/libgomp.c++/ctor-11.C: New test.
6988 * testsuite/libgomp.c++/ctor-12.C: New test.
6989
6990 2008-05-15 Janis Johnson <janis187@us.ibm.com>
6991
6992 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
6993
6994 2008-05-07 Jakub Jelinek <jakub@redhat.com>
6995
6996 PR middle-end/36106
6997 * testsuite/libgomp.c/atomic-5.c: New test.
6998 * testsuite/libgomp.c/atomic-6.c: New test.
6999 * testsuite/libgomp.c/autopar-1.c: New test.
7000
7001 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7002
7003 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
7004 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
7005 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
7006 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
7007 * configure: Regenerate.
7008 * Makefile.in, testsuite/Makefile.in: Likewise.
7009
7010 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
7011
7012 PR bootstrap/35457
7013 * aclocal.m4: Regenerate.
7014 * configure: Regenerate.
7015
7016 2008-03-18 Jakub Jelinek <jakub@redhat.com>
7017
7018 PR middle-end/35611
7019 * testsuite/libgomp.c/atomic-4.c: New test.
7020
7021 PR libgomp/35625
7022 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
7023 (gomp_iter_guided_next): Likewise.
7024 * testsuite/libgomp.c/pr35625.c: New test.
7025
7026 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7027
7028 * aclocal.m4: Regenerate.
7029 * configure: Likewise.
7030 * Makefile.in: Likewise.
7031 * testsuite/Makefile.in: Likewise.
7032
7033 2008-03-13 Jakub Jelinek <jakub@redhat.com>
7034
7035 PR middle-end/35185
7036 * testsuite/libgomp.c++/pr35185.C: New test.
7037
7038 2008-03-12 Jakub Jelinek <jakub@redhat.com>
7039
7040 PR middle-end/35549
7041 * testsuite/libgomp.c/pr35549.c: New test.
7042
7043 2008-03-06 Jakub Jelinek <jakub@redhat.com>
7044
7045 * testsuite/libgomp.c/atomic-3.c: New test.
7046
7047 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7048
7049 PR fortran/33197
7050 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
7051 .F08 file suffixes.
7052
7053 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
7054
7055 PR libgomp/33131
7056 * configure.ac: Add ACX_HEADER_STRING.
7057 * env.c: Include strings.h.
7058 * aclocal.m4: Regenerate.
7059 * config.h.in: Regenerate.
7060 * configure: Regenerate.
7061 * Makefile.in: Regenerate.
7062 * testsuite/Makefile.in: Regenerate.
7063
7064 2008-02-15 Jakub Jelinek <jakub@redhat.com>
7065
7066 PR middle-end/35196
7067 * testsuite/libgomp.c/pr35196.c: New test.
7068
7069 PR middle-end/35130
7070 * testsuite/libgomp.fortran/pr35130.f90: New test.
7071 * testsuite/libgomp.c/pr35130.c: New test.
7072
7073 2008-01-25 Jakub Jelinek <jakub@redhat.com>
7074
7075 PR middle-end/33880
7076 * testsuite/libgomp.c/pr33880.c: New test.
7077 * testsuite/libgomp.fortran/pr33880.f90: New test.
7078
7079 2008-01-24 David Edelsohn <edelsohn@gnu.org>
7080
7081 * configure: Regenerate.
7082
7083 2008-01-08 Jakub Jelinek <jakub@redhat.com>
7084
7085 * configure.ac: Move futex checking into ../config/futex.m4.
7086 * configure: Rebuilt.
7087 * aclocal.m4: Rebuilt.
7088 * Makefile.in: Rebuilt.
7089
7090 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
7091 2007-10-15 ../config/tls.m4 change.
7092
7093 2007-12-19 Jakub Jelinek <jakub@redhat.com>
7094
7095 PR c++/34513
7096 * testsuite/libgomp.c/pr34513.c: New test.
7097 * testsuite/libgomp.c++/pr34513.C: New test.
7098
7099 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
7100
7101 PR target/32765
7102 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
7103
7104 2007-12-04 Jakub Jelinek <jakub@redhat.com>
7105
7106 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
7107
7108 2007-12-03 Jakub Jelinek <jakub@redhat.com>
7109
7110 * testsuite/libgomp.c/private-1.c: New test.
7111
7112 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
7113 Paolo Bonzini <bonzini@gnu.org>
7114
7115 * Makefile.am: Use space as vpath separator. Use 'vpath %'
7116 instead of 'VPATH ='.
7117 * Makefile.in: Regenerate.
7118
7119 2007-11-23 Matthias Klose <doko@ubuntu.com>
7120
7121 * configure.ac: Adjust makeinfo version check.
7122 * configure: Regenerate.
7123
7124 2007-11-10 Jakub Jelinek <jakub@redhat.com>
7125
7126 PR fortran/34020
7127 * testsuite/libgomp.fortran/pr34020.f90: New test.
7128
7129 2007-11-06 Jakub Jelinek <jakub@redhat.com>
7130
7131 PR c++/33894
7132 * testsuite/libgomp.c++/atomic-1.C: New test.
7133
7134 2007-10-25 Jakub Jelinek <jakub@redhat.com>
7135
7136 PR libgomp/33275
7137 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
7138 Make x and y integers rather than (implicit) reals. Add private (j)
7139 clause to the last omp parallel.
7140
7141 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
7142
7143 * configure: Regenerate following changes to ../config/tls.m4.
7144
7145 2007-09-28 Jakub Jelinek <jakub@redhat.com>
7146
7147 * testsuite/libgomp.fortran/stack.f90: New test.
7148
7149 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
7150
7151 * config/mingw32/proc.c: New file.
7152
7153 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
7154
7155 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
7156 (main): Use __get_cpuid to get i386 target fetaures.
7157 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
7158 (main): Use __get_cpuid to get x86_64 target fetaures.
7159
7160 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
7161
7162 PR target/32765
7163 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
7164 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
7165
7166 2007-07-12 Jakub Jelinek <jakub@redhat.com>
7167
7168 PR fortran/32550
7169 * testsuite/libgomp.fortran/pr32550.f90: New test.
7170 * testsuite/libgomp.fortran/crayptr2.f90: New test.
7171
7172 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
7173
7174 * aclocal.m4: Regenerated.
7175
7176 2007-07-05 Tobias Burnus <burnus@net-b.de>
7177
7178 PR fortran/32359
7179 * testsuite/libgomp.fortran/pr32359.f90: New.
7180
7181 2007-07-02 Jakub Jelinek <jakub@redhat.com>
7182
7183 PR libgomp/32468
7184 * sections.c (GOMP_parallel_sections_start): Only decrease
7185 number of threads to COUNT if dyn_var is true.
7186 * testsuite/libgomp.c/pr32468.c: New test.
7187
7188 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7189
7190 PR libgomp/26308
7191 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
7192
7193 2007-06-21 Jakub Jelinek <jakub@redhat.com>
7194
7195 PR middle-end/32362
7196 * testsuite/libgomp.c/pr32362-1.c: New test.
7197 * testsuite/libgomp.c/pr32362-2.c: New test.
7198 * testsuite/libgomp.c/pr32362-3.c: New test.
7199
7200 2007-06-07 Jakub Jelinek <jakub@redhat.com>
7201
7202 * team.c (gomp_team_start): Fix setting up thread_attr
7203 stack size.
7204
7205 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
7206
7207 * configure: Regenerate.
7208
7209 2007-05-23 Steve Ellcey <sje@cup.hp.com>
7210
7211 * Makefile.in: Regenerate.
7212 * configure: Regenerate.
7213 * aclocal.m4: Regenerate.
7214 * testsuite/Makefile.in: Regenerate.
7215
7216 2007-05-04 Jakub Jelinek <jakub@redhat.com>
7217
7218 * config/linux/proc.c: New file.
7219
7220 PR libgomp/28482
7221 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
7222
7223 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
7224
7225 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
7226
7227 2007-04-16 Matthias Klose <doko@debian.org>
7228
7229 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
7230 flags if not building with -m64.
7231 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
7232 flag for i?86-*-* targets, if current target matches -m64.
7233
7234 2007-04-14 Steve Ellcey <sje@cup.hp.com>
7235
7236 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
7237 * Makefile.in: Regenerate.
7238
7239 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7240
7241 PR testsuite/31369
7242 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
7243 ld_library_path.
7244 * testsuite/libgomp.fortran/fortran.exp: Likewise.
7245
7246 2007-04-04 Jakub Jelinek <jakub@redhat.com>
7247
7248 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
7249 decls.
7250 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
7251 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
7252 (parse_affinity): New function.
7253 (initialize_env): Call it and gomp_init_affinity.
7254 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
7255 create new pthread_attr_t and call gomp_init_thread_affinity
7256 on it for each thread before passing the attribute to pthread_create.
7257 * config/linux/affinity.c: New file.
7258 * config/posix/affinity.c: New file.
7259 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
7260 * configure: Rebuilt.
7261 * config.h.in: Rebuilt.
7262 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
7263 * Makefile.in: Rebuilt.
7264
7265 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
7266
7267 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
7268 *-*-darwin*.
7269 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
7270 and use it if found.
7271
7272 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
7273
7274 * testsuite/config/default.exp: New file.
7275 * testsuite/lib/libgomp.exp: New file.
7276 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
7277 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
7278 load_lib *, load_gcc_lib *): Move to libgomp.exp.
7279 (libgomp_load): Remove.
7280 * testsuite/lib/libgomp.exp (libgomp_init): Compute
7281 always_ld_library_path, not ld_library_path. Set additional_flags
7282 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
7283 (target_compile): Do not call libgomp_init. Append lang_library_path
7284 and lang_link_flags to options.
7285 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
7286 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
7287 here.
7288 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
7289 always_ld_library_path. Set LD_LIBRARY_PATH here.
7290 * testsuite/libgomp.fortran/fortran.exp: Ditto.
7291 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
7292 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
7293 CX8 flag.
7294 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
7295 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
7296 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
7297 * testsuite/libgomp.c/pr29947-1.c: Ditto.
7298 * testsuite/libgomp.c/atomic-10.c: Ditto.
7299
7300 2007-03-21 Jakub Jelinek <jakub@redhat.com>
7301
7302 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
7303 dg-final cleanup-modules line.
7304 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
7305 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
7306 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
7307 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
7308 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
7309 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
7310 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
7311
7312 2007-03-18 Andreas Schwab <schwab@suse.de>
7313
7314 * acinclude.m4: Adjust regular expression for ld version
7315 extraction.
7316 * configure: Regenerate.
7317
7318 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
7319
7320 * Makefile.am: Add install-pdf target as copied from
7321 automake v1.10 rules.
7322 * Makefile.in: Regenerate
7323
7324 2007-02-07 Jakub Jelinek <jakub@redhat.com>
7325
7326 PR libgomp/28486
7327 * configure: Regenerate.
7328
7329 PR c++/30703
7330 * testsuite/libgomp.c++/pr30703.C: New test.
7331
7332 2007-02-02 Jakub Jelinek <jakub@redhat.com>
7333
7334 Revert:
7335 2006-07-05 Eric Christopher <echristo@apple.com>
7336 * configure.ac: Depend addition of -pthread on host OS.
7337 * configure: Regenerate.
7338
7339 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7340
7341 * libgomp.texi: Fix spacing after abbreviations.
7342
7343 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
7344
7345 PR libgomp/30546
7346 * configure.ac: Add check for makeinfo
7347 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
7348 if an appropiate version of makeinfo is found.
7349 * aclocal.m4: Regenerated.
7350 * configure: Regenerated.
7351 * Makefile.in: Regenerated.
7352 * testsuite/Makefile.in: Regenerated.
7353
7354 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
7355
7356 PR libgomp/30540
7357 * libgomp.texi: More about implementation-dependent settings.
7358
7359 2007-01-26 Tobias Burnus <burnus@net-b.de>
7360
7361 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
7362
7363 2007-01-24 Jakub Jelinek <jakub@redhat.com>
7364
7365 PR middle-end/30494
7366 * testsuite/libgomp.c/pr30494.c: New test.
7367
7368 2007-01-15 Tom Tromey <tromey@redhat.com>
7369
7370 * configure: Rebuilt.
7371 * configure.ac: Fixed comment.
7372
7373 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
7374
7375 * libgomp.texi: Document implementation specific default values of
7376 environment variables.
7377
7378 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
7379
7380 PR libgomp/28209
7381 * libgomp.texi: New file.
7382 * configure.ac: Add --enable-generated-files-in-srcdir option.
7383 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
7384 files to srcdir.
7385 * Makefile.in: Regenerated.
7386 * config.h.in: Regenerated.
7387 * testsuite/Makefile.in: Regenerated.
7388 * NOTES: Removed.
7389
7390 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
7391
7392 PR libgomp/29949
7393 * env.c (omp_set_num_threads): Set illegal thread count to 1.
7394
7395 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
7396
7397 * configure: Regenerate.
7398
7399 2006-12-04 Jakub Jelinek <jakub@redhat.com>
7400
7401 PR libgomp/29947
7402 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
7403 start if there shouldn't be any loop iterations.
7404 (gomp_loop_ordered_static_start): Remove start == end test.
7405 * testsuite/libgomp.c/pr29947-1.c: New test.
7406 * testsuite/libgomp.c/pr29947-2.c: New test.
7407
7408 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
7409
7410 * configure.tgt: Force initial-exec TLS model on Linux only.
7411
7412 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
7413
7414 * configure: Regenerated.
7415
7416 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
7417
7418 * env.c (parse_schedule): Reject out of range values.
7419 (parse_unsigned_long): Reject out of range, negative or zero values.
7420
7421 2006-10-29 Jakub Jelinek <jakub@redhat.com>
7422
7423 PR fortran/29629
7424 * testsuite/libgomp.fortran/pr29629.f90: New test.
7425
7426 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
7427
7428 PR libgomp/29494
7429 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
7430 * config/posix95: New directory.
7431 * config/posix95/omp-lock.h: New file.
7432 * config/posix95/lock.c: Likewise.
7433
7434 2006-10-14 Geoffrey Keating <geoffk@apple.com>
7435
7436 * aclocal.m4: Regenerate.
7437 * configure: Regenerate.
7438
7439 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
7440
7441 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
7442 '<' to '<='.
7443
7444 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
7445
7446 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
7447 test.
7448 * configure: Regenerate.
7449 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
7450
7451 2006-09-26 Jakub Jelinek <jakub@redhat.com>
7452
7453 PR middle-end/25261
7454 PR middle-end/28790
7455 * testsuite/libgomp.c/nestedfn-4.c: New test.
7456 * testsuite/libgomp.c/nestedfn-5.c: New test.
7457 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
7458
7459 PR fortran/29097
7460 * testsuite/libgomp.fortran/condinc1.f: New test.
7461 * testsuite/libgomp.fortran/condinc2.f: New test.
7462 * testsuite/libgomp.fortran/condinc3.f90: New test.
7463 * testsuite/libgomp.fortran/condinc4.f90: New test.
7464 * testsuite/libgomp.fortran/condinc1.inc: New file.
7465
7466 2006-09-18 Tom Tromey <tromey@redhat.com>
7467
7468 * configure: Rebuilt.
7469
7470 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
7471
7472 PR c/28768
7473 PR preprocessor/14634
7474 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
7475 to AC_DEFINE.
7476 * configure: Regenerate.
7477
7478 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
7479
7480 * testsuite/libgomp.fortran/reduction3.f90: Change
7481 -2147483648 to -huge(i)-1 to avoid overflow.
7482 * testsuite/libgomp.fortran/reduction4.f90: Change
7483 Z'ffffffff' to not(0) to avoid overflow.
7484
7485 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
7486
7487 PR libgomp/25938
7488 * Makefile.am (libsubincludedir): New.
7489 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
7490 * Makefile.in: Regenerate.
7491
7492 2006-08-17 Jakub Jelinek <jakub@redhat.com>
7493
7494 PR libgomp/28725
7495 * env.c: Include ctype.h.
7496 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
7497 leading and/or trailing whitespace and compare strings case
7498 insensitively.
7499
7500 2006-07-16 Jakub Jelinek <jakub@redhat.com>
7501
7502 PR fortran/28390
7503 * testsuite/libgomp.fortran/pr28390.f: New test.
7504
7505 2006-07-05 Eric Christopher <echristo@apple.com>
7506
7507 * configure.ac: Depend addition of -pthread on host OS.
7508 * configure: Regenerate.
7509
7510 2006-06-21 Jakub Jelinek <jakub@redhat.com>
7511
7512 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
7513 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
7514 defined.
7515
7516 2006-06-20 Jakub Jelinek <jakub@redhat.com>
7517
7518 PR libgomp/26175
7519 PR libgomp/26477
7520 * configure.ac: If neither --enable-linux-futex nor
7521 --disable-linux-futex is passed, determine the default by checking
7522 for compiling and/or running against NPTL. With --enable-linux-futex,
7523 check if SYS_gettid and SYS_futex are defined.
7524 * configure: Rebuilt.
7525
7526 2006-06-14 Richard Henderson <rth@redhat.com>
7527
7528 PR libgomp/28008
7529 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
7530 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
7531
7532 2006-06-09 Richard Henderson <rth@redhat.com>
7533
7534 * env.c (gomp_nthreads_var): Change to unsigned long.
7535 (gomp_run_sched_chunk): Likewise.
7536 (parse_unsigned_long): Rename from parse_num_threads and generalize.
7537 (initialize_env): Initialize gomp_thread_attr.
7538 * libgomp.h (gomp_nthreads_var): Update decl.
7539 (gomp_run_sched_chunk): Likewise.
7540 (gomp_thread_attr): Declare.
7541 * team.c (gomp_thread_attr): Export.
7542 (initialize_team): Don't initialize it.
7543
7544 2006-06-09 Jakub Jelinek <jakub@redhat.com>
7545
7546 PR fortran/27916
7547 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
7548 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
7549
7550 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
7551
7552 * config/mingw32/time.c: New file.
7553 * configure.tgt: Use it.
7554
7555 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
7556
7557 * Makefile.am: Add install-html target. Add install-html to .PHONY
7558 * Makefile.in: Regenerate.
7559
7560 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7561
7562 PR libgomp/27612
7563 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
7564 * testsuite/libgomp.c/critical-1.c: Likewise.
7565 * testsuite/libgomp.c/loop-1.c: Likewise.
7566 * testsuite/libgomp.c/loop-2.c: Likewise.
7567 * testsuite/libgomp.c/single-1.c: Likewise.
7568 * testsuite/libgomp.c/ordered-1.c: Likewise.
7569 * testsuite/libgomp.c/ordered-2.c: Likewise.
7570
7571 2006-05-15 Jakub Jelinek <jakub@redhat.com>
7572
7573 PR middle-end/27416
7574 * libgomp.fortran/pr27416-1.f90: New test.
7575
7576 2006-05-03 Jakub Jelinek <jakub@redhat.com>
7577
7578 PR fortran/27395
7579 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
7580 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
7581
7582 2006-05-02 Jakub Jelinek <jakub@redhat.com>
7583
7584 PR c++/26943
7585 * testsuite/libgomp.c/pr26943-1.c: New test.
7586 * testsuite/libgomp.c/pr26943-2.c: New test.
7587 * testsuite/libgomp.c/pr26943-3.c: New test.
7588 * testsuite/libgomp.c/pr26943-4.c: New test.
7589 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
7590 * testsuite/libgomp.c++/pr26943.C: New test.
7591
7592 2006-05-02 Jakub Jelinek <jakub@redhat.com>
7593
7594 PR middle-end/27337
7595 * testsuite/libgomp.c++/pr27337.C: New test.
7596
7597 2006-04-26 Jakub Jelinek <jakub@redhat.com>
7598
7599 PR c/26171
7600 * testsuite/libgomp.c/pr26171.c: New test.
7601
7602 2006-04-25 Richard Henderson <rth@redhat.com>
7603
7604 PR libgomp/25865
7605 * configure.ac: Use GCC_CHECK_TLS.
7606 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
7607 * Makefile.in, aclocal.m4, configure: Regenerate.
7608
7609 2006-04-10 Matthias Klose <doko@debian.org>
7610
7611 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
7612 directory names containing underscores.
7613
7614 2006-03-21 Jakub Jelinek <jakub@redhat.com>
7615
7616 PR c++/26691
7617 * testsuite/libgomp.c++/pr26691.C: New test.
7618
7619 2006-03-13 Jakub Jelinek <jakub@redhat.com>
7620
7621 * testsuite/libgomp.fortran/retval2.f90: New test.
7622
7623 2006-03-09 Diego Novillo <dnovillo@redhat.com>
7624
7625 * testsuite/libgomp.c++: New directory.
7626
7627 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
7628
7629 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
7630 * config/posix/sem.c: Implement the above.
7631
7632 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
7633
7634 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
7635 define HAVE_BROKEN_POSIX_SEMAPHORES.
7636 * configure: Rebuilt.
7637 * config.h.in: Rebuilt.
7638
7639 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
7640
7641 PR bootstrap/26161
7642 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
7643 for the other pthread check.
7644 * configure: Regenerate.
7645 * config.h.in: Regenerate.
7646
7647 2006-02-15 Jakub Jelinek <jakub@redhat.com>
7648
7649 PR libgomp/25938
7650 PR libgomp/25984
7651 * Makefile.am (fincludedir): New variable.
7652 (nodist_include_HEADERS): Remove Fortran files.
7653 (nodist_finclude_HEADERS): New variable.
7654 * Makefile.in: Regenerated.
7655
7656 2006-02-13 Jakub Jelinek <jakub@redhat.com>
7657
7658 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
7659 Remove tests for returning assumed character length arrays.
7660
7661 2006-02-12 Roger Sayle <roger@eyesopen.com>
7662 John David Anglin <dave@hiauly1.hia.nrc.ca>
7663
7664 PR libgomp/25936
7665 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
7666
7667 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7668
7669 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
7670
7671 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
7672
7673 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
7674 part of LD_LIBRARY_PATH manually.
7675
7676 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
7677
7678 PR libgomp/25852
7679 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
7680 libgomp_init.
7681
7682 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
7683
7684 PR libgomp/25884
7685 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
7686 * configure.ac (PERL): Don't set.
7687 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
7688 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
7689 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
7690 * omp.h.in: Wrap the new configure substitutions with @ characters.
7691 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
7692 * aclocal.m4, configure, Makefile.in: Regenerate.
7693 * mkomp_h.pl: Delete.
7694
7695 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
7696
7697 PR libgomp/25259
7698 * configure.ac: Use GCC_HEADER_STDINT.
7699 * libgomp.h: Include gstdint.h.
7700 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
7701 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
7702
7703 2006-01-24 Richard Henderson <rth@redhat.com>
7704
7705 PR libgomp/25942
7706 * configure.ac: Add AM_MAINTAINER_MODE.
7707 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
7708
7709 2006-01-24 Diego Novillo <dnovillo@redhat.com>
7710
7711 * Makefile.in: Regenerate.
7712 * testsuite/Makefile.in: Regenerate.
7713 * aclocal.m4: Regenerate.
7714
7715 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
7716
7717 * config/posix/proc.c: Conditional include of sys/loadavg.h for
7718 Solaris.
7719 * configure.ac: Add check for loadavg.h.
7720 (link_gomp): Adjust comment.
7721 * configure: Regenerate.
7722 * config.h.in: Regenerate.
7723
7724 2006-01-21 Steve Ellcey <sje@cup.hp.com>
7725
7726 PR libgomp/25877
7727 * configure.ac: Remove check for alloca.h.
7728 * configure: Regenerate.
7729 * config.h.in: Regenerate.
7730 * libgomp.h: define gomp_alloca to be __builtin_alloca.
7731 * team.c: Remove use of alloca.h.
7732 Call gomp_alloca instead of alloca.
7733
7734 2006-01-20 Steve Ellcey <sje@cup.hp.com>
7735
7736 PR libgomp/25877
7737 * team.c: Add include of alloca.h.
7738 * configure.ac: Add check for alloca.h.
7739 * configure: Regenerate.
7740 * config.h.in: Regenerate.
7741
7742 2006-01-17 Jakub Jelinek <jakub@redhat.com>
7743
7744 PR fortran/25219
7745 * testsuite/libgomp.fortran/pr25219.f90: New test.
7746
7747 2005-12-05 Uros Bizjak <uros@kss-loka.si>
7748
7749 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
7750 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
7751 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
7752 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
7753 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
7754 testsuite/libgomp.fortran/threadprivate1.f90,
7755 testsuite/libgomp.fortran/threadprivate2.f90,
7756 testsuite/libgomp.fortran/threadprivate3.f90,
7757 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
7758 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
7759 testsuite/libgomp.fortran/omp_parse3.f90: Change required
7760 effective-target to TLS runtime.
7761
7762 * testsuite/libgomp.fortran/pr25162.f: Require
7763 effective-target TLS runtime.
7764
7765 2005-12-01 Jakub Jelinek <jakub@redhat.com>
7766
7767 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
7768 * testsuite/libgomp.c/nestedfn-3.c: New test.
7769
7770 2005-11-30 Jakub Jelinek <jakub@redhat.com>
7771
7772 PR fortran/25162
7773 * testsuite/libgomp.fortran/pr25162.f: New test.
7774
7775 2005-11-28 Jakub Jelinek <jakub@redhat.com>
7776
7777 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
7778 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
7779
7780 2005-11-25 Jakub Jelinek <jakub@redhat.com>
7781
7782 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
7783 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
7784 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
7785 single.c, team.c, work.c, config/linux/alpha/futex.h,
7786 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
7787 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
7788 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
7789 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
7790 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
7791 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
7792 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
7793 FSF address.
7794
7795 2005-11-18 Jakub Jelinek <jakub@redhat.com>
7796
7797 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
7798 to nodist_noinst_HEADERS.
7799 * Makefile.in: Rebuilt.
7800
7801 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
7802 add integer count field.
7803 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
7804 omp_nest_lock_t type change.
7805 (omp_init_nest_lock): Likewise. Initialize count to 0.
7806 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
7807 Increment count.
7808 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
7809 Decrement count.
7810 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
7811 Increment count if successful and return the new nesting level.
7812 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
7813 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
7814 * testsuite/libgomp.c/lib-1.c: New test.
7815 * testsuite/libgomp.fortran/lib1.f90: New test.
7816 * testsuite/libgomp.fortran/lib2.f: New test.
7817 * testsuite/libgomp.fortran/lib3.f: New test.
7818
7819 2005-11-17 Richard Henderson <rth@redhat.com>
7820
7821 PR 24845
7822 * Makefile.am (nodist_toolexeclib_HEADERS): New.
7823 * configure.ac (link_gomp): New. Substitute it.
7824 (AC_CONFIG_FILES): Add libgomp.spec.
7825 * libgomp.spec.in: New file.
7826 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
7827 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
7828
7829 2005-11-18 Jakub Jelinek <jakub@redhat.com>
7830
7831 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
7832 reduction(-:var) behaving the same as reduction(+:var).
7833 * testsuite/libgomp.c/reduction-4.c: New test.
7834
7835 2005-11-15 Uros Bizjak <uros@kss-loka.si>
7836
7837 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
7838 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
7839 testsuite/libgomp.c/copyin-3.c,
7840 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
7841 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
7842 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
7843 testsuite/libgomp.c++/pr24455.C,
7844 testsuite/libgomp.fortran/threadprivate1.f90,
7845 testsuite/libgomp.fortran/threadprivate2.f90,
7846 testsuite/libgomp.fortran/threadprivate3.f90,
7847 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
7848 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
7849 testsuite/libgomp.fortran/omp_parse3.f90: Require
7850 effective-target TLS.
7851
7852 2005-11-14 Diego Novillo <dnovillo@redhat.com>
7853
7854 * HEADER: Remove.
7855
7856 2005-11-13 Jakub Jelinek <jakub@redhat.com>
7857
7858 PR libgomp/24797
7859 * team.c (initialize_team): Pass NULL rather than free as
7860 pthread_key_create destructor. Initialize thread specific data
7861 pointer in initial thread to a static local variable rather than
7862 malloced memory.
7863
7864 2005-11-11 Uros Bizjak <uros@kss-loka.si>
7865
7866 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
7867 its location to ld_library_path.
7868
7869 2005-11-10 Diego Novillo <dnovillo@redhat.com>
7870
7871 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
7872
7873 2005-11-10 Diego Novillo <dnovillo@redhat.com>
7874
7875 * testsuite/libgomp.c: Rename from libgomp.dg.
7876
7877 2005-11-09 Diego Novillo <dnovillo@redhat.com>
7878
7879 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
7880 threadprivate variable 'i'.
7881
7882 2005-11-09 Jakub Jelinek <jakub@redhat.com>
7883
7884 * config/linux/s390/futex.h: New file.
7885 * configure.tgt: Use it.
7886
7887 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
7888 before the parallel.
7889
7890 2005-11-08 Jakub Jelinek <jakub@redhat.com>
7891
7892 PR c++/24734
7893 * testsuite/libgomp.c++/master-1.C: New test.
7894
7895 2005-11-07 Jakub Jelinek <jakub@redhat.com>
7896
7897 * testsuite/libgomp.dg/copyin-3.c: New test.
7898
7899 2005-11-07 Jakub Jelinek <jakub@redhat.com>
7900
7901 * testsuite/libgomp.fortran/retval1.f90: New test.
7902 * testsuite/libgomp.fortran/vla7.f90: New test.
7903
7904 2005-11-06 Jakub Jelinek <jakub@redhat.com>
7905
7906 * testsuite/libgomp.fortran/vla2.f90: New test.
7907 * testsuite/libgomp.fortran/vla3.f90: New test.
7908 * testsuite/libgomp.fortran/vla4.f90: New test.
7909 * testsuite/libgomp.fortran/vla5.f90: New test.
7910 * testsuite/libgomp.fortran/vla6.f90: New test.
7911
7912 2005-11-01 Jakub Jelinek <jakub@redhat.com>
7913
7914 * config/linux/sparc/futex.h: New file.
7915 * configure.tgt: Use it.
7916 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
7917
7918 * critical.c: Include stdlib.h.
7919 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
7920 ignoring return value.
7921 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
7922 LIBGOMP_CHECK_SYNC_BUILTINS check.
7923 * configure: Rebuilt.
7924
7925 2005-10-31 Jakub Jelinek <jakub@redhat.com>
7926
7927 * testsuite/libgomp.fortran/vla1.f90: New test.
7928
7929 2005-10-31 Richard Henderson <rth@redhat.com>
7930
7931 * testsuite/libgomp.fortran/character2.f90: Fix race condition
7932 setting 's' in different threads.
7933
7934 2005-10-31 Jakub Jelinek <jakub@redhat.com>
7935
7936 * libgomp.h (attribute_hidden, ialias): Define.
7937 * config/posix/proc.c (omp_get_num_procs): Add ialias.
7938 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
7939 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
7940 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
7941 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
7942 omp_test_lock, omp_test_nest_lock): Likewise.
7943 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
7944 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
7945 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
7946 omp_test_lock, omp_test_nest_lock): Likewise.
7947 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
7948 omp_get_dynamic, omp_get_nested): Likewise.
7949 * parallel.c (omp_get_num_threads, omp_get_max_threads,
7950 omp_get_thread_num, omp_in_parallel): Likewise.
7951 * fortran.c (ialias_redirect): Define.
7952 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
7953 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
7954 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
7955 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
7956 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
7957 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
7958 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
7959 omp_get_wtime): Add ialias_redirect.
7960
7961 2005-10-30 Jakub Jelinek <jakub@redhat.com>
7962
7963 * fortran.c: Include stdlib.h.
7964
7965 2005-10-29 Jakub Jelinek <jakub@redhat.com>
7966
7967 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
7968 * Makefile.in: Regenerated.
7969
7970 2005-10-28 Jakub Jelinek <jakub@redhat.com>
7971
7972 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
7973 * libgomp_f.h.in (omp_check_defines): New function.
7974 * env.c: Include libgomp_f.h.
7975 (initialize_env): Call omp_check_defines.
7976
7977 * testsuite/libgomp.dg/copyin-2.c: New test.
7978 * testsuite/libgomp.c++/copyin-2.C: New test.
7979 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
7980
7981 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
7982 * testsuite/libgomp.fortran/sharing2.f90: New test.
7983
7984 * testsuite/libgomp.dg/copyin-1.c: New test.
7985 * testsuite/libgomp.c++/copyin-1.C: New test.
7986
7987 2005-10-26 Jakub Jelinek <jakub@redhat.com>
7988
7989 * testsuite/libgomp.fortran/crayptr1.f90: New test.
7990
7991 * testsuite/libgomp.fortran/workshare1.f90: New test.
7992
7993 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
7994 only test.
7995 * libgomp.fortran/sharing1.f90: New test.
7996
7997 2005-10-24 Jakub Jelinek <jakub@redhat.com>
7998
7999 PR c++/24502
8000 * testsuite/libgomp.c++/loop-7.C: New test.
8001
8002 * testsuite/libgomp.dg/nestedfn-2.c: New test.
8003
8004 * testsuite/libgomp.dg/nestedfn-1.c: New test.
8005 * testsuite/libgomp.fortran/reduction6.f90: New test.
8006 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
8007
8008 2005-10-23 Richard Henderson <rth@redhat.com>
8009
8010 * testsuite/libgomp.c++/ctor-1.C: New.
8011 * testsuite/libgomp.c++/ctor-2.C: New.
8012 * testsuite/libgomp.c++/ctor-3.C: New.
8013 * testsuite/libgomp.c++/ctor-4.C: New.
8014 * testsuite/libgomp.c++/ctor-5.C: New.
8015 * testsuite/libgomp.c++/ctor-6.C: New.
8016 * testsuite/libgomp.c++/ctor-7.C: New.
8017 * testsuite/libgomp.c++/ctor-8.C: New.
8018 * testsuite/libgomp.c++/ctor-9.C: New.
8019
8020 2005-10-21 Diego Novillo <dnovillo@redhat.com>
8021
8022 PR 24455
8023 * testsuite/libgomp.c++/pr24455-1.C: New test.
8024 * testsuite/libgomp.c++/pr24455.C: New test.
8025 * testsuite/libgomp.dg/pr24455-1.c: New test.
8026 * testsuite/libgomp.dg/pr24455.c: New test.
8027
8028 2005-10-20 Richard Henderson <rth@redhat.com>
8029
8030 * testsuite/libgomp.c++/loop-6.C: New.
8031 * testsuite/libgomp.dg/loop-3.c: New.
8032
8033 2005-10-20 Jakub Jelinek <jakub@redhat.com>
8034
8035 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
8036 explicitly private.
8037 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
8038 explicitly shared.
8039
8040 2005-10-19 Diego Novillo <dnovillo@redhat.com>
8041
8042 * testsuite/libgomp.fortran/jacobi.f: New test.
8043
8044 2005-10-19 Richard Henderson <rth@redhat.com>
8045
8046 * configure.tgt (i?86-linux): Default to with_arch instead of
8047 CFLAGS. Add -mtune to match target_cpu.
8048 (x86_64-linux): Tune to i686.
8049
8050 * fortran.c (omp_test_nest_lock_): Fix typo.
8051
8052 2005-10-19 Jakub Jelinek <jakub@redhat.com>
8053
8054 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
8055 gomp_ordered_sync): Do nothing if team->nthreads == 1.
8056 * testsuite/libgomp.dg/ordered-3.c: New test.
8057
8058 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
8059 Remove volatile keyword.
8060
8061 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
8062 in COMMON block to avoid warnings on 64-bit targets.
8063
8064 2005-10-18 Diego Novillo <dnovillo@redhat.com>
8065
8066 * testsuite/libgomp.dg/shared-3.c: New test.
8067
8068 2005-10-18 Jakub Jelinek <jakub@redhat.com>
8069
8070 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
8071 * testsuite/libgomp.fortran/reduction5.f90: New test.
8072
8073 2005-10-18 Jakub Jelinek <jakub@redhat.com>
8074
8075 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
8076 dg-options.
8077 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
8078 flush loop now that __sync_synchronize has proper memory barrier.
8079 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
8080 Add -ffixed-form to dg-options.
8081
8082 2005-10-17 Diego Novillo <dnovillo@redhat.com>
8083
8084 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
8085 from subdirectories.
8086 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
8087 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
8088 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
8089 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
8090 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
8091 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
8092 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
8093 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
8094 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
8095 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
8096 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
8097 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
8098 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
8099 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
8100 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
8101 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
8102 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
8103 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
8104 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
8105 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
8106 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
8107 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
8108 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
8109 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
8110 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
8111
8112 2005-10-17 Jakub Jelinek <jakub@redhat.com>
8113
8114 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
8115 lang_library_path exists. Use find instead of glob to gather tests.
8116 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
8117
8118 2005-10-17 Diego Novillo <dnovillo@redhat.com>
8119
8120 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
8121 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
8122 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
8123 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
8124 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
8125 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
8126 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
8127 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
8128 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
8129 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
8130 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
8131 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
8132 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
8133
8134 2005-10-15 Jakub Jelinek <jakub@redhat.com>
8135
8136 * testsuite/libgomp.dg/vla-1.c: New test.
8137
8138 * testsuite/libgomp.fortran/reference2.f90: New test.
8139
8140 * testsuite/libgomp.fortran/character2.f90: Remove explicit
8141 declaration of omp_get_thread_num.
8142 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
8143 use omp_lib.
8144
8145 * testsuite/libgomp.fortran/reduction1.f90: New test.
8146 * testsuite/libgomp.fortran/reduction2.f90: New test.
8147 * testsuite/libgomp.fortran/reduction3.f90: New test.
8148 * testsuite/libgomp.fortran/reduction4.f90: New test.
8149
8150 2005-10-13 Richard Henderson <rth@redhat.com>
8151
8152 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
8153 * Makefile.in: Regenerate.
8154 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
8155 * libgomp.h: Include bar.h.
8156 (struct gomp_barrier): Remove.
8157 (struct gomp_team): Add barrier. Replace master_barrier with
8158 master_release. Replace threads with ordered_release.
8159 (struct gomp_thread): Replace barrier with release.
8160 * ordered.c (gomp_ordered_first): Update for ordered_release change.
8161 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
8162 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
8163 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
8164 (GOMP_single_copy_end): Likewise.
8165 * team.c (gomp_threads_dock): New.
8166 (gomp_barrier_init, gomp_barrier_destroy): Remove.
8167 (gomp_thread_start): Use gomp_barrier_wait.
8168 (new_team, free_team): Update for gomp_team changes.
8169 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
8170 (gomp_team_end): Use gomp_barrier_wait.
8171 (initialize_team): Update for gomp_thread changes.
8172 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
8173 (gomp_work_share_end_nowait): Use atomic ops when available.
8174 * config/linux/bar.c, config/linux/bar.h: New files.
8175 * config/posix/bar.c, config/posix/bar.h: New files.
8176
8177 2005-10-13 Jakub Jelinek <jakub@redhat.com>
8178
8179 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
8180 * testsuite/libgomp.dg/single-2.c: New test.
8181
8182 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
8183 lang_link_flags): Unset, so that they aren't inherited from previously
8184 sourced *.exp.
8185
8186 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
8187
8188 2005-10-12 Richard Henderson <rth@redhat.com>
8189
8190 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
8191 (libgomp_init): Use lang_test_file, lang_library_path, and
8192 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
8193
8194 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
8195 (lang_test_file, lang_link_flags): New.
8196 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
8197
8198 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
8199 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
8200 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
8201 testsuite/libgomp.c++/parallel-1.C,
8202 testsuite/libgomp.c++/reduction-1.C,
8203 testsuite/libgomp.c++/reduction-2.C,
8204 testsuite/libgomp.c++/reduction-3.C,
8205 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
8206 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
8207 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
8208 New files, largely cribbed from the C testsuite.
8209
8210 2005-10-12 Jakub Jelinek <jakub@redhat.com>
8211
8212 * testsuite/libgomp.fortran/character1.f90: New test.
8213 * testsuite/libgomp.fortran/character2.f90: New test.
8214
8215 * testsuite/libgomp.dg/nested-1.c: New test.
8216 * testsuite/libgomp.dg/nested-2.c: New test.
8217 * testsuite/libgomp.fortran/do1.f90: New test.
8218 * testsuite/libgomp.fortran/do2.f90: New test.
8219
8220 * testsuite/libgomp.fortran/reference1.f90: New test.
8221
8222 2005-10-11 Jakub Jelinek <jakub@redhat.com>
8223
8224 * testsuite/libgomp.dg/reduction-1.c: New test.
8225 * testsuite/libgomp.dg/reduction-2.c: New test.
8226 * testsuite/libgomp.dg/reduction-3.c: New test.
8227
8228 2005-10-10 Jakub Jelinek <jakub@redhat.com>
8229
8230 * testsuite/libgomp.dg/atomic-1.c: New test.
8231 * testsuite/libgomp.dg/atomic-2.c: New test.
8232
8233 2005-10-09 Richard Henderson <rth@redhat.com>
8234
8235 * critical.c (atomic_lock): New.
8236 (initialize_critical): Initialize it.
8237 (GOMP_atomic_start, GOMP_atomic_end): New.
8238 * libgomp.map: Export them.
8239 * libgomp_g.h: Declare them.
8240
8241 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
8242
8243 2005-10-02 Richard Henderson <rth@redhat.com>
8244
8245 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
8246 to XCFLAGS instead of CFLAGS.
8247
8248 2005-09-30 Richard Henderson <rth@redhat.com>
8249
8250 * configure.ac: Determine whether -pthread or -lpthread is needed.
8251 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
8252 * Makefine.in, configure: Rebuild.
8253
8254 2005-09-28 Richard Henderson <rth@redhat.com>
8255
8256 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
8257 * testsuite/libgomp.dg/omp-single-3.c: New test.
8258
8259 2005-09-28 Diego Novillo <dnovillo@redhat.com>
8260
8261 * testsuite/libgomp.dg/omp-single-2.c: New test.
8262 * testsuite/libgomp.dg/shared-2.c: Fix return code.
8263
8264 2005-09-27 Richard Henderson <rth@redhat.com>
8265
8266 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
8267 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
8268
8269 2005-09-27 Jakub Jelinek <jakub@redhat.com>
8270
8271 * testsuite/libgomp.dg/omp-loop03.c: New test.
8272
8273 2005-09-27 Diego Novillo <dnovillo@redhat.com>
8274
8275 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
8276
8277 2005-09-27 Diego Novillo <dnovillo@redhat.com>
8278
8279 * testsuite/libgomp.dg/omp-single-1.c: New test.
8280 * testsuite/libgomp.dg/shared-1.c: Return 0.
8281 Add prototype for abort.
8282 * testsuite/libgomp.dg/shared-2.c: Likewise.
8283
8284 2005-09-26 Jakub Jelinek <jakub@redhat.com>
8285
8286 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
8287 constructs.
8288
8289 2005-09-26 Diego Novillo <dnovillo@redhat.com>
8290
8291 * testsuite/libgomp.dg/shared-1.c: New test.
8292 * testsuite/libgomp.dg/shared-2.c: New test.
8293
8294 2005-09-24 Richard Henderson <rth@redhat.com>
8295
8296 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
8297
8298 2005-09-24 Richard Henderson <rth@redhat.com>
8299
8300 * iter.c (gomp_iter_static_next): Round up when computing number
8301 of iterations. Don't bother distributing a remainder equally.
8302
8303 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
8304 Don't call srand. Zero b before testing.
8305 (main): New.
8306
8307 2005-09-24 Jakub Jelinek <jakub@redhat.com>
8308
8309 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
8310 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
8311
8312 2005-09-23 Jakub Jelinek <jakub@redhat.com>
8313
8314 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
8315 without !$omp end do, followed immediately by subroutine end.
8316
8317 2005-09-23 Diego Novillo <dnovillo@redhat.com>
8318
8319 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
8320
8321 2005-09-22 Richard Henderson <rth@redhat.com>
8322
8323 * critical.c (GOMP_critical_name_start): Change argument to void**.
8324 Reuse the pointer space if the mutex fits.
8325 (GOMP_critical_name_end): Likewise.
8326 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
8327 * libgomp_g.h (GOMP_critical_name_start): Update decl.
8328 (GOMP_critical_name_end): Likewise.
8329 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
8330 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
8331
8332 2005-09-20 Richard Henderson <rth@redhat.com>
8333
8334 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
8335 (create_lock_lock): New.
8336 (initialize_critical): Initialize it.
8337 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
8338 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
8339
8340 2005-09-20 Diego Novillo <dnovillo@redhat.com>
8341
8342 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
8343
8344 2005-09-20 Diego Novillo <dnovillo@redhat.com>
8345
8346 * testsuite/libgomp.dg/omp-loop01.c: New test.
8347 * testsuite/libgomp.dg/omp-loop02.c: New test.
8348
8349 2005-09-20 Jakub Jelinek <jakub@redhat.com>
8350
8351 * configure.ac (AC_PROG_FC): Add.
8352 (USE_FORTRAN): New automake conditional.
8353 * configure: Rebuilt.
8354 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
8355 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
8356 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
8357 Add rules to build them.
8358 * Makefile.in: Rebuilt.
8359 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
8360 OMP_NEST_LOCK_KIND.
8361 * libgomp.map: Add Fortran wrappers.
8362 * libgomp_f.h.in: New file.
8363 * omp_lib.h.in: New file.
8364 * omp_lib.f90.in: New file.
8365 * fortran.c: New file.
8366 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
8367 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
8368 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
8369 libgfortran has been built.
8370 * testsuite/libgomp.fortran/fortran.exp: New file.
8371 * testsuite/libgomp.fortran/omp_cond1.f: New test.
8372 * testsuite/libgomp.fortran/omp_cond2.f: New test.
8373 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
8374 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
8375 * testsuite/libgomp.fortran/omp_hello.f: New test.
8376 * testsuite/libgomp.fortran/omp_orphan.f: New test.
8377 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
8378 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
8379 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
8380 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
8381 * testsuite/libgomp.fortran/omp_reduction.f: New test.
8382 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
8383 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
8384
8385 2005-08-30 Richard Henderson <rth@redhat.com>
8386
8387 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
8388 function for when aliases are not usable.
8389 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
8390 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
8391 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
8392 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
8393 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
8394 GOMP_loop_ordered_guided_next): Likewise.
8395 * ordered.c (GOMP_ordered_start): Likewise.
8396
8397 2005-08-01 Diego Novillo <dnovillo@redhat.com>
8398
8399 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
8400 * testsuite/libgomp.dg/omp_hello.c: Fix return code
8401 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
8402 * testsuite/libgomp.dg/omp_orphan.c: Likewise
8403 * testsuite/libgomp.dg/omp_reduction.c: Likewise
8404 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
8405 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
8406 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
8407 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
8408
8409 2005-07-07 Eric Christopher <echristo@redhat.com>
8410 Diego Novillo <dnovillo@redhat.com>
8411
8412 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
8413 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
8414 up code.
8415 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
8416 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
8417 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
8418 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
8419 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
8420 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
8421 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
8422
8423 2005-06-13 Diego Novillo <dnovillo@redhat.com>
8424
8425 * TOPLEVEL.patch: Remove.
8426
8427 2005-05-16 Richard Henderson <rth@redhat.com>
8428
8429 * configure.ac: Test for clock_gettime.
8430 * config.h.in, configure: Rebuild.
8431 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
8432 (omp_get_wtime): Use clock_gettime if available.
8433 (omp_get_wtick): Use clock_getres if available.
8434
8435 2005-05-11 Richard Henderson <rth@redhat.com>
8436
8437 * config/linux/ia64/futex.h: New file.
8438 * configure.tgt: Use it.
8439
8440 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
8441
8442 2005-05-07 Richard Henderson <rth@redhat.com>
8443
8444 * config/linux/powerpc/futex.h: New file.
8445 * configure.tgt: Use it.
8446
8447 * config/linux/i486/futex.h: Merge ...
8448 * config/linux/x86_64/futex.h: ... into ...
8449 * config/linux/x86/futex.h: ... here.
8450 * configure.tgt: Update to match.
8451
8452 2005-05-06 Richard Henderson <rth@redhat.com>
8453
8454 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
8455 * config/linux/i486/futex.h: Likewise.
8456 * config/linux/x86_64/futex.h: Likewise.
8457
8458 * config/linux/lock.c: New file.
8459 * config/linux/omp-lock.h: New file.
8460
8461 * critical.c, env.h: Don't include omp.h
8462 * config/posix/lock.c: Include libgomp.h instead of omp.h.
8463 * config/posix/time.c: Likewise.
8464 * config/posix/omp-lock.h: New file.
8465 * libgomp.h: Include omp-lock.h and omp.h.
8466 * Makefile.am (nodist_include_HEADERS): New.
8467 (omp.h): New rule.
8468 * configure.ac (PERL): New.
8469 * mkomp_h.pl: New file.
8470 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
8471 with templates.
8472 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
8473
8474 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
8475 build directory. Re-add -march=i486 hack.
8476
8477 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
8478 (libgomp_link_flags): Remove.
8479 (libgomp_initialized): Remove.
8480 (libgomp_init): Don't protect from reinitialization. Copy code
8481 from libstdc++ for getting the multilib set correctly.
8482
8483 2005-05-05 Richard Henderson <rth@redhat.com>
8484
8485 * config/linux/alpha/futex.h: New file.
8486 * configure.tgt (alpha*-*-linux*): Use it.
8487
8488 * config/posix/mutex.c: New file.
8489 * config/posix/sem.c: Use libgomp.h.
8490
8491 * configure.tgt (x86_64-linux): Also test CC for -m32.
8492 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
8493
8494 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
8495 after $gccpath.
8496
8497 * Makefile.am (SUBDIRS): New.
8498 (libgomp_la_LDFLAGS): Add -lpthread.
8499 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
8500 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
8501
8502 * libgomp_g.h: New file.
8503 * libgomp.h: Split out all public declarations to libgomp_g.h.
8504 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
8505 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
8506 * config/linux/sem.h: Likewise.
8507 * config/posix/sem.h: Likewise.
8508
8509 * Makefile.am (AM_LDFLAGS): New.
8510 (libgomp_version_script): Split out from ...
8511 (libgomp_la_LDFLAGS): ... here.
8512 (libgomp_version_info): New.
8513 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
8514 (LIBGOMP_ENABLE): New.
8515 (LIBGOMP_CHECK_LINKER_FEATURES): New.
8516 (LIBGOMP_ENABLE_SYMVERS): New.
8517 * configure.ac (AC_INIT): Version 1.0.
8518 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
8519 (enable-linux-futex): Likewise. Rename from enable-futex.
8520 (libtool_VERSION): New.
8521 (LIBGOMP_ENABLE_SYMVERS): Use it.
8522 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
8523 * Makefile.in, aclocal.m4, configure: Rebuild.
8524
8525 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
8526 (gomp_mutex_unlock_slow): Fix typo.
8527 * config/linux/sem.c: Similarly.
8528 (gomp_sem_post_slow): Fix typo.
8529 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
8530 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
8531 [__PIC__] (sys_futex0): Don't use tmp output in asm.
8532
8533 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
8534 (libgomp_la_LDFLAGS): Add top_srcdir to path.
8535 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
8536 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
8537 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
8538 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
8539 LDFLAGS. Pull enable_futex check to top-level.
8540 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
8541 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
8542
8543 First attempt at real configury.
8544 * Makefile, config.h: Remove file.
8545 * Makefile.am, Makefile.in: New file.
8546 * acinclude.m4 aclocal.m4: New file.
8547 * configure.ac, configure.tgt, configure: New file.
8548
8549 * config/posix/lock.c: Rename from sys-lock.c.
8550 * config/posix/mutex.h: Rename from sys-mutex.h.
8551 * config/posix/sem.c: Rename from sys-sem.c.
8552 * config/posix/sem.h: Rename from sys-sem.h.
8553 * config/posix/proc.c: Rename from sys-proc.c.
8554 * config/posix/time.c: Rename from sys-proc.c.
8555
8556 * config/linux/mutex.c: New file.
8557 * config/linux/mutex.h: New file.
8558 * config/linux/sem.c: New file.
8559 * config/linux/sem.h: New file.
8560 * config/linux/i486/futex.h: New file.
8561 * config/linux/x86_64/futex.h: New file.
8562
8563 2005-05-04 Richard Henderson <rth@redhat.com>
8564
8565 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
8566 * libgomp.h: Declare them.
8567 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
8568 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
8569
8570 2005-05-04 Richard Henderson <rth@redhat.com>
8571
8572 * libgomp-1 code drop
8573
8574 2005-05-04 Richard Henderson <rth@redhat.com>
8575
8576 * iter.c (gomp_iter_static_next): Return tri-state on 0.
8577 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
8578 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
8579 (gomp_iter_static_next): Update.
8580 (gomp_ordered_static_next): Update.
8581 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
8582 (gomp_loop_ordered_static_start): Likewise. Exit early for a
8583 totally empty range.
8584 (gomp_loop_ordered_static_next): Refine test for calling
8585 gomp_ordered_static_next.
8586 * testsuite/ordered-1.c: Add case for more threads than iterations.
8587
8588 * iter.c (gomp_iter_runtime_next_locked): Remove.
8589 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
8590 gomp_loop_guided_start, gomp_loop_ordered_static_start,
8591 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
8592 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
8593 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
8594 gomp_loop_ordered_guided_next): Downcase name, make static, add
8595 an external alias with the old name.
8596 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
8597 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
8598 switch and call one of the above static functions.
8599 * libgomp.h: Update.
8600
8601 * work.c (gomp_work_share_start): Lock the mutex for !first too.
8602 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
8603 GOMP_loop_guided_start, GOMP_loop_runtime_start,
8604 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
8605 GOMP_loop_ordered_guided_start): Update to match.
8606 * sections.c (GOMP_sections_start): Likewise.
8607 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
8608
8609 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
8610 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
8611 Use bounds check instead of modulus.
8612 (gomp_ordered_sync): Split out of GOMP_ordered_start.
8613 (gomp_ordered_last): Don't sync with ordered_owner here.
8614 (gomp_ordered_next): Likewise.
8615 (gomp_ordered_static_loop_next): Likewise.
8616 * loop.c, libgomp.h: Update to match.
8617
8618 * libgomp.h (GOMP_barrier): Declare.
8619
8620 * testsuite/barrier-1.c: New file.
8621 * testsuite/critical-1.c: New file.
8622 * testsuite/ordered-2.c: New file.
8623 * testsuite/ordered-1.c: New file.
8624 * testsuite/sections-1.c: New file.
8625 * testsuite/single-1.c: New file.
8626 * testsuite/Makefile (TESTS): Add them.
8627
8628 2005-05-04 Richard Henderson <rth@redhat.com>
8629
8630 * libgomp.h (struct gomp_work_share): Add ordered_owner.
8631 * loop.c (GOMP_loop_static_start): If not the startup thread,
8632 acquire the mutex to wait for initialization complete.
8633 (GOMP_loop_ordered_static_start): Likewise.
8634 (GOMP_loop_ordered_runtime_start): Likewise.
8635 (GOMP_loop_ordered_static_first): Remove.
8636 (GOMP_loop_ordered_dynamic_first): Remove.
8637 (GOMP_loop_ordered_guided_first): Remove.
8638 (GOMP_loop_ordered_runtime_first): Remove.
8639 * ordered.c (gomp_ordered_loop_first): Post to own release when
8640 we're the first thread.
8641 (gomp_ordered_loop_last): Wait on release if not owner.
8642 (gomp_ordered_loop_next): Likewise.
8643 (gomp_ordered_static_loop_init): New.
8644 (gomp_ordered_static_loop_next): Use ordered_owner.
8645 (GOMP_ordered_start): Likewise.
8646 * work.c (gomp_new_work_share): Initialize ordered_owner.
8647
8648 2005-05-03 Richard Henderson <rth@redhat.com>
8649
8650 * Makefile (OPT): New.
8651 (CFLAGS): Use it.
8652
8653 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
8654 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
8655 * libgomp.h, libgomp.map, NOTES: Update to match.
8656
8657 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
8658 Add initialized and thr members.
8659 (gomp_thread_start): Pause when initially spawned to wait for
8660 the whole team to be created.
8661 (gomp_team_start): Release team members at the end.
8662
8663 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
8664 (f_foo_1): Use GOMP_loop_end.
8665 (f_foo_2): Use GOMP_loop_end_nowait.
8666
8667 * testsuite/loop-2.c: New file.
8668 * testsuite/Makefile (TESTS): Add it.
8669
8670 2005-05-03 Richard Henderson <rth@redhat.com>
8671
8672 * iter.c (gomp_iter_static_next): Fix overflow check typo.
8673 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
8674 * team.c (new_team): Initialize oldest_live_gen to 1 if no
8675 initial work_share.
8676
8677 * testsuite/Makefile: New file.
8678 * testsuite/loop-1.c: New file.
8679
8680 2005-05-03 Richard Henderson <rth@redhat.com>
8681
8682 Initial implementation and checkin.
8683 \f
8684 Copyright (C) 2005-2017 Free Software Foundation, Inc.
8685
8686 Copying and distribution of this file, with or without modification,
8687 are permitted in any medium without royalty provided the copyright
8688 notice and this notice are preserved.