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