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