2014-12-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / libgomp / ChangeLog
blob97b607f0533402ac2b9400cff597bcd6e4f6cc19
1 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
3         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
5 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
6             Ilya Verbin  <ilya.verbin@intel.com>
8         * testsuite/libgomp.c/target-critical-1.c: New test.
10 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
12         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
13         to dg-options unless expensive testing is on.
14         (TESTITERS): Define to N if not defined.
15         (main): Use TESTITERS instead of N.
16         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
17         dg-additional-options depending on whether expensive testing is on.
18         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
19         Decrease N to 100000 and CHUNKSZ to 10000.
21 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
23         PR fortran/63938
24         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
25         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
27 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
29         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
31 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
33         PR bootstrap/63784
34         * configure: Regenerated.
36 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
38         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
39         vect_simd_clones effective target.
40         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
42 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
44         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
45         of 32 as block_size.
46         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
47         instead of 32 as block_size.
49 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
50             Ilya Verbin  <ilya.verbin@intel.com>
52         * Makefile.in: Regenerate.
53         * configure: Regenerate.
54         * configure.ac: Set up offload_additional_options,
55         offload_additional_lib_paths and offload_targets.
56         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
57         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
58         * testsuite/Makefile.in: Regenerate.
59         * testsuite/lib/libgomp.exp (libgomp_init): Append
60         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
61         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
62         build directory to LD_LIBRARY_PATH for intelmic offload targets.
64 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
65             Ilya Verbin  <ilya.verbin@intel.com>
66             Kirill Yukhin  <kirill.yukhin@intel.com>
67             Ilya Tocar  <ilya.tocar@intel.com>
69         * testsuite/lib/libgomp.exp
70         (check_effective_target_offload_device): New.
71         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
72         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
73         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
74         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
75         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
76         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
77         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
78         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
79         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
80         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
81         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
82         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
83         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
84         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
85         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
86         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
87         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
88         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
89         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
90         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
91         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
92         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
93         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
94         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
95         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
96         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
97         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
98         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
99         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
100         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
101         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
102         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
103         * testsuite/libgomp.c/target-7.c: Fix test.
104         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
105         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
106         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
107         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
108         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
109         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
110         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
111         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
112         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
113         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
114         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
115         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
116         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
117         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
118         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
119         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
120         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
121         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
122         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
123         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
124         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
125         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
126         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
127         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
128         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
129         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
130         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
131         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
132         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
133         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
134         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
136 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
137             Ilya Verbin  <ilya.verbin@intel.com>
138             Thomas Schwinge  <thomas@codesourcery.com>
139             Andrey Turetskiy  <andrey.turetskiy@intel.com>
141         * libgomp.map (GOMP_4.0.1): New symbol version.
142         Add GOMP_offload_register.
143         * libgomp_target.h: New file.
144         * splay-tree.h: New file.
145         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
146         (gomp_target_init): New forward declaration.
147         (gomp_is_initialized): New static variable.
148         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
149         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
150         New structures.
151         (offload_images, num_offload_images, devices, num_devices): New static
152         variables.
153         (splay_compare): New static function.
154         (struct gomp_device_descr): New structure.
155         (gomp_get_num_devices): Call gomp_target_init.
156         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
157         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
158         (GOMP_offload_register): New function.
159         (GOMP_target): Arrange for host callback to be performed in a separate
160         initial thread and contention group, inheriting ICVs from
161         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
162         Add device initialization and lookup for target function in splay tree.
163         (GOMP_target_data): Add device initialization and call gomp_map_vars.
164         (GOMP_target_end_data): Call gomp_unmap_vars.
165         (GOMP_target_update): Add device initialization and call gomp_update.
166         (gomp_load_plugin_for_device, gomp_register_images_for_device)
167         (gomp_target_init): New static functions.
169 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
170             Thomas Schwinge  <thomas@codesourcery.com>
171             Ilya Verbin  <ilya.verbin@intel.com>
172             Andrey Turetskiy  <andrey.turetskiy@intel.com>
174         * config.h.in: Regenerate.
175         * configure: Regenerate.
176         * configure.ac: Check for libdl, required for plugin support.
177         (PLUGIN_SUPPORT): Define if plugins are supported.
178         (enable_offload_targets): Support Intel MIC targets.
179         (OFFLOAD_TARGETS): List of target names suitable for offloading.
181 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
183         PR target/63610
184         * configure: Regenerate.
186 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
188         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
190 2014-10-06  Marek Polacek  <polacek@redhat.com>
192         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
193         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
194         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
195         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
197 2014-10-06  Marek Polacek  <polacek@redhat.com>
199         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
200         * testsuite/libgomp.c/nqueens-1.c: Likewise.
201         * testsuite/libgomp.c/pr26943-3.c: Likewise.
202         * testsuite/libgomp.c/pr26943-4.c: Likewise.
203         * testsuite/libgomp.c/pr36802-2.c: Likewise.
204         * testsuite/libgomp.c/pr36802-3.c: Likewise.
205         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
206         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
207         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
208         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
209         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
210         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
211         * testsuite/libgomp.c/omp-single-1.c: Likewise.
212         * testsuite/libgomp.c/omp-single-2.c: Likewise.
213         * testsuite/libgomp.c/omp_matvec.c: Likewise.
214         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
215         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
216         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
217         declarations.
219 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
221         PR libgomp/61200
222         * testsuite/libgomp.c/pr61200.c: New test.
224 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
226         PR c++/63248
227         * testsuite/libgomp.c++/pr63248.C: New test.
229 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
231         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
232         is not zero, but taskgroup->children is NULL and there are
233         any task->children, schedule those instead of waiting.
234         * testsuite/libgomp.c/depend-6.c: New test.
235         * testsuite/libgomp.c/depend-7.c: New test.
236         * testsuite/libgomp.c/depend-8.c: New test.
237         * testsuite/libgomp.c/depend-9.c: New test.
238         * testsuite/libgomp.c/depend-10.c: New test.
240 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
242         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
243         (struct gomp_taskwait): New type.
244         (struct gomp_task): Add taskwait and parent_depends_on, remove
245         in_taskwait and taskwait_sem fields.
246         (gomp_finish_task): Don't destroy taskwait_sem.
247         * task.c (gomp_init_task): Don't init in_taskwait, instead init
248         taskwait and parent_depends_on.
249         (GOMP_task): For if (0) tasks with depend clause that depend on
250         earlier tasks don't defer them, instead call
251         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
252         Initialize redundant_out field, for redundant out entries just
253         move them at the end of linked list instead of removing them
254         completely, and set redundant_out flag instead of redundant.
255         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
256         that task.
257         (gomp_task_run_post_handle_dependers): If parent is in
258         gomp_task_maybe_wait_for_dependencies and newly runnable task
259         is not parent_depends_on, queue it in parent->children linked
260         list after all runnable tasks with parent_depends_on set.
261         Adjust for addition of taskwait indirection.
262         (gomp_task_run_post_remove_parent): If parent is in
263         gomp_task_maybe_wait_for_dependencies and task to be removed
264         is parent_depends_on, decrement n_depend and if needed awake
265         parent.  Adjust for addition of taskwait indirection.
266         (GOMP_taskwait): Adjust for addition of taskwait indirection.
267         (gomp_task_maybe_wait_for_dependencies): New function.
268         * testsuite/libgomp.c/depend-5.c: New test.
270 2014-07-13  Tobias Burnus  <burnus@net-b.de>
272         * testsuite/libgomp.fortran/pr34020.f90: Make compile
273         with TS 18508/Fortran 2015.
275 2014-07-06  Marek Polacek  <polacek@redhat.com>
277         PR c/6940
278         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
280 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
282         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
283         matches regex $lang_source_re, add $lang_include_flags to options.
284         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
285         * testsuite/libgomp.c++/c++.exp: Likewise.
286         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
287         and lang_include_flags instead of adding -fintrinsic-modules-path= to
288         ALWAYS_CFLAGS.
289         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
291 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
293         * testsuite/libgomp.fortran/fortran.exp: Explain
294         gfortran-dg-runtest usage.
296 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
298         * testsuite/libgomp.fortran/simd5.f90: New test.
299         * testsuite/libgomp.fortran/simd6.f90: New test.
300         * testsuite/libgomp.fortran/simd7.f90: New test.
302 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
304         * testsuite/libgomp.c/for-2.c: Define SC to static for
305         #pragma omp for simd testing.
306         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
307         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
308         SC macro.
309         * testsuite/libgomp.c/simd-14.c: New test.
310         * testsuite/libgomp.c/simd-15.c: New test.
311         * testsuite/libgomp.c/simd-16.c: New test.
312         * testsuite/libgomp.c/simd-17.c: New test.
313         * testsuite/libgomp.c++/for-10.C: Define SC to static for
314         #pragma omp for simd testing.
315         * testsuite/libgomp.c++/simd10.C: New test.
316         * testsuite/libgomp.c++/simd11.C: New test.
317         * testsuite/libgomp.c++/simd12.C: New test.
318         * testsuite/libgomp.c++/simd13.C: New test.
320         * testsuite/libgomp.fortran/aligned1.f03: New test.
321         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
322         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
323         tasks with !$omp parallel !$omp single.
324         * testsuite/libgomp.fortran/target8.f90: New test.
325         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
326         not to use trim in the combiner, instead call elemental function.
327         (fn): New elemental function.
328         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
329         Make elemental.
330         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
331         omp_in): Likewise.
332         * testsuite/libgomp.fortran/udr12.f90: New test.
333         * testsuite/libgomp.fortran/udr13.f90: New test.
334         * testsuite/libgomp.fortran/udr14.f90: New test.
335         * testsuite/libgomp.fortran/udr15.f90: New test.
337 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
339         * omp_lib.f90.in (openmp_version): Set to 201307.
340         * omp_lib.h.in (openmp_version): Likewise.
341         * testsuite/libgomp.c/target-8.c: New test.
342         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
343         and inbranch clauses.
344         * testsuite/libgomp.fortran/depend-3.f90: New test.
345         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
346         openmp_version.
347         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
348         * testsuite/libgomp.fortran/target1.f90: New test.
349         * testsuite/libgomp.fortran/target2.f90: New test.
350         * testsuite/libgomp.fortran/target3.f90: New test.
351         * testsuite/libgomp.fortran/target4.f90: New test.
352         * testsuite/libgomp.fortran/target5.f90: New test.
353         * testsuite/libgomp.fortran/target6.f90: New test.
354         * testsuite/libgomp.fortran/target7.f90: New test.
356 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
358         PR fortran/60928
359         * testsuite/libgomp.fortran/allocatable9.f90: New test.
360         * testsuite/libgomp.fortran/allocatable10.f90: New test.
361         * testsuite/libgomp.fortran/allocatable11.f90: New test.
362         * testsuite/libgomp.fortran/allocatable12.f90: New test.
363         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
364         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
365         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
366         * testsuite/libgomp.fortran/associate1.f90: New test.
367         * testsuite/libgomp.fortran/associate2.f90: New test.
368         * testsuite/libgomp.fortran/procptr1.f90: New test.
370 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
372         * testsuite/libgomp.fortran/simd1.f90: New test.
373         * testsuite/libgomp.fortran/udr1.f90: New test.
374         * testsuite/libgomp.fortran/udr2.f90: New test.
375         * testsuite/libgomp.fortran/udr3.f90: New test.
376         * testsuite/libgomp.fortran/udr4.f90: New test.
377         * testsuite/libgomp.fortran/udr5.f90: New test.
378         * testsuite/libgomp.fortran/udr6.f90: New test.
379         * testsuite/libgomp.fortran/udr7.f90: New test.
380         * testsuite/libgomp.fortran/udr8.f90: New test.
381         * testsuite/libgomp.fortran/udr9.f90: New test.
382         * testsuite/libgomp.fortran/udr10.f90: New test.
383         * testsuite/libgomp.fortran/udr11.f90: New test.
385 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
387         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
388         vect_simd_clones effective target.
389         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
391 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
393         PR middle-end/61252
394         * testsuite/libgomp.c++/simd-9.C: New test.
396 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
398         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
399         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
400         texts according to their @menu entry positions.
402 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
404         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
405         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
406         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
407         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
408         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
409         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
410         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
411         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
412         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
413         * testsuite/libgomp.fortran/depend-1.f90: New test.
414         * testsuite/libgomp.fortran/depend-2.f90: New test.
415         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
416         * testsuite/libgomp.fortran/simd1.f90: New test.
417         * testsuite/libgomp.fortran/simd2.f90: New test.
418         * testsuite/libgomp.fortran/simd3.f90: New test.
419         * testsuite/libgomp.fortran/simd4.f90: New test.
420         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
422 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
424         * testsuite/libgomp.c/simd-10.c: New test.
425         * testsuite/libgomp.c/simd-11.c: New test.
426         * testsuite/libgomp.c/simd-12.c: New test.
427         * testsuite/libgomp.c/simd-13.c: New test.
429 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
431         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
432         atomic type clauses in any order and optional comma in between.
433         * testsuite/libgomp.c++/atomic-15.C: Likewise.
434         * testsuite/libgomp.c/atomic-17.c: Likewise.
436         * testsuite/libgomp.c/simd-7.c: New test.
437         * testsuite/libgomp.c/simd-8.c: New test.
438         * testsuite/libgomp.c/simd-9.c: New test.
439         * testsuite/libgomp.c/loop-16.c: New test.
441 2014-04-02  Richard Henderson  <rth@redhat.com>
443         * config/linux/futex.h (futex_wait): Get error value from errno.
444         (futex_wake): Likewise.
446 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
448         PR c++/60331
449         * testsuite/libgomp.c++/udr-11.C: New test.
450         * testsuite/libgomp.c++/udr-12.C: New test.
451         * testsuite/libgomp.c++/udr-13.C: New test.
452         * testsuite/libgomp.c++/udr-14.C: New test.
453         * testsuite/libgomp.c++/udr-15.C: New test.
454         * testsuite/libgomp.c++/udr-16.C: New test.
455         * testsuite/libgomp.c++/udr-17.C: New test.
456         * testsuite/libgomp.c++/udr-18.C: New test.
457         * testsuite/libgomp.c++/udr-19.C: New test.
459 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
461         Update copyright years
463 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
465         * hashtab.h: Use the standard form for the copyright notice.
467 2014-01-02  Tobias Burnus  <burnus@net-b.de>
469         * libgomp.texi: Bump @copying's copyright year.
471 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
473         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
474         alloca () with __builtin_alloca ().
475         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
476         * testsuite/libgomp.c/lock-3.c: Likewise.
477         * testsuite/libgomp.c/pr48591.c: Likewise.
479 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
481         PR testsuite/59534
482         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
483         comparisons.
485 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
487         PR libgomp/58756
488         * testsuite/libgomp.c/pr58756.c: New test.
490 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
492         PR libgomp/59467
493         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
494         !$omp parallel.
496 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
498         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
499         ALWAYS_CFLAGS.
500         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
501         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
502         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
503         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
504         Likewise.
506         * libgomp_g.h: Include <stddef.h> for size_t.
508         * libgomp.spec.in: Update comment about libgomp's dependencies.
509         * configure.ac: Likewise.
510         * configure: Regenerate.
512 2013-10-16  Tobias Burnus  <burnus@net-b.de>
514         * libgomp.texi: (Runtime Library Routines): Update references for
515         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
516         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
517         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
518         (Environment Variables): Update references for OpenMP 4.0. Add
519         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
520         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
521         order.
523 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
525         * env.c (parse_bind_var): Initialize value to avoid
526         (false positive) warning.
528 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
530         PR libgomp/58691
531         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
532         to check variable.
533         (gomp_init_num_threads): Move i variable declaration into
534         #ifdef CPU_ALLOC_SIZE block.
535         * config/linux/affinity.c (gomp_affinity_init_level): Test
536         gomp_places_list_len == 0 rather than gomp_places_list == 0
537         when checking for topology reading error.
538         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
539         * env.c (parse_affinity): Add ignore argument, if true, don't populate
540         gomp_places_list, only parse env var and always return false.
541         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
542         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
543         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
544         and either of these variables were parsed correctly into a places
545         list.
547 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
548             Jakub Jelinek  <jakub@redhat.com>
550         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
551         of 5 loopfn matches.
552         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
553         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
554         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
555         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
556         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
557         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
558         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
559         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
561 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
563         * Makefile.am (omp_lib.mod): Streamline rule.
564         * Makefile.in: Regenerate.
566         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
567         exceptions.
569         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
570         * testsuite/libgomp.fortran/lib1.f90: Likewise.
571         * testsuite/libgomp.fortran/lib2.f: Likewise.
572         * testsuite/libgomp.fortran/lib3.f: Likewise.
574         * configure.ac: Typo fix.
575         * configure: Regenerate.
577         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
578         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
580         * omp.h.in: Don't touch the user's namespace.
582 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
583             Tobias Burnus  <burnus@net-b.de>
584             Richard Henderson  <rth@redhat.com>
586         * target.c: New file.
587         * Makefile.am (libgomp_la_SOURCES): Add target.c.
588         * Makefile.in: Regenerated.
589         * libgomp_g.h (GOMP_task): Add depend argument.
590         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
591         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
592         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
593         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
594         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
595         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
596         GOMP_taskgroup_start, GOMP_taskgroup_end,
597         GOMP_parallel_sections): New prototypes.
598         * fortran.c (omp_is_initial_device): Add ialias_redirect.
599         (omp_is_initial_device_): New function.
600         (ULP, STR1, STR2, ialias_redirect): Removed.
601         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
602         omp_set_default_device_8_, omp_get_default_device_,
603         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
604         functions.
605         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
606         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
607         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
608         @@GOMP_4.0.
609         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
610         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
611         omp_set_default_device, omp_set_default_device_,
612         omp_set_default_device_8_, omp_get_default_device,
613         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
614         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
615         omp_get_team_num_): Export @@OMP_4.0.
616         * team.c (struct gomp_thread_start_data): Add place field.
617         (gomp_thread_start): Clear thr->thread_pool and
618         thr->task before returning.  Use gomp_team_barrier_wait_final
619         instead of gomp_team_barrier_wait.  Initialize thr->place.
620         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
621         team_cancelled and task_queued_count fields.
622         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
623         before calling pthread_exit.
624         (gomp_free_thread): No longer static.  Use
625         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
626         (gomp_team_start): Add flags argument.  Set
627         thr->thread_pool->threads_busy to nthreads immediately after creating
628         new pool.  Use gomp_managed_threads_lock instead of
629         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
630         (gomp_team_end): Use gomp_managed_threads_lock instead of
631         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
632         of gomp_team_barrier_wait.  If team->team_cancelled, call
633         gomp_fini_worshare on ws chain starting at team->work_shares_to_free
634         rather than thr->ts.work_share.
635         (initialize_team): Don't call gomp_sem_init here.
636         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
637         caller.
638         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
639         * env.c (gomp_global_icv): Add default_device_var, target_data and
640         bind_var initializers.
641         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
642         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
643         gomp_places_list_len): New variables.
644         (parse_bind_var, parse_one_place, parse_places_var): New functions.
645         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
646         sized places.
647         (gomp_cancel_var): New global variable.
648         (parse_int): New function.
649         (handle_omp_display_env): New function.
650         (initialize_env): Use it.  Initialize default_device_var.
651         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
652         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
653         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
654         been successfully parsed (and call gomp_init_affinity in that case).
655         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
656         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
657         omp_get_team_num, omp_is_initial_device): New functions.
658         * libgomp.h: Include stdlib.h.
659         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
660         Define.
661         (struct target_mem_desc): Forward declare.
662         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
663         and thread_limit_var fields.
664         (gomp_get_num_devices): New prototype.
665         (gomp_cancel_var): New extern decl.
666         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
667         team_cancelled and task_queued_count fields.  Add comments about
668         task_{,queued_,running_}count.
669         (gomp_cancel_kind): New enum.
670         (gomp_work_share_end_cancel): New prototype.
671         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
672         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
673         and depend fields.
674         (struct gomp_taskgroup): New type.
675         (struct gomp_task_depend_entry,
676         struct gomp_dependers_vec): New types.
677         (gomp_finish_task): Free depend_hash if non-NULL.
678         (struct gomp_team_state): Add place_partition_off
679         and place_partition_len fields.
680         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
681         gomp_places_list_len): New extern decls.
682         (struct gomp_thread): Add place field.
683         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
684         (gomp_init_thread_affinity): Add place argument.
685         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
686         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
687         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
688         gomp_affinity_init_level, gomp_affinity_print_place): New
689         prototypes.
690         (gomp_team_start): Add flags argument.
691         (gomp_thread_limit_var, gomp_remaining_threads_count,
692         gomp_remaining_threads_lock): Remove.
693         (gomp_managed_threads_lock): New variable.
694         (struct gomp_thread_pool): Add threads_busy field.
695         (gomp_free_thread): New prototype.
696         * task.c: Include hashtab.h.
697         (hash_entry_type): New typedef.
698         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
699         (gomp_init_task): Clear dependers, depend_hash, depend_count,
700         copy_ctors_done and taskgroup fields.
701         (GOMP_task): Add depend argument, handle depend clauses.  If
702         gomp_team_barrier_cancelled or if it's taskgroup has been
703         cancelled, don't queue or start new tasks.  Set copy_ctors_done
704         field if needed.  Initialize taskgroup field.  If copy_ctors_done
705         and already cancelled, don't discard the task.  If taskgroup is
706         non-NULL, enqueue the task into taskgroup queue.  Increment
707         num_children field in taskgroup.  Increment task_queued_count.
708         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
709         gomp_task_run_post_remove_taskgroup): New inline functions.
710         (gomp_task_run_post_handle_depend_hash,
711         gomp_task_run_post_handle_dependers,
712         gomp_task_run_post_handle_depend): New functions.
713         (GOMP_taskwait): Use them.  If more than one new tasks
714         have been queued, wake other threads if needed.
715         (gomp_barrier_handle_tasks): Likewise.  If
716         gomp_team_barrier_cancelled, don't start any new tasks, just free
717         all tasks.
718         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
719         * omp_lib.f90.in
720         (omp_proc_bind_kind, omp_proc_bind_false,
721         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
722         omp_proc_bind_spread): New params.
723         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
724         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
725         omp_get_team_num, omp_is_initial_device): New interfaces.
726         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
727         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
728         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
729         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
730         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
731         useless use omp_lib_kinds.
732         * omp.h.in (omp_proc_bind_t): New typedef.
733         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
734         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
735         omp_get_team_num, omp_is_initial_device): New prototypes.
736         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
737         through to gomp_team_start.
738         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
739         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
740         Adjust gomp_parallel_loop_start callers.
741         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
742         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
743         GOMP_loop_end_cancel): New functions.
744         (GOMP_parallel_end): Add ialias_redirect.
745         * hashtab.h: New file.
746         * libgomp.texi (Environment Variables): Minor cleanup,
747         update section refs to OpenMP 4.0rc2.
748         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
749         environment variables.
750         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
751         team->work_shares_to_free to thr->ts.work_share before calling
752         free_work_share.
753         (gomp_work_share_end_cancel): New function.
754         * config/linux/proc.c: Include errno.h.
755         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
756         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
757         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
758         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
759         gomp_cpuset_size is sizeof (cpu_set_t).
760         (gomp_init_num_threads): Initialize gomp_cpuset_size,
761         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
762         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
763         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
764         contain any logical CPUs.
765         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
766         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
767         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
768         pthread_getaffinity_np.  Check gomp_places_list instead of
769         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
770         * config/linux/bar.c (gomp_barrier_wait_end,
771         gomp_barrier_wait_last): Use BAR_* defines.
772         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
773         from state where needed.  Set work_share_cancelled to 0 on last
774         thread.
775         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
776         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
777         functions.
778         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
779         Add cpusetsize argument.
780         (gomp_cpuset_size, gomp_cpusetp): Declare.
781         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
782         (affinity_counter): Remove.
783         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
784         if CPU_ALLOC_SIZE isn't defined.
785         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
786         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
787         bind current thread to the first place.
788         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
789         pthread_setaffinity_np to gomp_places_list[place].
790         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
791         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
792         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
793         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
794         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
795         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
796         (gomp_barrier_t): Add awaited_final field.
797         (gomp_barrier_init): Initialize awaited_final field.
798         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
799         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
800         prototypes.
801         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
802         defines.
803         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
804         gomp_team_barrier_cancelled): New inline functions.
805         (gomp_barrier_last_thread,
806         gomp_team_barrier_set_task_pending,
807         gomp_team_barrier_clear_task_pending,
808         gomp_team_barrier_set_waiting_for_tasks,
809         gomp_team_barrier_waiting_for_tasks,
810         gomp_team_barrier_done): Use BAR_* defines.
811         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
812         (gomp_barrier_wait_end): Use BAR_* defines.
813         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
814         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
815         Use BAR_* defines.
816         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
817         gomp_team_barrier_cancel): New functions.
818         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
819         argument.
820         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
821         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
822         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
823         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
824         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
825         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
826         (gomp_barrier_t): Add cancellable field.
827         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
828         gomp_team_barrier_cancel): New prototypes.
829         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
830         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
831         gomp_team_barrier_cancelled): New inline functions.
832         (gomp_barrier_wait_start, gomp_barrier_last_thread,
833         gomp_team_barrier_set_task_pending,
834         gomp_team_barrier_clear_task_pending,
835         gomp_team_barrier_set_waiting_for_tasks,
836         gomp_team_barrier_waiting_for_tasks,
837         gomp_team_barrier_done): Use BAR_* defines.
838         * barrier.c (GOMP_barrier_cancel): New function.
839         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
840         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
841         omp_proc_bind_spread): New params.
842         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
843         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
844         omp_get_team_num, omp_is_initial_device): New externals.
845         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
846         New functions.
847         (gomp_resolve_num_threads): Adjust for thread_limit now being in
848         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
849         infinity.  If not nested, just return minimum of max_num_threads
850         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
851         to the returned value.  Otherwise, don't update atomically
852         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
853         (GOMP_parallel_end): Adjust for thread_limit now being in
854         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
855         infinity.  Adjust threads_busy in the pool rather than
856         gomp_remaining_threads_count.  Remember team->nthreads and call
857         gomp_team_end before adjusting threads_busy, if not nested
858         afterwards, just set it to 1 non-atomically.  Add ialias.
859         (GOMP_parallel_start): Adjust gomp_team_start caller.
860         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
861         * testsuite/libgomp.c/affinity-1.c: New test.
862         * testsuite/libgomp.c/atomic-15.c: New test.
863         * testsuite/libgomp.c/atomic-16.c: New test.
864         * testsuite/libgomp.c/atomic-17.c: New test.
865         * testsuite/libgomp.c/cancel-for-1.c: New test.
866         * testsuite/libgomp.c/cancel-for-2.c: New test.
867         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
868         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
869         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
870         * testsuite/libgomp.c/cancel-sections-1.c: New test.
871         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
872         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
873         * testsuite/libgomp.c/depend-1.c: New test.
874         * testsuite/libgomp.c/depend-2.c: New test.
875         * testsuite/libgomp.c/depend-3.c: New test.
876         * testsuite/libgomp.c/depend-4.c: New test.
877         * testsuite/libgomp.c/for-1.c: New test.
878         * testsuite/libgomp.c/for-1.h: New file.
879         * testsuite/libgomp.c/for-2.c: New test.
880         * testsuite/libgomp.c/for-2.h: New file.
881         * testsuite/libgomp.c/for-3.c: New test.
882         * testsuite/libgomp.c/pr58392.c: New test.
883         * testsuite/libgomp.c/simd-1.c: New test.
884         * testsuite/libgomp.c/simd-2.c: New test.
885         * testsuite/libgomp.c/simd-3.c: New test.
886         * testsuite/libgomp.c/simd-4.c: New test.
887         * testsuite/libgomp.c/simd-5.c: New test.
888         * testsuite/libgomp.c/simd-6.c: New test.
889         * testsuite/libgomp.c/target-1.c: New test.
890         * testsuite/libgomp.c/target-2.c: New test.
891         * testsuite/libgomp.c/target-3.c: New test.
892         * testsuite/libgomp.c/target-4.c: New test.
893         * testsuite/libgomp.c/target-5.c: New test.
894         * testsuite/libgomp.c/target-6.c: New test.
895         * testsuite/libgomp.c/target-7.c: New test.
896         * testsuite/libgomp.c/taskgroup-1.c: New test.
897         * testsuite/libgomp.c/thread-limit-1.c: New test.
898         * testsuite/libgomp.c/thread-limit-2.c: New test.
899         * testsuite/libgomp.c/thread-limit-3.c: New test.
900         * testsuite/libgomp.c/udr-1.c: New test.
901         * testsuite/libgomp.c/udr-2.c: New test.
902         * testsuite/libgomp.c/udr-3.c: New test.
903         * testsuite/libgomp.c++/affinity-1.C: New test.
904         * testsuite/libgomp.c++/atomic-10.C: New test.
905         * testsuite/libgomp.c++/atomic-11.C: New test.
906         * testsuite/libgomp.c++/atomic-12.C: New test.
907         * testsuite/libgomp.c++/atomic-13.C: New test.
908         * testsuite/libgomp.c++/atomic-14.C: New test.
909         * testsuite/libgomp.c++/atomic-15.C: New test.
910         * testsuite/libgomp.c++/cancel-for-1.C: New test.
911         * testsuite/libgomp.c++/cancel-for-2.C: New test.
912         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
913         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
914         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
915         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
916         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
917         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
918         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
919         * testsuite/libgomp.c++/cancel-test.h: New file.
920         * testsuite/libgomp.c++/for-9.C: New test.
921         * testsuite/libgomp.c++/for-10.C: New test.
922         * testsuite/libgomp.c++/for-11.C: New test.
923         * testsuite/libgomp.c++/simd-1.C: New test.
924         * testsuite/libgomp.c++/simd-2.C: New test.
925         * testsuite/libgomp.c++/simd-3.C: New test.
926         * testsuite/libgomp.c++/simd-4.C: New test.
927         * testsuite/libgomp.c++/simd-5.C: New test.
928         * testsuite/libgomp.c++/simd-6.C: New test.
929         * testsuite/libgomp.c++/simd-7.C: New test.
930         * testsuite/libgomp.c++/simd-8.C: New test.
931         * testsuite/libgomp.c++/target-1.C: New test.
932         * testsuite/libgomp.c++/target-2.C: New test.
933         * testsuite/libgomp.c++/target-2-aux.cc: New file.
934         * testsuite/libgomp.c++/target-3.C: New test.
935         * testsuite/libgomp.c++/taskgroup-1.C: New test.
936         * testsuite/libgomp.c++/udr-1.C: New test.
937         * testsuite/libgomp.c++/udr-2.C: New test.
938         * testsuite/libgomp.c++/udr-3.C: New test.
939         * testsuite/libgomp.c++/udr-4.C: New test.
940         * testsuite/libgomp.c++/udr-5.C: New test.
941         * testsuite/libgomp.c++/udr-6.C: New test.
942         * testsuite/libgomp.c++/udr-7.C: New test.
943         * testsuite/libgomp.c++/udr-8.C: New test.
944         * testsuite/libgomp.c++/udr-9.C: New test.
946 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
948         PR testsuite/57605
949         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
950         ALWAYS_CFLAGS.
952 2013-09-20  Alan Modra  <amodra@gmail.com>
954         * configure: Regenerate.
956 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
958         * testsuite/libgomp.c/sections-2.c: New test.
960 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
962         * testsuite/libgomp.fortran/strassen.f90:
963         Add dg-skip-if aarch64_tiny.
965 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
966             Cesar Philippidis  <cesar@codesourcery.com>
968         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
969         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
970         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
971         * testsuite/libgomp.fortran/fortran.exp: Likewise.
972         * testsuite/libgomp.graphite/graphite.exp: Likewise.
973         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
974         Use dg-runtest rather than gfortran-dg-runtest.
976 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
978         * testsuite/libgomp.c/icv-2.c: Extend current handling of
979         Linux-based x86 systems to cover all GNU systems.
980         * testsuite/libgomp.c/lock-3.c: Likewise.
981         * testsuite/libgomp.c/pr48591.c: Likewise.
983 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
985         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
986         GNU/Hurd, as done for Linux-based systems.
988         * config/posix/ptrlock.h: Fix comment.
990 2013-05-27  Tobias Burnus  <burnus@net-b.de>
992         PR fortran/57423
993         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
994         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
995         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
996         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
997         omp_destroy_nest_lock): Correct arguments to match the one in
998         the OpenMP spec.
999         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
1000         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
1001         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
1002         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
1004 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
1006         * testsuite/libgomp.c/loop-13.c: New test.
1007         * testsuite/libgomp.c/loop-14.c: New test.
1008         * testsuite/libgomp.c/loop-15.c: New test.
1009         * testsuite/libgomp.c++/loop-13.C: New test.
1010         * testsuite/libgomp.c++/loop-14.C: New test.
1011         * testsuite/libgomp.c++/loop-15.C: New test.
1013 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
1015         PR middle-end/56217
1016         * testsuite/libgomp.c++/pr56217.C: New test.
1018 2013-02-01  Alan Modra  <amodra@gmail.com>
1020         * task.c (GOMP_task, GOMP_taskwait): Comment.
1022 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
1023             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
1025         PR libgomp/55561
1026         * config/linux/wait.h (do_spin): Use atomic load for addr.
1027         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
1028         for intptr and ptrlock.
1029         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
1030         for ptrlock.
1032 2013-01-22  Alan Modra  <amodra@gmail.com>
1034         PR libgomp/51376
1035         PR libgomp/56073
1036         * task.c (GOMP_task): Revert 2011-12-09 change.
1037         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
1038         barrier to read task->children..
1039         (gomp_barrier_handle_tasks): ..and matching atomic store with
1040         release barrier here when setting parent->children to NULL.
1042 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
1043             Tobias Burnus  <burnus@net-b.de>
1045         PR driver/55884
1046         * testsuite/libgomp.fortran/fortran.exp: Use
1047         -fintrinsic-modules-path= instead of
1048         -fintrinsic-modules-path.
1050 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
1052         Update copyright years.
1054 2012-12-19  Tobias Burnus  <burnus@net-b.de>
1056         * testsuite/libgomp.fortran/fortran.exp: Set
1057         -fintrinsic-modules-path.
1059 2012-12-19  Tobias Burnus  <burnus@net-b.de>
1061         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
1062         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
1064 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
1066         PR libgomp/55411
1067         * team.c (gomp_free_thread): Decrease gomp_managed_threads
1068         if pool had any threads_used.
1070 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
1072         * testsuite/libgomp.c++/pr24455.C: Use
1073         -Wl,-undefined,dynamic_lookup on darwin.
1075 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
1077         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
1079 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
1081         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
1083 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
1084             Jim MacArthur  <jim.macarthur@arm.com>
1085             Marcus Shawcroft  <marcus.shawcroft@arm.com>
1086             Nigel Stephens  <nigel.stephens@arm.com>
1087             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1088             Richard Earnshaw  <rearnsha@arm.com>
1089             Sofiane Naci  <sofiane.naci@arm.com>
1090             Stephen Thomas  <stephen.thomas@arm.com>
1091             Tejas Belagod  <tejas.belagod@arm.com>
1092             Yufeng Zhang  <yufeng.zhang@arm.com>
1094         * configure.tgt: Add AArch64.
1096 2012-10-04  Jason Merrill  <jason@redhat.com>
1098         * testsuite/libgomp.c++/tls-init1.C: New.
1100 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
1102         * configure: Regenerated.
1104 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
1106         * config/linux/mips/futex.h (sys_futex0): Change to static
1107         function with noinline, nomips16 attributes under MIPS16. Adjust
1108         asm statement to place 'li v0,SYS_futex' immediately before
1109         syscall insn.
1111 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
1113         * libgomp.texi (Library Index): Renamed from "Index" to prevent
1114         conflict with index.html on case-insensitive file systems.
1116 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
1118         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
1119         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
1121 2012-07-02  Richard Guenther  <rguenther@suse.de>
1122             Michael Matz  <matz@suse.de>
1123             Tobias Grosser <tobias@grosser.es>
1124             Sebastian Pop <sebpop@gmail.com>
1126         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
1127         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1128         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1129         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1131 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
1133         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
1135 2012-06-22  Richard Guenther  <rguenther@suse.de>
1137         Merge from graphite branch
1138         2012-01-13  Tobias Grosser  <tobias@grosser.es>
1140         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1141         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
1143 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
1145         PR middle-end/53580
1146         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
1147         use GOMP_barrier () call instead.
1148         * testsuite/libgomp.c/pr26943-3.c: Likewise.
1149         * testsuite/libgomp.c/pr26943-4.c: Likewise.
1150         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
1151         call GOMP_barrier instead.
1152         * testsuite/libgomp.fortran/vla5.f90: Likewise.
1154 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
1156         PR libgomp/52993
1157         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
1158         argument to memset call.
1160 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1162         * configure: Regenerated.
1164 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1166         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
1168 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
1170         PR bootstrap/52812
1171         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
1173 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
1175         PR middle-end/52547
1176         * testsuite/libgomp.c/pr52547.c: New test.
1178 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1180         * testsuite/lib/libgomp.exp: load fortran-modules.exp
1182 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1184         * configure.tgt (mips-sgi-irix6*): Remove.
1186 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1188         * configure.tgt (alpha*-dec-osf*): Remove.
1190         * config/osf/sem.h: Remove.
1191         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
1193 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
1195         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
1197 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1199         PR libstdc++/52188
1200         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
1201         Remove ENABLE_SYMVERS_SOL2.
1202         * configure: Regenerate.
1203         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
1204         (PREPROCESS): New variable.
1205         (libgomp.ver): New target.
1206         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
1207         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
1208         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
1209         Use libgomp.ver.
1210         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
1211         * Makefile.in: Regenerate.
1213 2012-02-14  Walter Lee  <walt@tilera.com>
1215         * configure.tgt: Handle tilegx and tilepro.
1216         * config/linux/tile/futex.h: New file.
1218 2012-02-08  Richard Guenther  <rguenther@suse.de>
1220         PR tree-optimization/46886
1221         * testsuite/libgomp.c/pr46886.c: New testcase.
1223 2012-01-25  Matthias Klose  <doko@ubuntu.com>
1225         * config/linux/arm: Remove empty directory.
1226         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
1228 2011-12-09  Alan Modra  <amodra@gmail.com>
1230         PR libgomp/51376
1231         * task.c (GOMP_taskwait): Don't access task->children outside of
1232         task_lock mutex region.
1233         (GOMP_task): Likewise.
1235 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
1237         PR libgomp/51132
1238         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
1239         to file scope.
1240         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
1241         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
1242         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1243         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1244         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
1246 2011-12-02  Alan Modra  <amodra@gmail.com>
1248         * config/linux/affinity.c: Use atomic rather than sync builtin.
1249         * config/linux/lock.c: Likewise.
1250         * config/linux/ptrlock.h: Likewise.
1251         * config/linux/ptrlock.c: Likewise.
1252         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
1253         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
1254         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
1255         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
1256         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
1257         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
1258         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
1259         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
1260         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
1261         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
1263 2011-11-30  Alan Modra  <amodra@gmail.com>
1265         PR libgomp/51298
1266         * config/linux/bar.h: Use atomic rather than sync builtins.
1267         * config/linux/bar.c: Likewise.  Add missing acquire
1268         synchronisation on generation field.
1269         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
1270         double unlock.
1272 2011-11-30  Alan Modra  <amodra@gmail.com>
1274         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
1275         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
1276         * config/linux/mutex.h: Use atomic rather than sync builtins.
1277         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
1278         * config/linux/omp-lock.h: Comment fix.
1279         * config/linux/arm/mutex.h: Delete.
1280         * config/linux/powerpc/mutex.h: Delete.
1281         * config/linux/ia64/mutex.h: Delete.
1282         * config/linux/mips/mutex.h: Delete.
1284 2011-11-30  Alan Modra  <amodra@gmail.com>
1286         PR libgomp/51249
1287         * config/linux/sem.h: Rewrite.
1288         * config/linux/sem.c: Rewrite.
1290 2011-11-28  Richard Henderson  <rth@redhat.com>
1292         * libgomp.h (enum memmodel): New.
1294 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
1296         * configure: Regenerate.
1298 2011-10-10  Matthias Klose  <doko@ubuntu.com>
1300         * config/posix95: Remove empty directory.
1302 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
1304         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
1306 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
1308         PR fortran/49792
1309         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
1310         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
1312 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1314         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
1316 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1318         PR libgomp/49965
1319         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
1321 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
1323         * config/linux/proc.h: New.
1324         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
1325         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
1326         (gomp_init_num_threads): Update call to cpuset_popcount.
1327         (get_num_procs): Ditto.
1328         * config/linux/affinity.c (gomp_init_affinity): Call
1329         gomp_cpuset_popcount.
1331 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
1333         PR fortran/42041
1334         PR fortran/46752
1335         * omp.h.in (omp_in_final): New prototype.
1336         * omp_lib.f90.in (omp_in_final): New interface.
1337         (omp_integer_kind, omp_logical_kind): Remove
1338         and replace all its uses in the module with 4.
1339         (openmp_version): Change to 201107.
1340         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
1341         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
1342         kind for the parameters.
1343         (omp_in_final): New external.
1344         (openmp_version): Change to 201107.
1345         * task.c (omp_in_final): New function.
1346         (gomp_init_task): Initialize final_task.
1347         (GOMP_task): Remove unused attribute from flags.  Handle final
1348         tasks.
1349         (GOMP_taskyield): New function.
1350         (omp_in_final): Return true if if (false) or final (true) task
1351         or descendant of final (true).
1352         * fortran.c (omp_in_final_): New function.
1353         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
1354         (GOMP_3.0): Export GOMP_taskyield.
1355         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
1356         variables.
1357         (parse_unsigned_long_list): New function.
1358         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
1359         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
1360         even if parse_affinity returned false.
1361         * config/linux/affinity.c (gomp_init_affinity): Handle
1362         gomp_cpu_affinity_len == 0.
1363         * libgomp_g.h (GOMP_taskyield): New prototype.
1364         * libgomp.h (struct gomp_task): Add final_task field.
1365         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
1366         * team.c (gomp_team_start): Override new task's nthreads_var icv
1367         if list form OMP_NUM_THREADS has been used and it has value for
1368         the new nesting level.
1370         * testsuite/libgomp.c/atomic-11.c: New test.
1371         * testsuite/libgomp.c/atomic-12.c: New test.
1372         * testsuite/libgomp.c/atomic-13.c: New test.
1373         * testsuite/libgomp.c/atomic-14.c: New test.
1374         * testsuite/libgomp.c/reduction-6.c: New test.
1375         * testsuite/libgomp.c/task-5.c: New test.
1376         * testsuite/libgomp.c++/atomic-2.C: New test.
1377         * testsuite/libgomp.c++/atomic-3.C: New test.
1378         * testsuite/libgomp.c++/atomic-4.C: New test.
1379         * testsuite/libgomp.c++/atomic-5.C: New test.
1380         * testsuite/libgomp.c++/atomic-6.C: New test.
1381         * testsuite/libgomp.c++/atomic-7.C: New test.
1382         * testsuite/libgomp.c++/atomic-8.C: New test.
1383         * testsuite/libgomp.c++/atomic-9.C: New test.
1384         * testsuite/libgomp.c++/task-8.C: New test.
1385         * testsuite/libgomp.c++/reduction-4.C: New test.
1386         * testsuite/libgomp.fortran/allocatable7.f90: New test.
1387         * testsuite/libgomp.fortran/allocatable8.f90: New test.
1388         * testsuite/libgomp.fortran/crayptr3.f90: New test.
1389         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
1390         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
1391         * testsuite/libgomp.fortran/pointer1.f90: New test.
1392         * testsuite/libgomp.fortran/pointer2.f90: New test.
1393         * testsuite/libgomp.fortran/task4.f90: New test.
1395 2011-08-02  Tobias Burnus  <burnus@net-b.de>
1397         * libgomp.texi: Update OpenMP spec references to 3.1.
1398         (omp_in_final,OMP_PROC_BIND): New sections.
1399         (OMP_NUM_THREADS): Document that the value can be now a list.
1400         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
1402 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
1404         * config/linux/x86/futex.h: Check __x86_64__ instead of
1405         __LP64__.
1407 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
1409         PR middle-end/49897
1410         PR middle-end/49898
1411         * testsuite/libgomp.c/pr49897-1.c: New test.
1412         * testsuite/libgomp.c/pr49897-2.c: New test.
1413         * testsuite/libgomp.c/pr49898-1.c: New test.
1414         * testsuite/libgomp.c/pr49898-2.c: New test.
1416 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1418         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
1419         for ia32 instead of ilp32.
1421         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
1422         * testsuite/libgomp.c/atomic-6.c: Likewise.
1424 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
1426         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
1427         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
1429 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1431         PR libgomp/45351
1432         * config/osf/sem.h: New file.
1433         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
1435 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1437         PR target/49541
1438         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
1439         ldflags.
1441 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
1443         * config/linux/wait.h (do_spin): New inline, largely copied
1444         from do_wait, just don't do futex_wait here, instead return true if
1445         it should be done.
1446         (do_wait): Implement using do_spin.
1447         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
1448         to prototype.
1449         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1450         __sync_bool_compare_and_swap, pass the oldval to
1451         gomp_mutex_lock_slow.
1452         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
1453         If all mutex contenders are just spinning and not sleeping, don't
1454         change state to 2 unnecessarily.  Optimize the loop when state has
1455         already become 2 to use just one atomic operation per loop instead
1456         of two.
1457         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
1458         to prototype.
1459         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1460         __sync_bool_compare_and_swap, pass the oldval to
1461         gomp_mutex_lock_slow.
1463 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
1465         PR libgomp/49490
1466         * iter.c (gomp_iter_static_next): For chunk size 0
1467         only use n ceil/ nthreads size for the first
1468         n % nthreads threads in the team instead of
1469         all threads except for the last few ones which
1470         get less work or none at all.
1471         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
1472         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
1473         chunk argument, set run_sched_modifier to 0 for static
1474         resp. 1 for other kinds.  If chunk argument is 0
1475         and not static, set value to 1.
1477 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
1479         PR c++/49043
1480         * testsuite/libgomp.c++/pr49043.C: New test.
1482         PR c++/48869
1483         * testsuite/libgomp.c++/pr48869.C: New test.
1485 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
1487         PR fortran/48894
1488         * fortran.c: Include limits.h.
1489         (TO_INT): Define.
1490         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
1491         *set.
1492         (omp_set_num_threads_8_, omp_set_schedule_8_,
1493         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
1494         omp_get_team_size_8_): Use TO_INT macro.
1495         * testsuite/libgomp.fortran/pr48894.f90: New test.
1497 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
1499         PR middle-end/48591
1500         * testsuite/libgomp.c/pr48591.c: New test.
1502 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1504         PR bootstrap/48135
1505         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
1506         * configure: Regenerate.
1508 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
1510         PR fortran/47886
1511         * testsuite/libgomp.fortran/task3.f90: New test.
1513 2011-02-24  Tobias Burnus  <burnus@net-b.de>
1515         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
1517 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
1519         PR libgomp/47854
1520         * libgomp.texi (omp_get_wtime): Don't say time in the past
1521         must be Unix Epoch.
1523 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
1525         PR libgomp/47804
1526         * testsuite/libgomp.fortran/fortran.exp: Check for both
1527         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
1528         but $blddir != "", still append ${blddir}/${lang_library_path}
1529         to ld_library_path.
1531 2011-02-16  Tobias Burnus  <burnus@net-b.de>
1533         PR libgomp/47758
1534         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
1535         of libquadmath.a before adding its libpath to ldflags.
1537 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
1539         PR libgomp/47731
1540         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
1541         to FUTEX_WAIT futex syscall.
1542         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
1544 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1546         * configure: Regenerate.
1548 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
1550         PR libstdc++/36104
1551         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
1553 2011-01-16  Gerald Pfeifer
1555         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
1557 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
1559         PR fortran/46874
1560         * libgomp.fortran/allocatable6.f90: New test.
1562 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1564         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
1565         * configure: Regenerate.
1567 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
1569         PR target/40125
1570         PR lto/46695
1571         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
1572         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
1573         * aclocal.m4: Regenerate.
1574         * configure: Regenerate.
1575         * Makefile.in: Regenerate.
1576         * testsuite/Makefile.in: Regenerate.
1578 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
1580         PR fortran/46753
1581         * libgomp.fortran/pr46753.f90: New test.
1583         PR libgomp/43706
1584         * env.c (initialize_env): Default to spin count 300000
1585         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
1586         is specified.
1588         PR libgomp/45240
1589         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
1590         at the end if sync builtins aren't supported.
1592 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1594         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
1596 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1598         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
1600 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
1602         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
1604 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1605             Tobias Burnus  <burnus@net-b.de>
1607         PR fortran/32049
1608         * configure.ac:
1609         * configure: Regenerate.
1611 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1613         * config/linux/futex.h: New.
1614         * config/linux/arm/mutex.h: New.
1615         * configure.tgt (arm*-*-linux*): Add config path.
1617 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1619         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1621 2010-09-23  Tobias Burnus  <burnus@net-b.de>
1623         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
1624         Change Fortran datatype to LOGICAL.
1625         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
1626         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
1628 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1630         * configure: Regenerate.
1632 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
1634         * libgomp.texi: Add function keyword to a couple of Fortran
1635         interfaces, use integer instead of int for Fortran.
1637 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
1639         * libgomp.texi: Fix spelling and pasto problems throughout.
1640         Adjust prototypes to match code.
1642 2010-07-24  Tobias Burnus  <burnus@net-b.de>
1644         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
1645         silence -fwhole-file warning.
1647 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1649         * configure.tgt (*-*-solaris2.[56]*): Removed.
1651 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1653         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
1654         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
1655         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
1656         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
1657         targetting solaris2*.
1658         * configure: Regenerate.
1659         * config.h.in: Regenerate.
1661         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
1662         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
1663         Add libgomp_version_dep.
1664         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
1665         versioning.
1666         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
1667         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
1668         * Makefile.in: Regenerate.
1670         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
1671         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1672         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
1673         to common block, protected by
1674         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1676 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
1678         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
1680 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
1682         PR bootstrap/43170
1683         * configure: Regenerate.
1685 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1687         PR other/43620
1688         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1689         * configure: Regenerate.
1690         * Makefile.in: Regenerate.
1691         * testsuite/Makefile.in: Regenerate.
1693 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
1695         PR c/43893
1696         * testsuite/libgomp.c/pr43893.c: New test.
1697         * testsuite/libgomp.c++/pr43893.C: New test.
1699 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
1701         PR middle-end/43570
1702         * testsuite/libgomp.fortran/vla8.f90: New test.
1704 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
1706         PR libgomp/43706
1707         * config/linux/affinity.c (gomp_init_affinity): Decrease
1708         gomp_available_cpus if affinity mask confines the process to fewer
1709         CPUs.
1710         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
1711         non-NULL, just return gomp_available_cpus.
1713         PR libgomp/43569
1714         * sections.c (gomp_sections_init): Initialize ws->mode.
1716 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
1718         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
1719         not unused bar variable.
1720         * configure: Regenerate.
1722 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1724         * Makefile.in: Regenerate.
1725         * aclocal.m4: Regenerate.
1726         * testsuite/Makefile.in: Regenerate.
1728 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
1730         PR libgomp/42942
1731         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
1732         (initialize_env): Adjust callers.
1733         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
1734         when the argument is 0.
1736         * testsuite/libgomp.c/pr42942.c: New test.
1738 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
1740         PR middle-end/42644
1741         PR middle-end/42130
1742         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1743         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
1745 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1747         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
1748         * testsuite/libgomp.c++/task-6.C: Likewise.
1750 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
1752         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
1754 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
1756         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
1757         * configure: Regenerate.
1759 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
1761         PR fortran/42866
1762         * testsuite/libgomp.fortran/allocatable5.f90: New test.
1764 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
1766         * configure.ac: Test for executability of GFORTRAN.
1767         * configure: Regenerate.
1769 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1771         * configure: Regenerate.
1773 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
1775         PR libgomp/42602
1776         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
1778 2010-01-03  Richard Guenther  <rguenther@suse.de>
1780         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
1782 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
1784         * testsuite/libgomp.graphite/pr4118.c: New.
1786 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1788         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
1789         for darwin, protect the test with require-effective-target tls_runtime.
1790         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1792 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1794         PR target/41605
1795         * testsuite/lib/libgomp.exp: Provide -B options to allow for
1796         link spec %s substitutions for static libraries.
1798 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
1800         PR testsuite/42135
1801         * libgomp.graphite/force-parallel-2.c: Reduce array size.
1803 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1805         * Makefile.in: Regenerate.
1806         * configure: Regenerate.
1807         * testsuite/Makefile.in: Regenerate.
1809 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
1811         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
1812         settings for LC_ALL and LANG.
1814 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
1816         PR fortran/42162
1817         * testsuite/libgomp.fortran/pr42162.f90: New test.
1819 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
1821         PR middle-end/42029
1822         * testsuite/libgomp.c/pr42029.c: New test.
1824 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
1826         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
1827         *s.  Accept ld version without text in ()s.
1828         * configure: Regenerated.
1830 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
1832         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
1834 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1836         PR libgomp/41418
1837         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
1838         or a hyphen (happens with fortran language disabled).
1839         * configure: Regenerate.
1841 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1843         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
1844         use sed script portable to Solaris /bin/sed for extracting ld
1845         version.
1846         * configure: Regenerate.
1848 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
1850         * testsuite/libgomp.graphite/bounds.c: New test.
1852 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1854         * Makefile.am (libgomp_la_LINK): New.
1855         * Makefile.in: Regenerate.
1857 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1859         * configure.ac (AC_PREREQ): Bump to 2.64.
1861 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1863         * Makefile.am (install-html, install-pdf): Remove.
1864         * Makefile.in: Regenerate.
1866         * Makefile.in: Regenerate.
1867         * aclocal.m4: Regenerate.
1868         * config.h.in: Regenerate.
1869         * configure: Regenerate.
1870         * testsuite/Makefile.in: Regenerate.
1872 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1874         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
1875         * Makefile.in: Regenerate.
1877 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
1879         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
1880         * Makefile.in: Regenerate.
1882 2009-08-19  Tobias Burnus  <burnus@net-b.de>
1884         PR fortran/41102
1885         omp_lib.h.in: Fix -std=f95 errors.
1888 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
1890         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
1891         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
1892         * testsuite/libgomp.graphite/graphite.exp: New.
1894 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
1896         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
1897         only build.
1899 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
1901         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
1902         needed memory barrier semantics.
1903         * config/linux/mips/mutex.h: New file.
1905 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1907         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1909 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
1911         * configure: Regenerate.
1913 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
1915         PR testsuite/40699
1916         PR testsuite/40707
1917         PR testsuite/40709
1918         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
1919         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
1920         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
1922 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
1924         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
1925         options when choosing a multilib.
1927 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
1929         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
1930         ld_library_path.  Use add_path.  Add just find_libgcc_s to
1931         ld_library_path, not every libgcc multilib directory.
1932         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
1933         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
1934         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
1935         Use add_path.
1936         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
1938 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
1940         * Makefile.am (LTLDFLAGS): Define.
1941         (LINK): Define.
1942         * Makefile.in: Regenerate.
1944 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
1946         PR fortran/39718
1947         * testsuite/libgomp.fortran/fortran.exp: Don't link with
1948         libgfortranbegin, check existence of libgfortran.a instead of
1949         libgfortranbegin.a.
1951 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
1953         PR libgomp/40174
1954         * team.c (gomp_thread_start): Destroy thr->release semaphore.
1955         (gomp_free_pool_helper): Likewise.
1957 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
1958             Jakub Jelinek  <jakub@redhat.com>
1960         PR fortran/35423
1961         * testsuite/libgomp.fortran/workshare2.f90: New test.
1963 2009-04-09  Nick Clifton  <nickc@redhat.com>
1965         * iter.c: Change copyright header to refer to version 3 of the
1966         GNU General Public License with version 3.1 of the GCC Runtime
1967         Library Exception and to point readers at the COPYING3 and
1968         COPYING3.RUNTIME files and the FSF's license web page.
1969         * alloc.c: Likewise.
1970         * barrier.c: Likewise.
1971         * config/bsd/proc.c: Likewise.
1972         * config/linux/affinity.c: Likewise.
1973         * config/linux/alpha/futex.h: Likewise.
1974         * config/linux/bar.c: Likewise.
1975         * config/linux/bar.h: Likewise.
1976         * config/linux/ia64/futex.h: Likewise.
1977         * config/linux/ia64/mutex.h: Likewise.
1978         * config/linux/lock.c: Likewise.
1979         * config/linux/mips/futex.h: Likewise.
1980         * config/linux/mutex.c: Likewise.
1981         * config/linux/mutex.h: Likewise.
1982         * config/linux/powerpc/futex.h: Likewise.
1983         * config/linux/proc.c: Likewise.
1984         * config/linux/ptrlock.c: Likewise.
1985         * config/linux/ptrlock.h: Likewise.
1986         * config/linux/s390/futex.h: Likewise.
1987         * config/linux/sem.c: Likewise.
1988         * config/linux/sem.h: Likewise.
1989         * config/linux/sparc/futex.h: Likewise.
1990         * config/linux/wait.h: Likewise.
1991         * config/linux/x86/futex.h: Likewise.
1992         * config/mingw32/proc.c: Likewise.
1993         * config/mingw32/time.c: Likewise.
1994         * config/posix/affinity.c: Likewise.
1995         * config/posix/bar.c: Likewise.
1996         * config/posix/bar.h: Likewise.
1997         * config/posix/lock.c: Likewise.
1998         * config/posix/mutex.h: Likewise.
1999         * config/posix/proc.c: Likewise.
2000         * config/posix/ptrlock.h: Likewise.
2001         * config/posix/sem.c: Likewise.
2002         * config/posix/sem.h: Likewise.
2003         * config/posix/time.c: Likewise.
2004         * config/posix95/lock.c: Likewise.
2005         * critical.c: Likewise.
2006         * env.c: Likewise.
2007         * error.c: Likewise.
2008         * fortran.c: Likewise.
2009         * iter_ull.c: Likewise.
2010         * libgomp.h: Likewise.
2011         * libgomp_f.h.in: Likewise.
2012         * libgomp_g.h: Likewise.
2013         * loop.c: Likewise.
2014         * loop_ull.c: Likewise.
2015         * omp.h.in: Likewise.
2016         * omp_lib.f90.in: Likewise.
2017         * omp_lib.h.in: Likewise.
2018         * ordered.c: Likewise.
2019         * parallel.c: Likewise.
2020         * sections.c: Likewise.
2021         * single.c: Likewise.
2022         * task.c: Likewise.
2023         * team.c: Likewise.
2024         * work.c: Likewise.
2026 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
2028         * testsuite/config/default.exp: Change copyright header to refer to
2029         version 3 of the GNU General Public License and to point readers
2030         at the COPYING3 file and the FSF's license web page.
2032 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
2034         PR middle-end/39573
2035         * libgomp.c++/pr39573.C: New test.
2037 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
2039         PR other/39591
2040         * testsuite/libgomp.c/pr39591-1.c: New test.
2041         * testsuite/libgomp.c/pr39591-2.c: New test.
2042         * testsuite/libgomp.c/pr39591-3.c: New test.
2044 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
2046         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
2047         * testsuite/libgomp.c/atomic-6.c: Ditto.
2049 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
2051         PR c/39495
2052         * testsuite/libgomp.c/loop-12.c: New test.
2053         * testsuite/libgomp.c/loop-11.c: New test.
2054         * testsuite/libgomp.c++/loop-11.C: New test.
2055         * testsuite/libgomp.c++/loop-12.C: New test.
2056         * testsuite/libgomp.c++/for-8.C: New test.
2058 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2060         * configure: Regenerate.
2062 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
2064         PR middle-end/39154
2065         * testsuite/libgomp.c/pr39154.c: New test.
2067 2009-01-30  Ian Lance Taylor  <iant@google.com>
2069         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
2070         libgomp_ld_is_gold.  Get gold version number.
2071         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
2072         * configure: Rebuild.
2074 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
2076         * testsuite/lib/libgomp.exp: Add -B option for targets that
2077         use libgfortran.a%s in their specs.
2079 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
2081         PR libgomp/38086
2082         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
2083         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
2084         HAVE_AS_SYMVER_DIRECTIVE is not defined.
2085         * configure: Regenerated.
2086         * config.h.in: Likewise.
2088 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
2090         PR c++/38650
2091         * testsuite/libgomp.c/pr38650.c: New test.
2092         * testsuite/libgomp.c++/pr38650.C: New test.
2094 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
2096         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
2098 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
2100         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
2102 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2104         * configure: Regenerate.
2106 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
2108         PR middle-end/36802
2109         * testsuite/libgomp.c/pr36802-1.c: New test.
2110         * testsuite/libgomp.c/pr36802-2.c: New test.
2111         * testsuite/libgomp.c/pr36802-3.c: New test.
2113 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
2115         PR libgomp/38270
2116         * config/linux/powerpc/mutex.h: New.
2118 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
2120         PR c++/38257
2121         * testsuite/libgomp.c++/for-7.C: New test.
2123         PR c++/38348
2124         * testsuite/libgomp.c++/for-6.C: New test.
2126 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
2128         PR testsuite/28870
2129         * testsuite/lib/libgomp.exp: Include new timeout library files.
2130         (libgomp_target_compile): Set timeout value from new proc.
2132 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
2134         PR libgomp/37938
2135         * config/linux/ia64/mutex.h: New.
2137 2008-11-04  Tobias Burnus  <burnus@net-b.de>
2139         PR libgomp/37935
2140         * libgomp.texi (Runtime library routines, environment variables):
2141         Update for OpenMP version 3.0.
2143 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
2144             Steve Ellcey  <sje@cup.hp.com>
2146         * configure: Regenerate for new libtool.
2147         * Makefile.in: Ditto.
2148         * testsuite/Makefile.in: Ditto.
2150 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
2151             Andreas Tobler  <a.tobler@schweiz.org>
2153         * config/bsd/proc.c: New file.
2154         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
2155         * configure.ac: Check for header <sys/sysctl.h>
2156         * configure: Regenerate.
2157         * config.h.in: Likewise.
2159 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
2161         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
2163 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2165         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
2166         * Makefile.in: Regenerated.
2167         * testsuite/Makefile.in: Regenerated.
2169 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
2171         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
2172         depend on blddir if blddir exists.
2173         (libgomp_target_compile): Likewise.
2174         * testsuite/libgomp.c++/c++.exp: Likewise.
2175         * testsuite/libgomp.fortran/fortran.exp: Likewise.
2177 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2179         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
2180         Do not list GPL as Invariant Section.
2182 2008-07-28  Ilie Garbacea  <ilie@mips.com>
2183             Chao-ying Fu  <fu@mips.com>
2185         * configure.tgt: Enable futex for MIPS.
2186         * config/linux/mips/futex.h: New file.
2188 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
2190         * team.c (gomp_team_end): Free team immediately if it has
2191         just one thread.
2193 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
2195         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
2196         * testsuite/libgomp.fortran/fortran.exp: Same.
2197         * testsuite/libgomp.c/c.exp: Same.
2198         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
2199         directory to library path first.
2201 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
2203         * env.c (parse_stacksize): Add cast to avoid warning.
2204         (parse_spincount): Likewise.
2206 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
2208         * testsuite/libgomp.c/loop-10.c: New test.
2209         * libgomp.c/loop-3.c (main): Add lastprivate clause.
2210         * libgomp.c++/loop-6.C (main): Likewise.
2212         PR debug/36617
2213         * testsuite/libgomp.c/debug-1.c: New test.
2215 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
2217         * testsuite/libgomp.c/nqueens-1.c: New test.
2219         PR c++/36523
2220         * testsuite/libgomp.c++/task-7.C: New function.
2222 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2224         * configure: Regenerate.
2226 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2228         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
2229         mutex when HAVE_SYNC_BUILTINS isn't defined.
2231 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2233         * libgomp.texi (omp_test_lock): Fix typo.
2235 2008-06-12  Tobias Burnus  <burnus@net-b.de>
2237         * omp_lib.f90.in: Add "implicit none".
2239 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
2241         PR middle-end/36506
2242         * testsuite/libgomp.c/reduction-5.c: New test.
2244 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
2246         * libgomp.h (struct gomp_task): Add in_tied_task field.
2247         * task.c (gomp_init_task): Initialize it.
2248         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
2249         unconditionally.  Don't call gomp_team_barrier_wake if
2250         current task is implicit or if(0) from implicit and number of
2251         running tasks is equal to nthreads - 1.
2253         PR libgomp/36471
2254         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
2255         omp_get_team_size_8): Fix pastos.
2257         PR libgomp/36469
2258         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
2259         * configure: Regenerated.
2260         * config.h.in: Regenerated.
2261         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
2262         defined.
2264 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
2266         PR bootstrap/36452
2267         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
2268         (GOMP_loop_ull_dynamic_start): Likewise.
2269         (GOMP_loop_ull_guided_start): Likewise.
2270         (GOMP_loop_ull_ordered_static_start): Likewise.
2271         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
2272         (GOMP_loop_ull_ordered_guided_start): Likewise.
2274 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
2275             Richard Henderson  <rth@redhat.com>
2276             Ulrich Drepper  <drepper@redhat.com>
2277             Jakob Blomer  <jakob.blomer@ira.uka.de>
2279         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
2280         Substitute also OMP_*LOCK_25*.
2281         * configure: Regenerated.
2282         * config.h.in: Regenerated.
2283         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
2284         ptrlock.c and task.c.
2285         * Makefile.in: Regenerated.
2286         * testsuite/Makefile.in: Regenerated.
2287         * task.c: New file.
2288         * loop_ull.c: New file.
2289         * iter_ull.c: New file.
2290         * libgomp.h: Include ptrlock.h.
2291         (enum gomp_task_kind): New type.
2292         (struct gomp_team): Add task_lock, task_queue, task_count,
2293         task_running_count, single_count fields.  Add
2294         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
2295         Remove work_share_lock, generation_mask,
2296         oldest_live_gen, num_live_gen and init_work_shares fields, add
2297         work work_share_list_alloc, work_share_list_free and work_share_chunk
2298         fields.  Change work_shares from pointer to pointers into an array.
2299         Change ordered_release field into gomp_sem_t ** from flexible array
2300         member.  Add implicit_task and initial_work_shares fields.
2301         Move close to the end of the struct.
2302         (struct gomp_team_state): Add single_count, last_work_share,
2303         active_level and level fields, remove work_share_generation.
2304         (gomp_barrier_handle_tasks): New prototype.
2305         (gomp_finish_task): New inline function.
2306         (struct gomp_work_share): Move chunk_size, end, incr into
2307         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
2308         next_ll fields.  Reshuffle fields.  Add next_alloc,
2309         next_ws, next_free and inline_ordered_team_ids fields, change
2310         ordered_team_ids into pointer from flexible array member.
2311         Add mode field.  Put lock and next into a different cache line
2312         from most of the write-once fields.
2313         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
2314         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
2315         gomp_iter_ull_guided_next): New prototypes.
2316         (gomp_new_icv): New prototype.
2317         (struct gomp_thread): Add thread_pool and task fields.
2318         (struct gomp_thread_pool): New type.
2319         (gomp_new_team): New prototype.
2320         (gomp_team_start): Change type of last argument.
2321         (gomp_new_work_share): Removed.
2322         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
2323         (gomp_work_share_init_done): New static inline.
2324         (gomp_throttled_spin_count_var, gomp_available_cpus,
2325         gomp_managed_threads): New extern decls.
2326         (gomp_init_task): New prototype.
2327         (gomp_spin_count_var): New extern var decl.
2328         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
2329         or no alias support, or if not PIC.
2330         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
2331         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
2332         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
2333         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
2334         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
2335         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
2336         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
2337         gomp_test_nest_lock_25): New prototypes.
2338         (omp_lock_symver, strong_alias): Define.
2339         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
2340         decls.
2341         (gomp_end_task): New.
2342         (struct gomp_task_icv, gomp_global_icv): New.
2343         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
2344         (struct gomp_task): New.
2345         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2346         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2347         (gomp_icv): New.
2348         (gomp_schedule_type): Reorder enum to match
2349         omp_sched_t.
2350         * team.c (struct gomp_thread_start_data): Add thread_pool and task
2351         fields.
2352         (gomp_thread_start): Add gomp_team_barrier_wait call.
2353         For non-nested case remove clearing of docked thread thr fields.
2354         Use pool fields instead of global gomp_* variables.  Use
2355         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
2356         Create tasks for each member thread.
2357         (free_team): Only destroy team barrier, task_lock here and free it.
2358         (gomp_free_thread): Free last_team if non-NULL.
2359         (gomp_team_end): Call gomp_team_barrier_wait instead of
2360         gomp_barrier_wait.  For nested case call one extra
2361         gomp_barrier_wait.  Move here some destruction from free_team.
2362         Call free_team on pool->last_team if any, rather than freeing
2363         current team.  Destroy work_share_list_free_lock ifndef
2364         HAVE_SYNC_BUILTINS.
2365         (gomp_new_icv): New function.
2366         (gomp_threads, gomp_threads_size, gomp_threads_used,
2367         gomp_threads_dock): Removed.
2368         (gomp_thread_destructor): New variable.
2369         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
2370         functions.
2371         (gomp_team_start): Create new pool if current thread doesn't have
2372         one.  Use pool fields instead of global gomp_* variables.
2373         Initialize thread_pool field for new threads.  Clear single_count.
2374         Change last argument from ws to team, don't create
2375         new team, set ts.work_share to &team->work_shares[0] and clear
2376         ts.last_work_share.  Don't clear ts.work_share_generation.
2377         If number of threads changed, adjust atomically gomp_managed_threads.
2378         Use gomp_init_task instead of gomp_new_task,
2379         set thr->task to the corresponding implicit_task array entry.
2380         Create tasks for each member thread.  Initialize ts.level.
2381         (initialize_team): Call pthread_key_create on
2382         gomp_thread_destructor.
2383         (team_destructor): New function.
2384         (new_team): Removed.
2385         (gomp_new_team): New function.
2386         (free_team): Free gomp_work_share blocks chained through next_alloc,
2387         instead of freeing work_shares and destroying work_share_lock.
2388         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
2389         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
2390         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
2391         of gomp_barrier_wait.
2392         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
2393         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
2394         if gomp_work_share_start returned true.  Don't unlock ws->lock.
2395         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
2396         of gomp_barrier_wait.
2397         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
2398         gomp_work_share_init_done if gomp_work_share_start returned true.
2399         Don't unlock ws->lock.
2400         * work.c: Include stddef.h.
2401         (free_work_share): Use work_share_list_free_lock instead
2402         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
2403         Call gomp_fini_work_share and then either free ws if orphaned, or
2404         put it into work_share_list_free list of the current team.
2405         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
2406         functions.
2407         (gomp_work_share_start, gomp_work_share_end,
2408         gomp_work_share_end_nowait): Rewritten.
2409         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
2410         (openmp_version): Set to 200805.
2411         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
2412         omp_sched_guided, omp_sched_auto): New parameters.
2413         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2414         omp_set_max_active_levels, omp_get_max_active_levels,
2415         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2416         omp_get_active_level): New interfaces.
2417         * omp_lib.h.in (openmp_version): Set to 200805.
2418         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
2419         omp_sched_guided, omp_sched_auto): New parameters.
2420         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2421         omp_set_max_active_levels, omp_get_max_active_levels,
2422         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2423         omp_get_active_level): New externals.
2424         * loop.c: Include limits.h.
2425         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
2426         GFS_AUTO.
2427         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
2428         Likewise.  Use gomp_icv.
2429         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
2430         ts.static_trip here.
2431         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
2432         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
2433         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
2434         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
2435         don't unlock ws->lock, otherwise lock it.
2436         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
2437         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
2438         (gomp_parallel_loop_start): Call gomp_new_team instead of
2439         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
2440         Adjust gomp_team_start caller.  Pass 0 as second argument to
2441         gomp_resolve_num_threads.
2442         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
2443         If adding ws->chunk_size nthreads + 1 times after end won't
2444         overflow, set ws->mode to 1.
2445         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
2446         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
2447         GOMP_loop_ull_ordered_static_start,
2448         GOMP_loop_ull_ordered_dynamic_start,
2449         GOMP_loop_ull_ordered_guided_start,
2450         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
2451         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
2452         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
2453         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
2454         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
2455         prototypes.
2456         * libgomp.map: Export lock routines also @@OMP_2.0.
2457         (GOMP_loop_ordered_dynamic_first,
2458         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
2459         GOMP_loop_ordered_static_first): Remove.
2460         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
2461         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
2462         GOMP_loop_ull_ordered_dynamic_next,
2463         GOMP_loop_ull_ordered_dynamic_start,
2464         GOMP_loop_ull_ordered_guided_next,
2465         GOMP_loop_ull_ordered_guided_start,
2466         GOMP_loop_ull_ordered_runtime_next,
2467         GOMP_loop_ull_ordered_runtime_start,
2468         GOMP_loop_ull_ordered_static_next,
2469         GOMP_loop_ull_ordered_static_start,
2470         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
2471         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
2472         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
2473         (omp_set_schedule, omp_get_schedule,
2474         omp_get_thread_limit, omp_set_max_active_levels,
2475         omp_get_max_active_levels, omp_get_level,
2476         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
2477         omp_set_schedule_, omp_set_schedule_8_,
2478         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2479         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2480         omp_get_max_active_levels_, omp_get_level_,
2481         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2482         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2483         New exports @@OMP_3.0.
2484         * omp.h.in (omp_sched_t): New type.
2485         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2486         omp_set_max_active_levels, omp_get_max_active_levels,
2487         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2488         omp_get_active_level): New prototypes.
2489         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
2490         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
2491         gomp_thread_limit_var, gomp_remaining_threads_count,
2492         gomp_remaining_threads_lock): New variables.
2493         (parse_spincount): New function.
2494         (initialize_env): Call gomp_init_num_threads unconditionally.
2495         Initialize gomp_available_cpus.  Call parse_spincount,
2496         initialize gomp_{,throttled_}spin_count_var
2497         depending on presence and value of OMP_WAIT_POLICY and
2498         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
2499         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
2500         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
2501         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
2502         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
2503         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2504         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2505         (gomp_global_icv): New.
2506         (parse_schedule): Use it.  Parse "auto".
2507         (omp_set_num_threads): Use gomp_icv.
2508         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
2509         Likewise.
2510         (omp_get_max_threads): Move from parallel.c.
2511         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2512         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
2513         add ialias.
2514         (parse_stacksize, parse_wait_policy): New functions.
2515         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
2516         both wrappers for compatibility and new locks.
2517         (omp_set_schedule, omp_get_schedule,
2518         omp_get_thread_limit, omp_set_max_active_levels,
2519         omp_get_max_active_levels, omp_get_level,
2520         omp_get_ancestor_thread_num, omp_get_team_size,
2521         omp_get_active_level): New ialias_redirect.
2522         (omp_set_schedule_, omp_set_schedule_8_,
2523         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2524         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2525         omp_get_max_active_levels_, omp_get_level_,
2526         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2527         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2528         New functions.
2529         * parallel.c: Include limits.h.
2530         (gomp_resolve_num_threads): Add count argument.  Rewritten.
2531         (GOMP_parallel_start): Call gomp_new_team and pass that as last
2532         argument to gomp_team_start.  Pass 0 as second argument to
2533         gomp_resolve_num_threads.
2534         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
2535         if gomp_thread_limit_var != ULONG_MAX.
2536         (omp_in_parallel): Implement using ts.active_level.
2537         (omp_get_max_threads): Move to env.c.
2538         (omp_get_level, omp_get_ancestor_thread_num,
2539         omp_get_team_size, omp_get_active_level): New functions,
2540         add ialias.
2541         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
2542         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
2543         gomp_iter_dynamic_next instead of the _locked variant and don't take
2544         lock around it, otherwise acquire it before calling
2545         gomp_iter_dynamic_next_locked.
2546         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
2547         gomp_iter_dynamic_next instead of the _locked variant and don't take
2548         lock around it.
2549         (GOMP_parallel_sections_start): Call gomp_new_team instead of
2550         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
2551         Adjust gomp_team_start caller.  Pass count as second argument to
2552         gomp_resolve_num_threads, don't adjust num_threads after the call.
2553         Use gomp_icv.
2554         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
2555         ws->chunk_size by incr.
2556         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
2557         code.
2558         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
2559         types.
2560         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
2561         (omp_check_defines): Check even the compat defines.
2562         * config/linux/ptrlock.c: New file.
2563         * config/linux/ptrlock.h: New file.
2564         * config/linux/wait.h: New file.
2565         * config/posix/ptrlock.c: New file.
2566         * config/posix/ptrlock.h: New file.
2567         * config/linux/bar.h (gomp_team_barrier_wait,
2568         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2569         (gomp_team_barrier_set_task_pending,
2570         gomp_team_barrier_clear_task_pending,
2571         gomp_team_barrier_set_waiting_for_tasks,
2572         gomp_team_barrier_waiting_for_tasks,
2573         gomp_team_barrier_done): New inlines.
2574         (gomp_barrier_t): Rewritten.
2575         (gomp_barrier_state_t): New typedef.
2576         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
2577         gomp_barrier_wait_start): Rewritten.
2578         (gomp_barrier_wait_end): Change second argument to
2579         gomp_barrier_state_t.
2580         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2581         inlines.
2582         * config/linux/bar.c: Include wait.h instead of libgomp.h and
2583         futex.h.
2584         (gomp_barrier_wait_end): Rewritten.
2585         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2586         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
2587         * config/posix/bar.h (gomp_barrier_t): Add generation field.
2588         (gomp_barrier_state_t): New typedef.
2589         (gomp_team_barrier_wait,
2590         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2591         (gomp_barrier_wait_start): Or all but low 2 bits from generation
2592         into the return value.  Return gomp_barrier_state_t.
2593         (gomp_team_barrier_set_task_pending,
2594         gomp_team_barrier_clear_task_pending,
2595         gomp_team_barrier_set_waiting_for_tasks,
2596         gomp_team_barrier_waiting_for_tasks,
2597         gomp_team_barrier_done): New inlines.
2598         (gomp_barrier_wait_end): Change second argument to
2599         gomp_barrier_state_t.
2600         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2601         inlines.
2602         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
2603         (gomp_barrier_wait_end): Change second argument to
2604         gomp_barrier_state_t.
2605         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2606         gomp_team_barrier_wake): New functions.
2607         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
2608         futex.h.
2609         (gomp_futex_wake, gomp_futex_wait): New variables.
2610         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
2611         * config/linux/lock.c: Rewrite to make locks task owned,
2612         for backwards compatibility provide the old entrypoints
2613         if symbol versioning.  Include wait.h instead of libgomp.h and
2614         futex.h.
2615         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
2616         * config/posix95/lock.c: Rewrite to make locks task owned,
2617         for backwards compatibility provide the old entrypoints
2618         if symbol versioning.
2619         * config/posix/lock.c: Rewrite to make locks task owned,
2620         for backwards compatibility provide the old entrypoints
2621         if symbol versioning.
2622         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
2623         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
2624         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
2625         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2626         (sys_futex0): Return error code.
2627         (futex_wake, futex_wait): If ENOSYS was returned, clear
2628         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2629         (cpu_relax, atomic_write_barrier): New static inlines.
2630         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2631         (futex_wake, futex_wait): If ENOSYS was returned, clear
2632         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2633         (cpu_relax, atomic_write_barrier): New static inlines.
2634         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2635         (sys_futex0): Return error code.
2636         (futex_wake, futex_wait): If ENOSYS was returned, clear
2637         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2638         (cpu_relax, atomic_write_barrier): New static inlines.
2639         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2640         (sys_futex0): Return error code.
2641         (futex_wake, futex_wait): If ENOSYS was returned, clear
2642         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2643         (cpu_relax, atomic_write_barrier): New static inlines.
2644         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2645         (sys_futex0): Return error code.
2646         (futex_wake, futex_wait): If ENOSYS was returned, clear
2647         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2648         (cpu_relax, atomic_write_barrier): New static inlines.
2649         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2650         (sys_futex0): Return error code.
2651         (futex_wake, futex_wait): If ENOSYS was returned, clear
2652         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2653         (cpu_relax, atomic_write_barrier): New static inlines.
2654         * config/linux/sem.c: Include wait.h instead of libgomp.h and
2655         futex.h.
2656         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
2657         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
2658         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
2659         types.
2660         (omp_nest_lock_t): Change owner into void *, add lock field.
2661         * config/posix95/omp-lock.h: Include semaphore.h.
2662         (omp_lock_25_t, omp_nest_lock_25_t): New types.
2663         (omp_lock_t): Use sem_t instead of mutex if semaphores
2664         aren't broken.
2665         (omp_nest_lock_t): Likewise.  Change owner to void *.
2666         * config/posix/omp-lock.h: Include semaphore.h.
2667         (omp_lock_25_t, omp_nest_lock_25_t): New types.
2668         (omp_lock_t): Use sem_t instead of mutex if semaphores
2669         aren't broken.
2670         (omp_nest_lock_t): Likewise.  Add owner field.
2672 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
2674         * testsuite/libgomp.c/collapse-1.c: New test.
2675         * testsuite/libgomp.c/collapse-2.c: New test.
2676         * testsuite/libgomp.c/collapse-3.c: New test.
2677         * testsuite/libgomp.c/icv-1.c: New test.
2678         * testsuite/libgomp.c/icv-2.c: New test.
2679         * testsuite/libgomp.c/lib-2.c: New test.
2680         * testsuite/libgomp.c/lock-1.c: New test.
2681         * testsuite/libgomp.c/lock-2.c: New test.
2682         * testsuite/libgomp.c/lock-3.c: New test.
2683         * testsuite/libgomp.c/loop-4.c: New test.
2684         * testsuite/libgomp.c/loop-5.c: New test.
2685         * testsuite/libgomp.c/loop-6.c: New test.
2686         * testsuite/libgomp.c/loop-7.c: New test.
2687         * testsuite/libgomp.c/loop-8.c: New test.
2688         * testsuite/libgomp.c/loop-9.c: New test.
2689         * testsuite/libgomp.c/nested-3.c: New test.
2690         * testsuite/libgomp.c/nestedfn-6.c: New test.
2691         * testsuite/libgomp.c/sort-1.c: New test.
2692         * testsuite/libgomp.c/task-1.c: New test.
2693         * testsuite/libgomp.c/task-2.c: New test.
2694         * testsuite/libgomp.c/task-3.c: New test.
2695         * testsuite/libgomp.c/task-4.c: New test.
2696         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
2697         to C++ testsuite default compiler options.
2698         * testsuite/libgomp.c++/collapse-1.C: New test.
2699         * testsuite/libgomp.c++/collapse-2.C: New test.
2700         * testsuite/libgomp.c++/ctor-10.C: New test.
2701         * testsuite/libgomp.c++/for-1.C: New test.
2702         * testsuite/libgomp.c++/for-2.C: New test.
2703         * testsuite/libgomp.c++/for-3.C: New test.
2704         * testsuite/libgomp.c++/for-4.C: New test.
2705         * testsuite/libgomp.c++/for-5.C: New test.
2706         * testsuite/libgomp.c++/loop-8.C: New test.
2707         * testsuite/libgomp.c++/loop-9.C: New test.
2708         * testsuite/libgomp.c++/loop-10.C: New test.
2709         * testsuite/libgomp.c++/task-1.C: New test.
2710         * testsuite/libgomp.c++/task-2.C: New test.
2711         * testsuite/libgomp.c++/task-3.C: New test.
2712         * testsuite/libgomp.c++/task-4.C: New test.
2713         * testsuite/libgomp.c++/task-5.C: New test.
2714         * testsuite/libgomp.c++/task-6.C: New test.
2715         * testsuite/libgomp.fortran/allocatable1.f90: New test.
2716         * testsuite/libgomp.fortran/allocatable2.f90: New test.
2717         * testsuite/libgomp.fortran/allocatable3.f90: New test.
2718         * testsuite/libgomp.fortran/allocatable4.f90: New test.
2719         * testsuite/libgomp.fortran/collapse1.f90: New test.
2720         * testsuite/libgomp.fortran/collapse2.f90: New test.
2721         * testsuite/libgomp.fortran/collapse3.f90: New test.
2722         * testsuite/libgomp.fortran/collapse4.f90: New test.
2723         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
2724         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
2725         * testsuite/libgomp.fortran/lib4.f90: New test.
2726         * testsuite/libgomp.fortran/lock-1.f90: New test.
2727         * testsuite/libgomp.fortran/lock-2.f90: New test.
2728         * testsuite/libgomp.fortran/nested1.f90: New test.
2729         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
2730         * testsuite/libgomp.fortran/strassen.f90: New test.
2731         * testsuite/libgomp.fortran/tabs1.f90: New test.
2732         * testsuite/libgomp.fortran/tabs2.f: New test.
2733         * testsuite/libgomp.fortran/task1.f90: New test.
2734         * testsuite/libgomp.fortran/task2.f90: New test.
2735         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
2736         * testsuite/libgomp.fortran/vla5.f90: Likewise.
2737         * testsuite/libgomp.c/pr26943-2.c: Likewise.
2738         * testsuite/libgomp.c/pr26943-3.c: Likewise.
2739         * testsuite/libgomp.c/pr26943-4.c: Likewise.
2741 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
2743         PR c++/36308
2744         * testsuite/libgomp.c++/ctor-11.C: New test.
2745         * testsuite/libgomp.c++/ctor-12.C: New test.
2747 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
2749         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
2751 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
2753         PR middle-end/36106
2754         * testsuite/libgomp.c/atomic-5.c: New test.
2755         * testsuite/libgomp.c/atomic-6.c: New test.
2756         * testsuite/libgomp.c/autopar-1.c: New test.
2758 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2760         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
2761         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
2762         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
2763         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
2764         * configure: Regenerate.
2765         * Makefile.in, testsuite/Makefile.in: Likewise.
2767 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
2769         PR bootstrap/35457
2770         * aclocal.m4: Regenerate.
2771         * configure: Regenerate.
2773 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
2775         PR middle-end/35611
2776         * testsuite/libgomp.c/atomic-4.c: New test.
2778         PR libgomp/35625
2779         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
2780         (gomp_iter_guided_next): Likewise.
2781         * testsuite/libgomp.c/pr35625.c: New test.
2783 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2785         * aclocal.m4: Regenerate.
2786         * configure: Likewise.
2787         * Makefile.in: Likewise.
2788         * testsuite/Makefile.in: Likewise.
2790 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
2792         PR middle-end/35185
2793         * testsuite/libgomp.c++/pr35185.C: New test.
2795 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
2797         PR middle-end/35549
2798         * testsuite/libgomp.c/pr35549.c: New test.
2800 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
2802         * testsuite/libgomp.c/atomic-3.c: New test.
2804 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2806         PR fortran/33197
2807         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
2808         .F08 file suffixes.
2810 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
2812         PR libgomp/33131
2813         * configure.ac: Add ACX_HEADER_STRING.
2814         * env.c: Include strings.h.
2815         * aclocal.m4: Regenerate.
2816         * config.h.in: Regenerate.
2817         * configure: Regenerate.
2818         * Makefile.in: Regenerate.
2819         * testsuite/Makefile.in: Regenerate.
2821 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
2823         PR middle-end/35196
2824         * testsuite/libgomp.c/pr35196.c: New test.
2826         PR middle-end/35130
2827         * testsuite/libgomp.fortran/pr35130.f90: New test.
2828         * testsuite/libgomp.c/pr35130.c: New test.
2830 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
2832         PR middle-end/33880
2833         * testsuite/libgomp.c/pr33880.c: New test.
2834         * testsuite/libgomp.fortran/pr33880.f90: New test.
2836 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
2838         * configure: Regenerate.
2840 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
2842         * configure.ac: Move futex checking into ../config/futex.m4.
2843         * configure: Rebuilt.
2844         * aclocal.m4: Rebuilt.
2845         * Makefile.in: Rebuilt.
2847         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
2848         2007-10-15 ../config/tls.m4 change.
2850 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
2852         PR c++/34513
2853         * testsuite/libgomp.c/pr34513.c: New test.
2854         * testsuite/libgomp.c++/pr34513.C: New test.
2856 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
2858         PR target/32765
2859         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
2861 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
2863         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
2865 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
2867         * testsuite/libgomp.c/private-1.c: New test.
2869 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
2870             Paolo Bonzini  <bonzini@gnu.org>
2872         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
2873         instead of 'VPATH ='.
2874         * Makefile.in: Regenerate.
2876 2007-11-23  Matthias Klose  <doko@ubuntu.com>
2878         * configure.ac: Adjust makeinfo version check.
2879         * configure: Regenerate.
2881 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
2883         PR fortran/34020
2884         * testsuite/libgomp.fortran/pr34020.f90: New test.
2886 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
2888         PR c++/33894
2889         * testsuite/libgomp.c++/atomic-1.C: New test.
2891 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
2893         PR libgomp/33275
2894         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
2895         Make x and y integers rather than (implicit) reals.  Add private (j)
2896         clause to the last omp parallel.
2898 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
2900         * configure: Regenerate following changes to ../config/tls.m4.
2902 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
2904         * testsuite/libgomp.fortran/stack.f90: New test.
2906 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
2908         * config/mingw32/proc.c: New file.
2910 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
2912         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
2913         (main): Use __get_cpuid to get i386 target fetaures.
2914         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
2915         (main): Use __get_cpuid to get x86_64 target fetaures.
2917 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
2919         PR target/32765
2920         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
2921         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
2923 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
2925         PR fortran/32550
2926         * testsuite/libgomp.fortran/pr32550.f90: New test.
2927         * testsuite/libgomp.fortran/crayptr2.f90: New test.
2929 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
2931         * aclocal.m4: Regenerated.
2933 2007-07-05  Tobias Burnus  <burnus@net-b.de>
2935         PR fortran/32359
2936         * testsuite/libgomp.fortran/pr32359.f90: New.
2938 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
2940         PR libgomp/32468
2941         * sections.c (GOMP_parallel_sections_start): Only decrease
2942         number of threads to COUNT if dyn_var is true.
2943         * testsuite/libgomp.c/pr32468.c: New test.
2945 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2947         PR libgomp/26308
2948         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
2950 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
2952         PR middle-end/32362
2953         * testsuite/libgomp.c/pr32362-1.c: New test.
2954         * testsuite/libgomp.c/pr32362-2.c: New test.
2955         * testsuite/libgomp.c/pr32362-3.c: New test.
2957 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
2959         * team.c (gomp_team_start): Fix setting up thread_attr
2960         stack size.
2962 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
2964         * configure: Regenerate.
2966 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
2968         * Makefile.in: Regenerate.
2969         * configure: Regenerate.
2970         * aclocal.m4: Regenerate.
2971         * testsuite/Makefile.in: Regenerate.
2973 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
2975         * config/linux/proc.c: New file.
2977         PR libgomp/28482
2978         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
2980 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
2982         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
2984 2007-04-16  Matthias Klose  <doko@debian.org>
2986         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
2987         flags if not building with -m64.
2988         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
2989         flag for i?86-*-* targets, if current target matches -m64.
2991 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
2993         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
2994         * Makefile.in: Regenerate.
2996 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2998         PR testsuite/31369
2999         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
3000         ld_library_path.
3001         * testsuite/libgomp.fortran/fortran.exp: Likewise.
3003 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
3005         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
3006         decls.
3007         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
3008         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
3009         (parse_affinity): New function.
3010         (initialize_env): Call it and gomp_init_affinity.
3011         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
3012         create new pthread_attr_t and call gomp_init_thread_affinity
3013         on it for each thread before passing the attribute to pthread_create.
3014         * config/linux/affinity.c: New file.
3015         * config/posix/affinity.c: New file.
3016         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
3017         * configure: Rebuilt.
3018         * config.h.in: Rebuilt.
3019         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
3020         * Makefile.in: Rebuilt.
3022 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
3024         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
3025         *-*-darwin*.
3026         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
3027         and use it if found.
3029 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
3031         * testsuite/config/default.exp: New file.
3032         * testsuite/lib/libgomp.exp: New file.
3033         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
3034         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
3035         load_lib *, load_gcc_lib *): Move to libgomp.exp.
3036         (libgomp_load): Remove.
3037         * testsuite/lib/libgomp.exp (libgomp_init): Compute
3038         always_ld_library_path, not ld_library_path.  Set additional_flags
3039         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
3040         (target_compile): Do not call libgomp_init.  Append lang_library_path
3041         and lang_link_flags to options.
3042         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
3043         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
3044         here.
3045         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
3046         always_ld_library_path.  Set LD_LIBRARY_PATH here.
3047         * testsuite/libgomp.fortran/fortran.exp: Ditto.
3048         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
3049         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
3050         CX8 flag.
3051         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
3052         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
3053         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
3054         * testsuite/libgomp.c/pr29947-1.c: Ditto.
3055         * testsuite/libgomp.c/atomic-10.c: Ditto.
3057 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
3059         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
3060         dg-final cleanup-modules line.
3061         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
3062         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
3063         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
3064         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
3065         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
3066         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
3067         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
3069 2007-03-18  Andreas Schwab  <schwab@suse.de>
3071         * acinclude.m4: Adjust regular expression for ld version
3072         extraction.
3073         * configure: Regenerate.
3075 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
3077         * Makefile.am: Add install-pdf target as copied from
3078         automake v1.10 rules.
3079         * Makefile.in: Regenerate
3081 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
3083         PR libgomp/28486
3084         * configure: Regenerate.
3086         PR c++/30703
3087         * testsuite/libgomp.c++/pr30703.C: New test.
3089 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
3091         Revert:
3092         2006-07-05  Eric Christopher  <echristo@apple.com>
3093         * configure.ac: Depend addition of -pthread on host OS.
3094         * configure: Regenerate.
3096 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3098         * libgomp.texi: Fix spacing after abbreviations.
3100 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
3102         PR libgomp/30546
3103         * configure.ac: Add check for makeinfo
3104         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
3105         if an appropiate version of makeinfo is found.
3106         * aclocal.m4: Regenerated.
3107         * configure: Regenerated.
3108         * Makefile.in: Regenerated.
3109         * testsuite/Makefile.in: Regenerated.
3111 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
3113         PR libgomp/30540
3114         * libgomp.texi: More about implementation-dependent settings.
3116 2007-01-26  Tobias Burnus  <burnus@net-b.de>
3118         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
3120 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
3122         PR middle-end/30494
3123         * testsuite/libgomp.c/pr30494.c: New test.
3125 2007-01-15  Tom Tromey  <tromey@redhat.com>
3127         * configure: Rebuilt.
3128         * configure.ac: Fixed comment.
3130 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
3132         * libgomp.texi: Document implementation specific default values of
3133         environment variables.
3135 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
3137         PR libgomp/28209
3138         * libgomp.texi: New file.
3139         * configure.ac: Add --enable-generated-files-in-srcdir option.
3140         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
3141         files to srcdir.
3142         * Makefile.in: Regenerated.
3143         * config.h.in: Regenerated.
3144         * testsuite/Makefile.in: Regenerated.
3145         * NOTES: Removed.
3147 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
3149         PR libgomp/29949
3150         * env.c (omp_set_num_threads): Set illegal thread count to 1.
3152 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
3154         * configure: Regenerate.
3156 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
3158         PR libgomp/29947
3159         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
3160         start if there shouldn't be any loop iterations.
3161         (gomp_loop_ordered_static_start): Remove start == end test.
3162         * testsuite/libgomp.c/pr29947-1.c: New test.
3163         * testsuite/libgomp.c/pr29947-2.c: New test.
3165 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
3167         * configure.tgt: Force initial-exec TLS model on Linux only.
3169 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
3171         * configure: Regenerated.
3173 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
3175         * env.c (parse_schedule): Reject out of range values.
3176         (parse_unsigned_long): Reject out of range, negative or zero values.
3178 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
3180         PR fortran/29629
3181         * testsuite/libgomp.fortran/pr29629.f90: New test.
3183 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
3185         PR libgomp/29494
3186         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
3187         * config/posix95: New directory.
3188         * config/posix95/omp-lock.h: New file.
3189         * config/posix95/lock.c: Likewise.
3191 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
3193         * aclocal.m4: Regenerate.
3194         * configure: Regenerate.
3196 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
3198         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
3199         '<' to '<='.
3201 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
3203         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
3204         test.
3205         * configure: Regenerate.
3206         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
3208 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
3210         PR middle-end/25261
3211         PR middle-end/28790
3212         * testsuite/libgomp.c/nestedfn-4.c: New test.
3213         * testsuite/libgomp.c/nestedfn-5.c: New test.
3214         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
3216         PR fortran/29097
3217         * testsuite/libgomp.fortran/condinc1.f: New test.
3218         * testsuite/libgomp.fortran/condinc2.f: New test.
3219         * testsuite/libgomp.fortran/condinc3.f90: New test.
3220         * testsuite/libgomp.fortran/condinc4.f90: New test.
3221         * testsuite/libgomp.fortran/condinc1.inc: New file.
3223 2006-09-18  Tom Tromey  <tromey@redhat.com>
3225         * configure: Rebuilt.
3227 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
3229         PR c/28768
3230         PR preprocessor/14634
3231         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
3232         to AC_DEFINE.
3233         * configure: Regenerate.
3235 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
3237         * testsuite/libgomp.fortran/reduction3.f90: Change
3238         -2147483648 to -huge(i)-1 to avoid overflow.
3239         * testsuite/libgomp.fortran/reduction4.f90: Change
3240         Z'ffffffff' to not(0) to avoid overflow.
3242 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
3244         PR libgomp/25938
3245         * Makefile.am (libsubincludedir): New.
3246         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
3247         * Makefile.in: Regenerate.
3249 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
3251         PR libgomp/28725
3252         * env.c: Include ctype.h.
3253         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
3254         leading and/or trailing whitespace and compare strings case
3255         insensitively.
3257 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
3259         PR fortran/28390
3260         * testsuite/libgomp.fortran/pr28390.f: New test.
3262 2006-07-05  Eric Christopher  <echristo@apple.com>
3264         * configure.ac: Depend addition of -pthread on host OS.
3265         * configure: Regenerate.
3267 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
3269         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
3270         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
3271         defined.
3273 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
3275         PR libgomp/26175
3276         PR libgomp/26477
3277         * configure.ac: If neither --enable-linux-futex nor
3278         --disable-linux-futex is passed, determine the default by checking
3279         for compiling and/or running against NPTL.  With --enable-linux-futex,
3280         check if SYS_gettid and SYS_futex are defined.
3281         * configure: Rebuilt.
3283 2006-06-14  Richard Henderson  <rth@redhat.com>
3285         PR libgomp/28008
3286         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
3287         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
3289 2006-06-09  Richard Henderson  <rth@redhat.com>
3291         * env.c (gomp_nthreads_var): Change to unsigned long.
3292         (gomp_run_sched_chunk): Likewise.
3293         (parse_unsigned_long): Rename from parse_num_threads and generalize.
3294         (initialize_env): Initialize gomp_thread_attr.
3295         * libgomp.h (gomp_nthreads_var): Update decl.
3296         (gomp_run_sched_chunk): Likewise.
3297         (gomp_thread_attr): Declare.
3298         * team.c (gomp_thread_attr): Export.
3299         (initialize_team): Don't initialize it.
3301 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
3303         PR fortran/27916
3304         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
3305         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
3307 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3309         * config/mingw32/time.c: New file.
3310         * configure.tgt: Use it.
3312 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
3314         * Makefile.am: Add install-html target. Add install-html to .PHONY
3315         * Makefile.in: Regenerate.
3317 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3319         PR libgomp/27612
3320         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
3321         * testsuite/libgomp.c/critical-1.c: Likewise.
3322         * testsuite/libgomp.c/loop-1.c: Likewise.
3323         * testsuite/libgomp.c/loop-2.c: Likewise.
3324         * testsuite/libgomp.c/single-1.c: Likewise.
3325         * testsuite/libgomp.c/ordered-1.c: Likewise.
3326         * testsuite/libgomp.c/ordered-2.c: Likewise.
3328 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
3330         PR middle-end/27416
3331         * libgomp.fortran/pr27416-1.f90: New test.
3333 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
3335         PR fortran/27395
3336         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
3337         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
3339 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
3341         PR c++/26943
3342         * testsuite/libgomp.c/pr26943-1.c: New test.
3343         * testsuite/libgomp.c/pr26943-2.c: New test.
3344         * testsuite/libgomp.c/pr26943-3.c: New test.
3345         * testsuite/libgomp.c/pr26943-4.c: New test.
3346         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
3347         * testsuite/libgomp.c++/pr26943.C: New test.
3349 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
3351         PR middle-end/27337
3352         * testsuite/libgomp.c++/pr27337.C: New test.
3354 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
3356         PR c/26171
3357         * testsuite/libgomp.c/pr26171.c: New test.
3359 2006-04-25  Richard Henderson  <rth@redhat.com>
3361         PR libgomp/25865
3362         * configure.ac: Use GCC_CHECK_TLS.
3363         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
3364         * Makefile.in, aclocal.m4, configure: Regenerate.
3366 2006-04-10  Matthias Klose  <doko@debian.org>
3368         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
3369         directory names containing underscores.
3371 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
3373         PR c++/26691
3374         * testsuite/libgomp.c++/pr26691.C: New test.
3376 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
3378         * testsuite/libgomp.fortran/retval2.f90: New test.
3380 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
3382         * testsuite/libgomp.c++: New directory.
3384 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
3386         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
3387         * config/posix/sem.c: Implement the above.
3389 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
3391         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
3392         define HAVE_BROKEN_POSIX_SEMAPHORES.
3393         * configure: Rebuilt.
3394         * config.h.in: Rebuilt.
3396 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3398         PR bootstrap/26161
3399         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
3400         for the other pthread check.
3401         * configure: Regenerate.
3402         * config.h.in: Regenerate.
3404 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
3406         PR libgomp/25938
3407         PR libgomp/25984
3408         * Makefile.am (fincludedir): New variable.
3409         (nodist_include_HEADERS): Remove Fortran files.
3410         (nodist_finclude_HEADERS): New variable.
3411         * Makefile.in: Regenerated.
3413 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
3415         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
3416         Remove tests for returning assumed character length arrays.
3418 2006-02-12  Roger Sayle  <roger@eyesopen.com>
3419             John David Anglin  <dave@hiauly1.hia.nrc.ca>
3421         PR libgomp/25936
3422         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
3424 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
3426         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
3428 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
3430         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
3431         part of LD_LIBRARY_PATH manually.
3433 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
3435         PR libgomp/25852
3436         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
3437         libgomp_init.
3439 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
3441         PR libgomp/25884
3442         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
3443         * configure.ac (PERL): Don't set.
3444         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
3445         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
3446         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
3447         * omp.h.in: Wrap the new configure substitutions with @ characters.
3448         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
3449         * aclocal.m4, configure, Makefile.in: Regenerate.
3450         * mkomp_h.pl: Delete.
3452 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
3454         PR libgomp/25259
3455         * configure.ac: Use GCC_HEADER_STDINT.
3456         * libgomp.h: Include gstdint.h.
3457         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
3458         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
3460 2006-01-24  Richard Henderson  <rth@redhat.com>
3462         PR libgomp/25942
3463         * configure.ac: Add AM_MAINTAINER_MODE.
3464         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
3466 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
3468         * Makefile.in: Regenerate.
3469         * testsuite/Makefile.in: Regenerate.
3470         * aclocal.m4: Regenerate.
3472 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
3474         * config/posix/proc.c: Conditional include of sys/loadavg.h for
3475         Solaris.
3476         * configure.ac: Add check for loadavg.h.
3477         (link_gomp): Adjust comment.
3478         * configure: Regenerate.
3479         * config.h.in: Regenerate.
3481 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
3483         PR libgomp/25877
3484         * configure.ac: Remove check for alloca.h.
3485         * configure: Regenerate.
3486         * config.h.in: Regenerate.
3487         * libgomp.h: define gomp_alloca to be __builtin_alloca.
3488         * team.c: Remove use of alloca.h.
3489         Call gomp_alloca instead of alloca.
3491 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
3493         PR libgomp/25877
3494         * team.c: Add include of alloca.h.
3495         * configure.ac: Add check for alloca.h.
3496         * configure: Regenerate.
3497         * config.h.in: Regenerate.
3499 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
3501         PR fortran/25219
3502         * testsuite/libgomp.fortran/pr25219.f90: New test.
3504 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
3506         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
3507         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
3508         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3509         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3510         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
3511         testsuite/libgomp.fortran/threadprivate1.f90,
3512         testsuite/libgomp.fortran/threadprivate2.f90,
3513         testsuite/libgomp.fortran/threadprivate3.f90,
3514         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3515         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3516         testsuite/libgomp.fortran/omp_parse3.f90: Change required
3517         effective-target to TLS runtime.
3519         * testsuite/libgomp.fortran/pr25162.f: Require
3520         effective-target TLS runtime.
3522 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
3524         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
3525         * testsuite/libgomp.c/nestedfn-3.c: New test.
3527 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
3529         PR fortran/25162
3530         * testsuite/libgomp.fortran/pr25162.f: New test.
3532 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
3534         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
3535         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
3537 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
3539         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
3540         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
3541         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
3542         single.c, team.c, work.c, config/linux/alpha/futex.h,
3543         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
3544         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
3545         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
3546         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
3547         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
3548         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
3549         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
3550         FSF address.
3552 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
3554         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
3555         to nodist_noinst_HEADERS.
3556         * Makefile.in: Rebuilt.
3558         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
3559         add integer count field.
3560         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
3561         omp_nest_lock_t type change.
3562         (omp_init_nest_lock): Likewise.  Initialize count to 0.
3563         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
3564         Increment count.
3565         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
3566         Decrement count.
3567         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
3568         Increment count if successful and return the new nesting level.
3569         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
3570         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
3571         * testsuite/libgomp.c/lib-1.c: New test.
3572         * testsuite/libgomp.fortran/lib1.f90: New test.
3573         * testsuite/libgomp.fortran/lib2.f: New test.
3574         * testsuite/libgomp.fortran/lib3.f: New test.
3576 2005-11-17  Richard Henderson  <rth@redhat.com>
3578         PR 24845
3579         * Makefile.am (nodist_toolexeclib_HEADERS): New.
3580         * configure.ac (link_gomp): New.  Substitute it.
3581         (AC_CONFIG_FILES): Add libgomp.spec.
3582         * libgomp.spec.in: New file.
3583         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
3584         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
3586 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
3588         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
3589         reduction(-:var) behaving the same as reduction(+:var).
3590         * testsuite/libgomp.c/reduction-4.c: New test.
3592 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
3594         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
3595         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
3596         testsuite/libgomp.c/copyin-3.c,
3597         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3598         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3599         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
3600         testsuite/libgomp.c++/pr24455.C,
3601         testsuite/libgomp.fortran/threadprivate1.f90,
3602         testsuite/libgomp.fortran/threadprivate2.f90,
3603         testsuite/libgomp.fortran/threadprivate3.f90,
3604         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3605         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3606         testsuite/libgomp.fortran/omp_parse3.f90: Require
3607         effective-target TLS.
3609 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
3611         * HEADER: Remove.
3613 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
3615         PR libgomp/24797
3616         * team.c (initialize_team): Pass NULL rather than free as
3617         pthread_key_create destructor.  Initialize thread specific data
3618         pointer in initial thread to a static local variable rather than
3619         malloced memory.
3621 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
3623         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
3624         its location to ld_library_path.
3626 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
3628         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
3630 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
3632         * testsuite/libgomp.c: Rename from libgomp.dg.
3634 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
3636         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
3637         threadprivate variable 'i'.
3639 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
3641         * config/linux/s390/futex.h: New file.
3642         * configure.tgt: Use it.
3644         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
3645         before the parallel.
3647 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
3649         PR c++/24734
3650         * testsuite/libgomp.c++/master-1.C: New test.
3652 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
3654         * testsuite/libgomp.dg/copyin-3.c: New test.
3656 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
3658         * testsuite/libgomp.fortran/retval1.f90: New test.
3659         * testsuite/libgomp.fortran/vla7.f90: New test.
3661 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
3663         * testsuite/libgomp.fortran/vla2.f90: New test.
3664         * testsuite/libgomp.fortran/vla3.f90: New test.
3665         * testsuite/libgomp.fortran/vla4.f90: New test.
3666         * testsuite/libgomp.fortran/vla5.f90: New test.
3667         * testsuite/libgomp.fortran/vla6.f90: New test.
3669 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
3671         * config/linux/sparc/futex.h: New file.
3672         * configure.tgt: Use it.
3673         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
3675         * critical.c: Include stdlib.h.
3676         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
3677         ignoring return value.
3678         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
3679         LIBGOMP_CHECK_SYNC_BUILTINS check.
3680         * configure: Rebuilt.
3682 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
3684         * testsuite/libgomp.fortran/vla1.f90: New test.
3686 2005-10-31  Richard Henderson  <rth@redhat.com>
3688         * testsuite/libgomp.fortran/character2.f90: Fix race condition
3689         setting 's' in different threads.
3691 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
3693         * libgomp.h (attribute_hidden, ialias): Define.
3694         * config/posix/proc.c (omp_get_num_procs): Add ialias.
3695         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
3696         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
3697         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3698         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3699         omp_test_lock, omp_test_nest_lock): Likewise.
3700         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
3701         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3702         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3703         omp_test_lock, omp_test_nest_lock): Likewise.
3704         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
3705         omp_get_dynamic, omp_get_nested): Likewise.
3706         * parallel.c (omp_get_num_threads, omp_get_max_threads,
3707         omp_get_thread_num, omp_in_parallel): Likewise.
3708         * fortran.c (ialias_redirect): Define.
3709         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
3710         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
3711         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
3712         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
3713         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
3714         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
3715         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
3716         omp_get_wtime): Add ialias_redirect.
3718 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
3720         * fortran.c: Include stdlib.h.
3722 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
3724         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
3725         * Makefile.in: Regenerated.
3727 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
3729         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
3730         * libgomp_f.h.in (omp_check_defines): New function.
3731         * env.c: Include libgomp_f.h.
3732         (initialize_env): Call omp_check_defines.
3734         * testsuite/libgomp.dg/copyin-2.c: New test.
3735         * testsuite/libgomp.c++/copyin-2.C: New test.
3736         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
3738         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
3739         * testsuite/libgomp.fortran/sharing2.f90: New test.
3741         * testsuite/libgomp.dg/copyin-1.c: New test.
3742         * testsuite/libgomp.c++/copyin-1.C: New test.
3744 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
3746         * testsuite/libgomp.fortran/crayptr1.f90: New test.
3748         * testsuite/libgomp.fortran/workshare1.f90: New test.
3750         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
3751         only test.
3752         * libgomp.fortran/sharing1.f90: New test.
3754 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
3756         PR c++/24502
3757         * testsuite/libgomp.c++/loop-7.C: New test.
3759         * testsuite/libgomp.dg/nestedfn-2.c: New test.
3761         * testsuite/libgomp.dg/nestedfn-1.c: New test.
3762         * testsuite/libgomp.fortran/reduction6.f90: New test.
3763         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
3765 2005-10-23  Richard Henderson  <rth@redhat.com>
3767         * testsuite/libgomp.c++/ctor-1.C: New.
3768         * testsuite/libgomp.c++/ctor-2.C: New.
3769         * testsuite/libgomp.c++/ctor-3.C: New.
3770         * testsuite/libgomp.c++/ctor-4.C: New.
3771         * testsuite/libgomp.c++/ctor-5.C: New.
3772         * testsuite/libgomp.c++/ctor-6.C: New.
3773         * testsuite/libgomp.c++/ctor-7.C: New.
3774         * testsuite/libgomp.c++/ctor-8.C: New.
3775         * testsuite/libgomp.c++/ctor-9.C: New.
3777 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
3779         PR 24455
3780         * testsuite/libgomp.c++/pr24455-1.C: New test.
3781         * testsuite/libgomp.c++/pr24455.C: New test.
3782         * testsuite/libgomp.dg/pr24455-1.c: New test.
3783         * testsuite/libgomp.dg/pr24455.c: New test.
3785 2005-10-20  Richard Henderson  <rth@redhat.com>
3787         * testsuite/libgomp.c++/loop-6.C: New.
3788         * testsuite/libgomp.dg/loop-3.c: New.
3790 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
3792         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
3793         explicitly private.
3794         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
3795         explicitly shared.
3797 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
3799         * testsuite/libgomp.fortran/jacobi.f: New test.
3801 2005-10-19  Richard Henderson  <rth@redhat.com>
3803         * configure.tgt (i?86-linux): Default to with_arch instead of
3804         CFLAGS.  Add -mtune to match target_cpu.
3805         (x86_64-linux): Tune to i686.
3807         * fortran.c (omp_test_nest_lock_): Fix typo.
3809 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
3811         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3812         gomp_ordered_sync): Do nothing if team->nthreads == 1.
3813         * testsuite/libgomp.dg/ordered-3.c: New test.
3815         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
3816         Remove volatile keyword.
3818         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
3819         in COMMON block to avoid warnings on 64-bit targets.
3821 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
3823         * testsuite/libgomp.dg/shared-3.c: New test.
3825 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
3827         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
3828         * testsuite/libgomp.fortran/reduction5.f90: New test.
3830 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
3832         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
3833         dg-options.
3834         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
3835         flush loop now that __sync_synchronize has proper memory barrier.
3836         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
3837         Add -ffixed-form to dg-options.
3839 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
3841         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
3842         from subdirectories.
3843         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
3844         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
3845         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
3846         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
3847         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
3848         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
3849         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
3850         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
3851         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
3852         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
3853         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
3854         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
3855         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
3856         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
3857         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
3858         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
3859         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
3860         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
3861         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
3862         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
3863         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
3864         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
3865         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
3866         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
3867         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
3869 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
3871         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
3872         lang_library_path exists.  Use find instead of glob to gather tests.
3873         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
3875 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
3877         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
3878         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
3879         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
3880         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
3881         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
3882         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
3883         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
3884         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
3885         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
3886         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
3887         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
3888         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
3889         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
3891 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
3893         * testsuite/libgomp.dg/vla-1.c: New test.
3895         * testsuite/libgomp.fortran/reference2.f90: New test.
3897         * testsuite/libgomp.fortran/character2.f90: Remove explicit
3898         declaration of omp_get_thread_num.
3899         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
3900         use omp_lib.
3902         * testsuite/libgomp.fortran/reduction1.f90: New test.
3903         * testsuite/libgomp.fortran/reduction2.f90: New test.
3904         * testsuite/libgomp.fortran/reduction3.f90: New test.
3905         * testsuite/libgomp.fortran/reduction4.f90: New test.
3907 2005-10-13  Richard Henderson  <rth@redhat.com>
3909         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
3910         * Makefile.in: Regenerate.
3911         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
3912         * libgomp.h: Include bar.h.
3913         (struct gomp_barrier): Remove.
3914         (struct gomp_team): Add barrier.  Replace master_barrier with
3915         master_release.  Replace threads with ordered_release.
3916         (struct gomp_thread): Replace barrier with release.
3917         * ordered.c (gomp_ordered_first): Update for ordered_release change.
3918         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
3919         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
3920         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
3921         (GOMP_single_copy_end): Likewise.
3922         * team.c (gomp_threads_dock): New.
3923         (gomp_barrier_init, gomp_barrier_destroy): Remove.
3924         (gomp_thread_start): Use gomp_barrier_wait.
3925         (new_team, free_team): Update for gomp_team changes.
3926         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
3927         (gomp_team_end): Use gomp_barrier_wait.
3928         (initialize_team): Update for gomp_thread changes.
3929         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
3930         (gomp_work_share_end_nowait): Use atomic ops when available.
3931         * config/linux/bar.c, config/linux/bar.h: New files.
3932         * config/posix/bar.c, config/posix/bar.h: New files.
3934 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
3936         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
3937         * testsuite/libgomp.dg/single-2.c: New test.
3939         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
3940         lang_link_flags): Unset, so that they aren't inherited from previously
3941         sourced *.exp.
3943         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
3945 2005-10-12  Richard Henderson  <rth@redhat.com>
3947         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
3948         (libgomp_init): Use lang_test_file, lang_library_path, and
3949         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
3951         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
3952         (lang_test_file, lang_link_flags): New.
3953         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
3955         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
3956         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
3957         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
3958         testsuite/libgomp.c++/parallel-1.C,
3959         testsuite/libgomp.c++/reduction-1.C,
3960         testsuite/libgomp.c++/reduction-2.C,
3961         testsuite/libgomp.c++/reduction-3.C,
3962         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
3963         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
3964         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
3965         New files, largely cribbed from the C testsuite.
3967 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
3969         * testsuite/libgomp.fortran/character1.f90: New test.
3970         * testsuite/libgomp.fortran/character2.f90: New test.
3972         * testsuite/libgomp.dg/nested-1.c: New test.
3973         * testsuite/libgomp.dg/nested-2.c: New test.
3974         * testsuite/libgomp.fortran/do1.f90: New test.
3975         * testsuite/libgomp.fortran/do2.f90: New test.
3977         * testsuite/libgomp.fortran/reference1.f90: New test.
3979 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
3981         * testsuite/libgomp.dg/reduction-1.c: New test.
3982         * testsuite/libgomp.dg/reduction-2.c: New test.
3983         * testsuite/libgomp.dg/reduction-3.c: New test.
3985 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
3987         * testsuite/libgomp.dg/atomic-1.c: New test.
3988         * testsuite/libgomp.dg/atomic-2.c: New test.
3990 2005-10-09  Richard Henderson  <rth@redhat.com>
3992         * critical.c (atomic_lock): New.
3993         (initialize_critical): Initialize it.
3994         (GOMP_atomic_start, GOMP_atomic_end): New.
3995         * libgomp.map: Export them.
3996         * libgomp_g.h: Declare them.
3998         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
4000 2005-10-02  Richard Henderson  <rth@redhat.com>
4002         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
4003         to XCFLAGS instead of CFLAGS.
4005 2005-09-30  Richard Henderson  <rth@redhat.com>
4007         * configure.ac: Determine whether -pthread or -lpthread is needed.
4008         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
4009         * Makefine.in, configure: Rebuild.
4011 2005-09-28  Richard Henderson  <rth@redhat.com>
4013         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
4014         * testsuite/libgomp.dg/omp-single-3.c: New test.
4016 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
4018         * testsuite/libgomp.dg/omp-single-2.c: New test.
4019         * testsuite/libgomp.dg/shared-2.c: Fix return code.
4021 2005-09-27  Richard Henderson  <rth@redhat.com>
4023         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
4024         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
4026 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
4028         * testsuite/libgomp.dg/omp-loop03.c: New test.
4030 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
4032         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
4034 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
4036         * testsuite/libgomp.dg/omp-single-1.c: New test.
4037         * testsuite/libgomp.dg/shared-1.c: Return 0.
4038         Add prototype for abort.
4039         * testsuite/libgomp.dg/shared-2.c: Likewise.
4041 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
4043         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
4044         constructs.
4046 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
4048         * testsuite/libgomp.dg/shared-1.c: New test.
4049         * testsuite/libgomp.dg/shared-2.c: New test.
4051 2005-09-24  Richard Henderson  <rth@redhat.com>
4053         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
4055 2005-09-24  Richard Henderson  <rth@redhat.com>
4057         * iter.c (gomp_iter_static_next): Round up when computing number
4058         of iterations.  Don't bother distributing a remainder equally.
4060         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
4061         Don't call srand.  Zero b before testing.
4062         (main): New.
4064 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
4066         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
4067         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
4069 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
4071         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
4072         without !$omp end do, followed immediately by subroutine end.
4074 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
4076         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
4078 2005-09-22  Richard Henderson  <rth@redhat.com>
4080         * critical.c (GOMP_critical_name_start): Change argument to void**.
4081         Reuse the pointer space if the mutex fits.
4082         (GOMP_critical_name_end): Likewise.
4083         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
4084         * libgomp_g.h (GOMP_critical_name_start): Update decl.
4085         (GOMP_critical_name_end): Likewise.
4086         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
4087         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
4089 2005-09-20  Richard Henderson  <rth@redhat.com>
4091         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
4092         (create_lock_lock): New.
4093         (initialize_critical): Initialize it.
4094         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
4095         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
4097 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
4099         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
4101 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
4103         * testsuite/libgomp.dg/omp-loop01.c: New test.
4104         * testsuite/libgomp.dg/omp-loop02.c: New test.
4106 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
4108         * configure.ac (AC_PROG_FC): Add.
4109         (USE_FORTRAN): New automake conditional.
4110         * configure: Rebuilt.
4111         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
4112         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
4113         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
4114         Add rules to build them.
4115         * Makefile.in: Rebuilt.
4116         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
4117         OMP_NEST_LOCK_KIND.
4118         * libgomp.map: Add Fortran wrappers.
4119         * libgomp_f.h.in: New file.
4120         * omp_lib.h.in: New file.
4121         * omp_lib.f90.in: New file.
4122         * fortran.c: New file.
4123         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
4124         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
4125         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
4126         libgfortran has been built.
4127         * testsuite/libgomp.fortran/fortran.exp: New file.
4128         * testsuite/libgomp.fortran/omp_cond1.f: New test.
4129         * testsuite/libgomp.fortran/omp_cond2.f: New test.
4130         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
4131         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
4132         * testsuite/libgomp.fortran/omp_hello.f: New test.
4133         * testsuite/libgomp.fortran/omp_orphan.f: New test.
4134         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
4135         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
4136         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
4137         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
4138         * testsuite/libgomp.fortran/omp_reduction.f: New test.
4139         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
4140         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
4142 2005-08-30  Richard Henderson  <rth@redhat.com>
4144         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
4145         function for when aliases are not usable.
4146         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
4147         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
4148         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
4149         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
4150         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
4151         GOMP_loop_ordered_guided_next): Likewise.
4152         * ordered.c (GOMP_ordered_start): Likewise.
4154 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
4156         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
4157         * testsuite/libgomp.dg/omp_hello.c: Fix return code
4158         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
4159         * testsuite/libgomp.dg/omp_orphan.c: Likewise
4160         * testsuite/libgomp.dg/omp_reduction.c: Likewise
4161         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
4162         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
4163         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
4164         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
4166 2005-07-07  Eric Christopher  <echristo@redhat.com>
4167             Diego Novillo  <dnovillo@redhat.com>
4169         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
4170         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
4171         up code.
4172         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
4173         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
4174         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
4175         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
4176         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
4177         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
4178         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
4180 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
4182         * TOPLEVEL.patch: Remove.
4184 2005-05-16  Richard Henderson  <rth@redhat.com>
4186         * configure.ac: Test for clock_gettime.
4187         * config.h.in, configure: Rebuild.
4188         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
4189         (omp_get_wtime): Use clock_gettime if available.
4190         (omp_get_wtick): Use clock_getres if available.
4192 2005-05-11  Richard Henderson  <rth@redhat.com>
4194         * config/linux/ia64/futex.h: New file.
4195         * configure.tgt: Use it.
4197         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
4199 2005-05-07  Richard Henderson  <rth@redhat.com>
4201         * config/linux/powerpc/futex.h: New file.
4202         * configure.tgt: Use it.
4204         * config/linux/i486/futex.h: Merge ...
4205         * config/linux/x86_64/futex.h: ... into ...
4206         * config/linux/x86/futex.h: ... here.
4207         * configure.tgt: Update to match.
4209 2005-05-06  Richard Henderson  <rth@redhat.com>
4211         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
4212         * config/linux/i486/futex.h: Likewise.
4213         * config/linux/x86_64/futex.h: Likewise.
4215         * config/linux/lock.c: New file.
4216         * config/linux/omp-lock.h: New file.
4218         * critical.c, env.h: Don't include omp.h
4219         * config/posix/lock.c: Include libgomp.h instead of omp.h.
4220         * config/posix/time.c: Likewise.
4221         * config/posix/omp-lock.h: New file.
4222         * libgomp.h: Include omp-lock.h and omp.h.
4223         * Makefile.am (nodist_include_HEADERS): New.
4224         (omp.h): New rule.
4225         * configure.ac (PERL): New.
4226         * mkomp_h.pl: New file.
4227         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
4228         with templates.
4229         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
4231         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
4232         build directory.  Re-add -march=i486 hack.
4234         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
4235         (libgomp_link_flags): Remove.
4236         (libgomp_initialized): Remove.
4237         (libgomp_init): Don't protect from reinitialization.  Copy code
4238         from libstdc++ for getting the multilib set correctly.
4240 2005-05-05  Richard Henderson  <rth@redhat.com>
4242         * config/linux/alpha/futex.h: New file.
4243         * configure.tgt (alpha*-*-linux*): Use it.
4245         * config/posix/mutex.c: New file.
4246         * config/posix/sem.c: Use libgomp.h.
4248         * configure.tgt (x86_64-linux): Also test CC for -m32.
4249         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
4251         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
4252         after $gccpath.
4254         * Makefile.am (SUBDIRS): New.
4255         (libgomp_la_LDFLAGS): Add -lpthread.
4256         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
4257         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
4259         * libgomp_g.h: New file.
4260         * libgomp.h: Split out all public declarations to libgomp_g.h.
4261         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
4262         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
4263         * config/linux/sem.h: Likewise.
4264         * config/posix/sem.h: Likewise.
4266         * Makefile.am (AM_LDFLAGS): New.
4267         (libgomp_version_script): Split out from ...
4268         (libgomp_la_LDFLAGS): ... here.
4269         (libgomp_version_info): New.
4270         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
4271         (LIBGOMP_ENABLE): New.
4272         (LIBGOMP_CHECK_LINKER_FEATURES): New.
4273         (LIBGOMP_ENABLE_SYMVERS): New.
4274         * configure.ac (AC_INIT): Version 1.0.
4275         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
4276         (enable-linux-futex): Likewise.  Rename from enable-futex.
4277         (libtool_VERSION): New.
4278         (LIBGOMP_ENABLE_SYMVERS): Use it.
4279         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
4280         * Makefile.in, aclocal.m4, configure: Rebuild.
4282         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
4283         (gomp_mutex_unlock_slow): Fix typo.
4284         * config/linux/sem.c: Similarly.
4285         (gomp_sem_post_slow): Fix typo.
4286         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
4287         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
4288         [__PIC__] (sys_futex0): Don't use tmp output in asm.
4290         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
4291         (libgomp_la_LDFLAGS): Add top_srcdir to path.
4292         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
4293         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
4294         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
4295         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
4296         LDFLAGS.  Pull enable_futex check to top-level.
4297         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
4298         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
4300         First attempt at real configury.
4301         * Makefile, config.h: Remove file.
4302         * Makefile.am, Makefile.in: New file.
4303         * acinclude.m4 aclocal.m4: New file.
4304         * configure.ac, configure.tgt, configure: New file.
4306         * config/posix/lock.c: Rename from sys-lock.c.
4307         * config/posix/mutex.h: Rename from sys-mutex.h.
4308         * config/posix/sem.c: Rename from sys-sem.c.
4309         * config/posix/sem.h: Rename from sys-sem.h.
4310         * config/posix/proc.c: Rename from sys-proc.c.
4311         * config/posix/time.c: Rename from sys-proc.c.
4313         * config/linux/mutex.c: New file.
4314         * config/linux/mutex.h: New file.
4315         * config/linux/sem.c: New file.
4316         * config/linux/sem.h: New file.
4317         * config/linux/i486/futex.h: New file.
4318         * config/linux/x86_64/futex.h: New file.
4320 2005-05-04  Richard Henderson  <rth@redhat.com>
4322         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
4323         * libgomp.h: Declare them.
4324         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
4325         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
4327 2005-05-04  Richard Henderson  <rth@redhat.com>
4329         * libgomp-1 code drop
4331 2005-05-04  Richard Henderson  <rth@redhat.com>
4333         * iter.c (gomp_iter_static_next): Return tri-state on 0.
4334         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
4335         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
4336         (gomp_iter_static_next): Update.
4337         (gomp_ordered_static_next): Update.
4338         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
4339         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
4340         totally empty range.
4341         (gomp_loop_ordered_static_next): Refine test for calling
4342         gomp_ordered_static_next.
4343         * testsuite/ordered-1.c: Add case for more threads than iterations.
4345         * iter.c (gomp_iter_runtime_next_locked): Remove.
4346         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
4347         gomp_loop_guided_start, gomp_loop_ordered_static_start,
4348         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
4349         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
4350         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
4351         gomp_loop_ordered_guided_next): Downcase name, make static, add
4352         an external alias with the old name.
4353         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
4354         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
4355         switch and call one of the above static functions.
4356         * libgomp.h: Update.
4358         * work.c (gomp_work_share_start): Lock the mutex for !first too.
4359         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
4360         GOMP_loop_guided_start, GOMP_loop_runtime_start,
4361         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
4362         GOMP_loop_ordered_guided_start): Update to match.
4363         * sections.c (GOMP_sections_start): Likewise.
4364         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
4366         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
4367         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
4368         Use bounds check instead of modulus.
4369         (gomp_ordered_sync): Split out of GOMP_ordered_start.
4370         (gomp_ordered_last): Don't sync with ordered_owner here.
4371         (gomp_ordered_next): Likewise.
4372         (gomp_ordered_static_loop_next): Likewise.
4373         * loop.c, libgomp.h: Update to match.
4375         * libgomp.h (GOMP_barrier): Declare.
4377         * testsuite/barrier-1.c: New file.
4378         * testsuite/critical-1.c: New file.
4379         * testsuite/ordered-2.c: New file.
4380         * testsuite/ordered-1.c: New file.
4381         * testsuite/sections-1.c: New file.
4382         * testsuite/single-1.c: New file.
4383         * testsuite/Makefile (TESTS): Add them.
4385 2005-05-04  Richard Henderson  <rth@redhat.com>
4387         * libgomp.h (struct gomp_work_share): Add ordered_owner.
4388         * loop.c (GOMP_loop_static_start): If not the startup thread,
4389         acquire the mutex to wait for initialization complete.
4390         (GOMP_loop_ordered_static_start): Likewise.
4391         (GOMP_loop_ordered_runtime_start): Likewise.
4392         (GOMP_loop_ordered_static_first): Remove.
4393         (GOMP_loop_ordered_dynamic_first): Remove.
4394         (GOMP_loop_ordered_guided_first): Remove.
4395         (GOMP_loop_ordered_runtime_first): Remove.
4396         * ordered.c (gomp_ordered_loop_first): Post to own release when
4397         we're the first thread.
4398         (gomp_ordered_loop_last): Wait on release if not owner.
4399         (gomp_ordered_loop_next): Likewise.
4400         (gomp_ordered_static_loop_init): New.
4401         (gomp_ordered_static_loop_next): Use ordered_owner.
4402         (GOMP_ordered_start): Likewise.
4403         * work.c (gomp_new_work_share): Initialize ordered_owner.
4405 2005-05-03  Richard Henderson  <rth@redhat.com>
4407         * Makefile (OPT): New.
4408         (CFLAGS): Use it.
4410         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
4411         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
4412         * libgomp.h, libgomp.map, NOTES: Update to match.
4414         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
4415         Add initialized and thr members.
4416         (gomp_thread_start): Pause when initially spawned to wait for
4417         the whole team to be created.
4418         (gomp_team_start): Release team members at the end.
4420         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
4421         (f_foo_1): Use GOMP_loop_end.
4422         (f_foo_2): Use GOMP_loop_end_nowait.
4424         * testsuite/loop-2.c: New file.
4425         * testsuite/Makefile (TESTS): Add it.
4427 2005-05-03  Richard Henderson  <rth@redhat.com>
4429         * iter.c (gomp_iter_static_next): Fix overflow check typo.
4430         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
4431         * team.c (new_team): Initialize oldest_live_gen to 1 if no
4432         initial work_share.
4434         * testsuite/Makefile: New file.
4435         * testsuite/loop-1.c: New file.
4437 2005-05-03  Richard Henderson  <rth@redhat.com>
4439         Initial implementation and checkin.