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