1 2018-01-19 Tom de Vries <tom@codesourcery.com>
2 Cesar Philippidis <cesar@codesourcery.com>
5 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
6 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
8 2018-01-03 Jakub Jelinek <jakub@redhat.com>
10 Update copyright years.
12 * libgomp.texi: Bump @copying's copyright year.
14 2017-12-30 Tom de Vries <tom@codesourcery.com>
17 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
18 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
20 2017-12-27 Tom de Vries <tom@codesourcery.com>
23 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
24 (test_nonstatic): Fix return type to workaround PR83046.
26 2017-12-05 Jakub Jelinek <jakub@redhat.com>
29 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
30 j suffix instead of i.
31 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
34 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
36 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
39 2017-11-24 Jakub Jelinek <jakub@redhat.com>
42 * testsuite/libgomp.fortran/pr81304.f90: New test.
44 2017-11-23 Jakub Jelinek <jakub@redhat.com>
47 * libgomp.fortran/pr81841.f90: New test.
49 2017-11-22 Jakub Jelinek <jakub@redhat.com>
52 * target.c (gomp_target_init): Compute lengths just once and
53 use them in both malloc size and subsequent copying.
55 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
57 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
58 * acinclude.m4: Add cet.m4.
59 * configure: Regenerate.
60 * Makefile.in: Likewise.
61 * testsuite/Makefile.in: Likewise.
63 2017-11-15 Tom de Vries <tom@codesourcery.com>
65 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
66 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
67 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
68 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
69 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
70 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
72 2017-11-14 Tom de Vries <tom@codesourcery.com>
74 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
77 2017-11-07 Jakub Jelinek <jakub@redhat.com>
80 * testsuite/libgomp.c++/pr82835.C: New test.
82 2017-11-06 Martin Liska <mliska@suse.cz>
84 * testsuite/libgomp.c++/loop-2.C: Return a value
85 for functions with non-void return type, or change type to void,
86 or add -Wno-return-type for test.
87 * testsuite/libgomp.c++/loop-4.C: Likewise.
88 * testsuite/libgomp.c++/parallel-1.C: Likewise.
89 * testsuite/libgomp.c++/shared-1.C: Likewise.
90 * testsuite/libgomp.c++/single-1.C: Likewise.
91 * testsuite/libgomp.c++/single-2.C: Likewise.
93 2017-10-31 Tom de Vries <tom@codesourcery.com>
95 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
96 "do {} while (false)".
97 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
100 2017-10-28 Jakub Jelinek <jakub@redhat.com>
102 * target.c (struct gomp_coalesce_buf): New type.
103 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
104 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
105 (gomp_copy_host2dev): Add CBUF argument, if copying into
106 the cached ranges, memcpy into buffer instead of copying
108 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
109 Add CBUF argument, pass it through to other calls.
110 (gomp_map_vars): Aggregate copies from host to device if small enough
111 and with small enough gaps in between into memcpy into a buffer and
112 fewer host to device copies from the buffer.
113 (gomp_update): Adjust gomp_copy_host2dev caller.
115 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
117 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
119 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
120 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
121 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
122 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
124 2017-10-16 Tom de Vries <tom@codesourcery.com>
126 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
127 openacc_nvidia_accel_selected.
128 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
129 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
130 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
131 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
132 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
133 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
134 openacc_nvidia_accel_selected. Skip for shared memory device.
135 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
136 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
138 2017-10-09 Martin Jambor <mjambor@suse.cz>
141 * testsuite/libgomp.hsa.c/pr82416.c: New test.
143 2017-10-07 Tom de Vries <tom@codesourcery.com>
145 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
146 Remove acc_device_nvidia references.
147 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
150 2017-10-05 Tom de Vries <tom@codesourcery.com>
152 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
153 vector_length(32) clause from acc parallel directive.
154 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
156 2017-10-04 Tom de Vries <tom@codesourcery.com>
158 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
159 (main): Reduce sum of arr elements. Assert that hres is exactly
160 representable in 32-bit floating point.
161 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
162 (main): Reduce sum of arr elements. Assert that hres and hmres are
163 exactly representable in 32-bit floating point.
164 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
166 2017-09-28 Tom de Vries <tom@codesourcery.com>
168 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
170 * testsuite/libgomp.c++/pr69393.C: Same.
171 * testsuite/libgomp.c++/taskloop-1.C: Same.
172 * testsuite/libgomp.c++/taskloop-3.C: Same.
173 * testsuite/libgomp.c++/taskloop-4.C: Same.
174 * testsuite/libgomp.c/for-4.c: Same.
175 * testsuite/libgomp.c/pr66199-3.c: Same.
176 * testsuite/libgomp.c/pr66199-4.c: Same.
177 * testsuite/libgomp.c/pr66199-6.c: Same.
178 * testsuite/libgomp.c/taskloop-1.c: Same.
179 * testsuite/libgomp.c/taskloop-3.c: Same.
180 * testsuite/libgomp.c/taskloop-4.c: Same.
181 * testsuite/libgomp.fortran/aligned1.f03: Same.
182 * testsuite/libgomp.fortran/condinc1.f: Same.
183 * testsuite/libgomp.fortran/condinc3.f90: Same.
184 * testsuite/libgomp.fortran/crayptr1.f90: Same.
185 * testsuite/libgomp.fortran/crayptr2.f90: Same.
186 * testsuite/libgomp.fortran/crayptr3.f90: Same.
187 * testsuite/libgomp.fortran/omp_cond1.f: Same.
188 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
189 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
190 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
191 * testsuite/libgomp.fortran/recursion1.f90: Same.
192 * testsuite/libgomp.fortran/target2.f90: Same.
193 * testsuite/libgomp.fortran/target5.f90: Same.
194 * testsuite/libgomp.fortran/task3.f90: Same.
196 2017-09-28 Tom de Vries <tom@codesourcery.com>
198 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
199 vector_length(32) clause from acc parallel directive.
200 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
202 2017-09-27 Tom de Vries <tom@codesourcery.com>
204 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
205 Remove acc_device_nvidia references.
207 2017-09-16 Tom de Vries <tom@codesourcery.com>
210 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
212 2017-09-14 Tom de Vries <tom@codesourcery.com>
214 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
215 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
216 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
217 * testsuite/libgomp.c/c.exp: Include test-cases from
218 libgomp.c-c++-common.
219 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
222 2017-09-14 Jakub Jelinek <jakub@redhat.com>
225 * testsuite/libgomp.c++/pr81314.C: New test.
227 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
229 * libgomp.texi (Top): www.openacc.org now uses https.
230 (Enabling OpenACC): Ditto.
231 (acc_get_num_devices): Ditto.
232 (acc_set_device_type): Ditto.
233 (acc_get_device_type): Ditto.
234 (acc_set_device_num): Ditto.
235 (acc_get_device_num): Ditto.
236 (acc_async_test): Ditto.
237 (acc_async_test_all): Ditto.
239 (acc_wait_all): Ditto.
240 (acc_wait_all_async): Ditto.
241 (acc_wait_async): Ditto.
243 (acc_shutdown): Ditto.
244 (acc_on_device): Ditto.
248 (acc_present_or_copyin): Ditto.
250 (acc_present_or_create): Ditto.
251 (acc_copyout): Ditto.
253 (acc_update_device): Ditto.
254 (acc_update_self): Ditto.
255 (acc_map_data): Ditto.
256 (acc_unmap_data): Ditto.
257 (acc_deviceptr): Ditto.
258 (acc_hostptr): Ditto.
259 (acc_is_present): Ditto.
260 (acc_memcpy_to_device): Ditto.
261 (acc_memcpy_from_device): Ditto.
262 (acc_get_current_cuda_device): Ditto.
263 (acc_get_current_cuda_context): Ditto.
264 (acc_get_cuda_stream): Ditto.
265 (acc_set_cuda_stream): Ditto.
266 (ACC_DEVICE_TYPE): Ditto.
267 (ACC_DEVICE_NUM): Ditto.
268 (OpenACC Library Interoperability): Ditto.
270 2017-08-09 Jakub Jelinek <jakub@redhat.com>
273 * testsuite/libgomp.c/pr81687-1.c: New test.
274 * testsuite/libgomp.c/pr81687-2.c: New test.
276 2017-08-07 Jakub Jelinek <jakub@redhat.com>
279 * testsuite/libgomp.c/pr69389.c: New test.
280 * testsuite/libgomp.c++/pr69389.C: New test.
282 2017-08-07 Tom de Vries <tom@codesourcery.com>
285 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
286 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
288 2017-07-27 Jakub Jelinek <jakub@redhat.com>
291 * testsuite/libgomp.c/pr45784.c: New test.
292 * testsuite/libgomp.c++/pr45784.C: New test.
294 2017-07-19 Tom de Vries <tom@codesourcery.com>
296 * testsuite/libgomp.oacc-c/vec.c: New test.
298 2017-07-03 Tom de Vries <tom@codesourcery.com>
300 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
302 2017-06-27 Tom de Vries <tom@codesourcery.com>
304 * plugin/plugin-nvptx.c (notify_var): New function.
305 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
307 2017-06-27 Tom de Vries <tom@codesourcery.com>
309 * env.c (parse_unsigned_long_1): Factor out of ...
310 (parse_unsigned_long): ... here.
311 (parse_int_1): Factor out of ...
312 (parse_int): ... here.
313 (parse_int_secure): New function.
314 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
315 * secure_getenv.h: Factor out of ...
316 * plugin/plugin-hsa.c: ... here.
317 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
319 2017-06-21 Jakub Jelinek <jakub@redhat.com>
322 * testsuite/libgomp.c++/pr81130.C: New test.
324 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
326 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
328 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
329 dg-xfail-run-if default args.
331 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
333 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
334 * testsuite/libgomp.c/pr39591-3.c: Likewise.
336 2017-05-30 Jakub Jelinek <jakub@redhat.com>
339 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
340 (gomp_affinity_init_level): Use it. Always analyze the core and thread
341 sibling lists, depending on level just pick up what CPUs to put
342 together into a place vs. whether add multiple ordered places.
344 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
346 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
347 * libgomp.map (OACC_2.0.1): Add these.
348 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
349 for "acc_wait", and "acc_wait_all", respectively.
350 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
351 for "acc_wait", and "acc_wait_all", respectively.
352 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
353 * libgomp.texi (acc_wait, acc_wait_all): Update.
354 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
355 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
356 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
358 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
359 acc_present_or_copyin and acc_present_or_create procedures,
361 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
362 generally different variants of OpenACC Runtime Library functions.
363 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
365 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
366 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
368 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
369 of preprocessor definitions.
370 * libgomp.h (strong_alias): Guard by "#ifdef
371 HAVE_ATTRIBUTE_ALIAS".
372 * oacc-mem.c: Provide "acc_pcreate" as alias for
373 "acc_present_or_create", and "acc_pcopyin" as alias for
374 "acc_present_or_copyin".
375 * libgomp.map: New version "OACC_2.0.1".
376 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
377 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
379 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
382 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
383 when disabling nvptx offloading.
385 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
387 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
388 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
389 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
391 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
392 * testsuite/lib/libgomp.exp
393 (check_effective_target_openacc_nvidia_accel_configured): New
395 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
396 (check_effective_target_c++): New procs.
397 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
398 (check_effective_target_c++): Likewise.
400 2017-05-22 Jakub Jelinek <jakub@redhat.com>
403 * testsuite/libgomp.c/pr80809-2.c: New test.
404 * testsuite/libgomp.c/pr80809-3.c: New test.
407 * testsuite/libgomp.c/pr80809-1.c: New test.
410 * testsuite/libgomp.c/pr80853.c: New test.
412 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
414 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
415 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
416 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
417 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
418 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
420 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
421 Debug output for failure.
423 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
425 * testsuite/lib/libgomp.exp: Load scanlang.exp.
427 2017-04-27 Jakub Jelinek <jakub@redhat.com>
430 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
431 bootstrap compare failures.
433 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
435 * testsuite/libgomp.c/target-36.c: New testcase.
437 2017-04-13 Jakub Jelinek <jakub@redhat.com>
439 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
442 2017-04-11 Jakub Jelinek <jakub@redhat.com>
445 * testsuite/libgomp.c/pr80394.c: New test.
447 2017-04-04 Jakub Jelinek <jakub@redhat.com>
450 * config/posix/thread-stacksize.h: New file.
451 * config/darwin/thread-stacksize.h: New file.
452 * config/nvptx/thread-stacksize.h: New file.
453 * env.c: Include thread-stacksize.h.
454 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
455 instead of 0. Call pthread_attr_setstacksize even if
456 GOMP_DEFAULT_STACKSIZE is non-zero.
458 2017-03-30 Jakub Jelinek <jakub@redhat.com>
460 * env.c (initialize_env): Initialize stacksize to 0.
462 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
465 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
467 2017-03-08 Jakub Jelinek <jakub@redhat.com>
470 * testsuite/libgomp.c/pr79940.c: New test.
472 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
474 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
476 Add __float128 options.
478 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
480 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
481 hppa*-*-* dg-skip-if directive.
483 2017-02-09 Jakub Jelinek <jakub@redhat.com>
485 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
486 dg-skip-if directive into a comment.
488 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
489 Chung-Lin Tang <cltang@codesourcery.com>
491 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
492 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
494 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
495 "openacc_nvidia_accel_selected".
496 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
497 Add num_workers(8) clause.
499 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
501 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
503 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
504 include complex.h on hppa*-*-hpux*.
505 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
507 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
509 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
511 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
512 GOMP_OFFLOAD_openacc_exec. Adjust all users.
513 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
514 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
515 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
516 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
517 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
518 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
519 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
520 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
522 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
524 * libgomp-plugin.h: #include <stdbool.h>.
525 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
526 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
527 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
528 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
529 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
530 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
531 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
532 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
533 (GOMP_OFFLOAD_openacc_register_async_cleanup)
534 (GOMP_OFFLOAD_openacc_async_test)
535 (GOMP_OFFLOAD_openacc_async_test_all)
536 (GOMP_OFFLOAD_openacc_async_wait)
537 (GOMP_OFFLOAD_openacc_async_wait_async)
538 (GOMP_OFFLOAD_openacc_async_wait_all)
539 (GOMP_OFFLOAD_openacc_async_wait_all_async)
540 (GOMP_OFFLOAD_openacc_async_set_async)
541 (GOMP_OFFLOAD_openacc_create_thread_data)
542 (GOMP_OFFLOAD_openacc_destroy_thread_data)
543 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
544 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
545 (GOMP_OFFLOAD_openacc_get_cuda_stream)
546 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
547 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
549 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
550 (GOMP_OFFLOAD_unload_image): Fix argument types.
552 2017-01-26 Jakub Jelinek <jakub@redhat.com>
554 * testsuite/lib/libgomp.exp
555 (check_effective_target_hsa_offloading_selected_nocache): Fix up
556 check_compile invocation. Fix up removal of executable. Drop
557 bogus "2>&1" argument.
559 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
562 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
563 Martin Jambor <mjambor@suse.cz>
565 * plugin/hsa.h: Moved to top level include.
566 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
568 2017-01-21 Jakub Jelinek <jakub@redhat.com>
571 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
572 of cat to get version from BASE-VER file.
573 * testsuite/Makefile.in: Regenerated.
575 2017-01-19 Jakub Jelinek <jakub@redhat.com>
577 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
580 2017-01-17 Jakub Jelinek <jakub@redhat.com>
582 * plugin/hsa.h: Add GCC runtime library exception.
583 * plugin/hsa_ext_finalize.h: Likewise.
585 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
586 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
587 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
588 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
589 plugin/include/cuda as include dir and -ldl instead of -lcuda as
590 library to link ptx plugin against.
591 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
592 (CUDA_CALLS): Define.
593 (cuda_lib, cuda_lib_inited): New variables.
594 (init_cuda_lib): New function.
595 (CUDA_CALL_PREFIX): Define.
596 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
597 (CUDA_CALL): Use FN instead of (FN).
598 (CUDA_CALL_NOCHECK): Define.
599 (cuda_error, fini_streams_for_device, select_stream_for_async,
600 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
601 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
602 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
603 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
605 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
607 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
608 Use CUDA_CALL_NOCHECK.
609 * plugin/cuda/cuda.h: New file.
610 * config.h.in: Regenerated.
611 * configure: Regenerated.
614 * configure.ac: Add GCC_BASE_VER.
615 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
616 get version from BASE-VER file.
617 * testsuite/Makefile.in: Regenerated.
618 * configure: Regenerated.
619 * Makefile.in: Regenerated.
621 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
624 * Makefile.am: Make fincludedir multilib-aware.
625 * Makefile.in: Regenerate.
627 2017-01-01 Jakub Jelinek <jakub@redhat.com>
629 Update copyright years.
631 * libgomp.texi: Bump @copying's copyright year.
633 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
635 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
636 pthread_spinlock_t instead of gomp_mutex_t lock.
637 (gomp_get_thread_pool): Likewise.
638 (gomp_release_thread_pool): Likewise.
639 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
642 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
644 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
645 thread pool in case nthreads == 1.
647 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
649 * config/nvptx/env.c: Delete.
650 * icv.c: Move definitions of ICV variables back ...
651 * env.c: ...here. Do not compile environment-related functionality if
652 LIBGOMP_OFFLOADED_ONLY is set.
654 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
656 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
657 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
658 * configure: Regenerate.
659 * config.h.in: Likewise.
661 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
663 * Makefile.in: Regenerate with automake-1.11.6.
664 * aclocal.m4: Likewise.
665 * configure: Likewise.
666 * testsuite/Makefile.in: Likewise.
668 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
670 * config/nvptx/critical.c: Delete to use generic implementation.
672 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
674 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
675 ../../affinity.c as fallback.
676 * config/nvptx/affinity.c: Delete to use fallback implementation.
678 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
679 Jakub Jelinek <jakub@redhat.com>
680 Dmitry Melnik <dm@ispras.ru>
682 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
683 * Makefile.in. Regenerate.
684 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
685 (LIBGOMP_USE_PTHREADS): ...here; new define.
686 * configure: Regenerate.
687 * config.h.in: Likewise.
688 * config/posix/affinity.c: Move to...
689 * affinity.c: ...here (new file). Guard use of Pthreads-specific
690 interface by LIBGOMP_USE_PTHREADS.
691 * critical.c: Split out GOMP_atomic_{start,end} into...
692 * atomic.c: ...here (new file).
693 * env.c: Split out ICV definitions into...
694 * icv.c: ...here (new file) and...
695 * icv-device.c: ...here. New file.
696 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
697 (gomp_destroy_lock_30): Ditto.
698 (gomp_set_lock_30): Ditto.
699 (gomp_unset_lock_30): Ditto.
700 (gomp_test_lock_30): Ditto.
701 (gomp_init_nest_lock_30): Ditto.
702 (gomp_destroy_nest_lock_30): Ditto.
703 (gomp_set_nest_lock_30): Ditto.
704 (gomp_unset_nest_lock_30): Ditto.
705 (gomp_test_nest_lock_30): Ditto.
707 * config/nvptx/lock.c: New.
708 * config/nvptx/bar.c: New.
709 * config/nvptx/bar.h: New.
710 * config/nvptx/doacross.h: New.
711 * config/nvptx/error.c: New.
712 * config/nvptx/icv-device.c: New.
713 * config/nvptx/mutex.h: New.
714 * config/nvptx/pool.h: New.
715 * config/nvptx/proc.c: New.
716 * config/nvptx/ptrlock.h: New.
717 * config/nvptx/sem.h: New.
718 * config/nvptx/simple-bar.h: New.
719 * config/nvptx/target.c: New.
720 * config/nvptx/task.c: New.
721 * config/nvptx/team.c: New.
722 * config/nvptx/time.c: New.
723 * config/posix/simple-bar.h: New.
724 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
725 (gomp_num_teams_var): Declare.
726 (struct gomp_thread_pool): Change threads_dock member to
727 gomp_simple_barrier_t.
728 [__nvptx__] (gomp_thread): New implementation.
729 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
730 (gomp_thread_destructor): Ditto.
731 (gomp_init_thread_affinity): Ditto.
732 * team.c: Guard uses of Pthreads-specific interfaces by
733 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
734 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
735 * config/nvptx/alloc.c: Delete.
736 * config/nvptx/barrier.c: Ditto.
737 * config/nvptx/fortran.c: Ditto.
738 * config/nvptx/iter.c: Ditto.
739 * config/nvptx/iter_ull.c: Ditto.
740 * config/nvptx/loop.c: Ditto.
741 * config/nvptx/loop_ull.c: Ditto.
742 * config/nvptx/ordered.c: Ditto.
743 * config/nvptx/parallel.c: Ditto.
744 * config/nvptx/priority_queue.c: Ditto.
745 * config/nvptx/sections.c: Ditto.
746 * config/nvptx/single.c: Ditto.
747 * config/nvptx/splay-tree.c: Ditto.
748 * config/nvptx/work.c: Ditto.
749 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
750 -foffload=-lgfortran in addition to -lgfortran.
751 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
752 * plugin/plugin-nvptx.c: Include <limits.h>.
753 (struct targ_fn_descriptor): Add new fields.
754 (struct ptx_device): Ditto. Set them...
755 (nvptx_open_device): ...here.
756 (nvptx_adjust_launch_bounds): New.
757 (nvptx_host2dev): Allow NULL 'nvthd'.
758 (nvptx_dev2host): Ditto.
759 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
760 (link_ptx): Adjust log sizes.
761 (nvptx_host2dev): Allow NULL 'nvthd'.
762 (nvptx_dev2host): Ditto.
763 (nvptx_set_clocktick): New. Use it...
764 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
766 (GOMP_OFFLOAD_dev2dev): New.
767 (nvptx_adjust_launch_bounds): New.
768 (nvptx_stacks_size): New.
769 (nvptx_stacks_alloc): New.
770 (nvptx_stacks_free): New.
771 (GOMP_OFFLOAD_run): New.
772 (GOMP_OFFLOAD_async_run): New (stub).
774 2016-11-23 Martin Jambor <mjambor@suse.cz>
776 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
777 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
778 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
780 2016-11-23 Martin Liska <mliska@suse.cz>
781 Martin Jambor <mjambor@suse.cz>
783 * plugin/hsa.h: New file.
784 * plugin/hsa_ext_finalize.h: New file.
785 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
786 header file unistd.h, and functions secure_getenv, __secure_getenv,
787 getuid, geteuid, getgid and getegid.
788 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
790 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
791 Handle various cases of secure_getenv presence, add an implementation
792 when we can test effective UID and GID.
793 (struct hsa_runtime_fn_info): New structure.
794 (hsa_runtime_fn_info hsa_fns): New variable.
795 (hsa_runtime_lib): Likewise.
796 (support_cpu_devices): Likewise.
797 (init_enviroment_variables): Load newly introduced ENV
799 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
800 (hsa_fatal): Likewise.
801 (DLSYM_FN): New macro.
802 (init_hsa_runtime_functions): New function.
803 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
804 structure. Depending on environment, also allow CPU devices.
805 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
806 (get_kernarg_memory_region): Likewise.
807 (GOMP_OFFLOAD_init_device): Likewise.
808 (destroy_hsa_program): Likewise.
809 (init_basic_kernel_info): New function.
810 (GOMP_OFFLOAD_load_image): Use it.
811 (create_and_finalize_hsa_program): Call hsa run-time functions via
813 (create_single_kernel_dispatch): Likewise.
814 (release_kernel_dispatch): Likewise.
815 (init_single_kernel): Likewise.
816 (parse_target_attributes): Allow up multiple HSA grid dimensions.
817 (get_group_size): New function.
818 (run_kernel): Likewise.
819 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
820 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
822 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
823 * testsuite/libgomp-test-support.exp.in: Likewise.
824 * Makefile.in: Regenerated.
825 * aclocal.m4: Likewise.
826 * config.h.in: Likewise.
827 * configure: Likewise.
828 * testsuite/Makefile.in: Likewise.
830 2016-11-15 Martin Jambor <mjambor@suse.cz>
831 Alexander Monakov <amonakov@ispras.ru>
833 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
834 mapping clauses to target constructs.
835 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
837 2016-11-15 Matthias Klose <doko@ubuntu.com>
839 * configure: Regenerate.
841 2016-11-10 Jakub Jelinek <jakub@redhat.com>
843 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
844 * omp_lib.h.in (openmp_version): Likewise.
845 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
847 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
849 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
850 (fib_wrapper): Add map(from: x) clause.
851 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
853 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
854 (accum): Add map(tmp) clause.
855 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
856 (accum): Add map(tofrom: tmp) clause.
857 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
858 (gramSchmidt): Likewise.
859 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
860 map(tofrom: sum) clause.
861 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
862 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
863 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
864 only allowed on the loop iterator.
865 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
866 * testsuite/libgomp.fortran/taskloop2.f90: New test.
867 * testsuite/libgomp.fortran/taskloop4.f90: New test.
868 * testsuite/libgomp.fortran/doacross1.f90: New test.
869 * testsuite/libgomp.fortran/doacross3.f90: New test.
870 * testsuite/libgomp.fortran/taskloop1.f90: New test.
871 * testsuite/libgomp.fortran/taskloop3.f90: New test.
872 * testsuite/libgomp.fortran/doacross2.f90: New test.
873 * testsuite/libgomp.c/doacross-1.c (main): Add missing
874 #pragma omp atomic read.
875 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
876 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
878 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
879 Nathan Sidwell <nathan@acm.org>
881 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
882 to determine default geometry.
883 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
886 2016-11-01 Jakub Jelinek <jakub@redhat.com>
888 * hashtab.h: Use standard GPLv3 with runtime exception
891 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
893 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
894 size when allocating new thread.
896 2016-09-14 Marek Polacek <polacek@redhat.com>
898 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
900 2016-08-19 Jakub Jelinek <jakub@redhat.com>
903 * testsuite/libgomp.fortran/pr71014.f90: New test.
905 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
908 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
909 firstprivate clauses.
910 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
912 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
913 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
914 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
915 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
916 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
917 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
918 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
919 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
920 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
921 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
922 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
923 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
925 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
928 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
930 2016-08-08 Jakub Jelinek <jakub@redhat.com>
933 * testsuite/libgomp.c++/pr58706.C: New test.
935 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
937 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
938 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
939 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
941 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
942 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
944 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
946 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
947 test, and don't hardcode -O0.
949 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
951 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
953 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
955 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
958 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
961 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
962 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
964 2016-07-01 Jakub Jelinek <jakub@redhat.com>
967 * testsuite/libgomp.fortran/associate3.f90: New test.
969 2016-06-17 Jakub Jelinek <jakub@redhat.com>
971 * testsuite/libgomp.c++/target-21.C: New test.
973 2016-06-16 Jakub Jelinek <jakub@redhat.com>
975 * testsuite/libgomp.c++/target-20.C: New test.
977 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
978 Cesar Philippidis <cesar@codesourcery.com>
981 * libgomp.oacc-c/nested-function-1.c: New file.
982 * libgomp.oacc-c/nested-function-2.c: Likewise.
983 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
984 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
985 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
987 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
990 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
991 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
992 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
994 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
996 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
997 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
999 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
1002 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
1004 2016-05-26 Jakub Jelinek <jakub@redhat.com>
1006 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
1007 instead of invalid schedule(static, 0).
1008 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
1010 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
1012 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
1013 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
1014 parameter, use to set async stream around call to gomp_unmap_vars,
1015 call gomp_unmap_vars() with 'do_copyfrom' set to true.
1016 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
1017 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
1018 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
1019 (event_add): Add int parameter, initialize 'val' field when
1020 adding new ptx_event struct.
1021 (nvptx_evec): Adjust event_add() call arguments.
1022 (nvptx_host2dev): Likewise.
1023 (nvptx_dev2host): Likewise.
1024 (nvptx_wait_async): Likewise.
1025 (nvptx_wait_all_async): Likewise.
1026 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
1027 pass to event_add() call.
1028 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
1030 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
1031 call openacc.register_async_cleanup_func() hook.
1032 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
1033 * target.c (gomp_copy_from_async): Delete function.
1034 (gomp_map_vars): Remove async_refcount.
1035 (gomp_unmap_vars): Likewise.
1036 (gomp_load_image_to_device): Likewise.
1037 (omp_target_associate_ptr): Likewise.
1038 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
1039 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
1040 (gomp_copy_from_async): Remove.
1042 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
1044 * target.c (gomp_device_copy): New function.
1045 (gomp_copy_host2dev): Likewise.
1046 (gomp_copy_dev2host): Likewise.
1047 (gomp_free_device_memory): Likewise.
1048 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
1049 (gomp_map_pointer): Likewise.
1050 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
1051 NULL value from alloc_func plugin hook.
1052 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
1053 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
1054 (gomp_unmap_vars): Likewise.
1055 (gomp_update): Adjust to call gomp_copy_dev2host and
1056 gomp_copy_host2dev functions.
1057 (gomp_unload_image_from_device): Handle false value from
1058 unload_image_func plugin hook.
1059 (gomp_init_device): Handle false value from init_device_func
1061 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
1062 (omp_target_free): Adjust to call gomp_free_device_memory.
1063 (omp_target_memcpy): Handle return values from host2dev_func,
1064 dev2host_func, and dev2dev_func plugin hooks.
1065 (omp_target_memcpy_rect_worker): Likewise.
1066 (gomp_target_fini): Handle false value from fini_device_func
1068 * libgomp.h (struct gomp_device_descr): Adjust return type of
1069 init_device_func, fini_device_func, unload_image_func, free_func,
1070 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
1071 * oacc-init.c (acc_shutdown_1): Handle false value from
1072 fini_device_func plugin hook.
1073 * oacc-host.c (host_init_device): Change return type to bool.
1074 (host_fini_device): Likewise.
1075 (host_unload_image): Likewise.
1076 (host_free): Likewise.
1077 (host_dev2host): Likewise.
1078 (host_host2dev): Likewise.
1079 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
1080 (acc_memcpy_to_device): Likewise.
1081 (acc_memcpy_from_device): Likewise.
1082 (delete_copyout): Add libfnname parameter, handle free_func
1083 hook fatal error case.
1084 (acc_delete): Adjust delete_copyout call.
1085 (acc_copyout): Likewise.
1086 (update_dev_host): Move gomp_mutex_unlock to after
1087 host2dev/dev2host hook calls.
1089 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
1090 to 'hsa_error_msg', for clarity.
1091 (hsa_fatal): Likewise.
1092 (hsa_error): New function.
1093 (init_hsa_context): Change return type to bool, adjust to return
1095 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
1097 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
1098 return false on error.
1099 (get_agent_info): Adjust to return NULL on error.
1100 (destroy_hsa_program): Change return type to bool, adjust to
1101 return false on error.
1102 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
1103 (destroy_module): Change return type to bool, adjust to
1104 return false on error.
1105 (GOMP_OFFLOAD_unload_image): Likewise.
1106 (GOMP_OFFLOAD_fini_device): Likewise.
1107 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
1108 (GOMP_OFFLOAD_free): Change to return false when called.
1109 (GOMP_OFFLOAD_dev2host): Likewise.
1110 (GOMP_OFFLOAD_host2dev): Likewise.
1111 (GOMP_OFFLOAD_dev2dev): Likewise.
1113 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
1114 (CUDA_CALL): Likewise.
1115 (CUDA_CALL_ASSERT): Likewise.
1116 (map_init): Change return type to bool, use CUDA_CALL* macros.
1117 (map_fini): Likewise.
1118 (init_streams_for_device): Change return type to bool, adjust
1120 (fini_streams_for_device): Change return type to bool, adjust
1122 (select_stream_for_async): Release stream_lock before calls to
1123 GOMP_PLUGIN_fatal, adjust call to map_init.
1124 (nvptx_init): Use CUDA_CALL* macros.
1125 (nvptx_attach_host_thread_to_device): Change return type to bool,
1126 use CUDA_CALL* macros.
1127 (nvptx_open_device): Use CUDA_CALL* macros.
1128 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
1130 (nvptx_get_num_devices): Use CUDA_CALL* macros.
1131 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
1132 (nvptx_exec): Use CUDA_CALL* macros.
1133 (nvptx_alloc): Use CUDA_CALL* macros.
1134 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
1135 (nvptx_host2dev): Likewise.
1136 (nvptx_dev2host): Likewise.
1137 (nvptx_wait): Use CUDA_CALL* macros.
1138 (nvptx_wait_async): Likewise.
1139 (nvptx_wait_all): Likewise.
1140 (nvptx_wait_all_async): Likewise.
1141 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
1142 use CUDA_CALL* macros, adjust call to map_fini.
1143 (GOMP_OFFLOAD_init_device): Change return type to bool,
1144 adjust code accordingly.
1145 (GOMP_OFFLOAD_fini_device): Likewise.
1146 (GOMP_OFFLOAD_load_image): Adjust calls to
1147 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
1148 use CUDA_CALL* macros.
1149 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
1151 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
1152 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
1153 handle error return.
1154 (GOMP_OFFLOAD_dev2host): Likewise.
1155 (GOMP_OFFLOAD_host2dev): Likewise.
1156 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
1157 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
1159 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
1161 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
1162 (acc_free): Likewise.
1163 (acc_memcpy_to_device): Likewise.
1164 (acc_memcpy_from_device): Likewise.
1165 (acc_deviceptr): Likewise.
1166 (acc_hostptr): Likewise.
1167 (acc_is_present): Likewise.
1168 (acc_map_data): Likewise.
1169 (acc_unmap_data): Likewise.
1170 (present_create_copy): Likewise.
1171 (delete_copyout): Likewise.
1172 (update_dev_host): Likewise.
1173 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
1174 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
1175 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
1176 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
1177 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
1178 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
1179 it only runs on nvptx targets.
1180 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
1181 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
1182 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1183 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
1184 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
1185 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
1186 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
1187 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
1188 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1189 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
1190 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
1191 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
1192 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
1193 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
1194 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
1195 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1196 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
1197 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
1198 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
1199 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
1200 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
1201 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
1202 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
1204 2016-05-23 Martin Jambor <mjambor@suse.cz>
1206 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
1208 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
1210 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
1211 to gomp_init_targets_once.
1212 (acc_set_device_type): Remove !cached_base_dev condition on call to
1213 gomp_init_targets_once, move call to before acc_device_lock acquire,
1215 (acc_get_device_num): Remove !cached_base_dev condition on call to
1216 gomp_init_targets_once.
1217 (acc_set_device_num): Likewise.
1219 2016-05-16 Martin Jambor <mjambor@suse.cz>
1221 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
1223 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
1225 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
1226 expected partitioning.
1228 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
1231 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
1232 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
1233 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
1235 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
1237 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
1240 2016-04-19 Jakub Jelinek <jakub@redhat.com>
1243 * testsuite/libgomp.c/pr70680-1.c: New test.
1244 * testsuite/libgomp.c/pr70680-2.c: New test.
1246 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
1248 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
1249 pass parameter variables to subroutines.
1251 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
1254 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
1256 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
1259 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
1260 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
1262 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
1264 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
1265 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
1266 GOACC_declare prototype.
1268 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
1269 Merge this file, and...
1270 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
1271 ... this file, and...
1272 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
1273 ... this file, and...
1274 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
1275 ... this file, and...
1276 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
1277 ... this file, and...
1278 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
1279 ... this file, and...
1280 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
1281 ... this file, and...
1282 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
1283 ... this file, and...
1284 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
1285 ... this file, and...
1286 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
1287 ... this file, and...
1288 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
1289 ... this file, and...
1290 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
1291 ... this file, and...
1292 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
1293 ... this file into...
1294 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
1297 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
1298 Make failure observable.
1300 2016-04-12 Jakub Jelinek <jakub@redhat.com>
1302 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
1304 * target.c (gomp_target_fallback_firstprivate,
1305 gomp_target_unshare_firstprivate): Removed.
1306 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
1307 before waiting for dependencies.
1308 (gomp_target_task_fn): Don't copy firstprivate vars here.
1309 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
1310 firstprivate_copies here.
1311 (gomp_create_target_task): Don't initialize firstprivate_copies field.
1312 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
1313 explicit/implicit firstprivate.
1315 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
1319 PR tree-optimization/70373
1323 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
1325 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
1327 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
1329 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
1331 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
1333 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
1335 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
1337 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
1339 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
1341 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
1342 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
1343 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
1344 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
1346 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
1348 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
1350 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
1352 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
1354 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1355 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1356 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
1357 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
1358 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
1359 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
1361 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
1362 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
1363 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
1364 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1365 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
1366 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
1367 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
1368 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
1369 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
1370 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
1371 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
1372 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
1373 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1374 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1375 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
1377 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
1378 James Norris <jnorris@codesourcery.com>
1379 Nathan Sidwell <nathan@codesourcery.com>
1380 Julian Brown <julian@codesourcery.com>
1381 Cesar Philippidis <cesar@codesourcery.com>
1382 Chung-Lin Tang <cltang@codesourcery.com>
1383 Tom de Vries <tom@codesourcery.com>
1385 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
1386 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
1387 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
1388 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
1389 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
1390 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
1391 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
1392 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
1393 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
1395 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
1397 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
1399 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
1400 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
1401 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
1402 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
1404 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
1406 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
1407 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
1408 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
1409 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
1410 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
1411 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
1412 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
1413 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
1414 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1415 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
1417 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
1418 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
1419 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
1421 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
1423 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
1425 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
1427 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
1429 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
1430 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
1431 ... this new file. Update.
1432 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
1433 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
1434 ... this new file. Update.
1435 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
1436 file. Incorporate...
1437 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
1439 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
1441 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
1443 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
1445 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
1447 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
1448 set-torture-options.
1450 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
1452 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
1454 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1455 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
1456 -fno-builtin-acc_on_device instead of -O0.
1457 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
1459 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
1460 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
1462 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
1463 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
1464 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
1465 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
1466 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
1467 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
1468 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
1469 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1470 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1471 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
1472 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1473 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
1474 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
1475 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
1476 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
1477 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
1478 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
1479 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
1481 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
1483 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
1486 2016-03-24 Martin Liska <mliska@suse.cz>
1488 * plugin/plugin-hsa.c (packet_store_release): New function
1489 that is taken from the HSA runtime manual.
1490 (GOMP_OFFLOAD_run): Use the function.
1492 2016-03-23 Jakub Jelinek <jakub@redhat.com>
1495 * testsuite/libgomp.c++/pr70376.C: New test.
1497 2016-03-23 Tom de Vries <tom@codesourcery.com>
1499 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
1500 initialization of lresult and lvresult.
1501 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
1503 2016-03-23 James Norris <jnorris@codesourcery.com>
1504 Daichi Fukuoka <dc-fukuoka@sgi.com>
1507 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
1508 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
1509 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
1510 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
1512 2016-03-23 Martin Liska <mliska@suse.cz>
1515 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
1516 argument just in case a dispatched kernel uses that argument.
1518 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
1520 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
1521 -ftree-parallelize-loops/-fopenacc changes.
1522 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
1524 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
1526 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
1528 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
1530 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
1531 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
1533 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
1535 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
1536 always_ld_library_path the path to libgcc_s.
1538 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
1541 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
1543 2016-03-09 Tom de Vries <tom@codesourcery.com>
1545 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
1546 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
1547 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
1549 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
1550 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
1551 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
1552 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
1554 2016-03-07 Martin Jambor <mjambor@suse.cz>
1556 * testsuite/lib/libgomp.exp
1557 (check_effective_target_hsa_offloading_selected_nocache): New.
1558 (check_effective_target_hsa_offloading_selected): Likewise.
1559 * testsuite/libgomp.hsa.c/c.exp: Likewise.
1560 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
1561 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
1562 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
1563 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
1564 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
1565 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
1566 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
1567 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
1568 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
1569 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
1570 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
1571 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
1572 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
1573 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
1574 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
1575 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
1577 2016-03-07 Martin Jambor <mjambor@suse.cz>
1579 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
1580 non-shared memory accelerators.
1581 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
1582 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
1583 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
1584 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
1585 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
1586 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
1587 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
1588 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
1589 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
1591 2016-03-07 Martin Jambor <mjambor@suse.cz>
1593 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
1596 2016-03-02 Jakub Jelinek <jakub@redhat.com>
1599 * testsuite/libgomp.c++/pr69555-1.C: New test.
1600 * testsuite/libgomp.c++/pr69555-2.C: New test.
1602 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
1603 Martin Jambor <mjambor@suse.cz>
1605 * testsuite/lib/libgomp.exp
1606 (check_effective_target_offload_device_shared_as): New proc.
1607 * testsuite/libgomp.c++/declare_target-1.C: New test.
1609 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
1612 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
1614 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
1616 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
1617 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
1619 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
1620 -ftree-parallelize-loops/-fopenacc changes.
1621 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
1622 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
1624 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
1626 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
1628 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
1630 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
1632 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
1634 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
1636 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
1637 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
1639 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
1640 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
1642 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
1643 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
1646 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
1648 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
1650 2016-02-19 Jakub Jelinek <jakub@redhat.com>
1653 * testsuite/libgomp.c/pr69805.c: New test.
1655 2016-02-16 Tom de Vries <tom@codesourcery.com>
1658 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
1660 2016-02-09 Tom de Vries <tom@codesourcery.com>
1662 PR tree-optimization/69599
1663 * testsuite/libgomp.c/omp-nested-3.c: New test.
1664 * testsuite/libgomp.c/pr46032-2.c: New test.
1665 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
1666 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
1668 2016-02-09 Tom de Vries <tom@codesourcery.com>
1671 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
1673 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
1675 * testsuite/libgomp.c/target-31.c: Fix testcase.
1677 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
1679 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
1681 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
1682 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
1683 reduction and map clauses.
1684 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
1686 2016-02-02 James Norris <jnorris@codesourcery.com>
1688 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
1690 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
1692 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
1693 * oacc-parallel.c (GOACC_host_data): Remove function definition.
1695 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
1698 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
1700 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
1701 (hsa_kmt_lib): Set variables.
1702 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
1703 always_ld_library_path.
1704 * Makefile.in: Regenerate.
1705 * configure: Likewise.
1706 * testsuite/Makefile.in: Likewise.
1708 * plugin/configfrag.ac (offload_additional_options)
1709 (offload_additional_lib_paths): Don't amend for hsa offloading.
1710 * configure: Regenerate.
1712 * plugin/configfrag.ac: Don't configure for offloading target if
1713 we don't build the corresponding plugin.
1714 * configure: Regenerate.
1716 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
1718 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
1719 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
1721 2016-01-26 Tom de Vries <tom@codesourcery.com>
1723 PR tree-optimization/69110
1724 * testsuite/libgomp.c/pr69110.c: New test.
1726 2016-01-25 Richard Biener <rguenther@suse.de>
1729 * testsuite/libgomp.c++/pr69393.C: New testcase.
1731 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
1733 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
1734 function wasn't mapped to the device with non-shared memory.
1736 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
1738 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
1740 2016-01-19 Martin Jambor <mjambor@suse.cz>
1741 Martin Liska <mliska@suse.cz>
1743 * plugin/Makefrag.am: Add HSA plugin requirements.
1744 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
1745 (HSA_RUNTIME_LIB): Likewise.
1746 (HSA_RUNTIME_CPPFLAGS): Likewise.
1747 (HSA_RUNTIME_INCLUDE): New substitution.
1748 (HSA_RUNTIME_LIB): Likewise.
1749 (HSA_RUNTIME_LDFLAGS): Likewise.
1750 (hsa-runtime): New configure option.
1751 (hsa-runtime-include): Likewise.
1752 (hsa-runtime-lib): Likewise.
1753 (PLUGIN_HSA): New substitution variable.
1754 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
1756 (PLUGIN_HSA_CPPFLAGS): Likewise.
1757 (PLUGIN_HSA_LDFLAGS): Likewise.
1758 (PLUGIN_HSA_LIBS): Likewise.
1759 Check that we have access to HSA run-time.
1760 * libgomp-plugin.h (offload_target_type): New element
1761 OFFLOAD_TARGET_TYPE_HSA.
1762 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
1764 (bool gomp_create_target_task): Updated.
1765 (gomp_device_descr): Extra parameter of run_func and async_run_func,
1766 new field can_run_func.
1767 * libgomp_g.h (GOMP_target_ext): Update prototype.
1768 * oacc-host.c (host_run): Added a new parameter args.
1769 * target.c (calculate_firstprivate_requirements): New function.
1770 (copy_firstprivate_data): Likewise.
1771 (gomp_target_fallback_firstprivate): Use them.
1772 (gomp_target_unshare_firstprivate): New function.
1773 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
1775 (GOMP_target): Do host fallback for all shared memory devices. Do not
1776 pass any args to plugins.
1777 (GOMP_target_ext): Introduce device-specific argument parameter args.
1778 Allow host fallback if device shares memory. Do not remap data if
1779 device has shared memory.
1780 (gomp_target_task_fn): Likewise. Also treat shared memory devices
1781 like host fallback for mappings.
1782 (GOMP_target_data): Treat shared memory devices like host fallback.
1783 (GOMP_target_data_ext): Likewise.
1784 (GOMP_target_update): Likewise.
1785 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
1786 gomp_create_target_task.
1787 (GOMP_target_enter_exit_data): Likewise.
1788 (omp_target_alloc): Treat shared memory devices like host fallback.
1789 (omp_target_free): Likewise.
1790 (omp_target_is_present): Likewise.
1791 (omp_target_memcpy): Likewise.
1792 (omp_target_memcpy_rect): Likewise.
1793 (omp_target_associate_ptr): Likewise.
1794 (gomp_load_plugin_for_device): Also load can_run.
1795 * task.c (GOMP_PLUGIN_target_task_completion): Free
1796 firstprivate_copies.
1797 (gomp_create_target_task): Accept new argument args and store it to
1799 * plugin/plugin-hsa.c: New file.
1801 2016-01-18 Tom de Vries <tom@codesourcery.com>
1803 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
1804 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
1805 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
1806 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
1807 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
1808 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
1809 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
1810 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
1811 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
1812 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
1813 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
1815 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
1817 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
1818 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
1819 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
1820 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
1821 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
1822 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
1823 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
1824 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
1826 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
1828 2016-01-15 Jakub Jelinek <jakub@redhat.com>
1830 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
1832 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
1834 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
1836 2016-01-12 James Norris <jnorris@codesourcery.com>
1838 * libgomp.texi: Updates for OpenACC.
1840 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
1842 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
1844 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
1847 * testsuite/libgomp.fortran/pr66680.f90: New test.
1849 2016-01-07 Jakub Jelinek <jakub@redhat.com>
1852 * testsuite/libgomp.c/pr68960.c: New test.
1854 2016-01-06 Nathan Sidwell <nathan@acm.org>
1856 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
1857 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
1859 2016-01-04 Jakub Jelinek <jakub@redhat.com>
1861 Update copyright years.
1863 * libgomp.texi: Bump @copying's copyright year.
1865 2015-12-31 Nathan Sidwell <nathan@acm.org>
1867 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
1868 dg-additional-options syntax.
1869 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
1870 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
1871 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
1872 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
1873 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
1874 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
1875 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
1876 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
1877 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
1878 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
1879 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
1880 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
1881 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1882 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
1883 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
1884 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
1885 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
1886 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1888 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
1890 * libgomp.h (REFCOUNT_LINK): Define.
1891 (struct splay_tree_key_s): Add link_key.
1892 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
1893 Replace target address of the pointer with target address of newly
1894 mapped object in the splay tree. Set link pointer on target to the
1895 device address of the mapped object.
1896 (gomp_unmap_vars): Restore target address of the pointer in the splay
1897 tree for REFCOUNT_LINK objects after unmapping.
1898 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
1899 declare target link" objects.
1900 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
1901 "omp declare target link" objects, which were mapped for the image.
1902 (gomp_exit_data): Restore target address of the pointer in the splay
1903 tree for REFCOUNT_LINK objects after unmapping.
1904 * testsuite/libgomp.c/target-link-1.c: New file.
1906 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
1908 * libgomp.h (gomp_device_state): New enum.
1909 (struct gomp_device_descr): Replace is_initialized with state.
1910 (gomp_fini_device): Remove declaration.
1911 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
1912 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
1913 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
1914 (acc_set_device_type): Use state instead of is_initialized.
1915 (acc_set_device_num): Likewise.
1916 * target.c (resolve_device): Use state instead of is_initialized.
1917 Do not initialize finalized device.
1918 (gomp_map_vars): Do nothing if device is finalized.
1919 (gomp_unmap_vars): Likewise.
1920 (gomp_update): Likewise.
1921 (GOMP_offload_register_ver): Use state instead of is_initialized.
1922 (GOMP_offload_unregister_ver): Likewise.
1923 (gomp_init_device): Likewise.
1924 (gomp_unload_device): Likewise.
1925 (gomp_fini_device): Remove.
1926 (gomp_get_target_fn_addr): Do nothing if device is finalized.
1927 (GOMP_target): Go to host fallback if device is finalized.
1928 (GOMP_target_ext): Likewise.
1929 (gomp_exit_data): Do nothing if device is finalized.
1930 (gomp_target_task_fn): Go to host fallback if device is finalized.
1931 (gomp_target_fini): New static function.
1932 (gomp_target_init): Use state instead of is_initialized.
1933 Call gomp_target_fini at exit.
1935 2015-12-09 Tom de Vries <tom@codesourcery.com>
1937 PR tree-optimization/68716
1938 * testsuite/libgomp.c/omp-nested-2.c: New test.
1940 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
1942 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
1943 target openacc_nvidia_accel_selected.
1944 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
1945 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
1946 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
1947 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
1949 2015-12-01 Julian Brown <julian@codesourcery.com>
1950 James Norris <James_Norris@mentor.com>
1952 * oacc-parallel.c (GOACC_host_data): New function.
1953 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
1954 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
1955 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
1956 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
1957 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
1958 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
1959 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
1961 2015-11-30 James Norris <jnorris@codesourcery.com>
1962 Cesar Philippidis <cesar@codesourcery.com>
1965 * libgomp.oacc-fortran/routine-5.f90: New test.
1966 * libgomp.oacc-fortran/routine-7.f90: New test.
1967 * libgomp.oacc-fortran/routine-9.f90: New test.
1969 2015-11-30 Tom de Vries <tom@codesourcery.com>
1971 PR tree-optimization/46032
1972 * testsuite/libgomp.c/pr46032.c: New test.
1974 2015-11-27 Jakub Jelinek <jakub@redhat.com>
1977 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
1978 (gomp_create_target_task): Call it before freeing
1979 GOMP_TARGET_TASK_DATA tasks.
1982 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
1983 in between case label and OpenMP standalone directives.
1984 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
1986 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
1988 * configure: Regenerate.
1990 2015-11-26 Jakub Jelinek <jakub@redhat.com>
1992 * testsuite/libgomp.c/target-35.c: New test.
1994 2015-11-22 James Norris <jnorris@codesourcery.com>
1995 Cesar Philippidis <cesar@codesourcery.com>
1997 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
1998 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
1999 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
2000 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
2001 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
2003 2015-11-20 Jakub Jelinek <jakub@redhat.com>
2006 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
2007 * testsuite/libgomp.c/reduction-12.c: Likewise.
2008 * testsuite/libgomp.c++/reduction-11.C: Likewise.
2009 * testsuite/libgomp.c++/reduction-12.C: Likewise.
2011 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
2013 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
2014 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
2015 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
2016 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
2017 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
2019 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
2020 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
2022 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
2024 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
2025 worker & gang cases.
2026 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
2028 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
2030 * config/nvptx/priority_queue.c: New file.
2032 2015-11-14 Jakub Jelinek <jakub@redhat.com>
2034 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
2037 2015-11-14 Jakub Jelinek <jakub@redhat.com>
2038 Aldy Hernandez <aldyh@redhat.com>
2039 Ilya Verbin <ilya.verbin@intel.com>
2041 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
2042 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
2043 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
2044 iterators or IV by chunk size.
2045 * parallel.c (gomp_resolve_num_threads): Don't assume that
2046 if thr->ts.team is non-NULL, then pool must be non-NULL.
2047 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
2048 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
2049 GOMP_PLUGIN_target_task_completion.
2050 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
2051 * Makefile.in: Regenerate.
2052 * libgomp.h: Shuffle prototypes and forward definitions around so
2053 priority queues can be defined.
2054 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
2055 (enum gomp_target_task_state): New enum.
2056 (struct gomp_target_task): Add state, tgt, task and team fields.
2057 (gomp_create_target_task): Change return type to bool, add
2059 (gomp_target_task_fn): Change return type to bool.
2060 (struct gomp_device_descr): Add async_run_func.
2061 (struct gomp_task): Remove children, next_child, prev_child,
2062 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
2064 (struct gomp_taskgroup): Remove children.
2065 Add taskgroup_queue.
2066 (struct gomp_team): Change task_queue type to a priority queue.
2067 (splay_compare): Define inline.
2068 (priority_queue_offset): New.
2069 (priority_node_to_task): New.
2070 (task_to_priority_node): New.
2071 * oacc-mem.c: Do not include splay-tree.h.
2072 * priority_queue.c: New file.
2073 * priority_queue.h: New file.
2074 * splay-tree.c: Do not include splay-tree.h.
2075 (splay_tree_foreach_internal): New.
2076 (splay_tree_foreach): New.
2077 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
2078 (splay_tree_callback): Define typedef.
2079 * target.c (splay_compare): Move to libgomp.h.
2080 (GOMP_target): Don't adjust *thr in any way around running offloaded
2082 (GOMP_target_ext): Likewise. Handle target nowait.
2083 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
2084 return value from gomp_create_target_task, if false, fallthrough
2085 as if no dependencies exist.
2086 (gomp_target_task_fn): Change return type to bool, return true
2087 if the task should have another part scheduled later. Handle
2089 (gomp_load_plugin_for_device): Initialize async_run.
2090 * task.c (gomp_init_task): Initialize children_queue.
2091 (gomp_clear_parent_in_list): New.
2092 (gomp_clear_parent_in_tree): New.
2093 (gomp_clear_parent): Handle priorities.
2094 (GOMP_task): Likewise.
2095 (priority_queue_move_task_first,
2096 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
2098 (gomp_create_target_task): Use priority queues. Change return type
2099 to bool, add state argument, return false if for async
2100 {{enter,exit} data,update} constructs no dependencies need to be
2101 waited for, handle target nowait. Set task->fn to NULL instead of
2102 gomp_target_task_fn.
2103 (verify_children_queue): Remove.
2104 (priority_list_upgrade_task): New.
2105 (priority_queue_upgrade_task): New.
2106 (verify_task_queue): Remove.
2107 (priority_list_downgrade_task): New.
2108 (priority_queue_downgrade_task): New.
2109 (gomp_task_run_pre): Use priority queues.
2110 Abstract code out to priority_queue_downgrade_task.
2111 (gomp_task_run_post_handle_dependers): Use priority queues.
2112 (gomp_task_run_post_remove_parent): Likewise.
2113 (gomp_task_run_post_remove_taskgroup): Likewise.
2114 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
2116 (GOMP_taskwait): Likewise.
2117 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
2118 priority-queue_upgrade_task.
2119 (GOMP_taskgroup_start): Use priority queues.
2120 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
2121 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
2123 * taskloop.c (GOMP_taskloop): Handle priorities.
2124 * team.c (gomp_new_team): Call priority_queue_init.
2125 (free_team): Call priority_queue_free.
2126 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
2127 team created for target nowait in implicit parallel region.
2128 (gomp_team_start): For nested check, test thr->ts.level instead of
2129 thr->ts.team != NULL.
2130 * testsuite/libgomp.c/doacross-3.c: New test.
2131 * testsuite/libgomp.c/ordered-5.c: New test.
2132 * testsuite/libgomp.c/priority.c: New test.
2133 * testsuite/libgomp.c/target-31.c: New test.
2134 * testsuite/libgomp.c/target-32.c: New test.
2135 * testsuite/libgomp.c/target-33.c: New test.
2136 * testsuite/libgomp.c/target-34.c: New test.
2138 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
2140 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
2142 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
2145 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
2147 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
2148 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
2150 2015-11-12 James Norris <jnorris@codesourcery.com>
2151 Joseph Myers <joseph@codesourcery.com>
2153 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
2154 * oacc-parallel.c (GOACC_declare): New function.
2155 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
2156 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
2157 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
2158 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
2159 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
2161 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
2163 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
2165 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
2167 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
2168 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
2170 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
2172 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
2175 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
2177 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
2178 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
2179 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
2180 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
2181 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
2183 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
2185 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
2186 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
2188 2015-11-05 Jakub Jelinek <jakub@redhat.com>
2189 Ilya Verbin <ilya.verbin@intel.com>
2191 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
2192 GOMP_loop_nonmonotonic_dynamic_start,
2193 GOMP_loop_nonmonotonic_guided_next,
2194 GOMP_loop_nonmonotonic_guided_start,
2195 GOMP_loop_ull_nonmonotonic_dynamic_next,
2196 GOMP_loop_ull_nonmonotonic_dynamic_start,
2197 GOMP_loop_ull_nonmonotonic_guided_next,
2198 GOMP_loop_ull_nonmonotonic_guided_start,
2199 GOMP_parallel_loop_nonmonotonic_dynamic,
2200 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
2201 (GOMP_target_41): Renamed to ...
2202 (GOMP_target_ext): ... this. Add num_teams and thread_limit
2204 (GOMP_target_data_41): Renamed to ...
2205 (GOMP_target_data_ext): ... this.
2206 (GOMP_target_update_41): Renamed to ...
2207 (GOMP_target_update_ext): ... this.
2208 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
2209 GOMP_target_data_ext and GOMP_target_update_ext instead of
2210 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
2211 Export GOMP_loop_nonmonotonic_dynamic_next,
2212 GOMP_loop_nonmonotonic_dynamic_start,
2213 GOMP_loop_nonmonotonic_guided_next,
2214 GOMP_loop_nonmonotonic_guided_start,
2215 GOMP_loop_ull_nonmonotonic_dynamic_next,
2216 GOMP_loop_ull_nonmonotonic_dynamic_start,
2217 GOMP_loop_ull_nonmonotonic_guided_next,
2218 GOMP_loop_ull_nonmonotonic_guided_start,
2219 GOMP_parallel_loop_nonmonotonic_dynamic and
2220 GOMP_parallel_loop_nonmonotonic_guided.
2221 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
2222 GOMP_parallel_loop_nonmonotonic_guided,
2223 GOMP_loop_nonmonotonic_dynamic_start,
2224 GOMP_loop_nonmonotonic_guided_start,
2225 GOMP_loop_nonmonotonic_dynamic_next,
2226 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
2227 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
2228 GOMP_loop_ull_nonmonotonic_guided_start,
2229 GOMP_loop_ull_nonmonotonic_dynamic_next,
2230 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
2231 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
2233 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
2234 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
2235 Use gomp_map_val function.
2236 (gomp_target_fallback_firstprivate): New static function.
2237 (GOMP_target_41): Renamed to ...
2238 (GOMP_target_ext): ... this. Add num_teams and thread_limit
2239 arguments. Move firstprivate fallback handling into a new
2241 (GOMP_target_data_41): Renamed to ...
2242 (GOMP_target_data_ext): ... this.
2243 (GOMP_target_update_41): Renamed to ...
2244 (GOMP_target_update_ext): ... this.
2245 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
2246 gomp_map_0len_lookup instead of gomp_map_lookup.
2247 (omp_target_is_present): Use gomp_map_0len_lookup instead of
2249 * testsuite/libgomp.c/target-28.c: Likewise.
2250 * testsuite/libgomp.c/monotonic-1.c: New test.
2251 * testsuite/libgomp.c/monotonic-2.c: New test.
2252 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
2253 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
2254 * testsuite/libgomp.c/pr66199-5.c: New test.
2255 * testsuite/libgomp.c/pr66199-6.c: New test.
2256 * testsuite/libgomp.c/pr66199-7.c: New test.
2257 * testsuite/libgomp.c/pr66199-8.c: New test.
2258 * testsuite/libgomp.c/pr66199-9.c: New test.
2259 * testsuite/libgomp.c/reduction-11.c: New test.
2260 * testsuite/libgomp.c/reduction-12.c: New test.
2261 * testsuite/libgomp.c/reduction-13.c: New test.
2262 * testsuite/libgomp.c/reduction-14.c: New test.
2263 * testsuite/libgomp.c/reduction-15.c: New test.
2264 * testsuite/libgomp.c/target-12.c (main): Adjust for
2265 omp_target_is_present change for one-past-last element.
2266 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
2267 the same var is both mapped and privatized.
2268 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
2269 handling of zero-length array sections.
2270 * testsuite/libgomp.c/target-28.c: New test.
2271 * testsuite/libgomp.c/target-29.c: New test.
2272 * testsuite/libgomp.c/target-30.c: New test.
2273 * testsuite/libgomp.c/target-teams-1.c: New test.
2274 * testsuite/libgomp.c++/member-6.C: New test.
2275 * testsuite/libgomp.c++/member-7.C: New test.
2276 * testsuite/libgomp.c++/monotonic-1.C: New test.
2277 * testsuite/libgomp.c++/monotonic-2.C: New test.
2278 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
2279 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
2280 * testsuite/libgomp.c++/pr66199-3.C: New test.
2281 * testsuite/libgomp.c++/pr66199-4.C: New test.
2282 * testsuite/libgomp.c++/pr66199-5.C: New test.
2283 * testsuite/libgomp.c++/pr66199-6.C: New test.
2284 * testsuite/libgomp.c++/pr66199-7.C: New test.
2285 * testsuite/libgomp.c++/pr66199-8.C: New test.
2286 * testsuite/libgomp.c++/pr66199-9.C: New test.
2287 * testsuite/libgomp.c++/reduction-11.C: New test.
2288 * testsuite/libgomp.c++/reduction-12.C: New test.
2289 * testsuite/libgomp.c++/target-13.C: New test.
2290 * testsuite/libgomp.c++/target-14.C: New test.
2291 * testsuite/libgomp.c++/target-15.C: New test.
2292 * testsuite/libgomp.c++/target-16.C: New test.
2293 * testsuite/libgomp.c++/target-17.C: New test.
2294 * testsuite/libgomp.c++/target-18.C: New test.
2295 * testsuite/libgomp.c++/target-19.C: New test.
2297 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
2299 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
2301 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
2302 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
2303 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
2304 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
2305 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
2306 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
2307 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
2308 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
2309 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
2310 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
2311 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
2312 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
2313 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
2314 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
2316 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
2318 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
2319 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
2320 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
2321 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
2322 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
2323 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
2324 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
2325 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
2327 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
2329 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
2330 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
2331 (GOMP_OFFLOAD_openacc_parallel): Likewise.
2332 * oacc-host.c (host_openacc_exec): Likewise.
2333 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
2335 2015-11-03 Julian Brown <julian@codesourcery.com>
2336 Thomas Schwinge <thomas@codesourcery.com>
2338 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
2339 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
2340 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
2342 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
2343 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
2345 2015-11-03 James Norris <jnorris@codesourcery.com>
2347 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
2349 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
2351 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
2352 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
2353 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
2354 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
2355 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
2357 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
2359 * openacc.h (enum acc_device_t): Reformat. Ensure layout
2361 (enum acc_async_t): Reformat.
2362 (acc_on_device): Declare compatible with builtin and provide C++
2364 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
2366 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
2367 Cesar Philippidis <cesar@codesourcery.com>
2369 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
2370 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
2371 ... this. Add a description of the test at the top of the file.
2372 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
2373 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
2374 ... this. Add a description of the test at the top of the file.
2376 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
2378 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
2379 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
2380 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
2381 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
2382 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
2383 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
2385 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
2387 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
2390 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
2393 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
2395 2015-10-27 James Norris <jnorris@codesourcery.com>
2397 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
2398 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
2400 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
2402 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
2403 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
2405 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
2406 acc_device_nvidia usage.
2407 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
2408 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
2409 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
2411 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
2412 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
2415 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
2419 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
2420 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
2422 2015-10-23 Tom de Vries <tom@codesourcery.com>
2425 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
2427 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
2429 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
2431 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
2433 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
2434 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
2436 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
2437 to 0 when mapnum is 0.
2439 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
2441 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
2442 Cast to int from int32_t.
2444 2015-10-13 Jakub Jelinek <jakub@redhat.com>
2445 Aldy Hernandez <aldyh@redhat.com>
2446 Ilya Verbin <ilya.verbin@intel.com>
2448 * config/linux/affinity.c (omp_get_place_num_procs,
2449 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
2450 * config/linux/doacross.h: New file.
2451 * config/posix/affinity.c (omp_get_place_num_procs,
2452 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
2453 * config/posix/doacross.h: New file.
2454 * env.c: Include gomp-constants.h.
2455 (struct gomp_task_icv): Rename run_sched_modifier to
2456 run_sched_chunk_size.
2457 (gomp_max_task_priority_var): New variable.
2458 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
2459 (handle_omp_display_env): Change _OPENMP value from 201307 to
2460 201511. Print OMP_MAX_TASK_PRIORITY.
2461 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
2462 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
2463 chunk_size and run_sched_modifier to run_sched_chunk_size.
2464 (omp_get_max_task_priority, omp_get_initial_device,
2465 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
2466 omp_get_partition_place_nums): New functions.
2467 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
2468 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
2470 (omp_get_num_places_, omp_get_place_num_procs_,
2471 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
2472 omp_get_place_proc_ids_8_, omp_get_place_num_,
2473 omp_get_partition_num_places_, omp_get_partition_place_nums_,
2474 omp_get_partition_place_nums_8_, omp_get_initial_device_,
2475 omp_get_max_task_priority_): New functions.
2476 * libgomp_g.h (GOMP_loop_doacross_static_start,
2477 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
2478 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
2479 GOMP_loop_ull_doacross_dynamic_start,
2480 GOMP_loop_ull_doacross_guided_start,
2481 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
2482 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
2483 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
2484 GOMP_target_data_41, GOMP_target_update_41,
2485 GOMP_target_enter_exit_data): New prototypes.
2486 (GOMP_task): Add prototype argument.
2487 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
2488 (struct gomp_doacross_work_share): New type.
2489 (struct gomp_work_share): Add doacross field.
2490 (struct gomp_task_icv): Rename run_sched_modifier to
2491 run_sched_chunk_size.
2492 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
2493 GOMP_TASK_UNDEFERRED. Add comments.
2494 (struct gomp_task_depend_entry): Add comments.
2495 (struct gomp_task): Likewise.
2496 (struct gomp_taskgroup): Likewise.
2497 (struct gomp_target_task): New type.
2498 (struct gomp_team): Add comment.
2499 (gomp_get_place_proc_ids_8, gomp_doacross_init,
2500 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
2501 gomp_create_target_task, gomp_target_task_fn): New prototypes.
2502 (struct target_var_desc): New type.
2503 (struct target_mem_desc): Adjust comment. Use struct
2504 target_var_desc instead of splay_tree_key for list.
2505 (REFCOUNT_INFINITY): Define.
2506 (struct splay_tree_key_s): Remove copy_from field.
2507 (struct gomp_device_descr): Add dev2dev_func field.
2508 (enum gomp_map_vars_kind): New enum.
2509 (gomp_map_vars): Add one argument.
2510 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
2511 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
2512 omp_get_place_num_procs, omp_get_place_num_procs_,
2513 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
2514 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
2515 omp_get_place_num_, omp_get_partition_num_places,
2516 omp_get_partition_num_places_, omp_get_partition_place_nums,
2517 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
2518 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
2519 omp_target_free, omp_target_is_present, omp_target_memcpy,
2520 omp_target_memcpy_rect, omp_target_associate_ptr and
2521 omp_target_disassociate_ptr.
2522 (GOMP_4.0.2): Renamed to ...
2523 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
2524 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
2525 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
2526 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
2527 GOMP_loop_doacross_static_start, GOMP_doacross_post,
2528 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
2529 GOMP_loop_ull_doacross_guided_start,
2530 GOMP_loop_ull_doacross_runtime_start,
2531 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
2532 GOMP_doacross_ull_wait.
2533 * libgomp.texi: Document omp_get_max_task_priority.
2534 Rename modifier argument to chunk_size for omp_set_schedule and
2535 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
2536 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
2537 to run_sched_chunk_size renaming.
2538 (GOMP_loop_ordered_runtime_start): Likewise.
2539 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
2540 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
2541 GOMP_parallel_loop_runtime_start): New functions.
2542 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
2543 to run_sched_chunk_size renaming.
2544 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
2545 GOMP_loop_doacross_guided_start): New functions or aliases.
2546 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
2547 run_sched_modifier to run_sched_chunk_size renaming.
2548 (GOMP_loop_ull_ordered_runtime_start): Likewise.
2549 (gomp_loop_ull_doacross_static_start,
2550 gomp_loop_ull_doacross_dynamic_start,
2551 gomp_loop_ull_doacross_guided_start,
2552 GOMP_loop_ull_doacross_runtime_start): New functions.
2553 (GOMP_loop_ull_doacross_static_start,
2554 GOMP_loop_ull_doacross_dynamic_start,
2555 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
2556 * oacc-mem.c (acc_map_data, present_create_copy,
2557 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
2559 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
2560 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
2561 instead of false to gomp_map_vars.
2562 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
2563 * omp.h.in (omp_lock_hint_t): New type.
2564 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
2565 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
2566 omp_get_place_num, omp_get_partition_num_places,
2567 omp_get_partition_place_nums, omp_get_initial_device,
2568 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
2569 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
2570 omp_target_associate_ptr, omp_target_disassociate_ptr): New
2572 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
2573 (omp_lock_hint_none, omp_lock_hint_uncontended,
2574 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
2575 omp_lock_hint_speculative): New parameters.
2576 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
2577 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
2578 omp_get_place_num, omp_get_partition_num_places,
2579 omp_get_partition_place_nums, omp_get_initial_device,
2580 omp_get_max_task_priority): New interfaces.
2581 (omp_set_schedule, omp_get_schedule): Rename modifier argument
2583 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
2584 (omp_lock_hint_none, omp_lock_hint_uncontended,
2585 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
2586 omp_lock_hint_speculative): New parameters.
2587 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
2588 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
2589 omp_get_place_num, omp_get_partition_num_places,
2590 omp_get_partition_place_nums, omp_get_initial_device,
2591 omp_get_max_task_priority): New functions and subroutines.
2592 * ordered.c: Include stdarg.h and string.h.
2593 (MAX_COLLAPSED_BITS): Define.
2594 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
2595 gomp_doacross_ull_init, GOMP_doacross_ull_post,
2596 GOMP_doacross_ull_wait): New functions.
2597 * target.c: Include errno.h.
2598 (resolve_device): If device is not initialized, call
2599 gomp_init_device on it.
2600 (gomp_map_lookup): New function.
2601 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
2602 Don't bump refcount if REFCOUNT_INFINITY. Handle
2603 GOMP_MAP_ALWAYS_TO_P.
2604 (get_kind): Rename is_openacc argument to short_mapkind.
2605 (gomp_map_pointer): Use gomp_map_lookup.
2606 (gomp_map_fields_existing): New function.
2607 (gomp_map_vars): Rename is_openacc argument to short_mapkind
2608 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
2609 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
2610 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
2611 Adjust for tgt->list changed type and copy_from living in there.
2612 (gomp_copy_from_async): Adjust for tgt->list changed type and
2613 copy_from living in there.
2614 (gomp_unmap_vars): Likewise.
2615 (gomp_update): Likewise. Rename is_openacc argument to
2616 short_mapkind. Don't fail if object is not mapped.
2617 (gomp_load_image_to_device): Initialize refcount to
2619 (gomp_target_fallback): New function.
2620 (gomp_get_target_fn_addr): Likewise.
2621 (GOMP_target): Adjust gomp_map_vars caller, use
2622 gomp_get_target_fn_addr and gomp_target_fallback.
2623 (GOMP_target_41): New function.
2624 (gomp_target_data_fallback): New function.
2625 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
2626 (GOMP_target_data_41): New function.
2627 (GOMP_target_update): Adjust gomp_update caller.
2628 (GOMP_target_update_41): New function.
2629 (gomp_exit_data, GOMP_target_enter_exit_data,
2630 gomp_target_task_fn, omp_target_alloc, omp_target_free,
2631 omp_target_is_present, omp_target_memcpy,
2632 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
2633 omp_target_associate_ptr, omp_target_disassociate_ptr,
2634 gomp_load_plugin_for_device): New functions.
2635 * task.c: Include gomp-constants.h. Include taskloop.c
2636 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
2637 (gomp_task_handle_depend): New function.
2638 (GOMP_task): Use it. Add priority argument. Use
2639 gomp-constant.h constants instead of hardcoded numbers.
2640 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
2641 (gomp_create_target_task): New function.
2642 (verify_children_queue, verify_taskgroup_queue,
2643 verify_task_queue): New functions.
2644 (gomp_task_run_pre): Call verify_*_queue functions.
2645 If an upcoming tied task is about to leave the sibling or
2646 taskgroup queues in an invalid state, adjust appropriately.
2647 Remove taskgroup argument. Add comments.
2648 (gomp_task_run_post_handle_dependers): Add comments.
2649 (gomp_task_run_post_remove_parent): Likewise.
2650 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
2651 (GOMP_taskwait): Likewise. Add comments.
2652 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
2653 problem such that the first non parent_depends_on task does not
2654 end up at the end of the children queue.
2655 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
2656 GOMP_TASK_UNDEFERRED.
2657 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
2658 * taskloop.c: New file.
2659 * testsuite/lib/libgomp.exp
2660 (check_effective_target_offload_device_nonshared_as): New proc.
2661 * testsuite/libgomp.c/affinity-2.c: New test.
2662 * testsuite/libgomp.c/doacross-1.c: New test.
2663 * testsuite/libgomp.c/doacross-2.c: New test.
2664 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
2665 Add map clause to target.
2666 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
2667 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
2668 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
2669 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
2670 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
2672 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
2673 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
2674 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
2675 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
2676 not defined. Use those where needed.
2677 * testsuite/libgomp.c/for-4.c: New test.
2678 * testsuite/libgomp.c/for-5.c: New test.
2679 * testsuite/libgomp.c/for-6.c: New test.
2680 * testsuite/libgomp.c/linear-1.c: New test.
2681 * testsuite/libgomp.c/ordered-4.c: New test.
2682 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
2683 only allowed on the loop iterator.
2684 * testsuite/libgomp.c/pr66199-3.c: New test.
2685 * testsuite/libgomp.c/pr66199-4.c: New test.
2686 * testsuite/libgomp.c/reduction-7.c: New test.
2687 * testsuite/libgomp.c/reduction-8.c: New test.
2688 * testsuite/libgomp.c/reduction-9.c: New test.
2689 * testsuite/libgomp.c/reduction-10.c: New test.
2690 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
2692 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
2693 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
2694 * testsuite/libgomp.c/target-11.c: New test.
2695 * testsuite/libgomp.c/target-12.c: New test.
2696 * testsuite/libgomp.c/target-13.c: New test.
2697 * testsuite/libgomp.c/target-14.c: New test.
2698 * testsuite/libgomp.c/target-15.c: New test.
2699 * testsuite/libgomp.c/target-16.c: New test.
2700 * testsuite/libgomp.c/target-17.c: New test.
2701 * testsuite/libgomp.c/target-18.c: New test.
2702 * testsuite/libgomp.c/target-19.c: New test.
2703 * testsuite/libgomp.c/target-20.c: New test.
2704 * testsuite/libgomp.c/target-21.c: New test.
2705 * testsuite/libgomp.c/target-22.c: New test.
2706 * testsuite/libgomp.c/target-23.c: New test.
2707 * testsuite/libgomp.c/target-24.c: New test.
2708 * testsuite/libgomp.c/target-25.c: New test.
2709 * testsuite/libgomp.c/target-26.c: New test.
2710 * testsuite/libgomp.c/target-27.c: New test.
2711 * testsuite/libgomp.c/taskloop-1.c: New test.
2712 * testsuite/libgomp.c/taskloop-2.c: New test.
2713 * testsuite/libgomp.c/taskloop-3.c: New test.
2714 * testsuite/libgomp.c/taskloop-4.c: New test.
2715 * testsuite/libgomp.c++/ctor-13.C: New test.
2716 * testsuite/libgomp.c++/doacross-1.C: New test.
2717 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
2718 Replace offload_device with offload_device_nonshared_as.
2719 * testsuite/libgomp.c++/for-12.C: New test.
2720 * testsuite/libgomp.c++/for-13.C: New test.
2721 * testsuite/libgomp.c++/for-14.C: New test.
2722 * testsuite/libgomp.c++/linear-1.C: New test.
2723 * testsuite/libgomp.c++/member-1.C: New test.
2724 * testsuite/libgomp.c++/member-2.C: New test.
2725 * testsuite/libgomp.c++/member-3.C: New test.
2726 * testsuite/libgomp.c++/member-4.C: New test.
2727 * testsuite/libgomp.c++/member-5.C: New test.
2728 * testsuite/libgomp.c++/ordered-1.C: New test.
2729 * testsuite/libgomp.c++/reduction-5.C: New test.
2730 * testsuite/libgomp.c++/reduction-6.C: New test.
2731 * testsuite/libgomp.c++/reduction-7.C: New test.
2732 * testsuite/libgomp.c++/reduction-8.C: New test.
2733 * testsuite/libgomp.c++/reduction-9.C: New test.
2734 * testsuite/libgomp.c++/reduction-10.C: New test.
2735 * testsuite/libgomp.c++/reference-1.C: New test.
2736 * testsuite/libgomp.c++/simd14.C: New test.
2737 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
2738 * testsuite/libgomp.c++/target-5.C: New test.
2739 * testsuite/libgomp.c++/target-6.C: New test.
2740 * testsuite/libgomp.c++/target-7.C: New test.
2741 * testsuite/libgomp.c++/target-8.C: New test.
2742 * testsuite/libgomp.c++/target-9.C: New test.
2743 * testsuite/libgomp.c++/target-10.C: New test.
2744 * testsuite/libgomp.c++/target-11.C: New test.
2745 * testsuite/libgomp.c++/target-12.C: New test.
2746 * testsuite/libgomp.c++/taskloop-1.C: New test.
2747 * testsuite/libgomp.c++/taskloop-2.C: New test.
2748 * testsuite/libgomp.c++/taskloop-3.C: New test.
2749 * testsuite/libgomp.c++/taskloop-4.C: New test.
2750 * testsuite/libgomp.c++/taskloop-5.C: New test.
2751 * testsuite/libgomp.c++/taskloop-6.C: New test.
2752 * testsuite/libgomp.c++/taskloop-7.C: New test.
2753 * testsuite/libgomp.c++/taskloop-8.C: New test.
2754 * testsuite/libgomp.c++/taskloop-9.C: New test.
2755 * testsuite/libgomp.fortran/affinity1.f90: New test.
2756 * testsuite/libgomp.fortran/affinity2.f90: New test.
2758 2015-10-13 Tom de Vries <tom@codesourcery.com>
2760 PR tree-optimization/67476
2761 * testsuite/libgomp.c/autopar-3.c: New test.
2762 * testsuite/libgomp.c/autopar-4.c: New test.
2763 * testsuite/libgomp.c/autopar-5.c: New test.
2764 * testsuite/libgomp.c/autopar-6.c: New test.
2765 * testsuite/libgomp.c/autopar-7.c: New test.
2766 * testsuite/libgomp.c/autopar-8.c: New test.
2768 2015-10-12 James Norris <jnorris@codesourcery.com>
2770 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
2773 2015-10-09 David Malcolm <dmalcolm@redhat.com>
2775 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
2778 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
2780 * oacc-ptx.h: Remove file, moving its content into...
2781 * config/nvptx/fortran.c: ... here...
2782 * config/nvptx/oacc-init.c: ..., here...
2783 * config/nvptx/oacc-parallel.c: ..., and here.
2784 * config/nvptx/openacc.f90: New file.
2785 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
2786 (link_ptx): Don't link in predefined bits of PTX code.
2788 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
2789 Bernd Schmidt <bernds@codesourcery.com>
2791 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
2792 (struct targ_ptx_obj): New.
2793 (nvptx_tdata): Move earlier, change data format.
2794 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
2796 (GOMP_OFFLOAD_load_image): Adjust.
2798 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
2800 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
2801 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
2802 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
2803 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
2804 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
2805 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
2806 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
2807 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
2808 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
2809 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
2810 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
2811 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
2812 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
2813 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
2814 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
2815 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
2816 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
2817 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
2818 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
2819 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
2820 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
2821 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
2822 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
2823 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
2824 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
2825 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
2826 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
2827 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
2828 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
2829 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
2830 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
2831 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
2832 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
2833 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
2834 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
2835 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
2836 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
2837 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
2838 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
2839 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
2840 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
2841 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
2842 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
2843 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
2844 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
2845 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
2846 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
2847 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
2848 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
2849 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
2850 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
2851 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
2852 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
2853 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
2854 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
2855 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
2856 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2857 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
2858 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
2859 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
2860 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
2861 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
2862 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2864 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
2866 * oacc-init.c (acc_on_device): Force optimization level.
2868 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
2870 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
2871 (cuda_errlist): Delete.
2872 (cuda_error): Reimplement.
2874 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
2876 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
2878 * libgomp.map (GOACC_parallel_keyed): New.
2879 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
2881 (GOACC_parallel_keyed): New interface. Lose geometry arguments
2882 and take keyed varargs list. Adjust call to exec_func.
2883 (GOACC_parallel): Force host fallback.
2884 * libgomp_g.h (GOACC_parallel): Remove.
2885 (GOACC_parallel_keyed): Declare.
2886 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
2887 (stuct targ_gn_descriptor): Replace name field with launch field.
2888 (nvptx_exec): Lose separate geometry args, take array. Process
2889 dynamic dimensions and adjust.
2890 (struct nvptx_tdata): Replace fn_names field with fn_descs.
2891 (GOMP_OFFLOAD_load_image): Adjust for change in function table
2893 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
2895 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
2898 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
2901 * oacc-int.h (goacc_host_init): Add declaration.
2902 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
2903 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
2905 2015-09-08 Aditya Kumar <hiraditya@msn.com>
2906 Sebastian Pop <s.pop@samsung.com>
2908 * testsuite/libgomp.graphite/bounds.c (int foo): Modifed test case to
2910 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
2911 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
2912 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
2913 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
2914 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
2916 2015-09-03 Jakub Jelinek <jakub@redhat.com>
2918 * configure.tgt: Add missing ;; in between nvptx and rtems
2921 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
2923 * config/posix/pool.h (gomp_adjust_thread_attr): New.
2924 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
2925 (gomp_thread_pool_reservoir): Add priority member.
2926 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
2928 (parse_thread_pools): Likewise.
2929 * team.c (gomp_team_start): Call configuration provided
2930 gomp_adjust_thread_attr(). Destroy thread attributes if
2932 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
2934 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
2936 * config/posix/pool.h: New.
2937 * config/rtems/pool.h: Likewise.
2938 * config/rtems/proc.c: Likewise.
2939 * libgomp.h (gomp_thread_destructor): Declare.
2940 * team.c: Include configuration provided "pool.h".
2941 (gomp_get_thread_pool): Define in configuration.
2942 (gomp_team_end): Call configuration defined
2943 gomp_release_thread_pool().
2945 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
2947 * config/rtems/bar.c: New.
2948 * config/rtems/bar.h: Likewise.
2949 * config/rtems/mutex.c: Likewise.
2950 * config/rtems/mutex.h: Likewise.
2951 * config/rtems/sem.c: Likewise.
2952 * config/rtems/sem.h: Likewise.
2953 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
2954 <sys/lock.h> header file.
2955 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
2956 supported by Newlib.
2957 * configure: Regenerate.
2959 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
2961 * team.c (gomp_new_thread_pool): Delete and move content to ...
2962 (gomp_get_thread_pool): ... new function. Allocate and
2963 initialize thread pool on demand.
2964 (get_last_team): Use gomp_get_thread_pool().
2965 (gomp_team_start): Delete thread pool initialization.
2967 2015-09-03 Tom de Vries <tom@codesourcery.com>
2969 PR tree-optimization/65637
2970 * testsuite/libgomp.c/autopar-2.c: New test.
2972 2015-08-29 Tom de Vries <tom@codesourcery.com>
2974 PR tree-optimization/46193
2975 * testsuite/libgomp.c/pr46193.c: New test.
2977 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
2980 * libgomp.map: Add 4.0.2 version.
2981 * target.c (offload_image_descr): Add version field.
2982 (gomp_load_image_to_device): Add version argument. Adjust plugin
2983 call. Improve load mismatch diagnostic.
2984 (gomp_unload_image_from_device): Add version argument. Adjust plugin
2986 (GOMP_offload_regster): Make stub function, move bulk to ...
2987 (GOMP_offload_register_ver): ... here. Process version argument.
2988 (GOMP_offload_unregister): Make stub function, move bulk to ...
2989 (GOMP_offload_unregister_ver): ... here. Process version argument.
2990 (gomp_init_device): Process version field.
2991 (gomp_unload_device): Process version field.
2992 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
2993 macros. Check plugin version.
2994 * libgomp.h (gomp_device_descr): Add version function field. Adjust
2995 loader and unloader types.
2996 * oacc-host.c: Include gomp-constants.h.
2997 (host_version): New.
2998 (host_load_image, host_unload_image): Adjust.
2999 (host_dispatch): Add host_version.
3000 * plugin/plugin-nvptx.c: Include gomp-constants.h.
3001 (GOMP_OFFLOAD_version): New.
3002 (GOMP_OFFLOAD_load_image): Add version arg and check it.
3003 (GOMP_OFFLOAD_unload_image): Likewise.
3004 * plugin/plugin-host.c: Include gomp-constants.h.
3005 (GOMP_OFFLOAD_version): New.
3006 (GOMP_OFFLOAD_load_image): Add version arg.
3007 (GOMP_OFFLOAD_unload_image): Likewise.
3009 2015-08-24 Tom de Vries <tom@codesourcery.com>
3011 PR tree-optimization/65468
3012 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
3014 2015-08-24 Tom de Vries <tom@codesourcery.com>
3016 PR tree-optimization/65468
3017 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
3019 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
3023 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
3024 (gomp_iter_guided_next): Idem.
3025 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
3026 (gomp_iter_ull_guided_next): Idem.
3027 * config/linux/wait.h (do_spin): Idem.
3029 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
3031 * libgomp-plugin.h (enum offload_target_type): Remove
3032 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
3033 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
3034 * openacc.h (enum acc_device_t): Likewise.
3035 * openacc_lib.h: Likewise.
3036 * oacc-init.c (name_of_acc_device_t): Don't handle it.
3037 (acc_on_device): Just use __builtin_acc_on_device.
3038 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
3039 of acc_on_device builtin.
3040 * plugin/plugin-host.h: Remove file.
3041 * plugin/plugin-host.c: Likewise, but salvage some content into...
3042 * oacc-host.c: ... this file.
3043 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
3044 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
3045 * Makefile.in: Regenerate.
3046 * configure: Likewise.
3047 * testsuite/lib/libgomp.exp
3048 (check_effective_target_openacc_host_nonshm_selected): Remove.
3049 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
3050 ACC_DEVICE_TYPE=host_nonshm.
3051 * testsuite/libgomp.oacc-c/c.exp: Likewise.
3052 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3053 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
3054 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
3055 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
3056 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
3058 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
3059 Jakub Jelinek <jakub@redhat.com>
3061 * config/nvptx/affinity.c: New file.
3062 * config/nvptx/alloc.c: Likewise.
3063 * config/nvptx/bar.c: Likewise.
3064 * config/nvptx/barrier.c: Likewise.
3065 * config/nvptx/critical.c: Likewise.
3066 * config/nvptx/env.c: Likewise.
3067 * config/nvptx/error.c: Likewise.
3068 * config/nvptx/fortran.c: Likewise.
3069 * config/nvptx/iter.c: Likewise.
3070 * config/nvptx/iter_ull.c: Likewise.
3071 * config/nvptx/libgomp-plugin.c: Likewise.
3072 * config/nvptx/lock.c: Likewise.
3073 * config/nvptx/loop.c: Likewise.
3074 * config/nvptx/loop_ull.c: Likewise.
3075 * config/nvptx/mutex.c: Likewise.
3076 * config/nvptx/oacc-async.c: Likewise.
3077 * config/nvptx/oacc-cuda.c: Likewise.
3078 * config/nvptx/oacc-host.c: Likewise.
3079 * config/nvptx/oacc-init.c: Likewise.
3080 * config/nvptx/oacc-mem.c: Likewise.
3081 * config/nvptx/oacc-parallel.c: Likewise.
3082 * config/nvptx/oacc-plugin.c: Likewise.
3083 * config/nvptx/omp-lock.h: Likewise.
3084 * config/nvptx/ordered.c: Likewise.
3085 * config/nvptx/parallel.c: Likewise.
3086 * config/nvptx/proc.c: Likewise.
3087 * config/nvptx/ptrlock.c: Likewise.
3088 * config/nvptx/sections.c: Likewise.
3089 * config/nvptx/sem.c: Likewise.
3090 * config/nvptx/single.c: Likewise.
3091 * config/nvptx/splay-tree.c: Likewise.
3092 * config/nvptx/target.c: Likewise.
3093 * config/nvptx/task.c: Likewise.
3094 * config/nvptx/team.c: Likewise.
3095 * config/nvptx/time.c: Likewise.
3096 * config/nvptx/work.c: Likewise.
3097 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
3098 * configure: Regenerate.
3099 * configure.tgt (config_path): Set to "nvptx" for target
3102 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
3104 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
3106 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
3108 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
3109 (cuda_errlist): Constify.
3110 (errmsg): Move into ...
3111 (cuda_error): ... here. Make smaller.
3112 (_XSTR, _STR): Delete.
3113 (cuda_synames): Delete.
3114 (verify_device_library): Delete.
3115 (nvptx_init): Don't call it.
3117 2015-07-28 Tom de Vries <tom@codesourcery.com>
3119 * testsuite/libgomp.c/uns-outer-4.c: New test.
3121 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
3123 * testsuite/libgomp.c/pr66714.c: New test.
3125 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
3128 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
3129 (fib_ref): New function.
3130 (fib): Correct corner cases in the recursion.
3131 (main): Replace the non-simd loop with fib_ref call.
3132 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
3134 (fibonacci): Lower the parameter N to 30. Correct accordingly check
3135 for the last array element value. Replace the non-simd loop with
3136 fib_ref call. Remove redundant b_ref array. Remove the comparison
3137 of the last array element with according Fibonacci sequence element.
3138 (fib): Correct corner cases in the recursion.
3140 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
3142 * target.c (gomp_offload_image_to_device): Rename to ...
3143 (gomp_load_image_to_device): ... here.
3144 (GOMP_offload_register): Adjust call.
3145 (gomp_init_device): Likewise.
3146 (gomp_unload_image_from_device): New. Broken out of ...
3147 (GOMP_offload_unregister): ... here. Call it.
3148 (gomp_unload_device): New.
3149 * libgomp.h (gomp_unload_device): Declare.
3150 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
3153 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
3155 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
3157 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
3159 (goacc_waits): Move !num_waits handling to ...
3160 (GOACC_wait): ... here, the only caller that might have zero waits.
3162 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
3163 (struct ptx_image_data): Move earlier, add fns field.
3164 (struct ptx_device): Add images and image_lock fields.
3165 (ptx_images, ptx_image_lock): Delete.
3166 (nvptx_open_device): Initialize images and image_lock fields.
3167 (nvptx_close_device): Destroy image_lock.
3168 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
3169 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
3172 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
3174 * target.c (GOMP_offload_register): Use int for device type arg.
3175 (GOMP_offload_unregister): Likewise.
3177 * target.c (struct_offload_image_descr): Constify host_table.
3178 (gomp_offload_image_to_device): Likewise.
3179 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
3181 * libgomp.h (gomp_device_descr): Constify target data arguments.
3182 * target.c (struct offload_image_descr): Constify target_data.
3183 (gomp_offload_image_to_device): Likewise.
3184 (GOMP_offload_register): Likewise.
3185 (GOMP_offload_unrefister): Likewise.
3186 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
3187 GOMP_OFFLOAD_unload_image): Constify target data.
3188 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
3189 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
3191 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
3193 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
3194 Workaround driver library const error.
3195 (struct nvptx_tdata, nvptx_tdata_t): New.
3196 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
3199 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
3201 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
3202 of EPS parameter from integer to real.
3203 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
3204 type of EPS parameter from integer to real.
3206 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
3208 * team.c (get_last_team): New.
3209 (gomp_new_team): Recycle last non-nested team if possible.
3210 (gomp_team_end): Move team work share list free lock destruction
3212 (free_team): ... here.
3214 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
3216 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
3217 and ref from int to double. Replaced their comparison with
3218 an inequality of their difference and EPS.
3219 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
3220 comparison of pri and a reference number with an inequality of their
3222 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
3223 the comparison of sum and sum_ref with an inequality of their
3225 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
3226 the comparison of pri and a reference number with an inequality of
3227 their difference and EPS.
3229 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
3231 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
3232 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
3233 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
3234 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
3235 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
3236 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
3237 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
3238 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
3239 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
3240 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
3241 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
3242 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
3243 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
3245 (vec_mult): Likewise. Add #pragma omp taskwait.
3246 (main): Adjust caller.
3247 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
3248 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
3249 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
3250 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
3251 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
3252 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
3253 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
3254 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
3255 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
3256 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
3257 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
3258 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
3259 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
3260 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
3261 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
3262 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
3263 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
3264 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
3265 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
3266 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
3267 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
3268 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
3269 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
3270 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
3271 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
3272 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
3273 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
3274 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
3275 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
3276 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
3277 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
3278 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
3279 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
3280 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
3281 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
3282 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
3283 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
3284 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
3285 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
3286 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
3287 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
3288 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
3289 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
3290 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
3291 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
3292 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
3293 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
3294 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
3295 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
3296 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
3297 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
3298 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
3299 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
3300 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
3301 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
3302 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
3303 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
3304 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
3305 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
3306 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
3307 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
3308 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
3309 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
3310 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
3311 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
3312 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
3313 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
3314 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
3315 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
3316 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
3317 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
3318 (vec_mult): Add !$omp taskwait.
3319 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
3320 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
3321 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
3322 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
3323 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
3324 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
3325 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
3326 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
3327 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
3328 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
3329 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
3330 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
3331 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
3332 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
3333 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
3334 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
3335 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
3336 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
3337 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
3338 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
3339 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
3340 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
3341 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
3342 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
3343 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
3344 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
3345 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
3346 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
3347 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
3348 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
3349 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
3350 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
3351 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
3352 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
3353 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
3354 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
3355 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
3356 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
3357 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
3358 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
3359 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
3360 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
3361 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
3362 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
3363 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
3364 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
3365 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
3366 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
3367 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
3368 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
3369 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
3370 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
3371 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
3372 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
3373 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
3374 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
3375 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
3376 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
3377 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
3378 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
3379 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
3380 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
3381 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
3382 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
3383 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
3384 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
3385 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
3387 2015-07-10 Tom de Vries <tom@codesourcery.com>
3389 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
3390 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
3392 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
3395 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
3396 in a 64-bit configuration.
3397 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
3398 offloading testing if no such device is available.
3399 * testsuite/libgomp.oacc-c/c.exp: Likewise.
3400 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3402 2015-07-08 Tom de Vries <tom@codesourcery.com>
3404 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
3406 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
3408 2015-07-07 Tom de Vries <tom@codesourcery.com>
3410 PR tree-optimization/66642
3411 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
3412 iteration count case.
3413 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
3414 function, factor out of ...
3415 (main): ... here. Test low iteration count case.
3417 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
3419 * libgomp.h (gomp_thread_pool): Comment last_team field.
3421 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
3423 * testsuite/libgomp.c++/pr66702-1.C: Require
3424 vect_simd_clones effective target.
3425 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
3427 2015-06-30 Tom de Vries <tom@codesourcery.com>
3429 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
3430 already set. Use DEFAULT_CFLAGS in dg-runtest.
3431 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
3434 2015-06-30 Tom de Vries <tom@codesourcery.com>
3436 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
3437 already set. Use DEFAULT_CFLAGS in dg-runtest.
3438 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
3439 * testsuite/libgomp.c++/pr64824.C: Same.
3440 * testsuite/libgomp.c++/pr64868.C: Same.
3441 * testsuite/libgomp.c++/pr66199-1.C: Same.
3442 * testsuite/libgomp.c++/pr66199-2.C: Same.
3443 * testsuite/libgomp.c++/target-2.C: Same.
3444 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
3445 -std=<standard> option.
3446 * testsuite/libgomp.c++/udr-11.C: Same.
3447 * testsuite/libgomp.c++/udr-12.C: Same.
3448 * testsuite/libgomp.c++/udr-13.C: Same.
3449 * testsuite/libgomp.c++/udr-14.C: Same.
3450 * testsuite/libgomp.c++/udr-15.C: Same.
3451 * testsuite/libgomp.c++/udr-16.C: Same.
3452 * testsuite/libgomp.c++/udr-17.C: Same.
3453 * testsuite/libgomp.c++/udr-18.C: Same.
3454 * testsuite/libgomp.c++/udr-19.C: Same.
3455 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
3456 * testsuite/libgomp.c++/simd-1.C: Same.
3457 * testsuite/libgomp.c++/simd-2.C: Same.
3458 * testsuite/libgomp.c++/simd-3.C: Same.
3459 * testsuite/libgomp.c++/simd-4.C: Same.
3460 * testsuite/libgomp.c++/simd-5.C: Same.
3461 * testsuite/libgomp.c++/simd-6.C: Same.
3462 * testsuite/libgomp.c++/simd-7.C: Same.
3463 * testsuite/libgomp.c++/simd-8.C: Same.
3464 * testsuite/libgomp.c++/simd-9.C: Same.
3465 * testsuite/libgomp.c++/simd10.C: Same.
3466 * testsuite/libgomp.c++/simd11.C: Same.
3467 * testsuite/libgomp.c++/simd12.C: Same.
3468 * testsuite/libgomp.c++/simd13.C: Same.
3470 2015-06-30 Jakub Jelinek <jakub@redhat.com>
3473 * testsuite/libgomp.c++/pr66702-1.C: New test.
3474 * testsuite/libgomp.c++/pr66702-2.C: New test.
3476 2015-06-30 Tom de Vries <tom@codesourcery.com>
3478 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
3479 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
3480 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
3481 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
3483 2015-06-30 Tom de Vries <tom@codesourcery.com>
3485 PR tree-optimization/66652
3486 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
3487 using restrict pointers.
3488 (main): Add arguments to calls to f.
3489 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
3491 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
3493 * configure.ac: Fix check for header <sys/sysctl.h>.
3494 * configure: Regenerate.
3495 * config.h.in: Likewise.
3497 2015-06-23 Tom de Vries <tom@codesourcery.com>
3499 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
3501 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
3503 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
3505 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
3509 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
3510 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
3512 2015-06-15 Tom de Vries <tom@codesourcery.com>
3514 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
3515 dg-additional-options for any remaining options.
3516 * testsuite/libgomp.c/atomic-2.c: Same.
3517 * testsuite/libgomp.c/atomic-4.c: Same.
3518 * testsuite/libgomp.c/atomic-5.c: Same.
3519 * testsuite/libgomp.c/atomic-6.c: Same.
3520 * testsuite/libgomp.c/autopar-1.c: Same.
3521 * testsuite/libgomp.c/copyin-1.c: Same.
3522 * testsuite/libgomp.c/copyin-2.c: Same.
3523 * testsuite/libgomp.c/copyin-3.c: Same.
3524 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
3525 * testsuite/libgomp.c/nestedfn-5.c: Same.
3526 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
3527 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
3528 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
3529 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
3530 * testsuite/libgomp.c/pr32362-1.c: Same.
3531 * testsuite/libgomp.c/pr32362-2.c: Same.
3532 * testsuite/libgomp.c/pr32362-3.c: Same.
3533 * testsuite/libgomp.c/pr39591-1.c: Same.
3534 * testsuite/libgomp.c/pr39591-2.c: Same.
3535 * testsuite/libgomp.c/pr39591-3.c: Same.
3536 * testsuite/libgomp.c/pr58392.c: Same.
3537 * testsuite/libgomp.c/pr58756.c: Same.
3538 * testsuite/libgomp.c/simd-1.c: Same.
3539 * testsuite/libgomp.c/simd-10.c: Same.
3540 * testsuite/libgomp.c/simd-11.c: Same.
3541 * testsuite/libgomp.c/simd-12.c: Same.
3542 * testsuite/libgomp.c/simd-13.c: Same.
3543 * testsuite/libgomp.c/simd-14.c: Same.
3544 * testsuite/libgomp.c/simd-15.c: Same.
3545 * testsuite/libgomp.c/simd-2.c: Same.
3546 * testsuite/libgomp.c/simd-3.c: Same.
3547 * testsuite/libgomp.c/simd-4.c: Same.
3548 * testsuite/libgomp.c/simd-5.c: Same.
3549 * testsuite/libgomp.c/simd-6.c: Same.
3550 * testsuite/libgomp.c/simd-7.c: Same.
3551 * testsuite/libgomp.c/simd-8.c: Same.
3552 * testsuite/libgomp.c/simd-9.c: Same.
3554 2015-06-15 Tom de Vries <tom@codesourcery.com>
3556 * testsuite/libgomp.c/pr35625.c: Fix typo.
3558 2015-06-15 Tom de Vries <tom@codesourcery.com>
3560 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
3562 * testsuite/libgomp.c/atomic-3.c: Same.
3563 * testsuite/libgomp.c/debug-1.c: Same.
3564 * testsuite/libgomp.c/nqueens-1.c: Same.
3565 * testsuite/libgomp.c/pr26171.c: Same.
3566 * testsuite/libgomp.c/pr48591.c: Same.
3567 * testsuite/libgomp.c/pr64824.c: Same.
3568 * testsuite/libgomp.c/pr64868.c: Same.
3569 * testsuite/libgomp.c/pr66133.c: Same.
3570 * testsuite/libgomp.c/pr66199-1.c: Same.
3571 * testsuite/libgomp.c/pr66199-2.c: Same.
3572 * testsuite/libgomp.c/target-8.c: Same.
3574 2015-06-15 Tom de Vries <tom@codesourcery.com>
3576 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
3578 * testsuite/libgomp.c/for-1.c: Same.
3579 * testsuite/libgomp.c/for-2.c: Same.
3580 * testsuite/libgomp.c/for-3.c: Same.
3581 * testsuite/libgomp.c/pr35625.c: Same.
3582 * testsuite/libgomp.c/pr39154.c: Same.
3583 * testsuite/libgomp.c/simd-16.c: Same.
3584 * testsuite/libgomp.c/simd-17.c: Same.
3586 2015-06-13 Tom de Vries <tom@codesourcery.com>
3588 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
3590 2015-06-13 Tom de Vries <tom@codesourcery.com>
3592 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
3593 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
3594 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
3596 (main): Use N instead of hardcoded constants.
3598 2015-06-05 Tom de Vries <tom@codesourcery.com>
3600 merge from gomp4 branch:
3601 2015-05-28 Tom de Vries <tom@codesourcery.com>
3603 PR tree-optimization/65443
3604 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
3605 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
3606 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
3608 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3610 * testsuite/libgomp.graphite/bounds.c: Adjust for
3611 cleanup-tree-dump removal.
3612 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
3613 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
3614 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
3615 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
3616 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
3617 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
3618 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
3619 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
3620 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
3621 * testsuite/libgomp.graphite/pr41118.c: Likewise.
3623 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
3625 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
3626 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
3627 (futex_wake) [!__x86_64__]: Ditto.
3629 2015-05-28 Julian Brown <julian@codesourcery.com>
3631 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
3632 function comment. Only call gomp_fatal if new argument is true.
3633 (acc_dev_num_out_of_range): New function.
3634 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
3635 acc_dev_num_out_of_range as appropriate.
3636 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
3637 (acc_get_device_num, acc_set_device_num): Update calls to
3639 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
3642 2015-05-28 Julian Brown <julian@codesourcery.com>
3645 * oacc-init.c (plugin/plugin-host.h): Include.
3646 (acc_on_device): Check whether we're in an offloaded region for
3648 plugin. Don't use __builtin_acc_on_device.
3649 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
3650 nonshm_exec flag in thread-local data.
3651 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
3652 data for host_nonshm plugin.
3653 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
3654 for host_nonshm plugin.
3655 * plugin/plugin-host.h: New.
3657 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
3659 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
3661 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
3663 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
3665 (FUTEX_PRIVATE_FLAG): Remove L suffix.
3666 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
3669 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
3671 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
3673 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
3675 * target.c (gomp_map_pointer): New function abstracting out
3676 GOMP_MAP_POINTER handling.
3677 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
3680 2015-05-19 Jakub Jelinek <jakub@redhat.com>
3683 * testsuite/libgomp.c/pr66199-1.c: New test.
3684 * testsuite/libgomp.c/pr66199-2.c: New test.
3685 * testsuite/libgomp.c++/pr66199-1.C: New test.
3686 * testsuite/libgomp.c++/pr66199-2.C: New test.
3687 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
3688 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
3690 2015-05-19 Julian Brown <julian@codesourcery.com>
3692 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
3695 2015-05-13 Jakub Jelinek <jakub@redhat.com>
3698 * testsuite/libgomp.c/pr66133.c: New test.
3700 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
3702 * Makefile.in: Regenerated with automake-1.11.6.
3703 * aclocal.m4: Likewise.
3704 * config.h.in: Likewise.
3705 * configure: Likewise.
3706 * testsuite/Makefile.in: Likewise.
3708 2015-05-08 Jason Merrill <jason@redhat.com>
3710 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
3713 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
3715 2015-05-06 Julian Brown <julian@codesourcery.com>
3717 * oacc-init.c (acc_device_lock): Add explanatory comment.
3718 (resolve_device): Add comment about locking requirement.
3719 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
3720 gomp_init_device and gomp_fini_device calls.
3721 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
3722 (acc_get_device_num, acc_set_device_num): Add locking around
3723 resolve_device and gomp_init_device calls.
3725 2015-05-06 Julian Brown <julian@codesourcery.com>
3727 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
3728 goacc_thread_lock on error paths.
3729 * oacc-mem.c (lookup_host): Remove locking from function. Note
3730 locking requirement for caller in function comment.
3731 (lookup_dev): Likewise.
3732 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
3733 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
3734 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
3737 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
3741 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
3742 don't expect "0x" prefix for "%p" format specifier, don't expect
3743 "(nil)" for NULL pointer.
3744 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3745 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
3746 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
3747 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
3748 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
3749 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
3750 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
3751 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3752 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
3753 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
3754 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
3755 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
3756 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
3757 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
3758 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
3759 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
3760 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
3761 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
3762 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
3763 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
3764 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
3765 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
3766 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
3767 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
3768 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
3769 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
3770 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
3771 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
3772 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
3773 accurately specify what we're looking for.
3774 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
3775 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
3776 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
3777 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
3778 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
3780 2015-04-30 James Norris <jnorris@codesourcery.com>
3783 * testsuite/lib/libgomp.exp
3784 (check_effective_target_openacc_host_selected)
3785 (check_effective_target_openacc_host_nonshm_selected): New
3787 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
3789 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
3790 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
3791 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3792 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
3793 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
3794 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
3795 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
3796 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
3797 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
3798 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
3799 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3800 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
3801 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
3802 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
3803 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
3804 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
3805 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
3806 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
3807 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
3808 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
3809 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
3810 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
3811 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
3812 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
3813 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
3814 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
3815 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
3816 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
3817 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
3818 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
3819 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
3820 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
3821 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
3822 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
3823 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
3824 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
3825 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
3826 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
3827 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
3828 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
3829 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
3830 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
3831 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
3833 2015-04-08 Julian Brown <julian@codesourcery.com>
3835 * libgomp.h (target_mem_desc: Remove mem_map field.
3836 (acc_dispatch_t): Remove open_device_func, close_device_func,
3837 get_device_num_func, set_device_num_func, target_data members.
3838 Change create_thread_data_func argument to device number instead of
3840 * oacc-async.c (assert.h): Include.
3841 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
3842 (acc_wait_all, acc_wait_all_async): Use current host thread's
3843 active device, not base_dev.
3844 * oacc-cuda.c (acc_get_current_cuda_device)
3845 (acc_get_current_cuda_context, acc_get_cuda_stream)
3846 (acc_set_cuda_stream): Likewise.
3847 * oacc-host.c (host_dispatch): Don't set open_device_func,
3848 close_device_func, get_device_num_func or set_device_num_func.
3849 * oacc-init.c (base_dev, init_key): Remove.
3850 (cached_base_dev): New.
3851 (name_of_acc_device_t): New.
3852 (acc_init_1): Initialise default-numbered device, not zeroth.
3853 (acc_shutdown_1): Close all devices of a given type.
3854 (goacc_destroy_thread): Don't use base_dev.
3855 (lazy_open, lazy_init, lazy_init_and_open): Remove.
3856 (goacc_attach_host_thread_to_device): New.
3857 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
3858 (acc_get_num_devices): Don't use base_dev.
3859 (acc_set_device_type): Reimplement.
3860 (acc_get_device_type): Don't use base_dev.
3861 (acc_get_device_num): Tweak logic.
3862 (acc_set_device_num): Likewise.
3863 (acc_on_device): Use acc_get_device_type.
3864 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
3865 (goacc_lazy_initialize): Reimplement with acc_init and
3866 goacc_attach_host_thread_to_device.
3867 * oacc-int.h (goacc_thread): Add base_dev field.
3868 (base_dev): Remove extern declaration.
3869 (goacc_attach_host_thread_to_device): Add prototype.
3870 * oacc-mem.c (acc_malloc): Use current thread's device instead of
3872 (acc_free): Likewise.
3873 (acc_memcpy_to_device): Likewise.
3874 (acc_memcpy_from_device): Likewise.
3875 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
3876 goacc_lazy_initialize (throughout).
3877 (GOACC_parallel): Use tgt_offset to locate target functions.
3878 * target.c (gomp_map_vars): Don't set tgt->mem_map.
3879 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
3880 (gomp_load_plugin_for_device): Remove open_device, close_device,
3881 get_device_num, set_device_num openacc hook initialisation. Don't set
3882 openacc.target_data.
3883 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
3884 (GOMP_OFFLOAD_openacc_close_device)
3885 (GOMP_OFFLOAD_openacc_get_device_num)
3886 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
3887 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
3889 * plugin/plugin-nvptx.c (ptx_inited): Remove.
3890 (instantiated_devices, ptx_dev_lock): New.
3891 (struct ptx_image_data): New.
3892 (ptx_devices, ptx_images, ptx_image_lock): New.
3893 (fini_streams_for_device): Reorder cuStreamDestroy call.
3894 (nvptx_get_num_devices): Remove forward declaration.
3895 (nvptx_init): Change return type to bool.
3896 (nvptx_fini): Remove.
3897 (nvptx_attach_host_thread_to_device): New.
3898 (nvptx_open_device): Return struct ptx_device* instead of void*.
3899 (nvptx_close_device): Change argument type to struct ptx_device*,
3900 return type to void.
3901 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
3902 (kernel_target_data, kernel_host_table): Remove static globals.
3903 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
3904 (GOMP_OFFLOAD_init_device): Reimplement.
3905 (GOMP_OFFLOAD_fini_device): Likewise.
3906 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
3907 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
3908 (GOMP_OFFLOAD_host2dev): Use ORD argument.
3909 (GOMP_OFFLOAD_openacc_open_device)
3910 (GOMP_OFFLOAD_openacc_close_device)
3911 (GOMP_OFFLOAD_openacc_set_device_num)
3912 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
3913 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
3917 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
3919 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
3921 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
3922 * libgomp.h (struct gomp_memory_mapping): Remove.
3923 (struct target_mem_desc): Change type of mem_map from
3924 gomp_memory_mapping * to splay_tree_s *.
3925 (struct gomp_device_descr): Remove register_image_func, get_table_func.
3926 Add load_image_func, unload_image_func.
3927 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
3928 Remove offload_regions_registered.
3929 (gomp_init_tables): Remove.
3930 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
3932 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
3933 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
3934 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
3935 offload_regions_registered.
3936 Initialize load_image_func, unload_image_func, mem_map.root.
3937 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
3938 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
3939 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
3940 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
3941 gomp_memory_mapping *. Use dev's lock and splay_tree.
3942 (lookup_dev): Use dev's lock.
3943 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
3944 (acc_is_present): Likewise.
3945 (acc_map_data): Likewise.
3946 (acc_unmap_data): Likewise. Use dev's lock.
3947 (present_create_copy): Likewise.
3948 (delete_copyout): Pass dev to lookup_host instead of mem_map.
3949 (update_dev_host): Likewise.
3950 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
3951 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
3952 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
3953 (GOMP_OFFLOAD_get_table): Remove
3954 (GOMP_OFFLOAD_load_image): New function.
3955 (GOMP_OFFLOAD_unload_image): New function.
3956 * target.c (register_lock): New mutex for offload image registration.
3957 (num_devices): Do not guard with PLUGIN_SUPPORT.
3958 (gomp_realloc_unlock): New static function.
3959 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
3961 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
3962 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
3963 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
3965 (gomp_unmap_vars): Likewise.
3966 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
3967 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
3968 (gomp_offload_image_to_device): New static function.
3969 (GOMP_offload_register): Add mutex lock.
3970 Call gomp_offload_image_to_device for all initialized devices.
3971 Replace gomp_realloc with gomp_realloc_unlock.
3972 (GOMP_offload_unregister): New function.
3973 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
3974 get_table_func from the plugin with calls to init_device_func and
3975 gomp_offload_image_to_device.
3976 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
3978 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
3979 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
3980 (GOMP_target_data): Do not call gomp_init_tables.
3981 (GOMP_target_update): Likewise. Remove argument from gomp_update.
3982 (gomp_load_plugin_for_device): Replace register_image and get_table
3983 with load_image and unload_image in DLSYM ().
3984 (gomp_register_images_for_device): Remove function.
3985 (gomp_target_init): Do not initialize current_device.mem_map.*,
3986 current_device.offload_regions_registered.
3987 Remove call to gomp_register_images_for_device.
3988 Do not free offload_images and num_offload_images.
3990 2015-03-30 Jakub Jelinek <jakub@redhat.com>
3993 * testsuite/libgomp.fortran/pr65597.f90: New test.
3995 2015-03-27 Tom de Vries <tom@codesourcery.com>
3998 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
3999 (init, check): New function.
4000 (foo): Change return type to void.
4001 (main): Call init and check.
4003 2015-03-27 Tom de Vries <tom@codesourcery.com>
4006 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
4007 (foo): Use M for non-inner loops to scale down test-case.
4009 2015-03-25 Kai Tietz <ktietz@redhat.com>
4012 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
4013 (GOACC_data_start): Likewise.
4014 * target.c (gomp_map_vars): Likewise.
4016 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
4018 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
4021 2015-03-19 Jakub Jelinek <jakub@redhat.com>
4023 * testsuite/libgomp.c/target-10.c: New test.
4024 * testsuite/libgomp.c++/target-4.C: New test.
4026 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
4028 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
4029 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
4031 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
4033 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
4034 * configure.ac (*-*-rtems*): Assume Pthread is supported.
4035 (pthread.h): Check for this header file.
4036 * configure: Regenerate.
4038 2015-02-25 Tom de Vries <tom@codesourcery.com>
4040 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
4041 (check_reduction_op, check_reduction_macro, max, min):
4043 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
4045 (main): Use new functions.
4047 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
4049 * target.c (gomp_load_plugin_for_device): Use const char * instead of
4050 char * for variables holding dlerror return values.
4053 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
4055 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
4057 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
4058 Cesar Philippidis <cesar@codesourcery.com>
4060 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
4061 GOACC_ctaid, and GOACC_nctaid routines.
4063 2015-02-11 Jakub Jelinek <jakub@redhat.com>
4066 * testsuite/libgomp.c/atomic-18.c: New test.
4067 * testsuite/libgomp.c++/atomic-16.C: New test.
4069 2015-02-04 Jakub Jelinek <jakub@redhat.com>
4073 * testsuite/libgomp.c/pr64824.c: New test.
4074 * testsuite/libgomp.c/pr64868.c: New test.
4075 * testsuite/libgomp.c++/pr64824.C: New test.
4076 * testsuite/libgomp.c++/pr64868.C: New test.
4078 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
4081 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
4082 Link with -lpthread.
4083 * config/aix/plugin-suffix.h: Delete.
4085 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
4088 * configure.tgt (*-*-aix*): Use config_path "aix posix".
4089 (*-*-darwin*): Use config_path "bsd darwin posix".
4090 (*-*-hpux*): Use config_path "hpux posix".
4091 * target.c: Add include of plugin-suffix.h and use
4092 SONAME_SUFFIX macro.
4093 * config/aix/plugin-suffix.h: New file.
4094 * config/darwin/plugin-suffix.h: New file.
4095 * config/hpux/plugin-suffix.h: New file.
4096 * config/posix/plugin-suffix.h: New file.
4098 2015-01-23 Jakub Jelinek <jakub@redhat.com>
4101 * libgomp.c/pr64734.c: New test.
4103 2015-01-23 Tom de Vries <tom@codesourcery.com>
4106 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
4108 2015-01-23 Tom de Vries <tom@codesourcery.com>
4111 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
4114 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
4117 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
4118 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
4119 formal parameter. Update all users.
4120 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
4121 Document unused formal parameter.
4123 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
4125 * oacc-parallel.c: Don't include <alloca.h>.
4126 (GOACC_parallel): Use gomp_alloca instead of alloca.
4128 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
4130 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
4132 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
4133 James Norris <jnorris@codesourcery.com>
4134 Tom de Vries <tom@codesourcery.com>
4135 Julian Brown <julian@codesourcery.com>
4136 Cesar Philippidis <cesar@codesourcery.com>
4137 Nathan Sidwell <nathan@codesourcery.com>
4138 Tobias Burnus <burnus@net-b.de>
4140 * Makefile.am (search_path): Add $(top_srcdir)/../include.
4141 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
4142 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
4143 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
4144 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
4145 Include $(top_srcdir)/plugin/Makefrag.am.
4146 (nodist_libsubinclude_HEADERS): Add openacc.h.
4147 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
4148 openacc.f90, openacc.mod, openacc_kinds.mod.
4149 (omp_lib.mod): Generalize into...
4150 (%.mod): ... this new rule.
4151 (openacc_kinds.mod, openacc.mod): New rules.
4152 * plugin/configfrag.ac: New file.
4153 * configure.ac: Move plugin/offloading support into it. Include
4154 it. Instantiate testsuite/libgomp-test-support.pt.exp.
4155 * plugin/Makefrag.am: New file.
4156 * testsuite/Makefile.am (OFFLOAD_TARGETS)
4157 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
4159 (libgomp-test-support.exp): New rule.
4160 (all-local): Depend on it.
4161 * Makefile.in: Regenerate.
4162 * testsuite/Makefile.in: Regenerate.
4163 * config.h.in: Likewise.
4164 * configure: Likewise.
4165 * configure.tgt: Harden shell syntax.
4166 * env.c: Include "oacc-int.h".
4167 (parse_acc_device_type): New function.
4168 (gomp_debug_var, goacc_device_type, goacc_device_num): New
4170 (initialize_env): Initialize those. Call
4171 goacc_runtime_initialize.
4172 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
4173 (gomp_fatal): Call gomp_vfatal.
4174 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
4175 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
4176 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
4177 (splay_tree_node, splay_tree, splay_tree_key)
4178 (struct target_mem_desc, struct splay_tree_key_s)
4179 (struct gomp_memory_mapping, struct acc_dispatch_t)
4180 (struct gomp_device_descr, gomp_acc_insert_pointer)
4181 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
4182 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
4183 (gomp_free_memmap, gomp_fini_device): New declarations.
4184 (gomp_vdebug, gomp_debug): New macros.
4185 Include "splay-tree.h".
4186 * libgomp.map (OACC_2.0): New symbol version. Use for
4187 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
4188 acc_set_device_type_h_, acc_get_device_type,
4189 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
4190 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
4191 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
4192 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
4193 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
4194 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
4195 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
4196 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
4197 acc_copyin_array_h_, acc_present_or_copyin,
4198 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
4199 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
4200 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
4201 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
4202 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
4203 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
4204 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
4205 acc_update_device, acc_update_device_32_h_,
4206 acc_update_device_64_h_, acc_update_device_array_h_,
4207 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
4208 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
4209 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
4210 acc_is_present_64_h_, acc_is_present_array_h_,
4211 acc_memcpy_to_device, acc_memcpy_from_device,
4212 acc_get_current_cuda_device, acc_get_current_cuda_context,
4213 acc_get_cuda_stream, acc_set_cuda_stream.
4214 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
4215 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
4216 GOACC_update, GOACC_wait, GOACC_get_thread_num,
4217 GOACC_get_num_threads.
4218 (GOMP_PLUGIN_1.0): New symbol version. Use for
4219 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
4220 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
4221 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
4222 GOMP_PLUGIN_acc_thread.
4223 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
4224 environment variable.
4225 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
4226 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
4227 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
4228 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
4229 (splay_tree_remove): New declarations.
4230 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
4231 (splay_tree_remove, splay_tree_lookup): Move into...
4232 * splay-tree.c: ... this new file.
4233 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
4234 (splay_tree_node, splay_tree, splay_tree_key)
4235 (struct target_mem_desc, struct splay_tree_key_s)
4236 (struct gomp_device_descr): Don't declare.
4237 (num_devices_openmp): New variable.
4238 (gomp_get_num_devices ): Use it.
4239 (gomp_init_targets_once): New function.
4240 (gomp_get_num_devices ): Use it.
4241 (get_kind, gomp_copy_from_async, gomp_free_memmap)
4242 (gomp_fini_device, gomp_register_image_for_device): New functions.
4243 (gomp_map_vars): Add devaddrs parameter.
4244 (gomp_update): Add mm parameter.
4245 (gomp_init_device): Move most of it into...
4246 (gomp_init_tables): ... this new function.
4247 (gomp_register_images_for_device): Remove function.
4248 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
4249 Make them hidden instead of static.
4250 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
4251 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
4252 (GOMP_target_end_data, GOMP_target_update)
4253 (gomp_load_plugin_for_device, gomp_target_init): Update for
4255 * oacc-async.c: New file.
4256 * oacc-cuda.c: Likewise.
4257 * oacc-host.c: Likewise.
4258 * oacc-init.c: Likewise.
4259 * oacc-int.h: Likewise.
4260 * oacc-mem.c: Likewise.
4261 * oacc-parallel.c: Likewise.
4262 * oacc-plugin.c: Likewise.
4263 * oacc-plugin.h: Likewise.
4264 * oacc-ptx.h: Likewise.
4265 * openacc.f90: Likewise.
4266 * openacc.h: Likewise.
4267 * openacc_lib.h: Likewise.
4268 * plugin/plugin-host.c: Likewise.
4269 * plugin/plugin-nvptx.c: Likewise.
4270 * libgomp-plugin.c: Likewise.
4271 * libgomp-plugin.h: Likewise.
4272 * libgomp_target.h: Remove file after merging content into the
4273 former file. Update all users.
4274 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
4275 (offload_targets_s, offload_targets_s_openacc): New variables.
4276 (check_effective_target_openacc_nvidia_accel_present)
4277 (check_effective_target_openacc_nvidia_accel_selected): New
4279 (libgomp_init): Update for OpenACC changes.
4280 * testsuite/libgomp-test-support.exp.in: New file.
4281 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
4282 * testsuite/libgomp.oacc-c/c.exp: Likewise.
4283 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4284 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
4285 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
4286 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
4287 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
4288 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
4289 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
4290 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
4291 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
4292 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
4293 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
4294 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
4295 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
4296 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
4297 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
4298 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
4299 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
4300 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
4301 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
4302 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
4303 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
4304 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
4305 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
4306 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
4307 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
4308 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
4309 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
4310 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
4311 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
4312 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
4313 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
4314 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
4315 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
4316 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
4317 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
4318 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
4319 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
4320 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
4321 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
4322 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
4323 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
4324 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
4325 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
4326 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
4327 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
4328 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
4329 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
4330 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
4331 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4332 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
4333 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
4334 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
4335 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
4336 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
4337 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
4338 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
4339 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
4340 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
4341 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
4342 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
4343 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
4344 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
4345 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
4346 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
4347 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
4348 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
4349 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
4350 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
4351 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
4352 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
4353 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
4354 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
4355 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
4356 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
4357 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
4358 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
4359 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
4360 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
4361 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
4362 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
4363 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
4364 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
4365 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
4366 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
4367 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
4368 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
4369 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
4370 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
4371 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
4372 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
4373 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
4374 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
4375 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
4376 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
4377 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
4378 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
4379 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
4380 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
4381 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
4382 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
4383 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
4384 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
4385 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
4386 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
4387 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
4388 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
4389 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
4390 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
4391 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
4392 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
4393 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
4394 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
4395 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
4396 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
4397 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
4398 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
4399 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
4400 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
4401 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
4402 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
4403 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
4404 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
4405 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
4406 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
4407 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
4408 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
4409 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
4410 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
4411 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
4412 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
4413 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
4414 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
4415 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
4416 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
4417 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
4418 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
4419 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4420 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
4422 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
4423 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
4424 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
4425 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
4426 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
4427 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
4428 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
4429 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4430 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4431 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4432 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4433 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4434 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4435 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
4436 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
4437 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
4438 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
4439 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
4440 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
4441 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
4442 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
4443 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
4444 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
4445 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
4446 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4447 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
4448 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
4449 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
4450 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
4451 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
4452 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
4453 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
4454 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
4455 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
4456 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
4457 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
4458 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
4459 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
4460 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
4461 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
4462 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
4463 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
4464 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
4465 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
4466 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
4467 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
4468 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
4469 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
4470 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4471 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4472 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4473 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4474 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4475 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4476 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
4477 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
4478 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
4479 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
4480 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
4481 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
4483 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
4484 Julian Brown <julian@codesourcery.com>
4485 David Malcolm <dmalcolm@redhat.com>
4487 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
4488 to "GNU Offloading and Multi Processing Runtime Library". Change
4490 * configure: Regenerate.
4491 * libgomp.texi: Update.
4493 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
4495 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
4497 * configure: Regenerate.
4499 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
4500 "intelmic" in $offload_targets.
4502 2015-01-05 Jakub Jelinek <jakub@redhat.com>
4504 Update copyright years.
4506 * libgomp.texi: Bump @copying's copyright year.
4508 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4510 * testsuite/lib/libgomp.exp: Load target-utils.exp.
4511 Move load of target-supportes.exp earlier.
4513 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
4515 * testsuite/libgomp.c/target-9.c: New test.
4517 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
4519 * config.h.in: Regenerate.
4520 * configure: Regenerate.
4521 * configure.ac: Add GCC_CHECK_EMUTLS.
4522 * libgomp.h: Add check for USE_EMUTLS: this case
4523 is equal to HAVE_TLS.
4526 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
4528 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
4530 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
4531 Ilya Verbin <ilya.verbin@intel.com>
4533 * testsuite/libgomp.c/target-critical-1.c: New test.
4535 2014-11-26 Jakub Jelinek <jakub@redhat.com>
4537 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
4538 to dg-options unless expensive testing is on.
4539 (TESTITERS): Define to N if not defined.
4540 (main): Use TESTITERS instead of N.
4541 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
4542 dg-additional-options depending on whether expensive testing is on.
4543 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
4544 Decrease N to 100000 and CHUNKSZ to 10000.
4546 2014-11-24 Jakub Jelinek <jakub@redhat.com>
4549 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
4550 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
4552 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
4554 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
4556 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
4559 * configure: Regenerated.
4561 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
4563 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
4564 vect_simd_clones effective target.
4565 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
4567 2014-11-14 Jakub Jelinek <jakub@redhat.com>
4569 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
4570 of 32 as block_size.
4571 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
4572 instead of 32 as block_size.
4574 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
4575 Ilya Verbin <ilya.verbin@intel.com>
4577 * Makefile.in: Regenerate.
4578 * configure: Regenerate.
4579 * configure.ac: Set up offload_additional_options,
4580 offload_additional_lib_paths and offload_targets.
4581 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
4582 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
4583 * testsuite/Makefile.in: Regenerate.
4584 * testsuite/lib/libgomp.exp (libgomp_init): Append
4585 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
4586 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
4587 build directory to LD_LIBRARY_PATH for intelmic offload targets.
4589 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
4590 Ilya Verbin <ilya.verbin@intel.com>
4591 Kirill Yukhin <kirill.yukhin@intel.com>
4592 Ilya Tocar <ilya.tocar@intel.com>
4594 * testsuite/lib/libgomp.exp
4595 (check_effective_target_offload_device): New.
4596 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
4597 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
4598 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
4599 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
4600 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
4601 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
4602 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
4603 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
4604 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
4605 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
4606 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
4607 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
4608 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
4609 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
4610 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
4611 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
4612 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
4613 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
4614 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
4615 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
4616 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
4617 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
4618 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
4619 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
4620 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
4621 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
4622 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
4623 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
4624 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
4625 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
4626 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
4627 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
4628 * testsuite/libgomp.c/target-7.c: Fix test.
4629 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
4630 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
4631 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
4632 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
4633 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
4634 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
4635 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
4636 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
4637 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
4638 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
4639 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
4640 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
4641 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
4642 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
4643 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
4644 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
4645 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
4646 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
4647 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
4648 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
4649 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
4650 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
4651 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
4652 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
4653 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
4654 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
4655 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
4656 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
4657 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
4658 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
4659 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
4661 2014-11-13 Jakub Jelinek <jakub@redhat.com>
4662 Ilya Verbin <ilya.verbin@intel.com>
4663 Thomas Schwinge <thomas@codesourcery.com>
4664 Andrey Turetskiy <andrey.turetskiy@intel.com>
4666 * libgomp.map (GOMP_4.0.1): New symbol version.
4667 Add GOMP_offload_register.
4668 * libgomp_target.h: New file.
4669 * splay-tree.h: New file.
4670 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
4671 (gomp_target_init): New forward declaration.
4672 (gomp_is_initialized): New static variable.
4673 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
4674 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
4676 (offload_images, num_offload_images, devices, num_devices): New static
4678 (splay_compare): New static function.
4679 (struct gomp_device_descr): New structure.
4680 (gomp_get_num_devices): Call gomp_target_init.
4681 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
4682 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
4683 (GOMP_offload_register): New function.
4684 (GOMP_target): Arrange for host callback to be performed in a separate
4685 initial thread and contention group, inheriting ICVs from
4686 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
4687 Add device initialization and lookup for target function in splay tree.
4688 (GOMP_target_data): Add device initialization and call gomp_map_vars.
4689 (GOMP_target_end_data): Call gomp_unmap_vars.
4690 (GOMP_target_update): Add device initialization and call gomp_update.
4691 (gomp_load_plugin_for_device, gomp_register_images_for_device)
4692 (gomp_target_init): New static functions.
4694 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
4695 Thomas Schwinge <thomas@codesourcery.com>
4696 Ilya Verbin <ilya.verbin@intel.com>
4697 Andrey Turetskiy <andrey.turetskiy@intel.com>
4699 * config.h.in: Regenerate.
4700 * configure: Regenerate.
4701 * configure.ac: Check for libdl, required for plugin support.
4702 (PLUGIN_SUPPORT): Define if plugins are supported.
4703 (enable_offload_targets): Support Intel MIC targets.
4704 (OFFLOAD_TARGETS): List of target names suitable for offloading.
4706 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4709 * configure: Regenerate.
4711 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4713 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
4715 2014-10-06 Marek Polacek <polacek@redhat.com>
4717 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
4718 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
4719 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
4720 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
4722 2014-10-06 Marek Polacek <polacek@redhat.com>
4724 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
4725 * testsuite/libgomp.c/nqueens-1.c: Likewise.
4726 * testsuite/libgomp.c/pr26943-3.c: Likewise.
4727 * testsuite/libgomp.c/pr26943-4.c: Likewise.
4728 * testsuite/libgomp.c/pr36802-2.c: Likewise.
4729 * testsuite/libgomp.c/pr36802-3.c: Likewise.
4730 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
4731 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
4732 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
4733 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
4734 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
4735 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
4736 * testsuite/libgomp.c/omp-single-1.c: Likewise.
4737 * testsuite/libgomp.c/omp-single-2.c: Likewise.
4738 * testsuite/libgomp.c/omp_matvec.c: Likewise.
4739 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
4740 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
4741 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
4744 2014-10-03 Jakub Jelinek <jakub@redhat.com>
4747 * testsuite/libgomp.c/pr61200.c: New test.
4749 2014-09-18 Jakub Jelinek <jakub@redhat.com>
4752 * testsuite/libgomp.c++/pr63248.C: New test.
4754 2014-08-04 Jakub Jelinek <jakub@redhat.com>
4756 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
4757 is not zero, but taskgroup->children is NULL and there are
4758 any task->children, schedule those instead of waiting.
4759 * testsuite/libgomp.c/depend-6.c: New test.
4760 * testsuite/libgomp.c/depend-7.c: New test.
4761 * testsuite/libgomp.c/depend-8.c: New test.
4762 * testsuite/libgomp.c/depend-9.c: New test.
4763 * testsuite/libgomp.c/depend-10.c: New test.
4765 2014-08-01 Jakub Jelinek <jakub@redhat.com>
4767 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
4768 (struct gomp_taskwait): New type.
4769 (struct gomp_task): Add taskwait and parent_depends_on, remove
4770 in_taskwait and taskwait_sem fields.
4771 (gomp_finish_task): Don't destroy taskwait_sem.
4772 * task.c (gomp_init_task): Don't init in_taskwait, instead init
4773 taskwait and parent_depends_on.
4774 (GOMP_task): For if (0) tasks with depend clause that depend on
4775 earlier tasks don't defer them, instead call
4776 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
4777 Initialize redundant_out field, for redundant out entries just
4778 move them at the end of linked list instead of removing them
4779 completely, and set redundant_out flag instead of redundant.
4780 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
4782 (gomp_task_run_post_handle_dependers): If parent is in
4783 gomp_task_maybe_wait_for_dependencies and newly runnable task
4784 is not parent_depends_on, queue it in parent->children linked
4785 list after all runnable tasks with parent_depends_on set.
4786 Adjust for addition of taskwait indirection.
4787 (gomp_task_run_post_remove_parent): If parent is in
4788 gomp_task_maybe_wait_for_dependencies and task to be removed
4789 is parent_depends_on, decrement n_depend and if needed awake
4790 parent. Adjust for addition of taskwait indirection.
4791 (GOMP_taskwait): Adjust for addition of taskwait indirection.
4792 (gomp_task_maybe_wait_for_dependencies): New function.
4793 * testsuite/libgomp.c/depend-5.c: New test.
4795 2014-07-13 Tobias Burnus <burnus@net-b.de>
4797 * testsuite/libgomp.fortran/pr34020.f90: Make compile
4798 with TS 18508/Fortran 2015.
4800 2014-07-06 Marek Polacek <polacek@redhat.com>
4803 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
4805 2014-07-03 Jakub Jelinek <jakub@redhat.com>
4807 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
4808 matches regex $lang_source_re, add $lang_include_flags to options.
4809 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
4810 * testsuite/libgomp.c++/c++.exp: Likewise.
4811 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
4812 and lang_include_flags instead of adding -fintrinsic-modules-path= to
4814 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
4816 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
4818 * testsuite/libgomp.fortran/fortran.exp: Explain
4819 gfortran-dg-runtest usage.
4821 2014-06-25 Jakub Jelinek <jakub@redhat.com>
4823 * testsuite/libgomp.fortran/simd5.f90: New test.
4824 * testsuite/libgomp.fortran/simd6.f90: New test.
4825 * testsuite/libgomp.fortran/simd7.f90: New test.
4827 2014-06-24 Jakub Jelinek <jakub@redhat.com>
4829 * testsuite/libgomp.c/for-2.c: Define SC to static for
4830 #pragma omp for simd testing.
4831 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
4832 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
4834 * testsuite/libgomp.c/simd-14.c: New test.
4835 * testsuite/libgomp.c/simd-15.c: New test.
4836 * testsuite/libgomp.c/simd-16.c: New test.
4837 * testsuite/libgomp.c/simd-17.c: New test.
4838 * testsuite/libgomp.c++/for-10.C: Define SC to static for
4839 #pragma omp for simd testing.
4840 * testsuite/libgomp.c++/simd10.C: New test.
4841 * testsuite/libgomp.c++/simd11.C: New test.
4842 * testsuite/libgomp.c++/simd12.C: New test.
4843 * testsuite/libgomp.c++/simd13.C: New test.
4845 * testsuite/libgomp.fortran/aligned1.f03: New test.
4846 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
4847 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
4848 tasks with !$omp parallel !$omp single.
4849 * testsuite/libgomp.fortran/target8.f90: New test.
4850 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
4851 not to use trim in the combiner, instead call elemental function.
4852 (fn): New elemental function.
4853 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
4855 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
4857 * testsuite/libgomp.fortran/udr12.f90: New test.
4858 * testsuite/libgomp.fortran/udr13.f90: New test.
4859 * testsuite/libgomp.fortran/udr14.f90: New test.
4860 * testsuite/libgomp.fortran/udr15.f90: New test.
4862 2014-06-18 Jakub Jelinek <jakub@redhat.com>
4864 * omp_lib.f90.in (openmp_version): Set to 201307.
4865 * omp_lib.h.in (openmp_version): Likewise.
4866 * testsuite/libgomp.c/target-8.c: New test.
4867 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
4868 and inbranch clauses.
4869 * testsuite/libgomp.fortran/depend-3.f90: New test.
4870 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
4872 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
4873 * testsuite/libgomp.fortran/target1.f90: New test.
4874 * testsuite/libgomp.fortran/target2.f90: New test.
4875 * testsuite/libgomp.fortran/target3.f90: New test.
4876 * testsuite/libgomp.fortran/target4.f90: New test.
4877 * testsuite/libgomp.fortran/target5.f90: New test.
4878 * testsuite/libgomp.fortran/target6.f90: New test.
4879 * testsuite/libgomp.fortran/target7.f90: New test.
4881 2014-06-10 Jakub Jelinek <jakub@redhat.com>
4884 * testsuite/libgomp.fortran/allocatable9.f90: New test.
4885 * testsuite/libgomp.fortran/allocatable10.f90: New test.
4886 * testsuite/libgomp.fortran/allocatable11.f90: New test.
4887 * testsuite/libgomp.fortran/allocatable12.f90: New test.
4888 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
4889 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
4890 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
4891 * testsuite/libgomp.fortran/associate1.f90: New test.
4892 * testsuite/libgomp.fortran/associate2.f90: New test.
4893 * testsuite/libgomp.fortran/procptr1.f90: New test.
4895 2014-06-06 Jakub Jelinek <jakub@redhat.com>
4897 * testsuite/libgomp.fortran/simd1.f90: New test.
4898 * testsuite/libgomp.fortran/udr1.f90: New test.
4899 * testsuite/libgomp.fortran/udr2.f90: New test.
4900 * testsuite/libgomp.fortran/udr3.f90: New test.
4901 * testsuite/libgomp.fortran/udr4.f90: New test.
4902 * testsuite/libgomp.fortran/udr5.f90: New test.
4903 * testsuite/libgomp.fortran/udr6.f90: New test.
4904 * testsuite/libgomp.fortran/udr7.f90: New test.
4905 * testsuite/libgomp.fortran/udr8.f90: New test.
4906 * testsuite/libgomp.fortran/udr9.f90: New test.
4907 * testsuite/libgomp.fortran/udr10.f90: New test.
4908 * testsuite/libgomp.fortran/udr11.f90: New test.
4910 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
4912 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
4913 vect_simd_clones effective target.
4914 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
4916 2014-05-21 Jakub Jelinek <jakub@redhat.com>
4919 * testsuite/libgomp.c++/simd-9.C: New test.
4921 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
4923 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
4924 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
4925 texts according to their @menu entry positions.
4927 2014-05-11 Jakub Jelinek <jakub@redhat.com>
4929 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
4930 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
4931 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
4932 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
4933 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
4934 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
4935 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
4936 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
4937 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
4938 * testsuite/libgomp.fortran/depend-1.f90: New test.
4939 * testsuite/libgomp.fortran/depend-2.f90: New test.
4940 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
4941 * testsuite/libgomp.fortran/simd1.f90: New test.
4942 * testsuite/libgomp.fortran/simd2.f90: New test.
4943 * testsuite/libgomp.fortran/simd3.f90: New test.
4944 * testsuite/libgomp.fortran/simd4.f90: New test.
4945 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
4947 2014-05-02 Jakub Jelinek <jakub@redhat.com>
4949 * testsuite/libgomp.c/simd-10.c: New test.
4950 * testsuite/libgomp.c/simd-11.c: New test.
4951 * testsuite/libgomp.c/simd-12.c: New test.
4952 * testsuite/libgomp.c/simd-13.c: New test.
4954 2014-04-24 Jakub Jelinek <jakub@redhat.com>
4956 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
4957 atomic type clauses in any order and optional comma in between.
4958 * testsuite/libgomp.c++/atomic-15.C: Likewise.
4959 * testsuite/libgomp.c/atomic-17.c: Likewise.
4961 * testsuite/libgomp.c/simd-7.c: New test.
4962 * testsuite/libgomp.c/simd-8.c: New test.
4963 * testsuite/libgomp.c/simd-9.c: New test.
4964 * testsuite/libgomp.c/loop-16.c: New test.
4966 2014-04-02 Richard Henderson <rth@redhat.com>
4968 * config/linux/futex.h (futex_wait): Get error value from errno.
4969 (futex_wake): Likewise.
4971 2014-03-25 Jakub Jelinek <jakub@redhat.com>
4974 * testsuite/libgomp.c++/udr-11.C: New test.
4975 * testsuite/libgomp.c++/udr-12.C: New test.
4976 * testsuite/libgomp.c++/udr-13.C: New test.
4977 * testsuite/libgomp.c++/udr-14.C: New test.
4978 * testsuite/libgomp.c++/udr-15.C: New test.
4979 * testsuite/libgomp.c++/udr-16.C: New test.
4980 * testsuite/libgomp.c++/udr-17.C: New test.
4981 * testsuite/libgomp.c++/udr-18.C: New test.
4982 * testsuite/libgomp.c++/udr-19.C: New test.
4984 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
4986 Update copyright years
4988 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
4990 * hashtab.h: Use the standard form for the copyright notice.
4992 2014-01-02 Tobias Burnus <burnus@net-b.de>
4994 * libgomp.texi: Bump @copying's copyright year.
4996 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
4998 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
4999 alloca () with __builtin_alloca ().
5000 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
5001 * testsuite/libgomp.c/lock-3.c: Likewise.
5002 * testsuite/libgomp.c/pr48591.c: Likewise.
5004 2013-12-17 Jakub Jelinek <jakub@redhat.com>
5007 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
5010 2013-12-16 Jakub Jelinek <jakub@redhat.com>
5013 * testsuite/libgomp.c/pr58756.c: New test.
5015 2013-12-12 Jakub Jelinek <jakub@redhat.com>
5018 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
5021 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
5023 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
5025 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
5026 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
5027 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
5028 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
5031 * libgomp_g.h: Include <stddef.h> for size_t.
5033 * libgomp.spec.in: Update comment about libgomp's dependencies.
5034 * configure.ac: Likewise.
5035 * configure: Regenerate.
5037 2013-10-16 Tobias Burnus <burnus@net-b.de>
5039 * libgomp.texi: (Runtime Library Routines): Update references for
5040 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
5041 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
5042 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
5043 (Environment Variables): Update references for OpenMP 4.0. Add
5044 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
5045 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
5048 2013-10-14 Jakub Jelinek <jakub@redhat.com>
5050 * env.c (parse_bind_var): Initialize value to avoid
5051 (false positive) warning.
5053 2013-10-12 Jakub Jelinek <jakub@redhat.com>
5056 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
5058 (gomp_init_num_threads): Move i variable declaration into
5059 #ifdef CPU_ALLOC_SIZE block.
5060 * config/linux/affinity.c (gomp_affinity_init_level): Test
5061 gomp_places_list_len == 0 rather than gomp_places_list == 0
5062 when checking for topology reading error.
5063 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
5064 * env.c (parse_affinity): Add ignore argument, if true, don't populate
5065 gomp_places_list, only parse env var and always return false.
5066 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
5067 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
5068 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
5069 and either of these variables were parsed correctly into a places
5072 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
5073 Jakub Jelinek <jakub@redhat.com>
5075 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
5076 of 5 loopfn matches.
5077 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
5078 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
5079 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
5080 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
5081 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
5082 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
5083 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
5084 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
5086 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
5088 * Makefile.am (omp_lib.mod): Streamline rule.
5089 * Makefile.in: Regenerate.
5091 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
5094 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
5095 * testsuite/libgomp.fortran/lib1.f90: Likewise.
5096 * testsuite/libgomp.fortran/lib2.f: Likewise.
5097 * testsuite/libgomp.fortran/lib3.f: Likewise.
5099 * configure.ac: Typo fix.
5100 * configure: Regenerate.
5102 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
5103 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
5105 * omp.h.in: Don't touch the user's namespace.
5107 2013-10-11 Jakub Jelinek <jakub@redhat.com>
5108 Tobias Burnus <burnus@net-b.de>
5109 Richard Henderson <rth@redhat.com>
5111 * target.c: New file.
5112 * Makefile.am (libgomp_la_SOURCES): Add target.c.
5113 * Makefile.in: Regenerated.
5114 * libgomp_g.h (GOMP_task): Add depend argument.
5115 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
5116 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
5117 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
5118 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
5119 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
5120 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
5121 GOMP_taskgroup_start, GOMP_taskgroup_end,
5122 GOMP_parallel_sections): New prototypes.
5123 * fortran.c (omp_is_initial_device): Add ialias_redirect.
5124 (omp_is_initial_device_): New function.
5125 (ULP, STR1, STR2, ialias_redirect): Removed.
5126 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
5127 omp_set_default_device_8_, omp_get_default_device_,
5128 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
5130 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
5131 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
5132 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
5134 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
5135 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
5136 omp_set_default_device, omp_set_default_device_,
5137 omp_set_default_device_8_, omp_get_default_device,
5138 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
5139 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
5140 omp_get_team_num_): Export @@OMP_4.0.
5141 * team.c (struct gomp_thread_start_data): Add place field.
5142 (gomp_thread_start): Clear thr->thread_pool and
5143 thr->task before returning. Use gomp_team_barrier_wait_final
5144 instead of gomp_team_barrier_wait. Initialize thr->place.
5145 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
5146 team_cancelled and task_queued_count fields.
5147 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
5148 before calling pthread_exit.
5149 (gomp_free_thread): No longer static. Use
5150 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
5151 (gomp_team_start): Add flags argument. Set
5152 thr->thread_pool->threads_busy to nthreads immediately after creating
5153 new pool. Use gomp_managed_threads_lock instead of
5154 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
5155 (gomp_team_end): Use gomp_managed_threads_lock instead of
5156 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
5157 of gomp_team_barrier_wait. If team->team_cancelled, call
5158 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
5159 rather than thr->ts.work_share.
5160 (initialize_team): Don't call gomp_sem_init here.
5161 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
5163 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
5164 * env.c (gomp_global_icv): Add default_device_var, target_data and
5165 bind_var initializers.
5166 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
5167 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
5168 gomp_places_list_len): New variables.
5169 (parse_bind_var, parse_one_place, parse_places_var): New functions.
5170 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
5172 (gomp_cancel_var): New global variable.
5173 (parse_int): New function.
5174 (handle_omp_display_env): New function.
5175 (initialize_env): Use it. Initialize default_device_var.
5176 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
5177 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
5178 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
5179 been successfully parsed (and call gomp_init_affinity in that case).
5180 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
5181 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
5182 omp_get_team_num, omp_is_initial_device): New functions.
5183 * libgomp.h: Include stdlib.h.
5184 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
5186 (struct target_mem_desc): Forward declare.
5187 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
5188 and thread_limit_var fields.
5189 (gomp_get_num_devices): New prototype.
5190 (gomp_cancel_var): New extern decl.
5191 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
5192 team_cancelled and task_queued_count fields. Add comments about
5193 task_{,queued_,running_}count.
5194 (gomp_cancel_kind): New enum.
5195 (gomp_work_share_end_cancel): New prototype.
5196 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
5197 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
5199 (struct gomp_taskgroup): New type.
5200 (struct gomp_task_depend_entry,
5201 struct gomp_dependers_vec): New types.
5202 (gomp_finish_task): Free depend_hash if non-NULL.
5203 (struct gomp_team_state): Add place_partition_off
5204 and place_partition_len fields.
5205 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
5206 gomp_places_list_len): New extern decls.
5207 (struct gomp_thread): Add place field.
5208 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
5209 (gomp_init_thread_affinity): Add place argument.
5210 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
5211 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
5212 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
5213 gomp_affinity_init_level, gomp_affinity_print_place): New
5215 (gomp_team_start): Add flags argument.
5216 (gomp_thread_limit_var, gomp_remaining_threads_count,
5217 gomp_remaining_threads_lock): Remove.
5218 (gomp_managed_threads_lock): New variable.
5219 (struct gomp_thread_pool): Add threads_busy field.
5220 (gomp_free_thread): New prototype.
5221 * task.c: Include hashtab.h.
5222 (hash_entry_type): New typedef.
5223 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
5224 (gomp_init_task): Clear dependers, depend_hash, depend_count,
5225 copy_ctors_done and taskgroup fields.
5226 (GOMP_task): Add depend argument, handle depend clauses. If
5227 gomp_team_barrier_cancelled or if it's taskgroup has been
5228 cancelled, don't queue or start new tasks. Set copy_ctors_done
5229 field if needed. Initialize taskgroup field. If copy_ctors_done
5230 and already cancelled, don't discard the task. If taskgroup is
5231 non-NULL, enqueue the task into taskgroup queue. Increment
5232 num_children field in taskgroup. Increment task_queued_count.
5233 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
5234 gomp_task_run_post_remove_taskgroup): New inline functions.
5235 (gomp_task_run_post_handle_depend_hash,
5236 gomp_task_run_post_handle_dependers,
5237 gomp_task_run_post_handle_depend): New functions.
5238 (GOMP_taskwait): Use them. If more than one new tasks
5239 have been queued, wake other threads if needed.
5240 (gomp_barrier_handle_tasks): Likewise. If
5241 gomp_team_barrier_cancelled, don't start any new tasks, just free
5243 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
5245 (omp_proc_bind_kind, omp_proc_bind_false,
5246 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
5247 omp_proc_bind_spread): New params.
5248 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
5249 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
5250 omp_get_team_num, omp_is_initial_device): New interfaces.
5251 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
5252 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
5253 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
5254 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
5255 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
5256 useless use omp_lib_kinds.
5257 * omp.h.in (omp_proc_bind_t): New typedef.
5258 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
5259 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
5260 omp_get_team_num, omp_is_initial_device): New prototypes.
5261 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
5262 through to gomp_team_start.
5263 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
5264 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
5265 Adjust gomp_parallel_loop_start callers.
5266 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
5267 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
5268 GOMP_loop_end_cancel): New functions.
5269 (GOMP_parallel_end): Add ialias_redirect.
5270 * hashtab.h: New file.
5271 * libgomp.texi (Environment Variables): Minor cleanup,
5272 update section refs to OpenMP 4.0rc2.
5273 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
5274 environment variables.
5275 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
5276 team->work_shares_to_free to thr->ts.work_share before calling
5278 (gomp_work_share_end_cancel): New function.
5279 * config/linux/proc.c: Include errno.h.
5280 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
5281 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
5282 sizeof (cpu_set_t) to determine number of iterations. Fix up check
5283 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
5284 gomp_cpuset_size is sizeof (cpu_set_t).
5285 (gomp_init_num_threads): Initialize gomp_cpuset_size,
5286 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
5287 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
5288 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
5289 contain any logical CPUs.
5290 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
5291 is NULL. Use gomp_cpusetp instead of &cpuset and pass
5292 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
5293 pthread_getaffinity_np. Check gomp_places_list instead of
5294 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
5295 * config/linux/bar.c (gomp_barrier_wait_end,
5296 gomp_barrier_wait_last): Use BAR_* defines.
5297 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
5298 from state where needed. Set work_share_cancelled to 0 on last
5300 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
5301 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
5303 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
5304 Add cpusetsize argument.
5305 (gomp_cpuset_size, gomp_cpusetp): Declare.
5306 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
5307 (affinity_counter): Remove.
5308 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
5309 if CPU_ALLOC_SIZE isn't defined.
5310 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
5311 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
5312 bind current thread to the first place.
5313 (gomp_init_thread_affinity): Rewritten. Add place argument, just
5314 pthread_setaffinity_np to gomp_places_list[place].
5315 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
5316 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
5317 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
5318 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
5319 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
5320 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
5321 (gomp_barrier_t): Add awaited_final field.
5322 (gomp_barrier_init): Initialize awaited_final field.
5323 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
5324 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
5326 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
5328 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
5329 gomp_team_barrier_cancelled): New inline functions.
5330 (gomp_barrier_last_thread,
5331 gomp_team_barrier_set_task_pending,
5332 gomp_team_barrier_clear_task_pending,
5333 gomp_team_barrier_set_waiting_for_tasks,
5334 gomp_team_barrier_waiting_for_tasks,
5335 gomp_team_barrier_done): Use BAR_* defines.
5336 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
5337 (gomp_barrier_wait_end): Use BAR_* defines.
5338 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
5339 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
5341 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
5342 gomp_team_barrier_cancel): New functions.
5343 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
5345 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
5346 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
5347 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
5348 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
5349 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
5350 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
5351 (gomp_barrier_t): Add cancellable field.
5352 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
5353 gomp_team_barrier_cancel): New prototypes.
5354 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
5355 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
5356 gomp_team_barrier_cancelled): New inline functions.
5357 (gomp_barrier_wait_start, gomp_barrier_last_thread,
5358 gomp_team_barrier_set_task_pending,
5359 gomp_team_barrier_clear_task_pending,
5360 gomp_team_barrier_set_waiting_for_tasks,
5361 gomp_team_barrier_waiting_for_tasks,
5362 gomp_team_barrier_done): Use BAR_* defines.
5363 * barrier.c (GOMP_barrier_cancel): New function.
5364 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
5365 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
5366 omp_proc_bind_spread): New params.
5367 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
5368 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
5369 omp_get_team_num, omp_is_initial_device): New externals.
5370 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
5372 (gomp_resolve_num_threads): Adjust for thread_limit now being in
5373 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
5374 infinity. If not nested, just return minimum of max_num_threads
5375 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
5376 to the returned value. Otherwise, don't update atomically
5377 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
5378 (GOMP_parallel_end): Adjust for thread_limit now being in
5379 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
5380 infinity. Adjust threads_busy in the pool rather than
5381 gomp_remaining_threads_count. Remember team->nthreads and call
5382 gomp_team_end before adjusting threads_busy, if not nested
5383 afterwards, just set it to 1 non-atomically. Add ialias.
5384 (GOMP_parallel_start): Adjust gomp_team_start caller.
5385 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
5386 * testsuite/libgomp.c/affinity-1.c: New test.
5387 * testsuite/libgomp.c/atomic-15.c: New test.
5388 * testsuite/libgomp.c/atomic-16.c: New test.
5389 * testsuite/libgomp.c/atomic-17.c: New test.
5390 * testsuite/libgomp.c/cancel-for-1.c: New test.
5391 * testsuite/libgomp.c/cancel-for-2.c: New test.
5392 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
5393 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
5394 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
5395 * testsuite/libgomp.c/cancel-sections-1.c: New test.
5396 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
5397 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
5398 * testsuite/libgomp.c/depend-1.c: New test.
5399 * testsuite/libgomp.c/depend-2.c: New test.
5400 * testsuite/libgomp.c/depend-3.c: New test.
5401 * testsuite/libgomp.c/depend-4.c: New test.
5402 * testsuite/libgomp.c/for-1.c: New test.
5403 * testsuite/libgomp.c/for-1.h: New file.
5404 * testsuite/libgomp.c/for-2.c: New test.
5405 * testsuite/libgomp.c/for-2.h: New file.
5406 * testsuite/libgomp.c/for-3.c: New test.
5407 * testsuite/libgomp.c/pr58392.c: New test.
5408 * testsuite/libgomp.c/simd-1.c: New test.
5409 * testsuite/libgomp.c/simd-2.c: New test.
5410 * testsuite/libgomp.c/simd-3.c: New test.
5411 * testsuite/libgomp.c/simd-4.c: New test.
5412 * testsuite/libgomp.c/simd-5.c: New test.
5413 * testsuite/libgomp.c/simd-6.c: New test.
5414 * testsuite/libgomp.c/target-1.c: New test.
5415 * testsuite/libgomp.c/target-2.c: New test.
5416 * testsuite/libgomp.c/target-3.c: New test.
5417 * testsuite/libgomp.c/target-4.c: New test.
5418 * testsuite/libgomp.c/target-5.c: New test.
5419 * testsuite/libgomp.c/target-6.c: New test.
5420 * testsuite/libgomp.c/target-7.c: New test.
5421 * testsuite/libgomp.c/taskgroup-1.c: New test.
5422 * testsuite/libgomp.c/thread-limit-1.c: New test.
5423 * testsuite/libgomp.c/thread-limit-2.c: New test.
5424 * testsuite/libgomp.c/thread-limit-3.c: New test.
5425 * testsuite/libgomp.c/udr-1.c: New test.
5426 * testsuite/libgomp.c/udr-2.c: New test.
5427 * testsuite/libgomp.c/udr-3.c: New test.
5428 * testsuite/libgomp.c++/affinity-1.C: New test.
5429 * testsuite/libgomp.c++/atomic-10.C: New test.
5430 * testsuite/libgomp.c++/atomic-11.C: New test.
5431 * testsuite/libgomp.c++/atomic-12.C: New test.
5432 * testsuite/libgomp.c++/atomic-13.C: New test.
5433 * testsuite/libgomp.c++/atomic-14.C: New test.
5434 * testsuite/libgomp.c++/atomic-15.C: New test.
5435 * testsuite/libgomp.c++/cancel-for-1.C: New test.
5436 * testsuite/libgomp.c++/cancel-for-2.C: New test.
5437 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
5438 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
5439 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
5440 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
5441 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
5442 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
5443 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
5444 * testsuite/libgomp.c++/cancel-test.h: New file.
5445 * testsuite/libgomp.c++/for-9.C: New test.
5446 * testsuite/libgomp.c++/for-10.C: New test.
5447 * testsuite/libgomp.c++/for-11.C: New test.
5448 * testsuite/libgomp.c++/simd-1.C: New test.
5449 * testsuite/libgomp.c++/simd-2.C: New test.
5450 * testsuite/libgomp.c++/simd-3.C: New test.
5451 * testsuite/libgomp.c++/simd-4.C: New test.
5452 * testsuite/libgomp.c++/simd-5.C: New test.
5453 * testsuite/libgomp.c++/simd-6.C: New test.
5454 * testsuite/libgomp.c++/simd-7.C: New test.
5455 * testsuite/libgomp.c++/simd-8.C: New test.
5456 * testsuite/libgomp.c++/target-1.C: New test.
5457 * testsuite/libgomp.c++/target-2.C: New test.
5458 * testsuite/libgomp.c++/target-2-aux.cc: New file.
5459 * testsuite/libgomp.c++/target-3.C: New test.
5460 * testsuite/libgomp.c++/taskgroup-1.C: New test.
5461 * testsuite/libgomp.c++/udr-1.C: New test.
5462 * testsuite/libgomp.c++/udr-2.C: New test.
5463 * testsuite/libgomp.c++/udr-3.C: New test.
5464 * testsuite/libgomp.c++/udr-4.C: New test.
5465 * testsuite/libgomp.c++/udr-5.C: New test.
5466 * testsuite/libgomp.c++/udr-6.C: New test.
5467 * testsuite/libgomp.c++/udr-7.C: New test.
5468 * testsuite/libgomp.c++/udr-8.C: New test.
5469 * testsuite/libgomp.c++/udr-9.C: New test.
5471 2013-09-20 Jakub Jelinek <jakub@redhat.com>
5474 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
5477 2013-09-20 Alan Modra <amodra@gmail.com>
5479 * configure: Regenerate.
5481 2013-09-19 Jakub Jelinek <jakub@redhat.com>
5483 * testsuite/libgomp.c/sections-2.c: New test.
5485 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
5487 * testsuite/libgomp.fortran/strassen.f90:
5488 Add dg-skip-if aarch64_tiny.
5490 2013-06-20 Iain Sandoe <iain@codesourcery.com>
5491 Cesar Philippidis <cesar@codesourcery.com>
5493 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
5494 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
5495 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
5496 * testsuite/libgomp.fortran/fortran.exp: Likewise.
5497 * testsuite/libgomp.graphite/graphite.exp: Likewise.
5498 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
5499 Use dg-runtest rather than gfortran-dg-runtest.
5501 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
5503 * testsuite/libgomp.c/icv-2.c: Extend current handling of
5504 Linux-based x86 systems to cover all GNU systems.
5505 * testsuite/libgomp.c/lock-3.c: Likewise.
5506 * testsuite/libgomp.c/pr48591.c: Likewise.
5508 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
5510 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
5511 GNU/Hurd, as done for Linux-based systems.
5513 * config/posix/ptrlock.h: Fix comment.
5515 2013-05-27 Tobias Burnus <burnus@net-b.de>
5518 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
5519 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
5520 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
5521 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
5522 omp_destroy_nest_lock): Correct arguments to match the one in
5524 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
5525 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
5526 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
5527 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
5529 2013-05-16 Jakub Jelinek <jakub@redhat.com>
5531 * testsuite/libgomp.c/loop-13.c: New test.
5532 * testsuite/libgomp.c/loop-14.c: New test.
5533 * testsuite/libgomp.c/loop-15.c: New test.
5534 * testsuite/libgomp.c++/loop-13.C: New test.
5535 * testsuite/libgomp.c++/loop-14.C: New test.
5536 * testsuite/libgomp.c++/loop-15.C: New test.
5538 2013-02-06 Jakub Jelinek <jakub@redhat.com>
5541 * testsuite/libgomp.c++/pr56217.C: New test.
5543 2013-02-01 Alan Modra <amodra@gmail.com>
5545 * task.c (GOMP_task, GOMP_taskwait): Comment.
5547 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
5548 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
5551 * config/linux/wait.h (do_spin): Use atomic load for addr.
5552 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
5553 for intptr and ptrlock.
5554 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
5557 2013-01-22 Alan Modra <amodra@gmail.com>
5561 * task.c (GOMP_task): Revert 2011-12-09 change.
5562 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
5563 barrier to read task->children..
5564 (gomp_barrier_handle_tasks): ..and matching atomic store with
5565 release barrier here when setting parent->children to NULL.
5567 2013-01-16 Jakub Jelinek <jakub@redhat.com>
5568 Tobias Burnus <burnus@net-b.de>
5571 * testsuite/libgomp.fortran/fortran.exp: Use
5572 -fintrinsic-modules-path= instead of
5573 -fintrinsic-modules-path.
5575 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
5577 Update copyright years.
5579 2012-12-19 Tobias Burnus <burnus@net-b.de>
5581 * testsuite/libgomp.fortran/fortran.exp: Set
5582 -fintrinsic-modules-path.
5584 2012-12-19 Tobias Burnus <burnus@net-b.de>
5586 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
5587 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
5589 2012-11-21 Jakub Jelinek <jakub@redhat.com>
5592 * team.c (gomp_free_thread): Decrease gomp_managed_threads
5593 if pool had any threads_used.
5595 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
5597 * testsuite/libgomp.c++/pr24455.C: Use
5598 -Wl,-undefined,dynamic_lookup on darwin.
5600 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
5602 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
5604 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
5606 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
5608 2012-10-23 Ian Bolton <ian.bolton@arm.com>
5609 Jim MacArthur <jim.macarthur@arm.com>
5610 Marcus Shawcroft <marcus.shawcroft@arm.com>
5611 Nigel Stephens <nigel.stephens@arm.com>
5612 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5613 Richard Earnshaw <rearnsha@arm.com>
5614 Sofiane Naci <sofiane.naci@arm.com>
5615 Stephen Thomas <stephen.thomas@arm.com>
5616 Tejas Belagod <tejas.belagod@arm.com>
5617 Yufeng Zhang <yufeng.zhang@arm.com>
5619 * configure.tgt: Add AArch64.
5621 2012-10-04 Jason Merrill <jason@redhat.com>
5623 * testsuite/libgomp.c++/tls-init1.C: New.
5625 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
5627 * configure: Regenerated.
5629 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
5631 * config/linux/mips/futex.h (sys_futex0): Change to static
5632 function with noinline, nomips16 attributes under MIPS16. Adjust
5633 asm statement to place 'li v0,SYS_futex' immediately before
5636 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
5638 * libgomp.texi (Library Index): Renamed from "Index" to prevent
5639 conflict with index.html on case-insensitive file systems.
5641 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
5643 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
5644 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
5646 2012-07-02 Richard Guenther <rguenther@suse.de>
5647 Michael Matz <matz@suse.de>
5648 Tobias Grosser <tobias@grosser.es>
5649 Sebastian Pop <sebpop@gmail.com>
5651 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
5652 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
5653 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
5654 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
5656 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
5658 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
5660 2012-06-22 Richard Guenther <rguenther@suse.de>
5662 Merge from graphite branch
5663 2012-01-13 Tobias Grosser <tobias@grosser.es>
5665 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
5666 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
5668 2012-06-07 Jakub Jelinek <jakub@redhat.com>
5671 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
5672 use GOMP_barrier () call instead.
5673 * testsuite/libgomp.c/pr26943-3.c: Likewise.
5674 * testsuite/libgomp.c/pr26943-4.c: Likewise.
5675 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
5676 call GOMP_barrier instead.
5677 * testsuite/libgomp.fortran/vla5.f90: Likewise.
5679 2012-06-06 Jakub Jelinek <jakub@redhat.com>
5682 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
5683 argument to memset call.
5685 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
5687 * configure: Regenerated.
5689 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5691 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
5693 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
5696 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
5698 2012-03-22 Jakub Jelinek <jakub@redhat.com>
5701 * testsuite/libgomp.c/pr52547.c: New test.
5703 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
5705 * testsuite/lib/libgomp.exp: load fortran-modules.exp
5707 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5709 * configure.tgt (mips-sgi-irix6*): Remove.
5711 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5713 * configure.tgt (alpha*-dec-osf*): Remove.
5715 * config/osf/sem.h: Remove.
5716 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
5718 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
5720 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
5722 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5725 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
5726 Remove ENABLE_SYMVERS_SOL2.
5727 * configure: Regenerate.
5728 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
5729 (PREPROCESS): New variable.
5730 (libgomp.ver): New target.
5731 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
5732 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
5733 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
5735 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
5736 * Makefile.in: Regenerate.
5738 2012-02-14 Walter Lee <walt@tilera.com>
5740 * configure.tgt: Handle tilegx and tilepro.
5741 * config/linux/tile/futex.h: New file.
5743 2012-02-08 Richard Guenther <rguenther@suse.de>
5745 PR tree-optimization/46886
5746 * testsuite/libgomp.c/pr46886.c: New testcase.
5748 2012-01-25 Matthias Klose <doko@ubuntu.com>
5750 * config/linux/arm: Remove empty directory.
5751 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
5753 2011-12-09 Alan Modra <amodra@gmail.com>
5756 * task.c (GOMP_taskwait): Don't access task->children outside of
5757 task_lock mutex region.
5758 (GOMP_task): Likewise.
5760 2011-12-06 Jakub Jelinek <jakub@redhat.com>
5763 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
5765 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
5766 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
5767 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
5768 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
5769 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
5771 2011-12-02 Alan Modra <amodra@gmail.com>
5773 * config/linux/affinity.c: Use atomic rather than sync builtin.
5774 * config/linux/lock.c: Likewise.
5775 * config/linux/ptrlock.h: Likewise.
5776 * config/linux/ptrlock.c: Likewise.
5777 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
5778 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
5779 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
5780 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
5781 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
5782 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
5783 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
5784 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
5785 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
5786 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
5788 2011-11-30 Alan Modra <amodra@gmail.com>
5791 * config/linux/bar.h: Use atomic rather than sync builtins.
5792 * config/linux/bar.c: Likewise. Add missing acquire
5793 synchronisation on generation field.
5794 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
5797 2011-11-30 Alan Modra <amodra@gmail.com>
5799 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
5800 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
5801 * config/linux/mutex.h: Use atomic rather than sync builtins.
5802 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
5803 * config/linux/omp-lock.h: Comment fix.
5804 * config/linux/arm/mutex.h: Delete.
5805 * config/linux/powerpc/mutex.h: Delete.
5806 * config/linux/ia64/mutex.h: Delete.
5807 * config/linux/mips/mutex.h: Delete.
5809 2011-11-30 Alan Modra <amodra@gmail.com>
5812 * config/linux/sem.h: Rewrite.
5813 * config/linux/sem.c: Rewrite.
5815 2011-11-28 Richard Henderson <rth@redhat.com>
5817 * libgomp.h (enum memmodel): New.
5819 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
5821 * configure: Regenerate.
5823 2011-10-10 Matthias Klose <doko@ubuntu.com>
5825 * config/posix95: Remove empty directory.
5827 2011-08-26 Jakub Jelinek <jakub@redhat.com>
5829 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
5831 2011-08-19 Jakub Jelinek <jakub@redhat.com>
5834 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
5835 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
5837 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5839 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
5841 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5844 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
5846 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
5848 * config/linux/proc.h: New.
5849 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
5850 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
5851 (gomp_init_num_threads): Update call to cpuset_popcount.
5852 (get_num_procs): Ditto.
5853 * config/linux/affinity.c (gomp_init_affinity): Call
5854 gomp_cpuset_popcount.
5856 2011-08-02 Jakub Jelinek <jakub@redhat.com>
5860 * omp.h.in (omp_in_final): New prototype.
5861 * omp_lib.f90.in (omp_in_final): New interface.
5862 (omp_integer_kind, omp_logical_kind): Remove
5863 and replace all its uses in the module with 4.
5864 (openmp_version): Change to 201107.
5865 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
5866 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
5867 kind for the parameters.
5868 (omp_in_final): New external.
5869 (openmp_version): Change to 201107.
5870 * task.c (omp_in_final): New function.
5871 (gomp_init_task): Initialize final_task.
5872 (GOMP_task): Remove unused attribute from flags. Handle final
5874 (GOMP_taskyield): New function.
5875 (omp_in_final): Return true if if (false) or final (true) task
5876 or descendant of final (true).
5877 * fortran.c (omp_in_final_): New function.
5878 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
5879 (GOMP_3.0): Export GOMP_taskyield.
5880 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
5882 (parse_unsigned_long_list): New function.
5883 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
5884 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
5885 even if parse_affinity returned false.
5886 * config/linux/affinity.c (gomp_init_affinity): Handle
5887 gomp_cpu_affinity_len == 0.
5888 * libgomp_g.h (GOMP_taskyield): New prototype.
5889 * libgomp.h (struct gomp_task): Add final_task field.
5890 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
5891 * team.c (gomp_team_start): Override new task's nthreads_var icv
5892 if list form OMP_NUM_THREADS has been used and it has value for
5893 the new nesting level.
5895 * testsuite/libgomp.c/atomic-11.c: New test.
5896 * testsuite/libgomp.c/atomic-12.c: New test.
5897 * testsuite/libgomp.c/atomic-13.c: New test.
5898 * testsuite/libgomp.c/atomic-14.c: New test.
5899 * testsuite/libgomp.c/reduction-6.c: New test.
5900 * testsuite/libgomp.c/task-5.c: New test.
5901 * testsuite/libgomp.c++/atomic-2.C: New test.
5902 * testsuite/libgomp.c++/atomic-3.C: New test.
5903 * testsuite/libgomp.c++/atomic-4.C: New test.
5904 * testsuite/libgomp.c++/atomic-5.C: New test.
5905 * testsuite/libgomp.c++/atomic-6.C: New test.
5906 * testsuite/libgomp.c++/atomic-7.C: New test.
5907 * testsuite/libgomp.c++/atomic-8.C: New test.
5908 * testsuite/libgomp.c++/atomic-9.C: New test.
5909 * testsuite/libgomp.c++/task-8.C: New test.
5910 * testsuite/libgomp.c++/reduction-4.C: New test.
5911 * testsuite/libgomp.fortran/allocatable7.f90: New test.
5912 * testsuite/libgomp.fortran/allocatable8.f90: New test.
5913 * testsuite/libgomp.fortran/crayptr3.f90: New test.
5914 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
5915 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
5916 * testsuite/libgomp.fortran/pointer1.f90: New test.
5917 * testsuite/libgomp.fortran/pointer2.f90: New test.
5918 * testsuite/libgomp.fortran/task4.f90: New test.
5920 2011-08-02 Tobias Burnus <burnus@net-b.de>
5922 * libgomp.texi: Update OpenMP spec references to 3.1.
5923 (omp_in_final,OMP_PROC_BIND): New sections.
5924 (OMP_NUM_THREADS): Document that the value can be now a list.
5925 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
5927 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
5929 * config/linux/x86/futex.h: Check __x86_64__ instead of
5932 2011-07-29 Jakub Jelinek <jakub@redhat.com>
5936 * testsuite/libgomp.c/pr49897-1.c: New test.
5937 * testsuite/libgomp.c/pr49897-2.c: New test.
5938 * testsuite/libgomp.c/pr49898-1.c: New test.
5939 * testsuite/libgomp.c/pr49898-2.c: New test.
5941 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
5943 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
5944 for ia32 instead of ilp32.
5946 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
5947 * testsuite/libgomp.c/atomic-6.c: Likewise.
5949 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
5951 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
5952 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
5954 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5957 * config/osf/sem.h: New file.
5958 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
5960 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5963 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
5966 2011-07-15 Jakub Jelinek <jakub@redhat.com>
5968 * config/linux/wait.h (do_spin): New inline, largely copied
5969 from do_wait, just don't do futex_wait here, instead return true if
5971 (do_wait): Implement using do_spin.
5972 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
5974 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
5975 __sync_bool_compare_and_swap, pass the oldval to
5976 gomp_mutex_lock_slow.
5977 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
5978 If all mutex contenders are just spinning and not sleeping, don't
5979 change state to 2 unnecessarily. Optimize the loop when state has
5980 already become 2 to use just one atomic operation per loop instead
5982 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
5984 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
5985 __sync_bool_compare_and_swap, pass the oldval to
5986 gomp_mutex_lock_slow.
5988 2011-06-22 Jakub Jelinek <jakub@redhat.com>
5991 * iter.c (gomp_iter_static_next): For chunk size 0
5992 only use n ceil/ nthreads size for the first
5993 n % nthreads threads in the team instead of
5994 all threads except for the last few ones which
5995 get less work or none at all.
5996 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
5997 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
5998 chunk argument, set run_sched_modifier to 0 for static
5999 resp. 1 for other kinds. If chunk argument is 0
6000 and not static, set value to 1.
6002 2011-05-19 Jakub Jelinek <jakub@redhat.com>
6005 * testsuite/libgomp.c++/pr49043.C: New test.
6008 * testsuite/libgomp.c++/pr48869.C: New test.
6010 2011-05-06 Jakub Jelinek <jakub@redhat.com>
6013 * fortran.c: Include limits.h.
6015 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
6017 (omp_set_num_threads_8_, omp_set_schedule_8_,
6018 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
6019 omp_get_team_size_8_): Use TO_INT macro.
6020 * testsuite/libgomp.fortran/pr48894.f90: New test.
6022 2011-04-13 Jakub Jelinek <jakub@redhat.com>
6025 * testsuite/libgomp.c/pr48591.c: New test.
6027 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6030 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
6031 * configure: Regenerate.
6033 2011-02-27 Jakub Jelinek <jakub@redhat.com>
6036 * testsuite/libgomp.fortran/task3.f90: New test.
6038 2011-02-24 Tobias Burnus <burnus@net-b.de>
6040 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
6042 2011-02-23 Jakub Jelinek <jakub@redhat.com>
6045 * libgomp.texi (omp_get_wtime): Don't say time in the past
6048 2011-02-18 Jakub Jelinek <jakub@redhat.com>
6051 * testsuite/libgomp.fortran/fortran.exp: Check for both
6052 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
6053 but $blddir != "", still append ${blddir}/${lang_library_path}
6056 2011-02-16 Tobias Burnus <burnus@net-b.de>
6059 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
6060 of libquadmath.a before adding its libpath to ldflags.
6062 2011-02-14 Jakub Jelinek <jakub@redhat.com>
6065 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
6066 to FUTEX_WAIT futex syscall.
6067 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
6069 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6071 * configure: Regenerate.
6073 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
6076 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
6078 2011-01-16 Gerald Pfeifer
6080 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
6082 2010-12-14 Jakub Jelinek <jakub@redhat.com>
6085 * libgomp.fortran/allocatable6.f90: New test.
6087 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6089 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
6090 * configure: Regenerate.
6092 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
6096 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
6097 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
6098 * aclocal.m4: Regenerate.
6099 * configure: Regenerate.
6100 * Makefile.in: Regenerate.
6101 * testsuite/Makefile.in: Regenerate.
6103 2010-12-02 Jakub Jelinek <jakub@redhat.com>
6106 * libgomp.fortran/pr46753.f90: New test.
6109 * env.c (initialize_env): Default to spin count 300000
6110 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
6114 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
6115 at the end if sync builtins aren't supported.
6117 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6119 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
6121 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6123 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
6125 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
6127 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
6129 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6130 Tobias Burnus <burnus@net-b.de>
6134 * configure: Regenerate.
6136 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
6138 * config/linux/futex.h: New.
6139 * config/linux/arm/mutex.h: New.
6140 * configure.tgt (arm*-*-linux*): Add config path.
6142 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
6144 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
6146 2010-09-23 Tobias Burnus <burnus@net-b.de>
6148 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
6149 Change Fortran datatype to LOGICAL.
6150 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
6151 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
6153 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6155 * configure: Regenerate.
6157 2010-07-26 Jakub Jelinek <jakub@redhat.com>
6159 * libgomp.texi: Add function keyword to a couple of Fortran
6160 interfaces, use integer instead of int for Fortran.
6162 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
6164 * libgomp.texi: Fix spelling and pasto problems throughout.
6165 Adjust prototypes to match code.
6167 2010-07-24 Tobias Burnus <burnus@net-b.de>
6169 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
6170 silence -fwhole-file warning.
6172 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6174 * configure.tgt (*-*-solaris2.[56]*): Removed.
6176 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6178 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
6179 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
6180 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
6181 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
6182 targetting solaris2*.
6183 * configure: Regenerate.
6184 * config.h.in: Regenerate.
6186 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
6187 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
6188 Add libgomp_version_dep.
6189 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
6191 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
6192 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
6193 * Makefile.in: Regenerate.
6195 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
6196 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
6197 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
6198 to common block, protected by
6199 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
6201 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
6203 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
6205 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
6208 * configure: Regenerate.
6210 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6213 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
6214 * configure: Regenerate.
6215 * Makefile.in: Regenerate.
6216 * testsuite/Makefile.in: Regenerate.
6218 2010-04-26 Jakub Jelinek <jakub@redhat.com>
6221 * testsuite/libgomp.c/pr43893.c: New test.
6222 * testsuite/libgomp.c++/pr43893.C: New test.
6224 2010-04-21 Jakub Jelinek <jakub@redhat.com>
6227 * testsuite/libgomp.fortran/vla8.f90: New test.
6229 2010-04-20 Jakub Jelinek <jakub@redhat.com>
6232 * config/linux/affinity.c (gomp_init_affinity): Decrease
6233 gomp_available_cpus if affinity mask confines the process to fewer
6235 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
6236 non-NULL, just return gomp_available_cpus.
6239 * sections.c (gomp_sections_init): Initialize ws->mode.
6241 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6243 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
6244 not unused bar variable.
6245 * configure: Regenerate.
6247 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6249 * Makefile.in: Regenerate.
6250 * aclocal.m4: Regenerate.
6251 * testsuite/Makefile.in: Regenerate.
6253 2010-03-22 Jakub Jelinek <jakub@redhat.com>
6256 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
6257 (initialize_env): Adjust callers.
6258 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
6259 when the argument is 0.
6261 * testsuite/libgomp.c/pr42942.c: New test.
6263 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
6267 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
6268 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
6270 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6272 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
6273 * testsuite/libgomp.c++/task-6.C: Likewise.
6275 2010-01-28 Steve Ellcey <sje@cup.hp.com>
6277 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
6279 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
6281 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
6282 * configure: Regenerate.
6284 2010-01-26 Jakub Jelinek <jakub@redhat.com>
6287 * testsuite/libgomp.fortran/allocatable5.f90: New test.
6289 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
6291 * configure.ac: Test for executability of GFORTRAN.
6292 * configure: Regenerate.
6294 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6296 * configure: Regenerate.
6298 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
6301 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
6303 2010-01-03 Richard Guenther <rguenther@suse.de>
6305 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
6307 2009-12-23 Sebastian Pop <sebpop@gmail.com>
6309 * testsuite/libgomp.graphite/pr4118.c: New.
6311 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
6313 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
6314 for darwin, protect the test with require-effective-target tls_runtime.
6315 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
6317 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
6320 * testsuite/lib/libgomp.exp: Provide -B options to allow for
6321 link spec %s substitutions for static libraries.
6323 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
6326 * libgomp.graphite/force-parallel-2.c: Reduce array size.
6328 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6330 * Makefile.in: Regenerate.
6331 * configure: Regenerate.
6332 * testsuite/Makefile.in: Regenerate.
6334 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
6336 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
6337 settings for LC_ALL and LANG.
6339 2009-11-25 Jakub Jelinek <jakub@redhat.com>
6342 * testsuite/libgomp.fortran/pr42162.f90: New test.
6344 2009-11-13 Jakub Jelinek <jakub@redhat.com>
6347 * testsuite/libgomp.c/pr42029.c: New test.
6349 2009-10-26 Jakub Jelinek <jakub@redhat.com>
6351 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
6352 *s. Accept ld version without text in ()s.
6353 * configure: Regenerated.
6355 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
6357 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
6359 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6362 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
6363 or a hyphen (happens with fortran language disabled).
6364 * configure: Regenerate.
6366 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6368 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
6369 use sed script portable to Solaris /bin/sed for extracting ld
6371 * configure: Regenerate.
6373 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
6375 * testsuite/libgomp.graphite/bounds.c: New test.
6377 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6379 * Makefile.am (libgomp_la_LINK): New.
6380 * Makefile.in: Regenerate.
6382 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6384 * configure.ac (AC_PREREQ): Bump to 2.64.
6386 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6388 * Makefile.am (install-html, install-pdf): Remove.
6389 * Makefile.in: Regenerate.
6391 * Makefile.in: Regenerate.
6392 * aclocal.m4: Regenerate.
6393 * config.h.in: Regenerate.
6394 * configure: Regenerate.
6395 * testsuite/Makefile.in: Regenerate.
6397 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6399 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
6400 * Makefile.in: Regenerate.
6402 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
6404 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
6405 * Makefile.in: Regenerate.
6407 2009-08-19 Tobias Burnus <burnus@net-b.de>
6410 omp_lib.h.in: Fix -std=f95 errors.
6412 2009-08-14 David Edelsohn <edelsohn@gnu.org>
6414 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
6415 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
6416 * testsuite/libgomp.graphite/graphite.exp: New.
6418 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
6420 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
6423 2009-08-04 David Daney <ddaney@caviumnetworks.com>
6425 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
6426 needed memory barrier semantics.
6427 * config/linux/mips/mutex.h: New file.
6429 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6431 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
6433 2009-07-16 Joseph Myers <joseph@codesourcery.com>
6435 * configure: Regenerate.
6437 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
6442 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
6443 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
6444 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
6446 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
6448 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
6449 options when choosing a multilib.
6451 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
6453 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
6454 ld_library_path. Use add_path. Add just find_libgcc_s to
6455 ld_library_path, not every libgcc multilib directory.
6456 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
6457 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
6458 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
6460 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
6462 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
6464 * Makefile.am (LTLDFLAGS): Define.
6466 * Makefile.in: Regenerate.
6468 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
6471 * testsuite/libgomp.fortran/fortran.exp: Don't link with
6472 libgfortranbegin, check existence of libgfortran.a instead of
6475 2009-05-20 Jakub Jelinek <jakub@redhat.com>
6478 * team.c (gomp_thread_start): Destroy thr->release semaphore.
6479 (gomp_free_pool_helper): Likewise.
6481 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
6482 Jakub Jelinek <jakub@redhat.com>
6485 * testsuite/libgomp.fortran/workshare2.f90: New test.
6487 2009-04-09 Nick Clifton <nickc@redhat.com>
6489 * iter.c: Change copyright header to refer to version 3 of the
6490 GNU General Public License with version 3.1 of the GCC Runtime
6491 Library Exception and to point readers at the COPYING3 and
6492 COPYING3.RUNTIME files and the FSF's license web page.
6493 * alloc.c: Likewise.
6494 * barrier.c: Likewise.
6495 * config/bsd/proc.c: Likewise.
6496 * config/linux/affinity.c: Likewise.
6497 * config/linux/alpha/futex.h: Likewise.
6498 * config/linux/bar.c: Likewise.
6499 * config/linux/bar.h: Likewise.
6500 * config/linux/ia64/futex.h: Likewise.
6501 * config/linux/ia64/mutex.h: Likewise.
6502 * config/linux/lock.c: Likewise.
6503 * config/linux/mips/futex.h: Likewise.
6504 * config/linux/mutex.c: Likewise.
6505 * config/linux/mutex.h: Likewise.
6506 * config/linux/powerpc/futex.h: Likewise.
6507 * config/linux/proc.c: Likewise.
6508 * config/linux/ptrlock.c: Likewise.
6509 * config/linux/ptrlock.h: Likewise.
6510 * config/linux/s390/futex.h: Likewise.
6511 * config/linux/sem.c: Likewise.
6512 * config/linux/sem.h: Likewise.
6513 * config/linux/sparc/futex.h: Likewise.
6514 * config/linux/wait.h: Likewise.
6515 * config/linux/x86/futex.h: Likewise.
6516 * config/mingw32/proc.c: Likewise.
6517 * config/mingw32/time.c: Likewise.
6518 * config/posix/affinity.c: Likewise.
6519 * config/posix/bar.c: Likewise.
6520 * config/posix/bar.h: Likewise.
6521 * config/posix/lock.c: Likewise.
6522 * config/posix/mutex.h: Likewise.
6523 * config/posix/proc.c: Likewise.
6524 * config/posix/ptrlock.h: Likewise.
6525 * config/posix/sem.c: Likewise.
6526 * config/posix/sem.h: Likewise.
6527 * config/posix/time.c: Likewise.
6528 * config/posix95/lock.c: Likewise.
6529 * critical.c: Likewise.
6531 * error.c: Likewise.
6532 * fortran.c: Likewise.
6533 * iter_ull.c: Likewise.
6534 * libgomp.h: Likewise.
6535 * libgomp_f.h.in: Likewise.
6536 * libgomp_g.h: Likewise.
6538 * loop_ull.c: Likewise.
6539 * omp.h.in: Likewise.
6540 * omp_lib.f90.in: Likewise.
6541 * omp_lib.h.in: Likewise.
6542 * ordered.c: Likewise.
6543 * parallel.c: Likewise.
6544 * sections.c: Likewise.
6545 * single.c: Likewise.
6550 2009-04-09 Jakub Jelinek <jakub@redhat.com>
6552 * testsuite/config/default.exp: Change copyright header to refer to
6553 version 3 of the GNU General Public License and to point readers
6554 at the COPYING3 file and the FSF's license web page.
6556 2009-04-08 Jakub Jelinek <jakub@redhat.com>
6559 * libgomp.c++/pr39573.C: New test.
6561 2009-04-01 Jakub Jelinek <jakub@redhat.com>
6564 * testsuite/libgomp.c/pr39591-1.c: New test.
6565 * testsuite/libgomp.c/pr39591-2.c: New test.
6566 * testsuite/libgomp.c/pr39591-3.c: New test.
6568 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
6570 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
6571 * testsuite/libgomp.c/atomic-6.c: Ditto.
6573 2009-03-23 Jakub Jelinek <jakub@redhat.com>
6576 * testsuite/libgomp.c/loop-12.c: New test.
6577 * testsuite/libgomp.c/loop-11.c: New test.
6578 * testsuite/libgomp.c++/loop-11.C: New test.
6579 * testsuite/libgomp.c++/loop-12.C: New test.
6580 * testsuite/libgomp.c++/for-8.C: New test.
6582 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6584 * configure: Regenerate.
6586 2009-02-11 Jakub Jelinek <jakub@redhat.com>
6589 * testsuite/libgomp.c/pr39154.c: New test.
6591 2009-01-30 Ian Lance Taylor <iant@google.com>
6593 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
6594 libgomp_ld_is_gold. Get gold version number.
6595 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
6596 * configure: Rebuild.
6598 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
6600 * testsuite/lib/libgomp.exp: Add -B option for targets that
6601 use libgfortran.a%s in their specs.
6603 2009-01-07 Jakub Jelinek <jakub@redhat.com>
6606 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
6607 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
6608 HAVE_AS_SYMVER_DIRECTIVE is not defined.
6609 * configure: Regenerated.
6610 * config.h.in: Likewise.
6612 2008-12-28 Jakub Jelinek <jakub@redhat.com>
6615 * testsuite/libgomp.c/pr38650.c: New test.
6616 * testsuite/libgomp.c++/pr38650.C: New test.
6618 2008-12-27 Jakub Jelinek <jakub@redhat.com>
6620 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
6622 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
6624 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
6626 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6628 * configure: Regenerate.
6630 2008-12-08 Jakub Jelinek <jakub@redhat.com>
6633 * testsuite/libgomp.c/pr36802-1.c: New test.
6634 * testsuite/libgomp.c/pr36802-2.c: New test.
6635 * testsuite/libgomp.c/pr36802-3.c: New test.
6637 2008-12-01 Janis Johnson <janis187@us.ibm.com>
6640 * config/linux/powerpc/mutex.h: New.
6642 2008-12-01 Jakub Jelinek <jakub@redhat.com>
6645 * testsuite/libgomp.c++/for-7.C: New test.
6648 * testsuite/libgomp.c++/for-6.C: New test.
6650 2008-11-26 Janis Johnson <janis187@us.ibm.com>
6653 * testsuite/lib/libgomp.exp: Include new timeout library files.
6654 (libgomp_target_compile): Set timeout value from new proc.
6656 2008-11-13 Steve Ellcey <sje@cup.hp.com>
6659 * config/linux/ia64/mutex.h: New.
6661 2008-11-04 Tobias Burnus <burnus@net-b.de>
6664 * libgomp.texi (Runtime library routines, environment variables):
6665 Update for OpenMP version 3.0.
6667 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
6668 Steve Ellcey <sje@cup.hp.com>
6670 * configure: Regenerate for new libtool.
6671 * Makefile.in: Ditto.
6672 * testsuite/Makefile.in: Ditto.
6674 2008-09-19 Jakub Jelinek <jakub@redhat.com>
6675 Andreas Tobler <a.tobler@schweiz.org>
6677 * config/bsd/proc.c: New file.
6678 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
6679 * configure.ac: Check for header <sys/sysctl.h>
6680 * configure: Regenerate.
6681 * config.h.in: Likewise.
6683 2008-09-05 Janis Johnson <janis187@us.ibm.com>
6685 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
6687 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
6689 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
6690 * Makefile.in: Regenerated.
6691 * testsuite/Makefile.in: Regenerated.
6693 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
6695 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
6696 depend on blddir if blddir exists.
6697 (libgomp_target_compile): Likewise.
6698 * testsuite/libgomp.c++/c++.exp: Likewise.
6699 * testsuite/libgomp.fortran/fortran.exp: Likewise.
6701 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6703 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
6704 Do not list GPL as Invariant Section.
6706 2008-07-28 Ilie Garbacea <ilie@mips.com>
6707 Chao-ying Fu <fu@mips.com>
6709 * configure.tgt: Enable futex for MIPS.
6710 * config/linux/mips/futex.h: New file.
6712 2008-07-16 Jakub Jelinek <jakub@redhat.com>
6714 * team.c (gomp_team_end): Free team immediately if it has
6717 2008-07-08 David Edelsohn <edelsohn@gnu.org>
6719 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
6720 * testsuite/libgomp.fortran/fortran.exp: Same.
6721 * testsuite/libgomp.c/c.exp: Same.
6722 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
6723 directory to library path first.
6725 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
6727 * env.c (parse_stacksize): Add cast to avoid warning.
6728 (parse_spincount): Likewise.
6730 2008-06-27 Jakub Jelinek <jakub@redhat.com>
6732 * testsuite/libgomp.c/loop-10.c: New test.
6733 * libgomp.c/loop-3.c (main): Add lastprivate clause.
6734 * libgomp.c++/loop-6.C (main): Likewise.
6737 * testsuite/libgomp.c/debug-1.c: New test.
6739 2008-06-19 Jakub Jelinek <jakub@redhat.com>
6741 * testsuite/libgomp.c/nqueens-1.c: New test.
6744 * testsuite/libgomp.c++/task-7.C: New function.
6746 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6748 * configure: Regenerate.
6750 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6752 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
6753 mutex when HAVE_SYNC_BUILTINS isn't defined.
6755 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6757 * libgomp.texi (omp_test_lock): Fix typo.
6759 2008-06-12 Tobias Burnus <burnus@net-b.de>
6761 * omp_lib.f90.in: Add "implicit none".
6763 2008-06-12 Jakub Jelinek <jakub@redhat.com>
6766 * testsuite/libgomp.c/reduction-5.c: New test.
6768 2008-06-11 Jakub Jelinek <jakub@redhat.com>
6770 * libgomp.h (struct gomp_task): Add in_tied_task field.
6771 * task.c (gomp_init_task): Initialize it.
6772 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
6773 unconditionally. Don't call gomp_team_barrier_wake if
6774 current task is implicit or if(0) from implicit and number of
6775 running tasks is equal to nthreads - 1.
6778 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
6779 omp_get_team_size_8): Fix pastos.
6782 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
6783 * configure: Regenerated.
6784 * config.h.in: Regenerated.
6785 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
6788 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
6791 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
6792 (GOMP_loop_ull_dynamic_start): Likewise.
6793 (GOMP_loop_ull_guided_start): Likewise.
6794 (GOMP_loop_ull_ordered_static_start): Likewise.
6795 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
6796 (GOMP_loop_ull_ordered_guided_start): Likewise.
6798 2008-06-06 Jakub Jelinek <jakub@redhat.com>
6799 Richard Henderson <rth@redhat.com>
6800 Ulrich Drepper <drepper@redhat.com>
6801 Jakob Blomer <jakob.blomer@ira.uka.de>
6803 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
6804 Substitute also OMP_*LOCK_25*.
6805 * configure: Regenerated.
6806 * config.h.in: Regenerated.
6807 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
6808 ptrlock.c and task.c.
6809 * Makefile.in: Regenerated.
6810 * testsuite/Makefile.in: Regenerated.
6812 * loop_ull.c: New file.
6813 * iter_ull.c: New file.
6814 * libgomp.h: Include ptrlock.h.
6815 (enum gomp_task_kind): New type.
6816 (struct gomp_team): Add task_lock, task_queue, task_count,
6817 task_running_count, single_count fields. Add
6818 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
6819 Remove work_share_lock, generation_mask,
6820 oldest_live_gen, num_live_gen and init_work_shares fields, add
6821 work work_share_list_alloc, work_share_list_free and work_share_chunk
6822 fields. Change work_shares from pointer to pointers into an array.
6823 Change ordered_release field into gomp_sem_t ** from flexible array
6824 member. Add implicit_task and initial_work_shares fields.
6825 Move close to the end of the struct.
6826 (struct gomp_team_state): Add single_count, last_work_share,
6827 active_level and level fields, remove work_share_generation.
6828 (gomp_barrier_handle_tasks): New prototype.
6829 (gomp_finish_task): New inline function.
6830 (struct gomp_work_share): Move chunk_size, end, incr into
6831 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
6832 next_ll fields. Reshuffle fields. Add next_alloc,
6833 next_ws, next_free and inline_ordered_team_ids fields, change
6834 ordered_team_ids into pointer from flexible array member.
6835 Add mode field. Put lock and next into a different cache line
6836 from most of the write-once fields.
6837 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
6838 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
6839 gomp_iter_ull_guided_next): New prototypes.
6840 (gomp_new_icv): New prototype.
6841 (struct gomp_thread): Add thread_pool and task fields.
6842 (struct gomp_thread_pool): New type.
6843 (gomp_new_team): New prototype.
6844 (gomp_team_start): Change type of last argument.
6845 (gomp_new_work_share): Removed.
6846 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
6847 (gomp_work_share_init_done): New static inline.
6848 (gomp_throttled_spin_count_var, gomp_available_cpus,
6849 gomp_managed_threads): New extern decls.
6850 (gomp_init_task): New prototype.
6851 (gomp_spin_count_var): New extern var decl.
6852 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
6853 or no alias support, or if not PIC.
6854 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
6855 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
6856 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
6857 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
6858 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
6859 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
6860 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
6861 gomp_test_nest_lock_25): New prototypes.
6862 (omp_lock_symver, strong_alias): Define.
6863 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
6865 (gomp_end_task): New.
6866 (struct gomp_task_icv, gomp_global_icv): New.
6867 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
6868 (struct gomp_task): New.
6869 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
6870 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
6872 (gomp_schedule_type): Reorder enum to match
6874 * team.c (struct gomp_thread_start_data): Add thread_pool and task
6876 (gomp_thread_start): Add gomp_team_barrier_wait call.
6877 For non-nested case remove clearing of docked thread thr fields.
6878 Use pool fields instead of global gomp_* variables. Use
6879 gomp_barrier_wait_last when needed. Initialize ts.active_level.
6880 Create tasks for each member thread.
6881 (free_team): Only destroy team barrier, task_lock here and free it.
6882 (gomp_free_thread): Free last_team if non-NULL.
6883 (gomp_team_end): Call gomp_team_barrier_wait instead of
6884 gomp_barrier_wait. For nested case call one extra
6885 gomp_barrier_wait. Move here some destruction from free_team.
6886 Call free_team on pool->last_team if any, rather than freeing
6887 current team. Destroy work_share_list_free_lock ifndef
6889 (gomp_new_icv): New function.
6890 (gomp_threads, gomp_threads_size, gomp_threads_used,
6891 gomp_threads_dock): Removed.
6892 (gomp_thread_destructor): New variable.
6893 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
6895 (gomp_team_start): Create new pool if current thread doesn't have
6896 one. Use pool fields instead of global gomp_* variables.
6897 Initialize thread_pool field for new threads. Clear single_count.
6898 Change last argument from ws to team, don't create
6899 new team, set ts.work_share to &team->work_shares[0] and clear
6900 ts.last_work_share. Don't clear ts.work_share_generation.
6901 If number of threads changed, adjust atomically gomp_managed_threads.
6902 Use gomp_init_task instead of gomp_new_task,
6903 set thr->task to the corresponding implicit_task array entry.
6904 Create tasks for each member thread. Initialize ts.level.
6905 (initialize_team): Call pthread_key_create on
6906 gomp_thread_destructor.
6907 (team_destructor): New function.
6908 (new_team): Removed.
6909 (gomp_new_team): New function.
6910 (free_team): Free gomp_work_share blocks chained through next_alloc,
6911 instead of freeing work_shares and destroying work_share_lock.
6912 (gomp_team_end): Call gomp_fini_work_share. If number of threads
6913 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
6914 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
6915 of gomp_barrier_wait.
6916 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
6917 instead of gomp_barrier_wait. Call gomp_work_share_init_done
6918 if gomp_work_share_start returned true. Don't unlock ws->lock.
6919 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
6920 of gomp_barrier_wait.
6921 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
6922 gomp_work_share_init_done if gomp_work_share_start returned true.
6923 Don't unlock ws->lock.
6924 * work.c: Include stddef.h.
6925 (free_work_share): Use work_share_list_free_lock instead
6926 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
6927 Call gomp_fini_work_share and then either free ws if orphaned, or
6928 put it into work_share_list_free list of the current team.
6929 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
6931 (gomp_work_share_start, gomp_work_share_end,
6932 gomp_work_share_end_nowait): Rewritten.
6933 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
6934 (openmp_version): Set to 200805.
6935 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
6936 omp_sched_guided, omp_sched_auto): New parameters.
6937 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
6938 omp_set_max_active_levels, omp_get_max_active_levels,
6939 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
6940 omp_get_active_level): New interfaces.
6941 * omp_lib.h.in (openmp_version): Set to 200805.
6942 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
6943 omp_sched_guided, omp_sched_auto): New parameters.
6944 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
6945 omp_set_max_active_levels, omp_get_max_active_levels,
6946 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
6947 omp_get_active_level): New externals.
6948 * loop.c: Include limits.h.
6949 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
6951 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
6952 Likewise. Use gomp_icv.
6953 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
6954 ts.static_trip here.
6955 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
6956 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
6957 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
6958 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
6959 don't unlock ws->lock, otherwise lock it.
6960 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
6961 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
6962 (gomp_parallel_loop_start): Call gomp_new_team instead of
6963 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
6964 Adjust gomp_team_start caller. Pass 0 as second argument to
6965 gomp_resolve_num_threads.
6966 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
6967 If adding ws->chunk_size nthreads + 1 times after end won't
6968 overflow, set ws->mode to 1.
6969 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
6970 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
6971 GOMP_loop_ull_ordered_static_start,
6972 GOMP_loop_ull_ordered_dynamic_start,
6973 GOMP_loop_ull_ordered_guided_start,
6974 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
6975 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
6976 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
6977 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
6978 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
6980 * libgomp.map: Export lock routines also @@OMP_2.0.
6981 (GOMP_loop_ordered_dynamic_first,
6982 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
6983 GOMP_loop_ordered_static_first): Remove.
6984 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
6985 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
6986 GOMP_loop_ull_ordered_dynamic_next,
6987 GOMP_loop_ull_ordered_dynamic_start,
6988 GOMP_loop_ull_ordered_guided_next,
6989 GOMP_loop_ull_ordered_guided_start,
6990 GOMP_loop_ull_ordered_runtime_next,
6991 GOMP_loop_ull_ordered_runtime_start,
6992 GOMP_loop_ull_ordered_static_next,
6993 GOMP_loop_ull_ordered_static_start,
6994 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
6995 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
6996 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
6997 (omp_set_schedule, omp_get_schedule,
6998 omp_get_thread_limit, omp_set_max_active_levels,
6999 omp_get_max_active_levels, omp_get_level,
7000 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
7001 omp_set_schedule_, omp_set_schedule_8_,
7002 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
7003 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
7004 omp_get_max_active_levels_, omp_get_level_,
7005 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
7006 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
7007 New exports @@OMP_3.0.
7008 * omp.h.in (omp_sched_t): New type.
7009 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
7010 omp_set_max_active_levels, omp_get_max_active_levels,
7011 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
7012 omp_get_active_level): New prototypes.
7013 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
7014 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
7015 gomp_thread_limit_var, gomp_remaining_threads_count,
7016 gomp_remaining_threads_lock): New variables.
7017 (parse_spincount): New function.
7018 (initialize_env): Call gomp_init_num_threads unconditionally.
7019 Initialize gomp_available_cpus. Call parse_spincount,
7020 initialize gomp_{,throttled_}spin_count_var
7021 depending on presence and value of OMP_WAIT_POLICY and
7022 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
7023 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
7024 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
7025 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
7026 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
7027 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
7028 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
7029 (gomp_global_icv): New.
7030 (parse_schedule): Use it. Parse "auto".
7031 (omp_set_num_threads): Use gomp_icv.
7032 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
7034 (omp_get_max_threads): Move from parallel.c.
7035 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
7036 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
7038 (parse_stacksize, parse_wait_policy): New functions.
7039 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
7040 both wrappers for compatibility and new locks.
7041 (omp_set_schedule, omp_get_schedule,
7042 omp_get_thread_limit, omp_set_max_active_levels,
7043 omp_get_max_active_levels, omp_get_level,
7044 omp_get_ancestor_thread_num, omp_get_team_size,
7045 omp_get_active_level): New ialias_redirect.
7046 (omp_set_schedule_, omp_set_schedule_8_,
7047 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
7048 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
7049 omp_get_max_active_levels_, omp_get_level_,
7050 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
7051 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
7053 * parallel.c: Include limits.h.
7054 (gomp_resolve_num_threads): Add count argument. Rewritten.
7055 (GOMP_parallel_start): Call gomp_new_team and pass that as last
7056 argument to gomp_team_start. Pass 0 as second argument to
7057 gomp_resolve_num_threads.
7058 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
7059 if gomp_thread_limit_var != ULONG_MAX.
7060 (omp_in_parallel): Implement using ts.active_level.
7061 (omp_get_max_threads): Move to env.c.
7062 (omp_get_level, omp_get_ancestor_thread_num,
7063 omp_get_team_size, omp_get_active_level): New functions,
7065 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
7066 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
7067 gomp_iter_dynamic_next instead of the _locked variant and don't take
7068 lock around it, otherwise acquire it before calling
7069 gomp_iter_dynamic_next_locked.
7070 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
7071 gomp_iter_dynamic_next instead of the _locked variant and don't take
7073 (GOMP_parallel_sections_start): Call gomp_new_team instead of
7074 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
7075 Adjust gomp_team_start caller. Pass count as second argument to
7076 gomp_resolve_num_threads, don't adjust num_threads after the call.
7078 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
7079 ws->chunk_size by incr.
7080 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
7082 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
7084 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
7085 (omp_check_defines): Check even the compat defines.
7086 * config/linux/ptrlock.c: New file.
7087 * config/linux/ptrlock.h: New file.
7088 * config/linux/wait.h: New file.
7089 * config/posix/ptrlock.c: New file.
7090 * config/posix/ptrlock.h: New file.
7091 * config/linux/bar.h (gomp_team_barrier_wait,
7092 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
7093 (gomp_team_barrier_set_task_pending,
7094 gomp_team_barrier_clear_task_pending,
7095 gomp_team_barrier_set_waiting_for_tasks,
7096 gomp_team_barrier_waiting_for_tasks,
7097 gomp_team_barrier_done): New inlines.
7098 (gomp_barrier_t): Rewritten.
7099 (gomp_barrier_state_t): New typedef.
7100 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
7101 gomp_barrier_wait_start): Rewritten.
7102 (gomp_barrier_wait_end): Change second argument to
7103 gomp_barrier_state_t.
7104 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
7106 * config/linux/bar.c: Include wait.h instead of libgomp.h and
7108 (gomp_barrier_wait_end): Rewritten.
7109 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
7110 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
7111 * config/posix/bar.h (gomp_barrier_t): Add generation field.
7112 (gomp_barrier_state_t): New typedef.
7113 (gomp_team_barrier_wait,
7114 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
7115 (gomp_barrier_wait_start): Or all but low 2 bits from generation
7116 into the return value. Return gomp_barrier_state_t.
7117 (gomp_team_barrier_set_task_pending,
7118 gomp_team_barrier_clear_task_pending,
7119 gomp_team_barrier_set_waiting_for_tasks,
7120 gomp_team_barrier_waiting_for_tasks,
7121 gomp_team_barrier_done): New inlines.
7122 (gomp_barrier_wait_end): Change second argument to
7123 gomp_barrier_state_t.
7124 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
7126 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
7127 (gomp_barrier_wait_end): Change second argument to
7128 gomp_barrier_state_t.
7129 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
7130 gomp_team_barrier_wake): New functions.
7131 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
7133 (gomp_futex_wake, gomp_futex_wait): New variables.
7134 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
7135 * config/linux/lock.c: Rewrite to make locks task owned,
7136 for backwards compatibility provide the old entrypoints
7137 if symbol versioning. Include wait.h instead of libgomp.h and
7139 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
7140 * config/posix95/lock.c: Rewrite to make locks task owned,
7141 for backwards compatibility provide the old entrypoints
7142 if symbol versioning.
7143 * config/posix/lock.c: Rewrite to make locks task owned,
7144 for backwards compatibility provide the old entrypoints
7145 if symbol versioning.
7146 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
7147 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
7148 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
7149 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
7150 (sys_futex0): Return error code.
7151 (futex_wake, futex_wait): If ENOSYS was returned, clear
7152 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
7153 (cpu_relax, atomic_write_barrier): New static inlines.
7154 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
7155 (futex_wake, futex_wait): If ENOSYS was returned, clear
7156 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
7157 (cpu_relax, atomic_write_barrier): New static inlines.
7158 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
7159 (sys_futex0): Return error code.
7160 (futex_wake, futex_wait): If ENOSYS was returned, clear
7161 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
7162 (cpu_relax, atomic_write_barrier): New static inlines.
7163 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
7164 (sys_futex0): Return error code.
7165 (futex_wake, futex_wait): If ENOSYS was returned, clear
7166 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
7167 (cpu_relax, atomic_write_barrier): New static inlines.
7168 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
7169 (sys_futex0): Return error code.
7170 (futex_wake, futex_wait): If ENOSYS was returned, clear
7171 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
7172 (cpu_relax, atomic_write_barrier): New static inlines.
7173 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
7174 (sys_futex0): Return error code.
7175 (futex_wake, futex_wait): If ENOSYS was returned, clear
7176 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
7177 (cpu_relax, atomic_write_barrier): New static inlines.
7178 * config/linux/sem.c: Include wait.h instead of libgomp.h and
7180 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
7181 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
7182 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
7184 (omp_nest_lock_t): Change owner into void *, add lock field.
7185 * config/posix95/omp-lock.h: Include semaphore.h.
7186 (omp_lock_25_t, omp_nest_lock_25_t): New types.
7187 (omp_lock_t): Use sem_t instead of mutex if semaphores
7189 (omp_nest_lock_t): Likewise. Change owner to void *.
7190 * config/posix/omp-lock.h: Include semaphore.h.
7191 (omp_lock_25_t, omp_nest_lock_25_t): New types.
7192 (omp_lock_t): Use sem_t instead of mutex if semaphores
7194 (omp_nest_lock_t): Likewise. Add owner field.
7196 2008-06-06 Jakub Jelinek <jakub@redhat.com>
7198 * testsuite/libgomp.c/collapse-1.c: New test.
7199 * testsuite/libgomp.c/collapse-2.c: New test.
7200 * testsuite/libgomp.c/collapse-3.c: New test.
7201 * testsuite/libgomp.c/icv-1.c: New test.
7202 * testsuite/libgomp.c/icv-2.c: New test.
7203 * testsuite/libgomp.c/lib-2.c: New test.
7204 * testsuite/libgomp.c/lock-1.c: New test.
7205 * testsuite/libgomp.c/lock-2.c: New test.
7206 * testsuite/libgomp.c/lock-3.c: New test.
7207 * testsuite/libgomp.c/loop-4.c: New test.
7208 * testsuite/libgomp.c/loop-5.c: New test.
7209 * testsuite/libgomp.c/loop-6.c: New test.
7210 * testsuite/libgomp.c/loop-7.c: New test.
7211 * testsuite/libgomp.c/loop-8.c: New test.
7212 * testsuite/libgomp.c/loop-9.c: New test.
7213 * testsuite/libgomp.c/nested-3.c: New test.
7214 * testsuite/libgomp.c/nestedfn-6.c: New test.
7215 * testsuite/libgomp.c/sort-1.c: New test.
7216 * testsuite/libgomp.c/task-1.c: New test.
7217 * testsuite/libgomp.c/task-2.c: New test.
7218 * testsuite/libgomp.c/task-3.c: New test.
7219 * testsuite/libgomp.c/task-4.c: New test.
7220 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
7221 to C++ testsuite default compiler options.
7222 * testsuite/libgomp.c++/collapse-1.C: New test.
7223 * testsuite/libgomp.c++/collapse-2.C: New test.
7224 * testsuite/libgomp.c++/ctor-10.C: New test.
7225 * testsuite/libgomp.c++/for-1.C: New test.
7226 * testsuite/libgomp.c++/for-2.C: New test.
7227 * testsuite/libgomp.c++/for-3.C: New test.
7228 * testsuite/libgomp.c++/for-4.C: New test.
7229 * testsuite/libgomp.c++/for-5.C: New test.
7230 * testsuite/libgomp.c++/loop-8.C: New test.
7231 * testsuite/libgomp.c++/loop-9.C: New test.
7232 * testsuite/libgomp.c++/loop-10.C: New test.
7233 * testsuite/libgomp.c++/task-1.C: New test.
7234 * testsuite/libgomp.c++/task-2.C: New test.
7235 * testsuite/libgomp.c++/task-3.C: New test.
7236 * testsuite/libgomp.c++/task-4.C: New test.
7237 * testsuite/libgomp.c++/task-5.C: New test.
7238 * testsuite/libgomp.c++/task-6.C: New test.
7239 * testsuite/libgomp.fortran/allocatable1.f90: New test.
7240 * testsuite/libgomp.fortran/allocatable2.f90: New test.
7241 * testsuite/libgomp.fortran/allocatable3.f90: New test.
7242 * testsuite/libgomp.fortran/allocatable4.f90: New test.
7243 * testsuite/libgomp.fortran/collapse1.f90: New test.
7244 * testsuite/libgomp.fortran/collapse2.f90: New test.
7245 * testsuite/libgomp.fortran/collapse3.f90: New test.
7246 * testsuite/libgomp.fortran/collapse4.f90: New test.
7247 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
7248 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
7249 * testsuite/libgomp.fortran/lib4.f90: New test.
7250 * testsuite/libgomp.fortran/lock-1.f90: New test.
7251 * testsuite/libgomp.fortran/lock-2.f90: New test.
7252 * testsuite/libgomp.fortran/nested1.f90: New test.
7253 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
7254 * testsuite/libgomp.fortran/strassen.f90: New test.
7255 * testsuite/libgomp.fortran/tabs1.f90: New test.
7256 * testsuite/libgomp.fortran/tabs2.f: New test.
7257 * testsuite/libgomp.fortran/task1.f90: New test.
7258 * testsuite/libgomp.fortran/task2.f90: New test.
7259 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
7260 * testsuite/libgomp.fortran/vla5.f90: Likewise.
7261 * testsuite/libgomp.c/pr26943-2.c: Likewise.
7262 * testsuite/libgomp.c/pr26943-3.c: Likewise.
7263 * testsuite/libgomp.c/pr26943-4.c: Likewise.
7265 2008-05-23 Jakub Jelinek <jakub@redhat.com>
7268 * testsuite/libgomp.c++/ctor-11.C: New test.
7269 * testsuite/libgomp.c++/ctor-12.C: New test.
7271 2008-05-15 Janis Johnson <janis187@us.ibm.com>
7273 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
7275 2008-05-07 Jakub Jelinek <jakub@redhat.com>
7278 * testsuite/libgomp.c/atomic-5.c: New test.
7279 * testsuite/libgomp.c/atomic-6.c: New test.
7280 * testsuite/libgomp.c/autopar-1.c: New test.
7282 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7284 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
7285 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
7286 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
7287 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
7288 * configure: Regenerate.
7289 * Makefile.in, testsuite/Makefile.in: Likewise.
7291 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
7294 * aclocal.m4: Regenerate.
7295 * configure: Regenerate.
7297 2008-03-18 Jakub Jelinek <jakub@redhat.com>
7300 * testsuite/libgomp.c/atomic-4.c: New test.
7303 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
7304 (gomp_iter_guided_next): Likewise.
7305 * testsuite/libgomp.c/pr35625.c: New test.
7307 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7309 * aclocal.m4: Regenerate.
7310 * configure: Likewise.
7311 * Makefile.in: Likewise.
7312 * testsuite/Makefile.in: Likewise.
7314 2008-03-13 Jakub Jelinek <jakub@redhat.com>
7317 * testsuite/libgomp.c++/pr35185.C: New test.
7319 2008-03-12 Jakub Jelinek <jakub@redhat.com>
7322 * testsuite/libgomp.c/pr35549.c: New test.
7324 2008-03-06 Jakub Jelinek <jakub@redhat.com>
7326 * testsuite/libgomp.c/atomic-3.c: New test.
7328 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7331 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
7334 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
7337 * configure.ac: Add ACX_HEADER_STRING.
7338 * env.c: Include strings.h.
7339 * aclocal.m4: Regenerate.
7340 * config.h.in: Regenerate.
7341 * configure: Regenerate.
7342 * Makefile.in: Regenerate.
7343 * testsuite/Makefile.in: Regenerate.
7345 2008-02-15 Jakub Jelinek <jakub@redhat.com>
7348 * testsuite/libgomp.c/pr35196.c: New test.
7351 * testsuite/libgomp.fortran/pr35130.f90: New test.
7352 * testsuite/libgomp.c/pr35130.c: New test.
7354 2008-01-25 Jakub Jelinek <jakub@redhat.com>
7357 * testsuite/libgomp.c/pr33880.c: New test.
7358 * testsuite/libgomp.fortran/pr33880.f90: New test.
7360 2008-01-24 David Edelsohn <edelsohn@gnu.org>
7362 * configure: Regenerate.
7364 2008-01-08 Jakub Jelinek <jakub@redhat.com>
7366 * configure.ac: Move futex checking into ../config/futex.m4.
7367 * configure: Rebuilt.
7368 * aclocal.m4: Rebuilt.
7369 * Makefile.in: Rebuilt.
7371 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
7372 2007-10-15 ../config/tls.m4 change.
7374 2007-12-19 Jakub Jelinek <jakub@redhat.com>
7377 * testsuite/libgomp.c/pr34513.c: New test.
7378 * testsuite/libgomp.c++/pr34513.C: New test.
7380 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
7383 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
7385 2007-12-04 Jakub Jelinek <jakub@redhat.com>
7387 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
7389 2007-12-03 Jakub Jelinek <jakub@redhat.com>
7391 * testsuite/libgomp.c/private-1.c: New test.
7393 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
7394 Paolo Bonzini <bonzini@gnu.org>
7396 * Makefile.am: Use space as vpath separator. Use 'vpath %'
7397 instead of 'VPATH ='.
7398 * Makefile.in: Regenerate.
7400 2007-11-23 Matthias Klose <doko@ubuntu.com>
7402 * configure.ac: Adjust makeinfo version check.
7403 * configure: Regenerate.
7405 2007-11-10 Jakub Jelinek <jakub@redhat.com>
7408 * testsuite/libgomp.fortran/pr34020.f90: New test.
7410 2007-11-06 Jakub Jelinek <jakub@redhat.com>
7413 * testsuite/libgomp.c++/atomic-1.C: New test.
7415 2007-10-25 Jakub Jelinek <jakub@redhat.com>
7418 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
7419 Make x and y integers rather than (implicit) reals. Add private (j)
7420 clause to the last omp parallel.
7422 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
7424 * configure: Regenerate following changes to ../config/tls.m4.
7426 2007-09-28 Jakub Jelinek <jakub@redhat.com>
7428 * testsuite/libgomp.fortran/stack.f90: New test.
7430 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
7432 * config/mingw32/proc.c: New file.
7434 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
7436 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
7437 (main): Use __get_cpuid to get i386 target fetaures.
7438 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
7439 (main): Use __get_cpuid to get x86_64 target fetaures.
7441 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
7444 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
7445 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
7447 2007-07-12 Jakub Jelinek <jakub@redhat.com>
7450 * testsuite/libgomp.fortran/pr32550.f90: New test.
7451 * testsuite/libgomp.fortran/crayptr2.f90: New test.
7453 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
7455 * aclocal.m4: Regenerated.
7457 2007-07-05 Tobias Burnus <burnus@net-b.de>
7460 * testsuite/libgomp.fortran/pr32359.f90: New.
7462 2007-07-02 Jakub Jelinek <jakub@redhat.com>
7465 * sections.c (GOMP_parallel_sections_start): Only decrease
7466 number of threads to COUNT if dyn_var is true.
7467 * testsuite/libgomp.c/pr32468.c: New test.
7469 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7472 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
7474 2007-06-21 Jakub Jelinek <jakub@redhat.com>
7477 * testsuite/libgomp.c/pr32362-1.c: New test.
7478 * testsuite/libgomp.c/pr32362-2.c: New test.
7479 * testsuite/libgomp.c/pr32362-3.c: New test.
7481 2007-06-07 Jakub Jelinek <jakub@redhat.com>
7483 * team.c (gomp_team_start): Fix setting up thread_attr
7486 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
7488 * configure: Regenerate.
7490 2007-05-23 Steve Ellcey <sje@cup.hp.com>
7492 * Makefile.in: Regenerate.
7493 * configure: Regenerate.
7494 * aclocal.m4: Regenerate.
7495 * testsuite/Makefile.in: Regenerate.
7497 2007-05-04 Jakub Jelinek <jakub@redhat.com>
7499 * config/linux/proc.c: New file.
7502 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
7504 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
7506 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
7508 2007-04-16 Matthias Klose <doko@debian.org>
7510 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
7511 flags if not building with -m64.
7512 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
7513 flag for i?86-*-* targets, if current target matches -m64.
7515 2007-04-14 Steve Ellcey <sje@cup.hp.com>
7517 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
7518 * Makefile.in: Regenerate.
7520 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7523 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
7525 * testsuite/libgomp.fortran/fortran.exp: Likewise.
7527 2007-04-04 Jakub Jelinek <jakub@redhat.com>
7529 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
7531 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
7532 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
7533 (parse_affinity): New function.
7534 (initialize_env): Call it and gomp_init_affinity.
7535 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
7536 create new pthread_attr_t and call gomp_init_thread_affinity
7537 on it for each thread before passing the attribute to pthread_create.
7538 * config/linux/affinity.c: New file.
7539 * config/posix/affinity.c: New file.
7540 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
7541 * configure: Rebuilt.
7542 * config.h.in: Rebuilt.
7543 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
7544 * Makefile.in: Rebuilt.
7546 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
7548 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
7550 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
7551 and use it if found.
7553 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
7555 * testsuite/config/default.exp: New file.
7556 * testsuite/lib/libgomp.exp: New file.
7557 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
7558 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
7559 load_lib *, load_gcc_lib *): Move to libgomp.exp.
7560 (libgomp_load): Remove.
7561 * testsuite/lib/libgomp.exp (libgomp_init): Compute
7562 always_ld_library_path, not ld_library_path. Set additional_flags
7563 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
7564 (target_compile): Do not call libgomp_init. Append lang_library_path
7565 and lang_link_flags to options.
7566 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
7567 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
7569 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
7570 always_ld_library_path. Set LD_LIBRARY_PATH here.
7571 * testsuite/libgomp.fortran/fortran.exp: Ditto.
7572 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
7573 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
7575 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
7576 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
7577 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
7578 * testsuite/libgomp.c/pr29947-1.c: Ditto.
7579 * testsuite/libgomp.c/atomic-10.c: Ditto.
7581 2007-03-21 Jakub Jelinek <jakub@redhat.com>
7583 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
7584 dg-final cleanup-modules line.
7585 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
7586 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
7587 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
7588 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
7589 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
7590 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
7591 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
7593 2007-03-18 Andreas Schwab <schwab@suse.de>
7595 * acinclude.m4: Adjust regular expression for ld version
7597 * configure: Regenerate.
7599 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
7601 * Makefile.am: Add install-pdf target as copied from
7602 automake v1.10 rules.
7603 * Makefile.in: Regenerate
7605 2007-02-07 Jakub Jelinek <jakub@redhat.com>
7608 * configure: Regenerate.
7611 * testsuite/libgomp.c++/pr30703.C: New test.
7613 2007-02-02 Jakub Jelinek <jakub@redhat.com>
7616 2006-07-05 Eric Christopher <echristo@apple.com>
7617 * configure.ac: Depend addition of -pthread on host OS.
7618 * configure: Regenerate.
7620 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7622 * libgomp.texi: Fix spacing after abbreviations.
7624 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
7627 * configure.ac: Add check for makeinfo
7628 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
7629 if an appropiate version of makeinfo is found.
7630 * aclocal.m4: Regenerated.
7631 * configure: Regenerated.
7632 * Makefile.in: Regenerated.
7633 * testsuite/Makefile.in: Regenerated.
7635 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
7638 * libgomp.texi: More about implementation-dependent settings.
7640 2007-01-26 Tobias Burnus <burnus@net-b.de>
7642 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
7644 2007-01-24 Jakub Jelinek <jakub@redhat.com>
7647 * testsuite/libgomp.c/pr30494.c: New test.
7649 2007-01-15 Tom Tromey <tromey@redhat.com>
7651 * configure: Rebuilt.
7652 * configure.ac: Fixed comment.
7654 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
7656 * libgomp.texi: Document implementation specific default values of
7657 environment variables.
7659 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
7662 * libgomp.texi: New file.
7663 * configure.ac: Add --enable-generated-files-in-srcdir option.
7664 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
7666 * Makefile.in: Regenerated.
7667 * config.h.in: Regenerated.
7668 * testsuite/Makefile.in: Regenerated.
7671 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
7674 * env.c (omp_set_num_threads): Set illegal thread count to 1.
7676 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
7678 * configure: Regenerate.
7680 2006-12-04 Jakub Jelinek <jakub@redhat.com>
7683 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
7684 start if there shouldn't be any loop iterations.
7685 (gomp_loop_ordered_static_start): Remove start == end test.
7686 * testsuite/libgomp.c/pr29947-1.c: New test.
7687 * testsuite/libgomp.c/pr29947-2.c: New test.
7689 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
7691 * configure.tgt: Force initial-exec TLS model on Linux only.
7693 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
7695 * configure: Regenerated.
7697 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
7699 * env.c (parse_schedule): Reject out of range values.
7700 (parse_unsigned_long): Reject out of range, negative or zero values.
7702 2006-10-29 Jakub Jelinek <jakub@redhat.com>
7705 * testsuite/libgomp.fortran/pr29629.f90: New test.
7707 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
7710 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
7711 * config/posix95: New directory.
7712 * config/posix95/omp-lock.h: New file.
7713 * config/posix95/lock.c: Likewise.
7715 2006-10-14 Geoffrey Keating <geoffk@apple.com>
7717 * aclocal.m4: Regenerate.
7718 * configure: Regenerate.
7720 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
7722 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
7725 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
7727 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
7729 * configure: Regenerate.
7730 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
7732 2006-09-26 Jakub Jelinek <jakub@redhat.com>
7736 * testsuite/libgomp.c/nestedfn-4.c: New test.
7737 * testsuite/libgomp.c/nestedfn-5.c: New test.
7738 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
7741 * testsuite/libgomp.fortran/condinc1.f: New test.
7742 * testsuite/libgomp.fortran/condinc2.f: New test.
7743 * testsuite/libgomp.fortran/condinc3.f90: New test.
7744 * testsuite/libgomp.fortran/condinc4.f90: New test.
7745 * testsuite/libgomp.fortran/condinc1.inc: New file.
7747 2006-09-18 Tom Tromey <tromey@redhat.com>
7749 * configure: Rebuilt.
7751 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
7754 PR preprocessor/14634
7755 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
7757 * configure: Regenerate.
7759 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
7761 * testsuite/libgomp.fortran/reduction3.f90: Change
7762 -2147483648 to -huge(i)-1 to avoid overflow.
7763 * testsuite/libgomp.fortran/reduction4.f90: Change
7764 Z'ffffffff' to not(0) to avoid overflow.
7766 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
7769 * Makefile.am (libsubincludedir): New.
7770 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
7771 * Makefile.in: Regenerate.
7773 2006-08-17 Jakub Jelinek <jakub@redhat.com>
7776 * env.c: Include ctype.h.
7777 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
7778 leading and/or trailing whitespace and compare strings case
7781 2006-07-16 Jakub Jelinek <jakub@redhat.com>
7784 * testsuite/libgomp.fortran/pr28390.f: New test.
7786 2006-07-05 Eric Christopher <echristo@apple.com>
7788 * configure.ac: Depend addition of -pthread on host OS.
7789 * configure: Regenerate.
7791 2006-06-21 Jakub Jelinek <jakub@redhat.com>
7793 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
7794 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
7797 2006-06-20 Jakub Jelinek <jakub@redhat.com>
7801 * configure.ac: If neither --enable-linux-futex nor
7802 --disable-linux-futex is passed, determine the default by checking
7803 for compiling and/or running against NPTL. With --enable-linux-futex,
7804 check if SYS_gettid and SYS_futex are defined.
7805 * configure: Rebuilt.
7807 2006-06-14 Richard Henderson <rth@redhat.com>
7810 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
7811 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
7813 2006-06-09 Richard Henderson <rth@redhat.com>
7815 * env.c (gomp_nthreads_var): Change to unsigned long.
7816 (gomp_run_sched_chunk): Likewise.
7817 (parse_unsigned_long): Rename from parse_num_threads and generalize.
7818 (initialize_env): Initialize gomp_thread_attr.
7819 * libgomp.h (gomp_nthreads_var): Update decl.
7820 (gomp_run_sched_chunk): Likewise.
7821 (gomp_thread_attr): Declare.
7822 * team.c (gomp_thread_attr): Export.
7823 (initialize_team): Don't initialize it.
7825 2006-06-09 Jakub Jelinek <jakub@redhat.com>
7828 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
7829 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
7831 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
7833 * config/mingw32/time.c: New file.
7834 * configure.tgt: Use it.
7836 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
7838 * Makefile.am: Add install-html target. Add install-html to .PHONY
7839 * Makefile.in: Regenerate.
7841 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7844 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
7845 * testsuite/libgomp.c/critical-1.c: Likewise.
7846 * testsuite/libgomp.c/loop-1.c: Likewise.
7847 * testsuite/libgomp.c/loop-2.c: Likewise.
7848 * testsuite/libgomp.c/single-1.c: Likewise.
7849 * testsuite/libgomp.c/ordered-1.c: Likewise.
7850 * testsuite/libgomp.c/ordered-2.c: Likewise.
7852 2006-05-15 Jakub Jelinek <jakub@redhat.com>
7855 * libgomp.fortran/pr27416-1.f90: New test.
7857 2006-05-03 Jakub Jelinek <jakub@redhat.com>
7860 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
7861 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
7863 2006-05-02 Jakub Jelinek <jakub@redhat.com>
7866 * testsuite/libgomp.c/pr26943-1.c: New test.
7867 * testsuite/libgomp.c/pr26943-2.c: New test.
7868 * testsuite/libgomp.c/pr26943-3.c: New test.
7869 * testsuite/libgomp.c/pr26943-4.c: New test.
7870 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
7871 * testsuite/libgomp.c++/pr26943.C: New test.
7873 2006-05-02 Jakub Jelinek <jakub@redhat.com>
7876 * testsuite/libgomp.c++/pr27337.C: New test.
7878 2006-04-26 Jakub Jelinek <jakub@redhat.com>
7881 * testsuite/libgomp.c/pr26171.c: New test.
7883 2006-04-25 Richard Henderson <rth@redhat.com>
7886 * configure.ac: Use GCC_CHECK_TLS.
7887 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
7888 * Makefile.in, aclocal.m4, configure: Regenerate.
7890 2006-04-10 Matthias Klose <doko@debian.org>
7892 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
7893 directory names containing underscores.
7895 2006-03-21 Jakub Jelinek <jakub@redhat.com>
7898 * testsuite/libgomp.c++/pr26691.C: New test.
7900 2006-03-13 Jakub Jelinek <jakub@redhat.com>
7902 * testsuite/libgomp.fortran/retval2.f90: New test.
7904 2006-03-09 Diego Novillo <dnovillo@redhat.com>
7906 * testsuite/libgomp.c++: New directory.
7908 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
7910 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
7911 * config/posix/sem.c: Implement the above.
7913 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
7915 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
7916 define HAVE_BROKEN_POSIX_SEMAPHORES.
7917 * configure: Rebuilt.
7918 * config.h.in: Rebuilt.
7920 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
7923 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
7924 for the other pthread check.
7925 * configure: Regenerate.
7926 * config.h.in: Regenerate.
7928 2006-02-15 Jakub Jelinek <jakub@redhat.com>
7932 * Makefile.am (fincludedir): New variable.
7933 (nodist_include_HEADERS): Remove Fortran files.
7934 (nodist_finclude_HEADERS): New variable.
7935 * Makefile.in: Regenerated.
7937 2006-02-13 Jakub Jelinek <jakub@redhat.com>
7939 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
7940 Remove tests for returning assumed character length arrays.
7942 2006-02-12 Roger Sayle <roger@eyesopen.com>
7943 John David Anglin <dave@hiauly1.hia.nrc.ca>
7946 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
7948 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7950 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
7952 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
7954 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
7955 part of LD_LIBRARY_PATH manually.
7957 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
7960 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
7963 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
7966 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
7967 * configure.ac (PERL): Don't set.
7968 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
7969 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
7970 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
7971 * omp.h.in: Wrap the new configure substitutions with @ characters.
7972 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
7973 * aclocal.m4, configure, Makefile.in: Regenerate.
7974 * mkomp_h.pl: Delete.
7976 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
7979 * configure.ac: Use GCC_HEADER_STDINT.
7980 * libgomp.h: Include gstdint.h.
7981 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
7982 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
7984 2006-01-24 Richard Henderson <rth@redhat.com>
7987 * configure.ac: Add AM_MAINTAINER_MODE.
7988 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
7990 2006-01-24 Diego Novillo <dnovillo@redhat.com>
7992 * Makefile.in: Regenerate.
7993 * testsuite/Makefile.in: Regenerate.
7994 * aclocal.m4: Regenerate.
7996 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
7998 * config/posix/proc.c: Conditional include of sys/loadavg.h for
8000 * configure.ac: Add check for loadavg.h.
8001 (link_gomp): Adjust comment.
8002 * configure: Regenerate.
8003 * config.h.in: Regenerate.
8005 2006-01-21 Steve Ellcey <sje@cup.hp.com>
8008 * configure.ac: Remove check for alloca.h.
8009 * configure: Regenerate.
8010 * config.h.in: Regenerate.
8011 * libgomp.h: define gomp_alloca to be __builtin_alloca.
8012 * team.c: Remove use of alloca.h.
8013 Call gomp_alloca instead of alloca.
8015 2006-01-20 Steve Ellcey <sje@cup.hp.com>
8018 * team.c: Add include of alloca.h.
8019 * configure.ac: Add check for alloca.h.
8020 * configure: Regenerate.
8021 * config.h.in: Regenerate.
8023 2006-01-17 Jakub Jelinek <jakub@redhat.com>
8026 * testsuite/libgomp.fortran/pr25219.f90: New test.
8028 2005-12-05 Uros Bizjak <uros@kss-loka.si>
8030 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
8031 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
8032 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
8033 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
8034 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
8035 testsuite/libgomp.fortran/threadprivate1.f90,
8036 testsuite/libgomp.fortran/threadprivate2.f90,
8037 testsuite/libgomp.fortran/threadprivate3.f90,
8038 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
8039 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
8040 testsuite/libgomp.fortran/omp_parse3.f90: Change required
8041 effective-target to TLS runtime.
8043 * testsuite/libgomp.fortran/pr25162.f: Require
8044 effective-target TLS runtime.
8046 2005-12-01 Jakub Jelinek <jakub@redhat.com>
8048 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
8049 * testsuite/libgomp.c/nestedfn-3.c: New test.
8051 2005-11-30 Jakub Jelinek <jakub@redhat.com>
8054 * testsuite/libgomp.fortran/pr25162.f: New test.
8056 2005-11-28 Jakub Jelinek <jakub@redhat.com>
8058 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
8059 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
8061 2005-11-25 Jakub Jelinek <jakub@redhat.com>
8063 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
8064 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
8065 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
8066 single.c, team.c, work.c, config/linux/alpha/futex.h,
8067 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
8068 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
8069 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
8070 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
8071 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
8072 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
8073 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
8076 2005-11-18 Jakub Jelinek <jakub@redhat.com>
8078 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
8079 to nodist_noinst_HEADERS.
8080 * Makefile.in: Rebuilt.
8082 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
8083 add integer count field.
8084 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
8085 omp_nest_lock_t type change.
8086 (omp_init_nest_lock): Likewise. Initialize count to 0.
8087 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
8089 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
8091 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
8092 Increment count if successful and return the new nesting level.
8093 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
8094 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
8095 * testsuite/libgomp.c/lib-1.c: New test.
8096 * testsuite/libgomp.fortran/lib1.f90: New test.
8097 * testsuite/libgomp.fortran/lib2.f: New test.
8098 * testsuite/libgomp.fortran/lib3.f: New test.
8100 2005-11-17 Richard Henderson <rth@redhat.com>
8103 * Makefile.am (nodist_toolexeclib_HEADERS): New.
8104 * configure.ac (link_gomp): New. Substitute it.
8105 (AC_CONFIG_FILES): Add libgomp.spec.
8106 * libgomp.spec.in: New file.
8107 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
8108 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
8110 2005-11-18 Jakub Jelinek <jakub@redhat.com>
8112 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
8113 reduction(-:var) behaving the same as reduction(+:var).
8114 * testsuite/libgomp.c/reduction-4.c: New test.
8116 2005-11-15 Uros Bizjak <uros@kss-loka.si>
8118 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
8119 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
8120 testsuite/libgomp.c/copyin-3.c,
8121 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
8122 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
8123 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
8124 testsuite/libgomp.c++/pr24455.C,
8125 testsuite/libgomp.fortran/threadprivate1.f90,
8126 testsuite/libgomp.fortran/threadprivate2.f90,
8127 testsuite/libgomp.fortran/threadprivate3.f90,
8128 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
8129 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
8130 testsuite/libgomp.fortran/omp_parse3.f90: Require
8131 effective-target TLS.
8133 2005-11-14 Diego Novillo <dnovillo@redhat.com>
8137 2005-11-13 Jakub Jelinek <jakub@redhat.com>
8140 * team.c (initialize_team): Pass NULL rather than free as
8141 pthread_key_create destructor. Initialize thread specific data
8142 pointer in initial thread to a static local variable rather than
8145 2005-11-11 Uros Bizjak <uros@kss-loka.si>
8147 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
8148 its location to ld_library_path.
8150 2005-11-10 Diego Novillo <dnovillo@redhat.com>
8152 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
8154 2005-11-10 Diego Novillo <dnovillo@redhat.com>
8156 * testsuite/libgomp.c: Rename from libgomp.dg.
8158 2005-11-09 Diego Novillo <dnovillo@redhat.com>
8160 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
8161 threadprivate variable 'i'.
8163 2005-11-09 Jakub Jelinek <jakub@redhat.com>
8165 * config/linux/s390/futex.h: New file.
8166 * configure.tgt: Use it.
8168 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
8169 before the parallel.
8171 2005-11-08 Jakub Jelinek <jakub@redhat.com>
8174 * testsuite/libgomp.c++/master-1.C: New test.
8176 2005-11-07 Jakub Jelinek <jakub@redhat.com>
8178 * testsuite/libgomp.dg/copyin-3.c: New test.
8180 2005-11-07 Jakub Jelinek <jakub@redhat.com>
8182 * testsuite/libgomp.fortran/retval1.f90: New test.
8183 * testsuite/libgomp.fortran/vla7.f90: New test.
8185 2005-11-06 Jakub Jelinek <jakub@redhat.com>
8187 * testsuite/libgomp.fortran/vla2.f90: New test.
8188 * testsuite/libgomp.fortran/vla3.f90: New test.
8189 * testsuite/libgomp.fortran/vla4.f90: New test.
8190 * testsuite/libgomp.fortran/vla5.f90: New test.
8191 * testsuite/libgomp.fortran/vla6.f90: New test.
8193 2005-11-01 Jakub Jelinek <jakub@redhat.com>
8195 * config/linux/sparc/futex.h: New file.
8196 * configure.tgt: Use it.
8197 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
8199 * critical.c: Include stdlib.h.
8200 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
8201 ignoring return value.
8202 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
8203 LIBGOMP_CHECK_SYNC_BUILTINS check.
8204 * configure: Rebuilt.
8206 2005-10-31 Jakub Jelinek <jakub@redhat.com>
8208 * testsuite/libgomp.fortran/vla1.f90: New test.
8210 2005-10-31 Richard Henderson <rth@redhat.com>
8212 * testsuite/libgomp.fortran/character2.f90: Fix race condition
8213 setting 's' in different threads.
8215 2005-10-31 Jakub Jelinek <jakub@redhat.com>
8217 * libgomp.h (attribute_hidden, ialias): Define.
8218 * config/posix/proc.c (omp_get_num_procs): Add ialias.
8219 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
8220 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
8221 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
8222 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
8223 omp_test_lock, omp_test_nest_lock): Likewise.
8224 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
8225 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
8226 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
8227 omp_test_lock, omp_test_nest_lock): Likewise.
8228 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
8229 omp_get_dynamic, omp_get_nested): Likewise.
8230 * parallel.c (omp_get_num_threads, omp_get_max_threads,
8231 omp_get_thread_num, omp_in_parallel): Likewise.
8232 * fortran.c (ialias_redirect): Define.
8233 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
8234 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
8235 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
8236 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
8237 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
8238 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
8239 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
8240 omp_get_wtime): Add ialias_redirect.
8242 2005-10-30 Jakub Jelinek <jakub@redhat.com>
8244 * fortran.c: Include stdlib.h.
8246 2005-10-29 Jakub Jelinek <jakub@redhat.com>
8248 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
8249 * Makefile.in: Regenerated.
8251 2005-10-28 Jakub Jelinek <jakub@redhat.com>
8253 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
8254 * libgomp_f.h.in (omp_check_defines): New function.
8255 * env.c: Include libgomp_f.h.
8256 (initialize_env): Call omp_check_defines.
8258 * testsuite/libgomp.dg/copyin-2.c: New test.
8259 * testsuite/libgomp.c++/copyin-2.C: New test.
8260 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
8262 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
8263 * testsuite/libgomp.fortran/sharing2.f90: New test.
8265 * testsuite/libgomp.dg/copyin-1.c: New test.
8266 * testsuite/libgomp.c++/copyin-1.C: New test.
8268 2005-10-26 Jakub Jelinek <jakub@redhat.com>
8270 * testsuite/libgomp.fortran/crayptr1.f90: New test.
8272 * testsuite/libgomp.fortran/workshare1.f90: New test.
8274 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
8276 * libgomp.fortran/sharing1.f90: New test.
8278 2005-10-24 Jakub Jelinek <jakub@redhat.com>
8281 * testsuite/libgomp.c++/loop-7.C: New test.
8283 * testsuite/libgomp.dg/nestedfn-2.c: New test.
8285 * testsuite/libgomp.dg/nestedfn-1.c: New test.
8286 * testsuite/libgomp.fortran/reduction6.f90: New test.
8287 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
8289 2005-10-23 Richard Henderson <rth@redhat.com>
8291 * testsuite/libgomp.c++/ctor-1.C: New.
8292 * testsuite/libgomp.c++/ctor-2.C: New.
8293 * testsuite/libgomp.c++/ctor-3.C: New.
8294 * testsuite/libgomp.c++/ctor-4.C: New.
8295 * testsuite/libgomp.c++/ctor-5.C: New.
8296 * testsuite/libgomp.c++/ctor-6.C: New.
8297 * testsuite/libgomp.c++/ctor-7.C: New.
8298 * testsuite/libgomp.c++/ctor-8.C: New.
8299 * testsuite/libgomp.c++/ctor-9.C: New.
8301 2005-10-21 Diego Novillo <dnovillo@redhat.com>
8304 * testsuite/libgomp.c++/pr24455-1.C: New test.
8305 * testsuite/libgomp.c++/pr24455.C: New test.
8306 * testsuite/libgomp.dg/pr24455-1.c: New test.
8307 * testsuite/libgomp.dg/pr24455.c: New test.
8309 2005-10-20 Richard Henderson <rth@redhat.com>
8311 * testsuite/libgomp.c++/loop-6.C: New.
8312 * testsuite/libgomp.dg/loop-3.c: New.
8314 2005-10-20 Jakub Jelinek <jakub@redhat.com>
8316 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
8318 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
8321 2005-10-19 Diego Novillo <dnovillo@redhat.com>
8323 * testsuite/libgomp.fortran/jacobi.f: New test.
8325 2005-10-19 Richard Henderson <rth@redhat.com>
8327 * configure.tgt (i?86-linux): Default to with_arch instead of
8328 CFLAGS. Add -mtune to match target_cpu.
8329 (x86_64-linux): Tune to i686.
8331 * fortran.c (omp_test_nest_lock_): Fix typo.
8333 2005-10-19 Jakub Jelinek <jakub@redhat.com>
8335 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
8336 gomp_ordered_sync): Do nothing if team->nthreads == 1.
8337 * testsuite/libgomp.dg/ordered-3.c: New test.
8339 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
8340 Remove volatile keyword.
8342 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
8343 in COMMON block to avoid warnings on 64-bit targets.
8345 2005-10-18 Diego Novillo <dnovillo@redhat.com>
8347 * testsuite/libgomp.dg/shared-3.c: New test.
8349 2005-10-18 Jakub Jelinek <jakub@redhat.com>
8351 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
8352 * testsuite/libgomp.fortran/reduction5.f90: New test.
8354 2005-10-18 Jakub Jelinek <jakub@redhat.com>
8356 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
8358 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
8359 flush loop now that __sync_synchronize has proper memory barrier.
8360 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
8361 Add -ffixed-form to dg-options.
8363 2005-10-17 Diego Novillo <dnovillo@redhat.com>
8365 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
8366 from subdirectories.
8367 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
8368 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
8369 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
8370 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
8371 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
8372 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
8373 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
8374 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
8375 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
8376 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
8377 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
8378 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
8379 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
8380 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
8381 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
8382 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
8383 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
8384 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
8385 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
8386 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
8387 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
8388 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
8389 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
8390 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
8391 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
8393 2005-10-17 Jakub Jelinek <jakub@redhat.com>
8395 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
8396 lang_library_path exists. Use find instead of glob to gather tests.
8397 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
8399 2005-10-17 Diego Novillo <dnovillo@redhat.com>
8401 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
8402 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
8403 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
8404 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
8405 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
8406 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
8407 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
8408 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
8409 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
8410 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
8411 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
8412 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
8413 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
8415 2005-10-15 Jakub Jelinek <jakub@redhat.com>
8417 * testsuite/libgomp.dg/vla-1.c: New test.
8419 * testsuite/libgomp.fortran/reference2.f90: New test.
8421 * testsuite/libgomp.fortran/character2.f90: Remove explicit
8422 declaration of omp_get_thread_num.
8423 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
8426 * testsuite/libgomp.fortran/reduction1.f90: New test.
8427 * testsuite/libgomp.fortran/reduction2.f90: New test.
8428 * testsuite/libgomp.fortran/reduction3.f90: New test.
8429 * testsuite/libgomp.fortran/reduction4.f90: New test.
8431 2005-10-13 Richard Henderson <rth@redhat.com>
8433 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
8434 * Makefile.in: Regenerate.
8435 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
8436 * libgomp.h: Include bar.h.
8437 (struct gomp_barrier): Remove.
8438 (struct gomp_team): Add barrier. Replace master_barrier with
8439 master_release. Replace threads with ordered_release.
8440 (struct gomp_thread): Replace barrier with release.
8441 * ordered.c (gomp_ordered_first): Update for ordered_release change.
8442 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
8443 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
8444 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
8445 (GOMP_single_copy_end): Likewise.
8446 * team.c (gomp_threads_dock): New.
8447 (gomp_barrier_init, gomp_barrier_destroy): Remove.
8448 (gomp_thread_start): Use gomp_barrier_wait.
8449 (new_team, free_team): Update for gomp_team changes.
8450 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
8451 (gomp_team_end): Use gomp_barrier_wait.
8452 (initialize_team): Update for gomp_thread changes.
8453 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
8454 (gomp_work_share_end_nowait): Use atomic ops when available.
8455 * config/linux/bar.c, config/linux/bar.h: New files.
8456 * config/posix/bar.c, config/posix/bar.h: New files.
8458 2005-10-13 Jakub Jelinek <jakub@redhat.com>
8460 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
8461 * testsuite/libgomp.dg/single-2.c: New test.
8463 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
8464 lang_link_flags): Unset, so that they aren't inherited from previously
8467 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
8469 2005-10-12 Richard Henderson <rth@redhat.com>
8471 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
8472 (libgomp_init): Use lang_test_file, lang_library_path, and
8473 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
8475 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
8476 (lang_test_file, lang_link_flags): New.
8477 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
8479 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
8480 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
8481 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
8482 testsuite/libgomp.c++/parallel-1.C,
8483 testsuite/libgomp.c++/reduction-1.C,
8484 testsuite/libgomp.c++/reduction-2.C,
8485 testsuite/libgomp.c++/reduction-3.C,
8486 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
8487 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
8488 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
8489 New files, largely cribbed from the C testsuite.
8491 2005-10-12 Jakub Jelinek <jakub@redhat.com>
8493 * testsuite/libgomp.fortran/character1.f90: New test.
8494 * testsuite/libgomp.fortran/character2.f90: New test.
8496 * testsuite/libgomp.dg/nested-1.c: New test.
8497 * testsuite/libgomp.dg/nested-2.c: New test.
8498 * testsuite/libgomp.fortran/do1.f90: New test.
8499 * testsuite/libgomp.fortran/do2.f90: New test.
8501 * testsuite/libgomp.fortran/reference1.f90: New test.
8503 2005-10-11 Jakub Jelinek <jakub@redhat.com>
8505 * testsuite/libgomp.dg/reduction-1.c: New test.
8506 * testsuite/libgomp.dg/reduction-2.c: New test.
8507 * testsuite/libgomp.dg/reduction-3.c: New test.
8509 2005-10-10 Jakub Jelinek <jakub@redhat.com>
8511 * testsuite/libgomp.dg/atomic-1.c: New test.
8512 * testsuite/libgomp.dg/atomic-2.c: New test.
8514 2005-10-09 Richard Henderson <rth@redhat.com>
8516 * critical.c (atomic_lock): New.
8517 (initialize_critical): Initialize it.
8518 (GOMP_atomic_start, GOMP_atomic_end): New.
8519 * libgomp.map: Export them.
8520 * libgomp_g.h: Declare them.
8522 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
8524 2005-10-02 Richard Henderson <rth@redhat.com>
8526 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
8527 to XCFLAGS instead of CFLAGS.
8529 2005-09-30 Richard Henderson <rth@redhat.com>
8531 * configure.ac: Determine whether -pthread or -lpthread is needed.
8532 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
8533 * Makefine.in, configure: Rebuild.
8535 2005-09-28 Richard Henderson <rth@redhat.com>
8537 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
8538 * testsuite/libgomp.dg/omp-single-3.c: New test.
8540 2005-09-28 Diego Novillo <dnovillo@redhat.com>
8542 * testsuite/libgomp.dg/omp-single-2.c: New test.
8543 * testsuite/libgomp.dg/shared-2.c: Fix return code.
8545 2005-09-27 Richard Henderson <rth@redhat.com>
8547 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
8548 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
8550 2005-09-27 Jakub Jelinek <jakub@redhat.com>
8552 * testsuite/libgomp.dg/omp-loop03.c: New test.
8554 2005-09-27 Diego Novillo <dnovillo@redhat.com>
8556 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
8558 2005-09-27 Diego Novillo <dnovillo@redhat.com>
8560 * testsuite/libgomp.dg/omp-single-1.c: New test.
8561 * testsuite/libgomp.dg/shared-1.c: Return 0.
8562 Add prototype for abort.
8563 * testsuite/libgomp.dg/shared-2.c: Likewise.
8565 2005-09-26 Jakub Jelinek <jakub@redhat.com>
8567 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
8570 2005-09-26 Diego Novillo <dnovillo@redhat.com>
8572 * testsuite/libgomp.dg/shared-1.c: New test.
8573 * testsuite/libgomp.dg/shared-2.c: New test.
8575 2005-09-24 Richard Henderson <rth@redhat.com>
8577 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
8579 2005-09-24 Richard Henderson <rth@redhat.com>
8581 * iter.c (gomp_iter_static_next): Round up when computing number
8582 of iterations. Don't bother distributing a remainder equally.
8584 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
8585 Don't call srand. Zero b before testing.
8588 2005-09-24 Jakub Jelinek <jakub@redhat.com>
8590 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
8591 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
8593 2005-09-23 Jakub Jelinek <jakub@redhat.com>
8595 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
8596 without !$omp end do, followed immediately by subroutine end.
8598 2005-09-23 Diego Novillo <dnovillo@redhat.com>
8600 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
8602 2005-09-22 Richard Henderson <rth@redhat.com>
8604 * critical.c (GOMP_critical_name_start): Change argument to void**.
8605 Reuse the pointer space if the mutex fits.
8606 (GOMP_critical_name_end): Likewise.
8607 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
8608 * libgomp_g.h (GOMP_critical_name_start): Update decl.
8609 (GOMP_critical_name_end): Likewise.
8610 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
8611 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
8613 2005-09-20 Richard Henderson <rth@redhat.com>
8615 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
8616 (create_lock_lock): New.
8617 (initialize_critical): Initialize it.
8618 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
8619 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
8621 2005-09-20 Diego Novillo <dnovillo@redhat.com>
8623 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
8625 2005-09-20 Diego Novillo <dnovillo@redhat.com>
8627 * testsuite/libgomp.dg/omp-loop01.c: New test.
8628 * testsuite/libgomp.dg/omp-loop02.c: New test.
8630 2005-09-20 Jakub Jelinek <jakub@redhat.com>
8632 * configure.ac (AC_PROG_FC): Add.
8633 (USE_FORTRAN): New automake conditional.
8634 * configure: Rebuilt.
8635 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
8636 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
8637 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
8638 Add rules to build them.
8639 * Makefile.in: Rebuilt.
8640 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
8642 * libgomp.map: Add Fortran wrappers.
8643 * libgomp_f.h.in: New file.
8644 * omp_lib.h.in: New file.
8645 * omp_lib.f90.in: New file.
8646 * fortran.c: New file.
8647 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
8648 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
8649 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
8650 libgfortran has been built.
8651 * testsuite/libgomp.fortran/fortran.exp: New file.
8652 * testsuite/libgomp.fortran/omp_cond1.f: New test.
8653 * testsuite/libgomp.fortran/omp_cond2.f: New test.
8654 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
8655 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
8656 * testsuite/libgomp.fortran/omp_hello.f: New test.
8657 * testsuite/libgomp.fortran/omp_orphan.f: New test.
8658 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
8659 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
8660 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
8661 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
8662 * testsuite/libgomp.fortran/omp_reduction.f: New test.
8663 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
8664 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
8666 2005-08-30 Richard Henderson <rth@redhat.com>
8668 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
8669 function for when aliases are not usable.
8670 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
8671 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
8672 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
8673 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
8674 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
8675 GOMP_loop_ordered_guided_next): Likewise.
8676 * ordered.c (GOMP_ordered_start): Likewise.
8678 2005-08-01 Diego Novillo <dnovillo@redhat.com>
8680 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
8681 * testsuite/libgomp.dg/omp_hello.c: Fix return code
8682 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
8683 * testsuite/libgomp.dg/omp_orphan.c: Likewise
8684 * testsuite/libgomp.dg/omp_reduction.c: Likewise
8685 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
8686 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
8687 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
8688 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
8690 2005-07-07 Eric Christopher <echristo@redhat.com>
8691 Diego Novillo <dnovillo@redhat.com>
8693 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
8694 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
8696 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
8697 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
8698 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
8699 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
8700 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
8701 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
8702 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
8704 2005-06-13 Diego Novillo <dnovillo@redhat.com>
8706 * TOPLEVEL.patch: Remove.
8708 2005-05-16 Richard Henderson <rth@redhat.com>
8710 * configure.ac: Test for clock_gettime.
8711 * config.h.in, configure: Rebuild.
8712 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
8713 (omp_get_wtime): Use clock_gettime if available.
8714 (omp_get_wtick): Use clock_getres if available.
8716 2005-05-11 Richard Henderson <rth@redhat.com>
8718 * config/linux/ia64/futex.h: New file.
8719 * configure.tgt: Use it.
8721 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
8723 2005-05-07 Richard Henderson <rth@redhat.com>
8725 * config/linux/powerpc/futex.h: New file.
8726 * configure.tgt: Use it.
8728 * config/linux/i486/futex.h: Merge ...
8729 * config/linux/x86_64/futex.h: ... into ...
8730 * config/linux/x86/futex.h: ... here.
8731 * configure.tgt: Update to match.
8733 2005-05-06 Richard Henderson <rth@redhat.com>
8735 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
8736 * config/linux/i486/futex.h: Likewise.
8737 * config/linux/x86_64/futex.h: Likewise.
8739 * config/linux/lock.c: New file.
8740 * config/linux/omp-lock.h: New file.
8742 * critical.c, env.h: Don't include omp.h
8743 * config/posix/lock.c: Include libgomp.h instead of omp.h.
8744 * config/posix/time.c: Likewise.
8745 * config/posix/omp-lock.h: New file.
8746 * libgomp.h: Include omp-lock.h and omp.h.
8747 * Makefile.am (nodist_include_HEADERS): New.
8749 * configure.ac (PERL): New.
8750 * mkomp_h.pl: New file.
8751 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
8753 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
8755 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
8756 build directory. Re-add -march=i486 hack.
8758 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
8759 (libgomp_link_flags): Remove.
8760 (libgomp_initialized): Remove.
8761 (libgomp_init): Don't protect from reinitialization. Copy code
8762 from libstdc++ for getting the multilib set correctly.
8764 2005-05-05 Richard Henderson <rth@redhat.com>
8766 * config/linux/alpha/futex.h: New file.
8767 * configure.tgt (alpha*-*-linux*): Use it.
8769 * config/posix/mutex.c: New file.
8770 * config/posix/sem.c: Use libgomp.h.
8772 * configure.tgt (x86_64-linux): Also test CC for -m32.
8773 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
8775 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
8778 * Makefile.am (SUBDIRS): New.
8779 (libgomp_la_LDFLAGS): Add -lpthread.
8780 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
8781 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
8783 * libgomp_g.h: New file.
8784 * libgomp.h: Split out all public declarations to libgomp_g.h.
8785 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
8786 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
8787 * config/linux/sem.h: Likewise.
8788 * config/posix/sem.h: Likewise.
8790 * Makefile.am (AM_LDFLAGS): New.
8791 (libgomp_version_script): Split out from ...
8792 (libgomp_la_LDFLAGS): ... here.
8793 (libgomp_version_info): New.
8794 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
8795 (LIBGOMP_ENABLE): New.
8796 (LIBGOMP_CHECK_LINKER_FEATURES): New.
8797 (LIBGOMP_ENABLE_SYMVERS): New.
8798 * configure.ac (AC_INIT): Version 1.0.
8799 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
8800 (enable-linux-futex): Likewise. Rename from enable-futex.
8801 (libtool_VERSION): New.
8802 (LIBGOMP_ENABLE_SYMVERS): Use it.
8803 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
8804 * Makefile.in, aclocal.m4, configure: Rebuild.
8806 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
8807 (gomp_mutex_unlock_slow): Fix typo.
8808 * config/linux/sem.c: Similarly.
8809 (gomp_sem_post_slow): Fix typo.
8810 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
8811 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
8812 [__PIC__] (sys_futex0): Don't use tmp output in asm.
8814 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
8815 (libgomp_la_LDFLAGS): Add top_srcdir to path.
8816 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
8817 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
8818 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
8819 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
8820 LDFLAGS. Pull enable_futex check to top-level.
8821 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
8822 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
8824 First attempt at real configury.
8825 * Makefile, config.h: Remove file.
8826 * Makefile.am, Makefile.in: New file.
8827 * acinclude.m4 aclocal.m4: New file.
8828 * configure.ac, configure.tgt, configure: New file.
8830 * config/posix/lock.c: Rename from sys-lock.c.
8831 * config/posix/mutex.h: Rename from sys-mutex.h.
8832 * config/posix/sem.c: Rename from sys-sem.c.
8833 * config/posix/sem.h: Rename from sys-sem.h.
8834 * config/posix/proc.c: Rename from sys-proc.c.
8835 * config/posix/time.c: Rename from sys-proc.c.
8837 * config/linux/mutex.c: New file.
8838 * config/linux/mutex.h: New file.
8839 * config/linux/sem.c: New file.
8840 * config/linux/sem.h: New file.
8841 * config/linux/i486/futex.h: New file.
8842 * config/linux/x86_64/futex.h: New file.
8844 2005-05-04 Richard Henderson <rth@redhat.com>
8846 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
8847 * libgomp.h: Declare them.
8848 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
8849 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
8851 2005-05-04 Richard Henderson <rth@redhat.com>
8853 * libgomp-1 code drop
8855 2005-05-04 Richard Henderson <rth@redhat.com>
8857 * iter.c (gomp_iter_static_next): Return tri-state on 0.
8858 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
8859 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
8860 (gomp_iter_static_next): Update.
8861 (gomp_ordered_static_next): Update.
8862 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
8863 (gomp_loop_ordered_static_start): Likewise. Exit early for a
8864 totally empty range.
8865 (gomp_loop_ordered_static_next): Refine test for calling
8866 gomp_ordered_static_next.
8867 * testsuite/ordered-1.c: Add case for more threads than iterations.
8869 * iter.c (gomp_iter_runtime_next_locked): Remove.
8870 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
8871 gomp_loop_guided_start, gomp_loop_ordered_static_start,
8872 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
8873 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
8874 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
8875 gomp_loop_ordered_guided_next): Downcase name, make static, add
8876 an external alias with the old name.
8877 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
8878 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
8879 switch and call one of the above static functions.
8880 * libgomp.h: Update.
8882 * work.c (gomp_work_share_start): Lock the mutex for !first too.
8883 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
8884 GOMP_loop_guided_start, GOMP_loop_runtime_start,
8885 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
8886 GOMP_loop_ordered_guided_start): Update to match.
8887 * sections.c (GOMP_sections_start): Likewise.
8888 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
8890 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
8891 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
8892 Use bounds check instead of modulus.
8893 (gomp_ordered_sync): Split out of GOMP_ordered_start.
8894 (gomp_ordered_last): Don't sync with ordered_owner here.
8895 (gomp_ordered_next): Likewise.
8896 (gomp_ordered_static_loop_next): Likewise.
8897 * loop.c, libgomp.h: Update to match.
8899 * libgomp.h (GOMP_barrier): Declare.
8901 * testsuite/barrier-1.c: New file.
8902 * testsuite/critical-1.c: New file.
8903 * testsuite/ordered-2.c: New file.
8904 * testsuite/ordered-1.c: New file.
8905 * testsuite/sections-1.c: New file.
8906 * testsuite/single-1.c: New file.
8907 * testsuite/Makefile (TESTS): Add them.
8909 2005-05-04 Richard Henderson <rth@redhat.com>
8911 * libgomp.h (struct gomp_work_share): Add ordered_owner.
8912 * loop.c (GOMP_loop_static_start): If not the startup thread,
8913 acquire the mutex to wait for initialization complete.
8914 (GOMP_loop_ordered_static_start): Likewise.
8915 (GOMP_loop_ordered_runtime_start): Likewise.
8916 (GOMP_loop_ordered_static_first): Remove.
8917 (GOMP_loop_ordered_dynamic_first): Remove.
8918 (GOMP_loop_ordered_guided_first): Remove.
8919 (GOMP_loop_ordered_runtime_first): Remove.
8920 * ordered.c (gomp_ordered_loop_first): Post to own release when
8921 we're the first thread.
8922 (gomp_ordered_loop_last): Wait on release if not owner.
8923 (gomp_ordered_loop_next): Likewise.
8924 (gomp_ordered_static_loop_init): New.
8925 (gomp_ordered_static_loop_next): Use ordered_owner.
8926 (GOMP_ordered_start): Likewise.
8927 * work.c (gomp_new_work_share): Initialize ordered_owner.
8929 2005-05-03 Richard Henderson <rth@redhat.com>
8931 * Makefile (OPT): New.
8934 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
8935 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
8936 * libgomp.h, libgomp.map, NOTES: Update to match.
8938 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
8939 Add initialized and thr members.
8940 (gomp_thread_start): Pause when initially spawned to wait for
8941 the whole team to be created.
8942 (gomp_team_start): Release team members at the end.
8944 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
8945 (f_foo_1): Use GOMP_loop_end.
8946 (f_foo_2): Use GOMP_loop_end_nowait.
8948 * testsuite/loop-2.c: New file.
8949 * testsuite/Makefile (TESTS): Add it.
8951 2005-05-03 Richard Henderson <rth@redhat.com>
8953 * iter.c (gomp_iter_static_next): Fix overflow check typo.
8954 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
8955 * team.c (new_team): Initialize oldest_live_gen to 1 if no
8958 * testsuite/Makefile: New file.
8959 * testsuite/loop-1.c: New file.
8961 2005-05-03 Richard Henderson <rth@redhat.com>
8963 Initial implementation and checkin.
8965 Copyright (C) 2005-2018 Free Software Foundation, Inc.
8967 Copying and distribution of this file, with or without modification,
8968 are permitted in any medium without royalty provided the copyright
8969 notice and this notice are preserved.