* gcc.dg/vect/pr63605.c (dg-final): Cleanup vect tree dump.
[official-gcc.git] / libgomp / ChangeLog
blob737cd2476b637cae53f96da7d60c1cae0e3059af
1 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
3         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
4         of 32 as block_size.
5         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
6         instead of 32 as block_size.
8 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
9             Ilya Verbin  <ilya.verbin@intel.com>
11         * Makefile.in: Regenerate.
12         * configure: Regenerate.
13         * configure.ac: Set up offload_additional_options,
14         offload_additional_lib_paths and offload_targets.
15         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
16         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
17         * testsuite/Makefile.in: Regenerate.
18         * testsuite/lib/libgomp.exp (libgomp_init): Append
19         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
20         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
21         build directory to LD_LIBRARY_PATH for intelmic offload targets.
23 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
24             Ilya Verbin  <ilya.verbin@intel.com>
25             Kirill Yukhin  <kirill.yukhin@intel.com>
26             Ilya Tocar  <ilya.tocar@intel.com>
28         * testsuite/lib/libgomp.exp
29         (check_effective_target_offload_device): New.
30         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
31         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
32         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
33         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
34         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
35         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
36         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
37         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
38         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
39         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
40         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
41         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
42         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
43         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
44         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
45         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
46         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
47         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
48         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
49         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
50         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
51         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
52         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
53         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
54         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
55         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
56         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
57         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
58         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
59         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
60         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
61         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
62         * testsuite/libgomp.c/target-7.c: Fix test.
63         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
64         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
65         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
66         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
67         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
68         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
69         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
70         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
71         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
72         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
73         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
74         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
75         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
76         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
77         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
78         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
79         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
80         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
81         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
82         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
83         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
84         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
85         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
86         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
87         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
88         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
89         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
90         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
91         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
92         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
93         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
95 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
96             Ilya Verbin  <ilya.verbin@intel.com>
97             Thomas Schwinge  <thomas@codesourcery.com>
98             Andrey Turetskiy  <andrey.turetskiy@intel.com>
100         * libgomp.map (GOMP_4.0.1): New symbol version.
101         Add GOMP_offload_register.
102         * libgomp_target.h: New file.
103         * splay-tree.h: New file.
104         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
105         (gomp_target_init): New forward declaration.
106         (gomp_is_initialized): New static variable.
107         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
108         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
109         New structures.
110         (offload_images, num_offload_images, devices, num_devices): New static
111         variables.
112         (splay_compare): New static function.
113         (struct gomp_device_descr): New structure.
114         (gomp_get_num_devices): Call gomp_target_init.
115         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
116         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
117         (GOMP_offload_register): New function.
118         (GOMP_target): Arrange for host callback to be performed in a separate
119         initial thread and contention group, inheriting ICVs from
120         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
121         Add device initialization and lookup for target function in splay tree.
122         (GOMP_target_data): Add device initialization and call gomp_map_vars.
123         (GOMP_target_end_data): Call gomp_unmap_vars.
124         (GOMP_target_update): Add device initialization and call gomp_update.
125         (gomp_load_plugin_for_device, gomp_register_images_for_device)
126         (gomp_target_init): New static functions.
128 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
129             Thomas Schwinge  <thomas@codesourcery.com>
130             Ilya Verbin  <ilya.verbin@intel.com>
131             Andrey Turetskiy  <andrey.turetskiy@intel.com>
133         * config.h.in: Regenerate.
134         * configure: Regenerate.
135         * configure.ac: Check for libdl, required for plugin support.
136         (PLUGIN_SUPPORT): Define if plugins are supported.
137         (enable_offload_targets): Support Intel MIC targets.
138         (OFFLOAD_TARGETS): List of target names suitable for offloading.
140 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
142         PR target/63610
143         * configure: Regenerate.
145 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
147         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
149 2014-10-06  Marek Polacek  <polacek@redhat.com>
151         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
152         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
153         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
154         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
156 2014-10-06  Marek Polacek  <polacek@redhat.com>
158         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
159         * testsuite/libgomp.c/nqueens-1.c: Likewise.
160         * testsuite/libgomp.c/pr26943-3.c: Likewise.
161         * testsuite/libgomp.c/pr26943-4.c: Likewise.
162         * testsuite/libgomp.c/pr36802-2.c: Likewise.
163         * testsuite/libgomp.c/pr36802-3.c: Likewise.
164         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
165         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
166         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
167         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
168         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
169         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
170         * testsuite/libgomp.c/omp-single-1.c: Likewise.
171         * testsuite/libgomp.c/omp-single-2.c: Likewise.
172         * testsuite/libgomp.c/omp_matvec.c: Likewise.
173         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
174         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
175         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
176         declarations.
178 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
180         PR libgomp/61200
181         * testsuite/libgomp.c/pr61200.c: New test.
183 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
185         PR c++/63248
186         * testsuite/libgomp.c++/pr63248.C: New test.
188 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
190         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
191         is not zero, but taskgroup->children is NULL and there are
192         any task->children, schedule those instead of waiting.
193         * testsuite/libgomp.c/depend-6.c: New test.
194         * testsuite/libgomp.c/depend-7.c: New test.
195         * testsuite/libgomp.c/depend-8.c: New test.
196         * testsuite/libgomp.c/depend-9.c: New test.
197         * testsuite/libgomp.c/depend-10.c: New test.
199 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
201         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
202         (struct gomp_taskwait): New type.
203         (struct gomp_task): Add taskwait and parent_depends_on, remove
204         in_taskwait and taskwait_sem fields.
205         (gomp_finish_task): Don't destroy taskwait_sem.
206         * task.c (gomp_init_task): Don't init in_taskwait, instead init
207         taskwait and parent_depends_on.
208         (GOMP_task): For if (0) tasks with depend clause that depend on
209         earlier tasks don't defer them, instead call
210         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
211         Initialize redundant_out field, for redundant out entries just
212         move them at the end of linked list instead of removing them
213         completely, and set redundant_out flag instead of redundant.
214         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
215         that task.
216         (gomp_task_run_post_handle_dependers): If parent is in
217         gomp_task_maybe_wait_for_dependencies and newly runnable task
218         is not parent_depends_on, queue it in parent->children linked
219         list after all runnable tasks with parent_depends_on set.
220         Adjust for addition of taskwait indirection.
221         (gomp_task_run_post_remove_parent): If parent is in
222         gomp_task_maybe_wait_for_dependencies and task to be removed
223         is parent_depends_on, decrement n_depend and if needed awake
224         parent.  Adjust for addition of taskwait indirection.
225         (GOMP_taskwait): Adjust for addition of taskwait indirection.
226         (gomp_task_maybe_wait_for_dependencies): New function.
227         * testsuite/libgomp.c/depend-5.c: New test.
229 2014-07-13  Tobias Burnus  <burnus@net-b.de>
231         * testsuite/libgomp.fortran/pr34020.f90: Make compile
232         with TS 18508/Fortran 2015.
234 2014-07-06  Marek Polacek  <polacek@redhat.com>
236         PR c/6940
237         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
239 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
241         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
242         matches regex $lang_source_re, add $lang_include_flags to options.
243         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
244         * testsuite/libgomp.c++/c++.exp: Likewise.
245         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
246         and lang_include_flags instead of adding -fintrinsic-modules-path= to
247         ALWAYS_CFLAGS.
248         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
250 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
252         * testsuite/libgomp.fortran/fortran.exp: Explain
253         gfortran-dg-runtest usage.
255 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
257         * testsuite/libgomp.fortran/simd5.f90: New test.
258         * testsuite/libgomp.fortran/simd6.f90: New test.
259         * testsuite/libgomp.fortran/simd7.f90: New test.
261 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
263         * testsuite/libgomp.c/for-2.c: Define SC to static for
264         #pragma omp for simd testing.
265         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
266         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
267         SC macro.
268         * testsuite/libgomp.c/simd-14.c: New test.
269         * testsuite/libgomp.c/simd-15.c: New test.
270         * testsuite/libgomp.c/simd-16.c: New test.
271         * testsuite/libgomp.c/simd-17.c: New test.
272         * testsuite/libgomp.c++/for-10.C: Define SC to static for
273         #pragma omp for simd testing.
274         * testsuite/libgomp.c++/simd10.C: New test.
275         * testsuite/libgomp.c++/simd11.C: New test.
276         * testsuite/libgomp.c++/simd12.C: New test.
277         * testsuite/libgomp.c++/simd13.C: New test.
279         * testsuite/libgomp.fortran/aligned1.f03: New test.
280         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
281         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
282         tasks with !$omp parallel !$omp single.
283         * testsuite/libgomp.fortran/target8.f90: New test.
284         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
285         not to use trim in the combiner, instead call elemental function.
286         (fn): New elemental function.
287         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
288         Make elemental.
289         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
290         omp_in): Likewise.
291         * testsuite/libgomp.fortran/udr12.f90: New test.
292         * testsuite/libgomp.fortran/udr13.f90: New test.
293         * testsuite/libgomp.fortran/udr14.f90: New test.
294         * testsuite/libgomp.fortran/udr15.f90: New test.
296 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
298         * omp_lib.f90.in (openmp_version): Set to 201307.
299         * omp_lib.h.in (openmp_version): Likewise.
300         * testsuite/libgomp.c/target-8.c: New test.
301         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
302         and inbranch clauses.
303         * testsuite/libgomp.fortran/depend-3.f90: New test.
304         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
305         openmp_version.
306         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
307         * testsuite/libgomp.fortran/target1.f90: New test.
308         * testsuite/libgomp.fortran/target2.f90: New test.
309         * testsuite/libgomp.fortran/target3.f90: New test.
310         * testsuite/libgomp.fortran/target4.f90: New test.
311         * testsuite/libgomp.fortran/target5.f90: New test.
312         * testsuite/libgomp.fortran/target6.f90: New test.
313         * testsuite/libgomp.fortran/target7.f90: New test.
315 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
317         PR fortran/60928
318         * testsuite/libgomp.fortran/allocatable9.f90: New test.
319         * testsuite/libgomp.fortran/allocatable10.f90: New test.
320         * testsuite/libgomp.fortran/allocatable11.f90: New test.
321         * testsuite/libgomp.fortran/allocatable12.f90: New test.
322         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
323         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
324         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
325         * testsuite/libgomp.fortran/associate1.f90: New test.
326         * testsuite/libgomp.fortran/associate2.f90: New test.
327         * testsuite/libgomp.fortran/procptr1.f90: New test.
329 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
331         * testsuite/libgomp.fortran/simd1.f90: New test.
332         * testsuite/libgomp.fortran/udr1.f90: New test.
333         * testsuite/libgomp.fortran/udr2.f90: New test.
334         * testsuite/libgomp.fortran/udr3.f90: New test.
335         * testsuite/libgomp.fortran/udr4.f90: New test.
336         * testsuite/libgomp.fortran/udr5.f90: New test.
337         * testsuite/libgomp.fortran/udr6.f90: New test.
338         * testsuite/libgomp.fortran/udr7.f90: New test.
339         * testsuite/libgomp.fortran/udr8.f90: New test.
340         * testsuite/libgomp.fortran/udr9.f90: New test.
341         * testsuite/libgomp.fortran/udr10.f90: New test.
342         * testsuite/libgomp.fortran/udr11.f90: New test.
344 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
346         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
347         vect_simd_clones effective target.
348         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
350 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
352         PR middle-end/61252
353         * testsuite/libgomp.c++/simd-9.C: New test.
355 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
357         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
358         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
359         texts according to their @menu entry positions.
361 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
363         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
364         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
365         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
366         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
367         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
368         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
369         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
370         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
371         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
372         * testsuite/libgomp.fortran/depend-1.f90: New test.
373         * testsuite/libgomp.fortran/depend-2.f90: New test.
374         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
375         * testsuite/libgomp.fortran/simd1.f90: New test.
376         * testsuite/libgomp.fortran/simd2.f90: New test.
377         * testsuite/libgomp.fortran/simd3.f90: New test.
378         * testsuite/libgomp.fortran/simd4.f90: New test.
379         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
381 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
383         * testsuite/libgomp.c/simd-10.c: New test.
384         * testsuite/libgomp.c/simd-11.c: New test.
385         * testsuite/libgomp.c/simd-12.c: New test.
386         * testsuite/libgomp.c/simd-13.c: New test.
388 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
390         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
391         atomic type clauses in any order and optional comma in between.
392         * testsuite/libgomp.c++/atomic-15.C: Likewise.
393         * testsuite/libgomp.c/atomic-17.c: Likewise.
395         * testsuite/libgomp.c/simd-7.c: New test.
396         * testsuite/libgomp.c/simd-8.c: New test.
397         * testsuite/libgomp.c/simd-9.c: New test.
398         * testsuite/libgomp.c/loop-16.c: New test.
400 2014-04-02  Richard Henderson  <rth@redhat.com>
402         * config/linux/futex.h (futex_wait): Get error value from errno.
403         (futex_wake): Likewise.
405 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
407         PR c++/60331
408         * testsuite/libgomp.c++/udr-11.C: New test.
409         * testsuite/libgomp.c++/udr-12.C: New test.
410         * testsuite/libgomp.c++/udr-13.C: New test.
411         * testsuite/libgomp.c++/udr-14.C: New test.
412         * testsuite/libgomp.c++/udr-15.C: New test.
413         * testsuite/libgomp.c++/udr-16.C: New test.
414         * testsuite/libgomp.c++/udr-17.C: New test.
415         * testsuite/libgomp.c++/udr-18.C: New test.
416         * testsuite/libgomp.c++/udr-19.C: New test.
418 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
420         Update copyright years
422 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
424         * hashtab.h: Use the standard form for the copyright notice.
426 2014-01-02  Tobias Burnus  <burnus@net-b.de>
428         * libgomp.texi: Bump @copying's copyright year.
430 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
432         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
433         alloca () with __builtin_alloca ().
434         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
435         * testsuite/libgomp.c/lock-3.c: Likewise.
436         * testsuite/libgomp.c/pr48591.c: Likewise.
438 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
440         PR testsuite/59534
441         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
442         comparisons.
444 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
446         PR libgomp/58756
447         * testsuite/libgomp.c/pr58756.c: New test.
449 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
451         PR libgomp/59467
452         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
453         !$omp parallel.
455 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
457         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
458         ALWAYS_CFLAGS.
459         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
460         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
461         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
462         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
463         Likewise.
465         * libgomp_g.h: Include <stddef.h> for size_t.
467         * libgomp.spec.in: Update comment about libgomp's dependencies.
468         * configure.ac: Likewise.
469         * configure: Regenerate.
471 2013-10-16  Tobias Burnus  <burnus@net-b.de>
473         * libgomp.texi: (Runtime Library Routines): Update references for
474         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
475         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
476         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
477         (Environment Variables): Update references for OpenMP 4.0. Add
478         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
479         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
480         order.
482 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
484         * env.c (parse_bind_var): Initialize value to avoid
485         (false positive) warning.
487 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
489         PR libgomp/58691
490         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
491         to check variable.
492         (gomp_init_num_threads): Move i variable declaration into
493         #ifdef CPU_ALLOC_SIZE block.
494         * config/linux/affinity.c (gomp_affinity_init_level): Test
495         gomp_places_list_len == 0 rather than gomp_places_list == 0
496         when checking for topology reading error.
497         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
498         * env.c (parse_affinity): Add ignore argument, if true, don't populate
499         gomp_places_list, only parse env var and always return false.
500         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
501         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
502         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
503         and either of these variables were parsed correctly into a places
504         list.
506 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
507             Jakub Jelinek  <jakub@redhat.com>
509         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
510         of 5 loopfn matches.
511         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
512         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
513         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
514         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
515         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
516         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
517         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
518         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
520 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
522         * Makefile.am (omp_lib.mod): Streamline rule.
523         * Makefile.in: Regenerate.
525         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
526         exceptions.
528         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
529         * testsuite/libgomp.fortran/lib1.f90: Likewise.
530         * testsuite/libgomp.fortran/lib2.f: Likewise.
531         * testsuite/libgomp.fortran/lib3.f: Likewise.
533         * configure.ac: Typo fix.
534         * configure: Regenerate.
536         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
537         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
539         * omp.h.in: Don't touch the user's namespace.
541 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
542             Tobias Burnus  <burnus@net-b.de>
543             Richard Henderson  <rth@redhat.com>
545         * target.c: New file.
546         * Makefile.am (libgomp_la_SOURCES): Add target.c.
547         * Makefile.in: Regenerated.
548         * libgomp_g.h (GOMP_task): Add depend argument.
549         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
550         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
551         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
552         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
553         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
554         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
555         GOMP_taskgroup_start, GOMP_taskgroup_end,
556         GOMP_parallel_sections): New prototypes.
557         * fortran.c (omp_is_initial_device): Add ialias_redirect.
558         (omp_is_initial_device_): New function.
559         (ULP, STR1, STR2, ialias_redirect): Removed.
560         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
561         omp_set_default_device_8_, omp_get_default_device_,
562         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
563         functions.
564         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
565         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
566         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
567         @@GOMP_4.0.
568         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
569         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
570         omp_set_default_device, omp_set_default_device_,
571         omp_set_default_device_8_, omp_get_default_device,
572         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
573         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
574         omp_get_team_num_): Export @@OMP_4.0.
575         * team.c (struct gomp_thread_start_data): Add place field.
576         (gomp_thread_start): Clear thr->thread_pool and
577         thr->task before returning.  Use gomp_team_barrier_wait_final
578         instead of gomp_team_barrier_wait.  Initialize thr->place.
579         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
580         team_cancelled and task_queued_count fields.
581         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
582         before calling pthread_exit.
583         (gomp_free_thread): No longer static.  Use
584         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
585         (gomp_team_start): Add flags argument.  Set
586         thr->thread_pool->threads_busy to nthreads immediately after creating
587         new pool.  Use gomp_managed_threads_lock instead of
588         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
589         (gomp_team_end): Use gomp_managed_threads_lock instead of
590         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
591         of gomp_team_barrier_wait.  If team->team_cancelled, call
592         gomp_fini_worshare on ws chain starting at team->work_shares_to_free
593         rather than thr->ts.work_share.
594         (initialize_team): Don't call gomp_sem_init here.
595         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
596         caller.
597         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
598         * env.c (gomp_global_icv): Add default_device_var, target_data and
599         bind_var initializers.
600         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
601         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
602         gomp_places_list_len): New variables.
603         (parse_bind_var, parse_one_place, parse_places_var): New functions.
604         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
605         sized places.
606         (gomp_cancel_var): New global variable.
607         (parse_int): New function.
608         (handle_omp_display_env): New function.
609         (initialize_env): Use it.  Initialize default_device_var.
610         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
611         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
612         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
613         been successfully parsed (and call gomp_init_affinity in that case).
614         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
615         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
616         omp_get_team_num, omp_is_initial_device): New functions.
617         * libgomp.h: Include stdlib.h.
618         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
619         Define.
620         (struct target_mem_desc): Forward declare.
621         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
622         and thread_limit_var fields.
623         (gomp_get_num_devices): New prototype.
624         (gomp_cancel_var): New extern decl.
625         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
626         team_cancelled and task_queued_count fields.  Add comments about
627         task_{,queued_,running_}count.
628         (gomp_cancel_kind): New enum.
629         (gomp_work_share_end_cancel): New prototype.
630         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
631         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
632         and depend fields.
633         (struct gomp_taskgroup): New type.
634         (struct gomp_task_depend_entry,
635         struct gomp_dependers_vec): New types.
636         (gomp_finish_task): Free depend_hash if non-NULL.
637         (struct gomp_team_state): Add place_partition_off
638         and place_partition_len fields.
639         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
640         gomp_places_list_len): New extern decls.
641         (struct gomp_thread): Add place field.
642         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
643         (gomp_init_thread_affinity): Add place argument.
644         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
645         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
646         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
647         gomp_affinity_init_level, gomp_affinity_print_place): New
648         prototypes.
649         (gomp_team_start): Add flags argument.
650         (gomp_thread_limit_var, gomp_remaining_threads_count,
651         gomp_remaining_threads_lock): Remove.
652         (gomp_managed_threads_lock): New variable.
653         (struct gomp_thread_pool): Add threads_busy field.
654         (gomp_free_thread): New prototype.
655         * task.c: Include hashtab.h.
656         (hash_entry_type): New typedef.
657         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
658         (gomp_init_task): Clear dependers, depend_hash, depend_count,
659         copy_ctors_done and taskgroup fields.
660         (GOMP_task): Add depend argument, handle depend clauses.  If
661         gomp_team_barrier_cancelled or if it's taskgroup has been
662         cancelled, don't queue or start new tasks.  Set copy_ctors_done
663         field if needed.  Initialize taskgroup field.  If copy_ctors_done
664         and already cancelled, don't discard the task.  If taskgroup is
665         non-NULL, enqueue the task into taskgroup queue.  Increment
666         num_children field in taskgroup.  Increment task_queued_count.
667         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
668         gomp_task_run_post_remove_taskgroup): New inline functions.
669         (gomp_task_run_post_handle_depend_hash,
670         gomp_task_run_post_handle_dependers,
671         gomp_task_run_post_handle_depend): New functions.
672         (GOMP_taskwait): Use them.  If more than one new tasks
673         have been queued, wake other threads if needed.
674         (gomp_barrier_handle_tasks): Likewise.  If
675         gomp_team_barrier_cancelled, don't start any new tasks, just free
676         all tasks.
677         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
678         * omp_lib.f90.in
679         (omp_proc_bind_kind, omp_proc_bind_false,
680         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
681         omp_proc_bind_spread): New params.
682         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
683         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
684         omp_get_team_num, omp_is_initial_device): New interfaces.
685         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
686         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
687         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
688         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
689         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
690         useless use omp_lib_kinds.
691         * omp.h.in (omp_proc_bind_t): New typedef.
692         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
693         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
694         omp_get_team_num, omp_is_initial_device): New prototypes.
695         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
696         through to gomp_team_start.
697         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
698         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
699         Adjust gomp_parallel_loop_start callers.
700         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
701         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
702         GOMP_loop_end_cancel): New functions.
703         (GOMP_parallel_end): Add ialias_redirect.
704         * hashtab.h: New file.
705         * libgomp.texi (Environment Variables): Minor cleanup,
706         update section refs to OpenMP 4.0rc2.
707         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
708         environment variables.
709         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
710         team->work_shares_to_free to thr->ts.work_share before calling
711         free_work_share.
712         (gomp_work_share_end_cancel): New function.
713         * config/linux/proc.c: Include errno.h.
714         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
715         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
716         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
717         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
718         gomp_cpuset_size is sizeof (cpu_set_t).
719         (gomp_init_num_threads): Initialize gomp_cpuset_size,
720         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
721         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
722         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
723         contain any logical CPUs.
724         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
725         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
726         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
727         pthread_getaffinity_np.  Check gomp_places_list instead of
728         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
729         * config/linux/bar.c (gomp_barrier_wait_end,
730         gomp_barrier_wait_last): Use BAR_* defines.
731         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
732         from state where needed.  Set work_share_cancelled to 0 on last
733         thread.
734         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
735         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
736         functions.
737         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
738         Add cpusetsize argument.
739         (gomp_cpuset_size, gomp_cpusetp): Declare.
740         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
741         (affinity_counter): Remove.
742         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
743         if CPU_ALLOC_SIZE isn't defined.
744         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
745         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
746         bind current thread to the first place.
747         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
748         pthread_setaffinity_np to gomp_places_list[place].
749         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
750         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
751         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
752         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
753         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
754         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
755         (gomp_barrier_t): Add awaited_final field.
756         (gomp_barrier_init): Initialize awaited_final field.
757         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
758         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
759         prototypes.
760         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
761         defines.
762         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
763         gomp_team_barrier_cancelled): New inline functions.
764         (gomp_barrier_last_thread,
765         gomp_team_barrier_set_task_pending,
766         gomp_team_barrier_clear_task_pending,
767         gomp_team_barrier_set_waiting_for_tasks,
768         gomp_team_barrier_waiting_for_tasks,
769         gomp_team_barrier_done): Use BAR_* defines.
770         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
771         (gomp_barrier_wait_end): Use BAR_* defines.
772         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
773         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
774         Use BAR_* defines.
775         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
776         gomp_team_barrier_cancel): New functions.
777         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
778         argument.
779         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
780         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
781         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
782         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
783         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
784         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
785         (gomp_barrier_t): Add cancellable field.
786         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
787         gomp_team_barrier_cancel): New prototypes.
788         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
789         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
790         gomp_team_barrier_cancelled): New inline functions.
791         (gomp_barrier_wait_start, gomp_barrier_last_thread,
792         gomp_team_barrier_set_task_pending,
793         gomp_team_barrier_clear_task_pending,
794         gomp_team_barrier_set_waiting_for_tasks,
795         gomp_team_barrier_waiting_for_tasks,
796         gomp_team_barrier_done): Use BAR_* defines.
797         * barrier.c (GOMP_barrier_cancel): New function.
798         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
799         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
800         omp_proc_bind_spread): New params.
801         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
802         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
803         omp_get_team_num, omp_is_initial_device): New externals.
804         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
805         New functions.
806         (gomp_resolve_num_threads): Adjust for thread_limit now being in
807         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
808         infinity.  If not nested, just return minimum of max_num_threads
809         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
810         to the returned value.  Otherwise, don't update atomically
811         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
812         (GOMP_parallel_end): Adjust for thread_limit now being in
813         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
814         infinity.  Adjust threads_busy in the pool rather than
815         gomp_remaining_threads_count.  Remember team->nthreads and call
816         gomp_team_end before adjusting threads_busy, if not nested
817         afterwards, just set it to 1 non-atomically.  Add ialias.
818         (GOMP_parallel_start): Adjust gomp_team_start caller.
819         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
820         * testsuite/libgomp.c/affinity-1.c: New test.
821         * testsuite/libgomp.c/atomic-15.c: New test.
822         * testsuite/libgomp.c/atomic-16.c: New test.
823         * testsuite/libgomp.c/atomic-17.c: New test.
824         * testsuite/libgomp.c/cancel-for-1.c: New test.
825         * testsuite/libgomp.c/cancel-for-2.c: New test.
826         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
827         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
828         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
829         * testsuite/libgomp.c/cancel-sections-1.c: New test.
830         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
831         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
832         * testsuite/libgomp.c/depend-1.c: New test.
833         * testsuite/libgomp.c/depend-2.c: New test.
834         * testsuite/libgomp.c/depend-3.c: New test.
835         * testsuite/libgomp.c/depend-4.c: New test.
836         * testsuite/libgomp.c/for-1.c: New test.
837         * testsuite/libgomp.c/for-1.h: New file.
838         * testsuite/libgomp.c/for-2.c: New test.
839         * testsuite/libgomp.c/for-2.h: New file.
840         * testsuite/libgomp.c/for-3.c: New test.
841         * testsuite/libgomp.c/pr58392.c: New test.
842         * testsuite/libgomp.c/simd-1.c: New test.
843         * testsuite/libgomp.c/simd-2.c: New test.
844         * testsuite/libgomp.c/simd-3.c: New test.
845         * testsuite/libgomp.c/simd-4.c: New test.
846         * testsuite/libgomp.c/simd-5.c: New test.
847         * testsuite/libgomp.c/simd-6.c: New test.
848         * testsuite/libgomp.c/target-1.c: New test.
849         * testsuite/libgomp.c/target-2.c: New test.
850         * testsuite/libgomp.c/target-3.c: New test.
851         * testsuite/libgomp.c/target-4.c: New test.
852         * testsuite/libgomp.c/target-5.c: New test.
853         * testsuite/libgomp.c/target-6.c: New test.
854         * testsuite/libgomp.c/target-7.c: New test.
855         * testsuite/libgomp.c/taskgroup-1.c: New test.
856         * testsuite/libgomp.c/thread-limit-1.c: New test.
857         * testsuite/libgomp.c/thread-limit-2.c: New test.
858         * testsuite/libgomp.c/thread-limit-3.c: New test.
859         * testsuite/libgomp.c/udr-1.c: New test.
860         * testsuite/libgomp.c/udr-2.c: New test.
861         * testsuite/libgomp.c/udr-3.c: New test.
862         * testsuite/libgomp.c++/affinity-1.C: New test.
863         * testsuite/libgomp.c++/atomic-10.C: New test.
864         * testsuite/libgomp.c++/atomic-11.C: New test.
865         * testsuite/libgomp.c++/atomic-12.C: New test.
866         * testsuite/libgomp.c++/atomic-13.C: New test.
867         * testsuite/libgomp.c++/atomic-14.C: New test.
868         * testsuite/libgomp.c++/atomic-15.C: New test.
869         * testsuite/libgomp.c++/cancel-for-1.C: New test.
870         * testsuite/libgomp.c++/cancel-for-2.C: New test.
871         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
872         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
873         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
874         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
875         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
876         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
877         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
878         * testsuite/libgomp.c++/cancel-test.h: New file.
879         * testsuite/libgomp.c++/for-9.C: New test.
880         * testsuite/libgomp.c++/for-10.C: New test.
881         * testsuite/libgomp.c++/for-11.C: New test.
882         * testsuite/libgomp.c++/simd-1.C: New test.
883         * testsuite/libgomp.c++/simd-2.C: New test.
884         * testsuite/libgomp.c++/simd-3.C: New test.
885         * testsuite/libgomp.c++/simd-4.C: New test.
886         * testsuite/libgomp.c++/simd-5.C: New test.
887         * testsuite/libgomp.c++/simd-6.C: New test.
888         * testsuite/libgomp.c++/simd-7.C: New test.
889         * testsuite/libgomp.c++/simd-8.C: New test.
890         * testsuite/libgomp.c++/target-1.C: New test.
891         * testsuite/libgomp.c++/target-2.C: New test.
892         * testsuite/libgomp.c++/target-2-aux.cc: New file.
893         * testsuite/libgomp.c++/target-3.C: New test.
894         * testsuite/libgomp.c++/taskgroup-1.C: New test.
895         * testsuite/libgomp.c++/udr-1.C: New test.
896         * testsuite/libgomp.c++/udr-2.C: New test.
897         * testsuite/libgomp.c++/udr-3.C: New test.
898         * testsuite/libgomp.c++/udr-4.C: New test.
899         * testsuite/libgomp.c++/udr-5.C: New test.
900         * testsuite/libgomp.c++/udr-6.C: New test.
901         * testsuite/libgomp.c++/udr-7.C: New test.
902         * testsuite/libgomp.c++/udr-8.C: New test.
903         * testsuite/libgomp.c++/udr-9.C: New test.
905 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
907         PR testsuite/57605
908         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
909         ALWAYS_CFLAGS.
911 2013-09-20  Alan Modra  <amodra@gmail.com>
913         * configure: Regenerate.
915 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
917         * testsuite/libgomp.c/sections-2.c: New test.
919 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
921         * testsuite/libgomp.fortran/strassen.f90:
922         Add dg-skip-if aarch64_tiny.
924 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
925             Cesar Philippidis  <cesar@codesourcery.com>
927         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
928         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
929         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
930         * testsuite/libgomp.fortran/fortran.exp: Likewise.
931         * testsuite/libgomp.graphite/graphite.exp: Likewise.
932         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
933         Use dg-runtest rather than gfortran-dg-runtest.
935 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
937         * testsuite/libgomp.c/icv-2.c: Extend current handling of
938         Linux-based x86 systems to cover all GNU systems.
939         * testsuite/libgomp.c/lock-3.c: Likewise.
940         * testsuite/libgomp.c/pr48591.c: Likewise.
942 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
944         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
945         GNU/Hurd, as done for Linux-based systems.
947         * config/posix/ptrlock.h: Fix comment.
949 2013-05-27  Tobias Burnus  <burnus@net-b.de>
951         PR fortran/57423
952         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
953         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
954         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
955         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
956         omp_destroy_nest_lock): Correct arguments to match the one in
957         the OpenMP spec.
958         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
959         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
960         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
961         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
963 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
965         * testsuite/libgomp.c/loop-13.c: New test.
966         * testsuite/libgomp.c/loop-14.c: New test.
967         * testsuite/libgomp.c/loop-15.c: New test.
968         * testsuite/libgomp.c++/loop-13.C: New test.
969         * testsuite/libgomp.c++/loop-14.C: New test.
970         * testsuite/libgomp.c++/loop-15.C: New test.
972 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
974         PR middle-end/56217
975         * testsuite/libgomp.c++/pr56217.C: New test.
977 2013-02-01  Alan Modra  <amodra@gmail.com>
979         * task.c (GOMP_task, GOMP_taskwait): Comment.
981 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
982             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
984         PR libgomp/55561
985         * config/linux/wait.h (do_spin): Use atomic load for addr.
986         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
987         for intptr and ptrlock.
988         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
989         for ptrlock.
991 2013-01-22  Alan Modra  <amodra@gmail.com>
993         PR libgomp/51376
994         PR libgomp/56073
995         * task.c (GOMP_task): Revert 2011-12-09 change.
996         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
997         barrier to read task->children..
998         (gomp_barrier_handle_tasks): ..and matching atomic store with
999         release barrier here when setting parent->children to NULL.
1001 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
1002             Tobias Burnus  <burnus@net-b.de>
1004         PR driver/55884
1005         * testsuite/libgomp.fortran/fortran.exp: Use
1006         -fintrinsic-modules-path= instead of
1007         -fintrinsic-modules-path.
1009 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
1011         Update copyright years.
1013 2012-12-19  Tobias Burnus  <burnus@net-b.de>
1015         * testsuite/libgomp.fortran/fortran.exp: Set
1016         -fintrinsic-modules-path.
1018 2012-12-19  Tobias Burnus  <burnus@net-b.de>
1020         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
1021         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
1023 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
1025         PR libgomp/55411
1026         * team.c (gomp_free_thread): Decrease gomp_managed_threads
1027         if pool had any threads_used.
1029 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
1031         * testsuite/libgomp.c++/pr24455.C: Use
1032         -Wl,-undefined,dynamic_lookup on darwin.
1034 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
1036         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
1038 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
1040         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
1042 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
1043             Jim MacArthur  <jim.macarthur@arm.com>
1044             Marcus Shawcroft  <marcus.shawcroft@arm.com>
1045             Nigel Stephens  <nigel.stephens@arm.com>
1046             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1047             Richard Earnshaw  <rearnsha@arm.com>
1048             Sofiane Naci  <sofiane.naci@arm.com>
1049             Stephen Thomas  <stephen.thomas@arm.com>
1050             Tejas Belagod  <tejas.belagod@arm.com>
1051             Yufeng Zhang  <yufeng.zhang@arm.com>
1053         * configure.tgt: Add AArch64.
1055 2012-10-04  Jason Merrill  <jason@redhat.com>
1057         * testsuite/libgomp.c++/tls-init1.C: New.
1059 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
1061         * configure: Regenerated.
1063 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
1065         * config/linux/mips/futex.h (sys_futex0): Change to static
1066         function with noinline, nomips16 attributes under MIPS16. Adjust
1067         asm statement to place 'li v0,SYS_futex' immediately before
1068         syscall insn.
1070 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
1072         * libgomp.texi (Library Index): Renamed from "Index" to prevent
1073         conflict with index.html on case-insensitive file systems.
1075 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
1077         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
1078         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
1080 2012-07-02  Richard Guenther  <rguenther@suse.de>
1081             Michael Matz  <matz@suse.de>
1082             Tobias Grosser <tobias@grosser.es>
1083             Sebastian Pop <sebpop@gmail.com>
1085         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
1086         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1087         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1088         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1090 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
1092         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
1094 2012-06-22  Richard Guenther  <rguenther@suse.de>
1096         Merge from graphite branch
1097         2012-01-13  Tobias Grosser  <tobias@grosser.es>
1099         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1100         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
1102 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
1104         PR middle-end/53580
1105         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
1106         use GOMP_barrier () call instead.
1107         * testsuite/libgomp.c/pr26943-3.c: Likewise.
1108         * testsuite/libgomp.c/pr26943-4.c: Likewise.
1109         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
1110         call GOMP_barrier instead.
1111         * testsuite/libgomp.fortran/vla5.f90: Likewise.
1113 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
1115         PR libgomp/52993
1116         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
1117         argument to memset call.
1119 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1121         * configure: Regenerated.
1123 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1125         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
1127 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
1129         PR bootstrap/52812
1130         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
1132 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
1134         PR middle-end/52547
1135         * testsuite/libgomp.c/pr52547.c: New test.
1137 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1139         * testsuite/lib/libgomp.exp: load fortran-modules.exp
1141 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1143         * configure.tgt (mips-sgi-irix6*): Remove.
1145 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1147         * configure.tgt (alpha*-dec-osf*): Remove.
1149         * config/osf/sem.h: Remove.
1150         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
1152 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
1154         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
1156 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1158         PR libstdc++/52188
1159         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
1160         Remove ENABLE_SYMVERS_SOL2.
1161         * configure: Regenerate.
1162         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
1163         (PREPROCESS): New variable.
1164         (libgomp.ver): New target.
1165         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
1166         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
1167         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
1168         Use libgomp.ver.
1169         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
1170         * Makefile.in: Regenerate.
1172 2012-02-14  Walter Lee  <walt@tilera.com>
1174         * configure.tgt: Handle tilegx and tilepro.
1175         * config/linux/tile/futex.h: New file.
1177 2012-02-08  Richard Guenther  <rguenther@suse.de>
1179         PR tree-optimization/46886
1180         * testsuite/libgomp.c/pr46886.c: New testcase.
1182 2012-01-25  Matthias Klose  <doko@ubuntu.com>
1184         * config/linux/arm: Remove empty directory.
1185         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
1187 2011-12-09  Alan Modra  <amodra@gmail.com>
1189         PR libgomp/51376
1190         * task.c (GOMP_taskwait): Don't access task->children outside of
1191         task_lock mutex region.
1192         (GOMP_task): Likewise.
1194 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
1196         PR libgomp/51132
1197         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
1198         to file scope.
1199         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
1200         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
1201         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1202         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1203         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
1205 2011-12-02  Alan Modra  <amodra@gmail.com>
1207         * config/linux/affinity.c: Use atomic rather than sync builtin.
1208         * config/linux/lock.c: Likewise.
1209         * config/linux/ptrlock.h: Likewise.
1210         * config/linux/ptrlock.c: Likewise.
1211         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
1212         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
1213         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
1214         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
1215         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
1216         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
1217         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
1218         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
1219         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
1220         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
1222 2011-11-30  Alan Modra  <amodra@gmail.com>
1224         PR libgomp/51298
1225         * config/linux/bar.h: Use atomic rather than sync builtins.
1226         * config/linux/bar.c: Likewise.  Add missing acquire
1227         synchronisation on generation field.
1228         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
1229         double unlock.
1231 2011-11-30  Alan Modra  <amodra@gmail.com>
1233         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
1234         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
1235         * config/linux/mutex.h: Use atomic rather than sync builtins.
1236         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
1237         * config/linux/omp-lock.h: Comment fix.
1238         * config/linux/arm/mutex.h: Delete.
1239         * config/linux/powerpc/mutex.h: Delete.
1240         * config/linux/ia64/mutex.h: Delete.
1241         * config/linux/mips/mutex.h: Delete.
1243 2011-11-30  Alan Modra  <amodra@gmail.com>
1245         PR libgomp/51249
1246         * config/linux/sem.h: Rewrite.
1247         * config/linux/sem.c: Rewrite.
1249 2011-11-28  Richard Henderson  <rth@redhat.com>
1251         * libgomp.h (enum memmodel): New.
1253 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
1255         * configure: Regenerate.
1257 2011-10-10  Matthias Klose  <doko@ubuntu.com>
1259         * config/posix95: Remove empty directory.
1261 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
1263         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
1265 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
1267         PR fortran/49792
1268         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
1269         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
1271 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1273         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
1275 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1277         PR libgomp/49965
1278         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
1280 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
1282         * config/linux/proc.h: New.
1283         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
1284         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
1285         (gomp_init_num_threads): Update call to cpuset_popcount.
1286         (get_num_procs): Ditto.
1287         * config/linux/affinity.c (gomp_init_affinity): Call
1288         gomp_cpuset_popcount.
1290 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
1292         PR fortran/42041
1293         PR fortran/46752
1294         * omp.h.in (omp_in_final): New prototype.
1295         * omp_lib.f90.in (omp_in_final): New interface.
1296         (omp_integer_kind, omp_logical_kind): Remove
1297         and replace all its uses in the module with 4.
1298         (openmp_version): Change to 201107.
1299         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
1300         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
1301         kind for the parameters.
1302         (omp_in_final): New external.
1303         (openmp_version): Change to 201107.
1304         * task.c (omp_in_final): New function.
1305         (gomp_init_task): Initialize final_task.
1306         (GOMP_task): Remove unused attribute from flags.  Handle final
1307         tasks.
1308         (GOMP_taskyield): New function.
1309         (omp_in_final): Return true if if (false) or final (true) task
1310         or descendant of final (true).
1311         * fortran.c (omp_in_final_): New function.
1312         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
1313         (GOMP_3.0): Export GOMP_taskyield.
1314         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
1315         variables.
1316         (parse_unsigned_long_list): New function.
1317         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
1318         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
1319         even if parse_affinity returned false.
1320         * config/linux/affinity.c (gomp_init_affinity): Handle
1321         gomp_cpu_affinity_len == 0.
1322         * libgomp_g.h (GOMP_taskyield): New prototype.
1323         * libgomp.h (struct gomp_task): Add final_task field.
1324         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
1325         * team.c (gomp_team_start): Override new task's nthreads_var icv
1326         if list form OMP_NUM_THREADS has been used and it has value for
1327         the new nesting level.
1329         * testsuite/libgomp.c/atomic-11.c: New test.
1330         * testsuite/libgomp.c/atomic-12.c: New test.
1331         * testsuite/libgomp.c/atomic-13.c: New test.
1332         * testsuite/libgomp.c/atomic-14.c: New test.
1333         * testsuite/libgomp.c/reduction-6.c: New test.
1334         * testsuite/libgomp.c/task-5.c: New test.
1335         * testsuite/libgomp.c++/atomic-2.C: New test.
1336         * testsuite/libgomp.c++/atomic-3.C: New test.
1337         * testsuite/libgomp.c++/atomic-4.C: New test.
1338         * testsuite/libgomp.c++/atomic-5.C: New test.
1339         * testsuite/libgomp.c++/atomic-6.C: New test.
1340         * testsuite/libgomp.c++/atomic-7.C: New test.
1341         * testsuite/libgomp.c++/atomic-8.C: New test.
1342         * testsuite/libgomp.c++/atomic-9.C: New test.
1343         * testsuite/libgomp.c++/task-8.C: New test.
1344         * testsuite/libgomp.c++/reduction-4.C: New test.
1345         * testsuite/libgomp.fortran/allocatable7.f90: New test.
1346         * testsuite/libgomp.fortran/allocatable8.f90: New test.
1347         * testsuite/libgomp.fortran/crayptr3.f90: New test.
1348         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
1349         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
1350         * testsuite/libgomp.fortran/pointer1.f90: New test.
1351         * testsuite/libgomp.fortran/pointer2.f90: New test.
1352         * testsuite/libgomp.fortran/task4.f90: New test.
1354 2011-08-02  Tobias Burnus  <burnus@net-b.de>
1356         * libgomp.texi: Update OpenMP spec references to 3.1.
1357         (omp_in_final,OMP_PROC_BIND): New sections.
1358         (OMP_NUM_THREADS): Document that the value can be now a list.
1359         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
1361 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
1363         * config/linux/x86/futex.h: Check __x86_64__ instead of
1364         __LP64__.
1366 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
1368         PR middle-end/49897
1369         PR middle-end/49898
1370         * testsuite/libgomp.c/pr49897-1.c: New test.
1371         * testsuite/libgomp.c/pr49897-2.c: New test.
1372         * testsuite/libgomp.c/pr49898-1.c: New test.
1373         * testsuite/libgomp.c/pr49898-2.c: New test.
1375 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1377         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
1378         for ia32 instead of ilp32.
1380         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
1381         * testsuite/libgomp.c/atomic-6.c: Likewise.
1383 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
1385         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
1386         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
1388 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1390         PR libgomp/45351
1391         * config/osf/sem.h: New file.
1392         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
1394 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1396         PR target/49541
1397         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
1398         ldflags.
1400 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
1402         * config/linux/wait.h (do_spin): New inline, largely copied
1403         from do_wait, just don't do futex_wait here, instead return true if
1404         it should be done.
1405         (do_wait): Implement using do_spin.
1406         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
1407         to prototype.
1408         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1409         __sync_bool_compare_and_swap, pass the oldval to
1410         gomp_mutex_lock_slow.
1411         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
1412         If all mutex contenders are just spinning and not sleeping, don't
1413         change state to 2 unnecessarily.  Optimize the loop when state has
1414         already become 2 to use just one atomic operation per loop instead
1415         of two.
1416         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
1417         to prototype.
1418         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1419         __sync_bool_compare_and_swap, pass the oldval to
1420         gomp_mutex_lock_slow.
1422 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
1424         PR libgomp/49490
1425         * iter.c (gomp_iter_static_next): For chunk size 0
1426         only use n ceil/ nthreads size for the first
1427         n % nthreads threads in the team instead of
1428         all threads except for the last few ones which
1429         get less work or none at all.
1430         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
1431         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
1432         chunk argument, set run_sched_modifier to 0 for static
1433         resp. 1 for other kinds.  If chunk argument is 0
1434         and not static, set value to 1.
1436 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
1438         PR c++/49043
1439         * testsuite/libgomp.c++/pr49043.C: New test.
1441         PR c++/48869
1442         * testsuite/libgomp.c++/pr48869.C: New test.
1444 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
1446         PR fortran/48894
1447         * fortran.c: Include limits.h.
1448         (TO_INT): Define.
1449         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
1450         *set.
1451         (omp_set_num_threads_8_, omp_set_schedule_8_,
1452         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
1453         omp_get_team_size_8_): Use TO_INT macro.
1454         * testsuite/libgomp.fortran/pr48894.f90: New test.
1456 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
1458         PR middle-end/48591
1459         * testsuite/libgomp.c/pr48591.c: New test.
1461 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1463         PR bootstrap/48135
1464         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
1465         * configure: Regenerate.
1467 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
1469         PR fortran/47886
1470         * testsuite/libgomp.fortran/task3.f90: New test.
1472 2011-02-24  Tobias Burnus  <burnus@net-b.de>
1474         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
1476 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
1478         PR libgomp/47854
1479         * libgomp.texi (omp_get_wtime): Don't say time in the past
1480         must be Unix Epoch.
1482 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
1484         PR libgomp/47804
1485         * testsuite/libgomp.fortran/fortran.exp: Check for both
1486         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
1487         but $blddir != "", still append ${blddir}/${lang_library_path}
1488         to ld_library_path.
1490 2011-02-16  Tobias Burnus  <burnus@net-b.de>
1492         PR libgomp/47758
1493         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
1494         of libquadmath.a before adding its libpath to ldflags.
1496 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
1498         PR libgomp/47731
1499         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
1500         to FUTEX_WAIT futex syscall.
1501         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
1503 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1505         * configure: Regenerate.
1507 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
1509         PR libstdc++/36104
1510         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
1512 2011-01-16  Gerald Pfeifer
1514         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
1516 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
1518         PR fortran/46874
1519         * libgomp.fortran/allocatable6.f90: New test.
1521 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1523         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
1524         * configure: Regenerate.
1526 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
1528         PR target/40125
1529         PR lto/46695
1530         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
1531         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
1532         * aclocal.m4: Regenerate.
1533         * configure: Regenerate.
1534         * Makefile.in: Regenerate.
1535         * testsuite/Makefile.in: Regenerate.
1537 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
1539         PR fortran/46753
1540         * libgomp.fortran/pr46753.f90: New test.
1542         PR libgomp/43706
1543         * env.c (initialize_env): Default to spin count 300000
1544         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
1545         is specified.
1547         PR libgomp/45240
1548         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
1549         at the end if sync builtins aren't supported.
1551 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1553         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
1555 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1557         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
1559 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
1561         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
1563 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1564             Tobias Burnus  <burnus@net-b.de>
1566         PR fortran/32049
1567         * configure.ac:
1568         * configure: Regenerate.
1570 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1572         * config/linux/futex.h: New.
1573         * config/linux/arm/mutex.h: New.
1574         * configure.tgt (arm*-*-linux*): Add config path.
1576 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1578         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1580 2010-09-23  Tobias Burnus  <burnus@net-b.de>
1582         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
1583         Change Fortran datatype to LOGICAL.
1584         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
1585         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
1587 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1589         * configure: Regenerate.
1591 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
1593         * libgomp.texi: Add function keyword to a couple of Fortran
1594         interfaces, use integer instead of int for Fortran.
1596 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
1598         * libgomp.texi: Fix spelling and pasto problems throughout.
1599         Adjust prototypes to match code.
1601 2010-07-24  Tobias Burnus  <burnus@net-b.de>
1603         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
1604         silence -fwhole-file warning.
1606 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1608         * configure.tgt (*-*-solaris2.[56]*): Removed.
1610 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1612         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
1613         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
1614         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
1615         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
1616         targetting solaris2*.
1617         * configure: Regenerate.
1618         * config.h.in: Regenerate.
1620         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
1621         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
1622         Add libgomp_version_dep.
1623         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
1624         versioning.
1625         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
1626         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
1627         * Makefile.in: Regenerate.
1629         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
1630         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1631         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
1632         to common block, protected by
1633         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1635 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
1637         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
1639 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
1641         PR bootstrap/43170
1642         * configure: Regenerate.
1644 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1646         PR other/43620
1647         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1648         * configure: Regenerate.
1649         * Makefile.in: Regenerate.
1650         * testsuite/Makefile.in: Regenerate.
1652 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
1654         PR c/43893
1655         * testsuite/libgomp.c/pr43893.c: New test.
1656         * testsuite/libgomp.c++/pr43893.C: New test.
1658 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
1660         PR middle-end/43570
1661         * testsuite/libgomp.fortran/vla8.f90: New test.
1663 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
1665         PR libgomp/43706
1666         * config/linux/affinity.c (gomp_init_affinity): Decrease
1667         gomp_available_cpus if affinity mask confines the process to fewer
1668         CPUs.
1669         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
1670         non-NULL, just return gomp_available_cpus.
1672         PR libgomp/43569
1673         * sections.c (gomp_sections_init): Initialize ws->mode.
1675 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
1677         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
1678         not unused bar variable.
1679         * configure: Regenerate.
1681 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1683         * Makefile.in: Regenerate.
1684         * aclocal.m4: Regenerate.
1685         * testsuite/Makefile.in: Regenerate.
1687 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
1689         PR libgomp/42942
1690         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
1691         (initialize_env): Adjust callers.
1692         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
1693         when the argument is 0.
1695         * testsuite/libgomp.c/pr42942.c: New test.
1697 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
1699         PR middle-end/42644
1700         PR middle-end/42130
1701         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1702         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
1704 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1706         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
1707         * testsuite/libgomp.c++/task-6.C: Likewise.
1709 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
1711         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
1713 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
1715         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
1716         * configure: Regenerate.
1718 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
1720         PR fortran/42866
1721         * testsuite/libgomp.fortran/allocatable5.f90: New test.
1723 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
1725         * configure.ac: Test for executability of GFORTRAN.
1726         * configure: Regenerate.
1728 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1730         * configure: Regenerate.
1732 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
1734         PR libgomp/42602
1735         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
1737 2010-01-03  Richard Guenther  <rguenther@suse.de>
1739         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
1741 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
1743         * testsuite/libgomp.graphite/pr4118.c: New.
1745 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1747         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
1748         for darwin, protect the test with require-effective-target tls_runtime.
1749         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1751 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1753         PR target/41605
1754         * testsuite/lib/libgomp.exp: Provide -B options to allow for
1755         link spec %s substitutions for static libraries.
1757 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
1759         PR testsuite/42135
1760         * libgomp.graphite/force-parallel-2.c: Reduce array size.
1762 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1764         * Makefile.in: Regenerate.
1765         * configure: Regenerate.
1766         * testsuite/Makefile.in: Regenerate.
1768 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
1770         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
1771         settings for LC_ALL and LANG.
1773 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
1775         PR fortran/42162
1776         * testsuite/libgomp.fortran/pr42162.f90: New test.
1778 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
1780         PR middle-end/42029
1781         * testsuite/libgomp.c/pr42029.c: New test.
1783 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
1785         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
1786         *s.  Accept ld version without text in ()s.
1787         * configure: Regenerated.
1789 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
1791         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
1793 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1795         PR libgomp/41418
1796         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
1797         or a hyphen (happens with fortran language disabled).
1798         * configure: Regenerate.
1800 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1802         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
1803         use sed script portable to Solaris /bin/sed for extracting ld
1804         version.
1805         * configure: Regenerate.
1807 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
1809         * testsuite/libgomp.graphite/bounds.c: New test.
1811 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1813         * Makefile.am (libgomp_la_LINK): New.
1814         * Makefile.in: Regenerate.
1816 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1818         * configure.ac (AC_PREREQ): Bump to 2.64.
1820 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1822         * Makefile.am (install-html, install-pdf): Remove.
1823         * Makefile.in: Regenerate.
1825         * Makefile.in: Regenerate.
1826         * aclocal.m4: Regenerate.
1827         * config.h.in: Regenerate.
1828         * configure: Regenerate.
1829         * testsuite/Makefile.in: Regenerate.
1831 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1833         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
1834         * Makefile.in: Regenerate.
1836 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
1838         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
1839         * Makefile.in: Regenerate.
1841 2009-08-19  Tobias Burnus  <burnus@net-b.de>
1843         PR fortran/41102
1844         omp_lib.h.in: Fix -std=f95 errors.
1847 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
1849         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
1850         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
1851         * testsuite/libgomp.graphite/graphite.exp: New.
1853 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
1855         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
1856         only build.
1858 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
1860         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
1861         needed memory barrier semantics.
1862         * config/linux/mips/mutex.h: New file.
1864 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1866         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1868 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
1870         * configure: Regenerate.
1872 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
1874         PR testsuite/40699
1875         PR testsuite/40707
1876         PR testsuite/40709
1877         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
1878         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
1879         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
1881 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
1883         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
1884         options when choosing a multilib.
1886 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
1888         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
1889         ld_library_path.  Use add_path.  Add just find_libgcc_s to
1890         ld_library_path, not every libgcc multilib directory.
1891         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
1892         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
1893         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
1894         Use add_path.
1895         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
1897 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
1899         * Makefile.am (LTLDFLAGS): Define.
1900         (LINK): Define.
1901         * Makefile.in: Regenerate.
1903 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
1905         PR fortran/39718
1906         * testsuite/libgomp.fortran/fortran.exp: Don't link with
1907         libgfortranbegin, check existence of libgfortran.a instead of
1908         libgfortranbegin.a.
1910 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
1912         PR libgomp/40174
1913         * team.c (gomp_thread_start): Destroy thr->release semaphore.
1914         (gomp_free_pool_helper): Likewise.
1916 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
1917             Jakub Jelinek  <jakub@redhat.com>
1919         PR fortran/35423
1920         * testsuite/libgomp.fortran/workshare2.f90: New test.
1922 2009-04-09  Nick Clifton  <nickc@redhat.com>
1924         * iter.c: Change copyright header to refer to version 3 of the
1925         GNU General Public License with version 3.1 of the GCC Runtime
1926         Library Exception and to point readers at the COPYING3 and
1927         COPYING3.RUNTIME files and the FSF's license web page.
1928         * alloc.c: Likewise.
1929         * barrier.c: Likewise.
1930         * config/bsd/proc.c: Likewise.
1931         * config/linux/affinity.c: Likewise.
1932         * config/linux/alpha/futex.h: Likewise.
1933         * config/linux/bar.c: Likewise.
1934         * config/linux/bar.h: Likewise.
1935         * config/linux/ia64/futex.h: Likewise.
1936         * config/linux/ia64/mutex.h: Likewise.
1937         * config/linux/lock.c: Likewise.
1938         * config/linux/mips/futex.h: Likewise.
1939         * config/linux/mutex.c: Likewise.
1940         * config/linux/mutex.h: Likewise.
1941         * config/linux/powerpc/futex.h: Likewise.
1942         * config/linux/proc.c: Likewise.
1943         * config/linux/ptrlock.c: Likewise.
1944         * config/linux/ptrlock.h: Likewise.
1945         * config/linux/s390/futex.h: Likewise.
1946         * config/linux/sem.c: Likewise.
1947         * config/linux/sem.h: Likewise.
1948         * config/linux/sparc/futex.h: Likewise.
1949         * config/linux/wait.h: Likewise.
1950         * config/linux/x86/futex.h: Likewise.
1951         * config/mingw32/proc.c: Likewise.
1952         * config/mingw32/time.c: Likewise.
1953         * config/posix/affinity.c: Likewise.
1954         * config/posix/bar.c: Likewise.
1955         * config/posix/bar.h: Likewise.
1956         * config/posix/lock.c: Likewise.
1957         * config/posix/mutex.h: Likewise.
1958         * config/posix/proc.c: Likewise.
1959         * config/posix/ptrlock.h: Likewise.
1960         * config/posix/sem.c: Likewise.
1961         * config/posix/sem.h: Likewise.
1962         * config/posix/time.c: Likewise.
1963         * config/posix95/lock.c: Likewise.
1964         * critical.c: Likewise.
1965         * env.c: Likewise.
1966         * error.c: Likewise.
1967         * fortran.c: Likewise.
1968         * iter_ull.c: Likewise.
1969         * libgomp.h: Likewise.
1970         * libgomp_f.h.in: Likewise.
1971         * libgomp_g.h: Likewise.
1972         * loop.c: Likewise.
1973         * loop_ull.c: Likewise.
1974         * omp.h.in: Likewise.
1975         * omp_lib.f90.in: Likewise.
1976         * omp_lib.h.in: Likewise.
1977         * ordered.c: Likewise.
1978         * parallel.c: Likewise.
1979         * sections.c: Likewise.
1980         * single.c: Likewise.
1981         * task.c: Likewise.
1982         * team.c: Likewise.
1983         * work.c: Likewise.
1985 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
1987         * testsuite/config/default.exp: Change copyright header to refer to
1988         version 3 of the GNU General Public License and to point readers
1989         at the COPYING3 file and the FSF's license web page.
1991 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
1993         PR middle-end/39573
1994         * libgomp.c++/pr39573.C: New test.
1996 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
1998         PR other/39591
1999         * testsuite/libgomp.c/pr39591-1.c: New test.
2000         * testsuite/libgomp.c/pr39591-2.c: New test.
2001         * testsuite/libgomp.c/pr39591-3.c: New test.
2003 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
2005         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
2006         * testsuite/libgomp.c/atomic-6.c: Ditto.
2008 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
2010         PR c/39495
2011         * testsuite/libgomp.c/loop-12.c: New test.
2012         * testsuite/libgomp.c/loop-11.c: New test.
2013         * testsuite/libgomp.c++/loop-11.C: New test.
2014         * testsuite/libgomp.c++/loop-12.C: New test.
2015         * testsuite/libgomp.c++/for-8.C: New test.
2017 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2019         * configure: Regenerate.
2021 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
2023         PR middle-end/39154
2024         * testsuite/libgomp.c/pr39154.c: New test.
2026 2009-01-30  Ian Lance Taylor  <iant@google.com>
2028         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
2029         libgomp_ld_is_gold.  Get gold version number.
2030         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
2031         * configure: Rebuild.
2033 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
2035         * testsuite/lib/libgomp.exp: Add -B option for targets that
2036         use libgfortran.a%s in their specs.
2038 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
2040         PR libgomp/38086
2041         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
2042         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
2043         HAVE_AS_SYMVER_DIRECTIVE is not defined.
2044         * configure: Regenerated.
2045         * config.h.in: Likewise.
2047 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
2049         PR c++/38650
2050         * testsuite/libgomp.c/pr38650.c: New test.
2051         * testsuite/libgomp.c++/pr38650.C: New test.
2053 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
2055         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
2057 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
2059         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
2061 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2063         * configure: Regenerate.
2065 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
2067         PR middle-end/36802
2068         * testsuite/libgomp.c/pr36802-1.c: New test.
2069         * testsuite/libgomp.c/pr36802-2.c: New test.
2070         * testsuite/libgomp.c/pr36802-3.c: New test.
2072 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
2074         PR libgomp/38270
2075         * config/linux/powerpc/mutex.h: New.
2077 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
2079         PR c++/38257
2080         * testsuite/libgomp.c++/for-7.C: New test.
2082         PR c++/38348
2083         * testsuite/libgomp.c++/for-6.C: New test.
2085 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
2087         PR testsuite/28870
2088         * testsuite/lib/libgomp.exp: Include new timeout library files.
2089         (libgomp_target_compile): Set timeout value from new proc.
2091 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
2093         PR libgomp/37938
2094         * config/linux/ia64/mutex.h: New.
2096 2008-11-04  Tobias Burnus  <burnus@net-b.de>
2098         PR libgomp/37935
2099         * libgomp.texi (Runtime library routines, environment variables):
2100         Update for OpenMP version 3.0.
2102 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
2103             Steve Ellcey  <sje@cup.hp.com>
2105         * configure: Regenerate for new libtool.
2106         * Makefile.in: Ditto.
2107         * testsuite/Makefile.in: Ditto.
2109 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
2110             Andreas Tobler  <a.tobler@schweiz.org>
2112         * config/bsd/proc.c: New file.
2113         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
2114         * configure.ac: Check for header <sys/sysctl.h>
2115         * configure: Regenerate.
2116         * config.h.in: Likewise.
2118 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
2120         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
2122 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2124         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
2125         * Makefile.in: Regenerated.
2126         * testsuite/Makefile.in: Regenerated.
2128 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
2130         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
2131         depend on blddir if blddir exists.
2132         (libgomp_target_compile): Likewise.
2133         * testsuite/libgomp.c++/c++.exp: Likewise.
2134         * testsuite/libgomp.fortran/fortran.exp: Likewise.
2136 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2138         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
2139         Do not list GPL as Invariant Section.
2141 2008-07-28  Ilie Garbacea  <ilie@mips.com>
2142             Chao-ying Fu  <fu@mips.com>
2144         * configure.tgt: Enable futex for MIPS.
2145         * config/linux/mips/futex.h: New file.
2147 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
2149         * team.c (gomp_team_end): Free team immediately if it has
2150         just one thread.
2152 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
2154         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
2155         * testsuite/libgomp.fortran/fortran.exp: Same.
2156         * testsuite/libgomp.c/c.exp: Same.
2157         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
2158         directory to library path first.
2160 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
2162         * env.c (parse_stacksize): Add cast to avoid warning.
2163         (parse_spincount): Likewise.
2165 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
2167         * testsuite/libgomp.c/loop-10.c: New test.
2168         * libgomp.c/loop-3.c (main): Add lastprivate clause.
2169         * libgomp.c++/loop-6.C (main): Likewise.
2171         PR debug/36617
2172         * testsuite/libgomp.c/debug-1.c: New test.
2174 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
2176         * testsuite/libgomp.c/nqueens-1.c: New test.
2178         PR c++/36523
2179         * testsuite/libgomp.c++/task-7.C: New function.
2181 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2183         * configure: Regenerate.
2185 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2187         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
2188         mutex when HAVE_SYNC_BUILTINS isn't defined.
2190 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2192         * libgomp.texi (omp_test_lock): Fix typo.
2194 2008-06-12  Tobias Burnus  <burnus@net-b.de>
2196         * omp_lib.f90.in: Add "implicit none".
2198 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
2200         PR middle-end/36506
2201         * testsuite/libgomp.c/reduction-5.c: New test.
2203 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
2205         * libgomp.h (struct gomp_task): Add in_tied_task field.
2206         * task.c (gomp_init_task): Initialize it.
2207         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
2208         unconditionally.  Don't call gomp_team_barrier_wake if
2209         current task is implicit or if(0) from implicit and number of
2210         running tasks is equal to nthreads - 1.
2212         PR libgomp/36471
2213         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
2214         omp_get_team_size_8): Fix pastos.
2216         PR libgomp/36469
2217         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
2218         * configure: Regenerated.
2219         * config.h.in: Regenerated.
2220         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
2221         defined.
2223 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
2225         PR bootstrap/36452
2226         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
2227         (GOMP_loop_ull_dynamic_start): Likewise.
2228         (GOMP_loop_ull_guided_start): Likewise.
2229         (GOMP_loop_ull_ordered_static_start): Likewise.
2230         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
2231         (GOMP_loop_ull_ordered_guided_start): Likewise.
2233 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
2234             Richard Henderson  <rth@redhat.com>
2235             Ulrich Drepper  <drepper@redhat.com>
2236             Jakob Blomer  <jakob.blomer@ira.uka.de>
2238         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
2239         Substitute also OMP_*LOCK_25*.
2240         * configure: Regenerated.
2241         * config.h.in: Regenerated.
2242         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
2243         ptrlock.c and task.c.
2244         * Makefile.in: Regenerated.
2245         * testsuite/Makefile.in: Regenerated.
2246         * task.c: New file.
2247         * loop_ull.c: New file.
2248         * iter_ull.c: New file.
2249         * libgomp.h: Include ptrlock.h.
2250         (enum gomp_task_kind): New type.
2251         (struct gomp_team): Add task_lock, task_queue, task_count,
2252         task_running_count, single_count fields.  Add
2253         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
2254         Remove work_share_lock, generation_mask,
2255         oldest_live_gen, num_live_gen and init_work_shares fields, add
2256         work work_share_list_alloc, work_share_list_free and work_share_chunk
2257         fields.  Change work_shares from pointer to pointers into an array.
2258         Change ordered_release field into gomp_sem_t ** from flexible array
2259         member.  Add implicit_task and initial_work_shares fields.
2260         Move close to the end of the struct.
2261         (struct gomp_team_state): Add single_count, last_work_share,
2262         active_level and level fields, remove work_share_generation.
2263         (gomp_barrier_handle_tasks): New prototype.
2264         (gomp_finish_task): New inline function.
2265         (struct gomp_work_share): Move chunk_size, end, incr into
2266         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
2267         next_ll fields.  Reshuffle fields.  Add next_alloc,
2268         next_ws, next_free and inline_ordered_team_ids fields, change
2269         ordered_team_ids into pointer from flexible array member.
2270         Add mode field.  Put lock and next into a different cache line
2271         from most of the write-once fields.
2272         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
2273         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
2274         gomp_iter_ull_guided_next): New prototypes.
2275         (gomp_new_icv): New prototype.
2276         (struct gomp_thread): Add thread_pool and task fields.
2277         (struct gomp_thread_pool): New type.
2278         (gomp_new_team): New prototype.
2279         (gomp_team_start): Change type of last argument.
2280         (gomp_new_work_share): Removed.
2281         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
2282         (gomp_work_share_init_done): New static inline.
2283         (gomp_throttled_spin_count_var, gomp_available_cpus,
2284         gomp_managed_threads): New extern decls.
2285         (gomp_init_task): New prototype.
2286         (gomp_spin_count_var): New extern var decl.
2287         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
2288         or no alias support, or if not PIC.
2289         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
2290         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
2291         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
2292         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
2293         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
2294         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
2295         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
2296         gomp_test_nest_lock_25): New prototypes.
2297         (omp_lock_symver, strong_alias): Define.
2298         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
2299         decls.
2300         (gomp_end_task): New.
2301         (struct gomp_task_icv, gomp_global_icv): New.
2302         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
2303         (struct gomp_task): New.
2304         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2305         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2306         (gomp_icv): New.
2307         (gomp_schedule_type): Reorder enum to match
2308         omp_sched_t.
2309         * team.c (struct gomp_thread_start_data): Add thread_pool and task
2310         fields.
2311         (gomp_thread_start): Add gomp_team_barrier_wait call.
2312         For non-nested case remove clearing of docked thread thr fields.
2313         Use pool fields instead of global gomp_* variables.  Use
2314         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
2315         Create tasks for each member thread.
2316         (free_team): Only destroy team barrier, task_lock here and free it.
2317         (gomp_free_thread): Free last_team if non-NULL.
2318         (gomp_team_end): Call gomp_team_barrier_wait instead of
2319         gomp_barrier_wait.  For nested case call one extra
2320         gomp_barrier_wait.  Move here some destruction from free_team.
2321         Call free_team on pool->last_team if any, rather than freeing
2322         current team.  Destroy work_share_list_free_lock ifndef
2323         HAVE_SYNC_BUILTINS.
2324         (gomp_new_icv): New function.
2325         (gomp_threads, gomp_threads_size, gomp_threads_used,
2326         gomp_threads_dock): Removed.
2327         (gomp_thread_destructor): New variable.
2328         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
2329         functions.
2330         (gomp_team_start): Create new pool if current thread doesn't have
2331         one.  Use pool fields instead of global gomp_* variables.
2332         Initialize thread_pool field for new threads.  Clear single_count.
2333         Change last argument from ws to team, don't create
2334         new team, set ts.work_share to &team->work_shares[0] and clear
2335         ts.last_work_share.  Don't clear ts.work_share_generation.
2336         If number of threads changed, adjust atomically gomp_managed_threads.
2337         Use gomp_init_task instead of gomp_new_task,
2338         set thr->task to the corresponding implicit_task array entry.
2339         Create tasks for each member thread.  Initialize ts.level.
2340         (initialize_team): Call pthread_key_create on
2341         gomp_thread_destructor.
2342         (team_destructor): New function.
2343         (new_team): Removed.
2344         (gomp_new_team): New function.
2345         (free_team): Free gomp_work_share blocks chained through next_alloc,
2346         instead of freeing work_shares and destroying work_share_lock.
2347         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
2348         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
2349         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
2350         of gomp_barrier_wait.
2351         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
2352         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
2353         if gomp_work_share_start returned true.  Don't unlock ws->lock.
2354         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
2355         of gomp_barrier_wait.
2356         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
2357         gomp_work_share_init_done if gomp_work_share_start returned true.
2358         Don't unlock ws->lock.
2359         * work.c: Include stddef.h.
2360         (free_work_share): Use work_share_list_free_lock instead
2361         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
2362         Call gomp_fini_work_share and then either free ws if orphaned, or
2363         put it into work_share_list_free list of the current team.
2364         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
2365         functions.
2366         (gomp_work_share_start, gomp_work_share_end,
2367         gomp_work_share_end_nowait): Rewritten.
2368         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
2369         (openmp_version): Set to 200805.
2370         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
2371         omp_sched_guided, omp_sched_auto): New parameters.
2372         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2373         omp_set_max_active_levels, omp_get_max_active_levels,
2374         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2375         omp_get_active_level): New interfaces.
2376         * omp_lib.h.in (openmp_version): Set to 200805.
2377         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
2378         omp_sched_guided, omp_sched_auto): New parameters.
2379         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2380         omp_set_max_active_levels, omp_get_max_active_levels,
2381         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2382         omp_get_active_level): New externals.
2383         * loop.c: Include limits.h.
2384         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
2385         GFS_AUTO.
2386         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
2387         Likewise.  Use gomp_icv.
2388         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
2389         ts.static_trip here.
2390         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
2391         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
2392         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
2393         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
2394         don't unlock ws->lock, otherwise lock it.
2395         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
2396         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
2397         (gomp_parallel_loop_start): Call gomp_new_team instead of
2398         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
2399         Adjust gomp_team_start caller.  Pass 0 as second argument to
2400         gomp_resolve_num_threads.
2401         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
2402         If adding ws->chunk_size nthreads + 1 times after end won't
2403         overflow, set ws->mode to 1.
2404         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
2405         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
2406         GOMP_loop_ull_ordered_static_start,
2407         GOMP_loop_ull_ordered_dynamic_start,
2408         GOMP_loop_ull_ordered_guided_start,
2409         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
2410         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
2411         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
2412         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
2413         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
2414         prototypes.
2415         * libgomp.map: Export lock routines also @@OMP_2.0.
2416         (GOMP_loop_ordered_dynamic_first,
2417         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
2418         GOMP_loop_ordered_static_first): Remove.
2419         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
2420         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
2421         GOMP_loop_ull_ordered_dynamic_next,
2422         GOMP_loop_ull_ordered_dynamic_start,
2423         GOMP_loop_ull_ordered_guided_next,
2424         GOMP_loop_ull_ordered_guided_start,
2425         GOMP_loop_ull_ordered_runtime_next,
2426         GOMP_loop_ull_ordered_runtime_start,
2427         GOMP_loop_ull_ordered_static_next,
2428         GOMP_loop_ull_ordered_static_start,
2429         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
2430         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
2431         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
2432         (omp_set_schedule, omp_get_schedule,
2433         omp_get_thread_limit, omp_set_max_active_levels,
2434         omp_get_max_active_levels, omp_get_level,
2435         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
2436         omp_set_schedule_, omp_set_schedule_8_,
2437         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2438         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2439         omp_get_max_active_levels_, omp_get_level_,
2440         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2441         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2442         New exports @@OMP_3.0.
2443         * omp.h.in (omp_sched_t): New type.
2444         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2445         omp_set_max_active_levels, omp_get_max_active_levels,
2446         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2447         omp_get_active_level): New prototypes.
2448         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
2449         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
2450         gomp_thread_limit_var, gomp_remaining_threads_count,
2451         gomp_remaining_threads_lock): New variables.
2452         (parse_spincount): New function.
2453         (initialize_env): Call gomp_init_num_threads unconditionally.
2454         Initialize gomp_available_cpus.  Call parse_spincount,
2455         initialize gomp_{,throttled_}spin_count_var
2456         depending on presence and value of OMP_WAIT_POLICY and
2457         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
2458         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
2459         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
2460         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
2461         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
2462         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2463         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2464         (gomp_global_icv): New.
2465         (parse_schedule): Use it.  Parse "auto".
2466         (omp_set_num_threads): Use gomp_icv.
2467         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
2468         Likewise.
2469         (omp_get_max_threads): Move from parallel.c.
2470         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2471         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
2472         add ialias.
2473         (parse_stacksize, parse_wait_policy): New functions.
2474         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
2475         both wrappers for compatibility and new locks.
2476         (omp_set_schedule, omp_get_schedule,
2477         omp_get_thread_limit, omp_set_max_active_levels,
2478         omp_get_max_active_levels, omp_get_level,
2479         omp_get_ancestor_thread_num, omp_get_team_size,
2480         omp_get_active_level): New ialias_redirect.
2481         (omp_set_schedule_, omp_set_schedule_8_,
2482         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2483         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2484         omp_get_max_active_levels_, omp_get_level_,
2485         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2486         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2487         New functions.
2488         * parallel.c: Include limits.h.
2489         (gomp_resolve_num_threads): Add count argument.  Rewritten.
2490         (GOMP_parallel_start): Call gomp_new_team and pass that as last
2491         argument to gomp_team_start.  Pass 0 as second argument to
2492         gomp_resolve_num_threads.
2493         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
2494         if gomp_thread_limit_var != ULONG_MAX.
2495         (omp_in_parallel): Implement using ts.active_level.
2496         (omp_get_max_threads): Move to env.c.
2497         (omp_get_level, omp_get_ancestor_thread_num,
2498         omp_get_team_size, omp_get_active_level): New functions,
2499         add ialias.
2500         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
2501         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
2502         gomp_iter_dynamic_next instead of the _locked variant and don't take
2503         lock around it, otherwise acquire it before calling
2504         gomp_iter_dynamic_next_locked.
2505         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
2506         gomp_iter_dynamic_next instead of the _locked variant and don't take
2507         lock around it.
2508         (GOMP_parallel_sections_start): Call gomp_new_team instead of
2509         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
2510         Adjust gomp_team_start caller.  Pass count as second argument to
2511         gomp_resolve_num_threads, don't adjust num_threads after the call.
2512         Use gomp_icv.
2513         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
2514         ws->chunk_size by incr.
2515         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
2516         code.
2517         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
2518         types.
2519         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
2520         (omp_check_defines): Check even the compat defines.
2521         * config/linux/ptrlock.c: New file.
2522         * config/linux/ptrlock.h: New file.
2523         * config/linux/wait.h: New file.
2524         * config/posix/ptrlock.c: New file.
2525         * config/posix/ptrlock.h: New file.
2526         * config/linux/bar.h (gomp_team_barrier_wait,
2527         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2528         (gomp_team_barrier_set_task_pending,
2529         gomp_team_barrier_clear_task_pending,
2530         gomp_team_barrier_set_waiting_for_tasks,
2531         gomp_team_barrier_waiting_for_tasks,
2532         gomp_team_barrier_done): New inlines.
2533         (gomp_barrier_t): Rewritten.
2534         (gomp_barrier_state_t): New typedef.
2535         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
2536         gomp_barrier_wait_start): Rewritten.
2537         (gomp_barrier_wait_end): Change second argument to
2538         gomp_barrier_state_t.
2539         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2540         inlines.
2541         * config/linux/bar.c: Include wait.h instead of libgomp.h and
2542         futex.h.
2543         (gomp_barrier_wait_end): Rewritten.
2544         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2545         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
2546         * config/posix/bar.h (gomp_barrier_t): Add generation field.
2547         (gomp_barrier_state_t): New typedef.
2548         (gomp_team_barrier_wait,
2549         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2550         (gomp_barrier_wait_start): Or all but low 2 bits from generation
2551         into the return value.  Return gomp_barrier_state_t.
2552         (gomp_team_barrier_set_task_pending,
2553         gomp_team_barrier_clear_task_pending,
2554         gomp_team_barrier_set_waiting_for_tasks,
2555         gomp_team_barrier_waiting_for_tasks,
2556         gomp_team_barrier_done): New inlines.
2557         (gomp_barrier_wait_end): Change second argument to
2558         gomp_barrier_state_t.
2559         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2560         inlines.
2561         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
2562         (gomp_barrier_wait_end): Change second argument to
2563         gomp_barrier_state_t.
2564         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2565         gomp_team_barrier_wake): New functions.
2566         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
2567         futex.h.
2568         (gomp_futex_wake, gomp_futex_wait): New variables.
2569         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
2570         * config/linux/lock.c: Rewrite to make locks task owned,
2571         for backwards compatibility provide the old entrypoints
2572         if symbol versioning.  Include wait.h instead of libgomp.h and
2573         futex.h.
2574         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
2575         * config/posix95/lock.c: Rewrite to make locks task owned,
2576         for backwards compatibility provide the old entrypoints
2577         if symbol versioning.
2578         * config/posix/lock.c: Rewrite to make locks task owned,
2579         for backwards compatibility provide the old entrypoints
2580         if symbol versioning.
2581         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
2582         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
2583         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
2584         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2585         (sys_futex0): Return error code.
2586         (futex_wake, futex_wait): If ENOSYS was returned, clear
2587         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2588         (cpu_relax, atomic_write_barrier): New static inlines.
2589         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2590         (futex_wake, futex_wait): If ENOSYS was returned, clear
2591         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2592         (cpu_relax, atomic_write_barrier): New static inlines.
2593         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2594         (sys_futex0): Return error code.
2595         (futex_wake, futex_wait): If ENOSYS was returned, clear
2596         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2597         (cpu_relax, atomic_write_barrier): New static inlines.
2598         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2599         (sys_futex0): Return error code.
2600         (futex_wake, futex_wait): If ENOSYS was returned, clear
2601         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2602         (cpu_relax, atomic_write_barrier): New static inlines.
2603         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2604         (sys_futex0): Return error code.
2605         (futex_wake, futex_wait): If ENOSYS was returned, clear
2606         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2607         (cpu_relax, atomic_write_barrier): New static inlines.
2608         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2609         (sys_futex0): Return error code.
2610         (futex_wake, futex_wait): If ENOSYS was returned, clear
2611         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2612         (cpu_relax, atomic_write_barrier): New static inlines.
2613         * config/linux/sem.c: Include wait.h instead of libgomp.h and
2614         futex.h.
2615         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
2616         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
2617         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
2618         types.
2619         (omp_nest_lock_t): Change owner into void *, add lock field.
2620         * config/posix95/omp-lock.h: Include semaphore.h.
2621         (omp_lock_25_t, omp_nest_lock_25_t): New types.
2622         (omp_lock_t): Use sem_t instead of mutex if semaphores
2623         aren't broken.
2624         (omp_nest_lock_t): Likewise.  Change owner to void *.
2625         * config/posix/omp-lock.h: Include semaphore.h.
2626         (omp_lock_25_t, omp_nest_lock_25_t): New types.
2627         (omp_lock_t): Use sem_t instead of mutex if semaphores
2628         aren't broken.
2629         (omp_nest_lock_t): Likewise.  Add owner field.
2631 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
2633         * testsuite/libgomp.c/collapse-1.c: New test.
2634         * testsuite/libgomp.c/collapse-2.c: New test.
2635         * testsuite/libgomp.c/collapse-3.c: New test.
2636         * testsuite/libgomp.c/icv-1.c: New test.
2637         * testsuite/libgomp.c/icv-2.c: New test.
2638         * testsuite/libgomp.c/lib-2.c: New test.
2639         * testsuite/libgomp.c/lock-1.c: New test.
2640         * testsuite/libgomp.c/lock-2.c: New test.
2641         * testsuite/libgomp.c/lock-3.c: New test.
2642         * testsuite/libgomp.c/loop-4.c: New test.
2643         * testsuite/libgomp.c/loop-5.c: New test.
2644         * testsuite/libgomp.c/loop-6.c: New test.
2645         * testsuite/libgomp.c/loop-7.c: New test.
2646         * testsuite/libgomp.c/loop-8.c: New test.
2647         * testsuite/libgomp.c/loop-9.c: New test.
2648         * testsuite/libgomp.c/nested-3.c: New test.
2649         * testsuite/libgomp.c/nestedfn-6.c: New test.
2650         * testsuite/libgomp.c/sort-1.c: New test.
2651         * testsuite/libgomp.c/task-1.c: New test.
2652         * testsuite/libgomp.c/task-2.c: New test.
2653         * testsuite/libgomp.c/task-3.c: New test.
2654         * testsuite/libgomp.c/task-4.c: New test.
2655         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
2656         to C++ testsuite default compiler options.
2657         * testsuite/libgomp.c++/collapse-1.C: New test.
2658         * testsuite/libgomp.c++/collapse-2.C: New test.
2659         * testsuite/libgomp.c++/ctor-10.C: New test.
2660         * testsuite/libgomp.c++/for-1.C: New test.
2661         * testsuite/libgomp.c++/for-2.C: New test.
2662         * testsuite/libgomp.c++/for-3.C: New test.
2663         * testsuite/libgomp.c++/for-4.C: New test.
2664         * testsuite/libgomp.c++/for-5.C: New test.
2665         * testsuite/libgomp.c++/loop-8.C: New test.
2666         * testsuite/libgomp.c++/loop-9.C: New test.
2667         * testsuite/libgomp.c++/loop-10.C: New test.
2668         * testsuite/libgomp.c++/task-1.C: New test.
2669         * testsuite/libgomp.c++/task-2.C: New test.
2670         * testsuite/libgomp.c++/task-3.C: New test.
2671         * testsuite/libgomp.c++/task-4.C: New test.
2672         * testsuite/libgomp.c++/task-5.C: New test.
2673         * testsuite/libgomp.c++/task-6.C: New test.
2674         * testsuite/libgomp.fortran/allocatable1.f90: New test.
2675         * testsuite/libgomp.fortran/allocatable2.f90: New test.
2676         * testsuite/libgomp.fortran/allocatable3.f90: New test.
2677         * testsuite/libgomp.fortran/allocatable4.f90: New test.
2678         * testsuite/libgomp.fortran/collapse1.f90: New test.
2679         * testsuite/libgomp.fortran/collapse2.f90: New test.
2680         * testsuite/libgomp.fortran/collapse3.f90: New test.
2681         * testsuite/libgomp.fortran/collapse4.f90: New test.
2682         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
2683         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
2684         * testsuite/libgomp.fortran/lib4.f90: New test.
2685         * testsuite/libgomp.fortran/lock-1.f90: New test.
2686         * testsuite/libgomp.fortran/lock-2.f90: New test.
2687         * testsuite/libgomp.fortran/nested1.f90: New test.
2688         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
2689         * testsuite/libgomp.fortran/strassen.f90: New test.
2690         * testsuite/libgomp.fortran/tabs1.f90: New test.
2691         * testsuite/libgomp.fortran/tabs2.f: New test.
2692         * testsuite/libgomp.fortran/task1.f90: New test.
2693         * testsuite/libgomp.fortran/task2.f90: New test.
2694         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
2695         * testsuite/libgomp.fortran/vla5.f90: Likewise.
2696         * testsuite/libgomp.c/pr26943-2.c: Likewise.
2697         * testsuite/libgomp.c/pr26943-3.c: Likewise.
2698         * testsuite/libgomp.c/pr26943-4.c: Likewise.
2700 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
2702         PR c++/36308
2703         * testsuite/libgomp.c++/ctor-11.C: New test.
2704         * testsuite/libgomp.c++/ctor-12.C: New test.
2706 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
2708         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
2710 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
2712         PR middle-end/36106
2713         * testsuite/libgomp.c/atomic-5.c: New test.
2714         * testsuite/libgomp.c/atomic-6.c: New test.
2715         * testsuite/libgomp.c/autopar-1.c: New test.
2717 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2719         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
2720         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
2721         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
2722         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
2723         * configure: Regenerate.
2724         * Makefile.in, testsuite/Makefile.in: Likewise.
2726 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
2728         PR bootstrap/35457
2729         * aclocal.m4: Regenerate.
2730         * configure: Regenerate.
2732 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
2734         PR middle-end/35611
2735         * testsuite/libgomp.c/atomic-4.c: New test.
2737         PR libgomp/35625
2738         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
2739         (gomp_iter_guided_next): Likewise.
2740         * testsuite/libgomp.c/pr35625.c: New test.
2742 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2744         * aclocal.m4: Regenerate.
2745         * configure: Likewise.
2746         * Makefile.in: Likewise.
2747         * testsuite/Makefile.in: Likewise.
2749 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
2751         PR middle-end/35185
2752         * testsuite/libgomp.c++/pr35185.C: New test.
2754 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
2756         PR middle-end/35549
2757         * testsuite/libgomp.c/pr35549.c: New test.
2759 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
2761         * testsuite/libgomp.c/atomic-3.c: New test.
2763 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2765         PR fortran/33197
2766         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
2767         .F08 file suffixes.
2769 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
2771         PR libgomp/33131
2772         * configure.ac: Add ACX_HEADER_STRING.
2773         * env.c: Include strings.h.
2774         * aclocal.m4: Regenerate.
2775         * config.h.in: Regenerate.
2776         * configure: Regenerate.
2777         * Makefile.in: Regenerate.
2778         * testsuite/Makefile.in: Regenerate.
2780 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
2782         PR middle-end/35196
2783         * testsuite/libgomp.c/pr35196.c: New test.
2785         PR middle-end/35130
2786         * testsuite/libgomp.fortran/pr35130.f90: New test.
2787         * testsuite/libgomp.c/pr35130.c: New test.
2789 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
2791         PR middle-end/33880
2792         * testsuite/libgomp.c/pr33880.c: New test.
2793         * testsuite/libgomp.fortran/pr33880.f90: New test.
2795 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
2797         * configure: Regenerate.
2799 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
2801         * configure.ac: Move futex checking into ../config/futex.m4.
2802         * configure: Rebuilt.
2803         * aclocal.m4: Rebuilt.
2804         * Makefile.in: Rebuilt.
2806         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
2807         2007-10-15 ../config/tls.m4 change.
2809 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
2811         PR c++/34513
2812         * testsuite/libgomp.c/pr34513.c: New test.
2813         * testsuite/libgomp.c++/pr34513.C: New test.
2815 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
2817         PR target/32765
2818         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
2820 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
2822         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
2824 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
2826         * testsuite/libgomp.c/private-1.c: New test.
2828 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
2829             Paolo Bonzini  <bonzini@gnu.org>
2831         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
2832         instead of 'VPATH ='.
2833         * Makefile.in: Regenerate.
2835 2007-11-23  Matthias Klose  <doko@ubuntu.com>
2837         * configure.ac: Adjust makeinfo version check.
2838         * configure: Regenerate.
2840 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
2842         PR fortran/34020
2843         * testsuite/libgomp.fortran/pr34020.f90: New test.
2845 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
2847         PR c++/33894
2848         * testsuite/libgomp.c++/atomic-1.C: New test.
2850 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
2852         PR libgomp/33275
2853         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
2854         Make x and y integers rather than (implicit) reals.  Add private (j)
2855         clause to the last omp parallel.
2857 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
2859         * configure: Regenerate following changes to ../config/tls.m4.
2861 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
2863         * testsuite/libgomp.fortran/stack.f90: New test.
2865 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
2867         * config/mingw32/proc.c: New file.
2869 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
2871         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
2872         (main): Use __get_cpuid to get i386 target fetaures.
2873         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
2874         (main): Use __get_cpuid to get x86_64 target fetaures.
2876 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
2878         PR target/32765
2879         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
2880         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
2882 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
2884         PR fortran/32550
2885         * testsuite/libgomp.fortran/pr32550.f90: New test.
2886         * testsuite/libgomp.fortran/crayptr2.f90: New test.
2888 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
2890         * aclocal.m4: Regenerated.
2892 2007-07-05  Tobias Burnus  <burnus@net-b.de>
2894         PR fortran/32359
2895         * testsuite/libgomp.fortran/pr32359.f90: New.
2897 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
2899         PR libgomp/32468
2900         * sections.c (GOMP_parallel_sections_start): Only decrease
2901         number of threads to COUNT if dyn_var is true.
2902         * testsuite/libgomp.c/pr32468.c: New test.
2904 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2906         PR libgomp/26308
2907         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
2909 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
2911         PR middle-end/32362
2912         * testsuite/libgomp.c/pr32362-1.c: New test.
2913         * testsuite/libgomp.c/pr32362-2.c: New test.
2914         * testsuite/libgomp.c/pr32362-3.c: New test.
2916 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
2918         * team.c (gomp_team_start): Fix setting up thread_attr
2919         stack size.
2921 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
2923         * configure: Regenerate.
2925 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
2927         * Makefile.in: Regenerate.
2928         * configure: Regenerate.
2929         * aclocal.m4: Regenerate.
2930         * testsuite/Makefile.in: Regenerate.
2932 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
2934         * config/linux/proc.c: New file.
2936         PR libgomp/28482
2937         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
2939 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
2941         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
2943 2007-04-16  Matthias Klose  <doko@debian.org>
2945         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
2946         flags if not building with -m64.
2947         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
2948         flag for i?86-*-* targets, if current target matches -m64.
2950 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
2952         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
2953         * Makefile.in: Regenerate.
2955 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2957         PR testsuite/31369
2958         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
2959         ld_library_path.
2960         * testsuite/libgomp.fortran/fortran.exp: Likewise.
2962 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
2964         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
2965         decls.
2966         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
2967         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
2968         (parse_affinity): New function.
2969         (initialize_env): Call it and gomp_init_affinity.
2970         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
2971         create new pthread_attr_t and call gomp_init_thread_affinity
2972         on it for each thread before passing the attribute to pthread_create.
2973         * config/linux/affinity.c: New file.
2974         * config/posix/affinity.c: New file.
2975         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
2976         * configure: Rebuilt.
2977         * config.h.in: Rebuilt.
2978         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
2979         * Makefile.in: Rebuilt.
2981 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
2983         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
2984         *-*-darwin*.
2985         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
2986         and use it if found.
2988 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
2990         * testsuite/config/default.exp: New file.
2991         * testsuite/lib/libgomp.exp: New file.
2992         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
2993         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
2994         load_lib *, load_gcc_lib *): Move to libgomp.exp.
2995         (libgomp_load): Remove.
2996         * testsuite/lib/libgomp.exp (libgomp_init): Compute
2997         always_ld_library_path, not ld_library_path.  Set additional_flags
2998         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
2999         (target_compile): Do not call libgomp_init.  Append lang_library_path
3000         and lang_link_flags to options.
3001         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
3002         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
3003         here.
3004         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
3005         always_ld_library_path.  Set LD_LIBRARY_PATH here.
3006         * testsuite/libgomp.fortran/fortran.exp: Ditto.
3007         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
3008         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
3009         CX8 flag.
3010         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
3011         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
3012         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
3013         * testsuite/libgomp.c/pr29947-1.c: Ditto.
3014         * testsuite/libgomp.c/atomic-10.c: Ditto.
3016 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
3018         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
3019         dg-final cleanup-modules line.
3020         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
3021         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
3022         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
3023         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
3024         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
3025         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
3026         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
3028 2007-03-18  Andreas Schwab  <schwab@suse.de>
3030         * acinclude.m4: Adjust regular expression for ld version
3031         extraction.
3032         * configure: Regenerate.
3034 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
3036         * Makefile.am: Add install-pdf target as copied from
3037         automake v1.10 rules.
3038         * Makefile.in: Regenerate
3040 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
3042         PR libgomp/28486
3043         * configure: Regenerate.
3045         PR c++/30703
3046         * testsuite/libgomp.c++/pr30703.C: New test.
3048 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
3050         Revert:
3051         2006-07-05  Eric Christopher  <echristo@apple.com>
3052         * configure.ac: Depend addition of -pthread on host OS.
3053         * configure: Regenerate.
3055 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3057         * libgomp.texi: Fix spacing after abbreviations.
3059 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
3061         PR libgomp/30546
3062         * configure.ac: Add check for makeinfo
3063         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
3064         if an appropiate version of makeinfo is found.
3065         * aclocal.m4: Regenerated.
3066         * configure: Regenerated.
3067         * Makefile.in: Regenerated.
3068         * testsuite/Makefile.in: Regenerated.
3070 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
3072         PR libgomp/30540
3073         * libgomp.texi: More about implementation-dependent settings.
3075 2007-01-26  Tobias Burnus  <burnus@net-b.de>
3077         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
3079 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
3081         PR middle-end/30494
3082         * testsuite/libgomp.c/pr30494.c: New test.
3084 2007-01-15  Tom Tromey  <tromey@redhat.com>
3086         * configure: Rebuilt.
3087         * configure.ac: Fixed comment.
3089 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
3091         * libgomp.texi: Document implementation specific default values of
3092         environment variables.
3094 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
3096         PR libgomp/28209
3097         * libgomp.texi: New file.
3098         * configure.ac: Add --enable-generated-files-in-srcdir option.
3099         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
3100         files to srcdir.
3101         * Makefile.in: Regenerated.
3102         * config.h.in: Regenerated.
3103         * testsuite/Makefile.in: Regenerated.
3104         * NOTES: Removed.
3106 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
3108         PR libgomp/29949
3109         * env.c (omp_set_num_threads): Set illegal thread count to 1.
3111 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
3113         * configure: Regenerate.
3115 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
3117         PR libgomp/29947
3118         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
3119         start if there shouldn't be any loop iterations.
3120         (gomp_loop_ordered_static_start): Remove start == end test.
3121         * testsuite/libgomp.c/pr29947-1.c: New test.
3122         * testsuite/libgomp.c/pr29947-2.c: New test.
3124 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
3126         * configure.tgt: Force initial-exec TLS model on Linux only.
3128 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
3130         * configure: Regenerated.
3132 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
3134         * env.c (parse_schedule): Reject out of range values.
3135         (parse_unsigned_long): Reject out of range, negative or zero values.
3137 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
3139         PR fortran/29629
3140         * testsuite/libgomp.fortran/pr29629.f90: New test.
3142 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
3144         PR libgomp/29494
3145         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
3146         * config/posix95: New directory.
3147         * config/posix95/omp-lock.h: New file.
3148         * config/posix95/lock.c: Likewise.
3150 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
3152         * aclocal.m4: Regenerate.
3153         * configure: Regenerate.
3155 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
3157         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
3158         '<' to '<='.
3160 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
3162         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
3163         test.
3164         * configure: Regenerate.
3165         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
3167 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
3169         PR middle-end/25261
3170         PR middle-end/28790
3171         * testsuite/libgomp.c/nestedfn-4.c: New test.
3172         * testsuite/libgomp.c/nestedfn-5.c: New test.
3173         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
3175         PR fortran/29097
3176         * testsuite/libgomp.fortran/condinc1.f: New test.
3177         * testsuite/libgomp.fortran/condinc2.f: New test.
3178         * testsuite/libgomp.fortran/condinc3.f90: New test.
3179         * testsuite/libgomp.fortran/condinc4.f90: New test.
3180         * testsuite/libgomp.fortran/condinc1.inc: New file.
3182 2006-09-18  Tom Tromey  <tromey@redhat.com>
3184         * configure: Rebuilt.
3186 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
3188         PR c/28768
3189         PR preprocessor/14634
3190         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
3191         to AC_DEFINE.
3192         * configure: Regenerate.
3194 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
3196         * testsuite/libgomp.fortran/reduction3.f90: Change
3197         -2147483648 to -huge(i)-1 to avoid overflow.
3198         * testsuite/libgomp.fortran/reduction4.f90: Change
3199         Z'ffffffff' to not(0) to avoid overflow.
3201 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
3203         PR libgomp/25938
3204         * Makefile.am (libsubincludedir): New.
3205         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
3206         * Makefile.in: Regenerate.
3208 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
3210         PR libgomp/28725
3211         * env.c: Include ctype.h.
3212         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
3213         leading and/or trailing whitespace and compare strings case
3214         insensitively.
3216 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
3218         PR fortran/28390
3219         * testsuite/libgomp.fortran/pr28390.f: New test.
3221 2006-07-05  Eric Christopher  <echristo@apple.com>
3223         * configure.ac: Depend addition of -pthread on host OS.
3224         * configure: Regenerate.
3226 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
3228         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
3229         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
3230         defined.
3232 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
3234         PR libgomp/26175
3235         PR libgomp/26477
3236         * configure.ac: If neither --enable-linux-futex nor
3237         --disable-linux-futex is passed, determine the default by checking
3238         for compiling and/or running against NPTL.  With --enable-linux-futex,
3239         check if SYS_gettid and SYS_futex are defined.
3240         * configure: Rebuilt.
3242 2006-06-14  Richard Henderson  <rth@redhat.com>
3244         PR libgomp/28008
3245         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
3246         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
3248 2006-06-09  Richard Henderson  <rth@redhat.com>
3250         * env.c (gomp_nthreads_var): Change to unsigned long.
3251         (gomp_run_sched_chunk): Likewise.
3252         (parse_unsigned_long): Rename from parse_num_threads and generalize.
3253         (initialize_env): Initialize gomp_thread_attr.
3254         * libgomp.h (gomp_nthreads_var): Update decl.
3255         (gomp_run_sched_chunk): Likewise.
3256         (gomp_thread_attr): Declare.
3257         * team.c (gomp_thread_attr): Export.
3258         (initialize_team): Don't initialize it.
3260 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
3262         PR fortran/27916
3263         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
3264         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
3266 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3268         * config/mingw32/time.c: New file.
3269         * configure.tgt: Use it.
3271 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
3273         * Makefile.am: Add install-html target. Add install-html to .PHONY
3274         * Makefile.in: Regenerate.
3276 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3278         PR libgomp/27612
3279         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
3280         * testsuite/libgomp.c/critical-1.c: Likewise.
3281         * testsuite/libgomp.c/loop-1.c: Likewise.
3282         * testsuite/libgomp.c/loop-2.c: Likewise.
3283         * testsuite/libgomp.c/single-1.c: Likewise.
3284         * testsuite/libgomp.c/ordered-1.c: Likewise.
3285         * testsuite/libgomp.c/ordered-2.c: Likewise.
3287 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
3289         PR middle-end/27416
3290         * libgomp.fortran/pr27416-1.f90: New test.
3292 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
3294         PR fortran/27395
3295         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
3296         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
3298 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
3300         PR c++/26943
3301         * testsuite/libgomp.c/pr26943-1.c: New test.
3302         * testsuite/libgomp.c/pr26943-2.c: New test.
3303         * testsuite/libgomp.c/pr26943-3.c: New test.
3304         * testsuite/libgomp.c/pr26943-4.c: New test.
3305         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
3306         * testsuite/libgomp.c++/pr26943.C: New test.
3308 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
3310         PR middle-end/27337
3311         * testsuite/libgomp.c++/pr27337.C: New test.
3313 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
3315         PR c/26171
3316         * testsuite/libgomp.c/pr26171.c: New test.
3318 2006-04-25  Richard Henderson  <rth@redhat.com>
3320         PR libgomp/25865
3321         * configure.ac: Use GCC_CHECK_TLS.
3322         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
3323         * Makefile.in, aclocal.m4, configure: Regenerate.
3325 2006-04-10  Matthias Klose  <doko@debian.org>
3327         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
3328         directory names containing underscores.
3330 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
3332         PR c++/26691
3333         * testsuite/libgomp.c++/pr26691.C: New test.
3335 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
3337         * testsuite/libgomp.fortran/retval2.f90: New test.
3339 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
3341         * testsuite/libgomp.c++: New directory.
3343 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
3345         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
3346         * config/posix/sem.c: Implement the above.
3348 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
3350         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
3351         define HAVE_BROKEN_POSIX_SEMAPHORES.
3352         * configure: Rebuilt.
3353         * config.h.in: Rebuilt.
3355 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3357         PR bootstrap/26161
3358         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
3359         for the other pthread check.
3360         * configure: Regenerate.
3361         * config.h.in: Regenerate.
3363 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
3365         PR libgomp/25938
3366         PR libgomp/25984
3367         * Makefile.am (fincludedir): New variable.
3368         (nodist_include_HEADERS): Remove Fortran files.
3369         (nodist_finclude_HEADERS): New variable.
3370         * Makefile.in: Regenerated.
3372 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
3374         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
3375         Remove tests for returning assumed character length arrays.
3377 2006-02-12  Roger Sayle  <roger@eyesopen.com>
3378             John David Anglin  <dave@hiauly1.hia.nrc.ca>
3380         PR libgomp/25936
3381         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
3383 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
3385         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
3387 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
3389         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
3390         part of LD_LIBRARY_PATH manually.
3392 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
3394         PR libgomp/25852
3395         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
3396         libgomp_init.
3398 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
3400         PR libgomp/25884
3401         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
3402         * configure.ac (PERL): Don't set.
3403         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
3404         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
3405         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
3406         * omp.h.in: Wrap the new configure substitutions with @ characters.
3407         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
3408         * aclocal.m4, configure, Makefile.in: Regenerate.
3409         * mkomp_h.pl: Delete.
3411 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
3413         PR libgomp/25259
3414         * configure.ac: Use GCC_HEADER_STDINT.
3415         * libgomp.h: Include gstdint.h.
3416         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
3417         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
3419 2006-01-24  Richard Henderson  <rth@redhat.com>
3421         PR libgomp/25942
3422         * configure.ac: Add AM_MAINTAINER_MODE.
3423         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
3425 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
3427         * Makefile.in: Regenerate.
3428         * testsuite/Makefile.in: Regenerate.
3429         * aclocal.m4: Regenerate.
3431 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
3433         * config/posix/proc.c: Conditional include of sys/loadavg.h for
3434         Solaris.
3435         * configure.ac: Add check for loadavg.h.
3436         (link_gomp): Adjust comment.
3437         * configure: Regenerate.
3438         * config.h.in: Regenerate.
3440 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
3442         PR libgomp/25877
3443         * configure.ac: Remove check for alloca.h.
3444         * configure: Regenerate.
3445         * config.h.in: Regenerate.
3446         * libgomp.h: define gomp_alloca to be __builtin_alloca.
3447         * team.c: Remove use of alloca.h.
3448         Call gomp_alloca instead of alloca.
3450 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
3452         PR libgomp/25877
3453         * team.c: Add include of alloca.h.
3454         * configure.ac: Add check for alloca.h.
3455         * configure: Regenerate.
3456         * config.h.in: Regenerate.
3458 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
3460         PR fortran/25219
3461         * testsuite/libgomp.fortran/pr25219.f90: New test.
3463 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
3465         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
3466         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
3467         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3468         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3469         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
3470         testsuite/libgomp.fortran/threadprivate1.f90,
3471         testsuite/libgomp.fortran/threadprivate2.f90,
3472         testsuite/libgomp.fortran/threadprivate3.f90,
3473         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3474         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3475         testsuite/libgomp.fortran/omp_parse3.f90: Change required
3476         effective-target to TLS runtime.
3478         * testsuite/libgomp.fortran/pr25162.f: Require
3479         effective-target TLS runtime.
3481 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
3483         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
3484         * testsuite/libgomp.c/nestedfn-3.c: New test.
3486 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
3488         PR fortran/25162
3489         * testsuite/libgomp.fortran/pr25162.f: New test.
3491 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
3493         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
3494         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
3496 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
3498         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
3499         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
3500         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
3501         single.c, team.c, work.c, config/linux/alpha/futex.h,
3502         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
3503         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
3504         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
3505         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
3506         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
3507         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
3508         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
3509         FSF address.
3511 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
3513         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
3514         to nodist_noinst_HEADERS.
3515         * Makefile.in: Rebuilt.
3517         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
3518         add integer count field.
3519         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
3520         omp_nest_lock_t type change.
3521         (omp_init_nest_lock): Likewise.  Initialize count to 0.
3522         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
3523         Increment count.
3524         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
3525         Decrement count.
3526         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
3527         Increment count if successful and return the new nesting level.
3528         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
3529         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
3530         * testsuite/libgomp.c/lib-1.c: New test.
3531         * testsuite/libgomp.fortran/lib1.f90: New test.
3532         * testsuite/libgomp.fortran/lib2.f: New test.
3533         * testsuite/libgomp.fortran/lib3.f: New test.
3535 2005-11-17  Richard Henderson  <rth@redhat.com>
3537         PR 24845
3538         * Makefile.am (nodist_toolexeclib_HEADERS): New.
3539         * configure.ac (link_gomp): New.  Substitute it.
3540         (AC_CONFIG_FILES): Add libgomp.spec.
3541         * libgomp.spec.in: New file.
3542         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
3543         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
3545 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
3547         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
3548         reduction(-:var) behaving the same as reduction(+:var).
3549         * testsuite/libgomp.c/reduction-4.c: New test.
3551 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
3553         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
3554         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
3555         testsuite/libgomp.c/copyin-3.c,
3556         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3557         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3558         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
3559         testsuite/libgomp.c++/pr24455.C,
3560         testsuite/libgomp.fortran/threadprivate1.f90,
3561         testsuite/libgomp.fortran/threadprivate2.f90,
3562         testsuite/libgomp.fortran/threadprivate3.f90,
3563         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3564         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3565         testsuite/libgomp.fortran/omp_parse3.f90: Require
3566         effective-target TLS.
3568 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
3570         * HEADER: Remove.
3572 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
3574         PR libgomp/24797
3575         * team.c (initialize_team): Pass NULL rather than free as
3576         pthread_key_create destructor.  Initialize thread specific data
3577         pointer in initial thread to a static local variable rather than
3578         malloced memory.
3580 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
3582         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
3583         its location to ld_library_path.
3585 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
3587         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
3589 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
3591         * testsuite/libgomp.c: Rename from libgomp.dg.
3593 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
3595         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
3596         threadprivate variable 'i'.
3598 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
3600         * config/linux/s390/futex.h: New file.
3601         * configure.tgt: Use it.
3603         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
3604         before the parallel.
3606 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
3608         PR c++/24734
3609         * testsuite/libgomp.c++/master-1.C: New test.
3611 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
3613         * testsuite/libgomp.dg/copyin-3.c: New test.
3615 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
3617         * testsuite/libgomp.fortran/retval1.f90: New test.
3618         * testsuite/libgomp.fortran/vla7.f90: New test.
3620 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
3622         * testsuite/libgomp.fortran/vla2.f90: New test.
3623         * testsuite/libgomp.fortran/vla3.f90: New test.
3624         * testsuite/libgomp.fortran/vla4.f90: New test.
3625         * testsuite/libgomp.fortran/vla5.f90: New test.
3626         * testsuite/libgomp.fortran/vla6.f90: New test.
3628 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
3630         * config/linux/sparc/futex.h: New file.
3631         * configure.tgt: Use it.
3632         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
3634         * critical.c: Include stdlib.h.
3635         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
3636         ignoring return value.
3637         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
3638         LIBGOMP_CHECK_SYNC_BUILTINS check.
3639         * configure: Rebuilt.
3641 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
3643         * testsuite/libgomp.fortran/vla1.f90: New test.
3645 2005-10-31  Richard Henderson  <rth@redhat.com>
3647         * testsuite/libgomp.fortran/character2.f90: Fix race condition
3648         setting 's' in different threads.
3650 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
3652         * libgomp.h (attribute_hidden, ialias): Define.
3653         * config/posix/proc.c (omp_get_num_procs): Add ialias.
3654         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
3655         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
3656         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3657         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3658         omp_test_lock, omp_test_nest_lock): Likewise.
3659         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
3660         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3661         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3662         omp_test_lock, omp_test_nest_lock): Likewise.
3663         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
3664         omp_get_dynamic, omp_get_nested): Likewise.
3665         * parallel.c (omp_get_num_threads, omp_get_max_threads,
3666         omp_get_thread_num, omp_in_parallel): Likewise.
3667         * fortran.c (ialias_redirect): Define.
3668         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
3669         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
3670         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
3671         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
3672         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
3673         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
3674         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
3675         omp_get_wtime): Add ialias_redirect.
3677 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
3679         * fortran.c: Include stdlib.h.
3681 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
3683         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
3684         * Makefile.in: Regenerated.
3686 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
3688         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
3689         * libgomp_f.h.in (omp_check_defines): New function.
3690         * env.c: Include libgomp_f.h.
3691         (initialize_env): Call omp_check_defines.
3693         * testsuite/libgomp.dg/copyin-2.c: New test.
3694         * testsuite/libgomp.c++/copyin-2.C: New test.
3695         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
3697         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
3698         * testsuite/libgomp.fortran/sharing2.f90: New test.
3700         * testsuite/libgomp.dg/copyin-1.c: New test.
3701         * testsuite/libgomp.c++/copyin-1.C: New test.
3703 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
3705         * testsuite/libgomp.fortran/crayptr1.f90: New test.
3707         * testsuite/libgomp.fortran/workshare1.f90: New test.
3709         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
3710         only test.
3711         * libgomp.fortran/sharing1.f90: New test.
3713 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
3715         PR c++/24502
3716         * testsuite/libgomp.c++/loop-7.C: New test.
3718         * testsuite/libgomp.dg/nestedfn-2.c: New test.
3720         * testsuite/libgomp.dg/nestedfn-1.c: New test.
3721         * testsuite/libgomp.fortran/reduction6.f90: New test.
3722         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
3724 2005-10-23  Richard Henderson  <rth@redhat.com>
3726         * testsuite/libgomp.c++/ctor-1.C: New.
3727         * testsuite/libgomp.c++/ctor-2.C: New.
3728         * testsuite/libgomp.c++/ctor-3.C: New.
3729         * testsuite/libgomp.c++/ctor-4.C: New.
3730         * testsuite/libgomp.c++/ctor-5.C: New.
3731         * testsuite/libgomp.c++/ctor-6.C: New.
3732         * testsuite/libgomp.c++/ctor-7.C: New.
3733         * testsuite/libgomp.c++/ctor-8.C: New.
3734         * testsuite/libgomp.c++/ctor-9.C: New.
3736 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
3738         PR 24455
3739         * testsuite/libgomp.c++/pr24455-1.C: New test.
3740         * testsuite/libgomp.c++/pr24455.C: New test.
3741         * testsuite/libgomp.dg/pr24455-1.c: New test.
3742         * testsuite/libgomp.dg/pr24455.c: New test.
3744 2005-10-20  Richard Henderson  <rth@redhat.com>
3746         * testsuite/libgomp.c++/loop-6.C: New.
3747         * testsuite/libgomp.dg/loop-3.c: New.
3749 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
3751         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
3752         explicitly private.
3753         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
3754         explicitly shared.
3756 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
3758         * testsuite/libgomp.fortran/jacobi.f: New test.
3760 2005-10-19  Richard Henderson  <rth@redhat.com>
3762         * configure.tgt (i?86-linux): Default to with_arch instead of
3763         CFLAGS.  Add -mtune to match target_cpu.
3764         (x86_64-linux): Tune to i686.
3766         * fortran.c (omp_test_nest_lock_): Fix typo.
3768 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
3770         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3771         gomp_ordered_sync): Do nothing if team->nthreads == 1.
3772         * testsuite/libgomp.dg/ordered-3.c: New test.
3774         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
3775         Remove volatile keyword.
3777         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
3778         in COMMON block to avoid warnings on 64-bit targets.
3780 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
3782         * testsuite/libgomp.dg/shared-3.c: New test.
3784 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
3786         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
3787         * testsuite/libgomp.fortran/reduction5.f90: New test.
3789 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
3791         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
3792         dg-options.
3793         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
3794         flush loop now that __sync_synchronize has proper memory barrier.
3795         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
3796         Add -ffixed-form to dg-options.
3798 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
3800         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
3801         from subdirectories.
3802         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
3803         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
3804         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
3805         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
3806         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
3807         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
3808         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
3809         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
3810         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
3811         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
3812         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
3813         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
3814         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
3815         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
3816         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
3817         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
3818         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
3819         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
3820         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
3821         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
3822         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
3823         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
3824         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
3825         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
3826         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
3828 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
3830         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
3831         lang_library_path exists.  Use find instead of glob to gather tests.
3832         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
3834 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
3836         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
3837         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
3838         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
3839         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
3840         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
3841         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
3842         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
3843         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
3844         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
3845         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
3846         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
3847         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
3848         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
3850 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
3852         * testsuite/libgomp.dg/vla-1.c: New test.
3854         * testsuite/libgomp.fortran/reference2.f90: New test.
3856         * testsuite/libgomp.fortran/character2.f90: Remove explicit
3857         declaration of omp_get_thread_num.
3858         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
3859         use omp_lib.
3861         * testsuite/libgomp.fortran/reduction1.f90: New test.
3862         * testsuite/libgomp.fortran/reduction2.f90: New test.
3863         * testsuite/libgomp.fortran/reduction3.f90: New test.
3864         * testsuite/libgomp.fortran/reduction4.f90: New test.
3866 2005-10-13  Richard Henderson  <rth@redhat.com>
3868         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
3869         * Makefile.in: Regenerate.
3870         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
3871         * libgomp.h: Include bar.h.
3872         (struct gomp_barrier): Remove.
3873         (struct gomp_team): Add barrier.  Replace master_barrier with
3874         master_release.  Replace threads with ordered_release.
3875         (struct gomp_thread): Replace barrier with release.
3876         * ordered.c (gomp_ordered_first): Update for ordered_release change.
3877         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
3878         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
3879         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
3880         (GOMP_single_copy_end): Likewise.
3881         * team.c (gomp_threads_dock): New.
3882         (gomp_barrier_init, gomp_barrier_destroy): Remove.
3883         (gomp_thread_start): Use gomp_barrier_wait.
3884         (new_team, free_team): Update for gomp_team changes.
3885         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
3886         (gomp_team_end): Use gomp_barrier_wait.
3887         (initialize_team): Update for gomp_thread changes.
3888         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
3889         (gomp_work_share_end_nowait): Use atomic ops when available.
3890         * config/linux/bar.c, config/linux/bar.h: New files.
3891         * config/posix/bar.c, config/posix/bar.h: New files.
3893 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
3895         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
3896         * testsuite/libgomp.dg/single-2.c: New test.
3898         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
3899         lang_link_flags): Unset, so that they aren't inherited from previously
3900         sourced *.exp.
3902         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
3904 2005-10-12  Richard Henderson  <rth@redhat.com>
3906         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
3907         (libgomp_init): Use lang_test_file, lang_library_path, and
3908         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
3910         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
3911         (lang_test_file, lang_link_flags): New.
3912         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
3914         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
3915         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
3916         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
3917         testsuite/libgomp.c++/parallel-1.C,
3918         testsuite/libgomp.c++/reduction-1.C,
3919         testsuite/libgomp.c++/reduction-2.C,
3920         testsuite/libgomp.c++/reduction-3.C,
3921         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
3922         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
3923         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
3924         New files, largely cribbed from the C testsuite.
3926 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
3928         * testsuite/libgomp.fortran/character1.f90: New test.
3929         * testsuite/libgomp.fortran/character2.f90: New test.
3931         * testsuite/libgomp.dg/nested-1.c: New test.
3932         * testsuite/libgomp.dg/nested-2.c: New test.
3933         * testsuite/libgomp.fortran/do1.f90: New test.
3934         * testsuite/libgomp.fortran/do2.f90: New test.
3936         * testsuite/libgomp.fortran/reference1.f90: New test.
3938 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
3940         * testsuite/libgomp.dg/reduction-1.c: New test.
3941         * testsuite/libgomp.dg/reduction-2.c: New test.
3942         * testsuite/libgomp.dg/reduction-3.c: New test.
3944 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
3946         * testsuite/libgomp.dg/atomic-1.c: New test.
3947         * testsuite/libgomp.dg/atomic-2.c: New test.
3949 2005-10-09  Richard Henderson  <rth@redhat.com>
3951         * critical.c (atomic_lock): New.
3952         (initialize_critical): Initialize it.
3953         (GOMP_atomic_start, GOMP_atomic_end): New.
3954         * libgomp.map: Export them.
3955         * libgomp_g.h: Declare them.
3957         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
3959 2005-10-02  Richard Henderson  <rth@redhat.com>
3961         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
3962         to XCFLAGS instead of CFLAGS.
3964 2005-09-30  Richard Henderson  <rth@redhat.com>
3966         * configure.ac: Determine whether -pthread or -lpthread is needed.
3967         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
3968         * Makefine.in, configure: Rebuild.
3970 2005-09-28  Richard Henderson  <rth@redhat.com>
3972         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
3973         * testsuite/libgomp.dg/omp-single-3.c: New test.
3975 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
3977         * testsuite/libgomp.dg/omp-single-2.c: New test.
3978         * testsuite/libgomp.dg/shared-2.c: Fix return code.
3980 2005-09-27  Richard Henderson  <rth@redhat.com>
3982         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
3983         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
3985 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
3987         * testsuite/libgomp.dg/omp-loop03.c: New test.
3989 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
3991         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
3993 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
3995         * testsuite/libgomp.dg/omp-single-1.c: New test.
3996         * testsuite/libgomp.dg/shared-1.c: Return 0.
3997         Add prototype for abort.
3998         * testsuite/libgomp.dg/shared-2.c: Likewise.
4000 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
4002         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
4003         constructs.
4005 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
4007         * testsuite/libgomp.dg/shared-1.c: New test.
4008         * testsuite/libgomp.dg/shared-2.c: New test.
4010 2005-09-24  Richard Henderson  <rth@redhat.com>
4012         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
4014 2005-09-24  Richard Henderson  <rth@redhat.com>
4016         * iter.c (gomp_iter_static_next): Round up when computing number
4017         of iterations.  Don't bother distributing a remainder equally.
4019         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
4020         Don't call srand.  Zero b before testing.
4021         (main): New.
4023 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
4025         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
4026         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
4028 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
4030         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
4031         without !$omp end do, followed immediately by subroutine end.
4033 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
4035         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
4037 2005-09-22  Richard Henderson  <rth@redhat.com>
4039         * critical.c (GOMP_critical_name_start): Change argument to void**.
4040         Reuse the pointer space if the mutex fits.
4041         (GOMP_critical_name_end): Likewise.
4042         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
4043         * libgomp_g.h (GOMP_critical_name_start): Update decl.
4044         (GOMP_critical_name_end): Likewise.
4045         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
4046         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
4048 2005-09-20  Richard Henderson  <rth@redhat.com>
4050         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
4051         (create_lock_lock): New.
4052         (initialize_critical): Initialize it.
4053         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
4054         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
4056 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
4058         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
4060 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
4062         * testsuite/libgomp.dg/omp-loop01.c: New test.
4063         * testsuite/libgomp.dg/omp-loop02.c: New test.
4065 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
4067         * configure.ac (AC_PROG_FC): Add.
4068         (USE_FORTRAN): New automake conditional.
4069         * configure: Rebuilt.
4070         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
4071         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
4072         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
4073         Add rules to build them.
4074         * Makefile.in: Rebuilt.
4075         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
4076         OMP_NEST_LOCK_KIND.
4077         * libgomp.map: Add Fortran wrappers.
4078         * libgomp_f.h.in: New file.
4079         * omp_lib.h.in: New file.
4080         * omp_lib.f90.in: New file.
4081         * fortran.c: New file.
4082         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
4083         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
4084         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
4085         libgfortran has been built.
4086         * testsuite/libgomp.fortran/fortran.exp: New file.
4087         * testsuite/libgomp.fortran/omp_cond1.f: New test.
4088         * testsuite/libgomp.fortran/omp_cond2.f: New test.
4089         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
4090         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
4091         * testsuite/libgomp.fortran/omp_hello.f: New test.
4092         * testsuite/libgomp.fortran/omp_orphan.f: New test.
4093         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
4094         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
4095         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
4096         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
4097         * testsuite/libgomp.fortran/omp_reduction.f: New test.
4098         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
4099         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
4101 2005-08-30  Richard Henderson  <rth@redhat.com>
4103         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
4104         function for when aliases are not usable.
4105         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
4106         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
4107         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
4108         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
4109         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
4110         GOMP_loop_ordered_guided_next): Likewise.
4111         * ordered.c (GOMP_ordered_start): Likewise.
4113 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
4115         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
4116         * testsuite/libgomp.dg/omp_hello.c: Fix return code
4117         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
4118         * testsuite/libgomp.dg/omp_orphan.c: Likewise
4119         * testsuite/libgomp.dg/omp_reduction.c: Likewise
4120         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
4121         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
4122         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
4123         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
4125 2005-07-07  Eric Christopher  <echristo@redhat.com>
4126             Diego Novillo  <dnovillo@redhat.com>
4128         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
4129         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
4130         up code.
4131         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
4132         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
4133         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
4134         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
4135         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
4136         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
4137         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
4139 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
4141         * TOPLEVEL.patch: Remove.
4143 2005-05-16  Richard Henderson  <rth@redhat.com>
4145         * configure.ac: Test for clock_gettime.
4146         * config.h.in, configure: Rebuild.
4147         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
4148         (omp_get_wtime): Use clock_gettime if available.
4149         (omp_get_wtick): Use clock_getres if available.
4151 2005-05-11  Richard Henderson  <rth@redhat.com>
4153         * config/linux/ia64/futex.h: New file.
4154         * configure.tgt: Use it.
4156         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
4158 2005-05-07  Richard Henderson  <rth@redhat.com>
4160         * config/linux/powerpc/futex.h: New file.
4161         * configure.tgt: Use it.
4163         * config/linux/i486/futex.h: Merge ...
4164         * config/linux/x86_64/futex.h: ... into ...
4165         * config/linux/x86/futex.h: ... here.
4166         * configure.tgt: Update to match.
4168 2005-05-06  Richard Henderson  <rth@redhat.com>
4170         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
4171         * config/linux/i486/futex.h: Likewise.
4172         * config/linux/x86_64/futex.h: Likewise.
4174         * config/linux/lock.c: New file.
4175         * config/linux/omp-lock.h: New file.
4177         * critical.c, env.h: Don't include omp.h
4178         * config/posix/lock.c: Include libgomp.h instead of omp.h.
4179         * config/posix/time.c: Likewise.
4180         * config/posix/omp-lock.h: New file.
4181         * libgomp.h: Include omp-lock.h and omp.h.
4182         * Makefile.am (nodist_include_HEADERS): New.
4183         (omp.h): New rule.
4184         * configure.ac (PERL): New.
4185         * mkomp_h.pl: New file.
4186         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
4187         with templates.
4188         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
4190         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
4191         build directory.  Re-add -march=i486 hack.
4193         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
4194         (libgomp_link_flags): Remove.
4195         (libgomp_initialized): Remove.
4196         (libgomp_init): Don't protect from reinitialization.  Copy code
4197         from libstdc++ for getting the multilib set correctly.
4199 2005-05-05  Richard Henderson  <rth@redhat.com>
4201         * config/linux/alpha/futex.h: New file.
4202         * configure.tgt (alpha*-*-linux*): Use it.
4204         * config/posix/mutex.c: New file.
4205         * config/posix/sem.c: Use libgomp.h.
4207         * configure.tgt (x86_64-linux): Also test CC for -m32.
4208         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
4210         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
4211         after $gccpath.
4213         * Makefile.am (SUBDIRS): New.
4214         (libgomp_la_LDFLAGS): Add -lpthread.
4215         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
4216         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
4218         * libgomp_g.h: New file.
4219         * libgomp.h: Split out all public declarations to libgomp_g.h.
4220         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
4221         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
4222         * config/linux/sem.h: Likewise.
4223         * config/posix/sem.h: Likewise.
4225         * Makefile.am (AM_LDFLAGS): New.
4226         (libgomp_version_script): Split out from ...
4227         (libgomp_la_LDFLAGS): ... here.
4228         (libgomp_version_info): New.
4229         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
4230         (LIBGOMP_ENABLE): New.
4231         (LIBGOMP_CHECK_LINKER_FEATURES): New.
4232         (LIBGOMP_ENABLE_SYMVERS): New.
4233         * configure.ac (AC_INIT): Version 1.0.
4234         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
4235         (enable-linux-futex): Likewise.  Rename from enable-futex.
4236         (libtool_VERSION): New.
4237         (LIBGOMP_ENABLE_SYMVERS): Use it.
4238         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
4239         * Makefile.in, aclocal.m4, configure: Rebuild.
4241         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
4242         (gomp_mutex_unlock_slow): Fix typo.
4243         * config/linux/sem.c: Similarly.
4244         (gomp_sem_post_slow): Fix typo.
4245         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
4246         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
4247         [__PIC__] (sys_futex0): Don't use tmp output in asm.
4249         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
4250         (libgomp_la_LDFLAGS): Add top_srcdir to path.
4251         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
4252         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
4253         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
4254         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
4255         LDFLAGS.  Pull enable_futex check to top-level.
4256         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
4257         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
4259         First attempt at real configury.
4260         * Makefile, config.h: Remove file.
4261         * Makefile.am, Makefile.in: New file.
4262         * acinclude.m4 aclocal.m4: New file.
4263         * configure.ac, configure.tgt, configure: New file.
4265         * config/posix/lock.c: Rename from sys-lock.c.
4266         * config/posix/mutex.h: Rename from sys-mutex.h.
4267         * config/posix/sem.c: Rename from sys-sem.c.
4268         * config/posix/sem.h: Rename from sys-sem.h.
4269         * config/posix/proc.c: Rename from sys-proc.c.
4270         * config/posix/time.c: Rename from sys-proc.c.
4272         * config/linux/mutex.c: New file.
4273         * config/linux/mutex.h: New file.
4274         * config/linux/sem.c: New file.
4275         * config/linux/sem.h: New file.
4276         * config/linux/i486/futex.h: New file.
4277         * config/linux/x86_64/futex.h: New file.
4279 2005-05-04  Richard Henderson  <rth@redhat.com>
4281         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
4282         * libgomp.h: Declare them.
4283         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
4284         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
4286 2005-05-04  Richard Henderson  <rth@redhat.com>
4288         * libgomp-1 code drop
4290 2005-05-04  Richard Henderson  <rth@redhat.com>
4292         * iter.c (gomp_iter_static_next): Return tri-state on 0.
4293         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
4294         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
4295         (gomp_iter_static_next): Update.
4296         (gomp_ordered_static_next): Update.
4297         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
4298         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
4299         totally empty range.
4300         (gomp_loop_ordered_static_next): Refine test for calling
4301         gomp_ordered_static_next.
4302         * testsuite/ordered-1.c: Add case for more threads than iterations.
4304         * iter.c (gomp_iter_runtime_next_locked): Remove.
4305         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
4306         gomp_loop_guided_start, gomp_loop_ordered_static_start,
4307         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
4308         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
4309         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
4310         gomp_loop_ordered_guided_next): Downcase name, make static, add
4311         an external alias with the old name.
4312         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
4313         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
4314         switch and call one of the above static functions.
4315         * libgomp.h: Update.
4317         * work.c (gomp_work_share_start): Lock the mutex for !first too.
4318         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
4319         GOMP_loop_guided_start, GOMP_loop_runtime_start,
4320         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
4321         GOMP_loop_ordered_guided_start): Update to match.
4322         * sections.c (GOMP_sections_start): Likewise.
4323         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
4325         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
4326         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
4327         Use bounds check instead of modulus.
4328         (gomp_ordered_sync): Split out of GOMP_ordered_start.
4329         (gomp_ordered_last): Don't sync with ordered_owner here.
4330         (gomp_ordered_next): Likewise.
4331         (gomp_ordered_static_loop_next): Likewise.
4332         * loop.c, libgomp.h: Update to match.
4334         * libgomp.h (GOMP_barrier): Declare.
4336         * testsuite/barrier-1.c: New file.
4337         * testsuite/critical-1.c: New file.
4338         * testsuite/ordered-2.c: New file.
4339         * testsuite/ordered-1.c: New file.
4340         * testsuite/sections-1.c: New file.
4341         * testsuite/single-1.c: New file.
4342         * testsuite/Makefile (TESTS): Add them.
4344 2005-05-04  Richard Henderson  <rth@redhat.com>
4346         * libgomp.h (struct gomp_work_share): Add ordered_owner.
4347         * loop.c (GOMP_loop_static_start): If not the startup thread,
4348         acquire the mutex to wait for initialization complete.
4349         (GOMP_loop_ordered_static_start): Likewise.
4350         (GOMP_loop_ordered_runtime_start): Likewise.
4351         (GOMP_loop_ordered_static_first): Remove.
4352         (GOMP_loop_ordered_dynamic_first): Remove.
4353         (GOMP_loop_ordered_guided_first): Remove.
4354         (GOMP_loop_ordered_runtime_first): Remove.
4355         * ordered.c (gomp_ordered_loop_first): Post to own release when
4356         we're the first thread.
4357         (gomp_ordered_loop_last): Wait on release if not owner.
4358         (gomp_ordered_loop_next): Likewise.
4359         (gomp_ordered_static_loop_init): New.
4360         (gomp_ordered_static_loop_next): Use ordered_owner.
4361         (GOMP_ordered_start): Likewise.
4362         * work.c (gomp_new_work_share): Initialize ordered_owner.
4364 2005-05-03  Richard Henderson  <rth@redhat.com>
4366         * Makefile (OPT): New.
4367         (CFLAGS): Use it.
4369         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
4370         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
4371         * libgomp.h, libgomp.map, NOTES: Update to match.
4373         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
4374         Add initialized and thr members.
4375         (gomp_thread_start): Pause when initially spawned to wait for
4376         the whole team to be created.
4377         (gomp_team_start): Release team members at the end.
4379         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
4380         (f_foo_1): Use GOMP_loop_end.
4381         (f_foo_2): Use GOMP_loop_end_nowait.
4383         * testsuite/loop-2.c: New file.
4384         * testsuite/Makefile (TESTS): Add it.
4386 2005-05-03  Richard Henderson  <rth@redhat.com>
4388         * iter.c (gomp_iter_static_next): Fix overflow check typo.
4389         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
4390         * team.c (new_team): Initialize oldest_live_gen to 1 if no
4391         initial work_share.
4393         * testsuite/Makefile: New file.
4394         * testsuite/loop-1.c: New file.
4396 2005-05-03  Richard Henderson  <rth@redhat.com>
4398         Initial implementation and checkin.