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