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