gcc/
[official-gcc.git] / libgomp / ChangeLog
bloba01f9b2816c4117d4e04fd15ba3e98c7a62e71fc
1 2015-06-23  Andreas Tobler  <andreast@gcc.gnu.org>
3         * configure.ac: Fix check for header <sys/sysctl.h>.
4         * configure: Regenerate.
5         * config.h.in: Likewise.
7 2015-06-23  Tom de Vries  <tom@codesourcery.com>
9         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
10         abort.
11         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
13 2015-06-19  Thomas Schwinge  <thomas@codesourcery.com>
15         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
16         acc_device_nvidia.
18         PR libgomp/66518
19         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
20         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
22 2015-06-15  Tom de Vries  <tom@codesourcery.com>
24         * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
25         dg-additional-options for any remaining options.
26         * testsuite/libgomp.c/atomic-2.c: Same.
27         * testsuite/libgomp.c/atomic-4.c: Same.
28         * testsuite/libgomp.c/atomic-5.c: Same.
29         * testsuite/libgomp.c/atomic-6.c: Same.
30         * testsuite/libgomp.c/autopar-1.c: Same.
31         * testsuite/libgomp.c/copyin-1.c: Same.
32         * testsuite/libgomp.c/copyin-2.c: Same.
33         * testsuite/libgomp.c/copyin-3.c: Same.
34         * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
35         * testsuite/libgomp.c/nestedfn-5.c: Same.
36         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
37         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
38         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
39         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
40         * testsuite/libgomp.c/pr32362-1.c: Same.
41         * testsuite/libgomp.c/pr32362-2.c: Same.
42         * testsuite/libgomp.c/pr32362-3.c: Same.
43         * testsuite/libgomp.c/pr39591-1.c: Same.
44         * testsuite/libgomp.c/pr39591-2.c: Same.
45         * testsuite/libgomp.c/pr39591-3.c: Same.
46         * testsuite/libgomp.c/pr58392.c: Same.
47         * testsuite/libgomp.c/pr58756.c: Same.
48         * testsuite/libgomp.c/simd-1.c: Same.
49         * testsuite/libgomp.c/simd-10.c: Same.
50         * testsuite/libgomp.c/simd-11.c: Same.
51         * testsuite/libgomp.c/simd-12.c: Same.
52         * testsuite/libgomp.c/simd-13.c: Same.
53         * testsuite/libgomp.c/simd-14.c: Same.
54         * testsuite/libgomp.c/simd-15.c: Same.
55         * testsuite/libgomp.c/simd-2.c: Same.
56         * testsuite/libgomp.c/simd-3.c: Same.
57         * testsuite/libgomp.c/simd-4.c: Same.
58         * testsuite/libgomp.c/simd-5.c: Same.
59         * testsuite/libgomp.c/simd-6.c: Same.
60         * testsuite/libgomp.c/simd-7.c: Same.
61         * testsuite/libgomp.c/simd-8.c: Same.
62         * testsuite/libgomp.c/simd-9.c: Same.
64 2015-06-15  Tom de Vries  <tom@codesourcery.com>
66         * testsuite/libgomp.c/pr35625.c: Fix typo.
68 2015-06-15  Tom de Vries  <tom@codesourcery.com>
70         * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
71         in dg-options.
72         * testsuite/libgomp.c/atomic-3.c: Same.
73         * testsuite/libgomp.c/debug-1.c: Same.
74         * testsuite/libgomp.c/nqueens-1.c: Same.
75         * testsuite/libgomp.c/pr26171.c: Same.
76         * testsuite/libgomp.c/pr48591.c: Same.
77         * testsuite/libgomp.c/pr64824.c: Same.
78         * testsuite/libgomp.c/pr64868.c: Same.
79         * testsuite/libgomp.c/pr66133.c: Same.
80         * testsuite/libgomp.c/pr66199-1.c: Same.
81         * testsuite/libgomp.c/pr66199-2.c: Same.
82         * testsuite/libgomp.c/target-8.c: Same.
84 2015-06-15  Tom de Vries  <tom@codesourcery.com>
86         * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
87         -std={gnu99,c99}.
88         * testsuite/libgomp.c/for-1.c: Same.
89         * testsuite/libgomp.c/for-2.c: Same.
90         * testsuite/libgomp.c/for-3.c: Same.
91         * testsuite/libgomp.c/pr35625.c: Same.
92         * testsuite/libgomp.c/pr39154.c: Same.
93         * testsuite/libgomp.c/simd-16.c: Same.
94         * testsuite/libgomp.c/simd-17.c: Same.
96 2015-06-13  Tom de Vries  <tom@codesourcery.com>
98         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
100 2015-06-13  Tom de Vries  <tom@codesourcery.com>
102         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
103         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
104         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
105         (N): Define.
106         (main): Use N instead of hardcoded constants.
108 2015-06-05  Tom de Vries  <tom@codesourcery.com>
110         merge from gomp4 branch:
111         2015-05-28  Tom de Vries  <tom@codesourcery.com>
113         PR tree-optimization/65443
114         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
115         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
116         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
118 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
120         * testsuite/libgomp.graphite/bounds.c: Adjust for
121         cleanup-tree-dump removal.
122         * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
123         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
124         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
125         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
126         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
127         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
128         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
129         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
130         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
131         * testsuite/libgomp.graphite/pr41118.c: Likewise.
133 2015-05-28  Uros Bizjak  <ubizjak@gmail.com>
135         * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
136         (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
137         (futex_wake) [!__x86_64__]: Ditto.
139 2015-05-28  Julian Brown  <julian@codesourcery.com>
141         * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
142         function comment. Only call gomp_fatal if new argument is true.
143         (acc_dev_num_out_of_range): New function.
144         (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
145         acc_dev_num_out_of_range as appropriate.
146         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
147         (acc_get_device_num, acc_set_device_num): Update calls to
148         resolve_device.
149         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
150         output.
152 2015-05-28  Julian Brown  <julian@codesourcery.com>
154         PR libgomp/65742
155         * oacc-init.c (plugin/plugin-host.h): Include.
156         (acc_on_device): Check whether we're in an offloaded region for
157         host_nonshm
158         plugin. Don't use __builtin_acc_on_device.
159         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
160         nonshm_exec flag in thread-local data.
161         (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
162         data for host_nonshm plugin.
163         (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
164         for host_nonshm plugin.
165         * plugin/plugin-host.h: New.
167 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
169         * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
171 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
173         * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
174         Declare as int.
175         (FUTEX_PRIVATE_FLAG): Remove L suffix.
176         * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
177         Declare as int.
179 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
181         * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
183 2015-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
185         * target.c (gomp_map_pointer): New function abstracting out
186         GOMP_MAP_POINTER handling.
187         (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
188         gomp_map_pointer().
190 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
192         PR middle-end/66199
193         * testsuite/libgomp.c/pr66199-1.c: New test.
194         * testsuite/libgomp.c/pr66199-2.c: New test.
195         * testsuite/libgomp.c++/pr66199-1.C: New test.
196         * testsuite/libgomp.c++/pr66199-2.C: New test.
197         * testsuite/libgomp.fortran/pr66199-1.f90: New test.
198         * testsuite/libgomp.fortran/pr66199-2.f90: New test.
200 2015-05-19  Julian Brown  <julian@codesourcery.com>
202         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
203         on cuInit failure.
205 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
207         PR middle-end/66133
208         * testsuite/libgomp.c/pr66133.c: New test.
210 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
212         * Makefile.in: Regenerated with automake-1.11.6.
213         * aclocal.m4: Likewise.
214         * config.h.in: Likewise.
215         * configure: Likewise.
216         * testsuite/Makefile.in: Likewise.
218 2015-05-08  Jason Merrill  <jason@redhat.com>
220         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
221         _Complex.
223         * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
225 2015-05-06  Julian Brown  <julian@codesourcery.com>
227         * oacc-init.c (acc_device_lock): Add explanatory comment.
228         (resolve_device): Add comment about locking requirement.
229         (acc_init_1, acc_shutdown_1): Likewise. Add locking around
230         gomp_init_device and gomp_fini_device calls.
231         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
232         (acc_get_device_num, acc_set_device_num): Add locking around
233         resolve_device and gomp_init_device calls.
235 2015-05-06  Julian Brown  <julian@codesourcery.com>
237         * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
238         goacc_thread_lock on error paths.
239         * oacc-mem.c (lookup_host): Remove locking from function. Note
240         locking requirement for caller in function comment.
241         (lookup_dev): Likewise.
242         (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
243         (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
244         (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
245         Add locking.
247 2015-05-05  Thomas Schwinge  <thomas@codesourcery.com>
249         PR testsuite/65205
250         PR libgomp/65993
251         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
252         don't expect "0x" prefix for "%p" format specifier, don't expect
253         "(nil)" for NULL pointer.
254         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
255         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
256         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
257         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
258         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
259         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
260         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
261         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
262         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
263         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
264         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
265         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
266         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
267         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
268         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
269         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
270         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
271         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
272         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
273         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
274         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
275         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
276         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
277         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
278         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
279         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
280         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
281         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
282         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
283         accurately specify what we're looking for.
284         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
285         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
286         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
287         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
288         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
290 2015-04-30  James Norris  <jnorris@codesourcery.com>
292         PR testsuite/65205
293         * testsuite/lib/libgomp.exp
294         (check_effective_target_openacc_host_selected)
295         (check_effective_target_openacc_host_nonshm_selected): New
296         procedures.
297         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
298         dg-shouldfail.
299         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
300         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
301         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
302         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
303         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
304         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
305         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
306         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
307         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
308         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
309         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
310         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
311         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
312         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
313         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
314         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
315         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
316         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
317         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
318         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
319         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
320         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
321         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
322         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
323         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
324         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
325         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
326         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
327         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
328         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
329         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
330         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
331         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
332         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
333         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
334         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
335         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
336         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
337         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
338         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
339         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
340         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
341         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
343 2015-04-08  Julian Brown  <julian@codesourcery.com>
345         * libgomp.h (target_mem_desc: Remove mem_map field.
346         (acc_dispatch_t): Remove open_device_func, close_device_func,
347         get_device_num_func, set_device_num_func, target_data members.
348         Change create_thread_data_func argument to device number instead of
349         generic pointer.
350         * oacc-async.c (assert.h): Include.
351         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
352         (acc_wait_all, acc_wait_all_async): Use current host thread's
353         active device, not base_dev.
354         * oacc-cuda.c (acc_get_current_cuda_device)
355         (acc_get_current_cuda_context, acc_get_cuda_stream)
356         (acc_set_cuda_stream): Likewise.
357         * oacc-host.c (host_dispatch): Don't set open_device_func,
358         close_device_func, get_device_num_func or set_device_num_func.
359         * oacc-init.c (base_dev, init_key): Remove.
360         (cached_base_dev): New.
361         (name_of_acc_device_t): New.
362         (acc_init_1): Initialise default-numbered device, not zeroth.
363         (acc_shutdown_1): Close all devices of a given type.
364         (goacc_destroy_thread): Don't use base_dev.
365         (lazy_open, lazy_init, lazy_init_and_open): Remove.
366         (goacc_attach_host_thread_to_device): New.
367         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
368         (acc_get_num_devices): Don't use base_dev.
369         (acc_set_device_type): Reimplement.
370         (acc_get_device_type): Don't use base_dev.
371         (acc_get_device_num): Tweak logic.
372         (acc_set_device_num): Likewise.
373         (acc_on_device): Use acc_get_device_type.
374         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
375         (goacc_lazy_initialize): Reimplement with acc_init and
376         goacc_attach_host_thread_to_device.
377         * oacc-int.h (goacc_thread): Add base_dev field.
378         (base_dev): Remove extern declaration.
379         (goacc_attach_host_thread_to_device): Add prototype.
380         * oacc-mem.c (acc_malloc): Use current thread's device instead of
381         base_dev.
382         (acc_free): Likewise.
383         (acc_memcpy_to_device): Likewise.
384         (acc_memcpy_from_device): Likewise.
385         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
386         goacc_lazy_initialize (throughout).
387         (GOACC_parallel): Use tgt_offset to locate target functions.
388         * target.c (gomp_map_vars): Don't set tgt->mem_map.
389         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
390         (gomp_load_plugin_for_device): Remove open_device, close_device,
391         get_device_num, set_device_num openacc hook initialisation. Don't set
392         openacc.target_data.
393         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
394         (GOMP_OFFLOAD_openacc_close_device)
395         (GOMP_OFFLOAD_openacc_get_device_num)
396         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
397         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
398         to int.
399         * plugin/plugin-nvptx.c (ptx_inited): Remove.
400         (instantiated_devices, ptx_dev_lock): New.
401         (struct ptx_image_data): New.
402         (ptx_devices, ptx_images, ptx_image_lock): New.
403         (fini_streams_for_device): Reorder cuStreamDestroy call.
404         (nvptx_get_num_devices): Remove forward declaration.
405         (nvptx_init): Change return type to bool.
406         (nvptx_fini): Remove.
407         (nvptx_attach_host_thread_to_device): New.
408         (nvptx_open_device): Return struct ptx_device* instead of void*.
409         (nvptx_close_device): Change argument type to struct ptx_device*,
410         return type to void.
411         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
412         (kernel_target_data, kernel_host_table): Remove static globals.
413         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
414         (GOMP_OFFLOAD_init_device): Reimplement.
415         (GOMP_OFFLOAD_fini_device): Likewise.
416         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
417         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
418         (GOMP_OFFLOAD_host2dev): Use ORD argument.
419         (GOMP_OFFLOAD_openacc_open_device)
420         (GOMP_OFFLOAD_openacc_close_device)
421         (GOMP_OFFLOAD_openacc_set_device_num)
422         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
423         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
424         (device number).
426         testsuite/
427         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
429 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
431         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
432         * libgomp.h (struct gomp_memory_mapping): Remove.
433         (struct target_mem_desc): Change type of mem_map from
434         gomp_memory_mapping * to splay_tree_s *.
435         (struct gomp_device_descr): Remove register_image_func, get_table_func.
436         Add load_image_func, unload_image_func.
437         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
438         Remove offload_regions_registered.
439         (gomp_init_tables): Remove.
440         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
441         to splay_tree_s *.
442         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
443         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
444         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
445         offload_regions_registered.
446         Initialize load_image_func, unload_image_func, mem_map.root.
447         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
448         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
449         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
450         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
451         gomp_memory_mapping *.  Use dev's lock and splay_tree.
452         (lookup_dev): Use dev's lock.
453         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
454         (acc_is_present): Likewise.
455         (acc_map_data): Likewise.
456         (acc_unmap_data): Likewise.  Use dev's lock.
457         (present_create_copy): Likewise.
458         (delete_copyout): Pass dev to lookup_host instead of mem_map.
459         (update_dev_host): Likewise.
460         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
461         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
462         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
463         (GOMP_OFFLOAD_get_table): Remove
464         (GOMP_OFFLOAD_load_image): New function.
465         (GOMP_OFFLOAD_unload_image): New function.
466         * target.c (register_lock): New mutex for offload image registration.
467         (num_devices): Do not guard with PLUGIN_SUPPORT.
468         (gomp_realloc_unlock): New static function.
469         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
470         before gomp_fatal.
471         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
472         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
473         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
474         mem_map's.
475         (gomp_unmap_vars): Likewise.
476         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
477         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
478         (gomp_offload_image_to_device): New static function.
479         (GOMP_offload_register): Add mutex lock.
480         Call gomp_offload_image_to_device for all initialized devices.
481         Replace gomp_realloc with gomp_realloc_unlock.
482         (GOMP_offload_unregister): New function.
483         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
484         get_table_func from the plugin with calls to init_device_func and
485         gomp_offload_image_to_device.
486         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
487         to splay_tree_s *.
488         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
489         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
490         (GOMP_target_data): Do not call gomp_init_tables.
491         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
492         (gomp_load_plugin_for_device): Replace register_image and get_table
493         with load_image and unload_image in DLSYM ().
494         (gomp_register_images_for_device): Remove function.
495         (gomp_target_init): Do not initialize current_device.mem_map.*,
496         current_device.offload_regions_registered.
497         Remove call to gomp_register_images_for_device.
498         Do not free offload_images and num_offload_images.
500 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
502         PR fortran/65597
503         * testsuite/libgomp.fortran/pr65597.f90: New test.
505 2015-03-27  Tom de Vries  <tom@codesourcery.com>
507         PR testsuite/65594
508         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
509         (init, check): New function.
510         (foo): Change return type to void.
511         (main): Call init and check.
513 2015-03-27  Tom de Vries  <tom@codesourcery.com>
515         PR testsuite/65594
516         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
517         (foo): Use M for non-inner loops to scale down test-case.
519 2015-03-25  Kai Tietz  <ktietz@redhat.com>
521         PR libgomp/64972
522         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
523         (GOACC_data_start): Likewise.
524         * target.c (gomp_map_vars): Likewise.
526 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
528         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
529         hppa*-*-hpux*.
531 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
533         * testsuite/libgomp.c/target-10.c: New test.
534         * testsuite/libgomp.c++/target-4.C: New test.
536 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
538         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
539         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
541 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
543         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
544         * configure.ac (*-*-rtems*): Assume Pthread is supported.
545         (pthread.h): Check for this header file.
546         * configure: Regenerate.
548 2015-02-25  Tom de Vries  <tom@codesourcery.com>
550         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
551         (check_reduction_op, check_reduction_macro, max, min):
552         Declare.
553         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
554         function.
555         (main): Use new functions.
557 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
559         * target.c (gomp_load_plugin_for_device): Use const char * instead of
560         char * for variables holding dlerror return values.
561         (DLSYM_OPT): Ditto.
563 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
565         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
567 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
568             Cesar Philippidis  <cesar@codesourcery.com>
570         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
571         GOACC_ctaid, and GOACC_nctaid routines.
573 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
575         PR c/64824
576         * testsuite/libgomp.c/atomic-18.c: New test.
577         * testsuite/libgomp.c++/atomic-16.C: New test.
579 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
581         PR c/64824
582         PR c/64868
583         * testsuite/libgomp.c/pr64824.c: New test.
584         * testsuite/libgomp.c/pr64868.c: New test.
585         * testsuite/libgomp.c++/pr64824.C: New test.
586         * testsuite/libgomp.c++/pr64868.C: New test.
588 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
590         PR libgomp/64635
591         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
592         Link with -lpthread.
593         * config/aix/plugin-suffix.h: Delete.
595 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
597         PR libgomp/64635
598         * configure.tgt (*-*-aix*): Use config_path "aix posix".
599         (*-*-darwin*): Use config_path "bsd darwin posix".
600         (*-*-hpux*): Use config_path "hpux posix".
601         * target.c: Add include of plugin-suffix.h and use
602         SONAME_SUFFIX macro.
603         * config/aix/plugin-suffix.h: New file.
604         * config/darwin/plugin-suffix.h: New file.
605         * config/hpux/plugin-suffix.h: New file.
606         * config/posix/plugin-suffix.h: New file.
608 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
610         PR middle-end/64734
611         * libgomp.c/pr64734.c: New test.
613 2015-01-23  Tom de Vries  <tom@codesourcery.com>
615         PR libgomp/64672
616         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
618 2015-01-23  Tom de Vries  <tom@codesourcery.com>
620         PR libgomp/64707
621         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
622         dg-options.
624 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
626         PR libgomp/64625
627         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
628         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
629         formal parameter.  Update all users.
630         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
631         Document unused formal parameter.
633 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
635         * oacc-parallel.c: Don't include <alloca.h>.
636         (GOACC_parallel): Use gomp_alloca instead of alloca.
638 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
640         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
642 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
643             James Norris  <jnorris@codesourcery.com>
644             Tom de Vries  <tom@codesourcery.com>
645             Julian Brown  <julian@codesourcery.com>
646             Cesar Philippidis  <cesar@codesourcery.com>
647             Nathan Sidwell  <nathan@codesourcery.com>
648             Tobias Burnus  <burnus@net-b.de>
650         * Makefile.am (search_path): Add $(top_srcdir)/../include.
651         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
652         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
653         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
654         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
655         Include $(top_srcdir)/plugin/Makefrag.am.
656         (nodist_libsubinclude_HEADERS): Add openacc.h.
657         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
658         openacc.f90, openacc.mod, openacc_kinds.mod.
659         (omp_lib.mod): Generalize into...
660         (%.mod): ... this new rule.
661         (openacc_kinds.mod, openacc.mod): New rules.
662         * plugin/configfrag.ac: New file.
663         * configure.ac: Move plugin/offloading support into it.  Include
664         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
665         * plugin/Makefrag.am: New file.
666         * testsuite/Makefile.am (OFFLOAD_TARGETS)
667         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
668         export.
669         (libgomp-test-support.exp): New rule.
670         (all-local): Depend on it.
671         * Makefile.in: Regenerate.
672         * testsuite/Makefile.in: Regenerate.
673         * config.h.in: Likewise.
674         * configure: Likewise.
675         * configure.tgt: Harden shell syntax.
676         * env.c: Include "oacc-int.h".
677         (parse_acc_device_type): New function.
678         (gomp_debug_var, goacc_device_type, goacc_device_num): New
679         variables.
680         (initialize_env): Initialize those.  Call
681         goacc_runtime_initialize.
682         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
683         (gomp_fatal): Call gomp_vfatal.
684         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
685         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
686         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
687         (splay_tree_node, splay_tree, splay_tree_key)
688         (struct target_mem_desc, struct splay_tree_key_s)
689         (struct gomp_memory_mapping, struct acc_dispatch_t)
690         (struct gomp_device_descr, gomp_acc_insert_pointer)
691         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
692         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
693         (gomp_free_memmap, gomp_fini_device): New declarations.
694         (gomp_vdebug, gomp_debug): New macros.
695         Include "splay-tree.h".
696         * libgomp.map (OACC_2.0): New symbol version.  Use for
697         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
698         acc_set_device_type_h_, acc_get_device_type,
699         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
700         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
701         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
702         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
703         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
704         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
705         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
706         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
707         acc_copyin_array_h_, acc_present_or_copyin,
708         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
709         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
710         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
711         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
712         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
713         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
714         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
715         acc_update_device, acc_update_device_32_h_,
716         acc_update_device_64_h_, acc_update_device_array_h_,
717         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
718         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
719         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
720         acc_is_present_64_h_, acc_is_present_array_h_,
721         acc_memcpy_to_device, acc_memcpy_from_device,
722         acc_get_current_cuda_device, acc_get_current_cuda_context,
723         acc_get_cuda_stream, acc_set_cuda_stream.
724         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
725         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
726         GOACC_update, GOACC_wait, GOACC_get_thread_num,
727         GOACC_get_num_threads.
728         (GOMP_PLUGIN_1.0): New symbol version.  Use for
729         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
730         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
731         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
732         GOMP_PLUGIN_acc_thread.
733         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
734         environment variable.
735         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
736         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
737         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
738         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
739         (splay_tree_remove): New declarations.
740         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
741         (splay_tree_remove, splay_tree_lookup): Move into...
742         * splay-tree.c: ... this new file.
743         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
744         (splay_tree_node, splay_tree, splay_tree_key)
745         (struct target_mem_desc, struct splay_tree_key_s)
746         (struct gomp_device_descr): Don't declare.
747         (num_devices_openmp): New variable.
748         (gomp_get_num_devices ): Use it.
749         (gomp_init_targets_once): New function.
750         (gomp_get_num_devices ): Use it.
751         (get_kind, gomp_copy_from_async, gomp_free_memmap)
752         (gomp_fini_device, gomp_register_image_for_device): New functions.
753         (gomp_map_vars): Add devaddrs parameter.
754         (gomp_update): Add mm parameter.
755         (gomp_init_device): Move most of it into...
756         (gomp_init_tables): ... this new function.
757         (gomp_register_images_for_device): Remove function.
758         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
759         Make them hidden instead of static.
760         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
761         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
762         (GOMP_target_end_data, GOMP_target_update)
763         (gomp_load_plugin_for_device, gomp_target_init): Update for
764         OpenACC changes.
765         * oacc-async.c: New file.
766         * oacc-cuda.c: Likewise.
767         * oacc-host.c: Likewise.
768         * oacc-init.c: Likewise.
769         * oacc-int.h: Likewise.
770         * oacc-mem.c: Likewise.
771         * oacc-parallel.c: Likewise.
772         * oacc-plugin.c: Likewise.
773         * oacc-plugin.h: Likewise.
774         * oacc-ptx.h: Likewise.
775         * openacc.f90: Likewise.
776         * openacc.h: Likewise.
777         * openacc_lib.h: Likewise.
778         * plugin/plugin-host.c: Likewise.
779         * plugin/plugin-nvptx.c: Likewise.
780         * libgomp-plugin.c: Likewise.
781         * libgomp-plugin.h: Likewise.
782         * libgomp_target.h: Remove file after merging content into the
783         former file.  Update all users.
784         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
785         (offload_targets_s, offload_targets_s_openacc): New variables.
786         (check_effective_target_openacc_nvidia_accel_present)
787         (check_effective_target_openacc_nvidia_accel_selected): New
788         procedures.
789         (libgomp_init): Update for OpenACC changes.
790         * testsuite/libgomp-test-support.exp.in: New file.
791         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
792         * testsuite/libgomp.oacc-c/c.exp: Likewise.
793         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
794         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
795         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
796         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
797         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
798         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
799         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
800         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
801         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
802         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
803         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
804         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
805         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
806         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
807         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
808         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
809         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
810         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
811         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
812         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
813         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
814         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
815         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
816         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
817         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
818         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
819         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
820         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
821         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
822         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
823         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
824         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
825         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
826         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
827         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
828         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
829         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
830         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
831         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
832         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
833         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
834         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
835         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
836         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
837         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
838         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
839         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
840         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
841         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
842         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
843         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
844         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
845         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
846         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
847         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
848         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
849         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
850         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
851         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
852         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
853         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
854         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
855         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
856         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
857         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
858         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
859         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
860         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
861         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
862         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
863         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
864         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
865         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
866         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
867         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
868         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
869         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
870         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
871         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
872         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
873         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
874         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
875         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
876         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
877         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
878         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
879         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
880         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
881         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
882         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
883         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
884         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
885         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
886         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
887         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
888         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
889         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
890         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
891         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
892         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
893         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
894         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
895         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
896         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
897         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
898         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
899         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
900         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
901         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
902         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
903         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
904         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
905         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
906         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
907         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
908         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
909         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
910         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
911         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
912         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
913         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
914         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
915         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
916         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
917         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
918         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
919         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
920         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
921         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
922         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
923         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
924         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
925         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
926         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
927         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
928         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
929         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
930         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
931         Likewise.
932         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
933         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
934         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
935         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
936         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
937         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
938         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
939         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
940         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
941         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
942         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
943         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
944         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
945         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
946         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
947         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
948         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
949         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
950         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
951         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
952         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
953         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
954         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
955         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
956         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
957         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
958         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
959         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
960         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
961         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
962         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
963         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
964         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
965         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
966         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
967         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
968         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
969         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
970         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
971         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
972         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
973         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
974         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
975         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
976         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
977         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
978         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
979         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
980         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
981         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
982         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
983         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
984         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
985         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
986         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
987         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
988         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
989         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
990         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
991         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
993 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
994             Julian Brown  <julian@codesourcery.com>
995             David Malcolm  <dmalcolm@redhat.com>
997         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
998         to "GNU Offloading and Multi Processing Runtime Library".  Change
999         all users.
1000         * configure: Regenerate.
1001         * libgomp.texi: Update.
1003 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
1005         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
1006         "$tgt_dir/lib32".
1007         * configure: Regenerate.
1009         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
1010         "intelmic" in $offload_targets.
1012 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
1014         Update copyright years.
1016         * libgomp.texi: Bump @copying's copyright year.
1018 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1020         * testsuite/lib/libgomp.exp: Load target-utils.exp.
1021         Move load of target-supportes.exp earlier.
1023 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
1025         * testsuite/libgomp.c/target-9.c: New test.
1027 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
1029         * config.h.in: Regenerate.
1030         * configure: Regenerate.
1031         * configure.ac: Add GCC_CHECK_EMUTLS.
1032         * libgomp.h: Add check for USE_EMUTLS: this case
1033         is equal to HAVE_TLS.
1034         * team.c: Likewise.
1036 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
1038         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
1040 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
1041             Ilya Verbin  <ilya.verbin@intel.com>
1043         * testsuite/libgomp.c/target-critical-1.c: New test.
1045 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
1047         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
1048         to dg-options unless expensive testing is on.
1049         (TESTITERS): Define to N if not defined.
1050         (main): Use TESTITERS instead of N.
1051         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
1052         dg-additional-options depending on whether expensive testing is on.
1053         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
1054         Decrease N to 100000 and CHUNKSZ to 10000.
1056 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
1058         PR fortran/63938
1059         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
1060         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
1062 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
1064         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
1066 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
1068         PR bootstrap/63784
1069         * configure: Regenerated.
1071 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
1073         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
1074         vect_simd_clones effective target.
1075         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
1077 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
1079         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
1080         of 32 as block_size.
1081         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
1082         instead of 32 as block_size.
1084 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
1085             Ilya Verbin  <ilya.verbin@intel.com>
1087         * Makefile.in: Regenerate.
1088         * configure: Regenerate.
1089         * configure.ac: Set up offload_additional_options,
1090         offload_additional_lib_paths and offload_targets.
1091         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
1092         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
1093         * testsuite/Makefile.in: Regenerate.
1094         * testsuite/lib/libgomp.exp (libgomp_init): Append
1095         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
1096         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
1097         build directory to LD_LIBRARY_PATH for intelmic offload targets.
1099 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
1100             Ilya Verbin  <ilya.verbin@intel.com>
1101             Kirill Yukhin  <kirill.yukhin@intel.com>
1102             Ilya Tocar  <ilya.tocar@intel.com>
1104         * testsuite/lib/libgomp.exp
1105         (check_effective_target_offload_device): New.
1106         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
1107         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
1108         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
1109         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
1110         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
1111         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
1112         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
1113         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
1114         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
1115         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
1116         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
1117         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
1118         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
1119         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
1120         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
1121         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
1122         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
1123         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
1124         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
1125         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
1126         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
1127         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
1128         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
1129         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
1130         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
1131         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
1132         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
1133         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
1134         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
1135         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
1136         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
1137         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
1138         * testsuite/libgomp.c/target-7.c: Fix test.
1139         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
1140         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
1141         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
1142         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
1143         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
1144         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
1145         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
1146         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
1147         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
1148         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
1149         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
1150         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
1151         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
1152         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
1153         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
1154         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
1155         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
1156         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
1157         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
1158         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
1159         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
1160         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
1161         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
1162         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
1163         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
1164         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
1165         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
1166         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
1167         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
1168         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
1169         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
1171 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
1172             Ilya Verbin  <ilya.verbin@intel.com>
1173             Thomas Schwinge  <thomas@codesourcery.com>
1174             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1176         * libgomp.map (GOMP_4.0.1): New symbol version.
1177         Add GOMP_offload_register.
1178         * libgomp_target.h: New file.
1179         * splay-tree.h: New file.
1180         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
1181         (gomp_target_init): New forward declaration.
1182         (gomp_is_initialized): New static variable.
1183         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
1184         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
1185         New structures.
1186         (offload_images, num_offload_images, devices, num_devices): New static
1187         variables.
1188         (splay_compare): New static function.
1189         (struct gomp_device_descr): New structure.
1190         (gomp_get_num_devices): Call gomp_target_init.
1191         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
1192         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
1193         (GOMP_offload_register): New function.
1194         (GOMP_target): Arrange for host callback to be performed in a separate
1195         initial thread and contention group, inheriting ICVs from
1196         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
1197         Add device initialization and lookup for target function in splay tree.
1198         (GOMP_target_data): Add device initialization and call gomp_map_vars.
1199         (GOMP_target_end_data): Call gomp_unmap_vars.
1200         (GOMP_target_update): Add device initialization and call gomp_update.
1201         (gomp_load_plugin_for_device, gomp_register_images_for_device)
1202         (gomp_target_init): New static functions.
1204 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
1205             Thomas Schwinge  <thomas@codesourcery.com>
1206             Ilya Verbin  <ilya.verbin@intel.com>
1207             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1209         * config.h.in: Regenerate.
1210         * configure: Regenerate.
1211         * configure.ac: Check for libdl, required for plugin support.
1212         (PLUGIN_SUPPORT): Define if plugins are supported.
1213         (enable_offload_targets): Support Intel MIC targets.
1214         (OFFLOAD_TARGETS): List of target names suitable for offloading.
1216 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1218         PR target/63610
1219         * configure: Regenerate.
1221 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1223         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
1225 2014-10-06  Marek Polacek  <polacek@redhat.com>
1227         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
1228         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
1229         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
1230         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
1232 2014-10-06  Marek Polacek  <polacek@redhat.com>
1234         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
1235         * testsuite/libgomp.c/nqueens-1.c: Likewise.
1236         * testsuite/libgomp.c/pr26943-3.c: Likewise.
1237         * testsuite/libgomp.c/pr26943-4.c: Likewise.
1238         * testsuite/libgomp.c/pr36802-2.c: Likewise.
1239         * testsuite/libgomp.c/pr36802-3.c: Likewise.
1240         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
1241         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
1242         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
1243         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
1244         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
1245         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
1246         * testsuite/libgomp.c/omp-single-1.c: Likewise.
1247         * testsuite/libgomp.c/omp-single-2.c: Likewise.
1248         * testsuite/libgomp.c/omp_matvec.c: Likewise.
1249         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
1250         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
1251         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
1252         declarations.
1254 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
1256         PR libgomp/61200
1257         * testsuite/libgomp.c/pr61200.c: New test.
1259 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
1261         PR c++/63248
1262         * testsuite/libgomp.c++/pr63248.C: New test.
1264 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
1266         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
1267         is not zero, but taskgroup->children is NULL and there are
1268         any task->children, schedule those instead of waiting.
1269         * testsuite/libgomp.c/depend-6.c: New test.
1270         * testsuite/libgomp.c/depend-7.c: New test.
1271         * testsuite/libgomp.c/depend-8.c: New test.
1272         * testsuite/libgomp.c/depend-9.c: New test.
1273         * testsuite/libgomp.c/depend-10.c: New test.
1275 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
1277         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
1278         (struct gomp_taskwait): New type.
1279         (struct gomp_task): Add taskwait and parent_depends_on, remove
1280         in_taskwait and taskwait_sem fields.
1281         (gomp_finish_task): Don't destroy taskwait_sem.
1282         * task.c (gomp_init_task): Don't init in_taskwait, instead init
1283         taskwait and parent_depends_on.
1284         (GOMP_task): For if (0) tasks with depend clause that depend on
1285         earlier tasks don't defer them, instead call
1286         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
1287         Initialize redundant_out field, for redundant out entries just
1288         move them at the end of linked list instead of removing them
1289         completely, and set redundant_out flag instead of redundant.
1290         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
1291         that task.
1292         (gomp_task_run_post_handle_dependers): If parent is in
1293         gomp_task_maybe_wait_for_dependencies and newly runnable task
1294         is not parent_depends_on, queue it in parent->children linked
1295         list after all runnable tasks with parent_depends_on set.
1296         Adjust for addition of taskwait indirection.
1297         (gomp_task_run_post_remove_parent): If parent is in
1298         gomp_task_maybe_wait_for_dependencies and task to be removed
1299         is parent_depends_on, decrement n_depend and if needed awake
1300         parent.  Adjust for addition of taskwait indirection.
1301         (GOMP_taskwait): Adjust for addition of taskwait indirection.
1302         (gomp_task_maybe_wait_for_dependencies): New function.
1303         * testsuite/libgomp.c/depend-5.c: New test.
1305 2014-07-13  Tobias Burnus  <burnus@net-b.de>
1307         * testsuite/libgomp.fortran/pr34020.f90: Make compile
1308         with TS 18508/Fortran 2015.
1310 2014-07-06  Marek Polacek  <polacek@redhat.com>
1312         PR c/6940
1313         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
1315 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
1317         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
1318         matches regex $lang_source_re, add $lang_include_flags to options.
1319         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
1320         * testsuite/libgomp.c++/c++.exp: Likewise.
1321         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
1322         and lang_include_flags instead of adding -fintrinsic-modules-path= to
1323         ALWAYS_CFLAGS.
1324         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
1326 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
1328         * testsuite/libgomp.fortran/fortran.exp: Explain
1329         gfortran-dg-runtest usage.
1331 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
1333         * testsuite/libgomp.fortran/simd5.f90: New test.
1334         * testsuite/libgomp.fortran/simd6.f90: New test.
1335         * testsuite/libgomp.fortran/simd7.f90: New test.
1337 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
1339         * testsuite/libgomp.c/for-2.c: Define SC to static for
1340         #pragma omp for simd testing.
1341         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
1342         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
1343         SC macro.
1344         * testsuite/libgomp.c/simd-14.c: New test.
1345         * testsuite/libgomp.c/simd-15.c: New test.
1346         * testsuite/libgomp.c/simd-16.c: New test.
1347         * testsuite/libgomp.c/simd-17.c: New test.
1348         * testsuite/libgomp.c++/for-10.C: Define SC to static for
1349         #pragma omp for simd testing.
1350         * testsuite/libgomp.c++/simd10.C: New test.
1351         * testsuite/libgomp.c++/simd11.C: New test.
1352         * testsuite/libgomp.c++/simd12.C: New test.
1353         * testsuite/libgomp.c++/simd13.C: New test.
1355         * testsuite/libgomp.fortran/aligned1.f03: New test.
1356         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
1357         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
1358         tasks with !$omp parallel !$omp single.
1359         * testsuite/libgomp.fortran/target8.f90: New test.
1360         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
1361         not to use trim in the combiner, instead call elemental function.
1362         (fn): New elemental function.
1363         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
1364         Make elemental.
1365         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
1366         omp_in): Likewise.
1367         * testsuite/libgomp.fortran/udr12.f90: New test.
1368         * testsuite/libgomp.fortran/udr13.f90: New test.
1369         * testsuite/libgomp.fortran/udr14.f90: New test.
1370         * testsuite/libgomp.fortran/udr15.f90: New test.
1372 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
1374         * omp_lib.f90.in (openmp_version): Set to 201307.
1375         * omp_lib.h.in (openmp_version): Likewise.
1376         * testsuite/libgomp.c/target-8.c: New test.
1377         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
1378         and inbranch clauses.
1379         * testsuite/libgomp.fortran/depend-3.f90: New test.
1380         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
1381         openmp_version.
1382         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
1383         * testsuite/libgomp.fortran/target1.f90: New test.
1384         * testsuite/libgomp.fortran/target2.f90: New test.
1385         * testsuite/libgomp.fortran/target3.f90: New test.
1386         * testsuite/libgomp.fortran/target4.f90: New test.
1387         * testsuite/libgomp.fortran/target5.f90: New test.
1388         * testsuite/libgomp.fortran/target6.f90: New test.
1389         * testsuite/libgomp.fortran/target7.f90: New test.
1391 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
1393         PR fortran/60928
1394         * testsuite/libgomp.fortran/allocatable9.f90: New test.
1395         * testsuite/libgomp.fortran/allocatable10.f90: New test.
1396         * testsuite/libgomp.fortran/allocatable11.f90: New test.
1397         * testsuite/libgomp.fortran/allocatable12.f90: New test.
1398         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
1399         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
1400         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
1401         * testsuite/libgomp.fortran/associate1.f90: New test.
1402         * testsuite/libgomp.fortran/associate2.f90: New test.
1403         * testsuite/libgomp.fortran/procptr1.f90: New test.
1405 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
1407         * testsuite/libgomp.fortran/simd1.f90: New test.
1408         * testsuite/libgomp.fortran/udr1.f90: New test.
1409         * testsuite/libgomp.fortran/udr2.f90: New test.
1410         * testsuite/libgomp.fortran/udr3.f90: New test.
1411         * testsuite/libgomp.fortran/udr4.f90: New test.
1412         * testsuite/libgomp.fortran/udr5.f90: New test.
1413         * testsuite/libgomp.fortran/udr6.f90: New test.
1414         * testsuite/libgomp.fortran/udr7.f90: New test.
1415         * testsuite/libgomp.fortran/udr8.f90: New test.
1416         * testsuite/libgomp.fortran/udr9.f90: New test.
1417         * testsuite/libgomp.fortran/udr10.f90: New test.
1418         * testsuite/libgomp.fortran/udr11.f90: New test.
1420 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
1422         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
1423         vect_simd_clones effective target.
1424         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
1426 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
1428         PR middle-end/61252
1429         * testsuite/libgomp.c++/simd-9.C: New test.
1431 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
1433         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
1434         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
1435         texts according to their @menu entry positions.
1437 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
1439         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
1440         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
1441         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
1442         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
1443         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
1444         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
1445         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
1446         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
1447         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
1448         * testsuite/libgomp.fortran/depend-1.f90: New test.
1449         * testsuite/libgomp.fortran/depend-2.f90: New test.
1450         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
1451         * testsuite/libgomp.fortran/simd1.f90: New test.
1452         * testsuite/libgomp.fortran/simd2.f90: New test.
1453         * testsuite/libgomp.fortran/simd3.f90: New test.
1454         * testsuite/libgomp.fortran/simd4.f90: New test.
1455         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
1457 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
1459         * testsuite/libgomp.c/simd-10.c: New test.
1460         * testsuite/libgomp.c/simd-11.c: New test.
1461         * testsuite/libgomp.c/simd-12.c: New test.
1462         * testsuite/libgomp.c/simd-13.c: New test.
1464 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
1466         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
1467         atomic type clauses in any order and optional comma in between.
1468         * testsuite/libgomp.c++/atomic-15.C: Likewise.
1469         * testsuite/libgomp.c/atomic-17.c: Likewise.
1471         * testsuite/libgomp.c/simd-7.c: New test.
1472         * testsuite/libgomp.c/simd-8.c: New test.
1473         * testsuite/libgomp.c/simd-9.c: New test.
1474         * testsuite/libgomp.c/loop-16.c: New test.
1476 2014-04-02  Richard Henderson  <rth@redhat.com>
1478         * config/linux/futex.h (futex_wait): Get error value from errno.
1479         (futex_wake): Likewise.
1481 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
1483         PR c++/60331
1484         * testsuite/libgomp.c++/udr-11.C: New test.
1485         * testsuite/libgomp.c++/udr-12.C: New test.
1486         * testsuite/libgomp.c++/udr-13.C: New test.
1487         * testsuite/libgomp.c++/udr-14.C: New test.
1488         * testsuite/libgomp.c++/udr-15.C: New test.
1489         * testsuite/libgomp.c++/udr-16.C: New test.
1490         * testsuite/libgomp.c++/udr-17.C: New test.
1491         * testsuite/libgomp.c++/udr-18.C: New test.
1492         * testsuite/libgomp.c++/udr-19.C: New test.
1494 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1496         Update copyright years
1498 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
1500         * hashtab.h: Use the standard form for the copyright notice.
1502 2014-01-02  Tobias Burnus  <burnus@net-b.de>
1504         * libgomp.texi: Bump @copying's copyright year.
1506 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
1508         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
1509         alloca () with __builtin_alloca ().
1510         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
1511         * testsuite/libgomp.c/lock-3.c: Likewise.
1512         * testsuite/libgomp.c/pr48591.c: Likewise.
1514 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
1516         PR testsuite/59534
1517         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
1518         comparisons.
1520 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
1522         PR libgomp/58756
1523         * testsuite/libgomp.c/pr58756.c: New test.
1525 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
1527         PR libgomp/59467
1528         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
1529         !$omp parallel.
1531 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
1533         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
1534         ALWAYS_CFLAGS.
1535         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
1536         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
1537         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
1538         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
1539         Likewise.
1541         * libgomp_g.h: Include <stddef.h> for size_t.
1543         * libgomp.spec.in: Update comment about libgomp's dependencies.
1544         * configure.ac: Likewise.
1545         * configure: Regenerate.
1547 2013-10-16  Tobias Burnus  <burnus@net-b.de>
1549         * libgomp.texi: (Runtime Library Routines): Update references for
1550         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
1551         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
1552         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
1553         (Environment Variables): Update references for OpenMP 4.0. Add
1554         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
1555         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
1556         order.
1558 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
1560         * env.c (parse_bind_var): Initialize value to avoid
1561         (false positive) warning.
1563 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
1565         PR libgomp/58691
1566         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
1567         to check variable.
1568         (gomp_init_num_threads): Move i variable declaration into
1569         #ifdef CPU_ALLOC_SIZE block.
1570         * config/linux/affinity.c (gomp_affinity_init_level): Test
1571         gomp_places_list_len == 0 rather than gomp_places_list == 0
1572         when checking for topology reading error.
1573         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
1574         * env.c (parse_affinity): Add ignore argument, if true, don't populate
1575         gomp_places_list, only parse env var and always return false.
1576         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
1577         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
1578         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
1579         and either of these variables were parsed correctly into a places
1580         list.
1582 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
1583             Jakub Jelinek  <jakub@redhat.com>
1585         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
1586         of 5 loopfn matches.
1587         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
1588         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
1589         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
1590         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1591         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
1592         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1593         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1594         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
1596 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
1598         * Makefile.am (omp_lib.mod): Streamline rule.
1599         * Makefile.in: Regenerate.
1601         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
1602         exceptions.
1604         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
1605         * testsuite/libgomp.fortran/lib1.f90: Likewise.
1606         * testsuite/libgomp.fortran/lib2.f: Likewise.
1607         * testsuite/libgomp.fortran/lib3.f: Likewise.
1609         * configure.ac: Typo fix.
1610         * configure: Regenerate.
1612         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
1613         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
1615         * omp.h.in: Don't touch the user's namespace.
1617 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
1618             Tobias Burnus  <burnus@net-b.de>
1619             Richard Henderson  <rth@redhat.com>
1621         * target.c: New file.
1622         * Makefile.am (libgomp_la_SOURCES): Add target.c.
1623         * Makefile.in: Regenerated.
1624         * libgomp_g.h (GOMP_task): Add depend argument.
1625         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
1626         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
1627         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
1628         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
1629         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
1630         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
1631         GOMP_taskgroup_start, GOMP_taskgroup_end,
1632         GOMP_parallel_sections): New prototypes.
1633         * fortran.c (omp_is_initial_device): Add ialias_redirect.
1634         (omp_is_initial_device_): New function.
1635         (ULP, STR1, STR2, ialias_redirect): Removed.
1636         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
1637         omp_set_default_device_8_, omp_get_default_device_,
1638         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
1639         functions.
1640         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
1641         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
1642         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
1643         @@GOMP_4.0.
1644         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
1645         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
1646         omp_set_default_device, omp_set_default_device_,
1647         omp_set_default_device_8_, omp_get_default_device,
1648         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
1649         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
1650         omp_get_team_num_): Export @@OMP_4.0.
1651         * team.c (struct gomp_thread_start_data): Add place field.
1652         (gomp_thread_start): Clear thr->thread_pool and
1653         thr->task before returning.  Use gomp_team_barrier_wait_final
1654         instead of gomp_team_barrier_wait.  Initialize thr->place.
1655         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
1656         team_cancelled and task_queued_count fields.
1657         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
1658         before calling pthread_exit.
1659         (gomp_free_thread): No longer static.  Use
1660         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
1661         (gomp_team_start): Add flags argument.  Set
1662         thr->thread_pool->threads_busy to nthreads immediately after creating
1663         new pool.  Use gomp_managed_threads_lock instead of
1664         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
1665         (gomp_team_end): Use gomp_managed_threads_lock instead of
1666         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
1667         of gomp_team_barrier_wait.  If team->team_cancelled, call
1668         gomp_fini_worshare on ws chain starting at team->work_shares_to_free
1669         rather than thr->ts.work_share.
1670         (initialize_team): Don't call gomp_sem_init here.
1671         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
1672         caller.
1673         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
1674         * env.c (gomp_global_icv): Add default_device_var, target_data and
1675         bind_var initializers.
1676         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1677         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1678         gomp_places_list_len): New variables.
1679         (parse_bind_var, parse_one_place, parse_places_var): New functions.
1680         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
1681         sized places.
1682         (gomp_cancel_var): New global variable.
1683         (parse_int): New function.
1684         (handle_omp_display_env): New function.
1685         (initialize_env): Use it.  Initialize default_device_var.
1686         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
1687         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
1688         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
1689         been successfully parsed (and call gomp_init_affinity in that case).
1690         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1691         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1692         omp_get_team_num, omp_is_initial_device): New functions.
1693         * libgomp.h: Include stdlib.h.
1694         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
1695         Define.
1696         (struct target_mem_desc): Forward declare.
1697         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
1698         and thread_limit_var fields.
1699         (gomp_get_num_devices): New prototype.
1700         (gomp_cancel_var): New extern decl.
1701         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
1702         team_cancelled and task_queued_count fields.  Add comments about
1703         task_{,queued_,running_}count.
1704         (gomp_cancel_kind): New enum.
1705         (gomp_work_share_end_cancel): New prototype.
1706         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
1707         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
1708         and depend fields.
1709         (struct gomp_taskgroup): New type.
1710         (struct gomp_task_depend_entry,
1711         struct gomp_dependers_vec): New types.
1712         (gomp_finish_task): Free depend_hash if non-NULL.
1713         (struct gomp_team_state): Add place_partition_off
1714         and place_partition_len fields.
1715         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1716         gomp_places_list_len): New extern decls.
1717         (struct gomp_thread): Add place field.
1718         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1719         (gomp_init_thread_affinity): Add place argument.
1720         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1721         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1722         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1723         gomp_affinity_init_level, gomp_affinity_print_place): New
1724         prototypes.
1725         (gomp_team_start): Add flags argument.
1726         (gomp_thread_limit_var, gomp_remaining_threads_count,
1727         gomp_remaining_threads_lock): Remove.
1728         (gomp_managed_threads_lock): New variable.
1729         (struct gomp_thread_pool): Add threads_busy field.
1730         (gomp_free_thread): New prototype.
1731         * task.c: Include hashtab.h.
1732         (hash_entry_type): New typedef.
1733         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
1734         (gomp_init_task): Clear dependers, depend_hash, depend_count,
1735         copy_ctors_done and taskgroup fields.
1736         (GOMP_task): Add depend argument, handle depend clauses.  If
1737         gomp_team_barrier_cancelled or if it's taskgroup has been
1738         cancelled, don't queue or start new tasks.  Set copy_ctors_done
1739         field if needed.  Initialize taskgroup field.  If copy_ctors_done
1740         and already cancelled, don't discard the task.  If taskgroup is
1741         non-NULL, enqueue the task into taskgroup queue.  Increment
1742         num_children field in taskgroup.  Increment task_queued_count.
1743         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
1744         gomp_task_run_post_remove_taskgroup): New inline functions.
1745         (gomp_task_run_post_handle_depend_hash,
1746         gomp_task_run_post_handle_dependers,
1747         gomp_task_run_post_handle_depend): New functions.
1748         (GOMP_taskwait): Use them.  If more than one new tasks
1749         have been queued, wake other threads if needed.
1750         (gomp_barrier_handle_tasks): Likewise.  If
1751         gomp_team_barrier_cancelled, don't start any new tasks, just free
1752         all tasks.
1753         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
1754         * omp_lib.f90.in
1755         (omp_proc_bind_kind, omp_proc_bind_false,
1756         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
1757         omp_proc_bind_spread): New params.
1758         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1759         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1760         omp_get_team_num, omp_is_initial_device): New interfaces.
1761         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
1762         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
1763         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
1764         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
1765         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
1766         useless use omp_lib_kinds.
1767         * omp.h.in (omp_proc_bind_t): New typedef.
1768         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1769         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1770         omp_get_team_num, omp_is_initial_device): New prototypes.
1771         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
1772         through to gomp_team_start.
1773         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
1774         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
1775         Adjust gomp_parallel_loop_start callers.
1776         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
1777         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
1778         GOMP_loop_end_cancel): New functions.
1779         (GOMP_parallel_end): Add ialias_redirect.
1780         * hashtab.h: New file.
1781         * libgomp.texi (Environment Variables): Minor cleanup,
1782         update section refs to OpenMP 4.0rc2.
1783         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
1784         environment variables.
1785         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
1786         team->work_shares_to_free to thr->ts.work_share before calling
1787         free_work_share.
1788         (gomp_work_share_end_cancel): New function.
1789         * config/linux/proc.c: Include errno.h.
1790         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
1791         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
1792         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
1793         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
1794         gomp_cpuset_size is sizeof (cpu_set_t).
1795         (gomp_init_num_threads): Initialize gomp_cpuset_size,
1796         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
1797         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
1798         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
1799         contain any logical CPUs.
1800         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
1801         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
1802         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
1803         pthread_getaffinity_np.  Check gomp_places_list instead of
1804         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
1805         * config/linux/bar.c (gomp_barrier_wait_end,
1806         gomp_barrier_wait_last): Use BAR_* defines.
1807         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
1808         from state where needed.  Set work_share_cancelled to 0 on last
1809         thread.
1810         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
1811         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
1812         functions.
1813         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
1814         Add cpusetsize argument.
1815         (gomp_cpuset_size, gomp_cpusetp): Declare.
1816         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
1817         (affinity_counter): Remove.
1818         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
1819         if CPU_ALLOC_SIZE isn't defined.
1820         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
1821         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
1822         bind current thread to the first place.
1823         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
1824         pthread_setaffinity_np to gomp_places_list[place].
1825         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1826         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1827         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1828         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
1829         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
1830         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
1831         (gomp_barrier_t): Add awaited_final field.
1832         (gomp_barrier_init): Initialize awaited_final field.
1833         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
1834         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
1835         prototypes.
1836         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
1837         defines.
1838         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
1839         gomp_team_barrier_cancelled): New inline functions.
1840         (gomp_barrier_last_thread,
1841         gomp_team_barrier_set_task_pending,
1842         gomp_team_barrier_clear_task_pending,
1843         gomp_team_barrier_set_waiting_for_tasks,
1844         gomp_team_barrier_waiting_for_tasks,
1845         gomp_team_barrier_done): Use BAR_* defines.
1846         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
1847         (gomp_barrier_wait_end): Use BAR_* defines.
1848         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
1849         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
1850         Use BAR_* defines.
1851         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
1852         gomp_team_barrier_cancel): New functions.
1853         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
1854         argument.
1855         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1856         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1857         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1858         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
1859         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
1860         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
1861         (gomp_barrier_t): Add cancellable field.
1862         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
1863         gomp_team_barrier_cancel): New prototypes.
1864         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
1865         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
1866         gomp_team_barrier_cancelled): New inline functions.
1867         (gomp_barrier_wait_start, gomp_barrier_last_thread,
1868         gomp_team_barrier_set_task_pending,
1869         gomp_team_barrier_clear_task_pending,
1870         gomp_team_barrier_set_waiting_for_tasks,
1871         gomp_team_barrier_waiting_for_tasks,
1872         gomp_team_barrier_done): Use BAR_* defines.
1873         * barrier.c (GOMP_barrier_cancel): New function.
1874         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
1875         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
1876         omp_proc_bind_spread): New params.
1877         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1878         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1879         omp_get_team_num, omp_is_initial_device): New externals.
1880         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
1881         New functions.
1882         (gomp_resolve_num_threads): Adjust for thread_limit now being in
1883         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
1884         infinity.  If not nested, just return minimum of max_num_threads
1885         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
1886         to the returned value.  Otherwise, don't update atomically
1887         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
1888         (GOMP_parallel_end): Adjust for thread_limit now being in
1889         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
1890         infinity.  Adjust threads_busy in the pool rather than
1891         gomp_remaining_threads_count.  Remember team->nthreads and call
1892         gomp_team_end before adjusting threads_busy, if not nested
1893         afterwards, just set it to 1 non-atomically.  Add ialias.
1894         (GOMP_parallel_start): Adjust gomp_team_start caller.
1895         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
1896         * testsuite/libgomp.c/affinity-1.c: New test.
1897         * testsuite/libgomp.c/atomic-15.c: New test.
1898         * testsuite/libgomp.c/atomic-16.c: New test.
1899         * testsuite/libgomp.c/atomic-17.c: New test.
1900         * testsuite/libgomp.c/cancel-for-1.c: New test.
1901         * testsuite/libgomp.c/cancel-for-2.c: New test.
1902         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
1903         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
1904         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
1905         * testsuite/libgomp.c/cancel-sections-1.c: New test.
1906         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
1907         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
1908         * testsuite/libgomp.c/depend-1.c: New test.
1909         * testsuite/libgomp.c/depend-2.c: New test.
1910         * testsuite/libgomp.c/depend-3.c: New test.
1911         * testsuite/libgomp.c/depend-4.c: New test.
1912         * testsuite/libgomp.c/for-1.c: New test.
1913         * testsuite/libgomp.c/for-1.h: New file.
1914         * testsuite/libgomp.c/for-2.c: New test.
1915         * testsuite/libgomp.c/for-2.h: New file.
1916         * testsuite/libgomp.c/for-3.c: New test.
1917         * testsuite/libgomp.c/pr58392.c: New test.
1918         * testsuite/libgomp.c/simd-1.c: New test.
1919         * testsuite/libgomp.c/simd-2.c: New test.
1920         * testsuite/libgomp.c/simd-3.c: New test.
1921         * testsuite/libgomp.c/simd-4.c: New test.
1922         * testsuite/libgomp.c/simd-5.c: New test.
1923         * testsuite/libgomp.c/simd-6.c: New test.
1924         * testsuite/libgomp.c/target-1.c: New test.
1925         * testsuite/libgomp.c/target-2.c: New test.
1926         * testsuite/libgomp.c/target-3.c: New test.
1927         * testsuite/libgomp.c/target-4.c: New test.
1928         * testsuite/libgomp.c/target-5.c: New test.
1929         * testsuite/libgomp.c/target-6.c: New test.
1930         * testsuite/libgomp.c/target-7.c: New test.
1931         * testsuite/libgomp.c/taskgroup-1.c: New test.
1932         * testsuite/libgomp.c/thread-limit-1.c: New test.
1933         * testsuite/libgomp.c/thread-limit-2.c: New test.
1934         * testsuite/libgomp.c/thread-limit-3.c: New test.
1935         * testsuite/libgomp.c/udr-1.c: New test.
1936         * testsuite/libgomp.c/udr-2.c: New test.
1937         * testsuite/libgomp.c/udr-3.c: New test.
1938         * testsuite/libgomp.c++/affinity-1.C: New test.
1939         * testsuite/libgomp.c++/atomic-10.C: New test.
1940         * testsuite/libgomp.c++/atomic-11.C: New test.
1941         * testsuite/libgomp.c++/atomic-12.C: New test.
1942         * testsuite/libgomp.c++/atomic-13.C: New test.
1943         * testsuite/libgomp.c++/atomic-14.C: New test.
1944         * testsuite/libgomp.c++/atomic-15.C: New test.
1945         * testsuite/libgomp.c++/cancel-for-1.C: New test.
1946         * testsuite/libgomp.c++/cancel-for-2.C: New test.
1947         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
1948         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
1949         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
1950         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
1951         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
1952         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
1953         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
1954         * testsuite/libgomp.c++/cancel-test.h: New file.
1955         * testsuite/libgomp.c++/for-9.C: New test.
1956         * testsuite/libgomp.c++/for-10.C: New test.
1957         * testsuite/libgomp.c++/for-11.C: New test.
1958         * testsuite/libgomp.c++/simd-1.C: New test.
1959         * testsuite/libgomp.c++/simd-2.C: New test.
1960         * testsuite/libgomp.c++/simd-3.C: New test.
1961         * testsuite/libgomp.c++/simd-4.C: New test.
1962         * testsuite/libgomp.c++/simd-5.C: New test.
1963         * testsuite/libgomp.c++/simd-6.C: New test.
1964         * testsuite/libgomp.c++/simd-7.C: New test.
1965         * testsuite/libgomp.c++/simd-8.C: New test.
1966         * testsuite/libgomp.c++/target-1.C: New test.
1967         * testsuite/libgomp.c++/target-2.C: New test.
1968         * testsuite/libgomp.c++/target-2-aux.cc: New file.
1969         * testsuite/libgomp.c++/target-3.C: New test.
1970         * testsuite/libgomp.c++/taskgroup-1.C: New test.
1971         * testsuite/libgomp.c++/udr-1.C: New test.
1972         * testsuite/libgomp.c++/udr-2.C: New test.
1973         * testsuite/libgomp.c++/udr-3.C: New test.
1974         * testsuite/libgomp.c++/udr-4.C: New test.
1975         * testsuite/libgomp.c++/udr-5.C: New test.
1976         * testsuite/libgomp.c++/udr-6.C: New test.
1977         * testsuite/libgomp.c++/udr-7.C: New test.
1978         * testsuite/libgomp.c++/udr-8.C: New test.
1979         * testsuite/libgomp.c++/udr-9.C: New test.
1981 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
1983         PR testsuite/57605
1984         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
1985         ALWAYS_CFLAGS.
1987 2013-09-20  Alan Modra  <amodra@gmail.com>
1989         * configure: Regenerate.
1991 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
1993         * testsuite/libgomp.c/sections-2.c: New test.
1995 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1997         * testsuite/libgomp.fortran/strassen.f90:
1998         Add dg-skip-if aarch64_tiny.
2000 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
2001             Cesar Philippidis  <cesar@codesourcery.com>
2003         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
2004         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
2005         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
2006         * testsuite/libgomp.fortran/fortran.exp: Likewise.
2007         * testsuite/libgomp.graphite/graphite.exp: Likewise.
2008         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
2009         Use dg-runtest rather than gfortran-dg-runtest.
2011 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
2013         * testsuite/libgomp.c/icv-2.c: Extend current handling of
2014         Linux-based x86 systems to cover all GNU systems.
2015         * testsuite/libgomp.c/lock-3.c: Likewise.
2016         * testsuite/libgomp.c/pr48591.c: Likewise.
2018 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
2020         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
2021         GNU/Hurd, as done for Linux-based systems.
2023         * config/posix/ptrlock.h: Fix comment.
2025 2013-05-27  Tobias Burnus  <burnus@net-b.de>
2027         PR fortran/57423
2028         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
2029         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
2030         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
2031         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
2032         omp_destroy_nest_lock): Correct arguments to match the one in
2033         the OpenMP spec.
2034         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
2035         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
2036         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
2037         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
2039 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
2041         * testsuite/libgomp.c/loop-13.c: New test.
2042         * testsuite/libgomp.c/loop-14.c: New test.
2043         * testsuite/libgomp.c/loop-15.c: New test.
2044         * testsuite/libgomp.c++/loop-13.C: New test.
2045         * testsuite/libgomp.c++/loop-14.C: New test.
2046         * testsuite/libgomp.c++/loop-15.C: New test.
2048 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
2050         PR middle-end/56217
2051         * testsuite/libgomp.c++/pr56217.C: New test.
2053 2013-02-01  Alan Modra  <amodra@gmail.com>
2055         * task.c (GOMP_task, GOMP_taskwait): Comment.
2057 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
2058             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
2060         PR libgomp/55561
2061         * config/linux/wait.h (do_spin): Use atomic load for addr.
2062         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
2063         for intptr and ptrlock.
2064         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
2065         for ptrlock.
2067 2013-01-22  Alan Modra  <amodra@gmail.com>
2069         PR libgomp/51376
2070         PR libgomp/56073
2071         * task.c (GOMP_task): Revert 2011-12-09 change.
2072         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
2073         barrier to read task->children..
2074         (gomp_barrier_handle_tasks): ..and matching atomic store with
2075         release barrier here when setting parent->children to NULL.
2077 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
2078             Tobias Burnus  <burnus@net-b.de>
2080         PR driver/55884
2081         * testsuite/libgomp.fortran/fortran.exp: Use
2082         -fintrinsic-modules-path= instead of
2083         -fintrinsic-modules-path.
2085 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
2087         Update copyright years.
2089 2012-12-19  Tobias Burnus  <burnus@net-b.de>
2091         * testsuite/libgomp.fortran/fortran.exp: Set
2092         -fintrinsic-modules-path.
2094 2012-12-19  Tobias Burnus  <burnus@net-b.de>
2096         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
2097         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
2099 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
2101         PR libgomp/55411
2102         * team.c (gomp_free_thread): Decrease gomp_managed_threads
2103         if pool had any threads_used.
2105 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
2107         * testsuite/libgomp.c++/pr24455.C: Use
2108         -Wl,-undefined,dynamic_lookup on darwin.
2110 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
2112         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
2114 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
2116         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
2118 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
2119             Jim MacArthur  <jim.macarthur@arm.com>
2120             Marcus Shawcroft  <marcus.shawcroft@arm.com>
2121             Nigel Stephens  <nigel.stephens@arm.com>
2122             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2123             Richard Earnshaw  <rearnsha@arm.com>
2124             Sofiane Naci  <sofiane.naci@arm.com>
2125             Stephen Thomas  <stephen.thomas@arm.com>
2126             Tejas Belagod  <tejas.belagod@arm.com>
2127             Yufeng Zhang  <yufeng.zhang@arm.com>
2129         * configure.tgt: Add AArch64.
2131 2012-10-04  Jason Merrill  <jason@redhat.com>
2133         * testsuite/libgomp.c++/tls-init1.C: New.
2135 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
2137         * configure: Regenerated.
2139 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
2141         * config/linux/mips/futex.h (sys_futex0): Change to static
2142         function with noinline, nomips16 attributes under MIPS16. Adjust
2143         asm statement to place 'li v0,SYS_futex' immediately before
2144         syscall insn.
2146 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
2148         * libgomp.texi (Library Index): Renamed from "Index" to prevent
2149         conflict with index.html on case-insensitive file systems.
2151 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
2153         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
2154         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
2156 2012-07-02  Richard Guenther  <rguenther@suse.de>
2157             Michael Matz  <matz@suse.de>
2158             Tobias Grosser <tobias@grosser.es>
2159             Sebastian Pop <sebpop@gmail.com>
2161         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
2162         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
2163         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
2164         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
2166 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
2168         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
2170 2012-06-22  Richard Guenther  <rguenther@suse.de>
2172         Merge from graphite branch
2173         2012-01-13  Tobias Grosser  <tobias@grosser.es>
2175         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2176         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
2178 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
2180         PR middle-end/53580
2181         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
2182         use GOMP_barrier () call instead.
2183         * testsuite/libgomp.c/pr26943-3.c: Likewise.
2184         * testsuite/libgomp.c/pr26943-4.c: Likewise.
2185         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
2186         call GOMP_barrier instead.
2187         * testsuite/libgomp.fortran/vla5.f90: Likewise.
2189 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
2191         PR libgomp/52993
2192         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
2193         argument to memset call.
2195 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
2197         * configure: Regenerated.
2199 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2201         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
2203 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
2205         PR bootstrap/52812
2206         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
2208 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
2210         PR middle-end/52547
2211         * testsuite/libgomp.c/pr52547.c: New test.
2213 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
2215         * testsuite/lib/libgomp.exp: load fortran-modules.exp
2217 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2219         * configure.tgt (mips-sgi-irix6*): Remove.
2221 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2223         * configure.tgt (alpha*-dec-osf*): Remove.
2225         * config/osf/sem.h: Remove.
2226         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
2228 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
2230         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
2232 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2234         PR libstdc++/52188
2235         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
2236         Remove ENABLE_SYMVERS_SOL2.
2237         * configure: Regenerate.
2238         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
2239         (PREPROCESS): New variable.
2240         (libgomp.ver): New target.
2241         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
2242         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
2243         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
2244         Use libgomp.ver.
2245         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
2246         * Makefile.in: Regenerate.
2248 2012-02-14  Walter Lee  <walt@tilera.com>
2250         * configure.tgt: Handle tilegx and tilepro.
2251         * config/linux/tile/futex.h: New file.
2253 2012-02-08  Richard Guenther  <rguenther@suse.de>
2255         PR tree-optimization/46886
2256         * testsuite/libgomp.c/pr46886.c: New testcase.
2258 2012-01-25  Matthias Klose  <doko@ubuntu.com>
2260         * config/linux/arm: Remove empty directory.
2261         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
2263 2011-12-09  Alan Modra  <amodra@gmail.com>
2265         PR libgomp/51376
2266         * task.c (GOMP_taskwait): Don't access task->children outside of
2267         task_lock mutex region.
2268         (GOMP_task): Likewise.
2270 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
2272         PR libgomp/51132
2273         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
2274         to file scope.
2275         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
2276         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
2277         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
2278         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
2279         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
2281 2011-12-02  Alan Modra  <amodra@gmail.com>
2283         * config/linux/affinity.c: Use atomic rather than sync builtin.
2284         * config/linux/lock.c: Likewise.
2285         * config/linux/ptrlock.h: Likewise.
2286         * config/linux/ptrlock.c: Likewise.
2287         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
2288         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
2289         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
2290         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
2291         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
2292         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
2293         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
2294         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
2295         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
2296         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
2298 2011-11-30  Alan Modra  <amodra@gmail.com>
2300         PR libgomp/51298
2301         * config/linux/bar.h: Use atomic rather than sync builtins.
2302         * config/linux/bar.c: Likewise.  Add missing acquire
2303         synchronisation on generation field.
2304         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
2305         double unlock.
2307 2011-11-30  Alan Modra  <amodra@gmail.com>
2309         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
2310         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
2311         * config/linux/mutex.h: Use atomic rather than sync builtins.
2312         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
2313         * config/linux/omp-lock.h: Comment fix.
2314         * config/linux/arm/mutex.h: Delete.
2315         * config/linux/powerpc/mutex.h: Delete.
2316         * config/linux/ia64/mutex.h: Delete.
2317         * config/linux/mips/mutex.h: Delete.
2319 2011-11-30  Alan Modra  <amodra@gmail.com>
2321         PR libgomp/51249
2322         * config/linux/sem.h: Rewrite.
2323         * config/linux/sem.c: Rewrite.
2325 2011-11-28  Richard Henderson  <rth@redhat.com>
2327         * libgomp.h (enum memmodel): New.
2329 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
2331         * configure: Regenerate.
2333 2011-10-10  Matthias Klose  <doko@ubuntu.com>
2335         * config/posix95: Remove empty directory.
2337 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
2339         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
2341 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
2343         PR fortran/49792
2344         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
2345         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
2347 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2349         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
2351 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2353         PR libgomp/49965
2354         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
2356 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
2358         * config/linux/proc.h: New.
2359         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
2360         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
2361         (gomp_init_num_threads): Update call to cpuset_popcount.
2362         (get_num_procs): Ditto.
2363         * config/linux/affinity.c (gomp_init_affinity): Call
2364         gomp_cpuset_popcount.
2366 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
2368         PR fortran/42041
2369         PR fortran/46752
2370         * omp.h.in (omp_in_final): New prototype.
2371         * omp_lib.f90.in (omp_in_final): New interface.
2372         (omp_integer_kind, omp_logical_kind): Remove
2373         and replace all its uses in the module with 4.
2374         (openmp_version): Change to 201107.
2375         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
2376         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
2377         kind for the parameters.
2378         (omp_in_final): New external.
2379         (openmp_version): Change to 201107.
2380         * task.c (omp_in_final): New function.
2381         (gomp_init_task): Initialize final_task.
2382         (GOMP_task): Remove unused attribute from flags.  Handle final
2383         tasks.
2384         (GOMP_taskyield): New function.
2385         (omp_in_final): Return true if if (false) or final (true) task
2386         or descendant of final (true).
2387         * fortran.c (omp_in_final_): New function.
2388         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
2389         (GOMP_3.0): Export GOMP_taskyield.
2390         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
2391         variables.
2392         (parse_unsigned_long_list): New function.
2393         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
2394         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
2395         even if parse_affinity returned false.
2396         * config/linux/affinity.c (gomp_init_affinity): Handle
2397         gomp_cpu_affinity_len == 0.
2398         * libgomp_g.h (GOMP_taskyield): New prototype.
2399         * libgomp.h (struct gomp_task): Add final_task field.
2400         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
2401         * team.c (gomp_team_start): Override new task's nthreads_var icv
2402         if list form OMP_NUM_THREADS has been used and it has value for
2403         the new nesting level.
2405         * testsuite/libgomp.c/atomic-11.c: New test.
2406         * testsuite/libgomp.c/atomic-12.c: New test.
2407         * testsuite/libgomp.c/atomic-13.c: New test.
2408         * testsuite/libgomp.c/atomic-14.c: New test.
2409         * testsuite/libgomp.c/reduction-6.c: New test.
2410         * testsuite/libgomp.c/task-5.c: New test.
2411         * testsuite/libgomp.c++/atomic-2.C: New test.
2412         * testsuite/libgomp.c++/atomic-3.C: New test.
2413         * testsuite/libgomp.c++/atomic-4.C: New test.
2414         * testsuite/libgomp.c++/atomic-5.C: New test.
2415         * testsuite/libgomp.c++/atomic-6.C: New test.
2416         * testsuite/libgomp.c++/atomic-7.C: New test.
2417         * testsuite/libgomp.c++/atomic-8.C: New test.
2418         * testsuite/libgomp.c++/atomic-9.C: New test.
2419         * testsuite/libgomp.c++/task-8.C: New test.
2420         * testsuite/libgomp.c++/reduction-4.C: New test.
2421         * testsuite/libgomp.fortran/allocatable7.f90: New test.
2422         * testsuite/libgomp.fortran/allocatable8.f90: New test.
2423         * testsuite/libgomp.fortran/crayptr3.f90: New test.
2424         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
2425         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
2426         * testsuite/libgomp.fortran/pointer1.f90: New test.
2427         * testsuite/libgomp.fortran/pointer2.f90: New test.
2428         * testsuite/libgomp.fortran/task4.f90: New test.
2430 2011-08-02  Tobias Burnus  <burnus@net-b.de>
2432         * libgomp.texi: Update OpenMP spec references to 3.1.
2433         (omp_in_final,OMP_PROC_BIND): New sections.
2434         (OMP_NUM_THREADS): Document that the value can be now a list.
2435         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
2437 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
2439         * config/linux/x86/futex.h: Check __x86_64__ instead of
2440         __LP64__.
2442 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
2444         PR middle-end/49897
2445         PR middle-end/49898
2446         * testsuite/libgomp.c/pr49897-1.c: New test.
2447         * testsuite/libgomp.c/pr49897-2.c: New test.
2448         * testsuite/libgomp.c/pr49898-1.c: New test.
2449         * testsuite/libgomp.c/pr49898-2.c: New test.
2451 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
2453         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
2454         for ia32 instead of ilp32.
2456         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
2457         * testsuite/libgomp.c/atomic-6.c: Likewise.
2459 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
2461         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
2462         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
2464 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2466         PR libgomp/45351
2467         * config/osf/sem.h: New file.
2468         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
2470 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2472         PR target/49541
2473         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
2474         ldflags.
2476 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
2478         * config/linux/wait.h (do_spin): New inline, largely copied
2479         from do_wait, just don't do futex_wait here, instead return true if
2480         it should be done.
2481         (do_wait): Implement using do_spin.
2482         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
2483         to prototype.
2484         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
2485         __sync_bool_compare_and_swap, pass the oldval to
2486         gomp_mutex_lock_slow.
2487         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
2488         If all mutex contenders are just spinning and not sleeping, don't
2489         change state to 2 unnecessarily.  Optimize the loop when state has
2490         already become 2 to use just one atomic operation per loop instead
2491         of two.
2492         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
2493         to prototype.
2494         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
2495         __sync_bool_compare_and_swap, pass the oldval to
2496         gomp_mutex_lock_slow.
2498 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
2500         PR libgomp/49490
2501         * iter.c (gomp_iter_static_next): For chunk size 0
2502         only use n ceil/ nthreads size for the first
2503         n % nthreads threads in the team instead of
2504         all threads except for the last few ones which
2505         get less work or none at all.
2506         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
2507         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
2508         chunk argument, set run_sched_modifier to 0 for static
2509         resp. 1 for other kinds.  If chunk argument is 0
2510         and not static, set value to 1.
2512 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
2514         PR c++/49043
2515         * testsuite/libgomp.c++/pr49043.C: New test.
2517         PR c++/48869
2518         * testsuite/libgomp.c++/pr48869.C: New test.
2520 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
2522         PR fortran/48894
2523         * fortran.c: Include limits.h.
2524         (TO_INT): Define.
2525         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
2526         *set.
2527         (omp_set_num_threads_8_, omp_set_schedule_8_,
2528         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
2529         omp_get_team_size_8_): Use TO_INT macro.
2530         * testsuite/libgomp.fortran/pr48894.f90: New test.
2532 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
2534         PR middle-end/48591
2535         * testsuite/libgomp.c/pr48591.c: New test.
2537 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2539         PR bootstrap/48135
2540         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
2541         * configure: Regenerate.
2543 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
2545         PR fortran/47886
2546         * testsuite/libgomp.fortran/task3.f90: New test.
2548 2011-02-24  Tobias Burnus  <burnus@net-b.de>
2550         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
2552 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
2554         PR libgomp/47854
2555         * libgomp.texi (omp_get_wtime): Don't say time in the past
2556         must be Unix Epoch.
2558 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
2560         PR libgomp/47804
2561         * testsuite/libgomp.fortran/fortran.exp: Check for both
2562         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
2563         but $blddir != "", still append ${blddir}/${lang_library_path}
2564         to ld_library_path.
2566 2011-02-16  Tobias Burnus  <burnus@net-b.de>
2568         PR libgomp/47758
2569         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
2570         of libquadmath.a before adding its libpath to ldflags.
2572 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
2574         PR libgomp/47731
2575         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
2576         to FUTEX_WAIT futex syscall.
2577         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
2579 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2581         * configure: Regenerate.
2583 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
2585         PR libstdc++/36104
2586         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
2588 2011-01-16  Gerald Pfeifer
2590         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
2592 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
2594         PR fortran/46874
2595         * libgomp.fortran/allocatable6.f90: New test.
2597 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2599         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
2600         * configure: Regenerate.
2602 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
2604         PR target/40125
2605         PR lto/46695
2606         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
2607         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
2608         * aclocal.m4: Regenerate.
2609         * configure: Regenerate.
2610         * Makefile.in: Regenerate.
2611         * testsuite/Makefile.in: Regenerate.
2613 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
2615         PR fortran/46753
2616         * libgomp.fortran/pr46753.f90: New test.
2618         PR libgomp/43706
2619         * env.c (initialize_env): Default to spin count 300000
2620         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
2621         is specified.
2623         PR libgomp/45240
2624         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
2625         at the end if sync builtins aren't supported.
2627 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2629         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
2631 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2633         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
2635 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
2637         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
2639 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2640             Tobias Burnus  <burnus@net-b.de>
2642         PR fortran/32049
2643         * configure.ac:
2644         * configure: Regenerate.
2646 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2648         * config/linux/futex.h: New.
2649         * config/linux/arm/mutex.h: New.
2650         * configure.tgt (arm*-*-linux*): Add config path.
2652 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2654         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2656 2010-09-23  Tobias Burnus  <burnus@net-b.de>
2658         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
2659         Change Fortran datatype to LOGICAL.
2660         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
2661         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
2663 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2665         * configure: Regenerate.
2667 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
2669         * libgomp.texi: Add function keyword to a couple of Fortran
2670         interfaces, use integer instead of int for Fortran.
2672 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
2674         * libgomp.texi: Fix spelling and pasto problems throughout.
2675         Adjust prototypes to match code.
2677 2010-07-24  Tobias Burnus  <burnus@net-b.de>
2679         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
2680         silence -fwhole-file warning.
2682 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2684         * configure.tgt (*-*-solaris2.[56]*): Removed.
2686 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2688         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
2689         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
2690         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
2691         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
2692         targetting solaris2*.
2693         * configure: Regenerate.
2694         * config.h.in: Regenerate.
2696         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
2697         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
2698         Add libgomp_version_dep.
2699         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
2700         versioning.
2701         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
2702         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
2703         * Makefile.in: Regenerate.
2705         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
2706         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2707         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
2708         to common block, protected by
2709         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2711 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
2713         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
2715 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
2717         PR bootstrap/43170
2718         * configure: Regenerate.
2720 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2722         PR other/43620
2723         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
2724         * configure: Regenerate.
2725         * Makefile.in: Regenerate.
2726         * testsuite/Makefile.in: Regenerate.
2728 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
2730         PR c/43893
2731         * testsuite/libgomp.c/pr43893.c: New test.
2732         * testsuite/libgomp.c++/pr43893.C: New test.
2734 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
2736         PR middle-end/43570
2737         * testsuite/libgomp.fortran/vla8.f90: New test.
2739 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
2741         PR libgomp/43706
2742         * config/linux/affinity.c (gomp_init_affinity): Decrease
2743         gomp_available_cpus if affinity mask confines the process to fewer
2744         CPUs.
2745         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
2746         non-NULL, just return gomp_available_cpus.
2748         PR libgomp/43569
2749         * sections.c (gomp_sections_init): Initialize ws->mode.
2751 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
2753         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
2754         not unused bar variable.
2755         * configure: Regenerate.
2757 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2759         * Makefile.in: Regenerate.
2760         * aclocal.m4: Regenerate.
2761         * testsuite/Makefile.in: Regenerate.
2763 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
2765         PR libgomp/42942
2766         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
2767         (initialize_env): Adjust callers.
2768         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
2769         when the argument is 0.
2771         * testsuite/libgomp.c/pr42942.c: New test.
2773 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
2775         PR middle-end/42644
2776         PR middle-end/42130
2777         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2778         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
2780 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2782         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
2783         * testsuite/libgomp.c++/task-6.C: Likewise.
2785 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
2787         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
2789 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
2791         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
2792         * configure: Regenerate.
2794 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
2796         PR fortran/42866
2797         * testsuite/libgomp.fortran/allocatable5.f90: New test.
2799 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
2801         * configure.ac: Test for executability of GFORTRAN.
2802         * configure: Regenerate.
2804 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2806         * configure: Regenerate.
2808 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
2810         PR libgomp/42602
2811         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
2813 2010-01-03  Richard Guenther  <rguenther@suse.de>
2815         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
2817 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
2819         * testsuite/libgomp.graphite/pr4118.c: New.
2821 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
2823         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
2824         for darwin, protect the test with require-effective-target tls_runtime.
2825         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
2827 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
2829         PR target/41605
2830         * testsuite/lib/libgomp.exp: Provide -B options to allow for
2831         link spec %s substitutions for static libraries.
2833 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
2835         PR testsuite/42135
2836         * libgomp.graphite/force-parallel-2.c: Reduce array size.
2838 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2840         * Makefile.in: Regenerate.
2841         * configure: Regenerate.
2842         * testsuite/Makefile.in: Regenerate.
2844 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
2846         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
2847         settings for LC_ALL and LANG.
2849 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
2851         PR fortran/42162
2852         * testsuite/libgomp.fortran/pr42162.f90: New test.
2854 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
2856         PR middle-end/42029
2857         * testsuite/libgomp.c/pr42029.c: New test.
2859 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
2861         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
2862         *s.  Accept ld version without text in ()s.
2863         * configure: Regenerated.
2865 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
2867         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
2869 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2871         PR libgomp/41418
2872         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
2873         or a hyphen (happens with fortran language disabled).
2874         * configure: Regenerate.
2876 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2878         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
2879         use sed script portable to Solaris /bin/sed for extracting ld
2880         version.
2881         * configure: Regenerate.
2883 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
2885         * testsuite/libgomp.graphite/bounds.c: New test.
2887 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2889         * Makefile.am (libgomp_la_LINK): New.
2890         * Makefile.in: Regenerate.
2892 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2894         * configure.ac (AC_PREREQ): Bump to 2.64.
2896 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2898         * Makefile.am (install-html, install-pdf): Remove.
2899         * Makefile.in: Regenerate.
2901         * Makefile.in: Regenerate.
2902         * aclocal.m4: Regenerate.
2903         * config.h.in: Regenerate.
2904         * configure: Regenerate.
2905         * testsuite/Makefile.in: Regenerate.
2907 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2909         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
2910         * Makefile.in: Regenerate.
2912 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
2914         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
2915         * Makefile.in: Regenerate.
2917 2009-08-19  Tobias Burnus  <burnus@net-b.de>
2919         PR fortran/41102
2920         omp_lib.h.in: Fix -std=f95 errors.
2923 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
2925         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
2926         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
2927         * testsuite/libgomp.graphite/graphite.exp: New.
2929 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
2931         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
2932         only build.
2934 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
2936         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
2937         needed memory barrier semantics.
2938         * config/linux/mips/mutex.h: New file.
2940 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2942         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
2944 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
2946         * configure: Regenerate.
2948 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
2950         PR testsuite/40699
2951         PR testsuite/40707
2952         PR testsuite/40709
2953         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
2954         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
2955         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
2957 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
2959         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
2960         options when choosing a multilib.
2962 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
2964         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
2965         ld_library_path.  Use add_path.  Add just find_libgcc_s to
2966         ld_library_path, not every libgcc multilib directory.
2967         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
2968         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
2969         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
2970         Use add_path.
2971         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
2973 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
2975         * Makefile.am (LTLDFLAGS): Define.
2976         (LINK): Define.
2977         * Makefile.in: Regenerate.
2979 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
2981         PR fortran/39718
2982         * testsuite/libgomp.fortran/fortran.exp: Don't link with
2983         libgfortranbegin, check existence of libgfortran.a instead of
2984         libgfortranbegin.a.
2986 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
2988         PR libgomp/40174
2989         * team.c (gomp_thread_start): Destroy thr->release semaphore.
2990         (gomp_free_pool_helper): Likewise.
2992 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
2993             Jakub Jelinek  <jakub@redhat.com>
2995         PR fortran/35423
2996         * testsuite/libgomp.fortran/workshare2.f90: New test.
2998 2009-04-09  Nick Clifton  <nickc@redhat.com>
3000         * iter.c: Change copyright header to refer to version 3 of the
3001         GNU General Public License with version 3.1 of the GCC Runtime
3002         Library Exception and to point readers at the COPYING3 and
3003         COPYING3.RUNTIME files and the FSF's license web page.
3004         * alloc.c: Likewise.
3005         * barrier.c: Likewise.
3006         * config/bsd/proc.c: Likewise.
3007         * config/linux/affinity.c: Likewise.
3008         * config/linux/alpha/futex.h: Likewise.
3009         * config/linux/bar.c: Likewise.
3010         * config/linux/bar.h: Likewise.
3011         * config/linux/ia64/futex.h: Likewise.
3012         * config/linux/ia64/mutex.h: Likewise.
3013         * config/linux/lock.c: Likewise.
3014         * config/linux/mips/futex.h: Likewise.
3015         * config/linux/mutex.c: Likewise.
3016         * config/linux/mutex.h: Likewise.
3017         * config/linux/powerpc/futex.h: Likewise.
3018         * config/linux/proc.c: Likewise.
3019         * config/linux/ptrlock.c: Likewise.
3020         * config/linux/ptrlock.h: Likewise.
3021         * config/linux/s390/futex.h: Likewise.
3022         * config/linux/sem.c: Likewise.
3023         * config/linux/sem.h: Likewise.
3024         * config/linux/sparc/futex.h: Likewise.
3025         * config/linux/wait.h: Likewise.
3026         * config/linux/x86/futex.h: Likewise.
3027         * config/mingw32/proc.c: Likewise.
3028         * config/mingw32/time.c: Likewise.
3029         * config/posix/affinity.c: Likewise.
3030         * config/posix/bar.c: Likewise.
3031         * config/posix/bar.h: Likewise.
3032         * config/posix/lock.c: Likewise.
3033         * config/posix/mutex.h: Likewise.
3034         * config/posix/proc.c: Likewise.
3035         * config/posix/ptrlock.h: Likewise.
3036         * config/posix/sem.c: Likewise.
3037         * config/posix/sem.h: Likewise.
3038         * config/posix/time.c: Likewise.
3039         * config/posix95/lock.c: Likewise.
3040         * critical.c: Likewise.
3041         * env.c: Likewise.
3042         * error.c: Likewise.
3043         * fortran.c: Likewise.
3044         * iter_ull.c: Likewise.
3045         * libgomp.h: Likewise.
3046         * libgomp_f.h.in: Likewise.
3047         * libgomp_g.h: Likewise.
3048         * loop.c: Likewise.
3049         * loop_ull.c: Likewise.
3050         * omp.h.in: Likewise.
3051         * omp_lib.f90.in: Likewise.
3052         * omp_lib.h.in: Likewise.
3053         * ordered.c: Likewise.
3054         * parallel.c: Likewise.
3055         * sections.c: Likewise.
3056         * single.c: Likewise.
3057         * task.c: Likewise.
3058         * team.c: Likewise.
3059         * work.c: Likewise.
3061 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
3063         * testsuite/config/default.exp: Change copyright header to refer to
3064         version 3 of the GNU General Public License and to point readers
3065         at the COPYING3 file and the FSF's license web page.
3067 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
3069         PR middle-end/39573
3070         * libgomp.c++/pr39573.C: New test.
3072 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
3074         PR other/39591
3075         * testsuite/libgomp.c/pr39591-1.c: New test.
3076         * testsuite/libgomp.c/pr39591-2.c: New test.
3077         * testsuite/libgomp.c/pr39591-3.c: New test.
3079 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
3081         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
3082         * testsuite/libgomp.c/atomic-6.c: Ditto.
3084 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
3086         PR c/39495
3087         * testsuite/libgomp.c/loop-12.c: New test.
3088         * testsuite/libgomp.c/loop-11.c: New test.
3089         * testsuite/libgomp.c++/loop-11.C: New test.
3090         * testsuite/libgomp.c++/loop-12.C: New test.
3091         * testsuite/libgomp.c++/for-8.C: New test.
3093 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3095         * configure: Regenerate.
3097 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
3099         PR middle-end/39154
3100         * testsuite/libgomp.c/pr39154.c: New test.
3102 2009-01-30  Ian Lance Taylor  <iant@google.com>
3104         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
3105         libgomp_ld_is_gold.  Get gold version number.
3106         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
3107         * configure: Rebuild.
3109 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
3111         * testsuite/lib/libgomp.exp: Add -B option for targets that
3112         use libgfortran.a%s in their specs.
3114 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
3116         PR libgomp/38086
3117         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
3118         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
3119         HAVE_AS_SYMVER_DIRECTIVE is not defined.
3120         * configure: Regenerated.
3121         * config.h.in: Likewise.
3123 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
3125         PR c++/38650
3126         * testsuite/libgomp.c/pr38650.c: New test.
3127         * testsuite/libgomp.c++/pr38650.C: New test.
3129 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
3131         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
3133 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
3135         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
3137 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3139         * configure: Regenerate.
3141 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
3143         PR middle-end/36802
3144         * testsuite/libgomp.c/pr36802-1.c: New test.
3145         * testsuite/libgomp.c/pr36802-2.c: New test.
3146         * testsuite/libgomp.c/pr36802-3.c: New test.
3148 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
3150         PR libgomp/38270
3151         * config/linux/powerpc/mutex.h: New.
3153 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
3155         PR c++/38257
3156         * testsuite/libgomp.c++/for-7.C: New test.
3158         PR c++/38348
3159         * testsuite/libgomp.c++/for-6.C: New test.
3161 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
3163         PR testsuite/28870
3164         * testsuite/lib/libgomp.exp: Include new timeout library files.
3165         (libgomp_target_compile): Set timeout value from new proc.
3167 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
3169         PR libgomp/37938
3170         * config/linux/ia64/mutex.h: New.
3172 2008-11-04  Tobias Burnus  <burnus@net-b.de>
3174         PR libgomp/37935
3175         * libgomp.texi (Runtime library routines, environment variables):
3176         Update for OpenMP version 3.0.
3178 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
3179             Steve Ellcey  <sje@cup.hp.com>
3181         * configure: Regenerate for new libtool.
3182         * Makefile.in: Ditto.
3183         * testsuite/Makefile.in: Ditto.
3185 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
3186             Andreas Tobler  <a.tobler@schweiz.org>
3188         * config/bsd/proc.c: New file.
3189         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
3190         * configure.ac: Check for header <sys/sysctl.h>
3191         * configure: Regenerate.
3192         * config.h.in: Likewise.
3194 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
3196         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
3198 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
3200         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
3201         * Makefile.in: Regenerated.
3202         * testsuite/Makefile.in: Regenerated.
3204 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
3206         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
3207         depend on blddir if blddir exists.
3208         (libgomp_target_compile): Likewise.
3209         * testsuite/libgomp.c++/c++.exp: Likewise.
3210         * testsuite/libgomp.fortran/fortran.exp: Likewise.
3212 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3214         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
3215         Do not list GPL as Invariant Section.
3217 2008-07-28  Ilie Garbacea  <ilie@mips.com>
3218             Chao-ying Fu  <fu@mips.com>
3220         * configure.tgt: Enable futex for MIPS.
3221         * config/linux/mips/futex.h: New file.
3223 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
3225         * team.c (gomp_team_end): Free team immediately if it has
3226         just one thread.
3228 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
3230         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
3231         * testsuite/libgomp.fortran/fortran.exp: Same.
3232         * testsuite/libgomp.c/c.exp: Same.
3233         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
3234         directory to library path first.
3236 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
3238         * env.c (parse_stacksize): Add cast to avoid warning.
3239         (parse_spincount): Likewise.
3241 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
3243         * testsuite/libgomp.c/loop-10.c: New test.
3244         * libgomp.c/loop-3.c (main): Add lastprivate clause.
3245         * libgomp.c++/loop-6.C (main): Likewise.
3247         PR debug/36617
3248         * testsuite/libgomp.c/debug-1.c: New test.
3250 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
3252         * testsuite/libgomp.c/nqueens-1.c: New test.
3254         PR c++/36523
3255         * testsuite/libgomp.c++/task-7.C: New function.
3257 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3259         * configure: Regenerate.
3261 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3263         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
3264         mutex when HAVE_SYNC_BUILTINS isn't defined.
3266 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3268         * libgomp.texi (omp_test_lock): Fix typo.
3270 2008-06-12  Tobias Burnus  <burnus@net-b.de>
3272         * omp_lib.f90.in: Add "implicit none".
3274 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
3276         PR middle-end/36506
3277         * testsuite/libgomp.c/reduction-5.c: New test.
3279 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
3281         * libgomp.h (struct gomp_task): Add in_tied_task field.
3282         * task.c (gomp_init_task): Initialize it.
3283         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
3284         unconditionally.  Don't call gomp_team_barrier_wake if
3285         current task is implicit or if(0) from implicit and number of
3286         running tasks is equal to nthreads - 1.
3288         PR libgomp/36471
3289         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
3290         omp_get_team_size_8): Fix pastos.
3292         PR libgomp/36469
3293         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
3294         * configure: Regenerated.
3295         * config.h.in: Regenerated.
3296         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
3297         defined.
3299 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
3301         PR bootstrap/36452
3302         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
3303         (GOMP_loop_ull_dynamic_start): Likewise.
3304         (GOMP_loop_ull_guided_start): Likewise.
3305         (GOMP_loop_ull_ordered_static_start): Likewise.
3306         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
3307         (GOMP_loop_ull_ordered_guided_start): Likewise.
3309 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
3310             Richard Henderson  <rth@redhat.com>
3311             Ulrich Drepper  <drepper@redhat.com>
3312             Jakob Blomer  <jakob.blomer@ira.uka.de>
3314         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
3315         Substitute also OMP_*LOCK_25*.
3316         * configure: Regenerated.
3317         * config.h.in: Regenerated.
3318         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
3319         ptrlock.c and task.c.
3320         * Makefile.in: Regenerated.
3321         * testsuite/Makefile.in: Regenerated.
3322         * task.c: New file.
3323         * loop_ull.c: New file.
3324         * iter_ull.c: New file.
3325         * libgomp.h: Include ptrlock.h.
3326         (enum gomp_task_kind): New type.
3327         (struct gomp_team): Add task_lock, task_queue, task_count,
3328         task_running_count, single_count fields.  Add
3329         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
3330         Remove work_share_lock, generation_mask,
3331         oldest_live_gen, num_live_gen and init_work_shares fields, add
3332         work work_share_list_alloc, work_share_list_free and work_share_chunk
3333         fields.  Change work_shares from pointer to pointers into an array.
3334         Change ordered_release field into gomp_sem_t ** from flexible array
3335         member.  Add implicit_task and initial_work_shares fields.
3336         Move close to the end of the struct.
3337         (struct gomp_team_state): Add single_count, last_work_share,
3338         active_level and level fields, remove work_share_generation.
3339         (gomp_barrier_handle_tasks): New prototype.
3340         (gomp_finish_task): New inline function.
3341         (struct gomp_work_share): Move chunk_size, end, incr into
3342         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
3343         next_ll fields.  Reshuffle fields.  Add next_alloc,
3344         next_ws, next_free and inline_ordered_team_ids fields, change
3345         ordered_team_ids into pointer from flexible array member.
3346         Add mode field.  Put lock and next into a different cache line
3347         from most of the write-once fields.
3348         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
3349         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
3350         gomp_iter_ull_guided_next): New prototypes.
3351         (gomp_new_icv): New prototype.
3352         (struct gomp_thread): Add thread_pool and task fields.
3353         (struct gomp_thread_pool): New type.
3354         (gomp_new_team): New prototype.
3355         (gomp_team_start): Change type of last argument.
3356         (gomp_new_work_share): Removed.
3357         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
3358         (gomp_work_share_init_done): New static inline.
3359         (gomp_throttled_spin_count_var, gomp_available_cpus,
3360         gomp_managed_threads): New extern decls.
3361         (gomp_init_task): New prototype.
3362         (gomp_spin_count_var): New extern var decl.
3363         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
3364         or no alias support, or if not PIC.
3365         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
3366         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
3367         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
3368         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
3369         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
3370         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
3371         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
3372         gomp_test_nest_lock_25): New prototypes.
3373         (omp_lock_symver, strong_alias): Define.
3374         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
3375         decls.
3376         (gomp_end_task): New.
3377         (struct gomp_task_icv, gomp_global_icv): New.
3378         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
3379         (struct gomp_task): New.
3380         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
3381         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
3382         (gomp_icv): New.
3383         (gomp_schedule_type): Reorder enum to match
3384         omp_sched_t.
3385         * team.c (struct gomp_thread_start_data): Add thread_pool and task
3386         fields.
3387         (gomp_thread_start): Add gomp_team_barrier_wait call.
3388         For non-nested case remove clearing of docked thread thr fields.
3389         Use pool fields instead of global gomp_* variables.  Use
3390         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
3391         Create tasks for each member thread.
3392         (free_team): Only destroy team barrier, task_lock here and free it.
3393         (gomp_free_thread): Free last_team if non-NULL.
3394         (gomp_team_end): Call gomp_team_barrier_wait instead of
3395         gomp_barrier_wait.  For nested case call one extra
3396         gomp_barrier_wait.  Move here some destruction from free_team.
3397         Call free_team on pool->last_team if any, rather than freeing
3398         current team.  Destroy work_share_list_free_lock ifndef
3399         HAVE_SYNC_BUILTINS.
3400         (gomp_new_icv): New function.
3401         (gomp_threads, gomp_threads_size, gomp_threads_used,
3402         gomp_threads_dock): Removed.
3403         (gomp_thread_destructor): New variable.
3404         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
3405         functions.
3406         (gomp_team_start): Create new pool if current thread doesn't have
3407         one.  Use pool fields instead of global gomp_* variables.
3408         Initialize thread_pool field for new threads.  Clear single_count.
3409         Change last argument from ws to team, don't create
3410         new team, set ts.work_share to &team->work_shares[0] and clear
3411         ts.last_work_share.  Don't clear ts.work_share_generation.
3412         If number of threads changed, adjust atomically gomp_managed_threads.
3413         Use gomp_init_task instead of gomp_new_task,
3414         set thr->task to the corresponding implicit_task array entry.
3415         Create tasks for each member thread.  Initialize ts.level.
3416         (initialize_team): Call pthread_key_create on
3417         gomp_thread_destructor.
3418         (team_destructor): New function.
3419         (new_team): Removed.
3420         (gomp_new_team): New function.
3421         (free_team): Free gomp_work_share blocks chained through next_alloc,
3422         instead of freeing work_shares and destroying work_share_lock.
3423         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
3424         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
3425         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
3426         of gomp_barrier_wait.
3427         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
3428         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
3429         if gomp_work_share_start returned true.  Don't unlock ws->lock.
3430         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
3431         of gomp_barrier_wait.
3432         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
3433         gomp_work_share_init_done if gomp_work_share_start returned true.
3434         Don't unlock ws->lock.
3435         * work.c: Include stddef.h.
3436         (free_work_share): Use work_share_list_free_lock instead
3437         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
3438         Call gomp_fini_work_share and then either free ws if orphaned, or
3439         put it into work_share_list_free list of the current team.
3440         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
3441         functions.
3442         (gomp_work_share_start, gomp_work_share_end,
3443         gomp_work_share_end_nowait): Rewritten.
3444         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
3445         (openmp_version): Set to 200805.
3446         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
3447         omp_sched_guided, omp_sched_auto): New parameters.
3448         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3449         omp_set_max_active_levels, omp_get_max_active_levels,
3450         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3451         omp_get_active_level): New interfaces.
3452         * omp_lib.h.in (openmp_version): Set to 200805.
3453         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
3454         omp_sched_guided, omp_sched_auto): New parameters.
3455         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3456         omp_set_max_active_levels, omp_get_max_active_levels,
3457         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3458         omp_get_active_level): New externals.
3459         * loop.c: Include limits.h.
3460         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
3461         GFS_AUTO.
3462         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
3463         Likewise.  Use gomp_icv.
3464         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
3465         ts.static_trip here.
3466         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
3467         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
3468         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
3469         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
3470         don't unlock ws->lock, otherwise lock it.
3471         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
3472         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
3473         (gomp_parallel_loop_start): Call gomp_new_team instead of
3474         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
3475         Adjust gomp_team_start caller.  Pass 0 as second argument to
3476         gomp_resolve_num_threads.
3477         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
3478         If adding ws->chunk_size nthreads + 1 times after end won't
3479         overflow, set ws->mode to 1.
3480         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
3481         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
3482         GOMP_loop_ull_ordered_static_start,
3483         GOMP_loop_ull_ordered_dynamic_start,
3484         GOMP_loop_ull_ordered_guided_start,
3485         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
3486         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
3487         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
3488         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
3489         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
3490         prototypes.
3491         * libgomp.map: Export lock routines also @@OMP_2.0.
3492         (GOMP_loop_ordered_dynamic_first,
3493         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
3494         GOMP_loop_ordered_static_first): Remove.
3495         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
3496         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
3497         GOMP_loop_ull_ordered_dynamic_next,
3498         GOMP_loop_ull_ordered_dynamic_start,
3499         GOMP_loop_ull_ordered_guided_next,
3500         GOMP_loop_ull_ordered_guided_start,
3501         GOMP_loop_ull_ordered_runtime_next,
3502         GOMP_loop_ull_ordered_runtime_start,
3503         GOMP_loop_ull_ordered_static_next,
3504         GOMP_loop_ull_ordered_static_start,
3505         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
3506         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
3507         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
3508         (omp_set_schedule, omp_get_schedule,
3509         omp_get_thread_limit, omp_set_max_active_levels,
3510         omp_get_max_active_levels, omp_get_level,
3511         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
3512         omp_set_schedule_, omp_set_schedule_8_,
3513         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
3514         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
3515         omp_get_max_active_levels_, omp_get_level_,
3516         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
3517         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
3518         New exports @@OMP_3.0.
3519         * omp.h.in (omp_sched_t): New type.
3520         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3521         omp_set_max_active_levels, omp_get_max_active_levels,
3522         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
3523         omp_get_active_level): New prototypes.
3524         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
3525         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
3526         gomp_thread_limit_var, gomp_remaining_threads_count,
3527         gomp_remaining_threads_lock): New variables.
3528         (parse_spincount): New function.
3529         (initialize_env): Call gomp_init_num_threads unconditionally.
3530         Initialize gomp_available_cpus.  Call parse_spincount,
3531         initialize gomp_{,throttled_}spin_count_var
3532         depending on presence and value of OMP_WAIT_POLICY and
3533         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
3534         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
3535         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
3536         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
3537         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
3538         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
3539         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
3540         (gomp_global_icv): New.
3541         (parse_schedule): Use it.  Parse "auto".
3542         (omp_set_num_threads): Use gomp_icv.
3543         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
3544         Likewise.
3545         (omp_get_max_threads): Move from parallel.c.
3546         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
3547         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
3548         add ialias.
3549         (parse_stacksize, parse_wait_policy): New functions.
3550         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
3551         both wrappers for compatibility and new locks.
3552         (omp_set_schedule, omp_get_schedule,
3553         omp_get_thread_limit, omp_set_max_active_levels,
3554         omp_get_max_active_levels, omp_get_level,
3555         omp_get_ancestor_thread_num, omp_get_team_size,
3556         omp_get_active_level): New ialias_redirect.
3557         (omp_set_schedule_, omp_set_schedule_8_,
3558         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
3559         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
3560         omp_get_max_active_levels_, omp_get_level_,
3561         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
3562         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
3563         New functions.
3564         * parallel.c: Include limits.h.
3565         (gomp_resolve_num_threads): Add count argument.  Rewritten.
3566         (GOMP_parallel_start): Call gomp_new_team and pass that as last
3567         argument to gomp_team_start.  Pass 0 as second argument to
3568         gomp_resolve_num_threads.
3569         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
3570         if gomp_thread_limit_var != ULONG_MAX.
3571         (omp_in_parallel): Implement using ts.active_level.
3572         (omp_get_max_threads): Move to env.c.
3573         (omp_get_level, omp_get_ancestor_thread_num,
3574         omp_get_team_size, omp_get_active_level): New functions,
3575         add ialias.
3576         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
3577         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
3578         gomp_iter_dynamic_next instead of the _locked variant and don't take
3579         lock around it, otherwise acquire it before calling
3580         gomp_iter_dynamic_next_locked.
3581         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
3582         gomp_iter_dynamic_next instead of the _locked variant and don't take
3583         lock around it.
3584         (GOMP_parallel_sections_start): Call gomp_new_team instead of
3585         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
3586         Adjust gomp_team_start caller.  Pass count as second argument to
3587         gomp_resolve_num_threads, don't adjust num_threads after the call.
3588         Use gomp_icv.
3589         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
3590         ws->chunk_size by incr.
3591         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
3592         code.
3593         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
3594         types.
3595         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
3596         (omp_check_defines): Check even the compat defines.
3597         * config/linux/ptrlock.c: New file.
3598         * config/linux/ptrlock.h: New file.
3599         * config/linux/wait.h: New file.
3600         * config/posix/ptrlock.c: New file.
3601         * config/posix/ptrlock.h: New file.
3602         * config/linux/bar.h (gomp_team_barrier_wait,
3603         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
3604         (gomp_team_barrier_set_task_pending,
3605         gomp_team_barrier_clear_task_pending,
3606         gomp_team_barrier_set_waiting_for_tasks,
3607         gomp_team_barrier_waiting_for_tasks,
3608         gomp_team_barrier_done): New inlines.
3609         (gomp_barrier_t): Rewritten.
3610         (gomp_barrier_state_t): New typedef.
3611         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
3612         gomp_barrier_wait_start): Rewritten.
3613         (gomp_barrier_wait_end): Change second argument to
3614         gomp_barrier_state_t.
3615         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
3616         inlines.
3617         * config/linux/bar.c: Include wait.h instead of libgomp.h and
3618         futex.h.
3619         (gomp_barrier_wait_end): Rewritten.
3620         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
3621         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
3622         * config/posix/bar.h (gomp_barrier_t): Add generation field.
3623         (gomp_barrier_state_t): New typedef.
3624         (gomp_team_barrier_wait,
3625         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
3626         (gomp_barrier_wait_start): Or all but low 2 bits from generation
3627         into the return value.  Return gomp_barrier_state_t.
3628         (gomp_team_barrier_set_task_pending,
3629         gomp_team_barrier_clear_task_pending,
3630         gomp_team_barrier_set_waiting_for_tasks,
3631         gomp_team_barrier_waiting_for_tasks,
3632         gomp_team_barrier_done): New inlines.
3633         (gomp_barrier_wait_end): Change second argument to
3634         gomp_barrier_state_t.
3635         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
3636         inlines.
3637         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
3638         (gomp_barrier_wait_end): Change second argument to
3639         gomp_barrier_state_t.
3640         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
3641         gomp_team_barrier_wake): New functions.
3642         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
3643         futex.h.
3644         (gomp_futex_wake, gomp_futex_wait): New variables.
3645         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
3646         * config/linux/lock.c: Rewrite to make locks task owned,
3647         for backwards compatibility provide the old entrypoints
3648         if symbol versioning.  Include wait.h instead of libgomp.h and
3649         futex.h.
3650         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
3651         * config/posix95/lock.c: Rewrite to make locks task owned,
3652         for backwards compatibility provide the old entrypoints
3653         if symbol versioning.
3654         * config/posix/lock.c: Rewrite to make locks task owned,
3655         for backwards compatibility provide the old entrypoints
3656         if symbol versioning.
3657         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
3658         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
3659         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
3660         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3661         (sys_futex0): Return error code.
3662         (futex_wake, futex_wait): If ENOSYS was returned, clear
3663         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3664         (cpu_relax, atomic_write_barrier): New static inlines.
3665         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3666         (futex_wake, futex_wait): If ENOSYS was returned, clear
3667         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3668         (cpu_relax, atomic_write_barrier): New static inlines.
3669         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3670         (sys_futex0): Return error code.
3671         (futex_wake, futex_wait): If ENOSYS was returned, clear
3672         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3673         (cpu_relax, atomic_write_barrier): New static inlines.
3674         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3675         (sys_futex0): Return error code.
3676         (futex_wake, futex_wait): If ENOSYS was returned, clear
3677         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3678         (cpu_relax, atomic_write_barrier): New static inlines.
3679         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3680         (sys_futex0): Return error code.
3681         (futex_wake, futex_wait): If ENOSYS was returned, clear
3682         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3683         (cpu_relax, atomic_write_barrier): New static inlines.
3684         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3685         (sys_futex0): Return error code.
3686         (futex_wake, futex_wait): If ENOSYS was returned, clear
3687         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3688         (cpu_relax, atomic_write_barrier): New static inlines.
3689         * config/linux/sem.c: Include wait.h instead of libgomp.h and
3690         futex.h.
3691         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
3692         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
3693         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
3694         types.
3695         (omp_nest_lock_t): Change owner into void *, add lock field.
3696         * config/posix95/omp-lock.h: Include semaphore.h.
3697         (omp_lock_25_t, omp_nest_lock_25_t): New types.
3698         (omp_lock_t): Use sem_t instead of mutex if semaphores
3699         aren't broken.
3700         (omp_nest_lock_t): Likewise.  Change owner to void *.
3701         * config/posix/omp-lock.h: Include semaphore.h.
3702         (omp_lock_25_t, omp_nest_lock_25_t): New types.
3703         (omp_lock_t): Use sem_t instead of mutex if semaphores
3704         aren't broken.
3705         (omp_nest_lock_t): Likewise.  Add owner field.
3707 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
3709         * testsuite/libgomp.c/collapse-1.c: New test.
3710         * testsuite/libgomp.c/collapse-2.c: New test.
3711         * testsuite/libgomp.c/collapse-3.c: New test.
3712         * testsuite/libgomp.c/icv-1.c: New test.
3713         * testsuite/libgomp.c/icv-2.c: New test.
3714         * testsuite/libgomp.c/lib-2.c: New test.
3715         * testsuite/libgomp.c/lock-1.c: New test.
3716         * testsuite/libgomp.c/lock-2.c: New test.
3717         * testsuite/libgomp.c/lock-3.c: New test.
3718         * testsuite/libgomp.c/loop-4.c: New test.
3719         * testsuite/libgomp.c/loop-5.c: New test.
3720         * testsuite/libgomp.c/loop-6.c: New test.
3721         * testsuite/libgomp.c/loop-7.c: New test.
3722         * testsuite/libgomp.c/loop-8.c: New test.
3723         * testsuite/libgomp.c/loop-9.c: New test.
3724         * testsuite/libgomp.c/nested-3.c: New test.
3725         * testsuite/libgomp.c/nestedfn-6.c: New test.
3726         * testsuite/libgomp.c/sort-1.c: New test.
3727         * testsuite/libgomp.c/task-1.c: New test.
3728         * testsuite/libgomp.c/task-2.c: New test.
3729         * testsuite/libgomp.c/task-3.c: New test.
3730         * testsuite/libgomp.c/task-4.c: New test.
3731         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
3732         to C++ testsuite default compiler options.
3733         * testsuite/libgomp.c++/collapse-1.C: New test.
3734         * testsuite/libgomp.c++/collapse-2.C: New test.
3735         * testsuite/libgomp.c++/ctor-10.C: New test.
3736         * testsuite/libgomp.c++/for-1.C: New test.
3737         * testsuite/libgomp.c++/for-2.C: New test.
3738         * testsuite/libgomp.c++/for-3.C: New test.
3739         * testsuite/libgomp.c++/for-4.C: New test.
3740         * testsuite/libgomp.c++/for-5.C: New test.
3741         * testsuite/libgomp.c++/loop-8.C: New test.
3742         * testsuite/libgomp.c++/loop-9.C: New test.
3743         * testsuite/libgomp.c++/loop-10.C: New test.
3744         * testsuite/libgomp.c++/task-1.C: New test.
3745         * testsuite/libgomp.c++/task-2.C: New test.
3746         * testsuite/libgomp.c++/task-3.C: New test.
3747         * testsuite/libgomp.c++/task-4.C: New test.
3748         * testsuite/libgomp.c++/task-5.C: New test.
3749         * testsuite/libgomp.c++/task-6.C: New test.
3750         * testsuite/libgomp.fortran/allocatable1.f90: New test.
3751         * testsuite/libgomp.fortran/allocatable2.f90: New test.
3752         * testsuite/libgomp.fortran/allocatable3.f90: New test.
3753         * testsuite/libgomp.fortran/allocatable4.f90: New test.
3754         * testsuite/libgomp.fortran/collapse1.f90: New test.
3755         * testsuite/libgomp.fortran/collapse2.f90: New test.
3756         * testsuite/libgomp.fortran/collapse3.f90: New test.
3757         * testsuite/libgomp.fortran/collapse4.f90: New test.
3758         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
3759         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
3760         * testsuite/libgomp.fortran/lib4.f90: New test.
3761         * testsuite/libgomp.fortran/lock-1.f90: New test.
3762         * testsuite/libgomp.fortran/lock-2.f90: New test.
3763         * testsuite/libgomp.fortran/nested1.f90: New test.
3764         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
3765         * testsuite/libgomp.fortran/strassen.f90: New test.
3766         * testsuite/libgomp.fortran/tabs1.f90: New test.
3767         * testsuite/libgomp.fortran/tabs2.f: New test.
3768         * testsuite/libgomp.fortran/task1.f90: New test.
3769         * testsuite/libgomp.fortran/task2.f90: New test.
3770         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
3771         * testsuite/libgomp.fortran/vla5.f90: Likewise.
3772         * testsuite/libgomp.c/pr26943-2.c: Likewise.
3773         * testsuite/libgomp.c/pr26943-3.c: Likewise.
3774         * testsuite/libgomp.c/pr26943-4.c: Likewise.
3776 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
3778         PR c++/36308
3779         * testsuite/libgomp.c++/ctor-11.C: New test.
3780         * testsuite/libgomp.c++/ctor-12.C: New test.
3782 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
3784         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
3786 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
3788         PR middle-end/36106
3789         * testsuite/libgomp.c/atomic-5.c: New test.
3790         * testsuite/libgomp.c/atomic-6.c: New test.
3791         * testsuite/libgomp.c/autopar-1.c: New test.
3793 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3795         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
3796         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
3797         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
3798         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
3799         * configure: Regenerate.
3800         * Makefile.in, testsuite/Makefile.in: Likewise.
3802 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
3804         PR bootstrap/35457
3805         * aclocal.m4: Regenerate.
3806         * configure: Regenerate.
3808 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
3810         PR middle-end/35611
3811         * testsuite/libgomp.c/atomic-4.c: New test.
3813         PR libgomp/35625
3814         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
3815         (gomp_iter_guided_next): Likewise.
3816         * testsuite/libgomp.c/pr35625.c: New test.
3818 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3820         * aclocal.m4: Regenerate.
3821         * configure: Likewise.
3822         * Makefile.in: Likewise.
3823         * testsuite/Makefile.in: Likewise.
3825 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
3827         PR middle-end/35185
3828         * testsuite/libgomp.c++/pr35185.C: New test.
3830 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
3832         PR middle-end/35549
3833         * testsuite/libgomp.c/pr35549.c: New test.
3835 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
3837         * testsuite/libgomp.c/atomic-3.c: New test.
3839 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3841         PR fortran/33197
3842         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
3843         .F08 file suffixes.
3845 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
3847         PR libgomp/33131
3848         * configure.ac: Add ACX_HEADER_STRING.
3849         * env.c: Include strings.h.
3850         * aclocal.m4: Regenerate.
3851         * config.h.in: Regenerate.
3852         * configure: Regenerate.
3853         * Makefile.in: Regenerate.
3854         * testsuite/Makefile.in: Regenerate.
3856 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
3858         PR middle-end/35196
3859         * testsuite/libgomp.c/pr35196.c: New test.
3861         PR middle-end/35130
3862         * testsuite/libgomp.fortran/pr35130.f90: New test.
3863         * testsuite/libgomp.c/pr35130.c: New test.
3865 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
3867         PR middle-end/33880
3868         * testsuite/libgomp.c/pr33880.c: New test.
3869         * testsuite/libgomp.fortran/pr33880.f90: New test.
3871 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
3873         * configure: Regenerate.
3875 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
3877         * configure.ac: Move futex checking into ../config/futex.m4.
3878         * configure: Rebuilt.
3879         * aclocal.m4: Rebuilt.
3880         * Makefile.in: Rebuilt.
3882         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
3883         2007-10-15 ../config/tls.m4 change.
3885 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
3887         PR c++/34513
3888         * testsuite/libgomp.c/pr34513.c: New test.
3889         * testsuite/libgomp.c++/pr34513.C: New test.
3891 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
3893         PR target/32765
3894         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
3896 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
3898         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
3900 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
3902         * testsuite/libgomp.c/private-1.c: New test.
3904 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
3905             Paolo Bonzini  <bonzini@gnu.org>
3907         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
3908         instead of 'VPATH ='.
3909         * Makefile.in: Regenerate.
3911 2007-11-23  Matthias Klose  <doko@ubuntu.com>
3913         * configure.ac: Adjust makeinfo version check.
3914         * configure: Regenerate.
3916 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
3918         PR fortran/34020
3919         * testsuite/libgomp.fortran/pr34020.f90: New test.
3921 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
3923         PR c++/33894
3924         * testsuite/libgomp.c++/atomic-1.C: New test.
3926 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
3928         PR libgomp/33275
3929         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
3930         Make x and y integers rather than (implicit) reals.  Add private (j)
3931         clause to the last omp parallel.
3933 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
3935         * configure: Regenerate following changes to ../config/tls.m4.
3937 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
3939         * testsuite/libgomp.fortran/stack.f90: New test.
3941 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
3943         * config/mingw32/proc.c: New file.
3945 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
3947         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
3948         (main): Use __get_cpuid to get i386 target fetaures.
3949         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
3950         (main): Use __get_cpuid to get x86_64 target fetaures.
3952 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
3954         PR target/32765
3955         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
3956         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
3958 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
3960         PR fortran/32550
3961         * testsuite/libgomp.fortran/pr32550.f90: New test.
3962         * testsuite/libgomp.fortran/crayptr2.f90: New test.
3964 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
3966         * aclocal.m4: Regenerated.
3968 2007-07-05  Tobias Burnus  <burnus@net-b.de>
3970         PR fortran/32359
3971         * testsuite/libgomp.fortran/pr32359.f90: New.
3973 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
3975         PR libgomp/32468
3976         * sections.c (GOMP_parallel_sections_start): Only decrease
3977         number of threads to COUNT if dyn_var is true.
3978         * testsuite/libgomp.c/pr32468.c: New test.
3980 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3982         PR libgomp/26308
3983         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
3985 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
3987         PR middle-end/32362
3988         * testsuite/libgomp.c/pr32362-1.c: New test.
3989         * testsuite/libgomp.c/pr32362-2.c: New test.
3990         * testsuite/libgomp.c/pr32362-3.c: New test.
3992 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
3994         * team.c (gomp_team_start): Fix setting up thread_attr
3995         stack size.
3997 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
3999         * configure: Regenerate.
4001 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
4003         * Makefile.in: Regenerate.
4004         * configure: Regenerate.
4005         * aclocal.m4: Regenerate.
4006         * testsuite/Makefile.in: Regenerate.
4008 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
4010         * config/linux/proc.c: New file.
4012         PR libgomp/28482
4013         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
4015 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
4017         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
4019 2007-04-16  Matthias Klose  <doko@debian.org>
4021         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
4022         flags if not building with -m64.
4023         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
4024         flag for i?86-*-* targets, if current target matches -m64.
4026 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
4028         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
4029         * Makefile.in: Regenerate.
4031 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4033         PR testsuite/31369
4034         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
4035         ld_library_path.
4036         * testsuite/libgomp.fortran/fortran.exp: Likewise.
4038 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
4040         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
4041         decls.
4042         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
4043         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
4044         (parse_affinity): New function.
4045         (initialize_env): Call it and gomp_init_affinity.
4046         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
4047         create new pthread_attr_t and call gomp_init_thread_affinity
4048         on it for each thread before passing the attribute to pthread_create.
4049         * config/linux/affinity.c: New file.
4050         * config/posix/affinity.c: New file.
4051         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
4052         * configure: Rebuilt.
4053         * config.h.in: Rebuilt.
4054         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
4055         * Makefile.in: Rebuilt.
4057 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
4059         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
4060         *-*-darwin*.
4061         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
4062         and use it if found.
4064 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
4066         * testsuite/config/default.exp: New file.
4067         * testsuite/lib/libgomp.exp: New file.
4068         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
4069         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
4070         load_lib *, load_gcc_lib *): Move to libgomp.exp.
4071         (libgomp_load): Remove.
4072         * testsuite/lib/libgomp.exp (libgomp_init): Compute
4073         always_ld_library_path, not ld_library_path.  Set additional_flags
4074         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
4075         (target_compile): Do not call libgomp_init.  Append lang_library_path
4076         and lang_link_flags to options.
4077         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
4078         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
4079         here.
4080         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
4081         always_ld_library_path.  Set LD_LIBRARY_PATH here.
4082         * testsuite/libgomp.fortran/fortran.exp: Ditto.
4083         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
4084         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
4085         CX8 flag.
4086         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
4087         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
4088         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
4089         * testsuite/libgomp.c/pr29947-1.c: Ditto.
4090         * testsuite/libgomp.c/atomic-10.c: Ditto.
4092 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
4094         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
4095         dg-final cleanup-modules line.
4096         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
4097         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
4098         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
4099         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
4100         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
4101         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
4102         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
4104 2007-03-18  Andreas Schwab  <schwab@suse.de>
4106         * acinclude.m4: Adjust regular expression for ld version
4107         extraction.
4108         * configure: Regenerate.
4110 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
4112         * Makefile.am: Add install-pdf target as copied from
4113         automake v1.10 rules.
4114         * Makefile.in: Regenerate
4116 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
4118         PR libgomp/28486
4119         * configure: Regenerate.
4121         PR c++/30703
4122         * testsuite/libgomp.c++/pr30703.C: New test.
4124 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
4126         Revert:
4127         2006-07-05  Eric Christopher  <echristo@apple.com>
4128         * configure.ac: Depend addition of -pthread on host OS.
4129         * configure: Regenerate.
4131 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4133         * libgomp.texi: Fix spacing after abbreviations.
4135 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
4137         PR libgomp/30546
4138         * configure.ac: Add check for makeinfo
4139         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
4140         if an appropiate version of makeinfo is found.
4141         * aclocal.m4: Regenerated.
4142         * configure: Regenerated.
4143         * Makefile.in: Regenerated.
4144         * testsuite/Makefile.in: Regenerated.
4146 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
4148         PR libgomp/30540
4149         * libgomp.texi: More about implementation-dependent settings.
4151 2007-01-26  Tobias Burnus  <burnus@net-b.de>
4153         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
4155 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
4157         PR middle-end/30494
4158         * testsuite/libgomp.c/pr30494.c: New test.
4160 2007-01-15  Tom Tromey  <tromey@redhat.com>
4162         * configure: Rebuilt.
4163         * configure.ac: Fixed comment.
4165 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
4167         * libgomp.texi: Document implementation specific default values of
4168         environment variables.
4170 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
4172         PR libgomp/28209
4173         * libgomp.texi: New file.
4174         * configure.ac: Add --enable-generated-files-in-srcdir option.
4175         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
4176         files to srcdir.
4177         * Makefile.in: Regenerated.
4178         * config.h.in: Regenerated.
4179         * testsuite/Makefile.in: Regenerated.
4180         * NOTES: Removed.
4182 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
4184         PR libgomp/29949
4185         * env.c (omp_set_num_threads): Set illegal thread count to 1.
4187 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
4189         * configure: Regenerate.
4191 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
4193         PR libgomp/29947
4194         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
4195         start if there shouldn't be any loop iterations.
4196         (gomp_loop_ordered_static_start): Remove start == end test.
4197         * testsuite/libgomp.c/pr29947-1.c: New test.
4198         * testsuite/libgomp.c/pr29947-2.c: New test.
4200 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
4202         * configure.tgt: Force initial-exec TLS model on Linux only.
4204 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
4206         * configure: Regenerated.
4208 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
4210         * env.c (parse_schedule): Reject out of range values.
4211         (parse_unsigned_long): Reject out of range, negative or zero values.
4213 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
4215         PR fortran/29629
4216         * testsuite/libgomp.fortran/pr29629.f90: New test.
4218 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
4220         PR libgomp/29494
4221         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
4222         * config/posix95: New directory.
4223         * config/posix95/omp-lock.h: New file.
4224         * config/posix95/lock.c: Likewise.
4226 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
4228         * aclocal.m4: Regenerate.
4229         * configure: Regenerate.
4231 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
4233         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
4234         '<' to '<='.
4236 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
4238         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
4239         test.
4240         * configure: Regenerate.
4241         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
4243 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
4245         PR middle-end/25261
4246         PR middle-end/28790
4247         * testsuite/libgomp.c/nestedfn-4.c: New test.
4248         * testsuite/libgomp.c/nestedfn-5.c: New test.
4249         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
4251         PR fortran/29097
4252         * testsuite/libgomp.fortran/condinc1.f: New test.
4253         * testsuite/libgomp.fortran/condinc2.f: New test.
4254         * testsuite/libgomp.fortran/condinc3.f90: New test.
4255         * testsuite/libgomp.fortran/condinc4.f90: New test.
4256         * testsuite/libgomp.fortran/condinc1.inc: New file.
4258 2006-09-18  Tom Tromey  <tromey@redhat.com>
4260         * configure: Rebuilt.
4262 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
4264         PR c/28768
4265         PR preprocessor/14634
4266         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
4267         to AC_DEFINE.
4268         * configure: Regenerate.
4270 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
4272         * testsuite/libgomp.fortran/reduction3.f90: Change
4273         -2147483648 to -huge(i)-1 to avoid overflow.
4274         * testsuite/libgomp.fortran/reduction4.f90: Change
4275         Z'ffffffff' to not(0) to avoid overflow.
4277 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
4279         PR libgomp/25938
4280         * Makefile.am (libsubincludedir): New.
4281         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
4282         * Makefile.in: Regenerate.
4284 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
4286         PR libgomp/28725
4287         * env.c: Include ctype.h.
4288         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
4289         leading and/or trailing whitespace and compare strings case
4290         insensitively.
4292 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
4294         PR fortran/28390
4295         * testsuite/libgomp.fortran/pr28390.f: New test.
4297 2006-07-05  Eric Christopher  <echristo@apple.com>
4299         * configure.ac: Depend addition of -pthread on host OS.
4300         * configure: Regenerate.
4302 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
4304         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
4305         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
4306         defined.
4308 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
4310         PR libgomp/26175
4311         PR libgomp/26477
4312         * configure.ac: If neither --enable-linux-futex nor
4313         --disable-linux-futex is passed, determine the default by checking
4314         for compiling and/or running against NPTL.  With --enable-linux-futex,
4315         check if SYS_gettid and SYS_futex are defined.
4316         * configure: Rebuilt.
4318 2006-06-14  Richard Henderson  <rth@redhat.com>
4320         PR libgomp/28008
4321         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
4322         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
4324 2006-06-09  Richard Henderson  <rth@redhat.com>
4326         * env.c (gomp_nthreads_var): Change to unsigned long.
4327         (gomp_run_sched_chunk): Likewise.
4328         (parse_unsigned_long): Rename from parse_num_threads and generalize.
4329         (initialize_env): Initialize gomp_thread_attr.
4330         * libgomp.h (gomp_nthreads_var): Update decl.
4331         (gomp_run_sched_chunk): Likewise.
4332         (gomp_thread_attr): Declare.
4333         * team.c (gomp_thread_attr): Export.
4334         (initialize_team): Don't initialize it.
4336 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
4338         PR fortran/27916
4339         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
4340         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
4342 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
4344         * config/mingw32/time.c: New file.
4345         * configure.tgt: Use it.
4347 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
4349         * Makefile.am: Add install-html target. Add install-html to .PHONY
4350         * Makefile.in: Regenerate.
4352 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4354         PR libgomp/27612
4355         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
4356         * testsuite/libgomp.c/critical-1.c: Likewise.
4357         * testsuite/libgomp.c/loop-1.c: Likewise.
4358         * testsuite/libgomp.c/loop-2.c: Likewise.
4359         * testsuite/libgomp.c/single-1.c: Likewise.
4360         * testsuite/libgomp.c/ordered-1.c: Likewise.
4361         * testsuite/libgomp.c/ordered-2.c: Likewise.
4363 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
4365         PR middle-end/27416
4366         * libgomp.fortran/pr27416-1.f90: New test.
4368 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
4370         PR fortran/27395
4371         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
4372         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
4374 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
4376         PR c++/26943
4377         * testsuite/libgomp.c/pr26943-1.c: New test.
4378         * testsuite/libgomp.c/pr26943-2.c: New test.
4379         * testsuite/libgomp.c/pr26943-3.c: New test.
4380         * testsuite/libgomp.c/pr26943-4.c: New test.
4381         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
4382         * testsuite/libgomp.c++/pr26943.C: New test.
4384 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
4386         PR middle-end/27337
4387         * testsuite/libgomp.c++/pr27337.C: New test.
4389 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
4391         PR c/26171
4392         * testsuite/libgomp.c/pr26171.c: New test.
4394 2006-04-25  Richard Henderson  <rth@redhat.com>
4396         PR libgomp/25865
4397         * configure.ac: Use GCC_CHECK_TLS.
4398         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
4399         * Makefile.in, aclocal.m4, configure: Regenerate.
4401 2006-04-10  Matthias Klose  <doko@debian.org>
4403         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
4404         directory names containing underscores.
4406 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
4408         PR c++/26691
4409         * testsuite/libgomp.c++/pr26691.C: New test.
4411 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
4413         * testsuite/libgomp.fortran/retval2.f90: New test.
4415 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
4417         * testsuite/libgomp.c++: New directory.
4419 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
4421         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
4422         * config/posix/sem.c: Implement the above.
4424 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
4426         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
4427         define HAVE_BROKEN_POSIX_SEMAPHORES.
4428         * configure: Rebuilt.
4429         * config.h.in: Rebuilt.
4431 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
4433         PR bootstrap/26161
4434         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
4435         for the other pthread check.
4436         * configure: Regenerate.
4437         * config.h.in: Regenerate.
4439 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
4441         PR libgomp/25938
4442         PR libgomp/25984
4443         * Makefile.am (fincludedir): New variable.
4444         (nodist_include_HEADERS): Remove Fortran files.
4445         (nodist_finclude_HEADERS): New variable.
4446         * Makefile.in: Regenerated.
4448 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
4450         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
4451         Remove tests for returning assumed character length arrays.
4453 2006-02-12  Roger Sayle  <roger@eyesopen.com>
4454             John David Anglin  <dave@hiauly1.hia.nrc.ca>
4456         PR libgomp/25936
4457         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
4459 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
4461         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
4463 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
4465         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
4466         part of LD_LIBRARY_PATH manually.
4468 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
4470         PR libgomp/25852
4471         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
4472         libgomp_init.
4474 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
4476         PR libgomp/25884
4477         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
4478         * configure.ac (PERL): Don't set.
4479         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
4480         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
4481         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
4482         * omp.h.in: Wrap the new configure substitutions with @ characters.
4483         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
4484         * aclocal.m4, configure, Makefile.in: Regenerate.
4485         * mkomp_h.pl: Delete.
4487 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
4489         PR libgomp/25259
4490         * configure.ac: Use GCC_HEADER_STDINT.
4491         * libgomp.h: Include gstdint.h.
4492         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
4493         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
4495 2006-01-24  Richard Henderson  <rth@redhat.com>
4497         PR libgomp/25942
4498         * configure.ac: Add AM_MAINTAINER_MODE.
4499         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
4501 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
4503         * Makefile.in: Regenerate.
4504         * testsuite/Makefile.in: Regenerate.
4505         * aclocal.m4: Regenerate.
4507 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
4509         * config/posix/proc.c: Conditional include of sys/loadavg.h for
4510         Solaris.
4511         * configure.ac: Add check for loadavg.h.
4512         (link_gomp): Adjust comment.
4513         * configure: Regenerate.
4514         * config.h.in: Regenerate.
4516 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
4518         PR libgomp/25877
4519         * configure.ac: Remove check for alloca.h.
4520         * configure: Regenerate.
4521         * config.h.in: Regenerate.
4522         * libgomp.h: define gomp_alloca to be __builtin_alloca.
4523         * team.c: Remove use of alloca.h.
4524         Call gomp_alloca instead of alloca.
4526 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
4528         PR libgomp/25877
4529         * team.c: Add include of alloca.h.
4530         * configure.ac: Add check for alloca.h.
4531         * configure: Regenerate.
4532         * config.h.in: Regenerate.
4534 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
4536         PR fortran/25219
4537         * testsuite/libgomp.fortran/pr25219.f90: New test.
4539 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
4541         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
4542         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
4543         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
4544         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
4545         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
4546         testsuite/libgomp.fortran/threadprivate1.f90,
4547         testsuite/libgomp.fortran/threadprivate2.f90,
4548         testsuite/libgomp.fortran/threadprivate3.f90,
4549         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
4550         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
4551         testsuite/libgomp.fortran/omp_parse3.f90: Change required
4552         effective-target to TLS runtime.
4554         * testsuite/libgomp.fortran/pr25162.f: Require
4555         effective-target TLS runtime.
4557 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
4559         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
4560         * testsuite/libgomp.c/nestedfn-3.c: New test.
4562 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
4564         PR fortran/25162
4565         * testsuite/libgomp.fortran/pr25162.f: New test.
4567 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
4569         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
4570         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
4572 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
4574         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
4575         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
4576         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
4577         single.c, team.c, work.c, config/linux/alpha/futex.h,
4578         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
4579         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
4580         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
4581         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
4582         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
4583         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
4584         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
4585         FSF address.
4587 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
4589         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
4590         to nodist_noinst_HEADERS.
4591         * Makefile.in: Rebuilt.
4593         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
4594         add integer count field.
4595         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
4596         omp_nest_lock_t type change.
4597         (omp_init_nest_lock): Likewise.  Initialize count to 0.
4598         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
4599         Increment count.
4600         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
4601         Decrement count.
4602         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
4603         Increment count if successful and return the new nesting level.
4604         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
4605         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
4606         * testsuite/libgomp.c/lib-1.c: New test.
4607         * testsuite/libgomp.fortran/lib1.f90: New test.
4608         * testsuite/libgomp.fortran/lib2.f: New test.
4609         * testsuite/libgomp.fortran/lib3.f: New test.
4611 2005-11-17  Richard Henderson  <rth@redhat.com>
4613         PR 24845
4614         * Makefile.am (nodist_toolexeclib_HEADERS): New.
4615         * configure.ac (link_gomp): New.  Substitute it.
4616         (AC_CONFIG_FILES): Add libgomp.spec.
4617         * libgomp.spec.in: New file.
4618         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
4619         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
4621 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
4623         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
4624         reduction(-:var) behaving the same as reduction(+:var).
4625         * testsuite/libgomp.c/reduction-4.c: New test.
4627 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
4629         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
4630         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
4631         testsuite/libgomp.c/copyin-3.c,
4632         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
4633         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
4634         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
4635         testsuite/libgomp.c++/pr24455.C,
4636         testsuite/libgomp.fortran/threadprivate1.f90,
4637         testsuite/libgomp.fortran/threadprivate2.f90,
4638         testsuite/libgomp.fortran/threadprivate3.f90,
4639         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
4640         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
4641         testsuite/libgomp.fortran/omp_parse3.f90: Require
4642         effective-target TLS.
4644 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
4646         * HEADER: Remove.
4648 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
4650         PR libgomp/24797
4651         * team.c (initialize_team): Pass NULL rather than free as
4652         pthread_key_create destructor.  Initialize thread specific data
4653         pointer in initial thread to a static local variable rather than
4654         malloced memory.
4656 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
4658         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
4659         its location to ld_library_path.
4661 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
4663         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
4665 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
4667         * testsuite/libgomp.c: Rename from libgomp.dg.
4669 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
4671         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
4672         threadprivate variable 'i'.
4674 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
4676         * config/linux/s390/futex.h: New file.
4677         * configure.tgt: Use it.
4679         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
4680         before the parallel.
4682 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
4684         PR c++/24734
4685         * testsuite/libgomp.c++/master-1.C: New test.
4687 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
4689         * testsuite/libgomp.dg/copyin-3.c: New test.
4691 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
4693         * testsuite/libgomp.fortran/retval1.f90: New test.
4694         * testsuite/libgomp.fortran/vla7.f90: New test.
4696 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
4698         * testsuite/libgomp.fortran/vla2.f90: New test.
4699         * testsuite/libgomp.fortran/vla3.f90: New test.
4700         * testsuite/libgomp.fortran/vla4.f90: New test.
4701         * testsuite/libgomp.fortran/vla5.f90: New test.
4702         * testsuite/libgomp.fortran/vla6.f90: New test.
4704 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
4706         * config/linux/sparc/futex.h: New file.
4707         * configure.tgt: Use it.
4708         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
4710         * critical.c: Include stdlib.h.
4711         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
4712         ignoring return value.
4713         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
4714         LIBGOMP_CHECK_SYNC_BUILTINS check.
4715         * configure: Rebuilt.
4717 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
4719         * testsuite/libgomp.fortran/vla1.f90: New test.
4721 2005-10-31  Richard Henderson  <rth@redhat.com>
4723         * testsuite/libgomp.fortran/character2.f90: Fix race condition
4724         setting 's' in different threads.
4726 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
4728         * libgomp.h (attribute_hidden, ialias): Define.
4729         * config/posix/proc.c (omp_get_num_procs): Add ialias.
4730         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
4731         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
4732         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
4733         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
4734         omp_test_lock, omp_test_nest_lock): Likewise.
4735         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
4736         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
4737         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
4738         omp_test_lock, omp_test_nest_lock): Likewise.
4739         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
4740         omp_get_dynamic, omp_get_nested): Likewise.
4741         * parallel.c (omp_get_num_threads, omp_get_max_threads,
4742         omp_get_thread_num, omp_in_parallel): Likewise.
4743         * fortran.c (ialias_redirect): Define.
4744         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
4745         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
4746         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
4747         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
4748         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
4749         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
4750         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
4751         omp_get_wtime): Add ialias_redirect.
4753 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
4755         * fortran.c: Include stdlib.h.
4757 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
4759         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
4760         * Makefile.in: Regenerated.
4762 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
4764         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
4765         * libgomp_f.h.in (omp_check_defines): New function.
4766         * env.c: Include libgomp_f.h.
4767         (initialize_env): Call omp_check_defines.
4769         * testsuite/libgomp.dg/copyin-2.c: New test.
4770         * testsuite/libgomp.c++/copyin-2.C: New test.
4771         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
4773         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
4774         * testsuite/libgomp.fortran/sharing2.f90: New test.
4776         * testsuite/libgomp.dg/copyin-1.c: New test.
4777         * testsuite/libgomp.c++/copyin-1.C: New test.
4779 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
4781         * testsuite/libgomp.fortran/crayptr1.f90: New test.
4783         * testsuite/libgomp.fortran/workshare1.f90: New test.
4785         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
4786         only test.
4787         * libgomp.fortran/sharing1.f90: New test.
4789 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
4791         PR c++/24502
4792         * testsuite/libgomp.c++/loop-7.C: New test.
4794         * testsuite/libgomp.dg/nestedfn-2.c: New test.
4796         * testsuite/libgomp.dg/nestedfn-1.c: New test.
4797         * testsuite/libgomp.fortran/reduction6.f90: New test.
4798         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
4800 2005-10-23  Richard Henderson  <rth@redhat.com>
4802         * testsuite/libgomp.c++/ctor-1.C: New.
4803         * testsuite/libgomp.c++/ctor-2.C: New.
4804         * testsuite/libgomp.c++/ctor-3.C: New.
4805         * testsuite/libgomp.c++/ctor-4.C: New.
4806         * testsuite/libgomp.c++/ctor-5.C: New.
4807         * testsuite/libgomp.c++/ctor-6.C: New.
4808         * testsuite/libgomp.c++/ctor-7.C: New.
4809         * testsuite/libgomp.c++/ctor-8.C: New.
4810         * testsuite/libgomp.c++/ctor-9.C: New.
4812 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
4814         PR 24455
4815         * testsuite/libgomp.c++/pr24455-1.C: New test.
4816         * testsuite/libgomp.c++/pr24455.C: New test.
4817         * testsuite/libgomp.dg/pr24455-1.c: New test.
4818         * testsuite/libgomp.dg/pr24455.c: New test.
4820 2005-10-20  Richard Henderson  <rth@redhat.com>
4822         * testsuite/libgomp.c++/loop-6.C: New.
4823         * testsuite/libgomp.dg/loop-3.c: New.
4825 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
4827         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
4828         explicitly private.
4829         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
4830         explicitly shared.
4832 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
4834         * testsuite/libgomp.fortran/jacobi.f: New test.
4836 2005-10-19  Richard Henderson  <rth@redhat.com>
4838         * configure.tgt (i?86-linux): Default to with_arch instead of
4839         CFLAGS.  Add -mtune to match target_cpu.
4840         (x86_64-linux): Tune to i686.
4842         * fortran.c (omp_test_nest_lock_): Fix typo.
4844 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
4846         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
4847         gomp_ordered_sync): Do nothing if team->nthreads == 1.
4848         * testsuite/libgomp.dg/ordered-3.c: New test.
4850         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
4851         Remove volatile keyword.
4853         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
4854         in COMMON block to avoid warnings on 64-bit targets.
4856 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
4858         * testsuite/libgomp.dg/shared-3.c: New test.
4860 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
4862         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
4863         * testsuite/libgomp.fortran/reduction5.f90: New test.
4865 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
4867         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
4868         dg-options.
4869         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
4870         flush loop now that __sync_synchronize has proper memory barrier.
4871         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
4872         Add -ffixed-form to dg-options.
4874 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
4876         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
4877         from subdirectories.
4878         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
4879         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
4880         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
4881         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
4882         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
4883         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
4884         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
4885         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
4886         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
4887         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
4888         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
4889         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
4890         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
4891         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
4892         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
4893         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
4894         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
4895         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
4896         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
4897         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
4898         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
4899         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
4900         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
4901         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
4902         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
4904 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
4906         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
4907         lang_library_path exists.  Use find instead of glob to gather tests.
4908         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
4910 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
4912         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
4913         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
4914         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
4915         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
4916         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
4917         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
4918         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
4919         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
4920         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
4921         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
4922         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
4923         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
4924         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
4926 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
4928         * testsuite/libgomp.dg/vla-1.c: New test.
4930         * testsuite/libgomp.fortran/reference2.f90: New test.
4932         * testsuite/libgomp.fortran/character2.f90: Remove explicit
4933         declaration of omp_get_thread_num.
4934         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
4935         use omp_lib.
4937         * testsuite/libgomp.fortran/reduction1.f90: New test.
4938         * testsuite/libgomp.fortran/reduction2.f90: New test.
4939         * testsuite/libgomp.fortran/reduction3.f90: New test.
4940         * testsuite/libgomp.fortran/reduction4.f90: New test.
4942 2005-10-13  Richard Henderson  <rth@redhat.com>
4944         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
4945         * Makefile.in: Regenerate.
4946         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
4947         * libgomp.h: Include bar.h.
4948         (struct gomp_barrier): Remove.
4949         (struct gomp_team): Add barrier.  Replace master_barrier with
4950         master_release.  Replace threads with ordered_release.
4951         (struct gomp_thread): Replace barrier with release.
4952         * ordered.c (gomp_ordered_first): Update for ordered_release change.
4953         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
4954         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
4955         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
4956         (GOMP_single_copy_end): Likewise.
4957         * team.c (gomp_threads_dock): New.
4958         (gomp_barrier_init, gomp_barrier_destroy): Remove.
4959         (gomp_thread_start): Use gomp_barrier_wait.
4960         (new_team, free_team): Update for gomp_team changes.
4961         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
4962         (gomp_team_end): Use gomp_barrier_wait.
4963         (initialize_team): Update for gomp_thread changes.
4964         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
4965         (gomp_work_share_end_nowait): Use atomic ops when available.
4966         * config/linux/bar.c, config/linux/bar.h: New files.
4967         * config/posix/bar.c, config/posix/bar.h: New files.
4969 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
4971         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
4972         * testsuite/libgomp.dg/single-2.c: New test.
4974         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
4975         lang_link_flags): Unset, so that they aren't inherited from previously
4976         sourced *.exp.
4978         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
4980 2005-10-12  Richard Henderson  <rth@redhat.com>
4982         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
4983         (libgomp_init): Use lang_test_file, lang_library_path, and
4984         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
4986         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
4987         (lang_test_file, lang_link_flags): New.
4988         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
4990         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
4991         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
4992         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
4993         testsuite/libgomp.c++/parallel-1.C,
4994         testsuite/libgomp.c++/reduction-1.C,
4995         testsuite/libgomp.c++/reduction-2.C,
4996         testsuite/libgomp.c++/reduction-3.C,
4997         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
4998         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
4999         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
5000         New files, largely cribbed from the C testsuite.
5002 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
5004         * testsuite/libgomp.fortran/character1.f90: New test.
5005         * testsuite/libgomp.fortran/character2.f90: New test.
5007         * testsuite/libgomp.dg/nested-1.c: New test.
5008         * testsuite/libgomp.dg/nested-2.c: New test.
5009         * testsuite/libgomp.fortran/do1.f90: New test.
5010         * testsuite/libgomp.fortran/do2.f90: New test.
5012         * testsuite/libgomp.fortran/reference1.f90: New test.
5014 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
5016         * testsuite/libgomp.dg/reduction-1.c: New test.
5017         * testsuite/libgomp.dg/reduction-2.c: New test.
5018         * testsuite/libgomp.dg/reduction-3.c: New test.
5020 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
5022         * testsuite/libgomp.dg/atomic-1.c: New test.
5023         * testsuite/libgomp.dg/atomic-2.c: New test.
5025 2005-10-09  Richard Henderson  <rth@redhat.com>
5027         * critical.c (atomic_lock): New.
5028         (initialize_critical): Initialize it.
5029         (GOMP_atomic_start, GOMP_atomic_end): New.
5030         * libgomp.map: Export them.
5031         * libgomp_g.h: Declare them.
5033         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
5035 2005-10-02  Richard Henderson  <rth@redhat.com>
5037         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
5038         to XCFLAGS instead of CFLAGS.
5040 2005-09-30  Richard Henderson  <rth@redhat.com>
5042         * configure.ac: Determine whether -pthread or -lpthread is needed.
5043         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
5044         * Makefine.in, configure: Rebuild.
5046 2005-09-28  Richard Henderson  <rth@redhat.com>
5048         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
5049         * testsuite/libgomp.dg/omp-single-3.c: New test.
5051 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
5053         * testsuite/libgomp.dg/omp-single-2.c: New test.
5054         * testsuite/libgomp.dg/shared-2.c: Fix return code.
5056 2005-09-27  Richard Henderson  <rth@redhat.com>
5058         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
5059         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
5061 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
5063         * testsuite/libgomp.dg/omp-loop03.c: New test.
5065 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
5067         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
5069 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
5071         * testsuite/libgomp.dg/omp-single-1.c: New test.
5072         * testsuite/libgomp.dg/shared-1.c: Return 0.
5073         Add prototype for abort.
5074         * testsuite/libgomp.dg/shared-2.c: Likewise.
5076 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
5078         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
5079         constructs.
5081 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
5083         * testsuite/libgomp.dg/shared-1.c: New test.
5084         * testsuite/libgomp.dg/shared-2.c: New test.
5086 2005-09-24  Richard Henderson  <rth@redhat.com>
5088         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
5090 2005-09-24  Richard Henderson  <rth@redhat.com>
5092         * iter.c (gomp_iter_static_next): Round up when computing number
5093         of iterations.  Don't bother distributing a remainder equally.
5095         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
5096         Don't call srand.  Zero b before testing.
5097         (main): New.
5099 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
5101         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
5102         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
5104 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
5106         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
5107         without !$omp end do, followed immediately by subroutine end.
5109 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
5111         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
5113 2005-09-22  Richard Henderson  <rth@redhat.com>
5115         * critical.c (GOMP_critical_name_start): Change argument to void**.
5116         Reuse the pointer space if the mutex fits.
5117         (GOMP_critical_name_end): Likewise.
5118         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
5119         * libgomp_g.h (GOMP_critical_name_start): Update decl.
5120         (GOMP_critical_name_end): Likewise.
5121         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
5122         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
5124 2005-09-20  Richard Henderson  <rth@redhat.com>
5126         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
5127         (create_lock_lock): New.
5128         (initialize_critical): Initialize it.
5129         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
5130         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
5132 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
5134         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
5136 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
5138         * testsuite/libgomp.dg/omp-loop01.c: New test.
5139         * testsuite/libgomp.dg/omp-loop02.c: New test.
5141 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
5143         * configure.ac (AC_PROG_FC): Add.
5144         (USE_FORTRAN): New automake conditional.
5145         * configure: Rebuilt.
5146         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
5147         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
5148         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
5149         Add rules to build them.
5150         * Makefile.in: Rebuilt.
5151         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
5152         OMP_NEST_LOCK_KIND.
5153         * libgomp.map: Add Fortran wrappers.
5154         * libgomp_f.h.in: New file.
5155         * omp_lib.h.in: New file.
5156         * omp_lib.f90.in: New file.
5157         * fortran.c: New file.
5158         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
5159         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
5160         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
5161         libgfortran has been built.
5162         * testsuite/libgomp.fortran/fortran.exp: New file.
5163         * testsuite/libgomp.fortran/omp_cond1.f: New test.
5164         * testsuite/libgomp.fortran/omp_cond2.f: New test.
5165         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
5166         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
5167         * testsuite/libgomp.fortran/omp_hello.f: New test.
5168         * testsuite/libgomp.fortran/omp_orphan.f: New test.
5169         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
5170         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
5171         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
5172         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
5173         * testsuite/libgomp.fortran/omp_reduction.f: New test.
5174         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
5175         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
5177 2005-08-30  Richard Henderson  <rth@redhat.com>
5179         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
5180         function for when aliases are not usable.
5181         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
5182         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
5183         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
5184         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
5185         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
5186         GOMP_loop_ordered_guided_next): Likewise.
5187         * ordered.c (GOMP_ordered_start): Likewise.
5189 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
5191         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
5192         * testsuite/libgomp.dg/omp_hello.c: Fix return code
5193         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
5194         * testsuite/libgomp.dg/omp_orphan.c: Likewise
5195         * testsuite/libgomp.dg/omp_reduction.c: Likewise
5196         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
5197         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
5198         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
5199         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
5201 2005-07-07  Eric Christopher  <echristo@redhat.com>
5202             Diego Novillo  <dnovillo@redhat.com>
5204         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
5205         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
5206         up code.
5207         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
5208         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
5209         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
5210         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
5211         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
5212         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
5213         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
5215 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
5217         * TOPLEVEL.patch: Remove.
5219 2005-05-16  Richard Henderson  <rth@redhat.com>
5221         * configure.ac: Test for clock_gettime.
5222         * config.h.in, configure: Rebuild.
5223         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
5224         (omp_get_wtime): Use clock_gettime if available.
5225         (omp_get_wtick): Use clock_getres if available.
5227 2005-05-11  Richard Henderson  <rth@redhat.com>
5229         * config/linux/ia64/futex.h: New file.
5230         * configure.tgt: Use it.
5232         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
5234 2005-05-07  Richard Henderson  <rth@redhat.com>
5236         * config/linux/powerpc/futex.h: New file.
5237         * configure.tgt: Use it.
5239         * config/linux/i486/futex.h: Merge ...
5240         * config/linux/x86_64/futex.h: ... into ...
5241         * config/linux/x86/futex.h: ... here.
5242         * configure.tgt: Update to match.
5244 2005-05-06  Richard Henderson  <rth@redhat.com>
5246         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
5247         * config/linux/i486/futex.h: Likewise.
5248         * config/linux/x86_64/futex.h: Likewise.
5250         * config/linux/lock.c: New file.
5251         * config/linux/omp-lock.h: New file.
5253         * critical.c, env.h: Don't include omp.h
5254         * config/posix/lock.c: Include libgomp.h instead of omp.h.
5255         * config/posix/time.c: Likewise.
5256         * config/posix/omp-lock.h: New file.
5257         * libgomp.h: Include omp-lock.h and omp.h.
5258         * Makefile.am (nodist_include_HEADERS): New.
5259         (omp.h): New rule.
5260         * configure.ac (PERL): New.
5261         * mkomp_h.pl: New file.
5262         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
5263         with templates.
5264         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
5266         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
5267         build directory.  Re-add -march=i486 hack.
5269         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
5270         (libgomp_link_flags): Remove.
5271         (libgomp_initialized): Remove.
5272         (libgomp_init): Don't protect from reinitialization.  Copy code
5273         from libstdc++ for getting the multilib set correctly.
5275 2005-05-05  Richard Henderson  <rth@redhat.com>
5277         * config/linux/alpha/futex.h: New file.
5278         * configure.tgt (alpha*-*-linux*): Use it.
5280         * config/posix/mutex.c: New file.
5281         * config/posix/sem.c: Use libgomp.h.
5283         * configure.tgt (x86_64-linux): Also test CC for -m32.
5284         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
5286         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
5287         after $gccpath.
5289         * Makefile.am (SUBDIRS): New.
5290         (libgomp_la_LDFLAGS): Add -lpthread.
5291         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
5292         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
5294         * libgomp_g.h: New file.
5295         * libgomp.h: Split out all public declarations to libgomp_g.h.
5296         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
5297         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
5298         * config/linux/sem.h: Likewise.
5299         * config/posix/sem.h: Likewise.
5301         * Makefile.am (AM_LDFLAGS): New.
5302         (libgomp_version_script): Split out from ...
5303         (libgomp_la_LDFLAGS): ... here.
5304         (libgomp_version_info): New.
5305         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
5306         (LIBGOMP_ENABLE): New.
5307         (LIBGOMP_CHECK_LINKER_FEATURES): New.
5308         (LIBGOMP_ENABLE_SYMVERS): New.
5309         * configure.ac (AC_INIT): Version 1.0.
5310         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
5311         (enable-linux-futex): Likewise.  Rename from enable-futex.
5312         (libtool_VERSION): New.
5313         (LIBGOMP_ENABLE_SYMVERS): Use it.
5314         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
5315         * Makefile.in, aclocal.m4, configure: Rebuild.
5317         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
5318         (gomp_mutex_unlock_slow): Fix typo.
5319         * config/linux/sem.c: Similarly.
5320         (gomp_sem_post_slow): Fix typo.
5321         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
5322         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
5323         [__PIC__] (sys_futex0): Don't use tmp output in asm.
5325         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
5326         (libgomp_la_LDFLAGS): Add top_srcdir to path.
5327         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
5328         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
5329         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
5330         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
5331         LDFLAGS.  Pull enable_futex check to top-level.
5332         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
5333         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
5335         First attempt at real configury.
5336         * Makefile, config.h: Remove file.
5337         * Makefile.am, Makefile.in: New file.
5338         * acinclude.m4 aclocal.m4: New file.
5339         * configure.ac, configure.tgt, configure: New file.
5341         * config/posix/lock.c: Rename from sys-lock.c.
5342         * config/posix/mutex.h: Rename from sys-mutex.h.
5343         * config/posix/sem.c: Rename from sys-sem.c.
5344         * config/posix/sem.h: Rename from sys-sem.h.
5345         * config/posix/proc.c: Rename from sys-proc.c.
5346         * config/posix/time.c: Rename from sys-proc.c.
5348         * config/linux/mutex.c: New file.
5349         * config/linux/mutex.h: New file.
5350         * config/linux/sem.c: New file.
5351         * config/linux/sem.h: New file.
5352         * config/linux/i486/futex.h: New file.
5353         * config/linux/x86_64/futex.h: New file.
5355 2005-05-04  Richard Henderson  <rth@redhat.com>
5357         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
5358         * libgomp.h: Declare them.
5359         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
5360         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
5362 2005-05-04  Richard Henderson  <rth@redhat.com>
5364         * libgomp-1 code drop
5366 2005-05-04  Richard Henderson  <rth@redhat.com>
5368         * iter.c (gomp_iter_static_next): Return tri-state on 0.
5369         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
5370         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
5371         (gomp_iter_static_next): Update.
5372         (gomp_ordered_static_next): Update.
5373         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
5374         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
5375         totally empty range.
5376         (gomp_loop_ordered_static_next): Refine test for calling
5377         gomp_ordered_static_next.
5378         * testsuite/ordered-1.c: Add case for more threads than iterations.
5380         * iter.c (gomp_iter_runtime_next_locked): Remove.
5381         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
5382         gomp_loop_guided_start, gomp_loop_ordered_static_start,
5383         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
5384         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
5385         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
5386         gomp_loop_ordered_guided_next): Downcase name, make static, add
5387         an external alias with the old name.
5388         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
5389         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
5390         switch and call one of the above static functions.
5391         * libgomp.h: Update.
5393         * work.c (gomp_work_share_start): Lock the mutex for !first too.
5394         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
5395         GOMP_loop_guided_start, GOMP_loop_runtime_start,
5396         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
5397         GOMP_loop_ordered_guided_start): Update to match.
5398         * sections.c (GOMP_sections_start): Likewise.
5399         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
5401         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
5402         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
5403         Use bounds check instead of modulus.
5404         (gomp_ordered_sync): Split out of GOMP_ordered_start.
5405         (gomp_ordered_last): Don't sync with ordered_owner here.
5406         (gomp_ordered_next): Likewise.
5407         (gomp_ordered_static_loop_next): Likewise.
5408         * loop.c, libgomp.h: Update to match.
5410         * libgomp.h (GOMP_barrier): Declare.
5412         * testsuite/barrier-1.c: New file.
5413         * testsuite/critical-1.c: New file.
5414         * testsuite/ordered-2.c: New file.
5415         * testsuite/ordered-1.c: New file.
5416         * testsuite/sections-1.c: New file.
5417         * testsuite/single-1.c: New file.
5418         * testsuite/Makefile (TESTS): Add them.
5420 2005-05-04  Richard Henderson  <rth@redhat.com>
5422         * libgomp.h (struct gomp_work_share): Add ordered_owner.
5423         * loop.c (GOMP_loop_static_start): If not the startup thread,
5424         acquire the mutex to wait for initialization complete.
5425         (GOMP_loop_ordered_static_start): Likewise.
5426         (GOMP_loop_ordered_runtime_start): Likewise.
5427         (GOMP_loop_ordered_static_first): Remove.
5428         (GOMP_loop_ordered_dynamic_first): Remove.
5429         (GOMP_loop_ordered_guided_first): Remove.
5430         (GOMP_loop_ordered_runtime_first): Remove.
5431         * ordered.c (gomp_ordered_loop_first): Post to own release when
5432         we're the first thread.
5433         (gomp_ordered_loop_last): Wait on release if not owner.
5434         (gomp_ordered_loop_next): Likewise.
5435         (gomp_ordered_static_loop_init): New.
5436         (gomp_ordered_static_loop_next): Use ordered_owner.
5437         (GOMP_ordered_start): Likewise.
5438         * work.c (gomp_new_work_share): Initialize ordered_owner.
5440 2005-05-03  Richard Henderson  <rth@redhat.com>
5442         * Makefile (OPT): New.
5443         (CFLAGS): Use it.
5445         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
5446         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
5447         * libgomp.h, libgomp.map, NOTES: Update to match.
5449         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
5450         Add initialized and thr members.
5451         (gomp_thread_start): Pause when initially spawned to wait for
5452         the whole team to be created.
5453         (gomp_team_start): Release team members at the end.
5455         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
5456         (f_foo_1): Use GOMP_loop_end.
5457         (f_foo_2): Use GOMP_loop_end_nowait.
5459         * testsuite/loop-2.c: New file.
5460         * testsuite/Makefile (TESTS): Add it.
5462 2005-05-03  Richard Henderson  <rth@redhat.com>
5464         * iter.c (gomp_iter_static_next): Fix overflow check typo.
5465         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
5466         * team.c (new_team): Initialize oldest_live_gen to 1 if no
5467         initial work_share.
5469         * testsuite/Makefile: New file.
5470         * testsuite/loop-1.c: New file.
5472 2005-05-03  Richard Henderson  <rth@redhat.com>
5474         Initial implementation and checkin.