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