[ARM/AArch64][testsuite] Add vmax, vmin, vhadd, vhsub and vrhadd tests.
[official-gcc.git] / libgomp / ChangeLog
blob104d42cd3b956c3ecb624b9998b7988d299cfbef
1 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
3         PR libgomp/64635
4         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
5         Link with -lpthread.
6         * config/aix/plugin-suffix.h: Delete.
8 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
10         PR libgomp/64635
11         * configure.tgt (*-*-aix*): Use config_path "aix posix".
12         (*-*-darwin*): Use config_path "bsd darwin posix".
13         (*-*-hpux*): Use config_path "hpux posix".
14         * target.c: Add include of plugin-suffix.h and use
15         SONAME_SUFFIX macro.
16         * config/aix/plugin-suffix.h: New file.
17         * config/darwin/plugin-suffix.h: New file.
18         * config/hpux/plugin-suffix.h: New file.
19         * config/posix/plugin-suffix.h: New file.
21 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
23         PR middle-end/64734
24         * libgomp.c/pr64734.c: New test.
26 2015-01-23  Tom de Vries  <tom@codesourcery.com>
28         PR libgomp/64672
29         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
31 2015-01-23  Tom de Vries  <tom@codesourcery.com>
33         PR libgomp/64707
34         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
35         dg-options.
37 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
39         PR libgomp/64625
40         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
41         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
42         formal parameter.  Update all users.
43         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
44         Document unused formal parameter.
46 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
48         * oacc-parallel.c: Don't include <alloca.h>.
49         (GOACC_parallel): Use gomp_alloca instead of alloca.
51 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
53         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
55 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
56             James Norris  <jnorris@codesourcery.com>
57             Tom de Vries  <tom@codesourcery.com>
58             Julian Brown  <julian@codesourcery.com>
59             Cesar Philippidis  <cesar@codesourcery.com>
60             Nathan Sidwell  <nathan@codesourcery.com>
61             Tobias Burnus  <burnus@net-b.de>
63         * Makefile.am (search_path): Add $(top_srcdir)/../include.
64         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
65         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
66         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
67         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
68         Include $(top_srcdir)/plugin/Makefrag.am.
69         (nodist_libsubinclude_HEADERS): Add openacc.h.
70         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
71         openacc.f90, openacc.mod, openacc_kinds.mod.
72         (omp_lib.mod): Generalize into...
73         (%.mod): ... this new rule.
74         (openacc_kinds.mod, openacc.mod): New rules.
75         * plugin/configfrag.ac: New file.
76         * configure.ac: Move plugin/offloading support into it.  Include
77         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
78         * plugin/Makefrag.am: New file.
79         * testsuite/Makefile.am (OFFLOAD_TARGETS)
80         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
81         export.
82         (libgomp-test-support.exp): New rule.
83         (all-local): Depend on it.
84         * Makefile.in: Regenerate.
85         * testsuite/Makefile.in: Regenerate.
86         * config.h.in: Likewise.
87         * configure: Likewise.
88         * configure.tgt: Harden shell syntax.
89         * env.c: Include "oacc-int.h".
90         (parse_acc_device_type): New function.
91         (gomp_debug_var, goacc_device_type, goacc_device_num): New
92         variables.
93         (initialize_env): Initialize those.  Call
94         goacc_runtime_initialize.
95         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
96         (gomp_fatal): Call gomp_vfatal.
97         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
98         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
99         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
100         (splay_tree_node, splay_tree, splay_tree_key)
101         (struct target_mem_desc, struct splay_tree_key_s)
102         (struct gomp_memory_mapping, struct acc_dispatch_t)
103         (struct gomp_device_descr, gomp_acc_insert_pointer)
104         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
105         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
106         (gomp_free_memmap, gomp_fini_device): New declarations.
107         (gomp_vdebug, gomp_debug): New macros.
108         Include "splay-tree.h".
109         * libgomp.map (OACC_2.0): New symbol version.  Use for
110         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
111         acc_set_device_type_h_, acc_get_device_type,
112         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
113         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
114         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
115         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
116         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
117         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
118         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
119         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
120         acc_copyin_array_h_, acc_present_or_copyin,
121         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
122         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
123         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
124         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
125         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
126         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
127         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
128         acc_update_device, acc_update_device_32_h_,
129         acc_update_device_64_h_, acc_update_device_array_h_,
130         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
131         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
132         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
133         acc_is_present_64_h_, acc_is_present_array_h_,
134         acc_memcpy_to_device, acc_memcpy_from_device,
135         acc_get_current_cuda_device, acc_get_current_cuda_context,
136         acc_get_cuda_stream, acc_set_cuda_stream.
137         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
138         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
139         GOACC_update, GOACC_wait, GOACC_get_thread_num,
140         GOACC_get_num_threads.
141         (GOMP_PLUGIN_1.0): New symbol version.  Use for
142         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
143         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
144         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
145         GOMP_PLUGIN_acc_thread.
146         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
147         environment variable.
148         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
149         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
150         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
151         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
152         (splay_tree_remove): New declarations.
153         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
154         (splay_tree_remove, splay_tree_lookup): Move into...
155         * splay-tree.c: ... this new file.
156         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
157         (splay_tree_node, splay_tree, splay_tree_key)
158         (struct target_mem_desc, struct splay_tree_key_s)
159         (struct gomp_device_descr): Don't declare.
160         (num_devices_openmp): New variable.
161         (gomp_get_num_devices ): Use it.
162         (gomp_init_targets_once): New function.
163         (gomp_get_num_devices ): Use it.
164         (get_kind, gomp_copy_from_async, gomp_free_memmap)
165         (gomp_fini_device, gomp_register_image_for_device): New functions.
166         (gomp_map_vars): Add devaddrs parameter.
167         (gomp_update): Add mm parameter.
168         (gomp_init_device): Move most of it into...
169         (gomp_init_tables): ... this new function.
170         (gomp_register_images_for_device): Remove function.
171         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
172         Make them hidden instead of static.
173         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
174         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
175         (GOMP_target_end_data, GOMP_target_update)
176         (gomp_load_plugin_for_device, gomp_target_init): Update for
177         OpenACC changes.
178         * oacc-async.c: New file.
179         * oacc-cuda.c: Likewise.
180         * oacc-host.c: Likewise.
181         * oacc-init.c: Likewise.
182         * oacc-int.h: Likewise.
183         * oacc-mem.c: Likewise.
184         * oacc-parallel.c: Likewise.
185         * oacc-plugin.c: Likewise.
186         * oacc-plugin.h: Likewise.
187         * oacc-ptx.h: Likewise.
188         * openacc.f90: Likewise.
189         * openacc.h: Likewise.
190         * openacc_lib.h: Likewise.
191         * plugin/plugin-host.c: Likewise.
192         * plugin/plugin-nvptx.c: Likewise.
193         * libgomp-plugin.c: Likewise.
194         * libgomp-plugin.h: Likewise.
195         * libgomp_target.h: Remove file after merging content into the
196         former file.  Update all users.
197         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
198         (offload_targets_s, offload_targets_s_openacc): New variables.
199         (check_effective_target_openacc_nvidia_accel_present)
200         (check_effective_target_openacc_nvidia_accel_selected): New
201         procedures.
202         (libgomp_init): Update for OpenACC changes.
203         * testsuite/libgomp-test-support.exp.in: New file.
204         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
205         * testsuite/libgomp.oacc-c/c.exp: Likewise.
206         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
207         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
208         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
209         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
210         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
211         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
212         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
213         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
214         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
215         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
216         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
217         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
218         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
219         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
220         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
221         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
222         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
223         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
224         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
225         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
226         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
227         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
228         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
229         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
230         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
231         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
232         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
233         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
234         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
235         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
236         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
237         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
238         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
239         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
240         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
241         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
242         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
243         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
244         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
245         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
246         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
247         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
248         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
249         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
250         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
251         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
252         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
253         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
254         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
255         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
256         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
257         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
258         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
259         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
260         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
261         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
262         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
263         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
264         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
265         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
266         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
267         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
268         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
269         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
270         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
271         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
272         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
273         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
274         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
275         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
276         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
277         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
278         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
279         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
280         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
281         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
282         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
283         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
284         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
285         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
286         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
287         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
288         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
289         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
290         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
291         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
292         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
293         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
294         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
295         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
296         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
297         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
298         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
299         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
300         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
301         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
302         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
303         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
304         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
305         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
306         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
307         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
308         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
309         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
310         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
311         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
312         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
313         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
314         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
315         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
316         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
317         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
318         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
319         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
320         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
321         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
322         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
323         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
324         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
325         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
326         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
327         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
328         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
329         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
330         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
331         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
332         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
333         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
334         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
335         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
336         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
337         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
338         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
339         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
340         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
341         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
342         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
343         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
344         Likewise.
345         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
346         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
347         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
348         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
349         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
350         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
351         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
352         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
353         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
354         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
355         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
356         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
357         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
358         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
359         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
360         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
361         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
362         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
363         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
364         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
365         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
366         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
367         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
368         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
369         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
370         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
371         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
372         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
373         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
374         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
375         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
376         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
377         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
378         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
379         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
380         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
381         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
382         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
383         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
384         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
385         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
386         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
387         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
388         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
389         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
390         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
391         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
392         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
393         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
394         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
395         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
396         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
397         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
398         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
399         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
400         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
401         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
402         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
403         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
404         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
406 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
407             Julian Brown  <julian@codesourcery.com>
408             David Malcolm  <dmalcolm@redhat.com>
410         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
411         to "GNU Offloading and Multi Processing Runtime Library".  Change
412         all users.
413         * configure: Regenerate.
414         * libgomp.texi: Update.
416 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
418         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
419         "$tgt_dir/lib32".
420         * configure: Regenerate.
422         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
423         "intelmic" in $offload_targets.
425 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
427         Update copyright years.
429         * libgomp.texi: Bump @copying's copyright year.
431 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
433         * testsuite/lib/libgomp.exp: Load target-utils.exp.
434         Move load of target-supportes.exp earlier.
436 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
438         * testsuite/libgomp.c/target-9.c: New test.
440 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
442         * config.h.in: Regenerate.
443         * configure: Regenerate.
444         * configure.ac: Add GCC_CHECK_EMUTLS.
445         * libgomp.h: Add check for USE_EMUTLS: this case
446         is equal to HAVE_TLS.
447         * team.c: Likewise.
449 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
451         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
453 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
454             Ilya Verbin  <ilya.verbin@intel.com>
456         * testsuite/libgomp.c/target-critical-1.c: New test.
458 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
460         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
461         to dg-options unless expensive testing is on.
462         (TESTITERS): Define to N if not defined.
463         (main): Use TESTITERS instead of N.
464         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
465         dg-additional-options depending on whether expensive testing is on.
466         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
467         Decrease N to 100000 and CHUNKSZ to 10000.
469 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
471         PR fortran/63938
472         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
473         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
475 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
477         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
479 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
481         PR bootstrap/63784
482         * configure: Regenerated.
484 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
486         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
487         vect_simd_clones effective target.
488         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
490 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
492         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
493         of 32 as block_size.
494         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
495         instead of 32 as block_size.
497 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
498             Ilya Verbin  <ilya.verbin@intel.com>
500         * Makefile.in: Regenerate.
501         * configure: Regenerate.
502         * configure.ac: Set up offload_additional_options,
503         offload_additional_lib_paths and offload_targets.
504         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
505         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
506         * testsuite/Makefile.in: Regenerate.
507         * testsuite/lib/libgomp.exp (libgomp_init): Append
508         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
509         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
510         build directory to LD_LIBRARY_PATH for intelmic offload targets.
512 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
513             Ilya Verbin  <ilya.verbin@intel.com>
514             Kirill Yukhin  <kirill.yukhin@intel.com>
515             Ilya Tocar  <ilya.tocar@intel.com>
517         * testsuite/lib/libgomp.exp
518         (check_effective_target_offload_device): New.
519         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
520         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
521         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
522         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
523         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
524         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
525         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
526         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
527         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
528         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
529         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
530         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
531         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
532         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
533         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
534         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
535         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
536         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
537         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
538         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
539         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
540         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
541         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
542         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
543         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
544         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
545         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
546         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
547         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
548         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
549         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
550         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
551         * testsuite/libgomp.c/target-7.c: Fix test.
552         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
553         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
554         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
555         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
556         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
557         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
558         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
559         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
560         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
561         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
562         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
563         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
564         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
565         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
566         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
567         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
568         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
569         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
570         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
571         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
572         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
573         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
574         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
575         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
576         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
577         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
578         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
579         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
580         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
581         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
582         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
584 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
585             Ilya Verbin  <ilya.verbin@intel.com>
586             Thomas Schwinge  <thomas@codesourcery.com>
587             Andrey Turetskiy  <andrey.turetskiy@intel.com>
589         * libgomp.map (GOMP_4.0.1): New symbol version.
590         Add GOMP_offload_register.
591         * libgomp_target.h: New file.
592         * splay-tree.h: New file.
593         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
594         (gomp_target_init): New forward declaration.
595         (gomp_is_initialized): New static variable.
596         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
597         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
598         New structures.
599         (offload_images, num_offload_images, devices, num_devices): New static
600         variables.
601         (splay_compare): New static function.
602         (struct gomp_device_descr): New structure.
603         (gomp_get_num_devices): Call gomp_target_init.
604         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
605         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
606         (GOMP_offload_register): New function.
607         (GOMP_target): Arrange for host callback to be performed in a separate
608         initial thread and contention group, inheriting ICVs from
609         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
610         Add device initialization and lookup for target function in splay tree.
611         (GOMP_target_data): Add device initialization and call gomp_map_vars.
612         (GOMP_target_end_data): Call gomp_unmap_vars.
613         (GOMP_target_update): Add device initialization and call gomp_update.
614         (gomp_load_plugin_for_device, gomp_register_images_for_device)
615         (gomp_target_init): New static functions.
617 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
618             Thomas Schwinge  <thomas@codesourcery.com>
619             Ilya Verbin  <ilya.verbin@intel.com>
620             Andrey Turetskiy  <andrey.turetskiy@intel.com>
622         * config.h.in: Regenerate.
623         * configure: Regenerate.
624         * configure.ac: Check for libdl, required for plugin support.
625         (PLUGIN_SUPPORT): Define if plugins are supported.
626         (enable_offload_targets): Support Intel MIC targets.
627         (OFFLOAD_TARGETS): List of target names suitable for offloading.
629 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
631         PR target/63610
632         * configure: Regenerate.
634 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
636         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
638 2014-10-06  Marek Polacek  <polacek@redhat.com>
640         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
641         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
642         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
643         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
645 2014-10-06  Marek Polacek  <polacek@redhat.com>
647         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
648         * testsuite/libgomp.c/nqueens-1.c: Likewise.
649         * testsuite/libgomp.c/pr26943-3.c: Likewise.
650         * testsuite/libgomp.c/pr26943-4.c: Likewise.
651         * testsuite/libgomp.c/pr36802-2.c: Likewise.
652         * testsuite/libgomp.c/pr36802-3.c: Likewise.
653         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
654         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
655         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
656         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
657         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
658         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
659         * testsuite/libgomp.c/omp-single-1.c: Likewise.
660         * testsuite/libgomp.c/omp-single-2.c: Likewise.
661         * testsuite/libgomp.c/omp_matvec.c: Likewise.
662         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
663         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
664         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
665         declarations.
667 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
669         PR libgomp/61200
670         * testsuite/libgomp.c/pr61200.c: New test.
672 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
674         PR c++/63248
675         * testsuite/libgomp.c++/pr63248.C: New test.
677 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
679         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
680         is not zero, but taskgroup->children is NULL and there are
681         any task->children, schedule those instead of waiting.
682         * testsuite/libgomp.c/depend-6.c: New test.
683         * testsuite/libgomp.c/depend-7.c: New test.
684         * testsuite/libgomp.c/depend-8.c: New test.
685         * testsuite/libgomp.c/depend-9.c: New test.
686         * testsuite/libgomp.c/depend-10.c: New test.
688 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
690         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
691         (struct gomp_taskwait): New type.
692         (struct gomp_task): Add taskwait and parent_depends_on, remove
693         in_taskwait and taskwait_sem fields.
694         (gomp_finish_task): Don't destroy taskwait_sem.
695         * task.c (gomp_init_task): Don't init in_taskwait, instead init
696         taskwait and parent_depends_on.
697         (GOMP_task): For if (0) tasks with depend clause that depend on
698         earlier tasks don't defer them, instead call
699         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
700         Initialize redundant_out field, for redundant out entries just
701         move them at the end of linked list instead of removing them
702         completely, and set redundant_out flag instead of redundant.
703         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
704         that task.
705         (gomp_task_run_post_handle_dependers): If parent is in
706         gomp_task_maybe_wait_for_dependencies and newly runnable task
707         is not parent_depends_on, queue it in parent->children linked
708         list after all runnable tasks with parent_depends_on set.
709         Adjust for addition of taskwait indirection.
710         (gomp_task_run_post_remove_parent): If parent is in
711         gomp_task_maybe_wait_for_dependencies and task to be removed
712         is parent_depends_on, decrement n_depend and if needed awake
713         parent.  Adjust for addition of taskwait indirection.
714         (GOMP_taskwait): Adjust for addition of taskwait indirection.
715         (gomp_task_maybe_wait_for_dependencies): New function.
716         * testsuite/libgomp.c/depend-5.c: New test.
718 2014-07-13  Tobias Burnus  <burnus@net-b.de>
720         * testsuite/libgomp.fortran/pr34020.f90: Make compile
721         with TS 18508/Fortran 2015.
723 2014-07-06  Marek Polacek  <polacek@redhat.com>
725         PR c/6940
726         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
728 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
730         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
731         matches regex $lang_source_re, add $lang_include_flags to options.
732         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
733         * testsuite/libgomp.c++/c++.exp: Likewise.
734         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
735         and lang_include_flags instead of adding -fintrinsic-modules-path= to
736         ALWAYS_CFLAGS.
737         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
739 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
741         * testsuite/libgomp.fortran/fortran.exp: Explain
742         gfortran-dg-runtest usage.
744 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
746         * testsuite/libgomp.fortran/simd5.f90: New test.
747         * testsuite/libgomp.fortran/simd6.f90: New test.
748         * testsuite/libgomp.fortran/simd7.f90: New test.
750 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
752         * testsuite/libgomp.c/for-2.c: Define SC to static for
753         #pragma omp for simd testing.
754         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
755         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
756         SC macro.
757         * testsuite/libgomp.c/simd-14.c: New test.
758         * testsuite/libgomp.c/simd-15.c: New test.
759         * testsuite/libgomp.c/simd-16.c: New test.
760         * testsuite/libgomp.c/simd-17.c: New test.
761         * testsuite/libgomp.c++/for-10.C: Define SC to static for
762         #pragma omp for simd testing.
763         * testsuite/libgomp.c++/simd10.C: New test.
764         * testsuite/libgomp.c++/simd11.C: New test.
765         * testsuite/libgomp.c++/simd12.C: New test.
766         * testsuite/libgomp.c++/simd13.C: New test.
768         * testsuite/libgomp.fortran/aligned1.f03: New test.
769         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
770         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
771         tasks with !$omp parallel !$omp single.
772         * testsuite/libgomp.fortran/target8.f90: New test.
773         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
774         not to use trim in the combiner, instead call elemental function.
775         (fn): New elemental function.
776         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
777         Make elemental.
778         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
779         omp_in): Likewise.
780         * testsuite/libgomp.fortran/udr12.f90: New test.
781         * testsuite/libgomp.fortran/udr13.f90: New test.
782         * testsuite/libgomp.fortran/udr14.f90: New test.
783         * testsuite/libgomp.fortran/udr15.f90: New test.
785 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
787         * omp_lib.f90.in (openmp_version): Set to 201307.
788         * omp_lib.h.in (openmp_version): Likewise.
789         * testsuite/libgomp.c/target-8.c: New test.
790         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
791         and inbranch clauses.
792         * testsuite/libgomp.fortran/depend-3.f90: New test.
793         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
794         openmp_version.
795         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
796         * testsuite/libgomp.fortran/target1.f90: New test.
797         * testsuite/libgomp.fortran/target2.f90: New test.
798         * testsuite/libgomp.fortran/target3.f90: New test.
799         * testsuite/libgomp.fortran/target4.f90: New test.
800         * testsuite/libgomp.fortran/target5.f90: New test.
801         * testsuite/libgomp.fortran/target6.f90: New test.
802         * testsuite/libgomp.fortran/target7.f90: New test.
804 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
806         PR fortran/60928
807         * testsuite/libgomp.fortran/allocatable9.f90: New test.
808         * testsuite/libgomp.fortran/allocatable10.f90: New test.
809         * testsuite/libgomp.fortran/allocatable11.f90: New test.
810         * testsuite/libgomp.fortran/allocatable12.f90: New test.
811         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
812         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
813         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
814         * testsuite/libgomp.fortran/associate1.f90: New test.
815         * testsuite/libgomp.fortran/associate2.f90: New test.
816         * testsuite/libgomp.fortran/procptr1.f90: New test.
818 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
820         * testsuite/libgomp.fortran/simd1.f90: New test.
821         * testsuite/libgomp.fortran/udr1.f90: New test.
822         * testsuite/libgomp.fortran/udr2.f90: New test.
823         * testsuite/libgomp.fortran/udr3.f90: New test.
824         * testsuite/libgomp.fortran/udr4.f90: New test.
825         * testsuite/libgomp.fortran/udr5.f90: New test.
826         * testsuite/libgomp.fortran/udr6.f90: New test.
827         * testsuite/libgomp.fortran/udr7.f90: New test.
828         * testsuite/libgomp.fortran/udr8.f90: New test.
829         * testsuite/libgomp.fortran/udr9.f90: New test.
830         * testsuite/libgomp.fortran/udr10.f90: New test.
831         * testsuite/libgomp.fortran/udr11.f90: New test.
833 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
835         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
836         vect_simd_clones effective target.
837         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
839 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
841         PR middle-end/61252
842         * testsuite/libgomp.c++/simd-9.C: New test.
844 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
846         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
847         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
848         texts according to their @menu entry positions.
850 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
852         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
853         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
854         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
855         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
856         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
857         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
858         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
859         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
860         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
861         * testsuite/libgomp.fortran/depend-1.f90: New test.
862         * testsuite/libgomp.fortran/depend-2.f90: New test.
863         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
864         * testsuite/libgomp.fortran/simd1.f90: New test.
865         * testsuite/libgomp.fortran/simd2.f90: New test.
866         * testsuite/libgomp.fortran/simd3.f90: New test.
867         * testsuite/libgomp.fortran/simd4.f90: New test.
868         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
870 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
872         * testsuite/libgomp.c/simd-10.c: New test.
873         * testsuite/libgomp.c/simd-11.c: New test.
874         * testsuite/libgomp.c/simd-12.c: New test.
875         * testsuite/libgomp.c/simd-13.c: New test.
877 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
879         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
880         atomic type clauses in any order and optional comma in between.
881         * testsuite/libgomp.c++/atomic-15.C: Likewise.
882         * testsuite/libgomp.c/atomic-17.c: Likewise.
884         * testsuite/libgomp.c/simd-7.c: New test.
885         * testsuite/libgomp.c/simd-8.c: New test.
886         * testsuite/libgomp.c/simd-9.c: New test.
887         * testsuite/libgomp.c/loop-16.c: New test.
889 2014-04-02  Richard Henderson  <rth@redhat.com>
891         * config/linux/futex.h (futex_wait): Get error value from errno.
892         (futex_wake): Likewise.
894 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
896         PR c++/60331
897         * testsuite/libgomp.c++/udr-11.C: New test.
898         * testsuite/libgomp.c++/udr-12.C: New test.
899         * testsuite/libgomp.c++/udr-13.C: New test.
900         * testsuite/libgomp.c++/udr-14.C: New test.
901         * testsuite/libgomp.c++/udr-15.C: New test.
902         * testsuite/libgomp.c++/udr-16.C: New test.
903         * testsuite/libgomp.c++/udr-17.C: New test.
904         * testsuite/libgomp.c++/udr-18.C: New test.
905         * testsuite/libgomp.c++/udr-19.C: New test.
907 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
909         Update copyright years
911 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
913         * hashtab.h: Use the standard form for the copyright notice.
915 2014-01-02  Tobias Burnus  <burnus@net-b.de>
917         * libgomp.texi: Bump @copying's copyright year.
919 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
921         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
922         alloca () with __builtin_alloca ().
923         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
924         * testsuite/libgomp.c/lock-3.c: Likewise.
925         * testsuite/libgomp.c/pr48591.c: Likewise.
927 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
929         PR testsuite/59534
930         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
931         comparisons.
933 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
935         PR libgomp/58756
936         * testsuite/libgomp.c/pr58756.c: New test.
938 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
940         PR libgomp/59467
941         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
942         !$omp parallel.
944 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
946         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
947         ALWAYS_CFLAGS.
948         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
949         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
950         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
951         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
952         Likewise.
954         * libgomp_g.h: Include <stddef.h> for size_t.
956         * libgomp.spec.in: Update comment about libgomp's dependencies.
957         * configure.ac: Likewise.
958         * configure: Regenerate.
960 2013-10-16  Tobias Burnus  <burnus@net-b.de>
962         * libgomp.texi: (Runtime Library Routines): Update references for
963         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
964         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
965         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
966         (Environment Variables): Update references for OpenMP 4.0. Add
967         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
968         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
969         order.
971 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
973         * env.c (parse_bind_var): Initialize value to avoid
974         (false positive) warning.
976 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
978         PR libgomp/58691
979         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
980         to check variable.
981         (gomp_init_num_threads): Move i variable declaration into
982         #ifdef CPU_ALLOC_SIZE block.
983         * config/linux/affinity.c (gomp_affinity_init_level): Test
984         gomp_places_list_len == 0 rather than gomp_places_list == 0
985         when checking for topology reading error.
986         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
987         * env.c (parse_affinity): Add ignore argument, if true, don't populate
988         gomp_places_list, only parse env var and always return false.
989         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
990         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
991         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
992         and either of these variables were parsed correctly into a places
993         list.
995 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
996             Jakub Jelinek  <jakub@redhat.com>
998         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
999         of 5 loopfn matches.
1000         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
1001         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
1002         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
1003         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1004         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
1005         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1006         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1007         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
1009 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
1011         * Makefile.am (omp_lib.mod): Streamline rule.
1012         * Makefile.in: Regenerate.
1014         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
1015         exceptions.
1017         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
1018         * testsuite/libgomp.fortran/lib1.f90: Likewise.
1019         * testsuite/libgomp.fortran/lib2.f: Likewise.
1020         * testsuite/libgomp.fortran/lib3.f: Likewise.
1022         * configure.ac: Typo fix.
1023         * configure: Regenerate.
1025         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
1026         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
1028         * omp.h.in: Don't touch the user's namespace.
1030 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
1031             Tobias Burnus  <burnus@net-b.de>
1032             Richard Henderson  <rth@redhat.com>
1034         * target.c: New file.
1035         * Makefile.am (libgomp_la_SOURCES): Add target.c.
1036         * Makefile.in: Regenerated.
1037         * libgomp_g.h (GOMP_task): Add depend argument.
1038         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
1039         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
1040         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
1041         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
1042         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
1043         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
1044         GOMP_taskgroup_start, GOMP_taskgroup_end,
1045         GOMP_parallel_sections): New prototypes.
1046         * fortran.c (omp_is_initial_device): Add ialias_redirect.
1047         (omp_is_initial_device_): New function.
1048         (ULP, STR1, STR2, ialias_redirect): Removed.
1049         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
1050         omp_set_default_device_8_, omp_get_default_device_,
1051         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
1052         functions.
1053         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
1054         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
1055         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
1056         @@GOMP_4.0.
1057         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
1058         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
1059         omp_set_default_device, omp_set_default_device_,
1060         omp_set_default_device_8_, omp_get_default_device,
1061         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
1062         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
1063         omp_get_team_num_): Export @@OMP_4.0.
1064         * team.c (struct gomp_thread_start_data): Add place field.
1065         (gomp_thread_start): Clear thr->thread_pool and
1066         thr->task before returning.  Use gomp_team_barrier_wait_final
1067         instead of gomp_team_barrier_wait.  Initialize thr->place.
1068         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
1069         team_cancelled and task_queued_count fields.
1070         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
1071         before calling pthread_exit.
1072         (gomp_free_thread): No longer static.  Use
1073         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
1074         (gomp_team_start): Add flags argument.  Set
1075         thr->thread_pool->threads_busy to nthreads immediately after creating
1076         new pool.  Use gomp_managed_threads_lock instead of
1077         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
1078         (gomp_team_end): Use gomp_managed_threads_lock instead of
1079         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
1080         of gomp_team_barrier_wait.  If team->team_cancelled, call
1081         gomp_fini_worshare on ws chain starting at team->work_shares_to_free
1082         rather than thr->ts.work_share.
1083         (initialize_team): Don't call gomp_sem_init here.
1084         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
1085         caller.
1086         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
1087         * env.c (gomp_global_icv): Add default_device_var, target_data and
1088         bind_var initializers.
1089         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1090         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1091         gomp_places_list_len): New variables.
1092         (parse_bind_var, parse_one_place, parse_places_var): New functions.
1093         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
1094         sized places.
1095         (gomp_cancel_var): New global variable.
1096         (parse_int): New function.
1097         (handle_omp_display_env): New function.
1098         (initialize_env): Use it.  Initialize default_device_var.
1099         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
1100         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
1101         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
1102         been successfully parsed (and call gomp_init_affinity in that case).
1103         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1104         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1105         omp_get_team_num, omp_is_initial_device): New functions.
1106         * libgomp.h: Include stdlib.h.
1107         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
1108         Define.
1109         (struct target_mem_desc): Forward declare.
1110         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
1111         and thread_limit_var fields.
1112         (gomp_get_num_devices): New prototype.
1113         (gomp_cancel_var): New extern decl.
1114         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
1115         team_cancelled and task_queued_count fields.  Add comments about
1116         task_{,queued_,running_}count.
1117         (gomp_cancel_kind): New enum.
1118         (gomp_work_share_end_cancel): New prototype.
1119         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
1120         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
1121         and depend fields.
1122         (struct gomp_taskgroup): New type.
1123         (struct gomp_task_depend_entry,
1124         struct gomp_dependers_vec): New types.
1125         (gomp_finish_task): Free depend_hash if non-NULL.
1126         (struct gomp_team_state): Add place_partition_off
1127         and place_partition_len fields.
1128         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
1129         gomp_places_list_len): New extern decls.
1130         (struct gomp_thread): Add place field.
1131         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
1132         (gomp_init_thread_affinity): Add place argument.
1133         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1134         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1135         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1136         gomp_affinity_init_level, gomp_affinity_print_place): New
1137         prototypes.
1138         (gomp_team_start): Add flags argument.
1139         (gomp_thread_limit_var, gomp_remaining_threads_count,
1140         gomp_remaining_threads_lock): Remove.
1141         (gomp_managed_threads_lock): New variable.
1142         (struct gomp_thread_pool): Add threads_busy field.
1143         (gomp_free_thread): New prototype.
1144         * task.c: Include hashtab.h.
1145         (hash_entry_type): New typedef.
1146         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
1147         (gomp_init_task): Clear dependers, depend_hash, depend_count,
1148         copy_ctors_done and taskgroup fields.
1149         (GOMP_task): Add depend argument, handle depend clauses.  If
1150         gomp_team_barrier_cancelled or if it's taskgroup has been
1151         cancelled, don't queue or start new tasks.  Set copy_ctors_done
1152         field if needed.  Initialize taskgroup field.  If copy_ctors_done
1153         and already cancelled, don't discard the task.  If taskgroup is
1154         non-NULL, enqueue the task into taskgroup queue.  Increment
1155         num_children field in taskgroup.  Increment task_queued_count.
1156         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
1157         gomp_task_run_post_remove_taskgroup): New inline functions.
1158         (gomp_task_run_post_handle_depend_hash,
1159         gomp_task_run_post_handle_dependers,
1160         gomp_task_run_post_handle_depend): New functions.
1161         (GOMP_taskwait): Use them.  If more than one new tasks
1162         have been queued, wake other threads if needed.
1163         (gomp_barrier_handle_tasks): Likewise.  If
1164         gomp_team_barrier_cancelled, don't start any new tasks, just free
1165         all tasks.
1166         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
1167         * omp_lib.f90.in
1168         (omp_proc_bind_kind, omp_proc_bind_false,
1169         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
1170         omp_proc_bind_spread): New params.
1171         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1172         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1173         omp_get_team_num, omp_is_initial_device): New interfaces.
1174         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
1175         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
1176         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
1177         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
1178         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
1179         useless use omp_lib_kinds.
1180         * omp.h.in (omp_proc_bind_t): New typedef.
1181         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1182         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1183         omp_get_team_num, omp_is_initial_device): New prototypes.
1184         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
1185         through to gomp_team_start.
1186         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
1187         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
1188         Adjust gomp_parallel_loop_start callers.
1189         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
1190         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
1191         GOMP_loop_end_cancel): New functions.
1192         (GOMP_parallel_end): Add ialias_redirect.
1193         * hashtab.h: New file.
1194         * libgomp.texi (Environment Variables): Minor cleanup,
1195         update section refs to OpenMP 4.0rc2.
1196         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
1197         environment variables.
1198         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
1199         team->work_shares_to_free to thr->ts.work_share before calling
1200         free_work_share.
1201         (gomp_work_share_end_cancel): New function.
1202         * config/linux/proc.c: Include errno.h.
1203         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
1204         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
1205         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
1206         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
1207         gomp_cpuset_size is sizeof (cpu_set_t).
1208         (gomp_init_num_threads): Initialize gomp_cpuset_size,
1209         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
1210         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
1211         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
1212         contain any logical CPUs.
1213         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
1214         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
1215         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
1216         pthread_getaffinity_np.  Check gomp_places_list instead of
1217         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
1218         * config/linux/bar.c (gomp_barrier_wait_end,
1219         gomp_barrier_wait_last): Use BAR_* defines.
1220         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
1221         from state where needed.  Set work_share_cancelled to 0 on last
1222         thread.
1223         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
1224         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
1225         functions.
1226         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
1227         Add cpusetsize argument.
1228         (gomp_cpuset_size, gomp_cpusetp): Declare.
1229         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
1230         (affinity_counter): Remove.
1231         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
1232         if CPU_ALLOC_SIZE isn't defined.
1233         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
1234         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
1235         bind current thread to the first place.
1236         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
1237         pthread_setaffinity_np to gomp_places_list[place].
1238         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1239         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1240         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1241         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
1242         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
1243         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
1244         (gomp_barrier_t): Add awaited_final field.
1245         (gomp_barrier_init): Initialize awaited_final field.
1246         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
1247         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
1248         prototypes.
1249         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
1250         defines.
1251         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
1252         gomp_team_barrier_cancelled): New inline functions.
1253         (gomp_barrier_last_thread,
1254         gomp_team_barrier_set_task_pending,
1255         gomp_team_barrier_clear_task_pending,
1256         gomp_team_barrier_set_waiting_for_tasks,
1257         gomp_team_barrier_waiting_for_tasks,
1258         gomp_team_barrier_done): Use BAR_* defines.
1259         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
1260         (gomp_barrier_wait_end): Use BAR_* defines.
1261         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
1262         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
1263         Use BAR_* defines.
1264         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
1265         gomp_team_barrier_cancel): New functions.
1266         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
1267         argument.
1268         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
1269         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
1270         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
1271         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
1272         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
1273         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
1274         (gomp_barrier_t): Add cancellable field.
1275         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
1276         gomp_team_barrier_cancel): New prototypes.
1277         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
1278         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
1279         gomp_team_barrier_cancelled): New inline functions.
1280         (gomp_barrier_wait_start, gomp_barrier_last_thread,
1281         gomp_team_barrier_set_task_pending,
1282         gomp_team_barrier_clear_task_pending,
1283         gomp_team_barrier_set_waiting_for_tasks,
1284         gomp_team_barrier_waiting_for_tasks,
1285         gomp_team_barrier_done): Use BAR_* defines.
1286         * barrier.c (GOMP_barrier_cancel): New function.
1287         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
1288         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
1289         omp_proc_bind_spread): New params.
1290         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
1291         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
1292         omp_get_team_num, omp_is_initial_device): New externals.
1293         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
1294         New functions.
1295         (gomp_resolve_num_threads): Adjust for thread_limit now being in
1296         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
1297         infinity.  If not nested, just return minimum of max_num_threads
1298         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
1299         to the returned value.  Otherwise, don't update atomically
1300         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
1301         (GOMP_parallel_end): Adjust for thread_limit now being in
1302         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
1303         infinity.  Adjust threads_busy in the pool rather than
1304         gomp_remaining_threads_count.  Remember team->nthreads and call
1305         gomp_team_end before adjusting threads_busy, if not nested
1306         afterwards, just set it to 1 non-atomically.  Add ialias.
1307         (GOMP_parallel_start): Adjust gomp_team_start caller.
1308         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
1309         * testsuite/libgomp.c/affinity-1.c: New test.
1310         * testsuite/libgomp.c/atomic-15.c: New test.
1311         * testsuite/libgomp.c/atomic-16.c: New test.
1312         * testsuite/libgomp.c/atomic-17.c: New test.
1313         * testsuite/libgomp.c/cancel-for-1.c: New test.
1314         * testsuite/libgomp.c/cancel-for-2.c: New test.
1315         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
1316         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
1317         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
1318         * testsuite/libgomp.c/cancel-sections-1.c: New test.
1319         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
1320         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
1321         * testsuite/libgomp.c/depend-1.c: New test.
1322         * testsuite/libgomp.c/depend-2.c: New test.
1323         * testsuite/libgomp.c/depend-3.c: New test.
1324         * testsuite/libgomp.c/depend-4.c: New test.
1325         * testsuite/libgomp.c/for-1.c: New test.
1326         * testsuite/libgomp.c/for-1.h: New file.
1327         * testsuite/libgomp.c/for-2.c: New test.
1328         * testsuite/libgomp.c/for-2.h: New file.
1329         * testsuite/libgomp.c/for-3.c: New test.
1330         * testsuite/libgomp.c/pr58392.c: New test.
1331         * testsuite/libgomp.c/simd-1.c: New test.
1332         * testsuite/libgomp.c/simd-2.c: New test.
1333         * testsuite/libgomp.c/simd-3.c: New test.
1334         * testsuite/libgomp.c/simd-4.c: New test.
1335         * testsuite/libgomp.c/simd-5.c: New test.
1336         * testsuite/libgomp.c/simd-6.c: New test.
1337         * testsuite/libgomp.c/target-1.c: New test.
1338         * testsuite/libgomp.c/target-2.c: New test.
1339         * testsuite/libgomp.c/target-3.c: New test.
1340         * testsuite/libgomp.c/target-4.c: New test.
1341         * testsuite/libgomp.c/target-5.c: New test.
1342         * testsuite/libgomp.c/target-6.c: New test.
1343         * testsuite/libgomp.c/target-7.c: New test.
1344         * testsuite/libgomp.c/taskgroup-1.c: New test.
1345         * testsuite/libgomp.c/thread-limit-1.c: New test.
1346         * testsuite/libgomp.c/thread-limit-2.c: New test.
1347         * testsuite/libgomp.c/thread-limit-3.c: New test.
1348         * testsuite/libgomp.c/udr-1.c: New test.
1349         * testsuite/libgomp.c/udr-2.c: New test.
1350         * testsuite/libgomp.c/udr-3.c: New test.
1351         * testsuite/libgomp.c++/affinity-1.C: New test.
1352         * testsuite/libgomp.c++/atomic-10.C: New test.
1353         * testsuite/libgomp.c++/atomic-11.C: New test.
1354         * testsuite/libgomp.c++/atomic-12.C: New test.
1355         * testsuite/libgomp.c++/atomic-13.C: New test.
1356         * testsuite/libgomp.c++/atomic-14.C: New test.
1357         * testsuite/libgomp.c++/atomic-15.C: New test.
1358         * testsuite/libgomp.c++/cancel-for-1.C: New test.
1359         * testsuite/libgomp.c++/cancel-for-2.C: New test.
1360         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
1361         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
1362         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
1363         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
1364         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
1365         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
1366         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
1367         * testsuite/libgomp.c++/cancel-test.h: New file.
1368         * testsuite/libgomp.c++/for-9.C: New test.
1369         * testsuite/libgomp.c++/for-10.C: New test.
1370         * testsuite/libgomp.c++/for-11.C: New test.
1371         * testsuite/libgomp.c++/simd-1.C: New test.
1372         * testsuite/libgomp.c++/simd-2.C: New test.
1373         * testsuite/libgomp.c++/simd-3.C: New test.
1374         * testsuite/libgomp.c++/simd-4.C: New test.
1375         * testsuite/libgomp.c++/simd-5.C: New test.
1376         * testsuite/libgomp.c++/simd-6.C: New test.
1377         * testsuite/libgomp.c++/simd-7.C: New test.
1378         * testsuite/libgomp.c++/simd-8.C: New test.
1379         * testsuite/libgomp.c++/target-1.C: New test.
1380         * testsuite/libgomp.c++/target-2.C: New test.
1381         * testsuite/libgomp.c++/target-2-aux.cc: New file.
1382         * testsuite/libgomp.c++/target-3.C: New test.
1383         * testsuite/libgomp.c++/taskgroup-1.C: New test.
1384         * testsuite/libgomp.c++/udr-1.C: New test.
1385         * testsuite/libgomp.c++/udr-2.C: New test.
1386         * testsuite/libgomp.c++/udr-3.C: New test.
1387         * testsuite/libgomp.c++/udr-4.C: New test.
1388         * testsuite/libgomp.c++/udr-5.C: New test.
1389         * testsuite/libgomp.c++/udr-6.C: New test.
1390         * testsuite/libgomp.c++/udr-7.C: New test.
1391         * testsuite/libgomp.c++/udr-8.C: New test.
1392         * testsuite/libgomp.c++/udr-9.C: New test.
1394 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
1396         PR testsuite/57605
1397         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
1398         ALWAYS_CFLAGS.
1400 2013-09-20  Alan Modra  <amodra@gmail.com>
1402         * configure: Regenerate.
1404 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
1406         * testsuite/libgomp.c/sections-2.c: New test.
1408 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1410         * testsuite/libgomp.fortran/strassen.f90:
1411         Add dg-skip-if aarch64_tiny.
1413 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
1414             Cesar Philippidis  <cesar@codesourcery.com>
1416         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
1417         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
1418         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
1419         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1420         * testsuite/libgomp.graphite/graphite.exp: Likewise.
1421         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
1422         Use dg-runtest rather than gfortran-dg-runtest.
1424 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
1426         * testsuite/libgomp.c/icv-2.c: Extend current handling of
1427         Linux-based x86 systems to cover all GNU systems.
1428         * testsuite/libgomp.c/lock-3.c: Likewise.
1429         * testsuite/libgomp.c/pr48591.c: Likewise.
1431 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
1433         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
1434         GNU/Hurd, as done for Linux-based systems.
1436         * config/posix/ptrlock.h: Fix comment.
1438 2013-05-27  Tobias Burnus  <burnus@net-b.de>
1440         PR fortran/57423
1441         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
1442         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
1443         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
1444         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
1445         omp_destroy_nest_lock): Correct arguments to match the one in
1446         the OpenMP spec.
1447         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
1448         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
1449         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
1450         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
1452 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
1454         * testsuite/libgomp.c/loop-13.c: New test.
1455         * testsuite/libgomp.c/loop-14.c: New test.
1456         * testsuite/libgomp.c/loop-15.c: New test.
1457         * testsuite/libgomp.c++/loop-13.C: New test.
1458         * testsuite/libgomp.c++/loop-14.C: New test.
1459         * testsuite/libgomp.c++/loop-15.C: New test.
1461 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
1463         PR middle-end/56217
1464         * testsuite/libgomp.c++/pr56217.C: New test.
1466 2013-02-01  Alan Modra  <amodra@gmail.com>
1468         * task.c (GOMP_task, GOMP_taskwait): Comment.
1470 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
1471             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
1473         PR libgomp/55561
1474         * config/linux/wait.h (do_spin): Use atomic load for addr.
1475         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
1476         for intptr and ptrlock.
1477         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
1478         for ptrlock.
1480 2013-01-22  Alan Modra  <amodra@gmail.com>
1482         PR libgomp/51376
1483         PR libgomp/56073
1484         * task.c (GOMP_task): Revert 2011-12-09 change.
1485         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
1486         barrier to read task->children..
1487         (gomp_barrier_handle_tasks): ..and matching atomic store with
1488         release barrier here when setting parent->children to NULL.
1490 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
1491             Tobias Burnus  <burnus@net-b.de>
1493         PR driver/55884
1494         * testsuite/libgomp.fortran/fortran.exp: Use
1495         -fintrinsic-modules-path= instead of
1496         -fintrinsic-modules-path.
1498 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
1500         Update copyright years.
1502 2012-12-19  Tobias Burnus  <burnus@net-b.de>
1504         * testsuite/libgomp.fortran/fortran.exp: Set
1505         -fintrinsic-modules-path.
1507 2012-12-19  Tobias Burnus  <burnus@net-b.de>
1509         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
1510         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
1512 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
1514         PR libgomp/55411
1515         * team.c (gomp_free_thread): Decrease gomp_managed_threads
1516         if pool had any threads_used.
1518 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
1520         * testsuite/libgomp.c++/pr24455.C: Use
1521         -Wl,-undefined,dynamic_lookup on darwin.
1523 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
1525         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
1527 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
1529         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
1531 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
1532             Jim MacArthur  <jim.macarthur@arm.com>
1533             Marcus Shawcroft  <marcus.shawcroft@arm.com>
1534             Nigel Stephens  <nigel.stephens@arm.com>
1535             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1536             Richard Earnshaw  <rearnsha@arm.com>
1537             Sofiane Naci  <sofiane.naci@arm.com>
1538             Stephen Thomas  <stephen.thomas@arm.com>
1539             Tejas Belagod  <tejas.belagod@arm.com>
1540             Yufeng Zhang  <yufeng.zhang@arm.com>
1542         * configure.tgt: Add AArch64.
1544 2012-10-04  Jason Merrill  <jason@redhat.com>
1546         * testsuite/libgomp.c++/tls-init1.C: New.
1548 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
1550         * configure: Regenerated.
1552 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
1554         * config/linux/mips/futex.h (sys_futex0): Change to static
1555         function with noinline, nomips16 attributes under MIPS16. Adjust
1556         asm statement to place 'li v0,SYS_futex' immediately before
1557         syscall insn.
1559 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
1561         * libgomp.texi (Library Index): Renamed from "Index" to prevent
1562         conflict with index.html on case-insensitive file systems.
1564 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
1566         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
1567         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
1569 2012-07-02  Richard Guenther  <rguenther@suse.de>
1570             Michael Matz  <matz@suse.de>
1571             Tobias Grosser <tobias@grosser.es>
1572             Sebastian Pop <sebpop@gmail.com>
1574         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
1575         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1576         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1577         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1579 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
1581         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
1583 2012-06-22  Richard Guenther  <rguenther@suse.de>
1585         Merge from graphite branch
1586         2012-01-13  Tobias Grosser  <tobias@grosser.es>
1588         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1589         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
1591 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
1593         PR middle-end/53580
1594         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
1595         use GOMP_barrier () call instead.
1596         * testsuite/libgomp.c/pr26943-3.c: Likewise.
1597         * testsuite/libgomp.c/pr26943-4.c: Likewise.
1598         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
1599         call GOMP_barrier instead.
1600         * testsuite/libgomp.fortran/vla5.f90: Likewise.
1602 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
1604         PR libgomp/52993
1605         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
1606         argument to memset call.
1608 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1610         * configure: Regenerated.
1612 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1614         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
1616 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
1618         PR bootstrap/52812
1619         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
1621 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
1623         PR middle-end/52547
1624         * testsuite/libgomp.c/pr52547.c: New test.
1626 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1628         * testsuite/lib/libgomp.exp: load fortran-modules.exp
1630 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1632         * configure.tgt (mips-sgi-irix6*): Remove.
1634 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1636         * configure.tgt (alpha*-dec-osf*): Remove.
1638         * config/osf/sem.h: Remove.
1639         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
1641 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
1643         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
1645 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1647         PR libstdc++/52188
1648         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
1649         Remove ENABLE_SYMVERS_SOL2.
1650         * configure: Regenerate.
1651         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
1652         (PREPROCESS): New variable.
1653         (libgomp.ver): New target.
1654         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
1655         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
1656         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
1657         Use libgomp.ver.
1658         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
1659         * Makefile.in: Regenerate.
1661 2012-02-14  Walter Lee  <walt@tilera.com>
1663         * configure.tgt: Handle tilegx and tilepro.
1664         * config/linux/tile/futex.h: New file.
1666 2012-02-08  Richard Guenther  <rguenther@suse.de>
1668         PR tree-optimization/46886
1669         * testsuite/libgomp.c/pr46886.c: New testcase.
1671 2012-01-25  Matthias Klose  <doko@ubuntu.com>
1673         * config/linux/arm: Remove empty directory.
1674         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
1676 2011-12-09  Alan Modra  <amodra@gmail.com>
1678         PR libgomp/51376
1679         * task.c (GOMP_taskwait): Don't access task->children outside of
1680         task_lock mutex region.
1681         (GOMP_task): Likewise.
1683 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
1685         PR libgomp/51132
1686         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
1687         to file scope.
1688         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
1689         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
1690         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1691         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1692         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
1694 2011-12-02  Alan Modra  <amodra@gmail.com>
1696         * config/linux/affinity.c: Use atomic rather than sync builtin.
1697         * config/linux/lock.c: Likewise.
1698         * config/linux/ptrlock.h: Likewise.
1699         * config/linux/ptrlock.c: Likewise.
1700         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
1701         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
1702         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
1703         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
1704         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
1705         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
1706         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
1707         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
1708         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
1709         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
1711 2011-11-30  Alan Modra  <amodra@gmail.com>
1713         PR libgomp/51298
1714         * config/linux/bar.h: Use atomic rather than sync builtins.
1715         * config/linux/bar.c: Likewise.  Add missing acquire
1716         synchronisation on generation field.
1717         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
1718         double unlock.
1720 2011-11-30  Alan Modra  <amodra@gmail.com>
1722         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
1723         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
1724         * config/linux/mutex.h: Use atomic rather than sync builtins.
1725         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
1726         * config/linux/omp-lock.h: Comment fix.
1727         * config/linux/arm/mutex.h: Delete.
1728         * config/linux/powerpc/mutex.h: Delete.
1729         * config/linux/ia64/mutex.h: Delete.
1730         * config/linux/mips/mutex.h: Delete.
1732 2011-11-30  Alan Modra  <amodra@gmail.com>
1734         PR libgomp/51249
1735         * config/linux/sem.h: Rewrite.
1736         * config/linux/sem.c: Rewrite.
1738 2011-11-28  Richard Henderson  <rth@redhat.com>
1740         * libgomp.h (enum memmodel): New.
1742 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
1744         * configure: Regenerate.
1746 2011-10-10  Matthias Klose  <doko@ubuntu.com>
1748         * config/posix95: Remove empty directory.
1750 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
1752         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
1754 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
1756         PR fortran/49792
1757         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
1758         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
1760 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1762         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
1764 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1766         PR libgomp/49965
1767         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
1769 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
1771         * config/linux/proc.h: New.
1772         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
1773         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
1774         (gomp_init_num_threads): Update call to cpuset_popcount.
1775         (get_num_procs): Ditto.
1776         * config/linux/affinity.c (gomp_init_affinity): Call
1777         gomp_cpuset_popcount.
1779 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
1781         PR fortran/42041
1782         PR fortran/46752
1783         * omp.h.in (omp_in_final): New prototype.
1784         * omp_lib.f90.in (omp_in_final): New interface.
1785         (omp_integer_kind, omp_logical_kind): Remove
1786         and replace all its uses in the module with 4.
1787         (openmp_version): Change to 201107.
1788         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
1789         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
1790         kind for the parameters.
1791         (omp_in_final): New external.
1792         (openmp_version): Change to 201107.
1793         * task.c (omp_in_final): New function.
1794         (gomp_init_task): Initialize final_task.
1795         (GOMP_task): Remove unused attribute from flags.  Handle final
1796         tasks.
1797         (GOMP_taskyield): New function.
1798         (omp_in_final): Return true if if (false) or final (true) task
1799         or descendant of final (true).
1800         * fortran.c (omp_in_final_): New function.
1801         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
1802         (GOMP_3.0): Export GOMP_taskyield.
1803         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
1804         variables.
1805         (parse_unsigned_long_list): New function.
1806         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
1807         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
1808         even if parse_affinity returned false.
1809         * config/linux/affinity.c (gomp_init_affinity): Handle
1810         gomp_cpu_affinity_len == 0.
1811         * libgomp_g.h (GOMP_taskyield): New prototype.
1812         * libgomp.h (struct gomp_task): Add final_task field.
1813         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
1814         * team.c (gomp_team_start): Override new task's nthreads_var icv
1815         if list form OMP_NUM_THREADS has been used and it has value for
1816         the new nesting level.
1818         * testsuite/libgomp.c/atomic-11.c: New test.
1819         * testsuite/libgomp.c/atomic-12.c: New test.
1820         * testsuite/libgomp.c/atomic-13.c: New test.
1821         * testsuite/libgomp.c/atomic-14.c: New test.
1822         * testsuite/libgomp.c/reduction-6.c: New test.
1823         * testsuite/libgomp.c/task-5.c: New test.
1824         * testsuite/libgomp.c++/atomic-2.C: New test.
1825         * testsuite/libgomp.c++/atomic-3.C: New test.
1826         * testsuite/libgomp.c++/atomic-4.C: New test.
1827         * testsuite/libgomp.c++/atomic-5.C: New test.
1828         * testsuite/libgomp.c++/atomic-6.C: New test.
1829         * testsuite/libgomp.c++/atomic-7.C: New test.
1830         * testsuite/libgomp.c++/atomic-8.C: New test.
1831         * testsuite/libgomp.c++/atomic-9.C: New test.
1832         * testsuite/libgomp.c++/task-8.C: New test.
1833         * testsuite/libgomp.c++/reduction-4.C: New test.
1834         * testsuite/libgomp.fortran/allocatable7.f90: New test.
1835         * testsuite/libgomp.fortran/allocatable8.f90: New test.
1836         * testsuite/libgomp.fortran/crayptr3.f90: New test.
1837         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
1838         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
1839         * testsuite/libgomp.fortran/pointer1.f90: New test.
1840         * testsuite/libgomp.fortran/pointer2.f90: New test.
1841         * testsuite/libgomp.fortran/task4.f90: New test.
1843 2011-08-02  Tobias Burnus  <burnus@net-b.de>
1845         * libgomp.texi: Update OpenMP spec references to 3.1.
1846         (omp_in_final,OMP_PROC_BIND): New sections.
1847         (OMP_NUM_THREADS): Document that the value can be now a list.
1848         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
1850 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
1852         * config/linux/x86/futex.h: Check __x86_64__ instead of
1853         __LP64__.
1855 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
1857         PR middle-end/49897
1858         PR middle-end/49898
1859         * testsuite/libgomp.c/pr49897-1.c: New test.
1860         * testsuite/libgomp.c/pr49897-2.c: New test.
1861         * testsuite/libgomp.c/pr49898-1.c: New test.
1862         * testsuite/libgomp.c/pr49898-2.c: New test.
1864 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1866         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
1867         for ia32 instead of ilp32.
1869         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
1870         * testsuite/libgomp.c/atomic-6.c: Likewise.
1872 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
1874         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
1875         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
1877 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1879         PR libgomp/45351
1880         * config/osf/sem.h: New file.
1881         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
1883 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1885         PR target/49541
1886         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
1887         ldflags.
1889 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
1891         * config/linux/wait.h (do_spin): New inline, largely copied
1892         from do_wait, just don't do futex_wait here, instead return true if
1893         it should be done.
1894         (do_wait): Implement using do_spin.
1895         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
1896         to prototype.
1897         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1898         __sync_bool_compare_and_swap, pass the oldval to
1899         gomp_mutex_lock_slow.
1900         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
1901         If all mutex contenders are just spinning and not sleeping, don't
1902         change state to 2 unnecessarily.  Optimize the loop when state has
1903         already become 2 to use just one atomic operation per loop instead
1904         of two.
1905         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
1906         to prototype.
1907         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1908         __sync_bool_compare_and_swap, pass the oldval to
1909         gomp_mutex_lock_slow.
1911 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
1913         PR libgomp/49490
1914         * iter.c (gomp_iter_static_next): For chunk size 0
1915         only use n ceil/ nthreads size for the first
1916         n % nthreads threads in the team instead of
1917         all threads except for the last few ones which
1918         get less work or none at all.
1919         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
1920         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
1921         chunk argument, set run_sched_modifier to 0 for static
1922         resp. 1 for other kinds.  If chunk argument is 0
1923         and not static, set value to 1.
1925 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
1927         PR c++/49043
1928         * testsuite/libgomp.c++/pr49043.C: New test.
1930         PR c++/48869
1931         * testsuite/libgomp.c++/pr48869.C: New test.
1933 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
1935         PR fortran/48894
1936         * fortran.c: Include limits.h.
1937         (TO_INT): Define.
1938         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
1939         *set.
1940         (omp_set_num_threads_8_, omp_set_schedule_8_,
1941         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
1942         omp_get_team_size_8_): Use TO_INT macro.
1943         * testsuite/libgomp.fortran/pr48894.f90: New test.
1945 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
1947         PR middle-end/48591
1948         * testsuite/libgomp.c/pr48591.c: New test.
1950 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1952         PR bootstrap/48135
1953         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
1954         * configure: Regenerate.
1956 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
1958         PR fortran/47886
1959         * testsuite/libgomp.fortran/task3.f90: New test.
1961 2011-02-24  Tobias Burnus  <burnus@net-b.de>
1963         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
1965 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
1967         PR libgomp/47854
1968         * libgomp.texi (omp_get_wtime): Don't say time in the past
1969         must be Unix Epoch.
1971 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
1973         PR libgomp/47804
1974         * testsuite/libgomp.fortran/fortran.exp: Check for both
1975         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
1976         but $blddir != "", still append ${blddir}/${lang_library_path}
1977         to ld_library_path.
1979 2011-02-16  Tobias Burnus  <burnus@net-b.de>
1981         PR libgomp/47758
1982         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
1983         of libquadmath.a before adding its libpath to ldflags.
1985 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
1987         PR libgomp/47731
1988         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
1989         to FUTEX_WAIT futex syscall.
1990         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
1992 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1994         * configure: Regenerate.
1996 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
1998         PR libstdc++/36104
1999         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
2001 2011-01-16  Gerald Pfeifer
2003         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
2005 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
2007         PR fortran/46874
2008         * libgomp.fortran/allocatable6.f90: New test.
2010 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2012         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
2013         * configure: Regenerate.
2015 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
2017         PR target/40125
2018         PR lto/46695
2019         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
2020         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
2021         * aclocal.m4: Regenerate.
2022         * configure: Regenerate.
2023         * Makefile.in: Regenerate.
2024         * testsuite/Makefile.in: Regenerate.
2026 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
2028         PR fortran/46753
2029         * libgomp.fortran/pr46753.f90: New test.
2031         PR libgomp/43706
2032         * env.c (initialize_env): Default to spin count 300000
2033         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
2034         is specified.
2036         PR libgomp/45240
2037         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
2038         at the end if sync builtins aren't supported.
2040 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2042         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
2044 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2046         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
2048 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
2050         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
2052 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2053             Tobias Burnus  <burnus@net-b.de>
2055         PR fortran/32049
2056         * configure.ac:
2057         * configure: Regenerate.
2059 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2061         * config/linux/futex.h: New.
2062         * config/linux/arm/mutex.h: New.
2063         * configure.tgt (arm*-*-linux*): Add config path.
2065 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
2067         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2069 2010-09-23  Tobias Burnus  <burnus@net-b.de>
2071         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
2072         Change Fortran datatype to LOGICAL.
2073         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
2074         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
2076 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2078         * configure: Regenerate.
2080 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
2082         * libgomp.texi: Add function keyword to a couple of Fortran
2083         interfaces, use integer instead of int for Fortran.
2085 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
2087         * libgomp.texi: Fix spelling and pasto problems throughout.
2088         Adjust prototypes to match code.
2090 2010-07-24  Tobias Burnus  <burnus@net-b.de>
2092         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
2093         silence -fwhole-file warning.
2095 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2097         * configure.tgt (*-*-solaris2.[56]*): Removed.
2099 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2101         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
2102         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
2103         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
2104         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
2105         targetting solaris2*.
2106         * configure: Regenerate.
2107         * config.h.in: Regenerate.
2109         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
2110         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
2111         Add libgomp_version_dep.
2112         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
2113         versioning.
2114         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
2115         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
2116         * Makefile.in: Regenerate.
2118         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
2119         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2120         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
2121         to common block, protected by
2122         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
2124 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
2126         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
2128 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
2130         PR bootstrap/43170
2131         * configure: Regenerate.
2133 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2135         PR other/43620
2136         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
2137         * configure: Regenerate.
2138         * Makefile.in: Regenerate.
2139         * testsuite/Makefile.in: Regenerate.
2141 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
2143         PR c/43893
2144         * testsuite/libgomp.c/pr43893.c: New test.
2145         * testsuite/libgomp.c++/pr43893.C: New test.
2147 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
2149         PR middle-end/43570
2150         * testsuite/libgomp.fortran/vla8.f90: New test.
2152 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
2154         PR libgomp/43706
2155         * config/linux/affinity.c (gomp_init_affinity): Decrease
2156         gomp_available_cpus if affinity mask confines the process to fewer
2157         CPUs.
2158         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
2159         non-NULL, just return gomp_available_cpus.
2161         PR libgomp/43569
2162         * sections.c (gomp_sections_init): Initialize ws->mode.
2164 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
2166         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
2167         not unused bar variable.
2168         * configure: Regenerate.
2170 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2172         * Makefile.in: Regenerate.
2173         * aclocal.m4: Regenerate.
2174         * testsuite/Makefile.in: Regenerate.
2176 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
2178         PR libgomp/42942
2179         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
2180         (initialize_env): Adjust callers.
2181         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
2182         when the argument is 0.
2184         * testsuite/libgomp.c/pr42942.c: New test.
2186 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
2188         PR middle-end/42644
2189         PR middle-end/42130
2190         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
2191         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
2193 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2195         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
2196         * testsuite/libgomp.c++/task-6.C: Likewise.
2198 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
2200         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
2202 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
2204         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
2205         * configure: Regenerate.
2207 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
2209         PR fortran/42866
2210         * testsuite/libgomp.fortran/allocatable5.f90: New test.
2212 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
2214         * configure.ac: Test for executability of GFORTRAN.
2215         * configure: Regenerate.
2217 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2219         * configure: Regenerate.
2221 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
2223         PR libgomp/42602
2224         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
2226 2010-01-03  Richard Guenther  <rguenther@suse.de>
2228         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
2230 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
2232         * testsuite/libgomp.graphite/pr4118.c: New.
2234 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
2236         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
2237         for darwin, protect the test with require-effective-target tls_runtime.
2238         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
2240 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
2242         PR target/41605
2243         * testsuite/lib/libgomp.exp: Provide -B options to allow for
2244         link spec %s substitutions for static libraries.
2246 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
2248         PR testsuite/42135
2249         * libgomp.graphite/force-parallel-2.c: Reduce array size.
2251 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2253         * Makefile.in: Regenerate.
2254         * configure: Regenerate.
2255         * testsuite/Makefile.in: Regenerate.
2257 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
2259         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
2260         settings for LC_ALL and LANG.
2262 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
2264         PR fortran/42162
2265         * testsuite/libgomp.fortran/pr42162.f90: New test.
2267 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
2269         PR middle-end/42029
2270         * testsuite/libgomp.c/pr42029.c: New test.
2272 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
2274         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
2275         *s.  Accept ld version without text in ()s.
2276         * configure: Regenerated.
2278 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
2280         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
2282 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2284         PR libgomp/41418
2285         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
2286         or a hyphen (happens with fortran language disabled).
2287         * configure: Regenerate.
2289 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2291         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
2292         use sed script portable to Solaris /bin/sed for extracting ld
2293         version.
2294         * configure: Regenerate.
2296 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
2298         * testsuite/libgomp.graphite/bounds.c: New test.
2300 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2302         * Makefile.am (libgomp_la_LINK): New.
2303         * Makefile.in: Regenerate.
2305 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2307         * configure.ac (AC_PREREQ): Bump to 2.64.
2309 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2311         * Makefile.am (install-html, install-pdf): Remove.
2312         * Makefile.in: Regenerate.
2314         * Makefile.in: Regenerate.
2315         * aclocal.m4: Regenerate.
2316         * config.h.in: Regenerate.
2317         * configure: Regenerate.
2318         * testsuite/Makefile.in: Regenerate.
2320 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2322         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
2323         * Makefile.in: Regenerate.
2325 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
2327         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
2328         * Makefile.in: Regenerate.
2330 2009-08-19  Tobias Burnus  <burnus@net-b.de>
2332         PR fortran/41102
2333         omp_lib.h.in: Fix -std=f95 errors.
2336 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
2338         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
2339         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
2340         * testsuite/libgomp.graphite/graphite.exp: New.
2342 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
2344         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
2345         only build.
2347 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
2349         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
2350         needed memory barrier semantics.
2351         * config/linux/mips/mutex.h: New file.
2353 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2355         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
2357 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
2359         * configure: Regenerate.
2361 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
2363         PR testsuite/40699
2364         PR testsuite/40707
2365         PR testsuite/40709
2366         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
2367         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
2368         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
2370 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
2372         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
2373         options when choosing a multilib.
2375 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
2377         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
2378         ld_library_path.  Use add_path.  Add just find_libgcc_s to
2379         ld_library_path, not every libgcc multilib directory.
2380         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
2381         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
2382         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
2383         Use add_path.
2384         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
2386 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
2388         * Makefile.am (LTLDFLAGS): Define.
2389         (LINK): Define.
2390         * Makefile.in: Regenerate.
2392 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
2394         PR fortran/39718
2395         * testsuite/libgomp.fortran/fortran.exp: Don't link with
2396         libgfortranbegin, check existence of libgfortran.a instead of
2397         libgfortranbegin.a.
2399 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
2401         PR libgomp/40174
2402         * team.c (gomp_thread_start): Destroy thr->release semaphore.
2403         (gomp_free_pool_helper): Likewise.
2405 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
2406             Jakub Jelinek  <jakub@redhat.com>
2408         PR fortran/35423
2409         * testsuite/libgomp.fortran/workshare2.f90: New test.
2411 2009-04-09  Nick Clifton  <nickc@redhat.com>
2413         * iter.c: Change copyright header to refer to version 3 of the
2414         GNU General Public License with version 3.1 of the GCC Runtime
2415         Library Exception and to point readers at the COPYING3 and
2416         COPYING3.RUNTIME files and the FSF's license web page.
2417         * alloc.c: Likewise.
2418         * barrier.c: Likewise.
2419         * config/bsd/proc.c: Likewise.
2420         * config/linux/affinity.c: Likewise.
2421         * config/linux/alpha/futex.h: Likewise.
2422         * config/linux/bar.c: Likewise.
2423         * config/linux/bar.h: Likewise.
2424         * config/linux/ia64/futex.h: Likewise.
2425         * config/linux/ia64/mutex.h: Likewise.
2426         * config/linux/lock.c: Likewise.
2427         * config/linux/mips/futex.h: Likewise.
2428         * config/linux/mutex.c: Likewise.
2429         * config/linux/mutex.h: Likewise.
2430         * config/linux/powerpc/futex.h: Likewise.
2431         * config/linux/proc.c: Likewise.
2432         * config/linux/ptrlock.c: Likewise.
2433         * config/linux/ptrlock.h: Likewise.
2434         * config/linux/s390/futex.h: Likewise.
2435         * config/linux/sem.c: Likewise.
2436         * config/linux/sem.h: Likewise.
2437         * config/linux/sparc/futex.h: Likewise.
2438         * config/linux/wait.h: Likewise.
2439         * config/linux/x86/futex.h: Likewise.
2440         * config/mingw32/proc.c: Likewise.
2441         * config/mingw32/time.c: Likewise.
2442         * config/posix/affinity.c: Likewise.
2443         * config/posix/bar.c: Likewise.
2444         * config/posix/bar.h: Likewise.
2445         * config/posix/lock.c: Likewise.
2446         * config/posix/mutex.h: Likewise.
2447         * config/posix/proc.c: Likewise.
2448         * config/posix/ptrlock.h: Likewise.
2449         * config/posix/sem.c: Likewise.
2450         * config/posix/sem.h: Likewise.
2451         * config/posix/time.c: Likewise.
2452         * config/posix95/lock.c: Likewise.
2453         * critical.c: Likewise.
2454         * env.c: Likewise.
2455         * error.c: Likewise.
2456         * fortran.c: Likewise.
2457         * iter_ull.c: Likewise.
2458         * libgomp.h: Likewise.
2459         * libgomp_f.h.in: Likewise.
2460         * libgomp_g.h: Likewise.
2461         * loop.c: Likewise.
2462         * loop_ull.c: Likewise.
2463         * omp.h.in: Likewise.
2464         * omp_lib.f90.in: Likewise.
2465         * omp_lib.h.in: Likewise.
2466         * ordered.c: Likewise.
2467         * parallel.c: Likewise.
2468         * sections.c: Likewise.
2469         * single.c: Likewise.
2470         * task.c: Likewise.
2471         * team.c: Likewise.
2472         * work.c: Likewise.
2474 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
2476         * testsuite/config/default.exp: Change copyright header to refer to
2477         version 3 of the GNU General Public License and to point readers
2478         at the COPYING3 file and the FSF's license web page.
2480 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
2482         PR middle-end/39573
2483         * libgomp.c++/pr39573.C: New test.
2485 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
2487         PR other/39591
2488         * testsuite/libgomp.c/pr39591-1.c: New test.
2489         * testsuite/libgomp.c/pr39591-2.c: New test.
2490         * testsuite/libgomp.c/pr39591-3.c: New test.
2492 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
2494         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
2495         * testsuite/libgomp.c/atomic-6.c: Ditto.
2497 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
2499         PR c/39495
2500         * testsuite/libgomp.c/loop-12.c: New test.
2501         * testsuite/libgomp.c/loop-11.c: New test.
2502         * testsuite/libgomp.c++/loop-11.C: New test.
2503         * testsuite/libgomp.c++/loop-12.C: New test.
2504         * testsuite/libgomp.c++/for-8.C: New test.
2506 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2508         * configure: Regenerate.
2510 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
2512         PR middle-end/39154
2513         * testsuite/libgomp.c/pr39154.c: New test.
2515 2009-01-30  Ian Lance Taylor  <iant@google.com>
2517         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
2518         libgomp_ld_is_gold.  Get gold version number.
2519         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
2520         * configure: Rebuild.
2522 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
2524         * testsuite/lib/libgomp.exp: Add -B option for targets that
2525         use libgfortran.a%s in their specs.
2527 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
2529         PR libgomp/38086
2530         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
2531         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
2532         HAVE_AS_SYMVER_DIRECTIVE is not defined.
2533         * configure: Regenerated.
2534         * config.h.in: Likewise.
2536 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
2538         PR c++/38650
2539         * testsuite/libgomp.c/pr38650.c: New test.
2540         * testsuite/libgomp.c++/pr38650.C: New test.
2542 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
2544         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
2546 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
2548         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
2550 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2552         * configure: Regenerate.
2554 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
2556         PR middle-end/36802
2557         * testsuite/libgomp.c/pr36802-1.c: New test.
2558         * testsuite/libgomp.c/pr36802-2.c: New test.
2559         * testsuite/libgomp.c/pr36802-3.c: New test.
2561 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
2563         PR libgomp/38270
2564         * config/linux/powerpc/mutex.h: New.
2566 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
2568         PR c++/38257
2569         * testsuite/libgomp.c++/for-7.C: New test.
2571         PR c++/38348
2572         * testsuite/libgomp.c++/for-6.C: New test.
2574 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
2576         PR testsuite/28870
2577         * testsuite/lib/libgomp.exp: Include new timeout library files.
2578         (libgomp_target_compile): Set timeout value from new proc.
2580 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
2582         PR libgomp/37938
2583         * config/linux/ia64/mutex.h: New.
2585 2008-11-04  Tobias Burnus  <burnus@net-b.de>
2587         PR libgomp/37935
2588         * libgomp.texi (Runtime library routines, environment variables):
2589         Update for OpenMP version 3.0.
2591 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
2592             Steve Ellcey  <sje@cup.hp.com>
2594         * configure: Regenerate for new libtool.
2595         * Makefile.in: Ditto.
2596         * testsuite/Makefile.in: Ditto.
2598 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
2599             Andreas Tobler  <a.tobler@schweiz.org>
2601         * config/bsd/proc.c: New file.
2602         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
2603         * configure.ac: Check for header <sys/sysctl.h>
2604         * configure: Regenerate.
2605         * config.h.in: Likewise.
2607 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
2609         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
2611 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2613         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
2614         * Makefile.in: Regenerated.
2615         * testsuite/Makefile.in: Regenerated.
2617 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
2619         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
2620         depend on blddir if blddir exists.
2621         (libgomp_target_compile): Likewise.
2622         * testsuite/libgomp.c++/c++.exp: Likewise.
2623         * testsuite/libgomp.fortran/fortran.exp: Likewise.
2625 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2627         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
2628         Do not list GPL as Invariant Section.
2630 2008-07-28  Ilie Garbacea  <ilie@mips.com>
2631             Chao-ying Fu  <fu@mips.com>
2633         * configure.tgt: Enable futex for MIPS.
2634         * config/linux/mips/futex.h: New file.
2636 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
2638         * team.c (gomp_team_end): Free team immediately if it has
2639         just one thread.
2641 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
2643         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
2644         * testsuite/libgomp.fortran/fortran.exp: Same.
2645         * testsuite/libgomp.c/c.exp: Same.
2646         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
2647         directory to library path first.
2649 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
2651         * env.c (parse_stacksize): Add cast to avoid warning.
2652         (parse_spincount): Likewise.
2654 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
2656         * testsuite/libgomp.c/loop-10.c: New test.
2657         * libgomp.c/loop-3.c (main): Add lastprivate clause.
2658         * libgomp.c++/loop-6.C (main): Likewise.
2660         PR debug/36617
2661         * testsuite/libgomp.c/debug-1.c: New test.
2663 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
2665         * testsuite/libgomp.c/nqueens-1.c: New test.
2667         PR c++/36523
2668         * testsuite/libgomp.c++/task-7.C: New function.
2670 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2672         * configure: Regenerate.
2674 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2676         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
2677         mutex when HAVE_SYNC_BUILTINS isn't defined.
2679 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2681         * libgomp.texi (omp_test_lock): Fix typo.
2683 2008-06-12  Tobias Burnus  <burnus@net-b.de>
2685         * omp_lib.f90.in: Add "implicit none".
2687 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
2689         PR middle-end/36506
2690         * testsuite/libgomp.c/reduction-5.c: New test.
2692 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
2694         * libgomp.h (struct gomp_task): Add in_tied_task field.
2695         * task.c (gomp_init_task): Initialize it.
2696         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
2697         unconditionally.  Don't call gomp_team_barrier_wake if
2698         current task is implicit or if(0) from implicit and number of
2699         running tasks is equal to nthreads - 1.
2701         PR libgomp/36471
2702         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
2703         omp_get_team_size_8): Fix pastos.
2705         PR libgomp/36469
2706         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
2707         * configure: Regenerated.
2708         * config.h.in: Regenerated.
2709         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
2710         defined.
2712 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
2714         PR bootstrap/36452
2715         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
2716         (GOMP_loop_ull_dynamic_start): Likewise.
2717         (GOMP_loop_ull_guided_start): Likewise.
2718         (GOMP_loop_ull_ordered_static_start): Likewise.
2719         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
2720         (GOMP_loop_ull_ordered_guided_start): Likewise.
2722 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
2723             Richard Henderson  <rth@redhat.com>
2724             Ulrich Drepper  <drepper@redhat.com>
2725             Jakob Blomer  <jakob.blomer@ira.uka.de>
2727         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
2728         Substitute also OMP_*LOCK_25*.
2729         * configure: Regenerated.
2730         * config.h.in: Regenerated.
2731         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
2732         ptrlock.c and task.c.
2733         * Makefile.in: Regenerated.
2734         * testsuite/Makefile.in: Regenerated.
2735         * task.c: New file.
2736         * loop_ull.c: New file.
2737         * iter_ull.c: New file.
2738         * libgomp.h: Include ptrlock.h.
2739         (enum gomp_task_kind): New type.
2740         (struct gomp_team): Add task_lock, task_queue, task_count,
2741         task_running_count, single_count fields.  Add
2742         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
2743         Remove work_share_lock, generation_mask,
2744         oldest_live_gen, num_live_gen and init_work_shares fields, add
2745         work work_share_list_alloc, work_share_list_free and work_share_chunk
2746         fields.  Change work_shares from pointer to pointers into an array.
2747         Change ordered_release field into gomp_sem_t ** from flexible array
2748         member.  Add implicit_task and initial_work_shares fields.
2749         Move close to the end of the struct.
2750         (struct gomp_team_state): Add single_count, last_work_share,
2751         active_level and level fields, remove work_share_generation.
2752         (gomp_barrier_handle_tasks): New prototype.
2753         (gomp_finish_task): New inline function.
2754         (struct gomp_work_share): Move chunk_size, end, incr into
2755         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
2756         next_ll fields.  Reshuffle fields.  Add next_alloc,
2757         next_ws, next_free and inline_ordered_team_ids fields, change
2758         ordered_team_ids into pointer from flexible array member.
2759         Add mode field.  Put lock and next into a different cache line
2760         from most of the write-once fields.
2761         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
2762         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
2763         gomp_iter_ull_guided_next): New prototypes.
2764         (gomp_new_icv): New prototype.
2765         (struct gomp_thread): Add thread_pool and task fields.
2766         (struct gomp_thread_pool): New type.
2767         (gomp_new_team): New prototype.
2768         (gomp_team_start): Change type of last argument.
2769         (gomp_new_work_share): Removed.
2770         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
2771         (gomp_work_share_init_done): New static inline.
2772         (gomp_throttled_spin_count_var, gomp_available_cpus,
2773         gomp_managed_threads): New extern decls.
2774         (gomp_init_task): New prototype.
2775         (gomp_spin_count_var): New extern var decl.
2776         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
2777         or no alias support, or if not PIC.
2778         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
2779         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
2780         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
2781         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
2782         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
2783         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
2784         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
2785         gomp_test_nest_lock_25): New prototypes.
2786         (omp_lock_symver, strong_alias): Define.
2787         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
2788         decls.
2789         (gomp_end_task): New.
2790         (struct gomp_task_icv, gomp_global_icv): New.
2791         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
2792         (struct gomp_task): New.
2793         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2794         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2795         (gomp_icv): New.
2796         (gomp_schedule_type): Reorder enum to match
2797         omp_sched_t.
2798         * team.c (struct gomp_thread_start_data): Add thread_pool and task
2799         fields.
2800         (gomp_thread_start): Add gomp_team_barrier_wait call.
2801         For non-nested case remove clearing of docked thread thr fields.
2802         Use pool fields instead of global gomp_* variables.  Use
2803         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
2804         Create tasks for each member thread.
2805         (free_team): Only destroy team barrier, task_lock here and free it.
2806         (gomp_free_thread): Free last_team if non-NULL.
2807         (gomp_team_end): Call gomp_team_barrier_wait instead of
2808         gomp_barrier_wait.  For nested case call one extra
2809         gomp_barrier_wait.  Move here some destruction from free_team.
2810         Call free_team on pool->last_team if any, rather than freeing
2811         current team.  Destroy work_share_list_free_lock ifndef
2812         HAVE_SYNC_BUILTINS.
2813         (gomp_new_icv): New function.
2814         (gomp_threads, gomp_threads_size, gomp_threads_used,
2815         gomp_threads_dock): Removed.
2816         (gomp_thread_destructor): New variable.
2817         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
2818         functions.
2819         (gomp_team_start): Create new pool if current thread doesn't have
2820         one.  Use pool fields instead of global gomp_* variables.
2821         Initialize thread_pool field for new threads.  Clear single_count.
2822         Change last argument from ws to team, don't create
2823         new team, set ts.work_share to &team->work_shares[0] and clear
2824         ts.last_work_share.  Don't clear ts.work_share_generation.
2825         If number of threads changed, adjust atomically gomp_managed_threads.
2826         Use gomp_init_task instead of gomp_new_task,
2827         set thr->task to the corresponding implicit_task array entry.
2828         Create tasks for each member thread.  Initialize ts.level.
2829         (initialize_team): Call pthread_key_create on
2830         gomp_thread_destructor.
2831         (team_destructor): New function.
2832         (new_team): Removed.
2833         (gomp_new_team): New function.
2834         (free_team): Free gomp_work_share blocks chained through next_alloc,
2835         instead of freeing work_shares and destroying work_share_lock.
2836         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
2837         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
2838         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
2839         of gomp_barrier_wait.
2840         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
2841         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
2842         if gomp_work_share_start returned true.  Don't unlock ws->lock.
2843         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
2844         of gomp_barrier_wait.
2845         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
2846         gomp_work_share_init_done if gomp_work_share_start returned true.
2847         Don't unlock ws->lock.
2848         * work.c: Include stddef.h.
2849         (free_work_share): Use work_share_list_free_lock instead
2850         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
2851         Call gomp_fini_work_share and then either free ws if orphaned, or
2852         put it into work_share_list_free list of the current team.
2853         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
2854         functions.
2855         (gomp_work_share_start, gomp_work_share_end,
2856         gomp_work_share_end_nowait): Rewritten.
2857         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
2858         (openmp_version): Set to 200805.
2859         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
2860         omp_sched_guided, omp_sched_auto): New parameters.
2861         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2862         omp_set_max_active_levels, omp_get_max_active_levels,
2863         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2864         omp_get_active_level): New interfaces.
2865         * omp_lib.h.in (openmp_version): Set to 200805.
2866         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
2867         omp_sched_guided, omp_sched_auto): New parameters.
2868         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2869         omp_set_max_active_levels, omp_get_max_active_levels,
2870         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2871         omp_get_active_level): New externals.
2872         * loop.c: Include limits.h.
2873         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
2874         GFS_AUTO.
2875         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
2876         Likewise.  Use gomp_icv.
2877         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
2878         ts.static_trip here.
2879         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
2880         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
2881         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
2882         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
2883         don't unlock ws->lock, otherwise lock it.
2884         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
2885         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
2886         (gomp_parallel_loop_start): Call gomp_new_team instead of
2887         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
2888         Adjust gomp_team_start caller.  Pass 0 as second argument to
2889         gomp_resolve_num_threads.
2890         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
2891         If adding ws->chunk_size nthreads + 1 times after end won't
2892         overflow, set ws->mode to 1.
2893         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
2894         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
2895         GOMP_loop_ull_ordered_static_start,
2896         GOMP_loop_ull_ordered_dynamic_start,
2897         GOMP_loop_ull_ordered_guided_start,
2898         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
2899         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
2900         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
2901         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
2902         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
2903         prototypes.
2904         * libgomp.map: Export lock routines also @@OMP_2.0.
2905         (GOMP_loop_ordered_dynamic_first,
2906         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
2907         GOMP_loop_ordered_static_first): Remove.
2908         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
2909         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
2910         GOMP_loop_ull_ordered_dynamic_next,
2911         GOMP_loop_ull_ordered_dynamic_start,
2912         GOMP_loop_ull_ordered_guided_next,
2913         GOMP_loop_ull_ordered_guided_start,
2914         GOMP_loop_ull_ordered_runtime_next,
2915         GOMP_loop_ull_ordered_runtime_start,
2916         GOMP_loop_ull_ordered_static_next,
2917         GOMP_loop_ull_ordered_static_start,
2918         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
2919         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
2920         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
2921         (omp_set_schedule, omp_get_schedule,
2922         omp_get_thread_limit, omp_set_max_active_levels,
2923         omp_get_max_active_levels, omp_get_level,
2924         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
2925         omp_set_schedule_, omp_set_schedule_8_,
2926         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2927         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2928         omp_get_max_active_levels_, omp_get_level_,
2929         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2930         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2931         New exports @@OMP_3.0.
2932         * omp.h.in (omp_sched_t): New type.
2933         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2934         omp_set_max_active_levels, omp_get_max_active_levels,
2935         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2936         omp_get_active_level): New prototypes.
2937         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
2938         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
2939         gomp_thread_limit_var, gomp_remaining_threads_count,
2940         gomp_remaining_threads_lock): New variables.
2941         (parse_spincount): New function.
2942         (initialize_env): Call gomp_init_num_threads unconditionally.
2943         Initialize gomp_available_cpus.  Call parse_spincount,
2944         initialize gomp_{,throttled_}spin_count_var
2945         depending on presence and value of OMP_WAIT_POLICY and
2946         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
2947         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
2948         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
2949         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
2950         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
2951         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2952         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2953         (gomp_global_icv): New.
2954         (parse_schedule): Use it.  Parse "auto".
2955         (omp_set_num_threads): Use gomp_icv.
2956         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
2957         Likewise.
2958         (omp_get_max_threads): Move from parallel.c.
2959         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2960         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
2961         add ialias.
2962         (parse_stacksize, parse_wait_policy): New functions.
2963         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
2964         both wrappers for compatibility and new locks.
2965         (omp_set_schedule, omp_get_schedule,
2966         omp_get_thread_limit, omp_set_max_active_levels,
2967         omp_get_max_active_levels, omp_get_level,
2968         omp_get_ancestor_thread_num, omp_get_team_size,
2969         omp_get_active_level): New ialias_redirect.
2970         (omp_set_schedule_, omp_set_schedule_8_,
2971         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2972         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2973         omp_get_max_active_levels_, omp_get_level_,
2974         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2975         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2976         New functions.
2977         * parallel.c: Include limits.h.
2978         (gomp_resolve_num_threads): Add count argument.  Rewritten.
2979         (GOMP_parallel_start): Call gomp_new_team and pass that as last
2980         argument to gomp_team_start.  Pass 0 as second argument to
2981         gomp_resolve_num_threads.
2982         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
2983         if gomp_thread_limit_var != ULONG_MAX.
2984         (omp_in_parallel): Implement using ts.active_level.
2985         (omp_get_max_threads): Move to env.c.
2986         (omp_get_level, omp_get_ancestor_thread_num,
2987         omp_get_team_size, omp_get_active_level): New functions,
2988         add ialias.
2989         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
2990         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
2991         gomp_iter_dynamic_next instead of the _locked variant and don't take
2992         lock around it, otherwise acquire it before calling
2993         gomp_iter_dynamic_next_locked.
2994         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
2995         gomp_iter_dynamic_next instead of the _locked variant and don't take
2996         lock around it.
2997         (GOMP_parallel_sections_start): Call gomp_new_team instead of
2998         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
2999         Adjust gomp_team_start caller.  Pass count as second argument to
3000         gomp_resolve_num_threads, don't adjust num_threads after the call.
3001         Use gomp_icv.
3002         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
3003         ws->chunk_size by incr.
3004         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
3005         code.
3006         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
3007         types.
3008         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
3009         (omp_check_defines): Check even the compat defines.
3010         * config/linux/ptrlock.c: New file.
3011         * config/linux/ptrlock.h: New file.
3012         * config/linux/wait.h: New file.
3013         * config/posix/ptrlock.c: New file.
3014         * config/posix/ptrlock.h: New file.
3015         * config/linux/bar.h (gomp_team_barrier_wait,
3016         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
3017         (gomp_team_barrier_set_task_pending,
3018         gomp_team_barrier_clear_task_pending,
3019         gomp_team_barrier_set_waiting_for_tasks,
3020         gomp_team_barrier_waiting_for_tasks,
3021         gomp_team_barrier_done): New inlines.
3022         (gomp_barrier_t): Rewritten.
3023         (gomp_barrier_state_t): New typedef.
3024         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
3025         gomp_barrier_wait_start): Rewritten.
3026         (gomp_barrier_wait_end): Change second argument to
3027         gomp_barrier_state_t.
3028         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
3029         inlines.
3030         * config/linux/bar.c: Include wait.h instead of libgomp.h and
3031         futex.h.
3032         (gomp_barrier_wait_end): Rewritten.
3033         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
3034         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
3035         * config/posix/bar.h (gomp_barrier_t): Add generation field.
3036         (gomp_barrier_state_t): New typedef.
3037         (gomp_team_barrier_wait,
3038         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
3039         (gomp_barrier_wait_start): Or all but low 2 bits from generation
3040         into the return value.  Return gomp_barrier_state_t.
3041         (gomp_team_barrier_set_task_pending,
3042         gomp_team_barrier_clear_task_pending,
3043         gomp_team_barrier_set_waiting_for_tasks,
3044         gomp_team_barrier_waiting_for_tasks,
3045         gomp_team_barrier_done): New inlines.
3046         (gomp_barrier_wait_end): Change second argument to
3047         gomp_barrier_state_t.
3048         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
3049         inlines.
3050         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
3051         (gomp_barrier_wait_end): Change second argument to
3052         gomp_barrier_state_t.
3053         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
3054         gomp_team_barrier_wake): New functions.
3055         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
3056         futex.h.
3057         (gomp_futex_wake, gomp_futex_wait): New variables.
3058         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
3059         * config/linux/lock.c: Rewrite to make locks task owned,
3060         for backwards compatibility provide the old entrypoints
3061         if symbol versioning.  Include wait.h instead of libgomp.h and
3062         futex.h.
3063         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
3064         * config/posix95/lock.c: Rewrite to make locks task owned,
3065         for backwards compatibility provide the old entrypoints
3066         if symbol versioning.
3067         * config/posix/lock.c: Rewrite to make locks task owned,
3068         for backwards compatibility provide the old entrypoints
3069         if symbol versioning.
3070         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
3071         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
3072         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
3073         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3074         (sys_futex0): Return error code.
3075         (futex_wake, futex_wait): If ENOSYS was returned, clear
3076         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3077         (cpu_relax, atomic_write_barrier): New static inlines.
3078         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3079         (futex_wake, futex_wait): If ENOSYS was returned, clear
3080         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3081         (cpu_relax, atomic_write_barrier): New static inlines.
3082         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3083         (sys_futex0): Return error code.
3084         (futex_wake, futex_wait): If ENOSYS was returned, clear
3085         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3086         (cpu_relax, atomic_write_barrier): New static inlines.
3087         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3088         (sys_futex0): Return error code.
3089         (futex_wake, futex_wait): If ENOSYS was returned, clear
3090         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3091         (cpu_relax, atomic_write_barrier): New static inlines.
3092         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3093         (sys_futex0): Return error code.
3094         (futex_wake, futex_wait): If ENOSYS was returned, clear
3095         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3096         (cpu_relax, atomic_write_barrier): New static inlines.
3097         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
3098         (sys_futex0): Return error code.
3099         (futex_wake, futex_wait): If ENOSYS was returned, clear
3100         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
3101         (cpu_relax, atomic_write_barrier): New static inlines.
3102         * config/linux/sem.c: Include wait.h instead of libgomp.h and
3103         futex.h.
3104         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
3105         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
3106         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
3107         types.
3108         (omp_nest_lock_t): Change owner into void *, add lock field.
3109         * config/posix95/omp-lock.h: Include semaphore.h.
3110         (omp_lock_25_t, omp_nest_lock_25_t): New types.
3111         (omp_lock_t): Use sem_t instead of mutex if semaphores
3112         aren't broken.
3113         (omp_nest_lock_t): Likewise.  Change owner to void *.
3114         * config/posix/omp-lock.h: Include semaphore.h.
3115         (omp_lock_25_t, omp_nest_lock_25_t): New types.
3116         (omp_lock_t): Use sem_t instead of mutex if semaphores
3117         aren't broken.
3118         (omp_nest_lock_t): Likewise.  Add owner field.
3120 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
3122         * testsuite/libgomp.c/collapse-1.c: New test.
3123         * testsuite/libgomp.c/collapse-2.c: New test.
3124         * testsuite/libgomp.c/collapse-3.c: New test.
3125         * testsuite/libgomp.c/icv-1.c: New test.
3126         * testsuite/libgomp.c/icv-2.c: New test.
3127         * testsuite/libgomp.c/lib-2.c: New test.
3128         * testsuite/libgomp.c/lock-1.c: New test.
3129         * testsuite/libgomp.c/lock-2.c: New test.
3130         * testsuite/libgomp.c/lock-3.c: New test.
3131         * testsuite/libgomp.c/loop-4.c: New test.
3132         * testsuite/libgomp.c/loop-5.c: New test.
3133         * testsuite/libgomp.c/loop-6.c: New test.
3134         * testsuite/libgomp.c/loop-7.c: New test.
3135         * testsuite/libgomp.c/loop-8.c: New test.
3136         * testsuite/libgomp.c/loop-9.c: New test.
3137         * testsuite/libgomp.c/nested-3.c: New test.
3138         * testsuite/libgomp.c/nestedfn-6.c: New test.
3139         * testsuite/libgomp.c/sort-1.c: New test.
3140         * testsuite/libgomp.c/task-1.c: New test.
3141         * testsuite/libgomp.c/task-2.c: New test.
3142         * testsuite/libgomp.c/task-3.c: New test.
3143         * testsuite/libgomp.c/task-4.c: New test.
3144         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
3145         to C++ testsuite default compiler options.
3146         * testsuite/libgomp.c++/collapse-1.C: New test.
3147         * testsuite/libgomp.c++/collapse-2.C: New test.
3148         * testsuite/libgomp.c++/ctor-10.C: New test.
3149         * testsuite/libgomp.c++/for-1.C: New test.
3150         * testsuite/libgomp.c++/for-2.C: New test.
3151         * testsuite/libgomp.c++/for-3.C: New test.
3152         * testsuite/libgomp.c++/for-4.C: New test.
3153         * testsuite/libgomp.c++/for-5.C: New test.
3154         * testsuite/libgomp.c++/loop-8.C: New test.
3155         * testsuite/libgomp.c++/loop-9.C: New test.
3156         * testsuite/libgomp.c++/loop-10.C: New test.
3157         * testsuite/libgomp.c++/task-1.C: New test.
3158         * testsuite/libgomp.c++/task-2.C: New test.
3159         * testsuite/libgomp.c++/task-3.C: New test.
3160         * testsuite/libgomp.c++/task-4.C: New test.
3161         * testsuite/libgomp.c++/task-5.C: New test.
3162         * testsuite/libgomp.c++/task-6.C: New test.
3163         * testsuite/libgomp.fortran/allocatable1.f90: New test.
3164         * testsuite/libgomp.fortran/allocatable2.f90: New test.
3165         * testsuite/libgomp.fortran/allocatable3.f90: New test.
3166         * testsuite/libgomp.fortran/allocatable4.f90: New test.
3167         * testsuite/libgomp.fortran/collapse1.f90: New test.
3168         * testsuite/libgomp.fortran/collapse2.f90: New test.
3169         * testsuite/libgomp.fortran/collapse3.f90: New test.
3170         * testsuite/libgomp.fortran/collapse4.f90: New test.
3171         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
3172         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
3173         * testsuite/libgomp.fortran/lib4.f90: New test.
3174         * testsuite/libgomp.fortran/lock-1.f90: New test.
3175         * testsuite/libgomp.fortran/lock-2.f90: New test.
3176         * testsuite/libgomp.fortran/nested1.f90: New test.
3177         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
3178         * testsuite/libgomp.fortran/strassen.f90: New test.
3179         * testsuite/libgomp.fortran/tabs1.f90: New test.
3180         * testsuite/libgomp.fortran/tabs2.f: New test.
3181         * testsuite/libgomp.fortran/task1.f90: New test.
3182         * testsuite/libgomp.fortran/task2.f90: New test.
3183         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
3184         * testsuite/libgomp.fortran/vla5.f90: Likewise.
3185         * testsuite/libgomp.c/pr26943-2.c: Likewise.
3186         * testsuite/libgomp.c/pr26943-3.c: Likewise.
3187         * testsuite/libgomp.c/pr26943-4.c: Likewise.
3189 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
3191         PR c++/36308
3192         * testsuite/libgomp.c++/ctor-11.C: New test.
3193         * testsuite/libgomp.c++/ctor-12.C: New test.
3195 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
3197         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
3199 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
3201         PR middle-end/36106
3202         * testsuite/libgomp.c/atomic-5.c: New test.
3203         * testsuite/libgomp.c/atomic-6.c: New test.
3204         * testsuite/libgomp.c/autopar-1.c: New test.
3206 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3208         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
3209         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
3210         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
3211         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
3212         * configure: Regenerate.
3213         * Makefile.in, testsuite/Makefile.in: Likewise.
3215 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
3217         PR bootstrap/35457
3218         * aclocal.m4: Regenerate.
3219         * configure: Regenerate.
3221 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
3223         PR middle-end/35611
3224         * testsuite/libgomp.c/atomic-4.c: New test.
3226         PR libgomp/35625
3227         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
3228         (gomp_iter_guided_next): Likewise.
3229         * testsuite/libgomp.c/pr35625.c: New test.
3231 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3233         * aclocal.m4: Regenerate.
3234         * configure: Likewise.
3235         * Makefile.in: Likewise.
3236         * testsuite/Makefile.in: Likewise.
3238 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
3240         PR middle-end/35185
3241         * testsuite/libgomp.c++/pr35185.C: New test.
3243 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
3245         PR middle-end/35549
3246         * testsuite/libgomp.c/pr35549.c: New test.
3248 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
3250         * testsuite/libgomp.c/atomic-3.c: New test.
3252 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3254         PR fortran/33197
3255         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
3256         .F08 file suffixes.
3258 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
3260         PR libgomp/33131
3261         * configure.ac: Add ACX_HEADER_STRING.
3262         * env.c: Include strings.h.
3263         * aclocal.m4: Regenerate.
3264         * config.h.in: Regenerate.
3265         * configure: Regenerate.
3266         * Makefile.in: Regenerate.
3267         * testsuite/Makefile.in: Regenerate.
3269 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
3271         PR middle-end/35196
3272         * testsuite/libgomp.c/pr35196.c: New test.
3274         PR middle-end/35130
3275         * testsuite/libgomp.fortran/pr35130.f90: New test.
3276         * testsuite/libgomp.c/pr35130.c: New test.
3278 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
3280         PR middle-end/33880
3281         * testsuite/libgomp.c/pr33880.c: New test.
3282         * testsuite/libgomp.fortran/pr33880.f90: New test.
3284 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
3286         * configure: Regenerate.
3288 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
3290         * configure.ac: Move futex checking into ../config/futex.m4.
3291         * configure: Rebuilt.
3292         * aclocal.m4: Rebuilt.
3293         * Makefile.in: Rebuilt.
3295         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
3296         2007-10-15 ../config/tls.m4 change.
3298 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
3300         PR c++/34513
3301         * testsuite/libgomp.c/pr34513.c: New test.
3302         * testsuite/libgomp.c++/pr34513.C: New test.
3304 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
3306         PR target/32765
3307         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
3309 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
3311         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
3313 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
3315         * testsuite/libgomp.c/private-1.c: New test.
3317 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
3318             Paolo Bonzini  <bonzini@gnu.org>
3320         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
3321         instead of 'VPATH ='.
3322         * Makefile.in: Regenerate.
3324 2007-11-23  Matthias Klose  <doko@ubuntu.com>
3326         * configure.ac: Adjust makeinfo version check.
3327         * configure: Regenerate.
3329 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
3331         PR fortran/34020
3332         * testsuite/libgomp.fortran/pr34020.f90: New test.
3334 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
3336         PR c++/33894
3337         * testsuite/libgomp.c++/atomic-1.C: New test.
3339 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
3341         PR libgomp/33275
3342         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
3343         Make x and y integers rather than (implicit) reals.  Add private (j)
3344         clause to the last omp parallel.
3346 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
3348         * configure: Regenerate following changes to ../config/tls.m4.
3350 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
3352         * testsuite/libgomp.fortran/stack.f90: New test.
3354 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
3356         * config/mingw32/proc.c: New file.
3358 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
3360         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
3361         (main): Use __get_cpuid to get i386 target fetaures.
3362         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
3363         (main): Use __get_cpuid to get x86_64 target fetaures.
3365 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
3367         PR target/32765
3368         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
3369         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
3371 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
3373         PR fortran/32550
3374         * testsuite/libgomp.fortran/pr32550.f90: New test.
3375         * testsuite/libgomp.fortran/crayptr2.f90: New test.
3377 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
3379         * aclocal.m4: Regenerated.
3381 2007-07-05  Tobias Burnus  <burnus@net-b.de>
3383         PR fortran/32359
3384         * testsuite/libgomp.fortran/pr32359.f90: New.
3386 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
3388         PR libgomp/32468
3389         * sections.c (GOMP_parallel_sections_start): Only decrease
3390         number of threads to COUNT if dyn_var is true.
3391         * testsuite/libgomp.c/pr32468.c: New test.
3393 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3395         PR libgomp/26308
3396         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
3398 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
3400         PR middle-end/32362
3401         * testsuite/libgomp.c/pr32362-1.c: New test.
3402         * testsuite/libgomp.c/pr32362-2.c: New test.
3403         * testsuite/libgomp.c/pr32362-3.c: New test.
3405 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
3407         * team.c (gomp_team_start): Fix setting up thread_attr
3408         stack size.
3410 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
3412         * configure: Regenerate.
3414 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
3416         * Makefile.in: Regenerate.
3417         * configure: Regenerate.
3418         * aclocal.m4: Regenerate.
3419         * testsuite/Makefile.in: Regenerate.
3421 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
3423         * config/linux/proc.c: New file.
3425         PR libgomp/28482
3426         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
3428 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
3430         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
3432 2007-04-16  Matthias Klose  <doko@debian.org>
3434         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
3435         flags if not building with -m64.
3436         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
3437         flag for i?86-*-* targets, if current target matches -m64.
3439 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
3441         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
3442         * Makefile.in: Regenerate.
3444 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3446         PR testsuite/31369
3447         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
3448         ld_library_path.
3449         * testsuite/libgomp.fortran/fortran.exp: Likewise.
3451 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
3453         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
3454         decls.
3455         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
3456         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
3457         (parse_affinity): New function.
3458         (initialize_env): Call it and gomp_init_affinity.
3459         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
3460         create new pthread_attr_t and call gomp_init_thread_affinity
3461         on it for each thread before passing the attribute to pthread_create.
3462         * config/linux/affinity.c: New file.
3463         * config/posix/affinity.c: New file.
3464         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
3465         * configure: Rebuilt.
3466         * config.h.in: Rebuilt.
3467         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
3468         * Makefile.in: Rebuilt.
3470 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
3472         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
3473         *-*-darwin*.
3474         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
3475         and use it if found.
3477 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
3479         * testsuite/config/default.exp: New file.
3480         * testsuite/lib/libgomp.exp: New file.
3481         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
3482         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
3483         load_lib *, load_gcc_lib *): Move to libgomp.exp.
3484         (libgomp_load): Remove.
3485         * testsuite/lib/libgomp.exp (libgomp_init): Compute
3486         always_ld_library_path, not ld_library_path.  Set additional_flags
3487         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
3488         (target_compile): Do not call libgomp_init.  Append lang_library_path
3489         and lang_link_flags to options.
3490         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
3491         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
3492         here.
3493         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
3494         always_ld_library_path.  Set LD_LIBRARY_PATH here.
3495         * testsuite/libgomp.fortran/fortran.exp: Ditto.
3496         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
3497         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
3498         CX8 flag.
3499         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
3500         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
3501         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
3502         * testsuite/libgomp.c/pr29947-1.c: Ditto.
3503         * testsuite/libgomp.c/atomic-10.c: Ditto.
3505 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
3507         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
3508         dg-final cleanup-modules line.
3509         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
3510         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
3511         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
3512         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
3513         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
3514         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
3515         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
3517 2007-03-18  Andreas Schwab  <schwab@suse.de>
3519         * acinclude.m4: Adjust regular expression for ld version
3520         extraction.
3521         * configure: Regenerate.
3523 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
3525         * Makefile.am: Add install-pdf target as copied from
3526         automake v1.10 rules.
3527         * Makefile.in: Regenerate
3529 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
3531         PR libgomp/28486
3532         * configure: Regenerate.
3534         PR c++/30703
3535         * testsuite/libgomp.c++/pr30703.C: New test.
3537 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
3539         Revert:
3540         2006-07-05  Eric Christopher  <echristo@apple.com>
3541         * configure.ac: Depend addition of -pthread on host OS.
3542         * configure: Regenerate.
3544 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3546         * libgomp.texi: Fix spacing after abbreviations.
3548 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
3550         PR libgomp/30546
3551         * configure.ac: Add check for makeinfo
3552         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
3553         if an appropiate version of makeinfo is found.
3554         * aclocal.m4: Regenerated.
3555         * configure: Regenerated.
3556         * Makefile.in: Regenerated.
3557         * testsuite/Makefile.in: Regenerated.
3559 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
3561         PR libgomp/30540
3562         * libgomp.texi: More about implementation-dependent settings.
3564 2007-01-26  Tobias Burnus  <burnus@net-b.de>
3566         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
3568 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
3570         PR middle-end/30494
3571         * testsuite/libgomp.c/pr30494.c: New test.
3573 2007-01-15  Tom Tromey  <tromey@redhat.com>
3575         * configure: Rebuilt.
3576         * configure.ac: Fixed comment.
3578 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
3580         * libgomp.texi: Document implementation specific default values of
3581         environment variables.
3583 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
3585         PR libgomp/28209
3586         * libgomp.texi: New file.
3587         * configure.ac: Add --enable-generated-files-in-srcdir option.
3588         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
3589         files to srcdir.
3590         * Makefile.in: Regenerated.
3591         * config.h.in: Regenerated.
3592         * testsuite/Makefile.in: Regenerated.
3593         * NOTES: Removed.
3595 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
3597         PR libgomp/29949
3598         * env.c (omp_set_num_threads): Set illegal thread count to 1.
3600 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
3602         * configure: Regenerate.
3604 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
3606         PR libgomp/29947
3607         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
3608         start if there shouldn't be any loop iterations.
3609         (gomp_loop_ordered_static_start): Remove start == end test.
3610         * testsuite/libgomp.c/pr29947-1.c: New test.
3611         * testsuite/libgomp.c/pr29947-2.c: New test.
3613 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
3615         * configure.tgt: Force initial-exec TLS model on Linux only.
3617 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
3619         * configure: Regenerated.
3621 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
3623         * env.c (parse_schedule): Reject out of range values.
3624         (parse_unsigned_long): Reject out of range, negative or zero values.
3626 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
3628         PR fortran/29629
3629         * testsuite/libgomp.fortran/pr29629.f90: New test.
3631 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
3633         PR libgomp/29494
3634         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
3635         * config/posix95: New directory.
3636         * config/posix95/omp-lock.h: New file.
3637         * config/posix95/lock.c: Likewise.
3639 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
3641         * aclocal.m4: Regenerate.
3642         * configure: Regenerate.
3644 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
3646         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
3647         '<' to '<='.
3649 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
3651         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
3652         test.
3653         * configure: Regenerate.
3654         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
3656 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
3658         PR middle-end/25261
3659         PR middle-end/28790
3660         * testsuite/libgomp.c/nestedfn-4.c: New test.
3661         * testsuite/libgomp.c/nestedfn-5.c: New test.
3662         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
3664         PR fortran/29097
3665         * testsuite/libgomp.fortran/condinc1.f: New test.
3666         * testsuite/libgomp.fortran/condinc2.f: New test.
3667         * testsuite/libgomp.fortran/condinc3.f90: New test.
3668         * testsuite/libgomp.fortran/condinc4.f90: New test.
3669         * testsuite/libgomp.fortran/condinc1.inc: New file.
3671 2006-09-18  Tom Tromey  <tromey@redhat.com>
3673         * configure: Rebuilt.
3675 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
3677         PR c/28768
3678         PR preprocessor/14634
3679         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
3680         to AC_DEFINE.
3681         * configure: Regenerate.
3683 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
3685         * testsuite/libgomp.fortran/reduction3.f90: Change
3686         -2147483648 to -huge(i)-1 to avoid overflow.
3687         * testsuite/libgomp.fortran/reduction4.f90: Change
3688         Z'ffffffff' to not(0) to avoid overflow.
3690 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
3692         PR libgomp/25938
3693         * Makefile.am (libsubincludedir): New.
3694         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
3695         * Makefile.in: Regenerate.
3697 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
3699         PR libgomp/28725
3700         * env.c: Include ctype.h.
3701         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
3702         leading and/or trailing whitespace and compare strings case
3703         insensitively.
3705 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
3707         PR fortran/28390
3708         * testsuite/libgomp.fortran/pr28390.f: New test.
3710 2006-07-05  Eric Christopher  <echristo@apple.com>
3712         * configure.ac: Depend addition of -pthread on host OS.
3713         * configure: Regenerate.
3715 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
3717         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
3718         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
3719         defined.
3721 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
3723         PR libgomp/26175
3724         PR libgomp/26477
3725         * configure.ac: If neither --enable-linux-futex nor
3726         --disable-linux-futex is passed, determine the default by checking
3727         for compiling and/or running against NPTL.  With --enable-linux-futex,
3728         check if SYS_gettid and SYS_futex are defined.
3729         * configure: Rebuilt.
3731 2006-06-14  Richard Henderson  <rth@redhat.com>
3733         PR libgomp/28008
3734         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
3735         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
3737 2006-06-09  Richard Henderson  <rth@redhat.com>
3739         * env.c (gomp_nthreads_var): Change to unsigned long.
3740         (gomp_run_sched_chunk): Likewise.
3741         (parse_unsigned_long): Rename from parse_num_threads and generalize.
3742         (initialize_env): Initialize gomp_thread_attr.
3743         * libgomp.h (gomp_nthreads_var): Update decl.
3744         (gomp_run_sched_chunk): Likewise.
3745         (gomp_thread_attr): Declare.
3746         * team.c (gomp_thread_attr): Export.
3747         (initialize_team): Don't initialize it.
3749 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
3751         PR fortran/27916
3752         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
3753         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
3755 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3757         * config/mingw32/time.c: New file.
3758         * configure.tgt: Use it.
3760 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
3762         * Makefile.am: Add install-html target. Add install-html to .PHONY
3763         * Makefile.in: Regenerate.
3765 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3767         PR libgomp/27612
3768         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
3769         * testsuite/libgomp.c/critical-1.c: Likewise.
3770         * testsuite/libgomp.c/loop-1.c: Likewise.
3771         * testsuite/libgomp.c/loop-2.c: Likewise.
3772         * testsuite/libgomp.c/single-1.c: Likewise.
3773         * testsuite/libgomp.c/ordered-1.c: Likewise.
3774         * testsuite/libgomp.c/ordered-2.c: Likewise.
3776 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
3778         PR middle-end/27416
3779         * libgomp.fortran/pr27416-1.f90: New test.
3781 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
3783         PR fortran/27395
3784         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
3785         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
3787 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
3789         PR c++/26943
3790         * testsuite/libgomp.c/pr26943-1.c: New test.
3791         * testsuite/libgomp.c/pr26943-2.c: New test.
3792         * testsuite/libgomp.c/pr26943-3.c: New test.
3793         * testsuite/libgomp.c/pr26943-4.c: New test.
3794         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
3795         * testsuite/libgomp.c++/pr26943.C: New test.
3797 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
3799         PR middle-end/27337
3800         * testsuite/libgomp.c++/pr27337.C: New test.
3802 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
3804         PR c/26171
3805         * testsuite/libgomp.c/pr26171.c: New test.
3807 2006-04-25  Richard Henderson  <rth@redhat.com>
3809         PR libgomp/25865
3810         * configure.ac: Use GCC_CHECK_TLS.
3811         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
3812         * Makefile.in, aclocal.m4, configure: Regenerate.
3814 2006-04-10  Matthias Klose  <doko@debian.org>
3816         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
3817         directory names containing underscores.
3819 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
3821         PR c++/26691
3822         * testsuite/libgomp.c++/pr26691.C: New test.
3824 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
3826         * testsuite/libgomp.fortran/retval2.f90: New test.
3828 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
3830         * testsuite/libgomp.c++: New directory.
3832 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
3834         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
3835         * config/posix/sem.c: Implement the above.
3837 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
3839         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
3840         define HAVE_BROKEN_POSIX_SEMAPHORES.
3841         * configure: Rebuilt.
3842         * config.h.in: Rebuilt.
3844 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3846         PR bootstrap/26161
3847         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
3848         for the other pthread check.
3849         * configure: Regenerate.
3850         * config.h.in: Regenerate.
3852 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
3854         PR libgomp/25938
3855         PR libgomp/25984
3856         * Makefile.am (fincludedir): New variable.
3857         (nodist_include_HEADERS): Remove Fortran files.
3858         (nodist_finclude_HEADERS): New variable.
3859         * Makefile.in: Regenerated.
3861 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
3863         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
3864         Remove tests for returning assumed character length arrays.
3866 2006-02-12  Roger Sayle  <roger@eyesopen.com>
3867             John David Anglin  <dave@hiauly1.hia.nrc.ca>
3869         PR libgomp/25936
3870         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
3872 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
3874         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
3876 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
3878         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
3879         part of LD_LIBRARY_PATH manually.
3881 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
3883         PR libgomp/25852
3884         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
3885         libgomp_init.
3887 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
3889         PR libgomp/25884
3890         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
3891         * configure.ac (PERL): Don't set.
3892         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
3893         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
3894         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
3895         * omp.h.in: Wrap the new configure substitutions with @ characters.
3896         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
3897         * aclocal.m4, configure, Makefile.in: Regenerate.
3898         * mkomp_h.pl: Delete.
3900 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
3902         PR libgomp/25259
3903         * configure.ac: Use GCC_HEADER_STDINT.
3904         * libgomp.h: Include gstdint.h.
3905         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
3906         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
3908 2006-01-24  Richard Henderson  <rth@redhat.com>
3910         PR libgomp/25942
3911         * configure.ac: Add AM_MAINTAINER_MODE.
3912         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
3914 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
3916         * Makefile.in: Regenerate.
3917         * testsuite/Makefile.in: Regenerate.
3918         * aclocal.m4: Regenerate.
3920 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
3922         * config/posix/proc.c: Conditional include of sys/loadavg.h for
3923         Solaris.
3924         * configure.ac: Add check for loadavg.h.
3925         (link_gomp): Adjust comment.
3926         * configure: Regenerate.
3927         * config.h.in: Regenerate.
3929 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
3931         PR libgomp/25877
3932         * configure.ac: Remove check for alloca.h.
3933         * configure: Regenerate.
3934         * config.h.in: Regenerate.
3935         * libgomp.h: define gomp_alloca to be __builtin_alloca.
3936         * team.c: Remove use of alloca.h.
3937         Call gomp_alloca instead of alloca.
3939 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
3941         PR libgomp/25877
3942         * team.c: Add include of alloca.h.
3943         * configure.ac: Add check for alloca.h.
3944         * configure: Regenerate.
3945         * config.h.in: Regenerate.
3947 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
3949         PR fortran/25219
3950         * testsuite/libgomp.fortran/pr25219.f90: New test.
3952 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
3954         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
3955         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
3956         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3957         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3958         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
3959         testsuite/libgomp.fortran/threadprivate1.f90,
3960         testsuite/libgomp.fortran/threadprivate2.f90,
3961         testsuite/libgomp.fortran/threadprivate3.f90,
3962         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3963         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3964         testsuite/libgomp.fortran/omp_parse3.f90: Change required
3965         effective-target to TLS runtime.
3967         * testsuite/libgomp.fortran/pr25162.f: Require
3968         effective-target TLS runtime.
3970 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
3972         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
3973         * testsuite/libgomp.c/nestedfn-3.c: New test.
3975 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
3977         PR fortran/25162
3978         * testsuite/libgomp.fortran/pr25162.f: New test.
3980 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
3982         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
3983         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
3985 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
3987         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
3988         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
3989         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
3990         single.c, team.c, work.c, config/linux/alpha/futex.h,
3991         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
3992         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
3993         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
3994         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
3995         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
3996         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
3997         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
3998         FSF address.
4000 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
4002         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
4003         to nodist_noinst_HEADERS.
4004         * Makefile.in: Rebuilt.
4006         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
4007         add integer count field.
4008         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
4009         omp_nest_lock_t type change.
4010         (omp_init_nest_lock): Likewise.  Initialize count to 0.
4011         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
4012         Increment count.
4013         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
4014         Decrement count.
4015         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
4016         Increment count if successful and return the new nesting level.
4017         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
4018         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
4019         * testsuite/libgomp.c/lib-1.c: New test.
4020         * testsuite/libgomp.fortran/lib1.f90: New test.
4021         * testsuite/libgomp.fortran/lib2.f: New test.
4022         * testsuite/libgomp.fortran/lib3.f: New test.
4024 2005-11-17  Richard Henderson  <rth@redhat.com>
4026         PR 24845
4027         * Makefile.am (nodist_toolexeclib_HEADERS): New.
4028         * configure.ac (link_gomp): New.  Substitute it.
4029         (AC_CONFIG_FILES): Add libgomp.spec.
4030         * libgomp.spec.in: New file.
4031         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
4032         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
4034 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
4036         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
4037         reduction(-:var) behaving the same as reduction(+:var).
4038         * testsuite/libgomp.c/reduction-4.c: New test.
4040 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
4042         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
4043         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
4044         testsuite/libgomp.c/copyin-3.c,
4045         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
4046         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
4047         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
4048         testsuite/libgomp.c++/pr24455.C,
4049         testsuite/libgomp.fortran/threadprivate1.f90,
4050         testsuite/libgomp.fortran/threadprivate2.f90,
4051         testsuite/libgomp.fortran/threadprivate3.f90,
4052         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
4053         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
4054         testsuite/libgomp.fortran/omp_parse3.f90: Require
4055         effective-target TLS.
4057 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
4059         * HEADER: Remove.
4061 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
4063         PR libgomp/24797
4064         * team.c (initialize_team): Pass NULL rather than free as
4065         pthread_key_create destructor.  Initialize thread specific data
4066         pointer in initial thread to a static local variable rather than
4067         malloced memory.
4069 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
4071         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
4072         its location to ld_library_path.
4074 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
4076         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
4078 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
4080         * testsuite/libgomp.c: Rename from libgomp.dg.
4082 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
4084         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
4085         threadprivate variable 'i'.
4087 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
4089         * config/linux/s390/futex.h: New file.
4090         * configure.tgt: Use it.
4092         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
4093         before the parallel.
4095 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
4097         PR c++/24734
4098         * testsuite/libgomp.c++/master-1.C: New test.
4100 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
4102         * testsuite/libgomp.dg/copyin-3.c: New test.
4104 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
4106         * testsuite/libgomp.fortran/retval1.f90: New test.
4107         * testsuite/libgomp.fortran/vla7.f90: New test.
4109 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
4111         * testsuite/libgomp.fortran/vla2.f90: New test.
4112         * testsuite/libgomp.fortran/vla3.f90: New test.
4113         * testsuite/libgomp.fortran/vla4.f90: New test.
4114         * testsuite/libgomp.fortran/vla5.f90: New test.
4115         * testsuite/libgomp.fortran/vla6.f90: New test.
4117 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
4119         * config/linux/sparc/futex.h: New file.
4120         * configure.tgt: Use it.
4121         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
4123         * critical.c: Include stdlib.h.
4124         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
4125         ignoring return value.
4126         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
4127         LIBGOMP_CHECK_SYNC_BUILTINS check.
4128         * configure: Rebuilt.
4130 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
4132         * testsuite/libgomp.fortran/vla1.f90: New test.
4134 2005-10-31  Richard Henderson  <rth@redhat.com>
4136         * testsuite/libgomp.fortran/character2.f90: Fix race condition
4137         setting 's' in different threads.
4139 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
4141         * libgomp.h (attribute_hidden, ialias): Define.
4142         * config/posix/proc.c (omp_get_num_procs): Add ialias.
4143         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
4144         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
4145         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
4146         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
4147         omp_test_lock, omp_test_nest_lock): Likewise.
4148         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
4149         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
4150         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
4151         omp_test_lock, omp_test_nest_lock): Likewise.
4152         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
4153         omp_get_dynamic, omp_get_nested): Likewise.
4154         * parallel.c (omp_get_num_threads, omp_get_max_threads,
4155         omp_get_thread_num, omp_in_parallel): Likewise.
4156         * fortran.c (ialias_redirect): Define.
4157         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
4158         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
4159         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
4160         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
4161         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
4162         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
4163         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
4164         omp_get_wtime): Add ialias_redirect.
4166 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
4168         * fortran.c: Include stdlib.h.
4170 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
4172         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
4173         * Makefile.in: Regenerated.
4175 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
4177         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
4178         * libgomp_f.h.in (omp_check_defines): New function.
4179         * env.c: Include libgomp_f.h.
4180         (initialize_env): Call omp_check_defines.
4182         * testsuite/libgomp.dg/copyin-2.c: New test.
4183         * testsuite/libgomp.c++/copyin-2.C: New test.
4184         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
4186         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
4187         * testsuite/libgomp.fortran/sharing2.f90: New test.
4189         * testsuite/libgomp.dg/copyin-1.c: New test.
4190         * testsuite/libgomp.c++/copyin-1.C: New test.
4192 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
4194         * testsuite/libgomp.fortran/crayptr1.f90: New test.
4196         * testsuite/libgomp.fortran/workshare1.f90: New test.
4198         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
4199         only test.
4200         * libgomp.fortran/sharing1.f90: New test.
4202 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
4204         PR c++/24502
4205         * testsuite/libgomp.c++/loop-7.C: New test.
4207         * testsuite/libgomp.dg/nestedfn-2.c: New test.
4209         * testsuite/libgomp.dg/nestedfn-1.c: New test.
4210         * testsuite/libgomp.fortran/reduction6.f90: New test.
4211         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
4213 2005-10-23  Richard Henderson  <rth@redhat.com>
4215         * testsuite/libgomp.c++/ctor-1.C: New.
4216         * testsuite/libgomp.c++/ctor-2.C: New.
4217         * testsuite/libgomp.c++/ctor-3.C: New.
4218         * testsuite/libgomp.c++/ctor-4.C: New.
4219         * testsuite/libgomp.c++/ctor-5.C: New.
4220         * testsuite/libgomp.c++/ctor-6.C: New.
4221         * testsuite/libgomp.c++/ctor-7.C: New.
4222         * testsuite/libgomp.c++/ctor-8.C: New.
4223         * testsuite/libgomp.c++/ctor-9.C: New.
4225 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
4227         PR 24455
4228         * testsuite/libgomp.c++/pr24455-1.C: New test.
4229         * testsuite/libgomp.c++/pr24455.C: New test.
4230         * testsuite/libgomp.dg/pr24455-1.c: New test.
4231         * testsuite/libgomp.dg/pr24455.c: New test.
4233 2005-10-20  Richard Henderson  <rth@redhat.com>
4235         * testsuite/libgomp.c++/loop-6.C: New.
4236         * testsuite/libgomp.dg/loop-3.c: New.
4238 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
4240         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
4241         explicitly private.
4242         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
4243         explicitly shared.
4245 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
4247         * testsuite/libgomp.fortran/jacobi.f: New test.
4249 2005-10-19  Richard Henderson  <rth@redhat.com>
4251         * configure.tgt (i?86-linux): Default to with_arch instead of
4252         CFLAGS.  Add -mtune to match target_cpu.
4253         (x86_64-linux): Tune to i686.
4255         * fortran.c (omp_test_nest_lock_): Fix typo.
4257 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
4259         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
4260         gomp_ordered_sync): Do nothing if team->nthreads == 1.
4261         * testsuite/libgomp.dg/ordered-3.c: New test.
4263         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
4264         Remove volatile keyword.
4266         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
4267         in COMMON block to avoid warnings on 64-bit targets.
4269 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
4271         * testsuite/libgomp.dg/shared-3.c: New test.
4273 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
4275         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
4276         * testsuite/libgomp.fortran/reduction5.f90: New test.
4278 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
4280         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
4281         dg-options.
4282         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
4283         flush loop now that __sync_synchronize has proper memory barrier.
4284         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
4285         Add -ffixed-form to dg-options.
4287 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
4289         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
4290         from subdirectories.
4291         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
4292         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
4293         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
4294         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
4295         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
4296         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
4297         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
4298         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
4299         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
4300         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
4301         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
4302         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
4303         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
4304         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
4305         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
4306         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
4307         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
4308         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
4309         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
4310         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
4311         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
4312         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
4313         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
4314         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
4315         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
4317 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
4319         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
4320         lang_library_path exists.  Use find instead of glob to gather tests.
4321         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
4323 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
4325         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
4326         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
4327         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
4328         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
4329         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
4330         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
4331         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
4332         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
4333         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
4334         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
4335         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
4336         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
4337         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
4339 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
4341         * testsuite/libgomp.dg/vla-1.c: New test.
4343         * testsuite/libgomp.fortran/reference2.f90: New test.
4345         * testsuite/libgomp.fortran/character2.f90: Remove explicit
4346         declaration of omp_get_thread_num.
4347         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
4348         use omp_lib.
4350         * testsuite/libgomp.fortran/reduction1.f90: New test.
4351         * testsuite/libgomp.fortran/reduction2.f90: New test.
4352         * testsuite/libgomp.fortran/reduction3.f90: New test.
4353         * testsuite/libgomp.fortran/reduction4.f90: New test.
4355 2005-10-13  Richard Henderson  <rth@redhat.com>
4357         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
4358         * Makefile.in: Regenerate.
4359         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
4360         * libgomp.h: Include bar.h.
4361         (struct gomp_barrier): Remove.
4362         (struct gomp_team): Add barrier.  Replace master_barrier with
4363         master_release.  Replace threads with ordered_release.
4364         (struct gomp_thread): Replace barrier with release.
4365         * ordered.c (gomp_ordered_first): Update for ordered_release change.
4366         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
4367         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
4368         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
4369         (GOMP_single_copy_end): Likewise.
4370         * team.c (gomp_threads_dock): New.
4371         (gomp_barrier_init, gomp_barrier_destroy): Remove.
4372         (gomp_thread_start): Use gomp_barrier_wait.
4373         (new_team, free_team): Update for gomp_team changes.
4374         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
4375         (gomp_team_end): Use gomp_barrier_wait.
4376         (initialize_team): Update for gomp_thread changes.
4377         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
4378         (gomp_work_share_end_nowait): Use atomic ops when available.
4379         * config/linux/bar.c, config/linux/bar.h: New files.
4380         * config/posix/bar.c, config/posix/bar.h: New files.
4382 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
4384         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
4385         * testsuite/libgomp.dg/single-2.c: New test.
4387         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
4388         lang_link_flags): Unset, so that they aren't inherited from previously
4389         sourced *.exp.
4391         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
4393 2005-10-12  Richard Henderson  <rth@redhat.com>
4395         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
4396         (libgomp_init): Use lang_test_file, lang_library_path, and
4397         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
4399         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
4400         (lang_test_file, lang_link_flags): New.
4401         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
4403         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
4404         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
4405         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
4406         testsuite/libgomp.c++/parallel-1.C,
4407         testsuite/libgomp.c++/reduction-1.C,
4408         testsuite/libgomp.c++/reduction-2.C,
4409         testsuite/libgomp.c++/reduction-3.C,
4410         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
4411         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
4412         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
4413         New files, largely cribbed from the C testsuite.
4415 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
4417         * testsuite/libgomp.fortran/character1.f90: New test.
4418         * testsuite/libgomp.fortran/character2.f90: New test.
4420         * testsuite/libgomp.dg/nested-1.c: New test.
4421         * testsuite/libgomp.dg/nested-2.c: New test.
4422         * testsuite/libgomp.fortran/do1.f90: New test.
4423         * testsuite/libgomp.fortran/do2.f90: New test.
4425         * testsuite/libgomp.fortran/reference1.f90: New test.
4427 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
4429         * testsuite/libgomp.dg/reduction-1.c: New test.
4430         * testsuite/libgomp.dg/reduction-2.c: New test.
4431         * testsuite/libgomp.dg/reduction-3.c: New test.
4433 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
4435         * testsuite/libgomp.dg/atomic-1.c: New test.
4436         * testsuite/libgomp.dg/atomic-2.c: New test.
4438 2005-10-09  Richard Henderson  <rth@redhat.com>
4440         * critical.c (atomic_lock): New.
4441         (initialize_critical): Initialize it.
4442         (GOMP_atomic_start, GOMP_atomic_end): New.
4443         * libgomp.map: Export them.
4444         * libgomp_g.h: Declare them.
4446         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
4448 2005-10-02  Richard Henderson  <rth@redhat.com>
4450         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
4451         to XCFLAGS instead of CFLAGS.
4453 2005-09-30  Richard Henderson  <rth@redhat.com>
4455         * configure.ac: Determine whether -pthread or -lpthread is needed.
4456         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
4457         * Makefine.in, configure: Rebuild.
4459 2005-09-28  Richard Henderson  <rth@redhat.com>
4461         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
4462         * testsuite/libgomp.dg/omp-single-3.c: New test.
4464 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
4466         * testsuite/libgomp.dg/omp-single-2.c: New test.
4467         * testsuite/libgomp.dg/shared-2.c: Fix return code.
4469 2005-09-27  Richard Henderson  <rth@redhat.com>
4471         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
4472         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
4474 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
4476         * testsuite/libgomp.dg/omp-loop03.c: New test.
4478 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
4480         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
4482 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
4484         * testsuite/libgomp.dg/omp-single-1.c: New test.
4485         * testsuite/libgomp.dg/shared-1.c: Return 0.
4486         Add prototype for abort.
4487         * testsuite/libgomp.dg/shared-2.c: Likewise.
4489 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
4491         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
4492         constructs.
4494 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
4496         * testsuite/libgomp.dg/shared-1.c: New test.
4497         * testsuite/libgomp.dg/shared-2.c: New test.
4499 2005-09-24  Richard Henderson  <rth@redhat.com>
4501         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
4503 2005-09-24  Richard Henderson  <rth@redhat.com>
4505         * iter.c (gomp_iter_static_next): Round up when computing number
4506         of iterations.  Don't bother distributing a remainder equally.
4508         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
4509         Don't call srand.  Zero b before testing.
4510         (main): New.
4512 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
4514         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
4515         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
4517 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
4519         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
4520         without !$omp end do, followed immediately by subroutine end.
4522 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
4524         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
4526 2005-09-22  Richard Henderson  <rth@redhat.com>
4528         * critical.c (GOMP_critical_name_start): Change argument to void**.
4529         Reuse the pointer space if the mutex fits.
4530         (GOMP_critical_name_end): Likewise.
4531         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
4532         * libgomp_g.h (GOMP_critical_name_start): Update decl.
4533         (GOMP_critical_name_end): Likewise.
4534         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
4535         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
4537 2005-09-20  Richard Henderson  <rth@redhat.com>
4539         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
4540         (create_lock_lock): New.
4541         (initialize_critical): Initialize it.
4542         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
4543         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
4545 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
4547         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
4549 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
4551         * testsuite/libgomp.dg/omp-loop01.c: New test.
4552         * testsuite/libgomp.dg/omp-loop02.c: New test.
4554 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
4556         * configure.ac (AC_PROG_FC): Add.
4557         (USE_FORTRAN): New automake conditional.
4558         * configure: Rebuilt.
4559         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
4560         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
4561         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
4562         Add rules to build them.
4563         * Makefile.in: Rebuilt.
4564         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
4565         OMP_NEST_LOCK_KIND.
4566         * libgomp.map: Add Fortran wrappers.
4567         * libgomp_f.h.in: New file.
4568         * omp_lib.h.in: New file.
4569         * omp_lib.f90.in: New file.
4570         * fortran.c: New file.
4571         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
4572         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
4573         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
4574         libgfortran has been built.
4575         * testsuite/libgomp.fortran/fortran.exp: New file.
4576         * testsuite/libgomp.fortran/omp_cond1.f: New test.
4577         * testsuite/libgomp.fortran/omp_cond2.f: New test.
4578         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
4579         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
4580         * testsuite/libgomp.fortran/omp_hello.f: New test.
4581         * testsuite/libgomp.fortran/omp_orphan.f: New test.
4582         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
4583         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
4584         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
4585         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
4586         * testsuite/libgomp.fortran/omp_reduction.f: New test.
4587         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
4588         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
4590 2005-08-30  Richard Henderson  <rth@redhat.com>
4592         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
4593         function for when aliases are not usable.
4594         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
4595         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
4596         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
4597         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
4598         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
4599         GOMP_loop_ordered_guided_next): Likewise.
4600         * ordered.c (GOMP_ordered_start): Likewise.
4602 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
4604         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
4605         * testsuite/libgomp.dg/omp_hello.c: Fix return code
4606         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
4607         * testsuite/libgomp.dg/omp_orphan.c: Likewise
4608         * testsuite/libgomp.dg/omp_reduction.c: Likewise
4609         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
4610         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
4611         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
4612         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
4614 2005-07-07  Eric Christopher  <echristo@redhat.com>
4615             Diego Novillo  <dnovillo@redhat.com>
4617         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
4618         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
4619         up code.
4620         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
4621         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
4622         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
4623         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
4624         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
4625         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
4626         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
4628 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
4630         * TOPLEVEL.patch: Remove.
4632 2005-05-16  Richard Henderson  <rth@redhat.com>
4634         * configure.ac: Test for clock_gettime.
4635         * config.h.in, configure: Rebuild.
4636         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
4637         (omp_get_wtime): Use clock_gettime if available.
4638         (omp_get_wtick): Use clock_getres if available.
4640 2005-05-11  Richard Henderson  <rth@redhat.com>
4642         * config/linux/ia64/futex.h: New file.
4643         * configure.tgt: Use it.
4645         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
4647 2005-05-07  Richard Henderson  <rth@redhat.com>
4649         * config/linux/powerpc/futex.h: New file.
4650         * configure.tgt: Use it.
4652         * config/linux/i486/futex.h: Merge ...
4653         * config/linux/x86_64/futex.h: ... into ...
4654         * config/linux/x86/futex.h: ... here.
4655         * configure.tgt: Update to match.
4657 2005-05-06  Richard Henderson  <rth@redhat.com>
4659         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
4660         * config/linux/i486/futex.h: Likewise.
4661         * config/linux/x86_64/futex.h: Likewise.
4663         * config/linux/lock.c: New file.
4664         * config/linux/omp-lock.h: New file.
4666         * critical.c, env.h: Don't include omp.h
4667         * config/posix/lock.c: Include libgomp.h instead of omp.h.
4668         * config/posix/time.c: Likewise.
4669         * config/posix/omp-lock.h: New file.
4670         * libgomp.h: Include omp-lock.h and omp.h.
4671         * Makefile.am (nodist_include_HEADERS): New.
4672         (omp.h): New rule.
4673         * configure.ac (PERL): New.
4674         * mkomp_h.pl: New file.
4675         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
4676         with templates.
4677         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
4679         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
4680         build directory.  Re-add -march=i486 hack.
4682         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
4683         (libgomp_link_flags): Remove.
4684         (libgomp_initialized): Remove.
4685         (libgomp_init): Don't protect from reinitialization.  Copy code
4686         from libstdc++ for getting the multilib set correctly.
4688 2005-05-05  Richard Henderson  <rth@redhat.com>
4690         * config/linux/alpha/futex.h: New file.
4691         * configure.tgt (alpha*-*-linux*): Use it.
4693         * config/posix/mutex.c: New file.
4694         * config/posix/sem.c: Use libgomp.h.
4696         * configure.tgt (x86_64-linux): Also test CC for -m32.
4697         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
4699         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
4700         after $gccpath.
4702         * Makefile.am (SUBDIRS): New.
4703         (libgomp_la_LDFLAGS): Add -lpthread.
4704         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
4705         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
4707         * libgomp_g.h: New file.
4708         * libgomp.h: Split out all public declarations to libgomp_g.h.
4709         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
4710         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
4711         * config/linux/sem.h: Likewise.
4712         * config/posix/sem.h: Likewise.
4714         * Makefile.am (AM_LDFLAGS): New.
4715         (libgomp_version_script): Split out from ...
4716         (libgomp_la_LDFLAGS): ... here.
4717         (libgomp_version_info): New.
4718         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
4719         (LIBGOMP_ENABLE): New.
4720         (LIBGOMP_CHECK_LINKER_FEATURES): New.
4721         (LIBGOMP_ENABLE_SYMVERS): New.
4722         * configure.ac (AC_INIT): Version 1.0.
4723         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
4724         (enable-linux-futex): Likewise.  Rename from enable-futex.
4725         (libtool_VERSION): New.
4726         (LIBGOMP_ENABLE_SYMVERS): Use it.
4727         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
4728         * Makefile.in, aclocal.m4, configure: Rebuild.
4730         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
4731         (gomp_mutex_unlock_slow): Fix typo.
4732         * config/linux/sem.c: Similarly.
4733         (gomp_sem_post_slow): Fix typo.
4734         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
4735         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
4736         [__PIC__] (sys_futex0): Don't use tmp output in asm.
4738         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
4739         (libgomp_la_LDFLAGS): Add top_srcdir to path.
4740         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
4741         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
4742         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
4743         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
4744         LDFLAGS.  Pull enable_futex check to top-level.
4745         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
4746         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
4748         First attempt at real configury.
4749         * Makefile, config.h: Remove file.
4750         * Makefile.am, Makefile.in: New file.
4751         * acinclude.m4 aclocal.m4: New file.
4752         * configure.ac, configure.tgt, configure: New file.
4754         * config/posix/lock.c: Rename from sys-lock.c.
4755         * config/posix/mutex.h: Rename from sys-mutex.h.
4756         * config/posix/sem.c: Rename from sys-sem.c.
4757         * config/posix/sem.h: Rename from sys-sem.h.
4758         * config/posix/proc.c: Rename from sys-proc.c.
4759         * config/posix/time.c: Rename from sys-proc.c.
4761         * config/linux/mutex.c: New file.
4762         * config/linux/mutex.h: New file.
4763         * config/linux/sem.c: New file.
4764         * config/linux/sem.h: New file.
4765         * config/linux/i486/futex.h: New file.
4766         * config/linux/x86_64/futex.h: New file.
4768 2005-05-04  Richard Henderson  <rth@redhat.com>
4770         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
4771         * libgomp.h: Declare them.
4772         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
4773         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
4775 2005-05-04  Richard Henderson  <rth@redhat.com>
4777         * libgomp-1 code drop
4779 2005-05-04  Richard Henderson  <rth@redhat.com>
4781         * iter.c (gomp_iter_static_next): Return tri-state on 0.
4782         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
4783         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
4784         (gomp_iter_static_next): Update.
4785         (gomp_ordered_static_next): Update.
4786         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
4787         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
4788         totally empty range.
4789         (gomp_loop_ordered_static_next): Refine test for calling
4790         gomp_ordered_static_next.
4791         * testsuite/ordered-1.c: Add case for more threads than iterations.
4793         * iter.c (gomp_iter_runtime_next_locked): Remove.
4794         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
4795         gomp_loop_guided_start, gomp_loop_ordered_static_start,
4796         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
4797         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
4798         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
4799         gomp_loop_ordered_guided_next): Downcase name, make static, add
4800         an external alias with the old name.
4801         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
4802         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
4803         switch and call one of the above static functions.
4804         * libgomp.h: Update.
4806         * work.c (gomp_work_share_start): Lock the mutex for !first too.
4807         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
4808         GOMP_loop_guided_start, GOMP_loop_runtime_start,
4809         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
4810         GOMP_loop_ordered_guided_start): Update to match.
4811         * sections.c (GOMP_sections_start): Likewise.
4812         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
4814         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
4815         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
4816         Use bounds check instead of modulus.
4817         (gomp_ordered_sync): Split out of GOMP_ordered_start.
4818         (gomp_ordered_last): Don't sync with ordered_owner here.
4819         (gomp_ordered_next): Likewise.
4820         (gomp_ordered_static_loop_next): Likewise.
4821         * loop.c, libgomp.h: Update to match.
4823         * libgomp.h (GOMP_barrier): Declare.
4825         * testsuite/barrier-1.c: New file.
4826         * testsuite/critical-1.c: New file.
4827         * testsuite/ordered-2.c: New file.
4828         * testsuite/ordered-1.c: New file.
4829         * testsuite/sections-1.c: New file.
4830         * testsuite/single-1.c: New file.
4831         * testsuite/Makefile (TESTS): Add them.
4833 2005-05-04  Richard Henderson  <rth@redhat.com>
4835         * libgomp.h (struct gomp_work_share): Add ordered_owner.
4836         * loop.c (GOMP_loop_static_start): If not the startup thread,
4837         acquire the mutex to wait for initialization complete.
4838         (GOMP_loop_ordered_static_start): Likewise.
4839         (GOMP_loop_ordered_runtime_start): Likewise.
4840         (GOMP_loop_ordered_static_first): Remove.
4841         (GOMP_loop_ordered_dynamic_first): Remove.
4842         (GOMP_loop_ordered_guided_first): Remove.
4843         (GOMP_loop_ordered_runtime_first): Remove.
4844         * ordered.c (gomp_ordered_loop_first): Post to own release when
4845         we're the first thread.
4846         (gomp_ordered_loop_last): Wait on release if not owner.
4847         (gomp_ordered_loop_next): Likewise.
4848         (gomp_ordered_static_loop_init): New.
4849         (gomp_ordered_static_loop_next): Use ordered_owner.
4850         (GOMP_ordered_start): Likewise.
4851         * work.c (gomp_new_work_share): Initialize ordered_owner.
4853 2005-05-03  Richard Henderson  <rth@redhat.com>
4855         * Makefile (OPT): New.
4856         (CFLAGS): Use it.
4858         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
4859         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
4860         * libgomp.h, libgomp.map, NOTES: Update to match.
4862         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
4863         Add initialized and thr members.
4864         (gomp_thread_start): Pause when initially spawned to wait for
4865         the whole team to be created.
4866         (gomp_team_start): Release team members at the end.
4868         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
4869         (f_foo_1): Use GOMP_loop_end.
4870         (f_foo_2): Use GOMP_loop_end_nowait.
4872         * testsuite/loop-2.c: New file.
4873         * testsuite/Makefile (TESTS): Add it.
4875 2005-05-03  Richard Henderson  <rth@redhat.com>
4877         * iter.c (gomp_iter_static_next): Fix overflow check typo.
4878         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
4879         * team.c (new_team): Initialize oldest_live_gen to 1 if no
4880         initial work_share.
4882         * testsuite/Makefile: New file.
4883         * testsuite/loop-1.c: New file.
4885 2005-05-03  Richard Henderson  <rth@redhat.com>
4887         Initial implementation and checkin.