1 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
3 * testsuite/libgomp.c++/pr66702-1.C: Require
4 vect_simd_clones effective target.
5 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
7 2015-06-30 Tom de Vries <tom@codesourcery.com>
9 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
10 already set. Use DEFAULT_CFLAGS in dg-runtest.
11 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
14 2015-06-30 Tom de Vries <tom@codesourcery.com>
16 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
17 already set. Use DEFAULT_CFLAGS in dg-runtest.
18 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
19 * testsuite/libgomp.c++/pr64824.C: Same.
20 * testsuite/libgomp.c++/pr64868.C: Same.
21 * testsuite/libgomp.c++/pr66199-1.C: Same.
22 * testsuite/libgomp.c++/pr66199-2.C: Same.
23 * testsuite/libgomp.c++/target-2.C: Same.
24 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
25 -std=<standard> option.
26 * testsuite/libgomp.c++/udr-11.C: Same.
27 * testsuite/libgomp.c++/udr-12.C: Same.
28 * testsuite/libgomp.c++/udr-13.C: Same.
29 * testsuite/libgomp.c++/udr-14.C: Same.
30 * testsuite/libgomp.c++/udr-15.C: Same.
31 * testsuite/libgomp.c++/udr-16.C: Same.
32 * testsuite/libgomp.c++/udr-17.C: Same.
33 * testsuite/libgomp.c++/udr-18.C: Same.
34 * testsuite/libgomp.c++/udr-19.C: Same.
35 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
36 * testsuite/libgomp.c++/simd-1.C: Same.
37 * testsuite/libgomp.c++/simd-2.C: Same.
38 * testsuite/libgomp.c++/simd-3.C: Same.
39 * testsuite/libgomp.c++/simd-4.C: Same.
40 * testsuite/libgomp.c++/simd-5.C: Same.
41 * testsuite/libgomp.c++/simd-6.C: Same.
42 * testsuite/libgomp.c++/simd-7.C: Same.
43 * testsuite/libgomp.c++/simd-8.C: Same.
44 * testsuite/libgomp.c++/simd-9.C: Same.
45 * testsuite/libgomp.c++/simd10.C: Same.
46 * testsuite/libgomp.c++/simd11.C: Same.
47 * testsuite/libgomp.c++/simd12.C: Same.
48 * testsuite/libgomp.c++/simd13.C: Same.
50 2015-06-30 Jakub Jelinek <jakub@redhat.com>
53 * testsuite/libgomp.c++/pr66702-1.C: New test.
54 * testsuite/libgomp.c++/pr66702-2.C: New test.
56 2015-06-30 Tom de Vries <tom@codesourcery.com>
58 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
59 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
60 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
61 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
63 2015-06-30 Tom de Vries <tom@codesourcery.com>
65 PR tree-optimization/66652
66 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
67 using restrict pointers.
68 (main): Add arguments to calls to f.
69 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
71 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
73 * configure.ac: Fix check for header <sys/sysctl.h>.
74 * configure: Regenerate.
75 * config.h.in: Likewise.
77 2015-06-23 Tom de Vries <tom@codesourcery.com>
79 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
81 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
83 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
85 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
89 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
90 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
92 2015-06-15 Tom de Vries <tom@codesourcery.com>
94 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
95 dg-additional-options for any remaining options.
96 * testsuite/libgomp.c/atomic-2.c: Same.
97 * testsuite/libgomp.c/atomic-4.c: Same.
98 * testsuite/libgomp.c/atomic-5.c: Same.
99 * testsuite/libgomp.c/atomic-6.c: Same.
100 * testsuite/libgomp.c/autopar-1.c: Same.
101 * testsuite/libgomp.c/copyin-1.c: Same.
102 * testsuite/libgomp.c/copyin-2.c: Same.
103 * testsuite/libgomp.c/copyin-3.c: Same.
104 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
105 * testsuite/libgomp.c/nestedfn-5.c: Same.
106 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
107 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
108 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
109 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
110 * testsuite/libgomp.c/pr32362-1.c: Same.
111 * testsuite/libgomp.c/pr32362-2.c: Same.
112 * testsuite/libgomp.c/pr32362-3.c: Same.
113 * testsuite/libgomp.c/pr39591-1.c: Same.
114 * testsuite/libgomp.c/pr39591-2.c: Same.
115 * testsuite/libgomp.c/pr39591-3.c: Same.
116 * testsuite/libgomp.c/pr58392.c: Same.
117 * testsuite/libgomp.c/pr58756.c: Same.
118 * testsuite/libgomp.c/simd-1.c: Same.
119 * testsuite/libgomp.c/simd-10.c: Same.
120 * testsuite/libgomp.c/simd-11.c: Same.
121 * testsuite/libgomp.c/simd-12.c: Same.
122 * testsuite/libgomp.c/simd-13.c: Same.
123 * testsuite/libgomp.c/simd-14.c: Same.
124 * testsuite/libgomp.c/simd-15.c: Same.
125 * testsuite/libgomp.c/simd-2.c: Same.
126 * testsuite/libgomp.c/simd-3.c: Same.
127 * testsuite/libgomp.c/simd-4.c: Same.
128 * testsuite/libgomp.c/simd-5.c: Same.
129 * testsuite/libgomp.c/simd-6.c: Same.
130 * testsuite/libgomp.c/simd-7.c: Same.
131 * testsuite/libgomp.c/simd-8.c: Same.
132 * testsuite/libgomp.c/simd-9.c: Same.
134 2015-06-15 Tom de Vries <tom@codesourcery.com>
136 * testsuite/libgomp.c/pr35625.c: Fix typo.
138 2015-06-15 Tom de Vries <tom@codesourcery.com>
140 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
142 * testsuite/libgomp.c/atomic-3.c: Same.
143 * testsuite/libgomp.c/debug-1.c: Same.
144 * testsuite/libgomp.c/nqueens-1.c: Same.
145 * testsuite/libgomp.c/pr26171.c: Same.
146 * testsuite/libgomp.c/pr48591.c: Same.
147 * testsuite/libgomp.c/pr64824.c: Same.
148 * testsuite/libgomp.c/pr64868.c: Same.
149 * testsuite/libgomp.c/pr66133.c: Same.
150 * testsuite/libgomp.c/pr66199-1.c: Same.
151 * testsuite/libgomp.c/pr66199-2.c: Same.
152 * testsuite/libgomp.c/target-8.c: Same.
154 2015-06-15 Tom de Vries <tom@codesourcery.com>
156 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
158 * testsuite/libgomp.c/for-1.c: Same.
159 * testsuite/libgomp.c/for-2.c: Same.
160 * testsuite/libgomp.c/for-3.c: Same.
161 * testsuite/libgomp.c/pr35625.c: Same.
162 * testsuite/libgomp.c/pr39154.c: Same.
163 * testsuite/libgomp.c/simd-16.c: Same.
164 * testsuite/libgomp.c/simd-17.c: Same.
166 2015-06-13 Tom de Vries <tom@codesourcery.com>
168 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
170 2015-06-13 Tom de Vries <tom@codesourcery.com>
172 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
173 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
174 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
176 (main): Use N instead of hardcoded constants.
178 2015-06-05 Tom de Vries <tom@codesourcery.com>
180 merge from gomp4 branch:
181 2015-05-28 Tom de Vries <tom@codesourcery.com>
183 PR tree-optimization/65443
184 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
185 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
186 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
188 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
190 * testsuite/libgomp.graphite/bounds.c: Adjust for
191 cleanup-tree-dump removal.
192 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
193 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
194 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
195 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
196 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
197 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
198 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
199 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
200 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
201 * testsuite/libgomp.graphite/pr41118.c: Likewise.
203 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
205 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
206 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
207 (futex_wake) [!__x86_64__]: Ditto.
209 2015-05-28 Julian Brown <julian@codesourcery.com>
211 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
212 function comment. Only call gomp_fatal if new argument is true.
213 (acc_dev_num_out_of_range): New function.
214 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
215 acc_dev_num_out_of_range as appropriate.
216 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
217 (acc_get_device_num, acc_set_device_num): Update calls to
219 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
222 2015-05-28 Julian Brown <julian@codesourcery.com>
225 * oacc-init.c (plugin/plugin-host.h): Include.
226 (acc_on_device): Check whether we're in an offloaded region for
228 plugin. Don't use __builtin_acc_on_device.
229 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
230 nonshm_exec flag in thread-local data.
231 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
232 data for host_nonshm plugin.
233 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
234 for host_nonshm plugin.
235 * plugin/plugin-host.h: New.
237 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
239 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
241 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
243 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
245 (FUTEX_PRIVATE_FLAG): Remove L suffix.
246 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
249 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
251 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
253 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
255 * target.c (gomp_map_pointer): New function abstracting out
256 GOMP_MAP_POINTER handling.
257 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
260 2015-05-19 Jakub Jelinek <jakub@redhat.com>
263 * testsuite/libgomp.c/pr66199-1.c: New test.
264 * testsuite/libgomp.c/pr66199-2.c: New test.
265 * testsuite/libgomp.c++/pr66199-1.C: New test.
266 * testsuite/libgomp.c++/pr66199-2.C: New test.
267 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
268 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
270 2015-05-19 Julian Brown <julian@codesourcery.com>
272 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
275 2015-05-13 Jakub Jelinek <jakub@redhat.com>
278 * testsuite/libgomp.c/pr66133.c: New test.
280 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
282 * Makefile.in: Regenerated with automake-1.11.6.
283 * aclocal.m4: Likewise.
284 * config.h.in: Likewise.
285 * configure: Likewise.
286 * testsuite/Makefile.in: Likewise.
288 2015-05-08 Jason Merrill <jason@redhat.com>
290 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
293 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
295 2015-05-06 Julian Brown <julian@codesourcery.com>
297 * oacc-init.c (acc_device_lock): Add explanatory comment.
298 (resolve_device): Add comment about locking requirement.
299 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
300 gomp_init_device and gomp_fini_device calls.
301 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
302 (acc_get_device_num, acc_set_device_num): Add locking around
303 resolve_device and gomp_init_device calls.
305 2015-05-06 Julian Brown <julian@codesourcery.com>
307 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
308 goacc_thread_lock on error paths.
309 * oacc-mem.c (lookup_host): Remove locking from function. Note
310 locking requirement for caller in function comment.
311 (lookup_dev): Likewise.
312 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
313 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
314 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
317 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
321 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
322 don't expect "0x" prefix for "%p" format specifier, don't expect
323 "(nil)" for NULL pointer.
324 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
325 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
326 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
327 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
328 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
329 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
330 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
331 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
332 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
333 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
334 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
335 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
336 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
337 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
338 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
339 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
340 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
341 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
342 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
343 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
344 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
345 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
346 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
347 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
348 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
349 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
350 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
351 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
352 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
353 accurately specify what we're looking for.
354 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
355 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
356 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
357 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
358 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
360 2015-04-30 James Norris <jnorris@codesourcery.com>
363 * testsuite/lib/libgomp.exp
364 (check_effective_target_openacc_host_selected)
365 (check_effective_target_openacc_host_nonshm_selected): New
367 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
369 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
370 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
371 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
372 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
373 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
374 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
375 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
376 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
377 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
378 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
379 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
380 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
381 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
382 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
383 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
384 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
385 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
386 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
387 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
388 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
389 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
390 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
391 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
392 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
393 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
394 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
395 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
396 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
397 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
398 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
399 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
400 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
401 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
402 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
403 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
404 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
405 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
406 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
407 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
408 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
409 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
410 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
411 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
413 2015-04-08 Julian Brown <julian@codesourcery.com>
415 * libgomp.h (target_mem_desc: Remove mem_map field.
416 (acc_dispatch_t): Remove open_device_func, close_device_func,
417 get_device_num_func, set_device_num_func, target_data members.
418 Change create_thread_data_func argument to device number instead of
420 * oacc-async.c (assert.h): Include.
421 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
422 (acc_wait_all, acc_wait_all_async): Use current host thread's
423 active device, not base_dev.
424 * oacc-cuda.c (acc_get_current_cuda_device)
425 (acc_get_current_cuda_context, acc_get_cuda_stream)
426 (acc_set_cuda_stream): Likewise.
427 * oacc-host.c (host_dispatch): Don't set open_device_func,
428 close_device_func, get_device_num_func or set_device_num_func.
429 * oacc-init.c (base_dev, init_key): Remove.
430 (cached_base_dev): New.
431 (name_of_acc_device_t): New.
432 (acc_init_1): Initialise default-numbered device, not zeroth.
433 (acc_shutdown_1): Close all devices of a given type.
434 (goacc_destroy_thread): Don't use base_dev.
435 (lazy_open, lazy_init, lazy_init_and_open): Remove.
436 (goacc_attach_host_thread_to_device): New.
437 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
438 (acc_get_num_devices): Don't use base_dev.
439 (acc_set_device_type): Reimplement.
440 (acc_get_device_type): Don't use base_dev.
441 (acc_get_device_num): Tweak logic.
442 (acc_set_device_num): Likewise.
443 (acc_on_device): Use acc_get_device_type.
444 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
445 (goacc_lazy_initialize): Reimplement with acc_init and
446 goacc_attach_host_thread_to_device.
447 * oacc-int.h (goacc_thread): Add base_dev field.
448 (base_dev): Remove extern declaration.
449 (goacc_attach_host_thread_to_device): Add prototype.
450 * oacc-mem.c (acc_malloc): Use current thread's device instead of
452 (acc_free): Likewise.
453 (acc_memcpy_to_device): Likewise.
454 (acc_memcpy_from_device): Likewise.
455 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
456 goacc_lazy_initialize (throughout).
457 (GOACC_parallel): Use tgt_offset to locate target functions.
458 * target.c (gomp_map_vars): Don't set tgt->mem_map.
459 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
460 (gomp_load_plugin_for_device): Remove open_device, close_device,
461 get_device_num, set_device_num openacc hook initialisation. Don't set
463 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
464 (GOMP_OFFLOAD_openacc_close_device)
465 (GOMP_OFFLOAD_openacc_get_device_num)
466 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
467 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
469 * plugin/plugin-nvptx.c (ptx_inited): Remove.
470 (instantiated_devices, ptx_dev_lock): New.
471 (struct ptx_image_data): New.
472 (ptx_devices, ptx_images, ptx_image_lock): New.
473 (fini_streams_for_device): Reorder cuStreamDestroy call.
474 (nvptx_get_num_devices): Remove forward declaration.
475 (nvptx_init): Change return type to bool.
476 (nvptx_fini): Remove.
477 (nvptx_attach_host_thread_to_device): New.
478 (nvptx_open_device): Return struct ptx_device* instead of void*.
479 (nvptx_close_device): Change argument type to struct ptx_device*,
481 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
482 (kernel_target_data, kernel_host_table): Remove static globals.
483 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
484 (GOMP_OFFLOAD_init_device): Reimplement.
485 (GOMP_OFFLOAD_fini_device): Likewise.
486 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
487 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
488 (GOMP_OFFLOAD_host2dev): Use ORD argument.
489 (GOMP_OFFLOAD_openacc_open_device)
490 (GOMP_OFFLOAD_openacc_close_device)
491 (GOMP_OFFLOAD_openacc_set_device_num)
492 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
493 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
497 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
499 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
501 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
502 * libgomp.h (struct gomp_memory_mapping): Remove.
503 (struct target_mem_desc): Change type of mem_map from
504 gomp_memory_mapping * to splay_tree_s *.
505 (struct gomp_device_descr): Remove register_image_func, get_table_func.
506 Add load_image_func, unload_image_func.
507 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
508 Remove offload_regions_registered.
509 (gomp_init_tables): Remove.
510 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
512 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
513 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
514 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
515 offload_regions_registered.
516 Initialize load_image_func, unload_image_func, mem_map.root.
517 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
518 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
519 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
520 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
521 gomp_memory_mapping *. Use dev's lock and splay_tree.
522 (lookup_dev): Use dev's lock.
523 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
524 (acc_is_present): Likewise.
525 (acc_map_data): Likewise.
526 (acc_unmap_data): Likewise. Use dev's lock.
527 (present_create_copy): Likewise.
528 (delete_copyout): Pass dev to lookup_host instead of mem_map.
529 (update_dev_host): Likewise.
530 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
531 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
532 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
533 (GOMP_OFFLOAD_get_table): Remove
534 (GOMP_OFFLOAD_load_image): New function.
535 (GOMP_OFFLOAD_unload_image): New function.
536 * target.c (register_lock): New mutex for offload image registration.
537 (num_devices): Do not guard with PLUGIN_SUPPORT.
538 (gomp_realloc_unlock): New static function.
539 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
541 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
542 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
543 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
545 (gomp_unmap_vars): Likewise.
546 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
547 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
548 (gomp_offload_image_to_device): New static function.
549 (GOMP_offload_register): Add mutex lock.
550 Call gomp_offload_image_to_device for all initialized devices.
551 Replace gomp_realloc with gomp_realloc_unlock.
552 (GOMP_offload_unregister): New function.
553 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
554 get_table_func from the plugin with calls to init_device_func and
555 gomp_offload_image_to_device.
556 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
558 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
559 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
560 (GOMP_target_data): Do not call gomp_init_tables.
561 (GOMP_target_update): Likewise. Remove argument from gomp_update.
562 (gomp_load_plugin_for_device): Replace register_image and get_table
563 with load_image and unload_image in DLSYM ().
564 (gomp_register_images_for_device): Remove function.
565 (gomp_target_init): Do not initialize current_device.mem_map.*,
566 current_device.offload_regions_registered.
567 Remove call to gomp_register_images_for_device.
568 Do not free offload_images and num_offload_images.
570 2015-03-30 Jakub Jelinek <jakub@redhat.com>
573 * testsuite/libgomp.fortran/pr65597.f90: New test.
575 2015-03-27 Tom de Vries <tom@codesourcery.com>
578 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
579 (init, check): New function.
580 (foo): Change return type to void.
581 (main): Call init and check.
583 2015-03-27 Tom de Vries <tom@codesourcery.com>
586 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
587 (foo): Use M for non-inner loops to scale down test-case.
589 2015-03-25 Kai Tietz <ktietz@redhat.com>
592 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
593 (GOACC_data_start): Likewise.
594 * target.c (gomp_map_vars): Likewise.
596 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
598 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
601 2015-03-19 Jakub Jelinek <jakub@redhat.com>
603 * testsuite/libgomp.c/target-10.c: New test.
604 * testsuite/libgomp.c++/target-4.C: New test.
606 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
608 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
609 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
611 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
613 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
614 * configure.ac (*-*-rtems*): Assume Pthread is supported.
615 (pthread.h): Check for this header file.
616 * configure: Regenerate.
618 2015-02-25 Tom de Vries <tom@codesourcery.com>
620 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
621 (check_reduction_op, check_reduction_macro, max, min):
623 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
625 (main): Use new functions.
627 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
629 * target.c (gomp_load_plugin_for_device): Use const char * instead of
630 char * for variables holding dlerror return values.
633 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
635 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
637 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
638 Cesar Philippidis <cesar@codesourcery.com>
640 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
641 GOACC_ctaid, and GOACC_nctaid routines.
643 2015-02-11 Jakub Jelinek <jakub@redhat.com>
646 * testsuite/libgomp.c/atomic-18.c: New test.
647 * testsuite/libgomp.c++/atomic-16.C: New test.
649 2015-02-04 Jakub Jelinek <jakub@redhat.com>
653 * testsuite/libgomp.c/pr64824.c: New test.
654 * testsuite/libgomp.c/pr64868.c: New test.
655 * testsuite/libgomp.c++/pr64824.C: New test.
656 * testsuite/libgomp.c++/pr64868.C: New test.
658 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
661 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
663 * config/aix/plugin-suffix.h: Delete.
665 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
668 * configure.tgt (*-*-aix*): Use config_path "aix posix".
669 (*-*-darwin*): Use config_path "bsd darwin posix".
670 (*-*-hpux*): Use config_path "hpux posix".
671 * target.c: Add include of plugin-suffix.h and use
673 * config/aix/plugin-suffix.h: New file.
674 * config/darwin/plugin-suffix.h: New file.
675 * config/hpux/plugin-suffix.h: New file.
676 * config/posix/plugin-suffix.h: New file.
678 2015-01-23 Jakub Jelinek <jakub@redhat.com>
681 * libgomp.c/pr64734.c: New test.
683 2015-01-23 Tom de Vries <tom@codesourcery.com>
686 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
688 2015-01-23 Tom de Vries <tom@codesourcery.com>
691 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
694 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
697 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
698 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
699 formal parameter. Update all users.
700 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
701 Document unused formal parameter.
703 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
705 * oacc-parallel.c: Don't include <alloca.h>.
706 (GOACC_parallel): Use gomp_alloca instead of alloca.
708 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
710 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
712 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
713 James Norris <jnorris@codesourcery.com>
714 Tom de Vries <tom@codesourcery.com>
715 Julian Brown <julian@codesourcery.com>
716 Cesar Philippidis <cesar@codesourcery.com>
717 Nathan Sidwell <nathan@codesourcery.com>
718 Tobias Burnus <burnus@net-b.de>
720 * Makefile.am (search_path): Add $(top_srcdir)/../include.
721 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
722 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
723 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
724 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
725 Include $(top_srcdir)/plugin/Makefrag.am.
726 (nodist_libsubinclude_HEADERS): Add openacc.h.
727 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
728 openacc.f90, openacc.mod, openacc_kinds.mod.
729 (omp_lib.mod): Generalize into...
730 (%.mod): ... this new rule.
731 (openacc_kinds.mod, openacc.mod): New rules.
732 * plugin/configfrag.ac: New file.
733 * configure.ac: Move plugin/offloading support into it. Include
734 it. Instantiate testsuite/libgomp-test-support.pt.exp.
735 * plugin/Makefrag.am: New file.
736 * testsuite/Makefile.am (OFFLOAD_TARGETS)
737 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
739 (libgomp-test-support.exp): New rule.
740 (all-local): Depend on it.
741 * Makefile.in: Regenerate.
742 * testsuite/Makefile.in: Regenerate.
743 * config.h.in: Likewise.
744 * configure: Likewise.
745 * configure.tgt: Harden shell syntax.
746 * env.c: Include "oacc-int.h".
747 (parse_acc_device_type): New function.
748 (gomp_debug_var, goacc_device_type, goacc_device_num): New
750 (initialize_env): Initialize those. Call
751 goacc_runtime_initialize.
752 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
753 (gomp_fatal): Call gomp_vfatal.
754 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
755 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
756 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
757 (splay_tree_node, splay_tree, splay_tree_key)
758 (struct target_mem_desc, struct splay_tree_key_s)
759 (struct gomp_memory_mapping, struct acc_dispatch_t)
760 (struct gomp_device_descr, gomp_acc_insert_pointer)
761 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
762 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
763 (gomp_free_memmap, gomp_fini_device): New declarations.
764 (gomp_vdebug, gomp_debug): New macros.
765 Include "splay-tree.h".
766 * libgomp.map (OACC_2.0): New symbol version. Use for
767 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
768 acc_set_device_type_h_, acc_get_device_type,
769 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
770 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
771 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
772 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
773 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
774 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
775 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
776 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
777 acc_copyin_array_h_, acc_present_or_copyin,
778 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
779 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
780 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
781 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
782 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
783 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
784 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
785 acc_update_device, acc_update_device_32_h_,
786 acc_update_device_64_h_, acc_update_device_array_h_,
787 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
788 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
789 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
790 acc_is_present_64_h_, acc_is_present_array_h_,
791 acc_memcpy_to_device, acc_memcpy_from_device,
792 acc_get_current_cuda_device, acc_get_current_cuda_context,
793 acc_get_cuda_stream, acc_set_cuda_stream.
794 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
795 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
796 GOACC_update, GOACC_wait, GOACC_get_thread_num,
797 GOACC_get_num_threads.
798 (GOMP_PLUGIN_1.0): New symbol version. Use for
799 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
800 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
801 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
802 GOMP_PLUGIN_acc_thread.
803 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
804 environment variable.
805 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
806 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
807 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
808 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
809 (splay_tree_remove): New declarations.
810 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
811 (splay_tree_remove, splay_tree_lookup): Move into...
812 * splay-tree.c: ... this new file.
813 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
814 (splay_tree_node, splay_tree, splay_tree_key)
815 (struct target_mem_desc, struct splay_tree_key_s)
816 (struct gomp_device_descr): Don't declare.
817 (num_devices_openmp): New variable.
818 (gomp_get_num_devices ): Use it.
819 (gomp_init_targets_once): New function.
820 (gomp_get_num_devices ): Use it.
821 (get_kind, gomp_copy_from_async, gomp_free_memmap)
822 (gomp_fini_device, gomp_register_image_for_device): New functions.
823 (gomp_map_vars): Add devaddrs parameter.
824 (gomp_update): Add mm parameter.
825 (gomp_init_device): Move most of it into...
826 (gomp_init_tables): ... this new function.
827 (gomp_register_images_for_device): Remove function.
828 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
829 Make them hidden instead of static.
830 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
831 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
832 (GOMP_target_end_data, GOMP_target_update)
833 (gomp_load_plugin_for_device, gomp_target_init): Update for
835 * oacc-async.c: New file.
836 * oacc-cuda.c: Likewise.
837 * oacc-host.c: Likewise.
838 * oacc-init.c: Likewise.
839 * oacc-int.h: Likewise.
840 * oacc-mem.c: Likewise.
841 * oacc-parallel.c: Likewise.
842 * oacc-plugin.c: Likewise.
843 * oacc-plugin.h: Likewise.
844 * oacc-ptx.h: Likewise.
845 * openacc.f90: Likewise.
846 * openacc.h: Likewise.
847 * openacc_lib.h: Likewise.
848 * plugin/plugin-host.c: Likewise.
849 * plugin/plugin-nvptx.c: Likewise.
850 * libgomp-plugin.c: Likewise.
851 * libgomp-plugin.h: Likewise.
852 * libgomp_target.h: Remove file after merging content into the
853 former file. Update all users.
854 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
855 (offload_targets_s, offload_targets_s_openacc): New variables.
856 (check_effective_target_openacc_nvidia_accel_present)
857 (check_effective_target_openacc_nvidia_accel_selected): New
859 (libgomp_init): Update for OpenACC changes.
860 * testsuite/libgomp-test-support.exp.in: New file.
861 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
862 * testsuite/libgomp.oacc-c/c.exp: Likewise.
863 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
864 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
865 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
866 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
867 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
868 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
869 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
870 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
871 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
872 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
873 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
874 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
875 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
876 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
877 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
878 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
879 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
880 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
881 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
882 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
883 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
884 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
885 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
886 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
887 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
888 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
889 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
890 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
891 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
892 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
893 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
894 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
895 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
896 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
897 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
898 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
899 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
900 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
901 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
902 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
903 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
904 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
905 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
906 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
907 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
908 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
909 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
910 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
911 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
912 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
913 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
914 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
915 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
916 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
917 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
918 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
919 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
920 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
921 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
922 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
923 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
924 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
925 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
926 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
927 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
928 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
929 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
930 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
931 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
932 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
933 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
934 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
935 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
936 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
937 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
938 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
939 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
940 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
941 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
942 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
943 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
944 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
945 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
946 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
947 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
948 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
949 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
950 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
951 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
952 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
953 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
954 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
955 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
956 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
957 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
958 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
959 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
960 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
961 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
962 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
963 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
964 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
965 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
966 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
967 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
968 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
969 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
970 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
971 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
972 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
973 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
974 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
975 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
976 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
977 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
978 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
979 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
980 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
981 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
982 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
983 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
984 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
985 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
986 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
987 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
988 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
989 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
990 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
991 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
992 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
993 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
994 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
995 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
996 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
997 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
998 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
999 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1000 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
1002 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
1003 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
1004 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
1005 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
1006 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
1007 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
1008 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
1009 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1010 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1011 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1012 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
1013 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
1014 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
1015 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
1016 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
1017 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
1018 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
1019 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
1020 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
1021 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
1022 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
1023 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
1024 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
1025 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
1026 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
1027 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
1028 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
1029 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1030 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
1031 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
1032 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
1033 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
1034 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
1035 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1036 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
1037 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
1038 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
1039 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
1040 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
1041 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
1042 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
1043 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
1044 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
1045 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
1046 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
1047 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
1048 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
1049 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
1050 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1051 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
1052 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
1053 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
1054 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1055 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1056 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
1057 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
1058 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
1059 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
1060 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
1061 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
1063 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
1064 Julian Brown <julian@codesourcery.com>
1065 David Malcolm <dmalcolm@redhat.com>
1067 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
1068 to "GNU Offloading and Multi Processing Runtime Library". Change
1070 * configure: Regenerate.
1071 * libgomp.texi: Update.
1073 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
1075 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
1077 * configure: Regenerate.
1079 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
1080 "intelmic" in $offload_targets.
1082 2015-01-05 Jakub Jelinek <jakub@redhat.com>
1084 Update copyright years.
1086 * libgomp.texi: Bump @copying's copyright year.
1088 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1090 * testsuite/lib/libgomp.exp: Load target-utils.exp.
1091 Move load of target-supportes.exp earlier.
1093 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
1095 * testsuite/libgomp.c/target-9.c: New test.
1097 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
1099 * config.h.in: Regenerate.
1100 * configure: Regenerate.
1101 * configure.ac: Add GCC_CHECK_EMUTLS.
1102 * libgomp.h: Add check for USE_EMUTLS: this case
1103 is equal to HAVE_TLS.
1106 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
1108 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
1110 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
1111 Ilya Verbin <ilya.verbin@intel.com>
1113 * testsuite/libgomp.c/target-critical-1.c: New test.
1115 2014-11-26 Jakub Jelinek <jakub@redhat.com>
1117 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
1118 to dg-options unless expensive testing is on.
1119 (TESTITERS): Define to N if not defined.
1120 (main): Use TESTITERS instead of N.
1121 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
1122 dg-additional-options depending on whether expensive testing is on.
1123 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
1124 Decrease N to 100000 and CHUNKSZ to 10000.
1126 2014-11-24 Jakub Jelinek <jakub@redhat.com>
1129 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
1130 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
1132 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
1134 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
1136 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
1139 * configure: Regenerated.
1141 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
1143 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
1144 vect_simd_clones effective target.
1145 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
1147 2014-11-14 Jakub Jelinek <jakub@redhat.com>
1149 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
1150 of 32 as block_size.
1151 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
1152 instead of 32 as block_size.
1154 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
1155 Ilya Verbin <ilya.verbin@intel.com>
1157 * Makefile.in: Regenerate.
1158 * configure: Regenerate.
1159 * configure.ac: Set up offload_additional_options,
1160 offload_additional_lib_paths and offload_targets.
1161 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
1162 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
1163 * testsuite/Makefile.in: Regenerate.
1164 * testsuite/lib/libgomp.exp (libgomp_init): Append
1165 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
1166 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
1167 build directory to LD_LIBRARY_PATH for intelmic offload targets.
1169 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
1170 Ilya Verbin <ilya.verbin@intel.com>
1171 Kirill Yukhin <kirill.yukhin@intel.com>
1172 Ilya Tocar <ilya.tocar@intel.com>
1174 * testsuite/lib/libgomp.exp
1175 (check_effective_target_offload_device): New.
1176 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
1177 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
1178 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
1179 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
1180 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
1181 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
1182 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
1183 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
1184 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
1185 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
1186 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
1187 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
1188 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
1189 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
1190 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
1191 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
1192 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
1193 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
1194 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
1195 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
1196 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
1197 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
1198 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
1199 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
1200 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
1201 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
1202 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
1203 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
1204 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
1205 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
1206 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
1207 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
1208 * testsuite/libgomp.c/target-7.c: Fix test.
1209 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
1210 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
1211 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
1212 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
1213 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
1214 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
1215 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
1216 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
1217 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
1218 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
1219 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
1220 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
1221 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
1222 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
1223 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
1224 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
1225 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
1226 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
1227 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
1228 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
1229 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
1230 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
1231 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
1232 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
1233 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
1234 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
1235 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
1236 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
1237 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
1238 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
1239 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
1241 2014-11-13 Jakub Jelinek <jakub@redhat.com>
1242 Ilya Verbin <ilya.verbin@intel.com>
1243 Thomas Schwinge <thomas@codesourcery.com>
1244 Andrey Turetskiy <andrey.turetskiy@intel.com>
1246 * libgomp.map (GOMP_4.0.1): New symbol version.
1247 Add GOMP_offload_register.
1248 * libgomp_target.h: New file.
1249 * splay-tree.h: New file.
1250 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
1251 (gomp_target_init): New forward declaration.
1252 (gomp_is_initialized): New static variable.
1253 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
1254 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
1256 (offload_images, num_offload_images, devices, num_devices): New static
1258 (splay_compare): New static function.
1259 (struct gomp_device_descr): New structure.
1260 (gomp_get_num_devices): Call gomp_target_init.
1261 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
1262 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
1263 (GOMP_offload_register): New function.
1264 (GOMP_target): Arrange for host callback to be performed in a separate
1265 initial thread and contention group, inheriting ICVs from
1266 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
1267 Add device initialization and lookup for target function in splay tree.
1268 (GOMP_target_data): Add device initialization and call gomp_map_vars.
1269 (GOMP_target_end_data): Call gomp_unmap_vars.
1270 (GOMP_target_update): Add device initialization and call gomp_update.
1271 (gomp_load_plugin_for_device, gomp_register_images_for_device)
1272 (gomp_target_init): New static functions.
1274 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
1275 Thomas Schwinge <thomas@codesourcery.com>
1276 Ilya Verbin <ilya.verbin@intel.com>
1277 Andrey Turetskiy <andrey.turetskiy@intel.com>
1279 * config.h.in: Regenerate.
1280 * configure: Regenerate.
1281 * configure.ac: Check for libdl, required for plugin support.
1282 (PLUGIN_SUPPORT): Define if plugins are supported.
1283 (enable_offload_targets): Support Intel MIC targets.
1284 (OFFLOAD_TARGETS): List of target names suitable for offloading.
1286 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1289 * configure: Regenerate.
1291 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1293 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
1295 2014-10-06 Marek Polacek <polacek@redhat.com>
1297 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
1298 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
1299 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
1300 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
1302 2014-10-06 Marek Polacek <polacek@redhat.com>
1304 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
1305 * testsuite/libgomp.c/nqueens-1.c: Likewise.
1306 * testsuite/libgomp.c/pr26943-3.c: Likewise.
1307 * testsuite/libgomp.c/pr26943-4.c: Likewise.
1308 * testsuite/libgomp.c/pr36802-2.c: Likewise.
1309 * testsuite/libgomp.c/pr36802-3.c: Likewise.
1310 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
1311 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
1312 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
1313 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
1314 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
1315 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
1316 * testsuite/libgomp.c/omp-single-1.c: Likewise.
1317 * testsuite/libgomp.c/omp-single-2.c: Likewise.
1318 * testsuite/libgomp.c/omp_matvec.c: Likewise.
1319 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
1320 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
1321 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
1324 2014-10-03 Jakub Jelinek <jakub@redhat.com>
1327 * testsuite/libgomp.c/pr61200.c: New test.
1329 2014-09-18 Jakub Jelinek <jakub@redhat.com>
1332 * testsuite/libgomp.c++/pr63248.C: New test.
1334 2014-08-04 Jakub Jelinek <jakub@redhat.com>
1336 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
1337 is not zero, but taskgroup->children is NULL and there are
1338 any task->children, schedule those instead of waiting.
1339 * testsuite/libgomp.c/depend-6.c: New test.
1340 * testsuite/libgomp.c/depend-7.c: New test.
1341 * testsuite/libgomp.c/depend-8.c: New test.
1342 * testsuite/libgomp.c/depend-9.c: New test.
1343 * testsuite/libgomp.c/depend-10.c: New test.
1345 2014-08-01 Jakub Jelinek <jakub@redhat.com>
1347 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
1348 (struct gomp_taskwait): New type.
1349 (struct gomp_task): Add taskwait and parent_depends_on, remove
1350 in_taskwait and taskwait_sem fields.
1351 (gomp_finish_task): Don't destroy taskwait_sem.
1352 * task.c (gomp_init_task): Don't init in_taskwait, instead init
1353 taskwait and parent_depends_on.
1354 (GOMP_task): For if (0) tasks with depend clause that depend on
1355 earlier tasks don't defer them, instead call
1356 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
1357 Initialize redundant_out field, for redundant out entries just
1358 move them at the end of linked list instead of removing them
1359 completely, and set redundant_out flag instead of redundant.
1360 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
1362 (gomp_task_run_post_handle_dependers): If parent is in
1363 gomp_task_maybe_wait_for_dependencies and newly runnable task
1364 is not parent_depends_on, queue it in parent->children linked
1365 list after all runnable tasks with parent_depends_on set.
1366 Adjust for addition of taskwait indirection.
1367 (gomp_task_run_post_remove_parent): If parent is in
1368 gomp_task_maybe_wait_for_dependencies and task to be removed
1369 is parent_depends_on, decrement n_depend and if needed awake
1370 parent. Adjust for addition of taskwait indirection.
1371 (GOMP_taskwait): Adjust for addition of taskwait indirection.
1372 (gomp_task_maybe_wait_for_dependencies): New function.
1373 * testsuite/libgomp.c/depend-5.c: New test.
1375 2014-07-13 Tobias Burnus <burnus@net-b.de>
1377 * testsuite/libgomp.fortran/pr34020.f90: Make compile
1378 with TS 18508/Fortran 2015.
1380 2014-07-06 Marek Polacek <polacek@redhat.com>
1383 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
1385 2014-07-03 Jakub Jelinek <jakub@redhat.com>
1387 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
1388 matches regex $lang_source_re, add $lang_include_flags to options.
1389 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
1390 * testsuite/libgomp.c++/c++.exp: Likewise.
1391 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
1392 and lang_include_flags instead of adding -fintrinsic-modules-path= to
1394 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
1396 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
1398 * testsuite/libgomp.fortran/fortran.exp: Explain
1399 gfortran-dg-runtest usage.
1401 2014-06-25 Jakub Jelinek <jakub@redhat.com>
1403 * testsuite/libgomp.fortran/simd5.f90: New test.
1404 * testsuite/libgomp.fortran/simd6.f90: New test.
1405 * testsuite/libgomp.fortran/simd7.f90: New test.
1407 2014-06-24 Jakub Jelinek <jakub@redhat.com>
1409 * testsuite/libgomp.c/for-2.c: Define SC to static for
1410 #pragma omp for simd testing.
1411 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
1412 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
1414 * testsuite/libgomp.c/simd-14.c: New test.
1415 * testsuite/libgomp.c/simd-15.c: New test.
1416 * testsuite/libgomp.c/simd-16.c: New test.
1417 * testsuite/libgomp.c/simd-17.c: New test.
1418 * testsuite/libgomp.c++/for-10.C: Define SC to static for
1419 #pragma omp for simd testing.
1420 * testsuite/libgomp.c++/simd10.C: New test.
1421 * testsuite/libgomp.c++/simd11.C: New test.
1422 * testsuite/libgomp.c++/simd12.C: New test.
1423 * testsuite/libgomp.c++/simd13.C: New test.
1425 * testsuite/libgomp.fortran/aligned1.f03: New test.
1426 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
1427 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
1428 tasks with !$omp parallel !$omp single.
1429 * testsuite/libgomp.fortran/target8.f90: New test.
1430 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
1431 not to use trim in the combiner, instead call elemental function.
1432 (fn): New elemental function.
1433 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
1435 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
1437 * testsuite/libgomp.fortran/udr12.f90: New test.
1438 * testsuite/libgomp.fortran/udr13.f90: New test.
1439 * testsuite/libgomp.fortran/udr14.f90: New test.
1440 * testsuite/libgomp.fortran/udr15.f90: New test.
1442 2014-06-18 Jakub Jelinek <jakub@redhat.com>
1444 * omp_lib.f90.in (openmp_version): Set to 201307.
1445 * omp_lib.h.in (openmp_version): Likewise.
1446 * testsuite/libgomp.c/target-8.c: New test.
1447 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
1448 and inbranch clauses.
1449 * testsuite/libgomp.fortran/depend-3.f90: New test.
1450 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
1452 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
1453 * testsuite/libgomp.fortran/target1.f90: New test.
1454 * testsuite/libgomp.fortran/target2.f90: New test.
1455 * testsuite/libgomp.fortran/target3.f90: New test.
1456 * testsuite/libgomp.fortran/target4.f90: New test.
1457 * testsuite/libgomp.fortran/target5.f90: New test.
1458 * testsuite/libgomp.fortran/target6.f90: New test.
1459 * testsuite/libgomp.fortran/target7.f90: New test.
1461 2014-06-10 Jakub Jelinek <jakub@redhat.com>
1464 * testsuite/libgomp.fortran/allocatable9.f90: New test.
1465 * testsuite/libgomp.fortran/allocatable10.f90: New test.
1466 * testsuite/libgomp.fortran/allocatable11.f90: New test.
1467 * testsuite/libgomp.fortran/allocatable12.f90: New test.
1468 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
1469 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
1470 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
1471 * testsuite/libgomp.fortran/associate1.f90: New test.
1472 * testsuite/libgomp.fortran/associate2.f90: New test.
1473 * testsuite/libgomp.fortran/procptr1.f90: New test.
1475 2014-06-06 Jakub Jelinek <jakub@redhat.com>
1477 * testsuite/libgomp.fortran/simd1.f90: New test.
1478 * testsuite/libgomp.fortran/udr1.f90: New test.
1479 * testsuite/libgomp.fortran/udr2.f90: New test.
1480 * testsuite/libgomp.fortran/udr3.f90: New test.
1481 * testsuite/libgomp.fortran/udr4.f90: New test.
1482 * testsuite/libgomp.fortran/udr5.f90: New test.
1483 * testsuite/libgomp.fortran/udr6.f90: New test.
1484 * testsuite/libgomp.fortran/udr7.f90: New test.
1485 * testsuite/libgomp.fortran/udr8.f90: New test.
1486 * testsuite/libgomp.fortran/udr9.f90: New test.
1487 * testsuite/libgomp.fortran/udr10.f90: New test.
1488 * testsuite/libgomp.fortran/udr11.f90: New test.
1490 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
1492 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
1493 vect_simd_clones effective target.
1494 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
1496 2014-05-21 Jakub Jelinek <jakub@redhat.com>
1499 * testsuite/libgomp.c++/simd-9.C: New test.
1501 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
1503 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
1504 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
1505 texts according to their @menu entry positions.
1507 2014-05-11 Jakub Jelinek <jakub@redhat.com>
1509 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
1510 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
1511 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
1512 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
1513 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
1514 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
1515 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
1516 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
1517 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
1518 * testsuite/libgomp.fortran/depend-1.f90: New test.
1519 * testsuite/libgomp.fortran/depend-2.f90: New test.
1520 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
1521 * testsuite/libgomp.fortran/simd1.f90: New test.
1522 * testsuite/libgomp.fortran/simd2.f90: New test.
1523 * testsuite/libgomp.fortran/simd3.f90: New test.
1524 * testsuite/libgomp.fortran/simd4.f90: New test.
1525 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
1527 2014-05-02 Jakub Jelinek <jakub@redhat.com>
1529 * testsuite/libgomp.c/simd-10.c: New test.
1530 * testsuite/libgomp.c/simd-11.c: New test.
1531 * testsuite/libgomp.c/simd-12.c: New test.
1532 * testsuite/libgomp.c/simd-13.c: New test.
1534 2014-04-24 Jakub Jelinek <jakub@redhat.com>
1536 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
1537 atomic type clauses in any order and optional comma in between.
1538 * testsuite/libgomp.c++/atomic-15.C: Likewise.
1539 * testsuite/libgomp.c/atomic-17.c: Likewise.
1541 * testsuite/libgomp.c/simd-7.c: New test.
1542 * testsuite/libgomp.c/simd-8.c: New test.
1543 * testsuite/libgomp.c/simd-9.c: New test.
1544 * testsuite/libgomp.c/loop-16.c: New test.
1546 2014-04-02 Richard Henderson <rth@redhat.com>
1548 * config/linux/futex.h (futex_wait): Get error value from errno.
1549 (futex_wake): Likewise.
1551 2014-03-25 Jakub Jelinek <jakub@redhat.com>
1554 * testsuite/libgomp.c++/udr-11.C: New test.
1555 * testsuite/libgomp.c++/udr-12.C: New test.
1556 * testsuite/libgomp.c++/udr-13.C: New test.
1557 * testsuite/libgomp.c++/udr-14.C: New test.
1558 * testsuite/libgomp.c++/udr-15.C: New test.
1559 * testsuite/libgomp.c++/udr-16.C: New test.
1560 * testsuite/libgomp.c++/udr-17.C: New test.
1561 * testsuite/libgomp.c++/udr-18.C: New test.
1562 * testsuite/libgomp.c++/udr-19.C: New test.
1564 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1566 Update copyright years
1568 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1570 * hashtab.h: Use the standard form for the copyright notice.
1572 2014-01-02 Tobias Burnus <burnus@net-b.de>
1574 * libgomp.texi: Bump @copying's copyright year.
1576 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
1578 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
1579 alloca () with __builtin_alloca ().
1580 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
1581 * testsuite/libgomp.c/lock-3.c: Likewise.
1582 * testsuite/libgomp.c/pr48591.c: Likewise.
1584 2013-12-17 Jakub Jelinek <jakub@redhat.com>
1587 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
1590 2013-12-16 Jakub Jelinek <jakub@redhat.com>
1593 * testsuite/libgomp.c/pr58756.c: New test.
1595 2013-12-12 Jakub Jelinek <jakub@redhat.com>
1598 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
1601 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
1603 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
1605 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
1606 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
1607 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
1608 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
1611 * libgomp_g.h: Include <stddef.h> for size_t.
1613 * libgomp.spec.in: Update comment about libgomp's dependencies.
1614 * configure.ac: Likewise.
1615 * configure: Regenerate.
1617 2013-10-16 Tobias Burnus <burnus@net-b.de>
1619 * libgomp.texi: (Runtime Library Routines): Update references for
1620 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
1621 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
1622 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
1623 (Environment Variables): Update references for OpenMP 4.0. Add
1624 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
1625 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
1628 2013-10-14 Jakub Jelinek <jakub@redhat.com>
1630 * env.c (parse_bind_var): Initialize value to avoid
1631 (false positive) warning.
1633 2013-10-12 Jakub Jelinek <jakub@redhat.com>
1636 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
1638 (gomp_init_num_threads): Move i variable declaration into
1639 #ifdef CPU_ALLOC_SIZE block.
1640 * config/linux/affinity.c (gomp_affinity_init_level): Test
1641 gomp_places_list_len == 0 rather than gomp_places_list == 0
1642 when checking for topology reading error.
1643 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
1644 * env.c (parse_affinity): Add ignore argument, if true, don't populate
1645 gomp_places_list, only parse env var and always return false.
1646 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
1647 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
1648 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
1649 and either of these variables were parsed correctly into a places
1652 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
1653 Jakub Jelinek <jakub@redhat.com>
1655 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
1656 of 5 loopfn matches.
1657 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
1658 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
1659 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
1660 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1661 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
1662 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1663 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1664 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
1666 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
1668 * Makefile.am (omp_lib.mod): Streamline rule.
1669 * Makefile.in: Regenerate.
1671 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
1674 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
1675 * testsuite/libgomp.fortran/lib1.f90: Likewise.
1676 * testsuite/libgomp.fortran/lib2.f: Likewise.
1677 * testsuite/libgomp.fortran/lib3.f: Likewise.
1679 * configure.ac: Typo fix.
1680 * configure: Regenerate.
1682 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
1683 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
1685 * omp.h.in: Don't touch the user's namespace.
1687 2013-10-11 Jakub Jelinek <jakub@redhat.com>
1688 Tobias Burnus <burnus@net-b.de>
1689 Richard Henderson <rth@redhat.com>
1691 * target.c: New file.
1692 * Makefile.am (libgomp_la_SOURCES): Add target.c.
1693 * Makefile.in: Regenerated.
1694 * libgomp_g.h (GOMP_task): Add depend argument.
1695 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
1696 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
1697 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
1698 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
1699 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
1700 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
1701 GOMP_taskgroup_start, GOMP_taskgroup_end,
1702 GOMP_parallel_sections): New prototypes.
1703 * fortran.c (omp_is_initial_device): Add ialias_redirect.
1704 (omp_is_initial_device_): New function.
1705 (ULP, STR1, STR2, ialias_redirect): Removed.
1706 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
1707 omp_set_default_device_8_, omp_get_default_device_,
1708 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
1710 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
1711 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
1712 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
1714 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
1715 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
1716 omp_set_default_device, omp_set_default_device_,
1717 omp_set_default_device_8_, omp_get_default_device,
1718 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
1719 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
1720 omp_get_team_num_): Export @@OMP_4.0.
1721 * team.c (struct gomp_thread_start_data): Add place field.
1722 (gomp_thread_start): Clear thr->thread_pool and
1723 thr->task before returning. Use gomp_team_barrier_wait_final
1724 instead of gomp_team_barrier_wait. Initialize thr->place.
1725 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
1726 team_cancelled and task_queued_count fields.
1727 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
1728 before calling pthread_exit.
1729 (gomp_free_thread): No longer static. Use
1730 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
1731 (gomp_team_start): Add flags argument. Set
1732 thr->thread_pool->threads_busy to nthreads immediately after creating
1733 new pool. Use gomp_managed_threads_lock instead of
1734 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
1735 (gomp_team_end): Use gomp_managed_threads_lock instead of
1736 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
1737 of gomp_team_barrier_wait. If team->team_cancelled, call
1738 gomp_fini_worshare on ws chain starting at team->work_shares_to_free
1739 rather than thr->ts.work_share.
1740 (initialize_team): Don't call gomp_sem_init here.
1741 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
1743 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
1744 * env.c (gomp_global_icv): Add default_device_var, target_data and
1745 bind_var initializers.
1746 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1747 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1748 gomp_places_list_len): New variables.
1749 (parse_bind_var, parse_one_place, parse_places_var): New functions.
1750 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
1752 (gomp_cancel_var): New global variable.
1753 (parse_int): New function.
1754 (handle_omp_display_env): New function.
1755 (initialize_env): Use it. Initialize default_device_var.
1756 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
1757 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
1758 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
1759 been successfully parsed (and call gomp_init_affinity in that case).
1760 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1761 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1762 omp_get_team_num, omp_is_initial_device): New functions.
1763 * libgomp.h: Include stdlib.h.
1764 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
1766 (struct target_mem_desc): Forward declare.
1767 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
1768 and thread_limit_var fields.
1769 (gomp_get_num_devices): New prototype.
1770 (gomp_cancel_var): New extern decl.
1771 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
1772 team_cancelled and task_queued_count fields. Add comments about
1773 task_{,queued_,running_}count.
1774 (gomp_cancel_kind): New enum.
1775 (gomp_work_share_end_cancel): New prototype.
1776 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
1777 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
1779 (struct gomp_taskgroup): New type.
1780 (struct gomp_task_depend_entry,
1781 struct gomp_dependers_vec): New types.
1782 (gomp_finish_task): Free depend_hash if non-NULL.
1783 (struct gomp_team_state): Add place_partition_off
1784 and place_partition_len fields.
1785 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1786 gomp_places_list_len): New extern decls.
1787 (struct gomp_thread): Add place field.
1788 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1789 (gomp_init_thread_affinity): Add place argument.
1790 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1791 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1792 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1793 gomp_affinity_init_level, gomp_affinity_print_place): New
1795 (gomp_team_start): Add flags argument.
1796 (gomp_thread_limit_var, gomp_remaining_threads_count,
1797 gomp_remaining_threads_lock): Remove.
1798 (gomp_managed_threads_lock): New variable.
1799 (struct gomp_thread_pool): Add threads_busy field.
1800 (gomp_free_thread): New prototype.
1801 * task.c: Include hashtab.h.
1802 (hash_entry_type): New typedef.
1803 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
1804 (gomp_init_task): Clear dependers, depend_hash, depend_count,
1805 copy_ctors_done and taskgroup fields.
1806 (GOMP_task): Add depend argument, handle depend clauses. If
1807 gomp_team_barrier_cancelled or if it's taskgroup has been
1808 cancelled, don't queue or start new tasks. Set copy_ctors_done
1809 field if needed. Initialize taskgroup field. If copy_ctors_done
1810 and already cancelled, don't discard the task. If taskgroup is
1811 non-NULL, enqueue the task into taskgroup queue. Increment
1812 num_children field in taskgroup. Increment task_queued_count.
1813 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
1814 gomp_task_run_post_remove_taskgroup): New inline functions.
1815 (gomp_task_run_post_handle_depend_hash,
1816 gomp_task_run_post_handle_dependers,
1817 gomp_task_run_post_handle_depend): New functions.
1818 (GOMP_taskwait): Use them. If more than one new tasks
1819 have been queued, wake other threads if needed.
1820 (gomp_barrier_handle_tasks): Likewise. If
1821 gomp_team_barrier_cancelled, don't start any new tasks, just free
1823 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
1825 (omp_proc_bind_kind, omp_proc_bind_false,
1826 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
1827 omp_proc_bind_spread): New params.
1828 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1829 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1830 omp_get_team_num, omp_is_initial_device): New interfaces.
1831 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
1832 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
1833 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
1834 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
1835 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
1836 useless use omp_lib_kinds.
1837 * omp.h.in (omp_proc_bind_t): New typedef.
1838 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1839 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1840 omp_get_team_num, omp_is_initial_device): New prototypes.
1841 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
1842 through to gomp_team_start.
1843 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
1844 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
1845 Adjust gomp_parallel_loop_start callers.
1846 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
1847 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
1848 GOMP_loop_end_cancel): New functions.
1849 (GOMP_parallel_end): Add ialias_redirect.
1850 * hashtab.h: New file.
1851 * libgomp.texi (Environment Variables): Minor cleanup,
1852 update section refs to OpenMP 4.0rc2.
1853 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
1854 environment variables.
1855 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
1856 team->work_shares_to_free to thr->ts.work_share before calling
1858 (gomp_work_share_end_cancel): New function.
1859 * config/linux/proc.c: Include errno.h.
1860 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
1861 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
1862 sizeof (cpu_set_t) to determine number of iterations. Fix up check
1863 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
1864 gomp_cpuset_size is sizeof (cpu_set_t).
1865 (gomp_init_num_threads): Initialize gomp_cpuset_size,
1866 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
1867 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
1868 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
1869 contain any logical CPUs.
1870 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
1871 is NULL. Use gomp_cpusetp instead of &cpuset and pass
1872 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
1873 pthread_getaffinity_np. Check gomp_places_list instead of
1874 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
1875 * config/linux/bar.c (gomp_barrier_wait_end,
1876 gomp_barrier_wait_last): Use BAR_* defines.
1877 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
1878 from state where needed. Set work_share_cancelled to 0 on last
1880 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
1881 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
1883 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
1884 Add cpusetsize argument.
1885 (gomp_cpuset_size, gomp_cpusetp): Declare.
1886 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
1887 (affinity_counter): Remove.
1888 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
1889 if CPU_ALLOC_SIZE isn't defined.
1890 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
1891 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
1892 bind current thread to the first place.
1893 (gomp_init_thread_affinity): Rewritten. Add place argument, just
1894 pthread_setaffinity_np to gomp_places_list[place].
1895 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1896 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1897 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1898 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
1899 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
1900 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
1901 (gomp_barrier_t): Add awaited_final field.
1902 (gomp_barrier_init): Initialize awaited_final field.
1903 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
1904 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
1906 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
1908 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
1909 gomp_team_barrier_cancelled): New inline functions.
1910 (gomp_barrier_last_thread,
1911 gomp_team_barrier_set_task_pending,
1912 gomp_team_barrier_clear_task_pending,
1913 gomp_team_barrier_set_waiting_for_tasks,
1914 gomp_team_barrier_waiting_for_tasks,
1915 gomp_team_barrier_done): Use BAR_* defines.
1916 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
1917 (gomp_barrier_wait_end): Use BAR_* defines.
1918 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
1919 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
1921 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
1922 gomp_team_barrier_cancel): New functions.
1923 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
1925 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1926 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1927 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1928 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
1929 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
1930 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
1931 (gomp_barrier_t): Add cancellable field.
1932 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
1933 gomp_team_barrier_cancel): New prototypes.
1934 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
1935 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
1936 gomp_team_barrier_cancelled): New inline functions.
1937 (gomp_barrier_wait_start, gomp_barrier_last_thread,
1938 gomp_team_barrier_set_task_pending,
1939 gomp_team_barrier_clear_task_pending,
1940 gomp_team_barrier_set_waiting_for_tasks,
1941 gomp_team_barrier_waiting_for_tasks,
1942 gomp_team_barrier_done): Use BAR_* defines.
1943 * barrier.c (GOMP_barrier_cancel): New function.
1944 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
1945 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
1946 omp_proc_bind_spread): New params.
1947 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1948 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1949 omp_get_team_num, omp_is_initial_device): New externals.
1950 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
1952 (gomp_resolve_num_threads): Adjust for thread_limit now being in
1953 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
1954 infinity. If not nested, just return minimum of max_num_threads
1955 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
1956 to the returned value. Otherwise, don't update atomically
1957 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
1958 (GOMP_parallel_end): Adjust for thread_limit now being in
1959 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
1960 infinity. Adjust threads_busy in the pool rather than
1961 gomp_remaining_threads_count. Remember team->nthreads and call
1962 gomp_team_end before adjusting threads_busy, if not nested
1963 afterwards, just set it to 1 non-atomically. Add ialias.
1964 (GOMP_parallel_start): Adjust gomp_team_start caller.
1965 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
1966 * testsuite/libgomp.c/affinity-1.c: New test.
1967 * testsuite/libgomp.c/atomic-15.c: New test.
1968 * testsuite/libgomp.c/atomic-16.c: New test.
1969 * testsuite/libgomp.c/atomic-17.c: New test.
1970 * testsuite/libgomp.c/cancel-for-1.c: New test.
1971 * testsuite/libgomp.c/cancel-for-2.c: New test.
1972 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
1973 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
1974 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
1975 * testsuite/libgomp.c/cancel-sections-1.c: New test.
1976 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
1977 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
1978 * testsuite/libgomp.c/depend-1.c: New test.
1979 * testsuite/libgomp.c/depend-2.c: New test.
1980 * testsuite/libgomp.c/depend-3.c: New test.
1981 * testsuite/libgomp.c/depend-4.c: New test.
1982 * testsuite/libgomp.c/for-1.c: New test.
1983 * testsuite/libgomp.c/for-1.h: New file.
1984 * testsuite/libgomp.c/for-2.c: New test.
1985 * testsuite/libgomp.c/for-2.h: New file.
1986 * testsuite/libgomp.c/for-3.c: New test.
1987 * testsuite/libgomp.c/pr58392.c: New test.
1988 * testsuite/libgomp.c/simd-1.c: New test.
1989 * testsuite/libgomp.c/simd-2.c: New test.
1990 * testsuite/libgomp.c/simd-3.c: New test.
1991 * testsuite/libgomp.c/simd-4.c: New test.
1992 * testsuite/libgomp.c/simd-5.c: New test.
1993 * testsuite/libgomp.c/simd-6.c: New test.
1994 * testsuite/libgomp.c/target-1.c: New test.
1995 * testsuite/libgomp.c/target-2.c: New test.
1996 * testsuite/libgomp.c/target-3.c: New test.
1997 * testsuite/libgomp.c/target-4.c: New test.
1998 * testsuite/libgomp.c/target-5.c: New test.
1999 * testsuite/libgomp.c/target-6.c: New test.
2000 * testsuite/libgomp.c/target-7.c: New test.
2001 * testsuite/libgomp.c/taskgroup-1.c: New test.
2002 * testsuite/libgomp.c/thread-limit-1.c: New test.
2003 * testsuite/libgomp.c/thread-limit-2.c: New test.
2004 * testsuite/libgomp.c/thread-limit-3.c: New test.
2005 * testsuite/libgomp.c/udr-1.c: New test.
2006 * testsuite/libgomp.c/udr-2.c: New test.
2007 * testsuite/libgomp.c/udr-3.c: New test.
2008 * testsuite/libgomp.c++/affinity-1.C: New test.
2009 * testsuite/libgomp.c++/atomic-10.C: New test.
2010 * testsuite/libgomp.c++/atomic-11.C: New test.
2011 * testsuite/libgomp.c++/atomic-12.C: New test.
2012 * testsuite/libgomp.c++/atomic-13.C: New test.
2013 * testsuite/libgomp.c++/atomic-14.C: New test.
2014 * testsuite/libgomp.c++/atomic-15.C: New test.
2015 * testsuite/libgomp.c++/cancel-for-1.C: New test.
2016 * testsuite/libgomp.c++/cancel-for-2.C: New test.
2017 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
2018 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
2019 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
2020 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
2021 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
2022 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
2023 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
2024 * testsuite/libgomp.c++/cancel-test.h: New file.
2025 * testsuite/libgomp.c++/for-9.C: New test.
2026 * testsuite/libgomp.c++/for-10.C: New test.
2027 * testsuite/libgomp.c++/for-11.C: New test.
2028 * testsuite/libgomp.c++/simd-1.C: New test.
2029 * testsuite/libgomp.c++/simd-2.C: New test.
2030 * testsuite/libgomp.c++/simd-3.C: New test.
2031 * testsuite/libgomp.c++/simd-4.C: New test.
2032 * testsuite/libgomp.c++/simd-5.C: New test.
2033 * testsuite/libgomp.c++/simd-6.C: New test.
2034 * testsuite/libgomp.c++/simd-7.C: New test.
2035 * testsuite/libgomp.c++/simd-8.C: New test.
2036 * testsuite/libgomp.c++/target-1.C: New test.
2037 * testsuite/libgomp.c++/target-2.C: New test.
2038 * testsuite/libgomp.c++/target-2-aux.cc: New file.
2039 * testsuite/libgomp.c++/target-3.C: New test.
2040 * testsuite/libgomp.c++/taskgroup-1.C: New test.
2041 * testsuite/libgomp.c++/udr-1.C: New test.
2042 * testsuite/libgomp.c++/udr-2.C: New test.
2043 * testsuite/libgomp.c++/udr-3.C: New test.
2044 * testsuite/libgomp.c++/udr-4.C: New test.
2045 * testsuite/libgomp.c++/udr-5.C: New test.
2046 * testsuite/libgomp.c++/udr-6.C: New test.
2047 * testsuite/libgomp.c++/udr-7.C: New test.
2048 * testsuite/libgomp.c++/udr-8.C: New test.
2049 * testsuite/libgomp.c++/udr-9.C: New test.
2051 2013-09-20 Jakub Jelinek <jakub@redhat.com>
2054 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
2057 2013-09-20 Alan Modra <amodra@gmail.com>
2059 * configure: Regenerate.
2061 2013-09-19 Jakub Jelinek <jakub@redhat.com>
2063 * testsuite/libgomp.c/sections-2.c: New test.
2065 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
2067 * testsuite/libgomp.fortran/strassen.f90:
2068 Add dg-skip-if aarch64_tiny.
2070 2013-06-20 Iain Sandoe <iain@codesourcery.com>
2071 Cesar Philippidis <cesar@codesourcery.com>
2073 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
2074 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
2075 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
2076 * testsuite/libgomp.fortran/fortran.exp: Likewise.
2077 * testsuite/libgomp.graphite/graphite.exp: Likewise.
2078 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
2079 Use dg-runtest rather than gfortran-dg-runtest.
2081 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
2083 * testsuite/libgomp.c/icv-2.c: Extend current handling of
2084 Linux-based x86 systems to cover all GNU systems.
2085 * testsuite/libgomp.c/lock-3.c: Likewise.
2086 * testsuite/libgomp.c/pr48591.c: Likewise.
2088 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
2090 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
2091 GNU/Hurd, as done for Linux-based systems.
2093 * config/posix/ptrlock.h: Fix comment.
2095 2013-05-27 Tobias Burnus <burnus@net-b.de>
2098 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
2099 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
2100 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
2101 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
2102 omp_destroy_nest_lock): Correct arguments to match the one in
2104 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
2105 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
2106 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
2107 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
2109 2013-05-16 Jakub Jelinek <jakub@redhat.com>
2111 * testsuite/libgomp.c/loop-13.c: New test.
2112 * testsuite/libgomp.c/loop-14.c: New test.
2113 * testsuite/libgomp.c/loop-15.c: New test.
2114 * testsuite/libgomp.c++/loop-13.C: New test.
2115 * testsuite/libgomp.c++/loop-14.C: New test.
2116 * testsuite/libgomp.c++/loop-15.C: New test.
2118 2013-02-06 Jakub Jelinek <jakub@redhat.com>
2121 * testsuite/libgomp.c++/pr56217.C: New test.
2123 2013-02-01 Alan Modra <amodra@gmail.com>
2125 * task.c (GOMP_task, GOMP_taskwait): Comment.
2127 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
2128 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
2131 * config/linux/wait.h (do_spin): Use atomic load for addr.
2132 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
2133 for intptr and ptrlock.
2134 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
2137 2013-01-22 Alan Modra <amodra@gmail.com>
2141 * task.c (GOMP_task): Revert 2011-12-09 change.
2142 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
2143 barrier to read task->children..
2144 (gomp_barrier_handle_tasks): ..and matching atomic store with
2145 release barrier here when setting parent->children to NULL.
2147 2013-01-16 Jakub Jelinek <jakub@redhat.com>
2148 Tobias Burnus <burnus@net-b.de>
2151 * testsuite/libgomp.fortran/fortran.exp: Use
2152 -fintrinsic-modules-path= instead of
2153 -fintrinsic-modules-path.
2155 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
2157 Update copyright years.
2159 2012-12-19 Tobias Burnus <burnus@net-b.de>
2161 * testsuite/libgomp.fortran/fortran.exp: Set
2162 -fintrinsic-modules-path.
2164 2012-12-19 Tobias Burnus <burnus@net-b.de>
2166 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
2167 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
2169 2012-11-21 Jakub Jelinek <jakub@redhat.com>
2172 * team.c (gomp_free_thread): Decrease gomp_managed_threads
2173 if pool had any threads_used.
2175 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
2177 * testsuite/libgomp.c++/pr24455.C: Use
2178 -Wl,-undefined,dynamic_lookup on darwin.
2180 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
2182 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
2184 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
2186 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
2188 2012-10-23 Ian Bolton <ian.bolton@arm.com>
2189 Jim MacArthur <jim.macarthur@arm.com>
2190 Marcus Shawcroft <marcus.shawcroft@arm.com>
2191 Nigel Stephens <nigel.stephens@arm.com>
2192 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2193 Richard Earnshaw <rearnsha@arm.com>
2194 Sofiane Naci <sofiane.naci@arm.com>
2195 Stephen Thomas <stephen.thomas@arm.com>
2196 Tejas Belagod <tejas.belagod@arm.com>
2197 Yufeng Zhang <yufeng.zhang@arm.com>
2199 * configure.tgt: Add AArch64.
2201 2012-10-04 Jason Merrill <jason@redhat.com>
2203 * testsuite/libgomp.c++/tls-init1.C: New.
2205 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
2207 * configure: Regenerated.
2209 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
2211 * config/linux/mips/futex.h (sys_futex0): Change to static
2212 function with noinline, nomips16 attributes under MIPS16. Adjust
2213 asm statement to place 'li v0,SYS_futex' immediately before
2216 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
2218 * libgomp.texi (Library Index): Renamed from "Index" to prevent
2219 conflict with index.html on case-insensitive file systems.
2221 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
2223 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
2224 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
2226 2012-07-02 Richard Guenther <rguenther@suse.de>
2227 Michael Matz <matz@suse.de>
2228 Tobias Grosser <tobias@grosser.es>
2229 Sebastian Pop <sebpop@gmail.com>
2231 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
2232 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
2233 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
2234 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
2236 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
2238 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
2240 2012-06-22 Richard Guenther <rguenther@suse.de>
2242 Merge from graphite branch
2243 2012-01-13 Tobias Grosser <tobias@grosser.es>
2245 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2246 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
2248 2012-06-07 Jakub Jelinek <jakub@redhat.com>
2251 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
2252 use GOMP_barrier () call instead.
2253 * testsuite/libgomp.c/pr26943-3.c: Likewise.
2254 * testsuite/libgomp.c/pr26943-4.c: Likewise.
2255 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
2256 call GOMP_barrier instead.
2257 * testsuite/libgomp.fortran/vla5.f90: Likewise.
2259 2012-06-06 Jakub Jelinek <jakub@redhat.com>
2262 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
2263 argument to memset call.
2265 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
2267 * configure: Regenerated.
2269 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2271 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
2273 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
2276 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
2278 2012-03-22 Jakub Jelinek <jakub@redhat.com>
2281 * testsuite/libgomp.c/pr52547.c: New test.
2283 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2285 * testsuite/lib/libgomp.exp: load fortran-modules.exp
2287 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2289 * configure.tgt (mips-sgi-irix6*): Remove.
2291 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2293 * configure.tgt (alpha*-dec-osf*): Remove.
2295 * config/osf/sem.h: Remove.
2296 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
2298 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
2300 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
2302 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2305 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
2306 Remove ENABLE_SYMVERS_SOL2.
2307 * configure: Regenerate.
2308 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
2309 (PREPROCESS): New variable.
2310 (libgomp.ver): New target.
2311 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
2312 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
2313 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
2315 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
2316 * Makefile.in: Regenerate.
2318 2012-02-14 Walter Lee <walt@tilera.com>
2320 * configure.tgt: Handle tilegx and tilepro.
2321 * config/linux/tile/futex.h: New file.
2323 2012-02-08 Richard Guenther <rguenther@suse.de>
2325 PR tree-optimization/46886
2326 * testsuite/libgomp.c/pr46886.c: New testcase.
2328 2012-01-25 Matthias Klose <doko@ubuntu.com>
2330 * config/linux/arm: Remove empty directory.
2331 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
2333 2011-12-09 Alan Modra <amodra@gmail.com>
2336 * task.c (GOMP_taskwait): Don't access task->children outside of
2337 task_lock mutex region.
2338 (GOMP_task): Likewise.
2340 2011-12-06 Jakub Jelinek <jakub@redhat.com>
2343 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
2345 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
2346 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
2347 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
2348 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
2349 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
2351 2011-12-02 Alan Modra <amodra@gmail.com>
2353 * config/linux/affinity.c: Use atomic rather than sync builtin.
2354 * config/linux/lock.c: Likewise.
2355 * config/linux/ptrlock.h: Likewise.
2356 * config/linux/ptrlock.c: Likewise.
2357 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
2358 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
2359 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
2360 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
2361 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
2362 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
2363 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
2364 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
2365 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
2366 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
2368 2011-11-30 Alan Modra <amodra@gmail.com>
2371 * config/linux/bar.h: Use atomic rather than sync builtins.
2372 * config/linux/bar.c: Likewise. Add missing acquire
2373 synchronisation on generation field.
2374 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
2377 2011-11-30 Alan Modra <amodra@gmail.com>
2379 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
2380 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
2381 * config/linux/mutex.h: Use atomic rather than sync builtins.
2382 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
2383 * config/linux/omp-lock.h: Comment fix.
2384 * config/linux/arm/mutex.h: Delete.
2385 * config/linux/powerpc/mutex.h: Delete.
2386 * config/linux/ia64/mutex.h: Delete.
2387 * config/linux/mips/mutex.h: Delete.
2389 2011-11-30 Alan Modra <amodra@gmail.com>
2392 * config/linux/sem.h: Rewrite.
2393 * config/linux/sem.c: Rewrite.
2395 2011-11-28 Richard Henderson <rth@redhat.com>
2397 * libgomp.h (enum memmodel): New.
2399 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
2401 * configure: Regenerate.
2403 2011-10-10 Matthias Klose <doko@ubuntu.com>
2405 * config/posix95: Remove empty directory.
2407 2011-08-26 Jakub Jelinek <jakub@redhat.com>
2409 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
2411 2011-08-19 Jakub Jelinek <jakub@redhat.com>
2414 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
2415 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
2417 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2419 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
2421 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2424 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
2426 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
2428 * config/linux/proc.h: New.
2429 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
2430 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
2431 (gomp_init_num_threads): Update call to cpuset_popcount.
2432 (get_num_procs): Ditto.
2433 * config/linux/affinity.c (gomp_init_affinity): Call
2434 gomp_cpuset_popcount.
2436 2011-08-02 Jakub Jelinek <jakub@redhat.com>
2440 * omp.h.in (omp_in_final): New prototype.
2441 * omp_lib.f90.in (omp_in_final): New interface.
2442 (omp_integer_kind, omp_logical_kind): Remove
2443 and replace all its uses in the module with 4.
2444 (openmp_version): Change to 201107.
2445 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
2446 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
2447 kind for the parameters.
2448 (omp_in_final): New external.
2449 (openmp_version): Change to 201107.
2450 * task.c (omp_in_final): New function.
2451 (gomp_init_task): Initialize final_task.
2452 (GOMP_task): Remove unused attribute from flags. Handle final
2454 (GOMP_taskyield): New function.
2455 (omp_in_final): Return true if if (false) or final (true) task
2456 or descendant of final (true).
2457 * fortran.c (omp_in_final_): New function.
2458 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
2459 (GOMP_3.0): Export GOMP_taskyield.
2460 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
2462 (parse_unsigned_long_list): New function.
2463 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
2464 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
2465 even if parse_affinity returned false.
2466 * config/linux/affinity.c (gomp_init_affinity): Handle
2467 gomp_cpu_affinity_len == 0.
2468 * libgomp_g.h (GOMP_taskyield): New prototype.
2469 * libgomp.h (struct gomp_task): Add final_task field.
2470 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
2471 * team.c (gomp_team_start): Override new task's nthreads_var icv
2472 if list form OMP_NUM_THREADS has been used and it has value for
2473 the new nesting level.
2475 * testsuite/libgomp.c/atomic-11.c: New test.
2476 * testsuite/libgomp.c/atomic-12.c: New test.
2477 * testsuite/libgomp.c/atomic-13.c: New test.
2478 * testsuite/libgomp.c/atomic-14.c: New test.
2479 * testsuite/libgomp.c/reduction-6.c: New test.
2480 * testsuite/libgomp.c/task-5.c: New test.
2481 * testsuite/libgomp.c++/atomic-2.C: New test.
2482 * testsuite/libgomp.c++/atomic-3.C: New test.
2483 * testsuite/libgomp.c++/atomic-4.C: New test.
2484 * testsuite/libgomp.c++/atomic-5.C: New test.
2485 * testsuite/libgomp.c++/atomic-6.C: New test.
2486 * testsuite/libgomp.c++/atomic-7.C: New test.
2487 * testsuite/libgomp.c++/atomic-8.C: New test.
2488 * testsuite/libgomp.c++/atomic-9.C: New test.
2489 * testsuite/libgomp.c++/task-8.C: New test.
2490 * testsuite/libgomp.c++/reduction-4.C: New test.
2491 * testsuite/libgomp.fortran/allocatable7.f90: New test.
2492 * testsuite/libgomp.fortran/allocatable8.f90: New test.
2493 * testsuite/libgomp.fortran/crayptr3.f90: New test.
2494 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
2495 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
2496 * testsuite/libgomp.fortran/pointer1.f90: New test.
2497 * testsuite/libgomp.fortran/pointer2.f90: New test.
2498 * testsuite/libgomp.fortran/task4.f90: New test.
2500 2011-08-02 Tobias Burnus <burnus@net-b.de>
2502 * libgomp.texi: Update OpenMP spec references to 3.1.
2503 (omp_in_final,OMP_PROC_BIND): New sections.
2504 (OMP_NUM_THREADS): Document that the value can be now a list.
2505 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
2507 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
2509 * config/linux/x86/futex.h: Check __x86_64__ instead of
2512 2011-07-29 Jakub Jelinek <jakub@redhat.com>
2516 * testsuite/libgomp.c/pr49897-1.c: New test.
2517 * testsuite/libgomp.c/pr49897-2.c: New test.
2518 * testsuite/libgomp.c/pr49898-1.c: New test.
2519 * testsuite/libgomp.c/pr49898-2.c: New test.
2521 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
2523 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
2524 for ia32 instead of ilp32.
2526 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
2527 * testsuite/libgomp.c/atomic-6.c: Likewise.
2529 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
2531 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
2532 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
2534 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2537 * config/osf/sem.h: New file.
2538 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
2540 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2543 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
2546 2011-07-15 Jakub Jelinek <jakub@redhat.com>
2548 * config/linux/wait.h (do_spin): New inline, largely copied
2549 from do_wait, just don't do futex_wait here, instead return true if
2551 (do_wait): Implement using do_spin.
2552 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
2554 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
2555 __sync_bool_compare_and_swap, pass the oldval to
2556 gomp_mutex_lock_slow.
2557 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
2558 If all mutex contenders are just spinning and not sleeping, don't
2559 change state to 2 unnecessarily. Optimize the loop when state has
2560 already become 2 to use just one atomic operation per loop instead
2562 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
2564 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
2565 __sync_bool_compare_and_swap, pass the oldval to
2566 gomp_mutex_lock_slow.
2568 2011-06-22 Jakub Jelinek <jakub@redhat.com>
2571 * iter.c (gomp_iter_static_next): For chunk size 0
2572 only use n ceil/ nthreads size for the first
2573 n % nthreads threads in the team instead of
2574 all threads except for the last few ones which
2575 get less work or none at all.
2576 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
2577 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
2578 chunk argument, set run_sched_modifier to 0 for static
2579 resp. 1 for other kinds. If chunk argument is 0
2580 and not static, set value to 1.
2582 2011-05-19 Jakub Jelinek <jakub@redhat.com>
2585 * testsuite/libgomp.c++/pr49043.C: New test.
2588 * testsuite/libgomp.c++/pr48869.C: New test.
2590 2011-05-06 Jakub Jelinek <jakub@redhat.com>
2593 * fortran.c: Include limits.h.
2595 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
2597 (omp_set_num_threads_8_, omp_set_schedule_8_,
2598 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
2599 omp_get_team_size_8_): Use TO_INT macro.
2600 * testsuite/libgomp.fortran/pr48894.f90: New test.
2602 2011-04-13 Jakub Jelinek <jakub@redhat.com>
2605 * testsuite/libgomp.c/pr48591.c: New test.
2607 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2610 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
2611 * configure: Regenerate.
2613 2011-02-27 Jakub Jelinek <jakub@redhat.com>
2616 * testsuite/libgomp.fortran/task3.f90: New test.
2618 2011-02-24 Tobias Burnus <burnus@net-b.de>
2620 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
2622 2011-02-23 Jakub Jelinek <jakub@redhat.com>
2625 * libgomp.texi (omp_get_wtime): Don't say time in the past
2628 2011-02-18 Jakub Jelinek <jakub@redhat.com>
2631 * testsuite/libgomp.fortran/fortran.exp: Check for both
2632 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
2633 but $blddir != "", still append ${blddir}/${lang_library_path}
2636 2011-02-16 Tobias Burnus <burnus@net-b.de>
2639 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
2640 of libquadmath.a before adding its libpath to ldflags.
2642 2011-02-14 Jakub Jelinek <jakub@redhat.com>
2645 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
2646 to FUTEX_WAIT futex syscall.
2647 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
2649 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2651 * configure: Regenerate.
2653 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
2656 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
2658 2011-01-16 Gerald Pfeifer
2660 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
2662 2010-12-14 Jakub Jelinek <jakub@redhat.com>
2665 * libgomp.fortran/allocatable6.f90: New test.
2667 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2669 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
2670 * configure: Regenerate.
2672 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
2676 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
2677 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
2678 * aclocal.m4: Regenerate.
2679 * configure: Regenerate.
2680 * Makefile.in: Regenerate.
2681 * testsuite/Makefile.in: Regenerate.
2683 2010-12-02 Jakub Jelinek <jakub@redhat.com>
2686 * libgomp.fortran/pr46753.f90: New test.
2689 * env.c (initialize_env): Default to spin count 300000
2690 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
2694 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
2695 at the end if sync builtins aren't supported.
2697 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2699 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
2701 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2703 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
2705 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
2707 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
2709 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2710 Tobias Burnus <burnus@net-b.de>
2714 * configure: Regenerate.
2716 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
2718 * config/linux/futex.h: New.
2719 * config/linux/arm/mutex.h: New.
2720 * configure.tgt (arm*-*-linux*): Add config path.
2722 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
2724 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2726 2010-09-23 Tobias Burnus <burnus@net-b.de>
2728 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
2729 Change Fortran datatype to LOGICAL.
2730 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
2731 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
2733 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2735 * configure: Regenerate.
2737 2010-07-26 Jakub Jelinek <jakub@redhat.com>
2739 * libgomp.texi: Add function keyword to a couple of Fortran
2740 interfaces, use integer instead of int for Fortran.
2742 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
2744 * libgomp.texi: Fix spelling and pasto problems throughout.
2745 Adjust prototypes to match code.
2747 2010-07-24 Tobias Burnus <burnus@net-b.de>
2749 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
2750 silence -fwhole-file warning.
2752 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2754 * configure.tgt (*-*-solaris2.[56]*): Removed.
2756 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2758 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
2759 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
2760 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
2761 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
2762 targetting solaris2*.
2763 * configure: Regenerate.
2764 * config.h.in: Regenerate.
2766 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
2767 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
2768 Add libgomp_version_dep.
2769 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
2771 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
2772 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
2773 * Makefile.in: Regenerate.
2775 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
2776 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2777 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
2778 to common block, protected by
2779 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2781 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
2783 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
2785 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
2788 * configure: Regenerate.
2790 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2793 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
2794 * configure: Regenerate.
2795 * Makefile.in: Regenerate.
2796 * testsuite/Makefile.in: Regenerate.
2798 2010-04-26 Jakub Jelinek <jakub@redhat.com>
2801 * testsuite/libgomp.c/pr43893.c: New test.
2802 * testsuite/libgomp.c++/pr43893.C: New test.
2804 2010-04-21 Jakub Jelinek <jakub@redhat.com>
2807 * testsuite/libgomp.fortran/vla8.f90: New test.
2809 2010-04-20 Jakub Jelinek <jakub@redhat.com>
2812 * config/linux/affinity.c (gomp_init_affinity): Decrease
2813 gomp_available_cpus if affinity mask confines the process to fewer
2815 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
2816 non-NULL, just return gomp_available_cpus.
2819 * sections.c (gomp_sections_init): Initialize ws->mode.
2821 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
2823 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
2824 not unused bar variable.
2825 * configure: Regenerate.
2827 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2829 * Makefile.in: Regenerate.
2830 * aclocal.m4: Regenerate.
2831 * testsuite/Makefile.in: Regenerate.
2833 2010-03-22 Jakub Jelinek <jakub@redhat.com>
2836 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
2837 (initialize_env): Adjust callers.
2838 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
2839 when the argument is 0.
2841 * testsuite/libgomp.c/pr42942.c: New test.
2843 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
2847 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2848 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
2850 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2852 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
2853 * testsuite/libgomp.c++/task-6.C: Likewise.
2855 2010-01-28 Steve Ellcey <sje@cup.hp.com>
2857 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
2859 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
2861 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
2862 * configure: Regenerate.
2864 2010-01-26 Jakub Jelinek <jakub@redhat.com>
2867 * testsuite/libgomp.fortran/allocatable5.f90: New test.
2869 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
2871 * configure.ac: Test for executability of GFORTRAN.
2872 * configure: Regenerate.
2874 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2876 * configure: Regenerate.
2878 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
2881 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
2883 2010-01-03 Richard Guenther <rguenther@suse.de>
2885 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
2887 2009-12-23 Sebastian Pop <sebpop@gmail.com>
2889 * testsuite/libgomp.graphite/pr4118.c: New.
2891 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2893 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
2894 for darwin, protect the test with require-effective-target tls_runtime.
2895 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
2897 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
2900 * testsuite/lib/libgomp.exp: Provide -B options to allow for
2901 link spec %s substitutions for static libraries.
2903 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
2906 * libgomp.graphite/force-parallel-2.c: Reduce array size.
2908 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2910 * Makefile.in: Regenerate.
2911 * configure: Regenerate.
2912 * testsuite/Makefile.in: Regenerate.
2914 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
2916 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
2917 settings for LC_ALL and LANG.
2919 2009-11-25 Jakub Jelinek <jakub@redhat.com>
2922 * testsuite/libgomp.fortran/pr42162.f90: New test.
2924 2009-11-13 Jakub Jelinek <jakub@redhat.com>
2927 * testsuite/libgomp.c/pr42029.c: New test.
2929 2009-10-26 Jakub Jelinek <jakub@redhat.com>
2931 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
2932 *s. Accept ld version without text in ()s.
2933 * configure: Regenerated.
2935 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
2937 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
2939 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2942 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
2943 or a hyphen (happens with fortran language disabled).
2944 * configure: Regenerate.
2946 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2948 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
2949 use sed script portable to Solaris /bin/sed for extracting ld
2951 * configure: Regenerate.
2953 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
2955 * testsuite/libgomp.graphite/bounds.c: New test.
2957 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2959 * Makefile.am (libgomp_la_LINK): New.
2960 * Makefile.in: Regenerate.
2962 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2964 * configure.ac (AC_PREREQ): Bump to 2.64.
2966 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2968 * Makefile.am (install-html, install-pdf): Remove.
2969 * Makefile.in: Regenerate.
2971 * Makefile.in: Regenerate.
2972 * aclocal.m4: Regenerate.
2973 * config.h.in: Regenerate.
2974 * configure: Regenerate.
2975 * testsuite/Makefile.in: Regenerate.
2977 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2979 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
2980 * Makefile.in: Regenerate.
2982 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
2984 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
2985 * Makefile.in: Regenerate.
2987 2009-08-19 Tobias Burnus <burnus@net-b.de>
2990 omp_lib.h.in: Fix -std=f95 errors.
2993 2009-08-14 David Edelsohn <edelsohn@gnu.org>
2995 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
2996 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
2997 * testsuite/libgomp.graphite/graphite.exp: New.
2999 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
3001 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
3004 2009-08-04 David Daney <ddaney@caviumnetworks.com>
3006 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
3007 needed memory barrier semantics.
3008 * config/linux/mips/mutex.h: New file.
3010 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3012 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
3014 2009-07-16 Joseph Myers <joseph@codesourcery.com>
3016 * configure: Regenerate.
3018 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
3023 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
3024 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
3025 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
3027 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
3029 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
3030 options when choosing a multilib.
3032 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
3034 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
3035 ld_library_path. Use add_path. Add just find_libgcc_s to
3036 ld_library_path, not every libgcc multilib directory.
3037 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
3038 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
3039 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
3041 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
3043 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
3045 * Makefile.am (LTLDFLAGS): Define.
3047 * Makefile.in: Regenerate.
3049 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
3052 * testsuite/libgomp.fortran/fortran.exp: Don't link with
3053 libgfortranbegin, check existence of libgfortran.a instead of
3056 2009-05-20 Jakub Jelinek <jakub@redhat.com>
3059 * team.c (gomp_thread_start): Destroy thr->release semaphore.
3060 (gomp_free_pool_helper): Likewise.
3062 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
3063 Jakub Jelinek <jakub@redhat.com>
3066 * testsuite/libgomp.fortran/workshare2.f90: New test.
3068 2009-04-09 Nick Clifton <nickc@redhat.com>
3070 * iter.c: Change copyright header to refer to version 3 of the
3071 GNU General Public License with version 3.1 of the GCC Runtime
3072 Library Exception and to point readers at the COPYING3 and
3073 COPYING3.RUNTIME files and the FSF's license web page.
3074 * alloc.c: Likewise.
3075 * barrier.c: Likewise.
3076 * config/bsd/proc.c: Likewise.
3077 * config/linux/affinity.c: Likewise.
3078 * config/linux/alpha/futex.h: Likewise.
3079 * config/linux/bar.c: Likewise.
3080 * config/linux/bar.h: Likewise.
3081 * config/linux/ia64/futex.h: Likewise.
3082 * config/linux/ia64/mutex.h: Likewise.
3083 * config/linux/lock.c: Likewise.
3084 * config/linux/mips/futex.h: Likewise.
3085 * config/linux/mutex.c: Likewise.
3086 * config/linux/mutex.h: Likewise.
3087 * config/linux/powerpc/futex.h: Likewise.
3088 * config/linux/proc.c: Likewise.
3089 * config/linux/ptrlock.c: Likewise.
3090 * config/linux/ptrlock.h: Likewise.
3091 * config/linux/s390/futex.h: Likewise.
3092 * config/linux/sem.c: Likewise.
3093 * config/linux/sem.h: Likewise.
3094 * config/linux/sparc/futex.h: Likewise.
3095 * config/linux/wait.h: Likewise.
3096 * config/linux/x86/futex.h: Likewise.
3097 * config/mingw32/proc.c: Likewise.
3098 * config/mingw32/time.c: Likewise.
3099 * config/posix/affinity.c: Likewise.
3100 * config/posix/bar.c: Likewise.
3101 * config/posix/bar.h: Likewise.
3102 * config/posix/lock.c: Likewise.
3103 * config/posix/mutex.h: Likewise.
3104 * config/posix/proc.c: Likewise.
3105 * config/posix/ptrlock.h: Likewise.
3106 * config/posix/sem.c: Likewise.
3107 * config/posix/sem.h: Likewise.
3108 * config/posix/time.c: Likewise.
3109 * config/posix95/lock.c: Likewise.
3110 * critical.c: Likewise.
3112 * error.c: Likewise.
3113 * fortran.c: Likewise.
3114 * iter_ull.c: Likewise.
3115 * libgomp.h: Likewise.
3116 * libgomp_f.h.in: Likewise.
3117 * libgomp_g.h: Likewise.
3119 * loop_ull.c: Likewise.
3120 * omp.h.in: Likewise.
3121 * omp_lib.f90.in: Likewise.
3122 * omp_lib.h.in: Likewise.
3123 * ordered.c: Likewise.
3124 * parallel.c: Likewise.
3125 * sections.c: Likewise.
3126 * single.c: Likewise.
3131 2009-04-09 Jakub Jelinek <jakub@redhat.com>
3133 * testsuite/config/default.exp: Change copyright header to refer to
3134 version 3 of the GNU General Public License and to point readers
3135 at the COPYING3 file and the FSF's license web page.
3137 2009-04-08 Jakub Jelinek <jakub@redhat.com>
3140 * libgomp.c++/pr39573.C: New test.
3142 2009-04-01 Jakub Jelinek <jakub@redhat.com>
3145 * testsuite/libgomp.c/pr39591-1.c: New test.
3146 * testsuite/libgomp.c/pr39591-2.c: New test.
3147 * testsuite/libgomp.c/pr39591-3.c: New test.
3149 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
3151 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
3152 * testsuite/libgomp.c/atomic-6.c: Ditto.
3154 2009-03-23 Jakub Jelinek <jakub@redhat.com>
3157 * testsuite/libgomp.c/loop-12.c: New test.
3158 * testsuite/libgomp.c/loop-11.c: New test.
3159 * testsuite/libgomp.c++/loop-11.C: New test.
3160 * testsuite/libgomp.c++/loop-12.C: New test.
3161 * testsuite/libgomp.c++/for-8.C: New test.
3163 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3165 * configure: Regenerate.
3167 2009-02-11 Jakub Jelinek <jakub@redhat.com>
3170 * testsuite/libgomp.c/pr39154.c: New test.
3172 2009-01-30 Ian Lance Taylor <iant@google.com>
3174 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
3175 libgomp_ld_is_gold. Get gold version number.
3176 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
3177 * configure: Rebuild.
3179 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
3181 * testsuite/lib/libgomp.exp: Add -B option for targets that
3182 use libgfortran.a%s in their specs.
3184 2009-01-07 Jakub Jelinek <jakub@redhat.com>
3187 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
3188 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
3189 HAVE_AS_SYMVER_DIRECTIVE is not defined.
3190 * configure: Regenerated.
3191 * config.h.in: Likewise.
3193 2008-12-28 Jakub Jelinek <jakub@redhat.com>
3196 * testsuite/libgomp.c/pr38650.c: New test.
3197 * testsuite/libgomp.c++/pr38650.C: New test.
3199 2008-12-27 Jakub Jelinek <jakub@redhat.com>
3201 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
3203 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
3205 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
3207 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3209 * configure: Regenerate.
3211 2008-12-08 Jakub Jelinek <jakub@redhat.com>
3214 * testsuite/libgomp.c/pr36802-1.c: New test.
3215 * testsuite/libgomp.c/pr36802-2.c: New test.
3216 * testsuite/libgomp.c/pr36802-3.c: New test.
3218 2008-12-01 Janis Johnson <janis187@us.ibm.com>
3221 * config/linux/powerpc/mutex.h: New.
3223 2008-12-01 Jakub Jelinek <jakub@redhat.com>
3226 * testsuite/libgomp.c++/for-7.C: New test.
3229 * testsuite/libgomp.c++/for-6.C: New test.
3231 2008-11-26 Janis Johnson <janis187@us.ibm.com>
3234 * testsuite/lib/libgomp.exp: Include new timeout library files.
3235 (libgomp_target_compile): Set timeout value from new proc.
3237 2008-11-13 Steve Ellcey <sje@cup.hp.com>
3240 * config/linux/ia64/mutex.h: New.
3242 2008-11-04 Tobias Burnus <burnus@net-b.de>
3245 * libgomp.texi (Runtime library routines, environment variables):
3246 Update for OpenMP version 3.0.
3248 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
3249 Steve Ellcey <sje@cup.hp.com>
3251 * configure: Regenerate for new libtool.
3252 * Makefile.in: Ditto.
3253 * testsuite/Makefile.in: Ditto.
3255 2008-09-19 Jakub Jelinek <jakub@redhat.com>
3256 Andreas Tobler <a.tobler@schweiz.org>
3258 * config/bsd/proc.c: New file.
3259 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
3260 * configure.ac: Check for header <sys/sysctl.h>
3261 * configure: Regenerate.
3262 * config.h.in: Likewise.
3264 2008-09-05 Janis Johnson <janis187@us.ibm.com>
3266 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
3268 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3270 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
3271 * Makefile.in: Regenerated.
3272 * testsuite/Makefile.in: Regenerated.
3274 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
3276 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
3277 depend on blddir if blddir exists.
3278 (libgomp_target_compile): Likewise.
3279 * testsuite/libgomp.c++/c++.exp: Likewise.
3280 * testsuite/libgomp.fortran/fortran.exp: Likewise.
3282 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3284 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
3285 Do not list GPL as Invariant Section.
3287 2008-07-28 Ilie Garbacea <ilie@mips.com>
3288 Chao-ying Fu <fu@mips.com>
3290 * configure.tgt: Enable futex for MIPS.
3291 * config/linux/mips/futex.h: New file.
3293 2008-07-16 Jakub Jelinek <jakub@redhat.com>
3295 * team.c (gomp_team_end): Free team immediately if it has
3298 2008-07-08 David Edelsohn <edelsohn@gnu.org>
3300 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
3301 * testsuite/libgomp.fortran/fortran.exp: Same.
3302 * testsuite/libgomp.c/c.exp: Same.
3303 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
3304 directory to library path first.
3306 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
3308 * env.c (parse_stacksize): Add cast to avoid warning.
3309 (parse_spincount): Likewise.
3311 2008-06-27 Jakub Jelinek <jakub@redhat.com>
3313 * testsuite/libgomp.c/loop-10.c: New test.
3314 * libgomp.c/loop-3.c (main): Add lastprivate clause.
3315 * libgomp.c++/loop-6.C (main): Likewise.
3318 * testsuite/libgomp.c/debug-1.c: New test.
3320 2008-06-19 Jakub Jelinek <jakub@redhat.com>
3322 * testsuite/libgomp.c/nqueens-1.c: New test.
3325 * testsuite/libgomp.c++/task-7.C: New function.
3327 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3329 * configure: Regenerate.
3331 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3333 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
3334 mutex when HAVE_SYNC_BUILTINS isn't defined.
3336 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3338 * libgomp.texi (omp_test_lock): Fix typo.
3340 2008-06-12 Tobias Burnus <burnus@net-b.de>
3342 * omp_lib.f90.in: Add "implicit none".
3344 2008-06-12 Jakub Jelinek <jakub@redhat.com>
3347 * testsuite/libgomp.c/reduction-5.c: New test.
3349 2008-06-11 Jakub Jelinek <jakub@redhat.com>
3351 * libgomp.h (struct gomp_task): Add in_tied_task field.
3352 * task.c (gomp_init_task): Initialize it.
3353 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
3354 unconditionally. Don't call gomp_team_barrier_wake if
3355 current task is implicit or if(0) from implicit and number of
3356 running tasks is equal to nthreads - 1.
3359 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
3360 omp_get_team_size_8): Fix pastos.
3363 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
3364 * configure: Regenerated.
3365 * config.h.in: Regenerated.
3366 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
3369 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
3372 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
3373 (GOMP_loop_ull_dynamic_start): Likewise.
3374 (GOMP_loop_ull_guided_start): Likewise.
3375 (GOMP_loop_ull_ordered_static_start): Likewise.
3376 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
3377 (GOMP_loop_ull_ordered_guided_start): Likewise.
3379 2008-06-06 Jakub Jelinek <jakub@redhat.com>
3380 Richard Henderson <rth@redhat.com>
3381 Ulrich Drepper <drepper@redhat.com>
3382 Jakob Blomer <jakob.blomer@ira.uka.de>
3384 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
3385 Substitute also OMP_*LOCK_25*.
3386 * configure: Regenerated.
3387 * config.h.in: Regenerated.
3388 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
3389 ptrlock.c and task.c.
3390 * Makefile.in: Regenerated.
3391 * testsuite/Makefile.in: Regenerated.
3393 * loop_ull.c: New file.
3394 * iter_ull.c: New file.
3395 * libgomp.h: Include ptrlock.h.
3396 (enum gomp_task_kind): New type.
3397 (struct gomp_team): Add task_lock, task_queue, task_count,
3398 task_running_count, single_count fields. Add
3399 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
3400 Remove work_share_lock, generation_mask,
3401 oldest_live_gen, num_live_gen and init_work_shares fields, add
3402 work work_share_list_alloc, work_share_list_free and work_share_chunk
3403 fields. Change work_shares from pointer to pointers into an array.
3404 Change ordered_release field into gomp_sem_t ** from flexible array
3405 member. Add implicit_task and initial_work_shares fields.
3406 Move close to the end of the struct.
3407 (struct gomp_team_state): Add single_count, last_work_share,
3408 active_level and level fields, remove work_share_generation.
3409 (gomp_barrier_handle_tasks): New prototype.
3410 (gomp_finish_task): New inline function.
3411 (struct gomp_work_share): Move chunk_size, end, incr into
3412 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
3413 next_ll fields. Reshuffle fields. Add next_alloc,
3414 next_ws, next_free and inline_ordered_team_ids fields, change
3415 ordered_team_ids into pointer from flexible array member.
3416 Add mode field. Put lock and next into a different cache line
3417 from most of the write-once fields.
3418 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
3419 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
3420 gomp_iter_ull_guided_next): New prototypes.
3421 (gomp_new_icv): New prototype.
3422 (struct gomp_thread): Add thread_pool and task fields.
3423 (struct gomp_thread_pool): New type.
3424 (gomp_new_team): New prototype.
3425 (gomp_team_start): Change type of last argument.
3426 (gomp_new_work_share): Removed.
3427 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
3428 (gomp_work_share_init_done): New static inline.
3429 (gomp_throttled_spin_count_var, gomp_available_cpus,
3430 gomp_managed_threads): New extern decls.
3431 (gomp_init_task): New prototype.
3432 (gomp_spin_count_var): New extern var decl.
3433 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
3434 or no alias support, or if not PIC.
3435 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
3436 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
3437 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
3438 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
3439 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
3440 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
3441 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
3442 gomp_test_nest_lock_25): New prototypes.
3443 (omp_lock_symver, strong_alias): Define.
3444 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
3446 (gomp_end_task): New.
3447 (struct gomp_task_icv, gomp_global_icv): New.
3448 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
3449 (struct gomp_task): New.
3450 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
3451 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
3453 (gomp_schedule_type): Reorder enum to match
3455 * team.c (struct gomp_thread_start_data): Add thread_pool and task
3457 (gomp_thread_start): Add gomp_team_barrier_wait call.
3458 For non-nested case remove clearing of docked thread thr fields.
3459 Use pool fields instead of global gomp_* variables. Use
3460 gomp_barrier_wait_last when needed. Initialize ts.active_level.
3461 Create tasks for each member thread.
3462 (free_team): Only destroy team barrier, task_lock here and free it.
3463 (gomp_free_thread): Free last_team if non-NULL.
3464 (gomp_team_end): Call gomp_team_barrier_wait instead of
3465 gomp_barrier_wait. For nested case call one extra
3466 gomp_barrier_wait. Move here some destruction from free_team.
3467 Call free_team on pool->last_team if any, rather than freeing
3468 current team. Destroy work_share_list_free_lock ifndef
3470 (gomp_new_icv): New function.
3471 (gomp_threads, gomp_threads_size, gomp_threads_used,
3472 gomp_threads_dock): Removed.
3473 (gomp_thread_destructor): New variable.
3474 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
3476 (gomp_team_start): Create new pool if current thread doesn't have
3477 one. Use pool fields instead of global gomp_* variables.
3478 Initialize thread_pool field for new threads. Clear single_count.
3479 Change last argument from ws to team, don't create
3480 new team, set ts.work_share to &team->work_shares[0] and clear
3481 ts.last_work_share. Don't clear ts.work_share_generation.
3482 If number of threads changed, adjust atomically gomp_managed_threads.
3483 Use gomp_init_task instead of gomp_new_task,
3484 set thr->task to the corresponding implicit_task array entry.
3485 Create tasks for each member thread. Initialize ts.level.
3486 (initialize_team): Call pthread_key_create on
3487 gomp_thread_destructor.
3488 (team_destructor): New function.
3489 (new_team): Removed.
3490 (gomp_new_team): New function.
3491 (free_team): Free gomp_work_share blocks chained through next_alloc,
3492 instead of freeing work_shares and destroying work_share_lock.
3493 (gomp_team_end): Call gomp_fini_work_share. If number of threads
3494 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
3495 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
3496 of gomp_barrier_wait.
3497 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
3498 instead of gomp_barrier_wait. Call gomp_work_share_init_done
3499 if gomp_work_share_start returned true. Don't unlock ws->lock.
3500 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
3501 of gomp_barrier_wait.
3502 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
3503 gomp_work_share_init_done if gomp_work_share_start returned true.
3504 Don't unlock ws->lock.
3505 * work.c: Include stddef.h.
3506 (free_work_share): Use work_share_list_free_lock instead
3507 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
3508 Call gomp_fini_work_share and then either free ws if orphaned, or
3509 put it into work_share_list_free list of the current team.
3510 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
3512 (gomp_work_share_start, gomp_work_share_end,
3513 gomp_work_share_end_nowait): Rewritten.
3514 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
3515 (openmp_version): Set to 200805.
3516 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
3517 omp_sched_guided, omp_sched_auto): New parameters.
3518 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3519 omp_set_max_active_levels, omp_get_max_active_levels,
3520 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3521 omp_get_active_level): New interfaces.
3522 * omp_lib.h.in (openmp_version): Set to 200805.
3523 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
3524 omp_sched_guided, omp_sched_auto): New parameters.
3525 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3526 omp_set_max_active_levels, omp_get_max_active_levels,
3527 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3528 omp_get_active_level): New externals.
3529 * loop.c: Include limits.h.
3530 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
3532 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
3533 Likewise. Use gomp_icv.
3534 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
3535 ts.static_trip here.
3536 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
3537 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
3538 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
3539 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
3540 don't unlock ws->lock, otherwise lock it.
3541 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
3542 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
3543 (gomp_parallel_loop_start): Call gomp_new_team instead of
3544 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
3545 Adjust gomp_team_start caller. Pass 0 as second argument to
3546 gomp_resolve_num_threads.
3547 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
3548 If adding ws->chunk_size nthreads + 1 times after end won't
3549 overflow, set ws->mode to 1.
3550 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
3551 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
3552 GOMP_loop_ull_ordered_static_start,
3553 GOMP_loop_ull_ordered_dynamic_start,
3554 GOMP_loop_ull_ordered_guided_start,
3555 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
3556 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
3557 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
3558 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
3559 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
3561 * libgomp.map: Export lock routines also @@OMP_2.0.
3562 (GOMP_loop_ordered_dynamic_first,
3563 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
3564 GOMP_loop_ordered_static_first): Remove.
3565 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
3566 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
3567 GOMP_loop_ull_ordered_dynamic_next,
3568 GOMP_loop_ull_ordered_dynamic_start,
3569 GOMP_loop_ull_ordered_guided_next,
3570 GOMP_loop_ull_ordered_guided_start,
3571 GOMP_loop_ull_ordered_runtime_next,
3572 GOMP_loop_ull_ordered_runtime_start,
3573 GOMP_loop_ull_ordered_static_next,
3574 GOMP_loop_ull_ordered_static_start,
3575 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
3576 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
3577 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
3578 (omp_set_schedule, omp_get_schedule,
3579 omp_get_thread_limit, omp_set_max_active_levels,
3580 omp_get_max_active_levels, omp_get_level,
3581 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
3582 omp_set_schedule_, omp_set_schedule_8_,
3583 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
3584 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
3585 omp_get_max_active_levels_, omp_get_level_,
3586 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
3587 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
3588 New exports @@OMP_3.0.
3589 * omp.h.in (omp_sched_t): New type.
3590 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3591 omp_set_max_active_levels, omp_get_max_active_levels,
3592 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3593 omp_get_active_level): New prototypes.
3594 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
3595 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
3596 gomp_thread_limit_var, gomp_remaining_threads_count,
3597 gomp_remaining_threads_lock): New variables.
3598 (parse_spincount): New function.
3599 (initialize_env): Call gomp_init_num_threads unconditionally.
3600 Initialize gomp_available_cpus. Call parse_spincount,
3601 initialize gomp_{,throttled_}spin_count_var
3602 depending on presence and value of OMP_WAIT_POLICY and
3603 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
3604 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
3605 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
3606 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
3607 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
3608 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
3609 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
3610 (gomp_global_icv): New.
3611 (parse_schedule): Use it. Parse "auto".
3612 (omp_set_num_threads): Use gomp_icv.
3613 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
3615 (omp_get_max_threads): Move from parallel.c.
3616 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3617 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
3619 (parse_stacksize, parse_wait_policy): New functions.
3620 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
3621 both wrappers for compatibility and new locks.
3622 (omp_set_schedule, omp_get_schedule,
3623 omp_get_thread_limit, omp_set_max_active_levels,
3624 omp_get_max_active_levels, omp_get_level,
3625 omp_get_ancestor_thread_num, omp_get_team_size,
3626 omp_get_active_level): New ialias_redirect.
3627 (omp_set_schedule_, omp_set_schedule_8_,
3628 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
3629 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
3630 omp_get_max_active_levels_, omp_get_level_,
3631 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
3632 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
3634 * parallel.c: Include limits.h.
3635 (gomp_resolve_num_threads): Add count argument. Rewritten.
3636 (GOMP_parallel_start): Call gomp_new_team and pass that as last
3637 argument to gomp_team_start. Pass 0 as second argument to
3638 gomp_resolve_num_threads.
3639 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
3640 if gomp_thread_limit_var != ULONG_MAX.
3641 (omp_in_parallel): Implement using ts.active_level.
3642 (omp_get_max_threads): Move to env.c.
3643 (omp_get_level, omp_get_ancestor_thread_num,
3644 omp_get_team_size, omp_get_active_level): New functions,
3646 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
3647 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
3648 gomp_iter_dynamic_next instead of the _locked variant and don't take
3649 lock around it, otherwise acquire it before calling
3650 gomp_iter_dynamic_next_locked.
3651 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
3652 gomp_iter_dynamic_next instead of the _locked variant and don't take
3654 (GOMP_parallel_sections_start): Call gomp_new_team instead of
3655 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
3656 Adjust gomp_team_start caller. Pass count as second argument to
3657 gomp_resolve_num_threads, don't adjust num_threads after the call.
3659 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
3660 ws->chunk_size by incr.
3661 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
3663 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
3665 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
3666 (omp_check_defines): Check even the compat defines.
3667 * config/linux/ptrlock.c: New file.
3668 * config/linux/ptrlock.h: New file.
3669 * config/linux/wait.h: New file.
3670 * config/posix/ptrlock.c: New file.
3671 * config/posix/ptrlock.h: New file.
3672 * config/linux/bar.h (gomp_team_barrier_wait,
3673 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
3674 (gomp_team_barrier_set_task_pending,
3675 gomp_team_barrier_clear_task_pending,
3676 gomp_team_barrier_set_waiting_for_tasks,
3677 gomp_team_barrier_waiting_for_tasks,
3678 gomp_team_barrier_done): New inlines.
3679 (gomp_barrier_t): Rewritten.
3680 (gomp_barrier_state_t): New typedef.
3681 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
3682 gomp_barrier_wait_start): Rewritten.
3683 (gomp_barrier_wait_end): Change second argument to
3684 gomp_barrier_state_t.
3685 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
3687 * config/linux/bar.c: Include wait.h instead of libgomp.h and
3689 (gomp_barrier_wait_end): Rewritten.
3690 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
3691 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
3692 * config/posix/bar.h (gomp_barrier_t): Add generation field.
3693 (gomp_barrier_state_t): New typedef.
3694 (gomp_team_barrier_wait,
3695 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
3696 (gomp_barrier_wait_start): Or all but low 2 bits from generation
3697 into the return value. Return gomp_barrier_state_t.
3698 (gomp_team_barrier_set_task_pending,
3699 gomp_team_barrier_clear_task_pending,
3700 gomp_team_barrier_set_waiting_for_tasks,
3701 gomp_team_barrier_waiting_for_tasks,
3702 gomp_team_barrier_done): New inlines.
3703 (gomp_barrier_wait_end): Change second argument to
3704 gomp_barrier_state_t.
3705 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
3707 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
3708 (gomp_barrier_wait_end): Change second argument to
3709 gomp_barrier_state_t.
3710 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
3711 gomp_team_barrier_wake): New functions.
3712 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
3714 (gomp_futex_wake, gomp_futex_wait): New variables.
3715 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
3716 * config/linux/lock.c: Rewrite to make locks task owned,
3717 for backwards compatibility provide the old entrypoints
3718 if symbol versioning. Include wait.h instead of libgomp.h and
3720 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
3721 * config/posix95/lock.c: Rewrite to make locks task owned,
3722 for backwards compatibility provide the old entrypoints
3723 if symbol versioning.
3724 * config/posix/lock.c: Rewrite to make locks task owned,
3725 for backwards compatibility provide the old entrypoints
3726 if symbol versioning.
3727 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
3728 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
3729 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
3730 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3731 (sys_futex0): Return error code.
3732 (futex_wake, futex_wait): If ENOSYS was returned, clear
3733 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3734 (cpu_relax, atomic_write_barrier): New static inlines.
3735 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3736 (futex_wake, futex_wait): If ENOSYS was returned, clear
3737 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3738 (cpu_relax, atomic_write_barrier): New static inlines.
3739 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3740 (sys_futex0): Return error code.
3741 (futex_wake, futex_wait): If ENOSYS was returned, clear
3742 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3743 (cpu_relax, atomic_write_barrier): New static inlines.
3744 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3745 (sys_futex0): Return error code.
3746 (futex_wake, futex_wait): If ENOSYS was returned, clear
3747 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3748 (cpu_relax, atomic_write_barrier): New static inlines.
3749 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3750 (sys_futex0): Return error code.
3751 (futex_wake, futex_wait): If ENOSYS was returned, clear
3752 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3753 (cpu_relax, atomic_write_barrier): New static inlines.
3754 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3755 (sys_futex0): Return error code.
3756 (futex_wake, futex_wait): If ENOSYS was returned, clear
3757 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3758 (cpu_relax, atomic_write_barrier): New static inlines.
3759 * config/linux/sem.c: Include wait.h instead of libgomp.h and
3761 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
3762 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
3763 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
3765 (omp_nest_lock_t): Change owner into void *, add lock field.
3766 * config/posix95/omp-lock.h: Include semaphore.h.
3767 (omp_lock_25_t, omp_nest_lock_25_t): New types.
3768 (omp_lock_t): Use sem_t instead of mutex if semaphores
3770 (omp_nest_lock_t): Likewise. Change owner to void *.
3771 * config/posix/omp-lock.h: Include semaphore.h.
3772 (omp_lock_25_t, omp_nest_lock_25_t): New types.
3773 (omp_lock_t): Use sem_t instead of mutex if semaphores
3775 (omp_nest_lock_t): Likewise. Add owner field.
3777 2008-06-06 Jakub Jelinek <jakub@redhat.com>
3779 * testsuite/libgomp.c/collapse-1.c: New test.
3780 * testsuite/libgomp.c/collapse-2.c: New test.
3781 * testsuite/libgomp.c/collapse-3.c: New test.
3782 * testsuite/libgomp.c/icv-1.c: New test.
3783 * testsuite/libgomp.c/icv-2.c: New test.
3784 * testsuite/libgomp.c/lib-2.c: New test.
3785 * testsuite/libgomp.c/lock-1.c: New test.
3786 * testsuite/libgomp.c/lock-2.c: New test.
3787 * testsuite/libgomp.c/lock-3.c: New test.
3788 * testsuite/libgomp.c/loop-4.c: New test.
3789 * testsuite/libgomp.c/loop-5.c: New test.
3790 * testsuite/libgomp.c/loop-6.c: New test.
3791 * testsuite/libgomp.c/loop-7.c: New test.
3792 * testsuite/libgomp.c/loop-8.c: New test.
3793 * testsuite/libgomp.c/loop-9.c: New test.
3794 * testsuite/libgomp.c/nested-3.c: New test.
3795 * testsuite/libgomp.c/nestedfn-6.c: New test.
3796 * testsuite/libgomp.c/sort-1.c: New test.
3797 * testsuite/libgomp.c/task-1.c: New test.
3798 * testsuite/libgomp.c/task-2.c: New test.
3799 * testsuite/libgomp.c/task-3.c: New test.
3800 * testsuite/libgomp.c/task-4.c: New test.
3801 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
3802 to C++ testsuite default compiler options.
3803 * testsuite/libgomp.c++/collapse-1.C: New test.
3804 * testsuite/libgomp.c++/collapse-2.C: New test.
3805 * testsuite/libgomp.c++/ctor-10.C: New test.
3806 * testsuite/libgomp.c++/for-1.C: New test.
3807 * testsuite/libgomp.c++/for-2.C: New test.
3808 * testsuite/libgomp.c++/for-3.C: New test.
3809 * testsuite/libgomp.c++/for-4.C: New test.
3810 * testsuite/libgomp.c++/for-5.C: New test.
3811 * testsuite/libgomp.c++/loop-8.C: New test.
3812 * testsuite/libgomp.c++/loop-9.C: New test.
3813 * testsuite/libgomp.c++/loop-10.C: New test.
3814 * testsuite/libgomp.c++/task-1.C: New test.
3815 * testsuite/libgomp.c++/task-2.C: New test.
3816 * testsuite/libgomp.c++/task-3.C: New test.
3817 * testsuite/libgomp.c++/task-4.C: New test.
3818 * testsuite/libgomp.c++/task-5.C: New test.
3819 * testsuite/libgomp.c++/task-6.C: New test.
3820 * testsuite/libgomp.fortran/allocatable1.f90: New test.
3821 * testsuite/libgomp.fortran/allocatable2.f90: New test.
3822 * testsuite/libgomp.fortran/allocatable3.f90: New test.
3823 * testsuite/libgomp.fortran/allocatable4.f90: New test.
3824 * testsuite/libgomp.fortran/collapse1.f90: New test.
3825 * testsuite/libgomp.fortran/collapse2.f90: New test.
3826 * testsuite/libgomp.fortran/collapse3.f90: New test.
3827 * testsuite/libgomp.fortran/collapse4.f90: New test.
3828 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
3829 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
3830 * testsuite/libgomp.fortran/lib4.f90: New test.
3831 * testsuite/libgomp.fortran/lock-1.f90: New test.
3832 * testsuite/libgomp.fortran/lock-2.f90: New test.
3833 * testsuite/libgomp.fortran/nested1.f90: New test.
3834 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
3835 * testsuite/libgomp.fortran/strassen.f90: New test.
3836 * testsuite/libgomp.fortran/tabs1.f90: New test.
3837 * testsuite/libgomp.fortran/tabs2.f: New test.
3838 * testsuite/libgomp.fortran/task1.f90: New test.
3839 * testsuite/libgomp.fortran/task2.f90: New test.
3840 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
3841 * testsuite/libgomp.fortran/vla5.f90: Likewise.
3842 * testsuite/libgomp.c/pr26943-2.c: Likewise.
3843 * testsuite/libgomp.c/pr26943-3.c: Likewise.
3844 * testsuite/libgomp.c/pr26943-4.c: Likewise.
3846 2008-05-23 Jakub Jelinek <jakub@redhat.com>
3849 * testsuite/libgomp.c++/ctor-11.C: New test.
3850 * testsuite/libgomp.c++/ctor-12.C: New test.
3852 2008-05-15 Janis Johnson <janis187@us.ibm.com>
3854 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
3856 2008-05-07 Jakub Jelinek <jakub@redhat.com>
3859 * testsuite/libgomp.c/atomic-5.c: New test.
3860 * testsuite/libgomp.c/atomic-6.c: New test.
3861 * testsuite/libgomp.c/autopar-1.c: New test.
3863 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3865 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
3866 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
3867 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
3868 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
3869 * configure: Regenerate.
3870 * Makefile.in, testsuite/Makefile.in: Likewise.
3872 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
3875 * aclocal.m4: Regenerate.
3876 * configure: Regenerate.
3878 2008-03-18 Jakub Jelinek <jakub@redhat.com>
3881 * testsuite/libgomp.c/atomic-4.c: New test.
3884 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
3885 (gomp_iter_guided_next): Likewise.
3886 * testsuite/libgomp.c/pr35625.c: New test.
3888 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3890 * aclocal.m4: Regenerate.
3891 * configure: Likewise.
3892 * Makefile.in: Likewise.
3893 * testsuite/Makefile.in: Likewise.
3895 2008-03-13 Jakub Jelinek <jakub@redhat.com>
3898 * testsuite/libgomp.c++/pr35185.C: New test.
3900 2008-03-12 Jakub Jelinek <jakub@redhat.com>
3903 * testsuite/libgomp.c/pr35549.c: New test.
3905 2008-03-06 Jakub Jelinek <jakub@redhat.com>
3907 * testsuite/libgomp.c/atomic-3.c: New test.
3909 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3912 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
3915 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
3918 * configure.ac: Add ACX_HEADER_STRING.
3919 * env.c: Include strings.h.
3920 * aclocal.m4: Regenerate.
3921 * config.h.in: Regenerate.
3922 * configure: Regenerate.
3923 * Makefile.in: Regenerate.
3924 * testsuite/Makefile.in: Regenerate.
3926 2008-02-15 Jakub Jelinek <jakub@redhat.com>
3929 * testsuite/libgomp.c/pr35196.c: New test.
3932 * testsuite/libgomp.fortran/pr35130.f90: New test.
3933 * testsuite/libgomp.c/pr35130.c: New test.
3935 2008-01-25 Jakub Jelinek <jakub@redhat.com>
3938 * testsuite/libgomp.c/pr33880.c: New test.
3939 * testsuite/libgomp.fortran/pr33880.f90: New test.
3941 2008-01-24 David Edelsohn <edelsohn@gnu.org>
3943 * configure: Regenerate.
3945 2008-01-08 Jakub Jelinek <jakub@redhat.com>
3947 * configure.ac: Move futex checking into ../config/futex.m4.
3948 * configure: Rebuilt.
3949 * aclocal.m4: Rebuilt.
3950 * Makefile.in: Rebuilt.
3952 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
3953 2007-10-15 ../config/tls.m4 change.
3955 2007-12-19 Jakub Jelinek <jakub@redhat.com>
3958 * testsuite/libgomp.c/pr34513.c: New test.
3959 * testsuite/libgomp.c++/pr34513.C: New test.
3961 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
3964 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
3966 2007-12-04 Jakub Jelinek <jakub@redhat.com>
3968 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
3970 2007-12-03 Jakub Jelinek <jakub@redhat.com>
3972 * testsuite/libgomp.c/private-1.c: New test.
3974 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
3975 Paolo Bonzini <bonzini@gnu.org>
3977 * Makefile.am: Use space as vpath separator. Use 'vpath %'
3978 instead of 'VPATH ='.
3979 * Makefile.in: Regenerate.
3981 2007-11-23 Matthias Klose <doko@ubuntu.com>
3983 * configure.ac: Adjust makeinfo version check.
3984 * configure: Regenerate.
3986 2007-11-10 Jakub Jelinek <jakub@redhat.com>
3989 * testsuite/libgomp.fortran/pr34020.f90: New test.
3991 2007-11-06 Jakub Jelinek <jakub@redhat.com>
3994 * testsuite/libgomp.c++/atomic-1.C: New test.
3996 2007-10-25 Jakub Jelinek <jakub@redhat.com>
3999 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
4000 Make x and y integers rather than (implicit) reals. Add private (j)
4001 clause to the last omp parallel.
4003 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
4005 * configure: Regenerate following changes to ../config/tls.m4.
4007 2007-09-28 Jakub Jelinek <jakub@redhat.com>
4009 * testsuite/libgomp.fortran/stack.f90: New test.
4011 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
4013 * config/mingw32/proc.c: New file.
4015 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
4017 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
4018 (main): Use __get_cpuid to get i386 target fetaures.
4019 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
4020 (main): Use __get_cpuid to get x86_64 target fetaures.
4022 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
4025 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
4026 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
4028 2007-07-12 Jakub Jelinek <jakub@redhat.com>
4031 * testsuite/libgomp.fortran/pr32550.f90: New test.
4032 * testsuite/libgomp.fortran/crayptr2.f90: New test.
4034 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
4036 * aclocal.m4: Regenerated.
4038 2007-07-05 Tobias Burnus <burnus@net-b.de>
4041 * testsuite/libgomp.fortran/pr32359.f90: New.
4043 2007-07-02 Jakub Jelinek <jakub@redhat.com>
4046 * sections.c (GOMP_parallel_sections_start): Only decrease
4047 number of threads to COUNT if dyn_var is true.
4048 * testsuite/libgomp.c/pr32468.c: New test.
4050 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4053 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
4055 2007-06-21 Jakub Jelinek <jakub@redhat.com>
4058 * testsuite/libgomp.c/pr32362-1.c: New test.
4059 * testsuite/libgomp.c/pr32362-2.c: New test.
4060 * testsuite/libgomp.c/pr32362-3.c: New test.
4062 2007-06-07 Jakub Jelinek <jakub@redhat.com>
4064 * team.c (gomp_team_start): Fix setting up thread_attr
4067 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
4069 * configure: Regenerate.
4071 2007-05-23 Steve Ellcey <sje@cup.hp.com>
4073 * Makefile.in: Regenerate.
4074 * configure: Regenerate.
4075 * aclocal.m4: Regenerate.
4076 * testsuite/Makefile.in: Regenerate.
4078 2007-05-04 Jakub Jelinek <jakub@redhat.com>
4080 * config/linux/proc.c: New file.
4083 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
4085 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
4087 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
4089 2007-04-16 Matthias Klose <doko@debian.org>
4091 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
4092 flags if not building with -m64.
4093 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
4094 flag for i?86-*-* targets, if current target matches -m64.
4096 2007-04-14 Steve Ellcey <sje@cup.hp.com>
4098 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
4099 * Makefile.in: Regenerate.
4101 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4104 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
4106 * testsuite/libgomp.fortran/fortran.exp: Likewise.
4108 2007-04-04 Jakub Jelinek <jakub@redhat.com>
4110 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
4112 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
4113 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
4114 (parse_affinity): New function.
4115 (initialize_env): Call it and gomp_init_affinity.
4116 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
4117 create new pthread_attr_t and call gomp_init_thread_affinity
4118 on it for each thread before passing the attribute to pthread_create.
4119 * config/linux/affinity.c: New file.
4120 * config/posix/affinity.c: New file.
4121 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
4122 * configure: Rebuilt.
4123 * config.h.in: Rebuilt.
4124 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
4125 * Makefile.in: Rebuilt.
4127 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
4129 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
4131 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
4132 and use it if found.
4134 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
4136 * testsuite/config/default.exp: New file.
4137 * testsuite/lib/libgomp.exp: New file.
4138 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
4139 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
4140 load_lib *, load_gcc_lib *): Move to libgomp.exp.
4141 (libgomp_load): Remove.
4142 * testsuite/lib/libgomp.exp (libgomp_init): Compute
4143 always_ld_library_path, not ld_library_path. Set additional_flags
4144 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
4145 (target_compile): Do not call libgomp_init. Append lang_library_path
4146 and lang_link_flags to options.
4147 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
4148 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
4150 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
4151 always_ld_library_path. Set LD_LIBRARY_PATH here.
4152 * testsuite/libgomp.fortran/fortran.exp: Ditto.
4153 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
4154 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
4156 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
4157 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
4158 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
4159 * testsuite/libgomp.c/pr29947-1.c: Ditto.
4160 * testsuite/libgomp.c/atomic-10.c: Ditto.
4162 2007-03-21 Jakub Jelinek <jakub@redhat.com>
4164 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
4165 dg-final cleanup-modules line.
4166 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
4167 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
4168 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
4169 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
4170 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
4171 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
4172 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
4174 2007-03-18 Andreas Schwab <schwab@suse.de>
4176 * acinclude.m4: Adjust regular expression for ld version
4178 * configure: Regenerate.
4180 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
4182 * Makefile.am: Add install-pdf target as copied from
4183 automake v1.10 rules.
4184 * Makefile.in: Regenerate
4186 2007-02-07 Jakub Jelinek <jakub@redhat.com>
4189 * configure: Regenerate.
4192 * testsuite/libgomp.c++/pr30703.C: New test.
4194 2007-02-02 Jakub Jelinek <jakub@redhat.com>
4197 2006-07-05 Eric Christopher <echristo@apple.com>
4198 * configure.ac: Depend addition of -pthread on host OS.
4199 * configure: Regenerate.
4201 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4203 * libgomp.texi: Fix spacing after abbreviations.
4205 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
4208 * configure.ac: Add check for makeinfo
4209 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
4210 if an appropiate version of makeinfo is found.
4211 * aclocal.m4: Regenerated.
4212 * configure: Regenerated.
4213 * Makefile.in: Regenerated.
4214 * testsuite/Makefile.in: Regenerated.
4216 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
4219 * libgomp.texi: More about implementation-dependent settings.
4221 2007-01-26 Tobias Burnus <burnus@net-b.de>
4223 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
4225 2007-01-24 Jakub Jelinek <jakub@redhat.com>
4228 * testsuite/libgomp.c/pr30494.c: New test.
4230 2007-01-15 Tom Tromey <tromey@redhat.com>
4232 * configure: Rebuilt.
4233 * configure.ac: Fixed comment.
4235 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
4237 * libgomp.texi: Document implementation specific default values of
4238 environment variables.
4240 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
4243 * libgomp.texi: New file.
4244 * configure.ac: Add --enable-generated-files-in-srcdir option.
4245 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
4247 * Makefile.in: Regenerated.
4248 * config.h.in: Regenerated.
4249 * testsuite/Makefile.in: Regenerated.
4252 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
4255 * env.c (omp_set_num_threads): Set illegal thread count to 1.
4257 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
4259 * configure: Regenerate.
4261 2006-12-04 Jakub Jelinek <jakub@redhat.com>
4264 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
4265 start if there shouldn't be any loop iterations.
4266 (gomp_loop_ordered_static_start): Remove start == end test.
4267 * testsuite/libgomp.c/pr29947-1.c: New test.
4268 * testsuite/libgomp.c/pr29947-2.c: New test.
4270 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
4272 * configure.tgt: Force initial-exec TLS model on Linux only.
4274 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
4276 * configure: Regenerated.
4278 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
4280 * env.c (parse_schedule): Reject out of range values.
4281 (parse_unsigned_long): Reject out of range, negative or zero values.
4283 2006-10-29 Jakub Jelinek <jakub@redhat.com>
4286 * testsuite/libgomp.fortran/pr29629.f90: New test.
4288 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
4291 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
4292 * config/posix95: New directory.
4293 * config/posix95/omp-lock.h: New file.
4294 * config/posix95/lock.c: Likewise.
4296 2006-10-14 Geoffrey Keating <geoffk@apple.com>
4298 * aclocal.m4: Regenerate.
4299 * configure: Regenerate.
4301 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
4303 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
4306 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
4308 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
4310 * configure: Regenerate.
4311 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
4313 2006-09-26 Jakub Jelinek <jakub@redhat.com>
4317 * testsuite/libgomp.c/nestedfn-4.c: New test.
4318 * testsuite/libgomp.c/nestedfn-5.c: New test.
4319 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
4322 * testsuite/libgomp.fortran/condinc1.f: New test.
4323 * testsuite/libgomp.fortran/condinc2.f: New test.
4324 * testsuite/libgomp.fortran/condinc3.f90: New test.
4325 * testsuite/libgomp.fortran/condinc4.f90: New test.
4326 * testsuite/libgomp.fortran/condinc1.inc: New file.
4328 2006-09-18 Tom Tromey <tromey@redhat.com>
4330 * configure: Rebuilt.
4332 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
4335 PR preprocessor/14634
4336 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
4338 * configure: Regenerate.
4340 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
4342 * testsuite/libgomp.fortran/reduction3.f90: Change
4343 -2147483648 to -huge(i)-1 to avoid overflow.
4344 * testsuite/libgomp.fortran/reduction4.f90: Change
4345 Z'ffffffff' to not(0) to avoid overflow.
4347 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
4350 * Makefile.am (libsubincludedir): New.
4351 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
4352 * Makefile.in: Regenerate.
4354 2006-08-17 Jakub Jelinek <jakub@redhat.com>
4357 * env.c: Include ctype.h.
4358 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
4359 leading and/or trailing whitespace and compare strings case
4362 2006-07-16 Jakub Jelinek <jakub@redhat.com>
4365 * testsuite/libgomp.fortran/pr28390.f: New test.
4367 2006-07-05 Eric Christopher <echristo@apple.com>
4369 * configure.ac: Depend addition of -pthread on host OS.
4370 * configure: Regenerate.
4372 2006-06-21 Jakub Jelinek <jakub@redhat.com>
4374 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
4375 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
4378 2006-06-20 Jakub Jelinek <jakub@redhat.com>
4382 * configure.ac: If neither --enable-linux-futex nor
4383 --disable-linux-futex is passed, determine the default by checking
4384 for compiling and/or running against NPTL. With --enable-linux-futex,
4385 check if SYS_gettid and SYS_futex are defined.
4386 * configure: Rebuilt.
4388 2006-06-14 Richard Henderson <rth@redhat.com>
4391 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
4392 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
4394 2006-06-09 Richard Henderson <rth@redhat.com>
4396 * env.c (gomp_nthreads_var): Change to unsigned long.
4397 (gomp_run_sched_chunk): Likewise.
4398 (parse_unsigned_long): Rename from parse_num_threads and generalize.
4399 (initialize_env): Initialize gomp_thread_attr.
4400 * libgomp.h (gomp_nthreads_var): Update decl.
4401 (gomp_run_sched_chunk): Likewise.
4402 (gomp_thread_attr): Declare.
4403 * team.c (gomp_thread_attr): Export.
4404 (initialize_team): Don't initialize it.
4406 2006-06-09 Jakub Jelinek <jakub@redhat.com>
4409 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
4410 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
4412 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
4414 * config/mingw32/time.c: New file.
4415 * configure.tgt: Use it.
4417 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
4419 * Makefile.am: Add install-html target. Add install-html to .PHONY
4420 * Makefile.in: Regenerate.
4422 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4425 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
4426 * testsuite/libgomp.c/critical-1.c: Likewise.
4427 * testsuite/libgomp.c/loop-1.c: Likewise.
4428 * testsuite/libgomp.c/loop-2.c: Likewise.
4429 * testsuite/libgomp.c/single-1.c: Likewise.
4430 * testsuite/libgomp.c/ordered-1.c: Likewise.
4431 * testsuite/libgomp.c/ordered-2.c: Likewise.
4433 2006-05-15 Jakub Jelinek <jakub@redhat.com>
4436 * libgomp.fortran/pr27416-1.f90: New test.
4438 2006-05-03 Jakub Jelinek <jakub@redhat.com>
4441 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
4442 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
4444 2006-05-02 Jakub Jelinek <jakub@redhat.com>
4447 * testsuite/libgomp.c/pr26943-1.c: New test.
4448 * testsuite/libgomp.c/pr26943-2.c: New test.
4449 * testsuite/libgomp.c/pr26943-3.c: New test.
4450 * testsuite/libgomp.c/pr26943-4.c: New test.
4451 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
4452 * testsuite/libgomp.c++/pr26943.C: New test.
4454 2006-05-02 Jakub Jelinek <jakub@redhat.com>
4457 * testsuite/libgomp.c++/pr27337.C: New test.
4459 2006-04-26 Jakub Jelinek <jakub@redhat.com>
4462 * testsuite/libgomp.c/pr26171.c: New test.
4464 2006-04-25 Richard Henderson <rth@redhat.com>
4467 * configure.ac: Use GCC_CHECK_TLS.
4468 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
4469 * Makefile.in, aclocal.m4, configure: Regenerate.
4471 2006-04-10 Matthias Klose <doko@debian.org>
4473 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
4474 directory names containing underscores.
4476 2006-03-21 Jakub Jelinek <jakub@redhat.com>
4479 * testsuite/libgomp.c++/pr26691.C: New test.
4481 2006-03-13 Jakub Jelinek <jakub@redhat.com>
4483 * testsuite/libgomp.fortran/retval2.f90: New test.
4485 2006-03-09 Diego Novillo <dnovillo@redhat.com>
4487 * testsuite/libgomp.c++: New directory.
4489 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
4491 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
4492 * config/posix/sem.c: Implement the above.
4494 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
4496 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
4497 define HAVE_BROKEN_POSIX_SEMAPHORES.
4498 * configure: Rebuilt.
4499 * config.h.in: Rebuilt.
4501 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
4504 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
4505 for the other pthread check.
4506 * configure: Regenerate.
4507 * config.h.in: Regenerate.
4509 2006-02-15 Jakub Jelinek <jakub@redhat.com>
4513 * Makefile.am (fincludedir): New variable.
4514 (nodist_include_HEADERS): Remove Fortran files.
4515 (nodist_finclude_HEADERS): New variable.
4516 * Makefile.in: Regenerated.
4518 2006-02-13 Jakub Jelinek <jakub@redhat.com>
4520 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
4521 Remove tests for returning assumed character length arrays.
4523 2006-02-12 Roger Sayle <roger@eyesopen.com>
4524 John David Anglin <dave@hiauly1.hia.nrc.ca>
4527 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
4529 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4531 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
4533 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
4535 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
4536 part of LD_LIBRARY_PATH manually.
4538 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
4541 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
4544 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
4547 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
4548 * configure.ac (PERL): Don't set.
4549 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
4550 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
4551 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
4552 * omp.h.in: Wrap the new configure substitutions with @ characters.
4553 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
4554 * aclocal.m4, configure, Makefile.in: Regenerate.
4555 * mkomp_h.pl: Delete.
4557 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
4560 * configure.ac: Use GCC_HEADER_STDINT.
4561 * libgomp.h: Include gstdint.h.
4562 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
4563 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
4565 2006-01-24 Richard Henderson <rth@redhat.com>
4568 * configure.ac: Add AM_MAINTAINER_MODE.
4569 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
4571 2006-01-24 Diego Novillo <dnovillo@redhat.com>
4573 * Makefile.in: Regenerate.
4574 * testsuite/Makefile.in: Regenerate.
4575 * aclocal.m4: Regenerate.
4577 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
4579 * config/posix/proc.c: Conditional include of sys/loadavg.h for
4581 * configure.ac: Add check for loadavg.h.
4582 (link_gomp): Adjust comment.
4583 * configure: Regenerate.
4584 * config.h.in: Regenerate.
4586 2006-01-21 Steve Ellcey <sje@cup.hp.com>
4589 * configure.ac: Remove check for alloca.h.
4590 * configure: Regenerate.
4591 * config.h.in: Regenerate.
4592 * libgomp.h: define gomp_alloca to be __builtin_alloca.
4593 * team.c: Remove use of alloca.h.
4594 Call gomp_alloca instead of alloca.
4596 2006-01-20 Steve Ellcey <sje@cup.hp.com>
4599 * team.c: Add include of alloca.h.
4600 * configure.ac: Add check for alloca.h.
4601 * configure: Regenerate.
4602 * config.h.in: Regenerate.
4604 2006-01-17 Jakub Jelinek <jakub@redhat.com>
4607 * testsuite/libgomp.fortran/pr25219.f90: New test.
4609 2005-12-05 Uros Bizjak <uros@kss-loka.si>
4611 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
4612 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
4613 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
4614 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
4615 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
4616 testsuite/libgomp.fortran/threadprivate1.f90,
4617 testsuite/libgomp.fortran/threadprivate2.f90,
4618 testsuite/libgomp.fortran/threadprivate3.f90,
4619 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
4620 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
4621 testsuite/libgomp.fortran/omp_parse3.f90: Change required
4622 effective-target to TLS runtime.
4624 * testsuite/libgomp.fortran/pr25162.f: Require
4625 effective-target TLS runtime.
4627 2005-12-01 Jakub Jelinek <jakub@redhat.com>
4629 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
4630 * testsuite/libgomp.c/nestedfn-3.c: New test.
4632 2005-11-30 Jakub Jelinek <jakub@redhat.com>
4635 * testsuite/libgomp.fortran/pr25162.f: New test.
4637 2005-11-28 Jakub Jelinek <jakub@redhat.com>
4639 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
4640 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
4642 2005-11-25 Jakub Jelinek <jakub@redhat.com>
4644 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
4645 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
4646 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
4647 single.c, team.c, work.c, config/linux/alpha/futex.h,
4648 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
4649 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
4650 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
4651 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
4652 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
4653 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
4654 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
4657 2005-11-18 Jakub Jelinek <jakub@redhat.com>
4659 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
4660 to nodist_noinst_HEADERS.
4661 * Makefile.in: Rebuilt.
4663 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
4664 add integer count field.
4665 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
4666 omp_nest_lock_t type change.
4667 (omp_init_nest_lock): Likewise. Initialize count to 0.
4668 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
4670 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
4672 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
4673 Increment count if successful and return the new nesting level.
4674 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
4675 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
4676 * testsuite/libgomp.c/lib-1.c: New test.
4677 * testsuite/libgomp.fortran/lib1.f90: New test.
4678 * testsuite/libgomp.fortran/lib2.f: New test.
4679 * testsuite/libgomp.fortran/lib3.f: New test.
4681 2005-11-17 Richard Henderson <rth@redhat.com>
4684 * Makefile.am (nodist_toolexeclib_HEADERS): New.
4685 * configure.ac (link_gomp): New. Substitute it.
4686 (AC_CONFIG_FILES): Add libgomp.spec.
4687 * libgomp.spec.in: New file.
4688 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
4689 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
4691 2005-11-18 Jakub Jelinek <jakub@redhat.com>
4693 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
4694 reduction(-:var) behaving the same as reduction(+:var).
4695 * testsuite/libgomp.c/reduction-4.c: New test.
4697 2005-11-15 Uros Bizjak <uros@kss-loka.si>
4699 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
4700 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
4701 testsuite/libgomp.c/copyin-3.c,
4702 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
4703 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
4704 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
4705 testsuite/libgomp.c++/pr24455.C,
4706 testsuite/libgomp.fortran/threadprivate1.f90,
4707 testsuite/libgomp.fortran/threadprivate2.f90,
4708 testsuite/libgomp.fortran/threadprivate3.f90,
4709 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
4710 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
4711 testsuite/libgomp.fortran/omp_parse3.f90: Require
4712 effective-target TLS.
4714 2005-11-14 Diego Novillo <dnovillo@redhat.com>
4718 2005-11-13 Jakub Jelinek <jakub@redhat.com>
4721 * team.c (initialize_team): Pass NULL rather than free as
4722 pthread_key_create destructor. Initialize thread specific data
4723 pointer in initial thread to a static local variable rather than
4726 2005-11-11 Uros Bizjak <uros@kss-loka.si>
4728 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
4729 its location to ld_library_path.
4731 2005-11-10 Diego Novillo <dnovillo@redhat.com>
4733 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
4735 2005-11-10 Diego Novillo <dnovillo@redhat.com>
4737 * testsuite/libgomp.c: Rename from libgomp.dg.
4739 2005-11-09 Diego Novillo <dnovillo@redhat.com>
4741 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
4742 threadprivate variable 'i'.
4744 2005-11-09 Jakub Jelinek <jakub@redhat.com>
4746 * config/linux/s390/futex.h: New file.
4747 * configure.tgt: Use it.
4749 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
4750 before the parallel.
4752 2005-11-08 Jakub Jelinek <jakub@redhat.com>
4755 * testsuite/libgomp.c++/master-1.C: New test.
4757 2005-11-07 Jakub Jelinek <jakub@redhat.com>
4759 * testsuite/libgomp.dg/copyin-3.c: New test.
4761 2005-11-07 Jakub Jelinek <jakub@redhat.com>
4763 * testsuite/libgomp.fortran/retval1.f90: New test.
4764 * testsuite/libgomp.fortran/vla7.f90: New test.
4766 2005-11-06 Jakub Jelinek <jakub@redhat.com>
4768 * testsuite/libgomp.fortran/vla2.f90: New test.
4769 * testsuite/libgomp.fortran/vla3.f90: New test.
4770 * testsuite/libgomp.fortran/vla4.f90: New test.
4771 * testsuite/libgomp.fortran/vla5.f90: New test.
4772 * testsuite/libgomp.fortran/vla6.f90: New test.
4774 2005-11-01 Jakub Jelinek <jakub@redhat.com>
4776 * config/linux/sparc/futex.h: New file.
4777 * configure.tgt: Use it.
4778 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
4780 * critical.c: Include stdlib.h.
4781 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
4782 ignoring return value.
4783 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
4784 LIBGOMP_CHECK_SYNC_BUILTINS check.
4785 * configure: Rebuilt.
4787 2005-10-31 Jakub Jelinek <jakub@redhat.com>
4789 * testsuite/libgomp.fortran/vla1.f90: New test.
4791 2005-10-31 Richard Henderson <rth@redhat.com>
4793 * testsuite/libgomp.fortran/character2.f90: Fix race condition
4794 setting 's' in different threads.
4796 2005-10-31 Jakub Jelinek <jakub@redhat.com>
4798 * libgomp.h (attribute_hidden, ialias): Define.
4799 * config/posix/proc.c (omp_get_num_procs): Add ialias.
4800 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
4801 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
4802 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
4803 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
4804 omp_test_lock, omp_test_nest_lock): Likewise.
4805 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
4806 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
4807 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
4808 omp_test_lock, omp_test_nest_lock): Likewise.
4809 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
4810 omp_get_dynamic, omp_get_nested): Likewise.
4811 * parallel.c (omp_get_num_threads, omp_get_max_threads,
4812 omp_get_thread_num, omp_in_parallel): Likewise.
4813 * fortran.c (ialias_redirect): Define.
4814 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
4815 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
4816 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
4817 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
4818 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
4819 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
4820 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
4821 omp_get_wtime): Add ialias_redirect.
4823 2005-10-30 Jakub Jelinek <jakub@redhat.com>
4825 * fortran.c: Include stdlib.h.
4827 2005-10-29 Jakub Jelinek <jakub@redhat.com>
4829 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
4830 * Makefile.in: Regenerated.
4832 2005-10-28 Jakub Jelinek <jakub@redhat.com>
4834 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
4835 * libgomp_f.h.in (omp_check_defines): New function.
4836 * env.c: Include libgomp_f.h.
4837 (initialize_env): Call omp_check_defines.
4839 * testsuite/libgomp.dg/copyin-2.c: New test.
4840 * testsuite/libgomp.c++/copyin-2.C: New test.
4841 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
4843 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
4844 * testsuite/libgomp.fortran/sharing2.f90: New test.
4846 * testsuite/libgomp.dg/copyin-1.c: New test.
4847 * testsuite/libgomp.c++/copyin-1.C: New test.
4849 2005-10-26 Jakub Jelinek <jakub@redhat.com>
4851 * testsuite/libgomp.fortran/crayptr1.f90: New test.
4853 * testsuite/libgomp.fortran/workshare1.f90: New test.
4855 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
4857 * libgomp.fortran/sharing1.f90: New test.
4859 2005-10-24 Jakub Jelinek <jakub@redhat.com>
4862 * testsuite/libgomp.c++/loop-7.C: New test.
4864 * testsuite/libgomp.dg/nestedfn-2.c: New test.
4866 * testsuite/libgomp.dg/nestedfn-1.c: New test.
4867 * testsuite/libgomp.fortran/reduction6.f90: New test.
4868 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
4870 2005-10-23 Richard Henderson <rth@redhat.com>
4872 * testsuite/libgomp.c++/ctor-1.C: New.
4873 * testsuite/libgomp.c++/ctor-2.C: New.
4874 * testsuite/libgomp.c++/ctor-3.C: New.
4875 * testsuite/libgomp.c++/ctor-4.C: New.
4876 * testsuite/libgomp.c++/ctor-5.C: New.
4877 * testsuite/libgomp.c++/ctor-6.C: New.
4878 * testsuite/libgomp.c++/ctor-7.C: New.
4879 * testsuite/libgomp.c++/ctor-8.C: New.
4880 * testsuite/libgomp.c++/ctor-9.C: New.
4882 2005-10-21 Diego Novillo <dnovillo@redhat.com>
4885 * testsuite/libgomp.c++/pr24455-1.C: New test.
4886 * testsuite/libgomp.c++/pr24455.C: New test.
4887 * testsuite/libgomp.dg/pr24455-1.c: New test.
4888 * testsuite/libgomp.dg/pr24455.c: New test.
4890 2005-10-20 Richard Henderson <rth@redhat.com>
4892 * testsuite/libgomp.c++/loop-6.C: New.
4893 * testsuite/libgomp.dg/loop-3.c: New.
4895 2005-10-20 Jakub Jelinek <jakub@redhat.com>
4897 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
4899 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
4902 2005-10-19 Diego Novillo <dnovillo@redhat.com>
4904 * testsuite/libgomp.fortran/jacobi.f: New test.
4906 2005-10-19 Richard Henderson <rth@redhat.com>
4908 * configure.tgt (i?86-linux): Default to with_arch instead of
4909 CFLAGS. Add -mtune to match target_cpu.
4910 (x86_64-linux): Tune to i686.
4912 * fortran.c (omp_test_nest_lock_): Fix typo.
4914 2005-10-19 Jakub Jelinek <jakub@redhat.com>
4916 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
4917 gomp_ordered_sync): Do nothing if team->nthreads == 1.
4918 * testsuite/libgomp.dg/ordered-3.c: New test.
4920 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
4921 Remove volatile keyword.
4923 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
4924 in COMMON block to avoid warnings on 64-bit targets.
4926 2005-10-18 Diego Novillo <dnovillo@redhat.com>
4928 * testsuite/libgomp.dg/shared-3.c: New test.
4930 2005-10-18 Jakub Jelinek <jakub@redhat.com>
4932 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
4933 * testsuite/libgomp.fortran/reduction5.f90: New test.
4935 2005-10-18 Jakub Jelinek <jakub@redhat.com>
4937 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
4939 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
4940 flush loop now that __sync_synchronize has proper memory barrier.
4941 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
4942 Add -ffixed-form to dg-options.
4944 2005-10-17 Diego Novillo <dnovillo@redhat.com>
4946 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
4947 from subdirectories.
4948 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
4949 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
4950 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
4951 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
4952 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
4953 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
4954 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
4955 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
4956 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
4957 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
4958 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
4959 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
4960 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
4961 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
4962 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
4963 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
4964 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
4965 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
4966 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
4967 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
4968 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
4969 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
4970 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
4971 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
4972 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
4974 2005-10-17 Jakub Jelinek <jakub@redhat.com>
4976 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
4977 lang_library_path exists. Use find instead of glob to gather tests.
4978 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
4980 2005-10-17 Diego Novillo <dnovillo@redhat.com>
4982 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
4983 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
4984 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
4985 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
4986 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
4987 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
4988 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
4989 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
4990 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
4991 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
4992 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
4993 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
4994 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
4996 2005-10-15 Jakub Jelinek <jakub@redhat.com>
4998 * testsuite/libgomp.dg/vla-1.c: New test.
5000 * testsuite/libgomp.fortran/reference2.f90: New test.
5002 * testsuite/libgomp.fortran/character2.f90: Remove explicit
5003 declaration of omp_get_thread_num.
5004 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
5007 * testsuite/libgomp.fortran/reduction1.f90: New test.
5008 * testsuite/libgomp.fortran/reduction2.f90: New test.
5009 * testsuite/libgomp.fortran/reduction3.f90: New test.
5010 * testsuite/libgomp.fortran/reduction4.f90: New test.
5012 2005-10-13 Richard Henderson <rth@redhat.com>
5014 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
5015 * Makefile.in: Regenerate.
5016 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
5017 * libgomp.h: Include bar.h.
5018 (struct gomp_barrier): Remove.
5019 (struct gomp_team): Add barrier. Replace master_barrier with
5020 master_release. Replace threads with ordered_release.
5021 (struct gomp_thread): Replace barrier with release.
5022 * ordered.c (gomp_ordered_first): Update for ordered_release change.
5023 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
5024 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
5025 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
5026 (GOMP_single_copy_end): Likewise.
5027 * team.c (gomp_threads_dock): New.
5028 (gomp_barrier_init, gomp_barrier_destroy): Remove.
5029 (gomp_thread_start): Use gomp_barrier_wait.
5030 (new_team, free_team): Update for gomp_team changes.
5031 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
5032 (gomp_team_end): Use gomp_barrier_wait.
5033 (initialize_team): Update for gomp_thread changes.
5034 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
5035 (gomp_work_share_end_nowait): Use atomic ops when available.
5036 * config/linux/bar.c, config/linux/bar.h: New files.
5037 * config/posix/bar.c, config/posix/bar.h: New files.
5039 2005-10-13 Jakub Jelinek <jakub@redhat.com>
5041 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
5042 * testsuite/libgomp.dg/single-2.c: New test.
5044 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
5045 lang_link_flags): Unset, so that they aren't inherited from previously
5048 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
5050 2005-10-12 Richard Henderson <rth@redhat.com>
5052 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
5053 (libgomp_init): Use lang_test_file, lang_library_path, and
5054 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
5056 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
5057 (lang_test_file, lang_link_flags): New.
5058 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
5060 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
5061 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
5062 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
5063 testsuite/libgomp.c++/parallel-1.C,
5064 testsuite/libgomp.c++/reduction-1.C,
5065 testsuite/libgomp.c++/reduction-2.C,
5066 testsuite/libgomp.c++/reduction-3.C,
5067 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
5068 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
5069 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
5070 New files, largely cribbed from the C testsuite.
5072 2005-10-12 Jakub Jelinek <jakub@redhat.com>
5074 * testsuite/libgomp.fortran/character1.f90: New test.
5075 * testsuite/libgomp.fortran/character2.f90: New test.
5077 * testsuite/libgomp.dg/nested-1.c: New test.
5078 * testsuite/libgomp.dg/nested-2.c: New test.
5079 * testsuite/libgomp.fortran/do1.f90: New test.
5080 * testsuite/libgomp.fortran/do2.f90: New test.
5082 * testsuite/libgomp.fortran/reference1.f90: New test.
5084 2005-10-11 Jakub Jelinek <jakub@redhat.com>
5086 * testsuite/libgomp.dg/reduction-1.c: New test.
5087 * testsuite/libgomp.dg/reduction-2.c: New test.
5088 * testsuite/libgomp.dg/reduction-3.c: New test.
5090 2005-10-10 Jakub Jelinek <jakub@redhat.com>
5092 * testsuite/libgomp.dg/atomic-1.c: New test.
5093 * testsuite/libgomp.dg/atomic-2.c: New test.
5095 2005-10-09 Richard Henderson <rth@redhat.com>
5097 * critical.c (atomic_lock): New.
5098 (initialize_critical): Initialize it.
5099 (GOMP_atomic_start, GOMP_atomic_end): New.
5100 * libgomp.map: Export them.
5101 * libgomp_g.h: Declare them.
5103 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
5105 2005-10-02 Richard Henderson <rth@redhat.com>
5107 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
5108 to XCFLAGS instead of CFLAGS.
5110 2005-09-30 Richard Henderson <rth@redhat.com>
5112 * configure.ac: Determine whether -pthread or -lpthread is needed.
5113 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
5114 * Makefine.in, configure: Rebuild.
5116 2005-09-28 Richard Henderson <rth@redhat.com>
5118 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
5119 * testsuite/libgomp.dg/omp-single-3.c: New test.
5121 2005-09-28 Diego Novillo <dnovillo@redhat.com>
5123 * testsuite/libgomp.dg/omp-single-2.c: New test.
5124 * testsuite/libgomp.dg/shared-2.c: Fix return code.
5126 2005-09-27 Richard Henderson <rth@redhat.com>
5128 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
5129 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
5131 2005-09-27 Jakub Jelinek <jakub@redhat.com>
5133 * testsuite/libgomp.dg/omp-loop03.c: New test.
5135 2005-09-27 Diego Novillo <dnovillo@redhat.com>
5137 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
5139 2005-09-27 Diego Novillo <dnovillo@redhat.com>
5141 * testsuite/libgomp.dg/omp-single-1.c: New test.
5142 * testsuite/libgomp.dg/shared-1.c: Return 0.
5143 Add prototype for abort.
5144 * testsuite/libgomp.dg/shared-2.c: Likewise.
5146 2005-09-26 Jakub Jelinek <jakub@redhat.com>
5148 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
5151 2005-09-26 Diego Novillo <dnovillo@redhat.com>
5153 * testsuite/libgomp.dg/shared-1.c: New test.
5154 * testsuite/libgomp.dg/shared-2.c: New test.
5156 2005-09-24 Richard Henderson <rth@redhat.com>
5158 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
5160 2005-09-24 Richard Henderson <rth@redhat.com>
5162 * iter.c (gomp_iter_static_next): Round up when computing number
5163 of iterations. Don't bother distributing a remainder equally.
5165 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
5166 Don't call srand. Zero b before testing.
5169 2005-09-24 Jakub Jelinek <jakub@redhat.com>
5171 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
5172 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
5174 2005-09-23 Jakub Jelinek <jakub@redhat.com>
5176 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
5177 without !$omp end do, followed immediately by subroutine end.
5179 2005-09-23 Diego Novillo <dnovillo@redhat.com>
5181 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
5183 2005-09-22 Richard Henderson <rth@redhat.com>
5185 * critical.c (GOMP_critical_name_start): Change argument to void**.
5186 Reuse the pointer space if the mutex fits.
5187 (GOMP_critical_name_end): Likewise.
5188 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
5189 * libgomp_g.h (GOMP_critical_name_start): Update decl.
5190 (GOMP_critical_name_end): Likewise.
5191 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
5192 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
5194 2005-09-20 Richard Henderson <rth@redhat.com>
5196 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
5197 (create_lock_lock): New.
5198 (initialize_critical): Initialize it.
5199 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
5200 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
5202 2005-09-20 Diego Novillo <dnovillo@redhat.com>
5204 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
5206 2005-09-20 Diego Novillo <dnovillo@redhat.com>
5208 * testsuite/libgomp.dg/omp-loop01.c: New test.
5209 * testsuite/libgomp.dg/omp-loop02.c: New test.
5211 2005-09-20 Jakub Jelinek <jakub@redhat.com>
5213 * configure.ac (AC_PROG_FC): Add.
5214 (USE_FORTRAN): New automake conditional.
5215 * configure: Rebuilt.
5216 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
5217 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
5218 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
5219 Add rules to build them.
5220 * Makefile.in: Rebuilt.
5221 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
5223 * libgomp.map: Add Fortran wrappers.
5224 * libgomp_f.h.in: New file.
5225 * omp_lib.h.in: New file.
5226 * omp_lib.f90.in: New file.
5227 * fortran.c: New file.
5228 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
5229 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
5230 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
5231 libgfortran has been built.
5232 * testsuite/libgomp.fortran/fortran.exp: New file.
5233 * testsuite/libgomp.fortran/omp_cond1.f: New test.
5234 * testsuite/libgomp.fortran/omp_cond2.f: New test.
5235 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
5236 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
5237 * testsuite/libgomp.fortran/omp_hello.f: New test.
5238 * testsuite/libgomp.fortran/omp_orphan.f: New test.
5239 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
5240 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
5241 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
5242 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
5243 * testsuite/libgomp.fortran/omp_reduction.f: New test.
5244 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
5245 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
5247 2005-08-30 Richard Henderson <rth@redhat.com>
5249 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
5250 function for when aliases are not usable.
5251 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
5252 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
5253 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
5254 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
5255 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
5256 GOMP_loop_ordered_guided_next): Likewise.
5257 * ordered.c (GOMP_ordered_start): Likewise.
5259 2005-08-01 Diego Novillo <dnovillo@redhat.com>
5261 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
5262 * testsuite/libgomp.dg/omp_hello.c: Fix return code
5263 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
5264 * testsuite/libgomp.dg/omp_orphan.c: Likewise
5265 * testsuite/libgomp.dg/omp_reduction.c: Likewise
5266 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
5267 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
5268 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
5269 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
5271 2005-07-07 Eric Christopher <echristo@redhat.com>
5272 Diego Novillo <dnovillo@redhat.com>
5274 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
5275 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
5277 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
5278 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
5279 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
5280 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
5281 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
5282 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
5283 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
5285 2005-06-13 Diego Novillo <dnovillo@redhat.com>
5287 * TOPLEVEL.patch: Remove.
5289 2005-05-16 Richard Henderson <rth@redhat.com>
5291 * configure.ac: Test for clock_gettime.
5292 * config.h.in, configure: Rebuild.
5293 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
5294 (omp_get_wtime): Use clock_gettime if available.
5295 (omp_get_wtick): Use clock_getres if available.
5297 2005-05-11 Richard Henderson <rth@redhat.com>
5299 * config/linux/ia64/futex.h: New file.
5300 * configure.tgt: Use it.
5302 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
5304 2005-05-07 Richard Henderson <rth@redhat.com>
5306 * config/linux/powerpc/futex.h: New file.
5307 * configure.tgt: Use it.
5309 * config/linux/i486/futex.h: Merge ...
5310 * config/linux/x86_64/futex.h: ... into ...
5311 * config/linux/x86/futex.h: ... here.
5312 * configure.tgt: Update to match.
5314 2005-05-06 Richard Henderson <rth@redhat.com>
5316 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
5317 * config/linux/i486/futex.h: Likewise.
5318 * config/linux/x86_64/futex.h: Likewise.
5320 * config/linux/lock.c: New file.
5321 * config/linux/omp-lock.h: New file.
5323 * critical.c, env.h: Don't include omp.h
5324 * config/posix/lock.c: Include libgomp.h instead of omp.h.
5325 * config/posix/time.c: Likewise.
5326 * config/posix/omp-lock.h: New file.
5327 * libgomp.h: Include omp-lock.h and omp.h.
5328 * Makefile.am (nodist_include_HEADERS): New.
5330 * configure.ac (PERL): New.
5331 * mkomp_h.pl: New file.
5332 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
5334 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
5336 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
5337 build directory. Re-add -march=i486 hack.
5339 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
5340 (libgomp_link_flags): Remove.
5341 (libgomp_initialized): Remove.
5342 (libgomp_init): Don't protect from reinitialization. Copy code
5343 from libstdc++ for getting the multilib set correctly.
5345 2005-05-05 Richard Henderson <rth@redhat.com>
5347 * config/linux/alpha/futex.h: New file.
5348 * configure.tgt (alpha*-*-linux*): Use it.
5350 * config/posix/mutex.c: New file.
5351 * config/posix/sem.c: Use libgomp.h.
5353 * configure.tgt (x86_64-linux): Also test CC for -m32.
5354 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
5356 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
5359 * Makefile.am (SUBDIRS): New.
5360 (libgomp_la_LDFLAGS): Add -lpthread.
5361 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
5362 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
5364 * libgomp_g.h: New file.
5365 * libgomp.h: Split out all public declarations to libgomp_g.h.
5366 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
5367 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
5368 * config/linux/sem.h: Likewise.
5369 * config/posix/sem.h: Likewise.
5371 * Makefile.am (AM_LDFLAGS): New.
5372 (libgomp_version_script): Split out from ...
5373 (libgomp_la_LDFLAGS): ... here.
5374 (libgomp_version_info): New.
5375 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
5376 (LIBGOMP_ENABLE): New.
5377 (LIBGOMP_CHECK_LINKER_FEATURES): New.
5378 (LIBGOMP_ENABLE_SYMVERS): New.
5379 * configure.ac (AC_INIT): Version 1.0.
5380 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
5381 (enable-linux-futex): Likewise. Rename from enable-futex.
5382 (libtool_VERSION): New.
5383 (LIBGOMP_ENABLE_SYMVERS): Use it.
5384 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
5385 * Makefile.in, aclocal.m4, configure: Rebuild.
5387 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
5388 (gomp_mutex_unlock_slow): Fix typo.
5389 * config/linux/sem.c: Similarly.
5390 (gomp_sem_post_slow): Fix typo.
5391 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
5392 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
5393 [__PIC__] (sys_futex0): Don't use tmp output in asm.
5395 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
5396 (libgomp_la_LDFLAGS): Add top_srcdir to path.
5397 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
5398 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
5399 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
5400 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
5401 LDFLAGS. Pull enable_futex check to top-level.
5402 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
5403 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
5405 First attempt at real configury.
5406 * Makefile, config.h: Remove file.
5407 * Makefile.am, Makefile.in: New file.
5408 * acinclude.m4 aclocal.m4: New file.
5409 * configure.ac, configure.tgt, configure: New file.
5411 * config/posix/lock.c: Rename from sys-lock.c.
5412 * config/posix/mutex.h: Rename from sys-mutex.h.
5413 * config/posix/sem.c: Rename from sys-sem.c.
5414 * config/posix/sem.h: Rename from sys-sem.h.
5415 * config/posix/proc.c: Rename from sys-proc.c.
5416 * config/posix/time.c: Rename from sys-proc.c.
5418 * config/linux/mutex.c: New file.
5419 * config/linux/mutex.h: New file.
5420 * config/linux/sem.c: New file.
5421 * config/linux/sem.h: New file.
5422 * config/linux/i486/futex.h: New file.
5423 * config/linux/x86_64/futex.h: New file.
5425 2005-05-04 Richard Henderson <rth@redhat.com>
5427 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
5428 * libgomp.h: Declare them.
5429 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
5430 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
5432 2005-05-04 Richard Henderson <rth@redhat.com>
5434 * libgomp-1 code drop
5436 2005-05-04 Richard Henderson <rth@redhat.com>
5438 * iter.c (gomp_iter_static_next): Return tri-state on 0.
5439 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
5440 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
5441 (gomp_iter_static_next): Update.
5442 (gomp_ordered_static_next): Update.
5443 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
5444 (gomp_loop_ordered_static_start): Likewise. Exit early for a
5445 totally empty range.
5446 (gomp_loop_ordered_static_next): Refine test for calling
5447 gomp_ordered_static_next.
5448 * testsuite/ordered-1.c: Add case for more threads than iterations.
5450 * iter.c (gomp_iter_runtime_next_locked): Remove.
5451 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
5452 gomp_loop_guided_start, gomp_loop_ordered_static_start,
5453 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
5454 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
5455 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
5456 gomp_loop_ordered_guided_next): Downcase name, make static, add
5457 an external alias with the old name.
5458 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
5459 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
5460 switch and call one of the above static functions.
5461 * libgomp.h: Update.
5463 * work.c (gomp_work_share_start): Lock the mutex for !first too.
5464 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
5465 GOMP_loop_guided_start, GOMP_loop_runtime_start,
5466 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
5467 GOMP_loop_ordered_guided_start): Update to match.
5468 * sections.c (GOMP_sections_start): Likewise.
5469 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
5471 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
5472 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
5473 Use bounds check instead of modulus.
5474 (gomp_ordered_sync): Split out of GOMP_ordered_start.
5475 (gomp_ordered_last): Don't sync with ordered_owner here.
5476 (gomp_ordered_next): Likewise.
5477 (gomp_ordered_static_loop_next): Likewise.
5478 * loop.c, libgomp.h: Update to match.
5480 * libgomp.h (GOMP_barrier): Declare.
5482 * testsuite/barrier-1.c: New file.
5483 * testsuite/critical-1.c: New file.
5484 * testsuite/ordered-2.c: New file.
5485 * testsuite/ordered-1.c: New file.
5486 * testsuite/sections-1.c: New file.
5487 * testsuite/single-1.c: New file.
5488 * testsuite/Makefile (TESTS): Add them.
5490 2005-05-04 Richard Henderson <rth@redhat.com>
5492 * libgomp.h (struct gomp_work_share): Add ordered_owner.
5493 * loop.c (GOMP_loop_static_start): If not the startup thread,
5494 acquire the mutex to wait for initialization complete.
5495 (GOMP_loop_ordered_static_start): Likewise.
5496 (GOMP_loop_ordered_runtime_start): Likewise.
5497 (GOMP_loop_ordered_static_first): Remove.
5498 (GOMP_loop_ordered_dynamic_first): Remove.
5499 (GOMP_loop_ordered_guided_first): Remove.
5500 (GOMP_loop_ordered_runtime_first): Remove.
5501 * ordered.c (gomp_ordered_loop_first): Post to own release when
5502 we're the first thread.
5503 (gomp_ordered_loop_last): Wait on release if not owner.
5504 (gomp_ordered_loop_next): Likewise.
5505 (gomp_ordered_static_loop_init): New.
5506 (gomp_ordered_static_loop_next): Use ordered_owner.
5507 (GOMP_ordered_start): Likewise.
5508 * work.c (gomp_new_work_share): Initialize ordered_owner.
5510 2005-05-03 Richard Henderson <rth@redhat.com>
5512 * Makefile (OPT): New.
5515 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
5516 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
5517 * libgomp.h, libgomp.map, NOTES: Update to match.
5519 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
5520 Add initialized and thr members.
5521 (gomp_thread_start): Pause when initially spawned to wait for
5522 the whole team to be created.
5523 (gomp_team_start): Release team members at the end.
5525 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
5526 (f_foo_1): Use GOMP_loop_end.
5527 (f_foo_2): Use GOMP_loop_end_nowait.
5529 * testsuite/loop-2.c: New file.
5530 * testsuite/Makefile (TESTS): Add it.
5532 2005-05-03 Richard Henderson <rth@redhat.com>
5534 * iter.c (gomp_iter_static_next): Fix overflow check typo.
5535 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
5536 * team.c (new_team): Initialize oldest_live_gen to 1 if no
5539 * testsuite/Makefile: New file.
5540 * testsuite/loop-1.c: New file.
5542 2005-05-03 Richard Henderson <rth@redhat.com>
5544 Initial implementation and checkin.