* sreal.h (sreal::shift): Fix sanity check.
[official-gcc.git] / libgomp / ChangeLog
blob4018bc960b534e6ea54feaae00e2e932319e3759
1 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3         * testsuite/lib/libgomp.exp: Load target-utils.exp.
4         Move load of target-supportes.exp earlier.
6 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
8         * testsuite/libgomp.c/target-9.c: New test.
10 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
12         * config.h.in: Regenerate.
13         * configure: Regenerate.
14         * configure.ac: Add GCC_CHECK_EMUTLS.
15         * libgomp.h: Add check for USE_EMUTLS: this case
16         is equal to HAVE_TLS.
17         * team.c: Likewise.
19 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
21         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
23 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
24             Ilya Verbin  <ilya.verbin@intel.com>
26         * testsuite/libgomp.c/target-critical-1.c: New test.
28 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
30         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
31         to dg-options unless expensive testing is on.
32         (TESTITERS): Define to N if not defined.
33         (main): Use TESTITERS instead of N.
34         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
35         dg-additional-options depending on whether expensive testing is on.
36         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
37         Decrease N to 100000 and CHUNKSZ to 10000.
39 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
41         PR fortran/63938
42         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
43         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
45 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
47         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
49 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
51         PR bootstrap/63784
52         * configure: Regenerated.
54 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
56         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
57         vect_simd_clones effective target.
58         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
60 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
62         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
63         of 32 as block_size.
64         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
65         instead of 32 as block_size.
67 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
68             Ilya Verbin  <ilya.verbin@intel.com>
70         * Makefile.in: Regenerate.
71         * configure: Regenerate.
72         * configure.ac: Set up offload_additional_options,
73         offload_additional_lib_paths and offload_targets.
74         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
75         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
76         * testsuite/Makefile.in: Regenerate.
77         * testsuite/lib/libgomp.exp (libgomp_init): Append
78         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
79         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
80         build directory to LD_LIBRARY_PATH for intelmic offload targets.
82 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
83             Ilya Verbin  <ilya.verbin@intel.com>
84             Kirill Yukhin  <kirill.yukhin@intel.com>
85             Ilya Tocar  <ilya.tocar@intel.com>
87         * testsuite/lib/libgomp.exp
88         (check_effective_target_offload_device): New.
89         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
90         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
91         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
92         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
93         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
94         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
95         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
96         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
97         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
98         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
99         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
100         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
101         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
102         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
103         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
104         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
105         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
106         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
107         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
108         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
109         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
110         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
111         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
112         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
113         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
114         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
115         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
116         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
117         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
118         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
119         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
120         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
121         * testsuite/libgomp.c/target-7.c: Fix test.
122         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
123         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
124         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
125         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
126         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
127         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
128         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
129         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
130         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
131         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
132         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
133         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
134         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
135         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
136         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
137         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
138         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
139         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
140         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
141         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
142         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
143         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
144         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
145         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
146         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
147         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
148         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
149         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
150         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
151         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
152         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
154 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
155             Ilya Verbin  <ilya.verbin@intel.com>
156             Thomas Schwinge  <thomas@codesourcery.com>
157             Andrey Turetskiy  <andrey.turetskiy@intel.com>
159         * libgomp.map (GOMP_4.0.1): New symbol version.
160         Add GOMP_offload_register.
161         * libgomp_target.h: New file.
162         * splay-tree.h: New file.
163         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
164         (gomp_target_init): New forward declaration.
165         (gomp_is_initialized): New static variable.
166         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
167         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
168         New structures.
169         (offload_images, num_offload_images, devices, num_devices): New static
170         variables.
171         (splay_compare): New static function.
172         (struct gomp_device_descr): New structure.
173         (gomp_get_num_devices): Call gomp_target_init.
174         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
175         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
176         (GOMP_offload_register): New function.
177         (GOMP_target): Arrange for host callback to be performed in a separate
178         initial thread and contention group, inheriting ICVs from
179         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
180         Add device initialization and lookup for target function in splay tree.
181         (GOMP_target_data): Add device initialization and call gomp_map_vars.
182         (GOMP_target_end_data): Call gomp_unmap_vars.
183         (GOMP_target_update): Add device initialization and call gomp_update.
184         (gomp_load_plugin_for_device, gomp_register_images_for_device)
185         (gomp_target_init): New static functions.
187 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
188             Thomas Schwinge  <thomas@codesourcery.com>
189             Ilya Verbin  <ilya.verbin@intel.com>
190             Andrey Turetskiy  <andrey.turetskiy@intel.com>
192         * config.h.in: Regenerate.
193         * configure: Regenerate.
194         * configure.ac: Check for libdl, required for plugin support.
195         (PLUGIN_SUPPORT): Define if plugins are supported.
196         (enable_offload_targets): Support Intel MIC targets.
197         (OFFLOAD_TARGETS): List of target names suitable for offloading.
199 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
201         PR target/63610
202         * configure: Regenerate.
204 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
206         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
208 2014-10-06  Marek Polacek  <polacek@redhat.com>
210         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
211         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
212         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
213         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
215 2014-10-06  Marek Polacek  <polacek@redhat.com>
217         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
218         * testsuite/libgomp.c/nqueens-1.c: Likewise.
219         * testsuite/libgomp.c/pr26943-3.c: Likewise.
220         * testsuite/libgomp.c/pr26943-4.c: Likewise.
221         * testsuite/libgomp.c/pr36802-2.c: Likewise.
222         * testsuite/libgomp.c/pr36802-3.c: Likewise.
223         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
224         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
225         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
226         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
227         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
228         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
229         * testsuite/libgomp.c/omp-single-1.c: Likewise.
230         * testsuite/libgomp.c/omp-single-2.c: Likewise.
231         * testsuite/libgomp.c/omp_matvec.c: Likewise.
232         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
233         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
234         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
235         declarations.
237 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
239         PR libgomp/61200
240         * testsuite/libgomp.c/pr61200.c: New test.
242 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
244         PR c++/63248
245         * testsuite/libgomp.c++/pr63248.C: New test.
247 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
249         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
250         is not zero, but taskgroup->children is NULL and there are
251         any task->children, schedule those instead of waiting.
252         * testsuite/libgomp.c/depend-6.c: New test.
253         * testsuite/libgomp.c/depend-7.c: New test.
254         * testsuite/libgomp.c/depend-8.c: New test.
255         * testsuite/libgomp.c/depend-9.c: New test.
256         * testsuite/libgomp.c/depend-10.c: New test.
258 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
260         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
261         (struct gomp_taskwait): New type.
262         (struct gomp_task): Add taskwait and parent_depends_on, remove
263         in_taskwait and taskwait_sem fields.
264         (gomp_finish_task): Don't destroy taskwait_sem.
265         * task.c (gomp_init_task): Don't init in_taskwait, instead init
266         taskwait and parent_depends_on.
267         (GOMP_task): For if (0) tasks with depend clause that depend on
268         earlier tasks don't defer them, instead call
269         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
270         Initialize redundant_out field, for redundant out entries just
271         move them at the end of linked list instead of removing them
272         completely, and set redundant_out flag instead of redundant.
273         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
274         that task.
275         (gomp_task_run_post_handle_dependers): If parent is in
276         gomp_task_maybe_wait_for_dependencies and newly runnable task
277         is not parent_depends_on, queue it in parent->children linked
278         list after all runnable tasks with parent_depends_on set.
279         Adjust for addition of taskwait indirection.
280         (gomp_task_run_post_remove_parent): If parent is in
281         gomp_task_maybe_wait_for_dependencies and task to be removed
282         is parent_depends_on, decrement n_depend and if needed awake
283         parent.  Adjust for addition of taskwait indirection.
284         (GOMP_taskwait): Adjust for addition of taskwait indirection.
285         (gomp_task_maybe_wait_for_dependencies): New function.
286         * testsuite/libgomp.c/depend-5.c: New test.
288 2014-07-13  Tobias Burnus  <burnus@net-b.de>
290         * testsuite/libgomp.fortran/pr34020.f90: Make compile
291         with TS 18508/Fortran 2015.
293 2014-07-06  Marek Polacek  <polacek@redhat.com>
295         PR c/6940
296         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
298 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
300         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
301         matches regex $lang_source_re, add $lang_include_flags to options.
302         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
303         * testsuite/libgomp.c++/c++.exp: Likewise.
304         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
305         and lang_include_flags instead of adding -fintrinsic-modules-path= to
306         ALWAYS_CFLAGS.
307         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
309 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
311         * testsuite/libgomp.fortran/fortran.exp: Explain
312         gfortran-dg-runtest usage.
314 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
316         * testsuite/libgomp.fortran/simd5.f90: New test.
317         * testsuite/libgomp.fortran/simd6.f90: New test.
318         * testsuite/libgomp.fortran/simd7.f90: New test.
320 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
322         * testsuite/libgomp.c/for-2.c: Define SC to static for
323         #pragma omp for simd testing.
324         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
325         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
326         SC macro.
327         * testsuite/libgomp.c/simd-14.c: New test.
328         * testsuite/libgomp.c/simd-15.c: New test.
329         * testsuite/libgomp.c/simd-16.c: New test.
330         * testsuite/libgomp.c/simd-17.c: New test.
331         * testsuite/libgomp.c++/for-10.C: Define SC to static for
332         #pragma omp for simd testing.
333         * testsuite/libgomp.c++/simd10.C: New test.
334         * testsuite/libgomp.c++/simd11.C: New test.
335         * testsuite/libgomp.c++/simd12.C: New test.
336         * testsuite/libgomp.c++/simd13.C: New test.
338         * testsuite/libgomp.fortran/aligned1.f03: New test.
339         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
340         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
341         tasks with !$omp parallel !$omp single.
342         * testsuite/libgomp.fortran/target8.f90: New test.
343         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
344         not to use trim in the combiner, instead call elemental function.
345         (fn): New elemental function.
346         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
347         Make elemental.
348         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
349         omp_in): Likewise.
350         * testsuite/libgomp.fortran/udr12.f90: New test.
351         * testsuite/libgomp.fortran/udr13.f90: New test.
352         * testsuite/libgomp.fortran/udr14.f90: New test.
353         * testsuite/libgomp.fortran/udr15.f90: New test.
355 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
357         * omp_lib.f90.in (openmp_version): Set to 201307.
358         * omp_lib.h.in (openmp_version): Likewise.
359         * testsuite/libgomp.c/target-8.c: New test.
360         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
361         and inbranch clauses.
362         * testsuite/libgomp.fortran/depend-3.f90: New test.
363         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
364         openmp_version.
365         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
366         * testsuite/libgomp.fortran/target1.f90: New test.
367         * testsuite/libgomp.fortran/target2.f90: New test.
368         * testsuite/libgomp.fortran/target3.f90: New test.
369         * testsuite/libgomp.fortran/target4.f90: New test.
370         * testsuite/libgomp.fortran/target5.f90: New test.
371         * testsuite/libgomp.fortran/target6.f90: New test.
372         * testsuite/libgomp.fortran/target7.f90: New test.
374 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
376         PR fortran/60928
377         * testsuite/libgomp.fortran/allocatable9.f90: New test.
378         * testsuite/libgomp.fortran/allocatable10.f90: New test.
379         * testsuite/libgomp.fortran/allocatable11.f90: New test.
380         * testsuite/libgomp.fortran/allocatable12.f90: New test.
381         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
382         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
383         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
384         * testsuite/libgomp.fortran/associate1.f90: New test.
385         * testsuite/libgomp.fortran/associate2.f90: New test.
386         * testsuite/libgomp.fortran/procptr1.f90: New test.
388 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
390         * testsuite/libgomp.fortran/simd1.f90: New test.
391         * testsuite/libgomp.fortran/udr1.f90: New test.
392         * testsuite/libgomp.fortran/udr2.f90: New test.
393         * testsuite/libgomp.fortran/udr3.f90: New test.
394         * testsuite/libgomp.fortran/udr4.f90: New test.
395         * testsuite/libgomp.fortran/udr5.f90: New test.
396         * testsuite/libgomp.fortran/udr6.f90: New test.
397         * testsuite/libgomp.fortran/udr7.f90: New test.
398         * testsuite/libgomp.fortran/udr8.f90: New test.
399         * testsuite/libgomp.fortran/udr9.f90: New test.
400         * testsuite/libgomp.fortran/udr10.f90: New test.
401         * testsuite/libgomp.fortran/udr11.f90: New test.
403 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
405         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
406         vect_simd_clones effective target.
407         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
409 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
411         PR middle-end/61252
412         * testsuite/libgomp.c++/simd-9.C: New test.
414 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
416         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
417         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
418         texts according to their @menu entry positions.
420 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
422         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
423         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
424         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
425         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
426         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
427         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
428         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
429         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
430         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
431         * testsuite/libgomp.fortran/depend-1.f90: New test.
432         * testsuite/libgomp.fortran/depend-2.f90: New test.
433         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
434         * testsuite/libgomp.fortran/simd1.f90: New test.
435         * testsuite/libgomp.fortran/simd2.f90: New test.
436         * testsuite/libgomp.fortran/simd3.f90: New test.
437         * testsuite/libgomp.fortran/simd4.f90: New test.
438         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
440 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
442         * testsuite/libgomp.c/simd-10.c: New test.
443         * testsuite/libgomp.c/simd-11.c: New test.
444         * testsuite/libgomp.c/simd-12.c: New test.
445         * testsuite/libgomp.c/simd-13.c: New test.
447 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
449         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
450         atomic type clauses in any order and optional comma in between.
451         * testsuite/libgomp.c++/atomic-15.C: Likewise.
452         * testsuite/libgomp.c/atomic-17.c: Likewise.
454         * testsuite/libgomp.c/simd-7.c: New test.
455         * testsuite/libgomp.c/simd-8.c: New test.
456         * testsuite/libgomp.c/simd-9.c: New test.
457         * testsuite/libgomp.c/loop-16.c: New test.
459 2014-04-02  Richard Henderson  <rth@redhat.com>
461         * config/linux/futex.h (futex_wait): Get error value from errno.
462         (futex_wake): Likewise.
464 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
466         PR c++/60331
467         * testsuite/libgomp.c++/udr-11.C: New test.
468         * testsuite/libgomp.c++/udr-12.C: New test.
469         * testsuite/libgomp.c++/udr-13.C: New test.
470         * testsuite/libgomp.c++/udr-14.C: New test.
471         * testsuite/libgomp.c++/udr-15.C: New test.
472         * testsuite/libgomp.c++/udr-16.C: New test.
473         * testsuite/libgomp.c++/udr-17.C: New test.
474         * testsuite/libgomp.c++/udr-18.C: New test.
475         * testsuite/libgomp.c++/udr-19.C: New test.
477 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
479         Update copyright years
481 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
483         * hashtab.h: Use the standard form for the copyright notice.
485 2014-01-02  Tobias Burnus  <burnus@net-b.de>
487         * libgomp.texi: Bump @copying's copyright year.
489 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
491         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
492         alloca () with __builtin_alloca ().
493         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
494         * testsuite/libgomp.c/lock-3.c: Likewise.
495         * testsuite/libgomp.c/pr48591.c: Likewise.
497 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
499         PR testsuite/59534
500         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
501         comparisons.
503 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
505         PR libgomp/58756
506         * testsuite/libgomp.c/pr58756.c: New test.
508 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
510         PR libgomp/59467
511         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
512         !$omp parallel.
514 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
516         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
517         ALWAYS_CFLAGS.
518         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
519         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
520         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
521         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
522         Likewise.
524         * libgomp_g.h: Include <stddef.h> for size_t.
526         * libgomp.spec.in: Update comment about libgomp's dependencies.
527         * configure.ac: Likewise.
528         * configure: Regenerate.
530 2013-10-16  Tobias Burnus  <burnus@net-b.de>
532         * libgomp.texi: (Runtime Library Routines): Update references for
533         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
534         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
535         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
536         (Environment Variables): Update references for OpenMP 4.0. Add
537         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
538         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
539         order.
541 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
543         * env.c (parse_bind_var): Initialize value to avoid
544         (false positive) warning.
546 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
548         PR libgomp/58691
549         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
550         to check variable.
551         (gomp_init_num_threads): Move i variable declaration into
552         #ifdef CPU_ALLOC_SIZE block.
553         * config/linux/affinity.c (gomp_affinity_init_level): Test
554         gomp_places_list_len == 0 rather than gomp_places_list == 0
555         when checking for topology reading error.
556         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
557         * env.c (parse_affinity): Add ignore argument, if true, don't populate
558         gomp_places_list, only parse env var and always return false.
559         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
560         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
561         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
562         and either of these variables were parsed correctly into a places
563         list.
565 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
566             Jakub Jelinek  <jakub@redhat.com>
568         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
569         of 5 loopfn matches.
570         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
571         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
572         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
573         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
574         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
575         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
576         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
577         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
579 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
581         * Makefile.am (omp_lib.mod): Streamline rule.
582         * Makefile.in: Regenerate.
584         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
585         exceptions.
587         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
588         * testsuite/libgomp.fortran/lib1.f90: Likewise.
589         * testsuite/libgomp.fortran/lib2.f: Likewise.
590         * testsuite/libgomp.fortran/lib3.f: Likewise.
592         * configure.ac: Typo fix.
593         * configure: Regenerate.
595         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
596         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
598         * omp.h.in: Don't touch the user's namespace.
600 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
601             Tobias Burnus  <burnus@net-b.de>
602             Richard Henderson  <rth@redhat.com>
604         * target.c: New file.
605         * Makefile.am (libgomp_la_SOURCES): Add target.c.
606         * Makefile.in: Regenerated.
607         * libgomp_g.h (GOMP_task): Add depend argument.
608         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
609         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
610         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
611         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
612         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
613         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
614         GOMP_taskgroup_start, GOMP_taskgroup_end,
615         GOMP_parallel_sections): New prototypes.
616         * fortran.c (omp_is_initial_device): Add ialias_redirect.
617         (omp_is_initial_device_): New function.
618         (ULP, STR1, STR2, ialias_redirect): Removed.
619         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
620         omp_set_default_device_8_, omp_get_default_device_,
621         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
622         functions.
623         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
624         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
625         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
626         @@GOMP_4.0.
627         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
628         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
629         omp_set_default_device, omp_set_default_device_,
630         omp_set_default_device_8_, omp_get_default_device,
631         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
632         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
633         omp_get_team_num_): Export @@OMP_4.0.
634         * team.c (struct gomp_thread_start_data): Add place field.
635         (gomp_thread_start): Clear thr->thread_pool and
636         thr->task before returning.  Use gomp_team_barrier_wait_final
637         instead of gomp_team_barrier_wait.  Initialize thr->place.
638         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
639         team_cancelled and task_queued_count fields.
640         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
641         before calling pthread_exit.
642         (gomp_free_thread): No longer static.  Use
643         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
644         (gomp_team_start): Add flags argument.  Set
645         thr->thread_pool->threads_busy to nthreads immediately after creating
646         new pool.  Use gomp_managed_threads_lock instead of
647         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
648         (gomp_team_end): Use gomp_managed_threads_lock instead of
649         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
650         of gomp_team_barrier_wait.  If team->team_cancelled, call
651         gomp_fini_worshare on ws chain starting at team->work_shares_to_free
652         rather than thr->ts.work_share.
653         (initialize_team): Don't call gomp_sem_init here.
654         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
655         caller.
656         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
657         * env.c (gomp_global_icv): Add default_device_var, target_data and
658         bind_var initializers.
659         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
660         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
661         gomp_places_list_len): New variables.
662         (parse_bind_var, parse_one_place, parse_places_var): New functions.
663         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
664         sized places.
665         (gomp_cancel_var): New global variable.
666         (parse_int): New function.
667         (handle_omp_display_env): New function.
668         (initialize_env): Use it.  Initialize default_device_var.
669         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
670         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
671         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
672         been successfully parsed (and call gomp_init_affinity in that case).
673         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
674         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
675         omp_get_team_num, omp_is_initial_device): New functions.
676         * libgomp.h: Include stdlib.h.
677         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
678         Define.
679         (struct target_mem_desc): Forward declare.
680         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
681         and thread_limit_var fields.
682         (gomp_get_num_devices): New prototype.
683         (gomp_cancel_var): New extern decl.
684         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
685         team_cancelled and task_queued_count fields.  Add comments about
686         task_{,queued_,running_}count.
687         (gomp_cancel_kind): New enum.
688         (gomp_work_share_end_cancel): New prototype.
689         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
690         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
691         and depend fields.
692         (struct gomp_taskgroup): New type.
693         (struct gomp_task_depend_entry,
694         struct gomp_dependers_vec): New types.
695         (gomp_finish_task): Free depend_hash if non-NULL.
696         (struct gomp_team_state): Add place_partition_off
697         and place_partition_len fields.
698         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
699         gomp_places_list_len): New extern decls.
700         (struct gomp_thread): Add place field.
701         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
702         (gomp_init_thread_affinity): Add place argument.
703         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
704         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
705         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
706         gomp_affinity_init_level, gomp_affinity_print_place): New
707         prototypes.
708         (gomp_team_start): Add flags argument.
709         (gomp_thread_limit_var, gomp_remaining_threads_count,
710         gomp_remaining_threads_lock): Remove.
711         (gomp_managed_threads_lock): New variable.
712         (struct gomp_thread_pool): Add threads_busy field.
713         (gomp_free_thread): New prototype.
714         * task.c: Include hashtab.h.
715         (hash_entry_type): New typedef.
716         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
717         (gomp_init_task): Clear dependers, depend_hash, depend_count,
718         copy_ctors_done and taskgroup fields.
719         (GOMP_task): Add depend argument, handle depend clauses.  If
720         gomp_team_barrier_cancelled or if it's taskgroup has been
721         cancelled, don't queue or start new tasks.  Set copy_ctors_done
722         field if needed.  Initialize taskgroup field.  If copy_ctors_done
723         and already cancelled, don't discard the task.  If taskgroup is
724         non-NULL, enqueue the task into taskgroup queue.  Increment
725         num_children field in taskgroup.  Increment task_queued_count.
726         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
727         gomp_task_run_post_remove_taskgroup): New inline functions.
728         (gomp_task_run_post_handle_depend_hash,
729         gomp_task_run_post_handle_dependers,
730         gomp_task_run_post_handle_depend): New functions.
731         (GOMP_taskwait): Use them.  If more than one new tasks
732         have been queued, wake other threads if needed.
733         (gomp_barrier_handle_tasks): Likewise.  If
734         gomp_team_barrier_cancelled, don't start any new tasks, just free
735         all tasks.
736         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
737         * omp_lib.f90.in
738         (omp_proc_bind_kind, omp_proc_bind_false,
739         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
740         omp_proc_bind_spread): New params.
741         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
742         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
743         omp_get_team_num, omp_is_initial_device): New interfaces.
744         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
745         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
746         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
747         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
748         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
749         useless use omp_lib_kinds.
750         * omp.h.in (omp_proc_bind_t): New typedef.
751         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
752         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
753         omp_get_team_num, omp_is_initial_device): New prototypes.
754         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
755         through to gomp_team_start.
756         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
757         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
758         Adjust gomp_parallel_loop_start callers.
759         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
760         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
761         GOMP_loop_end_cancel): New functions.
762         (GOMP_parallel_end): Add ialias_redirect.
763         * hashtab.h: New file.
764         * libgomp.texi (Environment Variables): Minor cleanup,
765         update section refs to OpenMP 4.0rc2.
766         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
767         environment variables.
768         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
769         team->work_shares_to_free to thr->ts.work_share before calling
770         free_work_share.
771         (gomp_work_share_end_cancel): New function.
772         * config/linux/proc.c: Include errno.h.
773         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
774         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
775         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
776         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
777         gomp_cpuset_size is sizeof (cpu_set_t).
778         (gomp_init_num_threads): Initialize gomp_cpuset_size,
779         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
780         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
781         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
782         contain any logical CPUs.
783         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
784         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
785         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
786         pthread_getaffinity_np.  Check gomp_places_list instead of
787         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
788         * config/linux/bar.c (gomp_barrier_wait_end,
789         gomp_barrier_wait_last): Use BAR_* defines.
790         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
791         from state where needed.  Set work_share_cancelled to 0 on last
792         thread.
793         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
794         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
795         functions.
796         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
797         Add cpusetsize argument.
798         (gomp_cpuset_size, gomp_cpusetp): Declare.
799         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
800         (affinity_counter): Remove.
801         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
802         if CPU_ALLOC_SIZE isn't defined.
803         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
804         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
805         bind current thread to the first place.
806         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
807         pthread_setaffinity_np to gomp_places_list[place].
808         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
809         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
810         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
811         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
812         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
813         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
814         (gomp_barrier_t): Add awaited_final field.
815         (gomp_barrier_init): Initialize awaited_final field.
816         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
817         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
818         prototypes.
819         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
820         defines.
821         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
822         gomp_team_barrier_cancelled): New inline functions.
823         (gomp_barrier_last_thread,
824         gomp_team_barrier_set_task_pending,
825         gomp_team_barrier_clear_task_pending,
826         gomp_team_barrier_set_waiting_for_tasks,
827         gomp_team_barrier_waiting_for_tasks,
828         gomp_team_barrier_done): Use BAR_* defines.
829         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
830         (gomp_barrier_wait_end): Use BAR_* defines.
831         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
832         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
833         Use BAR_* defines.
834         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
835         gomp_team_barrier_cancel): New functions.
836         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
837         argument.
838         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
839         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
840         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
841         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
842         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
843         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
844         (gomp_barrier_t): Add cancellable field.
845         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
846         gomp_team_barrier_cancel): New prototypes.
847         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
848         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
849         gomp_team_barrier_cancelled): New inline functions.
850         (gomp_barrier_wait_start, gomp_barrier_last_thread,
851         gomp_team_barrier_set_task_pending,
852         gomp_team_barrier_clear_task_pending,
853         gomp_team_barrier_set_waiting_for_tasks,
854         gomp_team_barrier_waiting_for_tasks,
855         gomp_team_barrier_done): Use BAR_* defines.
856         * barrier.c (GOMP_barrier_cancel): New function.
857         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
858         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
859         omp_proc_bind_spread): New params.
860         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
861         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
862         omp_get_team_num, omp_is_initial_device): New externals.
863         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
864         New functions.
865         (gomp_resolve_num_threads): Adjust for thread_limit now being in
866         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
867         infinity.  If not nested, just return minimum of max_num_threads
868         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
869         to the returned value.  Otherwise, don't update atomically
870         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
871         (GOMP_parallel_end): Adjust for thread_limit now being in
872         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
873         infinity.  Adjust threads_busy in the pool rather than
874         gomp_remaining_threads_count.  Remember team->nthreads and call
875         gomp_team_end before adjusting threads_busy, if not nested
876         afterwards, just set it to 1 non-atomically.  Add ialias.
877         (GOMP_parallel_start): Adjust gomp_team_start caller.
878         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
879         * testsuite/libgomp.c/affinity-1.c: New test.
880         * testsuite/libgomp.c/atomic-15.c: New test.
881         * testsuite/libgomp.c/atomic-16.c: New test.
882         * testsuite/libgomp.c/atomic-17.c: New test.
883         * testsuite/libgomp.c/cancel-for-1.c: New test.
884         * testsuite/libgomp.c/cancel-for-2.c: New test.
885         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
886         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
887         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
888         * testsuite/libgomp.c/cancel-sections-1.c: New test.
889         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
890         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
891         * testsuite/libgomp.c/depend-1.c: New test.
892         * testsuite/libgomp.c/depend-2.c: New test.
893         * testsuite/libgomp.c/depend-3.c: New test.
894         * testsuite/libgomp.c/depend-4.c: New test.
895         * testsuite/libgomp.c/for-1.c: New test.
896         * testsuite/libgomp.c/for-1.h: New file.
897         * testsuite/libgomp.c/for-2.c: New test.
898         * testsuite/libgomp.c/for-2.h: New file.
899         * testsuite/libgomp.c/for-3.c: New test.
900         * testsuite/libgomp.c/pr58392.c: New test.
901         * testsuite/libgomp.c/simd-1.c: New test.
902         * testsuite/libgomp.c/simd-2.c: New test.
903         * testsuite/libgomp.c/simd-3.c: New test.
904         * testsuite/libgomp.c/simd-4.c: New test.
905         * testsuite/libgomp.c/simd-5.c: New test.
906         * testsuite/libgomp.c/simd-6.c: New test.
907         * testsuite/libgomp.c/target-1.c: New test.
908         * testsuite/libgomp.c/target-2.c: New test.
909         * testsuite/libgomp.c/target-3.c: New test.
910         * testsuite/libgomp.c/target-4.c: New test.
911         * testsuite/libgomp.c/target-5.c: New test.
912         * testsuite/libgomp.c/target-6.c: New test.
913         * testsuite/libgomp.c/target-7.c: New test.
914         * testsuite/libgomp.c/taskgroup-1.c: New test.
915         * testsuite/libgomp.c/thread-limit-1.c: New test.
916         * testsuite/libgomp.c/thread-limit-2.c: New test.
917         * testsuite/libgomp.c/thread-limit-3.c: New test.
918         * testsuite/libgomp.c/udr-1.c: New test.
919         * testsuite/libgomp.c/udr-2.c: New test.
920         * testsuite/libgomp.c/udr-3.c: New test.
921         * testsuite/libgomp.c++/affinity-1.C: New test.
922         * testsuite/libgomp.c++/atomic-10.C: New test.
923         * testsuite/libgomp.c++/atomic-11.C: New test.
924         * testsuite/libgomp.c++/atomic-12.C: New test.
925         * testsuite/libgomp.c++/atomic-13.C: New test.
926         * testsuite/libgomp.c++/atomic-14.C: New test.
927         * testsuite/libgomp.c++/atomic-15.C: New test.
928         * testsuite/libgomp.c++/cancel-for-1.C: New test.
929         * testsuite/libgomp.c++/cancel-for-2.C: New test.
930         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
931         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
932         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
933         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
934         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
935         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
936         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
937         * testsuite/libgomp.c++/cancel-test.h: New file.
938         * testsuite/libgomp.c++/for-9.C: New test.
939         * testsuite/libgomp.c++/for-10.C: New test.
940         * testsuite/libgomp.c++/for-11.C: New test.
941         * testsuite/libgomp.c++/simd-1.C: New test.
942         * testsuite/libgomp.c++/simd-2.C: New test.
943         * testsuite/libgomp.c++/simd-3.C: New test.
944         * testsuite/libgomp.c++/simd-4.C: New test.
945         * testsuite/libgomp.c++/simd-5.C: New test.
946         * testsuite/libgomp.c++/simd-6.C: New test.
947         * testsuite/libgomp.c++/simd-7.C: New test.
948         * testsuite/libgomp.c++/simd-8.C: New test.
949         * testsuite/libgomp.c++/target-1.C: New test.
950         * testsuite/libgomp.c++/target-2.C: New test.
951         * testsuite/libgomp.c++/target-2-aux.cc: New file.
952         * testsuite/libgomp.c++/target-3.C: New test.
953         * testsuite/libgomp.c++/taskgroup-1.C: New test.
954         * testsuite/libgomp.c++/udr-1.C: New test.
955         * testsuite/libgomp.c++/udr-2.C: New test.
956         * testsuite/libgomp.c++/udr-3.C: New test.
957         * testsuite/libgomp.c++/udr-4.C: New test.
958         * testsuite/libgomp.c++/udr-5.C: New test.
959         * testsuite/libgomp.c++/udr-6.C: New test.
960         * testsuite/libgomp.c++/udr-7.C: New test.
961         * testsuite/libgomp.c++/udr-8.C: New test.
962         * testsuite/libgomp.c++/udr-9.C: New test.
964 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
966         PR testsuite/57605
967         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
968         ALWAYS_CFLAGS.
970 2013-09-20  Alan Modra  <amodra@gmail.com>
972         * configure: Regenerate.
974 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
976         * testsuite/libgomp.c/sections-2.c: New test.
978 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
980         * testsuite/libgomp.fortran/strassen.f90:
981         Add dg-skip-if aarch64_tiny.
983 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
984             Cesar Philippidis  <cesar@codesourcery.com>
986         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
987         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
988         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
989         * testsuite/libgomp.fortran/fortran.exp: Likewise.
990         * testsuite/libgomp.graphite/graphite.exp: Likewise.
991         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
992         Use dg-runtest rather than gfortran-dg-runtest.
994 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
996         * testsuite/libgomp.c/icv-2.c: Extend current handling of
997         Linux-based x86 systems to cover all GNU systems.
998         * testsuite/libgomp.c/lock-3.c: Likewise.
999         * testsuite/libgomp.c/pr48591.c: Likewise.
1001 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
1003         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
1004         GNU/Hurd, as done for Linux-based systems.
1006         * config/posix/ptrlock.h: Fix comment.
1008 2013-05-27  Tobias Burnus  <burnus@net-b.de>
1010         PR fortran/57423
1011         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
1012         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
1013         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
1014         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
1015         omp_destroy_nest_lock): Correct arguments to match the one in
1016         the OpenMP spec.
1017         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
1018         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
1019         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
1020         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
1022 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
1024         * testsuite/libgomp.c/loop-13.c: New test.
1025         * testsuite/libgomp.c/loop-14.c: New test.
1026         * testsuite/libgomp.c/loop-15.c: New test.
1027         * testsuite/libgomp.c++/loop-13.C: New test.
1028         * testsuite/libgomp.c++/loop-14.C: New test.
1029         * testsuite/libgomp.c++/loop-15.C: New test.
1031 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
1033         PR middle-end/56217
1034         * testsuite/libgomp.c++/pr56217.C: New test.
1036 2013-02-01  Alan Modra  <amodra@gmail.com>
1038         * task.c (GOMP_task, GOMP_taskwait): Comment.
1040 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
1041             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
1043         PR libgomp/55561
1044         * config/linux/wait.h (do_spin): Use atomic load for addr.
1045         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
1046         for intptr and ptrlock.
1047         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
1048         for ptrlock.
1050 2013-01-22  Alan Modra  <amodra@gmail.com>
1052         PR libgomp/51376
1053         PR libgomp/56073
1054         * task.c (GOMP_task): Revert 2011-12-09 change.
1055         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
1056         barrier to read task->children..
1057         (gomp_barrier_handle_tasks): ..and matching atomic store with
1058         release barrier here when setting parent->children to NULL.
1060 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
1061             Tobias Burnus  <burnus@net-b.de>
1063         PR driver/55884
1064         * testsuite/libgomp.fortran/fortran.exp: Use
1065         -fintrinsic-modules-path= instead of
1066         -fintrinsic-modules-path.
1068 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
1070         Update copyright years.
1072 2012-12-19  Tobias Burnus  <burnus@net-b.de>
1074         * testsuite/libgomp.fortran/fortran.exp: Set
1075         -fintrinsic-modules-path.
1077 2012-12-19  Tobias Burnus  <burnus@net-b.de>
1079         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
1080         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
1082 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
1084         PR libgomp/55411
1085         * team.c (gomp_free_thread): Decrease gomp_managed_threads
1086         if pool had any threads_used.
1088 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
1090         * testsuite/libgomp.c++/pr24455.C: Use
1091         -Wl,-undefined,dynamic_lookup on darwin.
1093 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
1095         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
1097 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
1099         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
1101 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
1102             Jim MacArthur  <jim.macarthur@arm.com>
1103             Marcus Shawcroft  <marcus.shawcroft@arm.com>
1104             Nigel Stephens  <nigel.stephens@arm.com>
1105             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1106             Richard Earnshaw  <rearnsha@arm.com>
1107             Sofiane Naci  <sofiane.naci@arm.com>
1108             Stephen Thomas  <stephen.thomas@arm.com>
1109             Tejas Belagod  <tejas.belagod@arm.com>
1110             Yufeng Zhang  <yufeng.zhang@arm.com>
1112         * configure.tgt: Add AArch64.
1114 2012-10-04  Jason Merrill  <jason@redhat.com>
1116         * testsuite/libgomp.c++/tls-init1.C: New.
1118 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
1120         * configure: Regenerated.
1122 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
1124         * config/linux/mips/futex.h (sys_futex0): Change to static
1125         function with noinline, nomips16 attributes under MIPS16. Adjust
1126         asm statement to place 'li v0,SYS_futex' immediately before
1127         syscall insn.
1129 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
1131         * libgomp.texi (Library Index): Renamed from "Index" to prevent
1132         conflict with index.html on case-insensitive file systems.
1134 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
1136         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
1137         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
1139 2012-07-02  Richard Guenther  <rguenther@suse.de>
1140             Michael Matz  <matz@suse.de>
1141             Tobias Grosser <tobias@grosser.es>
1142             Sebastian Pop <sebpop@gmail.com>
1144         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
1145         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
1146         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1147         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1149 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
1151         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
1153 2012-06-22  Richard Guenther  <rguenther@suse.de>
1155         Merge from graphite branch
1156         2012-01-13  Tobias Grosser  <tobias@grosser.es>
1158         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1159         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
1161 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
1163         PR middle-end/53580
1164         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
1165         use GOMP_barrier () call instead.
1166         * testsuite/libgomp.c/pr26943-3.c: Likewise.
1167         * testsuite/libgomp.c/pr26943-4.c: Likewise.
1168         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
1169         call GOMP_barrier instead.
1170         * testsuite/libgomp.fortran/vla5.f90: Likewise.
1172 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
1174         PR libgomp/52993
1175         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
1176         argument to memset call.
1178 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1180         * configure: Regenerated.
1182 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1184         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
1186 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
1188         PR bootstrap/52812
1189         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
1191 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
1193         PR middle-end/52547
1194         * testsuite/libgomp.c/pr52547.c: New test.
1196 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
1198         * testsuite/lib/libgomp.exp: load fortran-modules.exp
1200 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1202         * configure.tgt (mips-sgi-irix6*): Remove.
1204 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1206         * configure.tgt (alpha*-dec-osf*): Remove.
1208         * config/osf/sem.h: Remove.
1209         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
1211 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
1213         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
1215 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1217         PR libstdc++/52188
1218         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
1219         Remove ENABLE_SYMVERS_SOL2.
1220         * configure: Regenerate.
1221         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
1222         (PREPROCESS): New variable.
1223         (libgomp.ver): New target.
1224         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
1225         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
1226         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
1227         Use libgomp.ver.
1228         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
1229         * Makefile.in: Regenerate.
1231 2012-02-14  Walter Lee  <walt@tilera.com>
1233         * configure.tgt: Handle tilegx and tilepro.
1234         * config/linux/tile/futex.h: New file.
1236 2012-02-08  Richard Guenther  <rguenther@suse.de>
1238         PR tree-optimization/46886
1239         * testsuite/libgomp.c/pr46886.c: New testcase.
1241 2012-01-25  Matthias Klose  <doko@ubuntu.com>
1243         * config/linux/arm: Remove empty directory.
1244         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
1246 2011-12-09  Alan Modra  <amodra@gmail.com>
1248         PR libgomp/51376
1249         * task.c (GOMP_taskwait): Don't access task->children outside of
1250         task_lock mutex region.
1251         (GOMP_task): Likewise.
1253 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
1255         PR libgomp/51132
1256         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
1257         to file scope.
1258         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
1259         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
1260         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
1261         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
1262         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
1264 2011-12-02  Alan Modra  <amodra@gmail.com>
1266         * config/linux/affinity.c: Use atomic rather than sync builtin.
1267         * config/linux/lock.c: Likewise.
1268         * config/linux/ptrlock.h: Likewise.
1269         * config/linux/ptrlock.c: Likewise.
1270         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
1271         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
1272         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
1273         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
1274         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
1275         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
1276         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
1277         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
1278         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
1279         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
1281 2011-11-30  Alan Modra  <amodra@gmail.com>
1283         PR libgomp/51298
1284         * config/linux/bar.h: Use atomic rather than sync builtins.
1285         * config/linux/bar.c: Likewise.  Add missing acquire
1286         synchronisation on generation field.
1287         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
1288         double unlock.
1290 2011-11-30  Alan Modra  <amodra@gmail.com>
1292         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
1293         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
1294         * config/linux/mutex.h: Use atomic rather than sync builtins.
1295         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
1296         * config/linux/omp-lock.h: Comment fix.
1297         * config/linux/arm/mutex.h: Delete.
1298         * config/linux/powerpc/mutex.h: Delete.
1299         * config/linux/ia64/mutex.h: Delete.
1300         * config/linux/mips/mutex.h: Delete.
1302 2011-11-30  Alan Modra  <amodra@gmail.com>
1304         PR libgomp/51249
1305         * config/linux/sem.h: Rewrite.
1306         * config/linux/sem.c: Rewrite.
1308 2011-11-28  Richard Henderson  <rth@redhat.com>
1310         * libgomp.h (enum memmodel): New.
1312 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
1314         * configure: Regenerate.
1316 2011-10-10  Matthias Klose  <doko@ubuntu.com>
1318         * config/posix95: Remove empty directory.
1320 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
1322         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
1324 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
1326         PR fortran/49792
1327         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
1328         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
1330 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1332         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
1334 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1336         PR libgomp/49965
1337         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
1339 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
1341         * config/linux/proc.h: New.
1342         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
1343         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
1344         (gomp_init_num_threads): Update call to cpuset_popcount.
1345         (get_num_procs): Ditto.
1346         * config/linux/affinity.c (gomp_init_affinity): Call
1347         gomp_cpuset_popcount.
1349 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
1351         PR fortran/42041
1352         PR fortran/46752
1353         * omp.h.in (omp_in_final): New prototype.
1354         * omp_lib.f90.in (omp_in_final): New interface.
1355         (omp_integer_kind, omp_logical_kind): Remove
1356         and replace all its uses in the module with 4.
1357         (openmp_version): Change to 201107.
1358         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
1359         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
1360         kind for the parameters.
1361         (omp_in_final): New external.
1362         (openmp_version): Change to 201107.
1363         * task.c (omp_in_final): New function.
1364         (gomp_init_task): Initialize final_task.
1365         (GOMP_task): Remove unused attribute from flags.  Handle final
1366         tasks.
1367         (GOMP_taskyield): New function.
1368         (omp_in_final): Return true if if (false) or final (true) task
1369         or descendant of final (true).
1370         * fortran.c (omp_in_final_): New function.
1371         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
1372         (GOMP_3.0): Export GOMP_taskyield.
1373         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
1374         variables.
1375         (parse_unsigned_long_list): New function.
1376         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
1377         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
1378         even if parse_affinity returned false.
1379         * config/linux/affinity.c (gomp_init_affinity): Handle
1380         gomp_cpu_affinity_len == 0.
1381         * libgomp_g.h (GOMP_taskyield): New prototype.
1382         * libgomp.h (struct gomp_task): Add final_task field.
1383         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
1384         * team.c (gomp_team_start): Override new task's nthreads_var icv
1385         if list form OMP_NUM_THREADS has been used and it has value for
1386         the new nesting level.
1388         * testsuite/libgomp.c/atomic-11.c: New test.
1389         * testsuite/libgomp.c/atomic-12.c: New test.
1390         * testsuite/libgomp.c/atomic-13.c: New test.
1391         * testsuite/libgomp.c/atomic-14.c: New test.
1392         * testsuite/libgomp.c/reduction-6.c: New test.
1393         * testsuite/libgomp.c/task-5.c: New test.
1394         * testsuite/libgomp.c++/atomic-2.C: New test.
1395         * testsuite/libgomp.c++/atomic-3.C: New test.
1396         * testsuite/libgomp.c++/atomic-4.C: New test.
1397         * testsuite/libgomp.c++/atomic-5.C: New test.
1398         * testsuite/libgomp.c++/atomic-6.C: New test.
1399         * testsuite/libgomp.c++/atomic-7.C: New test.
1400         * testsuite/libgomp.c++/atomic-8.C: New test.
1401         * testsuite/libgomp.c++/atomic-9.C: New test.
1402         * testsuite/libgomp.c++/task-8.C: New test.
1403         * testsuite/libgomp.c++/reduction-4.C: New test.
1404         * testsuite/libgomp.fortran/allocatable7.f90: New test.
1405         * testsuite/libgomp.fortran/allocatable8.f90: New test.
1406         * testsuite/libgomp.fortran/crayptr3.f90: New test.
1407         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
1408         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
1409         * testsuite/libgomp.fortran/pointer1.f90: New test.
1410         * testsuite/libgomp.fortran/pointer2.f90: New test.
1411         * testsuite/libgomp.fortran/task4.f90: New test.
1413 2011-08-02  Tobias Burnus  <burnus@net-b.de>
1415         * libgomp.texi: Update OpenMP spec references to 3.1.
1416         (omp_in_final,OMP_PROC_BIND): New sections.
1417         (OMP_NUM_THREADS): Document that the value can be now a list.
1418         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
1420 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
1422         * config/linux/x86/futex.h: Check __x86_64__ instead of
1423         __LP64__.
1425 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
1427         PR middle-end/49897
1428         PR middle-end/49898
1429         * testsuite/libgomp.c/pr49897-1.c: New test.
1430         * testsuite/libgomp.c/pr49897-2.c: New test.
1431         * testsuite/libgomp.c/pr49898-1.c: New test.
1432         * testsuite/libgomp.c/pr49898-2.c: New test.
1434 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1436         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
1437         for ia32 instead of ilp32.
1439         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
1440         * testsuite/libgomp.c/atomic-6.c: Likewise.
1442 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
1444         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
1445         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
1447 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1449         PR libgomp/45351
1450         * config/osf/sem.h: New file.
1451         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
1453 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1455         PR target/49541
1456         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
1457         ldflags.
1459 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
1461         * config/linux/wait.h (do_spin): New inline, largely copied
1462         from do_wait, just don't do futex_wait here, instead return true if
1463         it should be done.
1464         (do_wait): Implement using do_spin.
1465         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
1466         to prototype.
1467         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1468         __sync_bool_compare_and_swap, pass the oldval to
1469         gomp_mutex_lock_slow.
1470         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
1471         If all mutex contenders are just spinning and not sleeping, don't
1472         change state to 2 unnecessarily.  Optimize the loop when state has
1473         already become 2 to use just one atomic operation per loop instead
1474         of two.
1475         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
1476         to prototype.
1477         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
1478         __sync_bool_compare_and_swap, pass the oldval to
1479         gomp_mutex_lock_slow.
1481 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
1483         PR libgomp/49490
1484         * iter.c (gomp_iter_static_next): For chunk size 0
1485         only use n ceil/ nthreads size for the first
1486         n % nthreads threads in the team instead of
1487         all threads except for the last few ones which
1488         get less work or none at all.
1489         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
1490         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
1491         chunk argument, set run_sched_modifier to 0 for static
1492         resp. 1 for other kinds.  If chunk argument is 0
1493         and not static, set value to 1.
1495 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
1497         PR c++/49043
1498         * testsuite/libgomp.c++/pr49043.C: New test.
1500         PR c++/48869
1501         * testsuite/libgomp.c++/pr48869.C: New test.
1503 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
1505         PR fortran/48894
1506         * fortran.c: Include limits.h.
1507         (TO_INT): Define.
1508         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
1509         *set.
1510         (omp_set_num_threads_8_, omp_set_schedule_8_,
1511         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
1512         omp_get_team_size_8_): Use TO_INT macro.
1513         * testsuite/libgomp.fortran/pr48894.f90: New test.
1515 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
1517         PR middle-end/48591
1518         * testsuite/libgomp.c/pr48591.c: New test.
1520 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1522         PR bootstrap/48135
1523         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
1524         * configure: Regenerate.
1526 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
1528         PR fortran/47886
1529         * testsuite/libgomp.fortran/task3.f90: New test.
1531 2011-02-24  Tobias Burnus  <burnus@net-b.de>
1533         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
1535 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
1537         PR libgomp/47854
1538         * libgomp.texi (omp_get_wtime): Don't say time in the past
1539         must be Unix Epoch.
1541 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
1543         PR libgomp/47804
1544         * testsuite/libgomp.fortran/fortran.exp: Check for both
1545         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
1546         but $blddir != "", still append ${blddir}/${lang_library_path}
1547         to ld_library_path.
1549 2011-02-16  Tobias Burnus  <burnus@net-b.de>
1551         PR libgomp/47758
1552         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
1553         of libquadmath.a before adding its libpath to ldflags.
1555 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
1557         PR libgomp/47731
1558         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
1559         to FUTEX_WAIT futex syscall.
1560         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
1562 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1564         * configure: Regenerate.
1566 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
1568         PR libstdc++/36104
1569         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
1571 2011-01-16  Gerald Pfeifer
1573         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
1575 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
1577         PR fortran/46874
1578         * libgomp.fortran/allocatable6.f90: New test.
1580 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1582         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
1583         * configure: Regenerate.
1585 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
1587         PR target/40125
1588         PR lto/46695
1589         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
1590         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
1591         * aclocal.m4: Regenerate.
1592         * configure: Regenerate.
1593         * Makefile.in: Regenerate.
1594         * testsuite/Makefile.in: Regenerate.
1596 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
1598         PR fortran/46753
1599         * libgomp.fortran/pr46753.f90: New test.
1601         PR libgomp/43706
1602         * env.c (initialize_env): Default to spin count 300000
1603         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
1604         is specified.
1606         PR libgomp/45240
1607         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
1608         at the end if sync builtins aren't supported.
1610 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1612         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
1614 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1616         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
1618 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
1620         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
1622 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1623             Tobias Burnus  <burnus@net-b.de>
1625         PR fortran/32049
1626         * configure.ac:
1627         * configure: Regenerate.
1629 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1631         * config/linux/futex.h: New.
1632         * config/linux/arm/mutex.h: New.
1633         * configure.tgt (arm*-*-linux*): Add config path.
1635 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
1637         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1639 2010-09-23  Tobias Burnus  <burnus@net-b.de>
1641         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
1642         Change Fortran datatype to LOGICAL.
1643         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
1644         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
1646 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1648         * configure: Regenerate.
1650 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
1652         * libgomp.texi: Add function keyword to a couple of Fortran
1653         interfaces, use integer instead of int for Fortran.
1655 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
1657         * libgomp.texi: Fix spelling and pasto problems throughout.
1658         Adjust prototypes to match code.
1660 2010-07-24  Tobias Burnus  <burnus@net-b.de>
1662         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
1663         silence -fwhole-file warning.
1665 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1667         * configure.tgt (*-*-solaris2.[56]*): Removed.
1669 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1671         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
1672         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
1673         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
1674         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
1675         targetting solaris2*.
1676         * configure: Regenerate.
1677         * config.h.in: Regenerate.
1679         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
1680         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
1681         Add libgomp_version_dep.
1682         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
1683         versioning.
1684         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
1685         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
1686         * Makefile.in: Regenerate.
1688         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
1689         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1690         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
1691         to common block, protected by
1692         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
1694 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
1696         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
1698 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
1700         PR bootstrap/43170
1701         * configure: Regenerate.
1703 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1705         PR other/43620
1706         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
1707         * configure: Regenerate.
1708         * Makefile.in: Regenerate.
1709         * testsuite/Makefile.in: Regenerate.
1711 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
1713         PR c/43893
1714         * testsuite/libgomp.c/pr43893.c: New test.
1715         * testsuite/libgomp.c++/pr43893.C: New test.
1717 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
1719         PR middle-end/43570
1720         * testsuite/libgomp.fortran/vla8.f90: New test.
1722 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
1724         PR libgomp/43706
1725         * config/linux/affinity.c (gomp_init_affinity): Decrease
1726         gomp_available_cpus if affinity mask confines the process to fewer
1727         CPUs.
1728         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
1729         non-NULL, just return gomp_available_cpus.
1731         PR libgomp/43569
1732         * sections.c (gomp_sections_init): Initialize ws->mode.
1734 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
1736         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
1737         not unused bar variable.
1738         * configure: Regenerate.
1740 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1742         * Makefile.in: Regenerate.
1743         * aclocal.m4: Regenerate.
1744         * testsuite/Makefile.in: Regenerate.
1746 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
1748         PR libgomp/42942
1749         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
1750         (initialize_env): Adjust callers.
1751         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
1752         when the argument is 0.
1754         * testsuite/libgomp.c/pr42942.c: New test.
1756 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
1758         PR middle-end/42644
1759         PR middle-end/42130
1760         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
1761         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
1763 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1765         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
1766         * testsuite/libgomp.c++/task-6.C: Likewise.
1768 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
1770         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
1772 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
1774         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
1775         * configure: Regenerate.
1777 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
1779         PR fortran/42866
1780         * testsuite/libgomp.fortran/allocatable5.f90: New test.
1782 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
1784         * configure.ac: Test for executability of GFORTRAN.
1785         * configure: Regenerate.
1787 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1789         * configure: Regenerate.
1791 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
1793         PR libgomp/42602
1794         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
1796 2010-01-03  Richard Guenther  <rguenther@suse.de>
1798         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
1800 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
1802         * testsuite/libgomp.graphite/pr4118.c: New.
1804 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1806         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
1807         for darwin, protect the test with require-effective-target tls_runtime.
1808         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1810 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1812         PR target/41605
1813         * testsuite/lib/libgomp.exp: Provide -B options to allow for
1814         link spec %s substitutions for static libraries.
1816 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
1818         PR testsuite/42135
1819         * libgomp.graphite/force-parallel-2.c: Reduce array size.
1821 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1823         * Makefile.in: Regenerate.
1824         * configure: Regenerate.
1825         * testsuite/Makefile.in: Regenerate.
1827 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
1829         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
1830         settings for LC_ALL and LANG.
1832 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
1834         PR fortran/42162
1835         * testsuite/libgomp.fortran/pr42162.f90: New test.
1837 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
1839         PR middle-end/42029
1840         * testsuite/libgomp.c/pr42029.c: New test.
1842 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
1844         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
1845         *s.  Accept ld version without text in ()s.
1846         * configure: Regenerated.
1848 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
1850         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
1852 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1854         PR libgomp/41418
1855         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
1856         or a hyphen (happens with fortran language disabled).
1857         * configure: Regenerate.
1859 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1861         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
1862         use sed script portable to Solaris /bin/sed for extracting ld
1863         version.
1864         * configure: Regenerate.
1866 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
1868         * testsuite/libgomp.graphite/bounds.c: New test.
1870 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1872         * Makefile.am (libgomp_la_LINK): New.
1873         * Makefile.in: Regenerate.
1875 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1877         * configure.ac (AC_PREREQ): Bump to 2.64.
1879 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1881         * Makefile.am (install-html, install-pdf): Remove.
1882         * Makefile.in: Regenerate.
1884         * Makefile.in: Regenerate.
1885         * aclocal.m4: Regenerate.
1886         * config.h.in: Regenerate.
1887         * configure: Regenerate.
1888         * testsuite/Makefile.in: Regenerate.
1890 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1892         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
1893         * Makefile.in: Regenerate.
1895 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
1897         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
1898         * Makefile.in: Regenerate.
1900 2009-08-19  Tobias Burnus  <burnus@net-b.de>
1902         PR fortran/41102
1903         omp_lib.h.in: Fix -std=f95 errors.
1906 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
1908         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
1909         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
1910         * testsuite/libgomp.graphite/graphite.exp: New.
1912 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
1914         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
1915         only build.
1917 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
1919         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
1920         needed memory barrier semantics.
1921         * config/linux/mips/mutex.h: New file.
1923 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1925         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
1927 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
1929         * configure: Regenerate.
1931 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
1933         PR testsuite/40699
1934         PR testsuite/40707
1935         PR testsuite/40709
1936         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
1937         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
1938         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
1940 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
1942         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
1943         options when choosing a multilib.
1945 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
1947         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
1948         ld_library_path.  Use add_path.  Add just find_libgcc_s to
1949         ld_library_path, not every libgcc multilib directory.
1950         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
1951         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
1952         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
1953         Use add_path.
1954         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
1956 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
1958         * Makefile.am (LTLDFLAGS): Define.
1959         (LINK): Define.
1960         * Makefile.in: Regenerate.
1962 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
1964         PR fortran/39718
1965         * testsuite/libgomp.fortran/fortran.exp: Don't link with
1966         libgfortranbegin, check existence of libgfortran.a instead of
1967         libgfortranbegin.a.
1969 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
1971         PR libgomp/40174
1972         * team.c (gomp_thread_start): Destroy thr->release semaphore.
1973         (gomp_free_pool_helper): Likewise.
1975 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
1976             Jakub Jelinek  <jakub@redhat.com>
1978         PR fortran/35423
1979         * testsuite/libgomp.fortran/workshare2.f90: New test.
1981 2009-04-09  Nick Clifton  <nickc@redhat.com>
1983         * iter.c: Change copyright header to refer to version 3 of the
1984         GNU General Public License with version 3.1 of the GCC Runtime
1985         Library Exception and to point readers at the COPYING3 and
1986         COPYING3.RUNTIME files and the FSF's license web page.
1987         * alloc.c: Likewise.
1988         * barrier.c: Likewise.
1989         * config/bsd/proc.c: Likewise.
1990         * config/linux/affinity.c: Likewise.
1991         * config/linux/alpha/futex.h: Likewise.
1992         * config/linux/bar.c: Likewise.
1993         * config/linux/bar.h: Likewise.
1994         * config/linux/ia64/futex.h: Likewise.
1995         * config/linux/ia64/mutex.h: Likewise.
1996         * config/linux/lock.c: Likewise.
1997         * config/linux/mips/futex.h: Likewise.
1998         * config/linux/mutex.c: Likewise.
1999         * config/linux/mutex.h: Likewise.
2000         * config/linux/powerpc/futex.h: Likewise.
2001         * config/linux/proc.c: Likewise.
2002         * config/linux/ptrlock.c: Likewise.
2003         * config/linux/ptrlock.h: Likewise.
2004         * config/linux/s390/futex.h: Likewise.
2005         * config/linux/sem.c: Likewise.
2006         * config/linux/sem.h: Likewise.
2007         * config/linux/sparc/futex.h: Likewise.
2008         * config/linux/wait.h: Likewise.
2009         * config/linux/x86/futex.h: Likewise.
2010         * config/mingw32/proc.c: Likewise.
2011         * config/mingw32/time.c: Likewise.
2012         * config/posix/affinity.c: Likewise.
2013         * config/posix/bar.c: Likewise.
2014         * config/posix/bar.h: Likewise.
2015         * config/posix/lock.c: Likewise.
2016         * config/posix/mutex.h: Likewise.
2017         * config/posix/proc.c: Likewise.
2018         * config/posix/ptrlock.h: Likewise.
2019         * config/posix/sem.c: Likewise.
2020         * config/posix/sem.h: Likewise.
2021         * config/posix/time.c: Likewise.
2022         * config/posix95/lock.c: Likewise.
2023         * critical.c: Likewise.
2024         * env.c: Likewise.
2025         * error.c: Likewise.
2026         * fortran.c: Likewise.
2027         * iter_ull.c: Likewise.
2028         * libgomp.h: Likewise.
2029         * libgomp_f.h.in: Likewise.
2030         * libgomp_g.h: Likewise.
2031         * loop.c: Likewise.
2032         * loop_ull.c: Likewise.
2033         * omp.h.in: Likewise.
2034         * omp_lib.f90.in: Likewise.
2035         * omp_lib.h.in: Likewise.
2036         * ordered.c: Likewise.
2037         * parallel.c: Likewise.
2038         * sections.c: Likewise.
2039         * single.c: Likewise.
2040         * task.c: Likewise.
2041         * team.c: Likewise.
2042         * work.c: Likewise.
2044 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
2046         * testsuite/config/default.exp: Change copyright header to refer to
2047         version 3 of the GNU General Public License and to point readers
2048         at the COPYING3 file and the FSF's license web page.
2050 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
2052         PR middle-end/39573
2053         * libgomp.c++/pr39573.C: New test.
2055 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
2057         PR other/39591
2058         * testsuite/libgomp.c/pr39591-1.c: New test.
2059         * testsuite/libgomp.c/pr39591-2.c: New test.
2060         * testsuite/libgomp.c/pr39591-3.c: New test.
2062 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
2064         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
2065         * testsuite/libgomp.c/atomic-6.c: Ditto.
2067 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
2069         PR c/39495
2070         * testsuite/libgomp.c/loop-12.c: New test.
2071         * testsuite/libgomp.c/loop-11.c: New test.
2072         * testsuite/libgomp.c++/loop-11.C: New test.
2073         * testsuite/libgomp.c++/loop-12.C: New test.
2074         * testsuite/libgomp.c++/for-8.C: New test.
2076 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2078         * configure: Regenerate.
2080 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
2082         PR middle-end/39154
2083         * testsuite/libgomp.c/pr39154.c: New test.
2085 2009-01-30  Ian Lance Taylor  <iant@google.com>
2087         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
2088         libgomp_ld_is_gold.  Get gold version number.
2089         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
2090         * configure: Rebuild.
2092 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
2094         * testsuite/lib/libgomp.exp: Add -B option for targets that
2095         use libgfortran.a%s in their specs.
2097 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
2099         PR libgomp/38086
2100         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
2101         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
2102         HAVE_AS_SYMVER_DIRECTIVE is not defined.
2103         * configure: Regenerated.
2104         * config.h.in: Likewise.
2106 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
2108         PR c++/38650
2109         * testsuite/libgomp.c/pr38650.c: New test.
2110         * testsuite/libgomp.c++/pr38650.C: New test.
2112 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
2114         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
2116 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
2118         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
2120 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2122         * configure: Regenerate.
2124 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
2126         PR middle-end/36802
2127         * testsuite/libgomp.c/pr36802-1.c: New test.
2128         * testsuite/libgomp.c/pr36802-2.c: New test.
2129         * testsuite/libgomp.c/pr36802-3.c: New test.
2131 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
2133         PR libgomp/38270
2134         * config/linux/powerpc/mutex.h: New.
2136 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
2138         PR c++/38257
2139         * testsuite/libgomp.c++/for-7.C: New test.
2141         PR c++/38348
2142         * testsuite/libgomp.c++/for-6.C: New test.
2144 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
2146         PR testsuite/28870
2147         * testsuite/lib/libgomp.exp: Include new timeout library files.
2148         (libgomp_target_compile): Set timeout value from new proc.
2150 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
2152         PR libgomp/37938
2153         * config/linux/ia64/mutex.h: New.
2155 2008-11-04  Tobias Burnus  <burnus@net-b.de>
2157         PR libgomp/37935
2158         * libgomp.texi (Runtime library routines, environment variables):
2159         Update for OpenMP version 3.0.
2161 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
2162             Steve Ellcey  <sje@cup.hp.com>
2164         * configure: Regenerate for new libtool.
2165         * Makefile.in: Ditto.
2166         * testsuite/Makefile.in: Ditto.
2168 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
2169             Andreas Tobler  <a.tobler@schweiz.org>
2171         * config/bsd/proc.c: New file.
2172         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
2173         * configure.ac: Check for header <sys/sysctl.h>
2174         * configure: Regenerate.
2175         * config.h.in: Likewise.
2177 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
2179         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
2181 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
2183         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
2184         * Makefile.in: Regenerated.
2185         * testsuite/Makefile.in: Regenerated.
2187 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
2189         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
2190         depend on blddir if blddir exists.
2191         (libgomp_target_compile): Likewise.
2192         * testsuite/libgomp.c++/c++.exp: Likewise.
2193         * testsuite/libgomp.fortran/fortran.exp: Likewise.
2195 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2197         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
2198         Do not list GPL as Invariant Section.
2200 2008-07-28  Ilie Garbacea  <ilie@mips.com>
2201             Chao-ying Fu  <fu@mips.com>
2203         * configure.tgt: Enable futex for MIPS.
2204         * config/linux/mips/futex.h: New file.
2206 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
2208         * team.c (gomp_team_end): Free team immediately if it has
2209         just one thread.
2211 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
2213         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
2214         * testsuite/libgomp.fortran/fortran.exp: Same.
2215         * testsuite/libgomp.c/c.exp: Same.
2216         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
2217         directory to library path first.
2219 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
2221         * env.c (parse_stacksize): Add cast to avoid warning.
2222         (parse_spincount): Likewise.
2224 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
2226         * testsuite/libgomp.c/loop-10.c: New test.
2227         * libgomp.c/loop-3.c (main): Add lastprivate clause.
2228         * libgomp.c++/loop-6.C (main): Likewise.
2230         PR debug/36617
2231         * testsuite/libgomp.c/debug-1.c: New test.
2233 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
2235         * testsuite/libgomp.c/nqueens-1.c: New test.
2237         PR c++/36523
2238         * testsuite/libgomp.c++/task-7.C: New function.
2240 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2242         * configure: Regenerate.
2244 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2246         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
2247         mutex when HAVE_SYNC_BUILTINS isn't defined.
2249 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2251         * libgomp.texi (omp_test_lock): Fix typo.
2253 2008-06-12  Tobias Burnus  <burnus@net-b.de>
2255         * omp_lib.f90.in: Add "implicit none".
2257 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
2259         PR middle-end/36506
2260         * testsuite/libgomp.c/reduction-5.c: New test.
2262 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
2264         * libgomp.h (struct gomp_task): Add in_tied_task field.
2265         * task.c (gomp_init_task): Initialize it.
2266         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
2267         unconditionally.  Don't call gomp_team_barrier_wake if
2268         current task is implicit or if(0) from implicit and number of
2269         running tasks is equal to nthreads - 1.
2271         PR libgomp/36471
2272         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
2273         omp_get_team_size_8): Fix pastos.
2275         PR libgomp/36469
2276         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
2277         * configure: Regenerated.
2278         * config.h.in: Regenerated.
2279         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
2280         defined.
2282 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
2284         PR bootstrap/36452
2285         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
2286         (GOMP_loop_ull_dynamic_start): Likewise.
2287         (GOMP_loop_ull_guided_start): Likewise.
2288         (GOMP_loop_ull_ordered_static_start): Likewise.
2289         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
2290         (GOMP_loop_ull_ordered_guided_start): Likewise.
2292 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
2293             Richard Henderson  <rth@redhat.com>
2294             Ulrich Drepper  <drepper@redhat.com>
2295             Jakob Blomer  <jakob.blomer@ira.uka.de>
2297         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
2298         Substitute also OMP_*LOCK_25*.
2299         * configure: Regenerated.
2300         * config.h.in: Regenerated.
2301         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
2302         ptrlock.c and task.c.
2303         * Makefile.in: Regenerated.
2304         * testsuite/Makefile.in: Regenerated.
2305         * task.c: New file.
2306         * loop_ull.c: New file.
2307         * iter_ull.c: New file.
2308         * libgomp.h: Include ptrlock.h.
2309         (enum gomp_task_kind): New type.
2310         (struct gomp_team): Add task_lock, task_queue, task_count,
2311         task_running_count, single_count fields.  Add
2312         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
2313         Remove work_share_lock, generation_mask,
2314         oldest_live_gen, num_live_gen and init_work_shares fields, add
2315         work work_share_list_alloc, work_share_list_free and work_share_chunk
2316         fields.  Change work_shares from pointer to pointers into an array.
2317         Change ordered_release field into gomp_sem_t ** from flexible array
2318         member.  Add implicit_task and initial_work_shares fields.
2319         Move close to the end of the struct.
2320         (struct gomp_team_state): Add single_count, last_work_share,
2321         active_level and level fields, remove work_share_generation.
2322         (gomp_barrier_handle_tasks): New prototype.
2323         (gomp_finish_task): New inline function.
2324         (struct gomp_work_share): Move chunk_size, end, incr into
2325         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
2326         next_ll fields.  Reshuffle fields.  Add next_alloc,
2327         next_ws, next_free and inline_ordered_team_ids fields, change
2328         ordered_team_ids into pointer from flexible array member.
2329         Add mode field.  Put lock and next into a different cache line
2330         from most of the write-once fields.
2331         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
2332         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
2333         gomp_iter_ull_guided_next): New prototypes.
2334         (gomp_new_icv): New prototype.
2335         (struct gomp_thread): Add thread_pool and task fields.
2336         (struct gomp_thread_pool): New type.
2337         (gomp_new_team): New prototype.
2338         (gomp_team_start): Change type of last argument.
2339         (gomp_new_work_share): Removed.
2340         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
2341         (gomp_work_share_init_done): New static inline.
2342         (gomp_throttled_spin_count_var, gomp_available_cpus,
2343         gomp_managed_threads): New extern decls.
2344         (gomp_init_task): New prototype.
2345         (gomp_spin_count_var): New extern var decl.
2346         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
2347         or no alias support, or if not PIC.
2348         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
2349         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
2350         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
2351         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
2352         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
2353         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
2354         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
2355         gomp_test_nest_lock_25): New prototypes.
2356         (omp_lock_symver, strong_alias): Define.
2357         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
2358         decls.
2359         (gomp_end_task): New.
2360         (struct gomp_task_icv, gomp_global_icv): New.
2361         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
2362         (struct gomp_task): New.
2363         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2364         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2365         (gomp_icv): New.
2366         (gomp_schedule_type): Reorder enum to match
2367         omp_sched_t.
2368         * team.c (struct gomp_thread_start_data): Add thread_pool and task
2369         fields.
2370         (gomp_thread_start): Add gomp_team_barrier_wait call.
2371         For non-nested case remove clearing of docked thread thr fields.
2372         Use pool fields instead of global gomp_* variables.  Use
2373         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
2374         Create tasks for each member thread.
2375         (free_team): Only destroy team barrier, task_lock here and free it.
2376         (gomp_free_thread): Free last_team if non-NULL.
2377         (gomp_team_end): Call gomp_team_barrier_wait instead of
2378         gomp_barrier_wait.  For nested case call one extra
2379         gomp_barrier_wait.  Move here some destruction from free_team.
2380         Call free_team on pool->last_team if any, rather than freeing
2381         current team.  Destroy work_share_list_free_lock ifndef
2382         HAVE_SYNC_BUILTINS.
2383         (gomp_new_icv): New function.
2384         (gomp_threads, gomp_threads_size, gomp_threads_used,
2385         gomp_threads_dock): Removed.
2386         (gomp_thread_destructor): New variable.
2387         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
2388         functions.
2389         (gomp_team_start): Create new pool if current thread doesn't have
2390         one.  Use pool fields instead of global gomp_* variables.
2391         Initialize thread_pool field for new threads.  Clear single_count.
2392         Change last argument from ws to team, don't create
2393         new team, set ts.work_share to &team->work_shares[0] and clear
2394         ts.last_work_share.  Don't clear ts.work_share_generation.
2395         If number of threads changed, adjust atomically gomp_managed_threads.
2396         Use gomp_init_task instead of gomp_new_task,
2397         set thr->task to the corresponding implicit_task array entry.
2398         Create tasks for each member thread.  Initialize ts.level.
2399         (initialize_team): Call pthread_key_create on
2400         gomp_thread_destructor.
2401         (team_destructor): New function.
2402         (new_team): Removed.
2403         (gomp_new_team): New function.
2404         (free_team): Free gomp_work_share blocks chained through next_alloc,
2405         instead of freeing work_shares and destroying work_share_lock.
2406         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
2407         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
2408         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
2409         of gomp_barrier_wait.
2410         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
2411         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
2412         if gomp_work_share_start returned true.  Don't unlock ws->lock.
2413         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
2414         of gomp_barrier_wait.
2415         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
2416         gomp_work_share_init_done if gomp_work_share_start returned true.
2417         Don't unlock ws->lock.
2418         * work.c: Include stddef.h.
2419         (free_work_share): Use work_share_list_free_lock instead
2420         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
2421         Call gomp_fini_work_share and then either free ws if orphaned, or
2422         put it into work_share_list_free list of the current team.
2423         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
2424         functions.
2425         (gomp_work_share_start, gomp_work_share_end,
2426         gomp_work_share_end_nowait): Rewritten.
2427         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
2428         (openmp_version): Set to 200805.
2429         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
2430         omp_sched_guided, omp_sched_auto): New parameters.
2431         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2432         omp_set_max_active_levels, omp_get_max_active_levels,
2433         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2434         omp_get_active_level): New interfaces.
2435         * omp_lib.h.in (openmp_version): Set to 200805.
2436         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
2437         omp_sched_guided, omp_sched_auto): New parameters.
2438         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2439         omp_set_max_active_levels, omp_get_max_active_levels,
2440         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2441         omp_get_active_level): New externals.
2442         * loop.c: Include limits.h.
2443         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
2444         GFS_AUTO.
2445         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
2446         Likewise.  Use gomp_icv.
2447         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
2448         ts.static_trip here.
2449         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
2450         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
2451         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
2452         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
2453         don't unlock ws->lock, otherwise lock it.
2454         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
2455         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
2456         (gomp_parallel_loop_start): Call gomp_new_team instead of
2457         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
2458         Adjust gomp_team_start caller.  Pass 0 as second argument to
2459         gomp_resolve_num_threads.
2460         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
2461         If adding ws->chunk_size nthreads + 1 times after end won't
2462         overflow, set ws->mode to 1.
2463         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
2464         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
2465         GOMP_loop_ull_ordered_static_start,
2466         GOMP_loop_ull_ordered_dynamic_start,
2467         GOMP_loop_ull_ordered_guided_start,
2468         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
2469         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
2470         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
2471         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
2472         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
2473         prototypes.
2474         * libgomp.map: Export lock routines also @@OMP_2.0.
2475         (GOMP_loop_ordered_dynamic_first,
2476         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
2477         GOMP_loop_ordered_static_first): Remove.
2478         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
2479         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
2480         GOMP_loop_ull_ordered_dynamic_next,
2481         GOMP_loop_ull_ordered_dynamic_start,
2482         GOMP_loop_ull_ordered_guided_next,
2483         GOMP_loop_ull_ordered_guided_start,
2484         GOMP_loop_ull_ordered_runtime_next,
2485         GOMP_loop_ull_ordered_runtime_start,
2486         GOMP_loop_ull_ordered_static_next,
2487         GOMP_loop_ull_ordered_static_start,
2488         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
2489         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
2490         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
2491         (omp_set_schedule, omp_get_schedule,
2492         omp_get_thread_limit, omp_set_max_active_levels,
2493         omp_get_max_active_levels, omp_get_level,
2494         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
2495         omp_set_schedule_, omp_set_schedule_8_,
2496         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2497         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2498         omp_get_max_active_levels_, omp_get_level_,
2499         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2500         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2501         New exports @@OMP_3.0.
2502         * omp.h.in (omp_sched_t): New type.
2503         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2504         omp_set_max_active_levels, omp_get_max_active_levels,
2505         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
2506         omp_get_active_level): New prototypes.
2507         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
2508         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
2509         gomp_thread_limit_var, gomp_remaining_threads_count,
2510         gomp_remaining_threads_lock): New variables.
2511         (parse_spincount): New function.
2512         (initialize_env): Call gomp_init_num_threads unconditionally.
2513         Initialize gomp_available_cpus.  Call parse_spincount,
2514         initialize gomp_{,throttled_}spin_count_var
2515         depending on presence and value of OMP_WAIT_POLICY and
2516         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
2517         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
2518         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
2519         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
2520         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
2521         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
2522         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
2523         (gomp_global_icv): New.
2524         (parse_schedule): Use it.  Parse "auto".
2525         (omp_set_num_threads): Use gomp_icv.
2526         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
2527         Likewise.
2528         (omp_get_max_threads): Move from parallel.c.
2529         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
2530         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
2531         add ialias.
2532         (parse_stacksize, parse_wait_policy): New functions.
2533         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
2534         both wrappers for compatibility and new locks.
2535         (omp_set_schedule, omp_get_schedule,
2536         omp_get_thread_limit, omp_set_max_active_levels,
2537         omp_get_max_active_levels, omp_get_level,
2538         omp_get_ancestor_thread_num, omp_get_team_size,
2539         omp_get_active_level): New ialias_redirect.
2540         (omp_set_schedule_, omp_set_schedule_8_,
2541         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
2542         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
2543         omp_get_max_active_levels_, omp_get_level_,
2544         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
2545         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
2546         New functions.
2547         * parallel.c: Include limits.h.
2548         (gomp_resolve_num_threads): Add count argument.  Rewritten.
2549         (GOMP_parallel_start): Call gomp_new_team and pass that as last
2550         argument to gomp_team_start.  Pass 0 as second argument to
2551         gomp_resolve_num_threads.
2552         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
2553         if gomp_thread_limit_var != ULONG_MAX.
2554         (omp_in_parallel): Implement using ts.active_level.
2555         (omp_get_max_threads): Move to env.c.
2556         (omp_get_level, omp_get_ancestor_thread_num,
2557         omp_get_team_size, omp_get_active_level): New functions,
2558         add ialias.
2559         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
2560         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
2561         gomp_iter_dynamic_next instead of the _locked variant and don't take
2562         lock around it, otherwise acquire it before calling
2563         gomp_iter_dynamic_next_locked.
2564         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
2565         gomp_iter_dynamic_next instead of the _locked variant and don't take
2566         lock around it.
2567         (GOMP_parallel_sections_start): Call gomp_new_team instead of
2568         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
2569         Adjust gomp_team_start caller.  Pass count as second argument to
2570         gomp_resolve_num_threads, don't adjust num_threads after the call.
2571         Use gomp_icv.
2572         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
2573         ws->chunk_size by incr.
2574         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
2575         code.
2576         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
2577         types.
2578         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
2579         (omp_check_defines): Check even the compat defines.
2580         * config/linux/ptrlock.c: New file.
2581         * config/linux/ptrlock.h: New file.
2582         * config/linux/wait.h: New file.
2583         * config/posix/ptrlock.c: New file.
2584         * config/posix/ptrlock.h: New file.
2585         * config/linux/bar.h (gomp_team_barrier_wait,
2586         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2587         (gomp_team_barrier_set_task_pending,
2588         gomp_team_barrier_clear_task_pending,
2589         gomp_team_barrier_set_waiting_for_tasks,
2590         gomp_team_barrier_waiting_for_tasks,
2591         gomp_team_barrier_done): New inlines.
2592         (gomp_barrier_t): Rewritten.
2593         (gomp_barrier_state_t): New typedef.
2594         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
2595         gomp_barrier_wait_start): Rewritten.
2596         (gomp_barrier_wait_end): Change second argument to
2597         gomp_barrier_state_t.
2598         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2599         inlines.
2600         * config/linux/bar.c: Include wait.h instead of libgomp.h and
2601         futex.h.
2602         (gomp_barrier_wait_end): Rewritten.
2603         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2604         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
2605         * config/posix/bar.h (gomp_barrier_t): Add generation field.
2606         (gomp_barrier_state_t): New typedef.
2607         (gomp_team_barrier_wait,
2608         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
2609         (gomp_barrier_wait_start): Or all but low 2 bits from generation
2610         into the return value.  Return gomp_barrier_state_t.
2611         (gomp_team_barrier_set_task_pending,
2612         gomp_team_barrier_clear_task_pending,
2613         gomp_team_barrier_set_waiting_for_tasks,
2614         gomp_team_barrier_waiting_for_tasks,
2615         gomp_team_barrier_done): New inlines.
2616         (gomp_barrier_wait_end): Change second argument to
2617         gomp_barrier_state_t.
2618         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
2619         inlines.
2620         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
2621         (gomp_barrier_wait_end): Change second argument to
2622         gomp_barrier_state_t.
2623         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
2624         gomp_team_barrier_wake): New functions.
2625         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
2626         futex.h.
2627         (gomp_futex_wake, gomp_futex_wait): New variables.
2628         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
2629         * config/linux/lock.c: Rewrite to make locks task owned,
2630         for backwards compatibility provide the old entrypoints
2631         if symbol versioning.  Include wait.h instead of libgomp.h and
2632         futex.h.
2633         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
2634         * config/posix95/lock.c: Rewrite to make locks task owned,
2635         for backwards compatibility provide the old entrypoints
2636         if symbol versioning.
2637         * config/posix/lock.c: Rewrite to make locks task owned,
2638         for backwards compatibility provide the old entrypoints
2639         if symbol versioning.
2640         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
2641         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
2642         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
2643         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2644         (sys_futex0): Return error code.
2645         (futex_wake, futex_wait): If ENOSYS was returned, clear
2646         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2647         (cpu_relax, atomic_write_barrier): New static inlines.
2648         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2649         (futex_wake, futex_wait): If ENOSYS was returned, clear
2650         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2651         (cpu_relax, atomic_write_barrier): New static inlines.
2652         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2653         (sys_futex0): Return error code.
2654         (futex_wake, futex_wait): If ENOSYS was returned, clear
2655         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2656         (cpu_relax, atomic_write_barrier): New static inlines.
2657         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2658         (sys_futex0): Return error code.
2659         (futex_wake, futex_wait): If ENOSYS was returned, clear
2660         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2661         (cpu_relax, atomic_write_barrier): New static inlines.
2662         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2663         (sys_futex0): Return error code.
2664         (futex_wake, futex_wait): If ENOSYS was returned, clear
2665         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2666         (cpu_relax, atomic_write_barrier): New static inlines.
2667         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
2668         (sys_futex0): Return error code.
2669         (futex_wake, futex_wait): If ENOSYS was returned, clear
2670         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
2671         (cpu_relax, atomic_write_barrier): New static inlines.
2672         * config/linux/sem.c: Include wait.h instead of libgomp.h and
2673         futex.h.
2674         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
2675         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
2676         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
2677         types.
2678         (omp_nest_lock_t): Change owner into void *, add lock field.
2679         * config/posix95/omp-lock.h: Include semaphore.h.
2680         (omp_lock_25_t, omp_nest_lock_25_t): New types.
2681         (omp_lock_t): Use sem_t instead of mutex if semaphores
2682         aren't broken.
2683         (omp_nest_lock_t): Likewise.  Change owner to void *.
2684         * config/posix/omp-lock.h: Include semaphore.h.
2685         (omp_lock_25_t, omp_nest_lock_25_t): New types.
2686         (omp_lock_t): Use sem_t instead of mutex if semaphores
2687         aren't broken.
2688         (omp_nest_lock_t): Likewise.  Add owner field.
2690 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
2692         * testsuite/libgomp.c/collapse-1.c: New test.
2693         * testsuite/libgomp.c/collapse-2.c: New test.
2694         * testsuite/libgomp.c/collapse-3.c: New test.
2695         * testsuite/libgomp.c/icv-1.c: New test.
2696         * testsuite/libgomp.c/icv-2.c: New test.
2697         * testsuite/libgomp.c/lib-2.c: New test.
2698         * testsuite/libgomp.c/lock-1.c: New test.
2699         * testsuite/libgomp.c/lock-2.c: New test.
2700         * testsuite/libgomp.c/lock-3.c: New test.
2701         * testsuite/libgomp.c/loop-4.c: New test.
2702         * testsuite/libgomp.c/loop-5.c: New test.
2703         * testsuite/libgomp.c/loop-6.c: New test.
2704         * testsuite/libgomp.c/loop-7.c: New test.
2705         * testsuite/libgomp.c/loop-8.c: New test.
2706         * testsuite/libgomp.c/loop-9.c: New test.
2707         * testsuite/libgomp.c/nested-3.c: New test.
2708         * testsuite/libgomp.c/nestedfn-6.c: New test.
2709         * testsuite/libgomp.c/sort-1.c: New test.
2710         * testsuite/libgomp.c/task-1.c: New test.
2711         * testsuite/libgomp.c/task-2.c: New test.
2712         * testsuite/libgomp.c/task-3.c: New test.
2713         * testsuite/libgomp.c/task-4.c: New test.
2714         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
2715         to C++ testsuite default compiler options.
2716         * testsuite/libgomp.c++/collapse-1.C: New test.
2717         * testsuite/libgomp.c++/collapse-2.C: New test.
2718         * testsuite/libgomp.c++/ctor-10.C: New test.
2719         * testsuite/libgomp.c++/for-1.C: New test.
2720         * testsuite/libgomp.c++/for-2.C: New test.
2721         * testsuite/libgomp.c++/for-3.C: New test.
2722         * testsuite/libgomp.c++/for-4.C: New test.
2723         * testsuite/libgomp.c++/for-5.C: New test.
2724         * testsuite/libgomp.c++/loop-8.C: New test.
2725         * testsuite/libgomp.c++/loop-9.C: New test.
2726         * testsuite/libgomp.c++/loop-10.C: New test.
2727         * testsuite/libgomp.c++/task-1.C: New test.
2728         * testsuite/libgomp.c++/task-2.C: New test.
2729         * testsuite/libgomp.c++/task-3.C: New test.
2730         * testsuite/libgomp.c++/task-4.C: New test.
2731         * testsuite/libgomp.c++/task-5.C: New test.
2732         * testsuite/libgomp.c++/task-6.C: New test.
2733         * testsuite/libgomp.fortran/allocatable1.f90: New test.
2734         * testsuite/libgomp.fortran/allocatable2.f90: New test.
2735         * testsuite/libgomp.fortran/allocatable3.f90: New test.
2736         * testsuite/libgomp.fortran/allocatable4.f90: New test.
2737         * testsuite/libgomp.fortran/collapse1.f90: New test.
2738         * testsuite/libgomp.fortran/collapse2.f90: New test.
2739         * testsuite/libgomp.fortran/collapse3.f90: New test.
2740         * testsuite/libgomp.fortran/collapse4.f90: New test.
2741         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
2742         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
2743         * testsuite/libgomp.fortran/lib4.f90: New test.
2744         * testsuite/libgomp.fortran/lock-1.f90: New test.
2745         * testsuite/libgomp.fortran/lock-2.f90: New test.
2746         * testsuite/libgomp.fortran/nested1.f90: New test.
2747         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
2748         * testsuite/libgomp.fortran/strassen.f90: New test.
2749         * testsuite/libgomp.fortran/tabs1.f90: New test.
2750         * testsuite/libgomp.fortran/tabs2.f: New test.
2751         * testsuite/libgomp.fortran/task1.f90: New test.
2752         * testsuite/libgomp.fortran/task2.f90: New test.
2753         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
2754         * testsuite/libgomp.fortran/vla5.f90: Likewise.
2755         * testsuite/libgomp.c/pr26943-2.c: Likewise.
2756         * testsuite/libgomp.c/pr26943-3.c: Likewise.
2757         * testsuite/libgomp.c/pr26943-4.c: Likewise.
2759 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
2761         PR c++/36308
2762         * testsuite/libgomp.c++/ctor-11.C: New test.
2763         * testsuite/libgomp.c++/ctor-12.C: New test.
2765 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
2767         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
2769 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
2771         PR middle-end/36106
2772         * testsuite/libgomp.c/atomic-5.c: New test.
2773         * testsuite/libgomp.c/atomic-6.c: New test.
2774         * testsuite/libgomp.c/autopar-1.c: New test.
2776 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2778         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
2779         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
2780         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
2781         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
2782         * configure: Regenerate.
2783         * Makefile.in, testsuite/Makefile.in: Likewise.
2785 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
2787         PR bootstrap/35457
2788         * aclocal.m4: Regenerate.
2789         * configure: Regenerate.
2791 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
2793         PR middle-end/35611
2794         * testsuite/libgomp.c/atomic-4.c: New test.
2796         PR libgomp/35625
2797         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
2798         (gomp_iter_guided_next): Likewise.
2799         * testsuite/libgomp.c/pr35625.c: New test.
2801 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2803         * aclocal.m4: Regenerate.
2804         * configure: Likewise.
2805         * Makefile.in: Likewise.
2806         * testsuite/Makefile.in: Likewise.
2808 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
2810         PR middle-end/35185
2811         * testsuite/libgomp.c++/pr35185.C: New test.
2813 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
2815         PR middle-end/35549
2816         * testsuite/libgomp.c/pr35549.c: New test.
2818 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
2820         * testsuite/libgomp.c/atomic-3.c: New test.
2822 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2824         PR fortran/33197
2825         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
2826         .F08 file suffixes.
2828 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
2830         PR libgomp/33131
2831         * configure.ac: Add ACX_HEADER_STRING.
2832         * env.c: Include strings.h.
2833         * aclocal.m4: Regenerate.
2834         * config.h.in: Regenerate.
2835         * configure: Regenerate.
2836         * Makefile.in: Regenerate.
2837         * testsuite/Makefile.in: Regenerate.
2839 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
2841         PR middle-end/35196
2842         * testsuite/libgomp.c/pr35196.c: New test.
2844         PR middle-end/35130
2845         * testsuite/libgomp.fortran/pr35130.f90: New test.
2846         * testsuite/libgomp.c/pr35130.c: New test.
2848 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
2850         PR middle-end/33880
2851         * testsuite/libgomp.c/pr33880.c: New test.
2852         * testsuite/libgomp.fortran/pr33880.f90: New test.
2854 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
2856         * configure: Regenerate.
2858 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
2860         * configure.ac: Move futex checking into ../config/futex.m4.
2861         * configure: Rebuilt.
2862         * aclocal.m4: Rebuilt.
2863         * Makefile.in: Rebuilt.
2865         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
2866         2007-10-15 ../config/tls.m4 change.
2868 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
2870         PR c++/34513
2871         * testsuite/libgomp.c/pr34513.c: New test.
2872         * testsuite/libgomp.c++/pr34513.C: New test.
2874 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
2876         PR target/32765
2877         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
2879 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
2881         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
2883 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
2885         * testsuite/libgomp.c/private-1.c: New test.
2887 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
2888             Paolo Bonzini  <bonzini@gnu.org>
2890         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
2891         instead of 'VPATH ='.
2892         * Makefile.in: Regenerate.
2894 2007-11-23  Matthias Klose  <doko@ubuntu.com>
2896         * configure.ac: Adjust makeinfo version check.
2897         * configure: Regenerate.
2899 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
2901         PR fortran/34020
2902         * testsuite/libgomp.fortran/pr34020.f90: New test.
2904 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
2906         PR c++/33894
2907         * testsuite/libgomp.c++/atomic-1.C: New test.
2909 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
2911         PR libgomp/33275
2912         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
2913         Make x and y integers rather than (implicit) reals.  Add private (j)
2914         clause to the last omp parallel.
2916 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
2918         * configure: Regenerate following changes to ../config/tls.m4.
2920 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
2922         * testsuite/libgomp.fortran/stack.f90: New test.
2924 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
2926         * config/mingw32/proc.c: New file.
2928 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
2930         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
2931         (main): Use __get_cpuid to get i386 target fetaures.
2932         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
2933         (main): Use __get_cpuid to get x86_64 target fetaures.
2935 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
2937         PR target/32765
2938         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
2939         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
2941 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
2943         PR fortran/32550
2944         * testsuite/libgomp.fortran/pr32550.f90: New test.
2945         * testsuite/libgomp.fortran/crayptr2.f90: New test.
2947 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
2949         * aclocal.m4: Regenerated.
2951 2007-07-05  Tobias Burnus  <burnus@net-b.de>
2953         PR fortran/32359
2954         * testsuite/libgomp.fortran/pr32359.f90: New.
2956 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
2958         PR libgomp/32468
2959         * sections.c (GOMP_parallel_sections_start): Only decrease
2960         number of threads to COUNT if dyn_var is true.
2961         * testsuite/libgomp.c/pr32468.c: New test.
2963 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2965         PR libgomp/26308
2966         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
2968 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
2970         PR middle-end/32362
2971         * testsuite/libgomp.c/pr32362-1.c: New test.
2972         * testsuite/libgomp.c/pr32362-2.c: New test.
2973         * testsuite/libgomp.c/pr32362-3.c: New test.
2975 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
2977         * team.c (gomp_team_start): Fix setting up thread_attr
2978         stack size.
2980 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
2982         * configure: Regenerate.
2984 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
2986         * Makefile.in: Regenerate.
2987         * configure: Regenerate.
2988         * aclocal.m4: Regenerate.
2989         * testsuite/Makefile.in: Regenerate.
2991 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
2993         * config/linux/proc.c: New file.
2995         PR libgomp/28482
2996         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
2998 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
3000         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
3002 2007-04-16  Matthias Klose  <doko@debian.org>
3004         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
3005         flags if not building with -m64.
3006         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
3007         flag for i?86-*-* targets, if current target matches -m64.
3009 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
3011         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
3012         * Makefile.in: Regenerate.
3014 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3016         PR testsuite/31369
3017         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
3018         ld_library_path.
3019         * testsuite/libgomp.fortran/fortran.exp: Likewise.
3021 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
3023         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
3024         decls.
3025         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
3026         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
3027         (parse_affinity): New function.
3028         (initialize_env): Call it and gomp_init_affinity.
3029         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
3030         create new pthread_attr_t and call gomp_init_thread_affinity
3031         on it for each thread before passing the attribute to pthread_create.
3032         * config/linux/affinity.c: New file.
3033         * config/posix/affinity.c: New file.
3034         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
3035         * configure: Rebuilt.
3036         * config.h.in: Rebuilt.
3037         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
3038         * Makefile.in: Rebuilt.
3040 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
3042         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
3043         *-*-darwin*.
3044         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
3045         and use it if found.
3047 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
3049         * testsuite/config/default.exp: New file.
3050         * testsuite/lib/libgomp.exp: New file.
3051         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
3052         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
3053         load_lib *, load_gcc_lib *): Move to libgomp.exp.
3054         (libgomp_load): Remove.
3055         * testsuite/lib/libgomp.exp (libgomp_init): Compute
3056         always_ld_library_path, not ld_library_path.  Set additional_flags
3057         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
3058         (target_compile): Do not call libgomp_init.  Append lang_library_path
3059         and lang_link_flags to options.
3060         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
3061         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
3062         here.
3063         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
3064         always_ld_library_path.  Set LD_LIBRARY_PATH here.
3065         * testsuite/libgomp.fortran/fortran.exp: Ditto.
3066         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
3067         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
3068         CX8 flag.
3069         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
3070         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
3071         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
3072         * testsuite/libgomp.c/pr29947-1.c: Ditto.
3073         * testsuite/libgomp.c/atomic-10.c: Ditto.
3075 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
3077         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
3078         dg-final cleanup-modules line.
3079         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
3080         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
3081         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
3082         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
3083         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
3084         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
3085         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
3087 2007-03-18  Andreas Schwab  <schwab@suse.de>
3089         * acinclude.m4: Adjust regular expression for ld version
3090         extraction.
3091         * configure: Regenerate.
3093 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
3095         * Makefile.am: Add install-pdf target as copied from
3096         automake v1.10 rules.
3097         * Makefile.in: Regenerate
3099 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
3101         PR libgomp/28486
3102         * configure: Regenerate.
3104         PR c++/30703
3105         * testsuite/libgomp.c++/pr30703.C: New test.
3107 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
3109         Revert:
3110         2006-07-05  Eric Christopher  <echristo@apple.com>
3111         * configure.ac: Depend addition of -pthread on host OS.
3112         * configure: Regenerate.
3114 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3116         * libgomp.texi: Fix spacing after abbreviations.
3118 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
3120         PR libgomp/30546
3121         * configure.ac: Add check for makeinfo
3122         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
3123         if an appropiate version of makeinfo is found.
3124         * aclocal.m4: Regenerated.
3125         * configure: Regenerated.
3126         * Makefile.in: Regenerated.
3127         * testsuite/Makefile.in: Regenerated.
3129 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
3131         PR libgomp/30540
3132         * libgomp.texi: More about implementation-dependent settings.
3134 2007-01-26  Tobias Burnus  <burnus@net-b.de>
3136         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
3138 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
3140         PR middle-end/30494
3141         * testsuite/libgomp.c/pr30494.c: New test.
3143 2007-01-15  Tom Tromey  <tromey@redhat.com>
3145         * configure: Rebuilt.
3146         * configure.ac: Fixed comment.
3148 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
3150         * libgomp.texi: Document implementation specific default values of
3151         environment variables.
3153 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
3155         PR libgomp/28209
3156         * libgomp.texi: New file.
3157         * configure.ac: Add --enable-generated-files-in-srcdir option.
3158         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
3159         files to srcdir.
3160         * Makefile.in: Regenerated.
3161         * config.h.in: Regenerated.
3162         * testsuite/Makefile.in: Regenerated.
3163         * NOTES: Removed.
3165 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
3167         PR libgomp/29949
3168         * env.c (omp_set_num_threads): Set illegal thread count to 1.
3170 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
3172         * configure: Regenerate.
3174 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
3176         PR libgomp/29947
3177         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
3178         start if there shouldn't be any loop iterations.
3179         (gomp_loop_ordered_static_start): Remove start == end test.
3180         * testsuite/libgomp.c/pr29947-1.c: New test.
3181         * testsuite/libgomp.c/pr29947-2.c: New test.
3183 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
3185         * configure.tgt: Force initial-exec TLS model on Linux only.
3187 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
3189         * configure: Regenerated.
3191 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
3193         * env.c (parse_schedule): Reject out of range values.
3194         (parse_unsigned_long): Reject out of range, negative or zero values.
3196 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
3198         PR fortran/29629
3199         * testsuite/libgomp.fortran/pr29629.f90: New test.
3201 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
3203         PR libgomp/29494
3204         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
3205         * config/posix95: New directory.
3206         * config/posix95/omp-lock.h: New file.
3207         * config/posix95/lock.c: Likewise.
3209 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
3211         * aclocal.m4: Regenerate.
3212         * configure: Regenerate.
3214 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
3216         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
3217         '<' to '<='.
3219 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
3221         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
3222         test.
3223         * configure: Regenerate.
3224         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
3226 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
3228         PR middle-end/25261
3229         PR middle-end/28790
3230         * testsuite/libgomp.c/nestedfn-4.c: New test.
3231         * testsuite/libgomp.c/nestedfn-5.c: New test.
3232         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
3234         PR fortran/29097
3235         * testsuite/libgomp.fortran/condinc1.f: New test.
3236         * testsuite/libgomp.fortran/condinc2.f: New test.
3237         * testsuite/libgomp.fortran/condinc3.f90: New test.
3238         * testsuite/libgomp.fortran/condinc4.f90: New test.
3239         * testsuite/libgomp.fortran/condinc1.inc: New file.
3241 2006-09-18  Tom Tromey  <tromey@redhat.com>
3243         * configure: Rebuilt.
3245 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
3247         PR c/28768
3248         PR preprocessor/14634
3249         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
3250         to AC_DEFINE.
3251         * configure: Regenerate.
3253 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
3255         * testsuite/libgomp.fortran/reduction3.f90: Change
3256         -2147483648 to -huge(i)-1 to avoid overflow.
3257         * testsuite/libgomp.fortran/reduction4.f90: Change
3258         Z'ffffffff' to not(0) to avoid overflow.
3260 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
3262         PR libgomp/25938
3263         * Makefile.am (libsubincludedir): New.
3264         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
3265         * Makefile.in: Regenerate.
3267 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
3269         PR libgomp/28725
3270         * env.c: Include ctype.h.
3271         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
3272         leading and/or trailing whitespace and compare strings case
3273         insensitively.
3275 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
3277         PR fortran/28390
3278         * testsuite/libgomp.fortran/pr28390.f: New test.
3280 2006-07-05  Eric Christopher  <echristo@apple.com>
3282         * configure.ac: Depend addition of -pthread on host OS.
3283         * configure: Regenerate.
3285 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
3287         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
3288         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
3289         defined.
3291 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
3293         PR libgomp/26175
3294         PR libgomp/26477
3295         * configure.ac: If neither --enable-linux-futex nor
3296         --disable-linux-futex is passed, determine the default by checking
3297         for compiling and/or running against NPTL.  With --enable-linux-futex,
3298         check if SYS_gettid and SYS_futex are defined.
3299         * configure: Rebuilt.
3301 2006-06-14  Richard Henderson  <rth@redhat.com>
3303         PR libgomp/28008
3304         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
3305         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
3307 2006-06-09  Richard Henderson  <rth@redhat.com>
3309         * env.c (gomp_nthreads_var): Change to unsigned long.
3310         (gomp_run_sched_chunk): Likewise.
3311         (parse_unsigned_long): Rename from parse_num_threads and generalize.
3312         (initialize_env): Initialize gomp_thread_attr.
3313         * libgomp.h (gomp_nthreads_var): Update decl.
3314         (gomp_run_sched_chunk): Likewise.
3315         (gomp_thread_attr): Declare.
3316         * team.c (gomp_thread_attr): Export.
3317         (initialize_team): Don't initialize it.
3319 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
3321         PR fortran/27916
3322         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
3323         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
3325 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3327         * config/mingw32/time.c: New file.
3328         * configure.tgt: Use it.
3330 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
3332         * Makefile.am: Add install-html target. Add install-html to .PHONY
3333         * Makefile.in: Regenerate.
3335 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3337         PR libgomp/27612
3338         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
3339         * testsuite/libgomp.c/critical-1.c: Likewise.
3340         * testsuite/libgomp.c/loop-1.c: Likewise.
3341         * testsuite/libgomp.c/loop-2.c: Likewise.
3342         * testsuite/libgomp.c/single-1.c: Likewise.
3343         * testsuite/libgomp.c/ordered-1.c: Likewise.
3344         * testsuite/libgomp.c/ordered-2.c: Likewise.
3346 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
3348         PR middle-end/27416
3349         * libgomp.fortran/pr27416-1.f90: New test.
3351 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
3353         PR fortran/27395
3354         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
3355         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
3357 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
3359         PR c++/26943
3360         * testsuite/libgomp.c/pr26943-1.c: New test.
3361         * testsuite/libgomp.c/pr26943-2.c: New test.
3362         * testsuite/libgomp.c/pr26943-3.c: New test.
3363         * testsuite/libgomp.c/pr26943-4.c: New test.
3364         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
3365         * testsuite/libgomp.c++/pr26943.C: New test.
3367 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
3369         PR middle-end/27337
3370         * testsuite/libgomp.c++/pr27337.C: New test.
3372 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
3374         PR c/26171
3375         * testsuite/libgomp.c/pr26171.c: New test.
3377 2006-04-25  Richard Henderson  <rth@redhat.com>
3379         PR libgomp/25865
3380         * configure.ac: Use GCC_CHECK_TLS.
3381         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
3382         * Makefile.in, aclocal.m4, configure: Regenerate.
3384 2006-04-10  Matthias Klose  <doko@debian.org>
3386         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
3387         directory names containing underscores.
3389 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
3391         PR c++/26691
3392         * testsuite/libgomp.c++/pr26691.C: New test.
3394 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
3396         * testsuite/libgomp.fortran/retval2.f90: New test.
3398 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
3400         * testsuite/libgomp.c++: New directory.
3402 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
3404         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
3405         * config/posix/sem.c: Implement the above.
3407 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
3409         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
3410         define HAVE_BROKEN_POSIX_SEMAPHORES.
3411         * configure: Rebuilt.
3412         * config.h.in: Rebuilt.
3414 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3416         PR bootstrap/26161
3417         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
3418         for the other pthread check.
3419         * configure: Regenerate.
3420         * config.h.in: Regenerate.
3422 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
3424         PR libgomp/25938
3425         PR libgomp/25984
3426         * Makefile.am (fincludedir): New variable.
3427         (nodist_include_HEADERS): Remove Fortran files.
3428         (nodist_finclude_HEADERS): New variable.
3429         * Makefile.in: Regenerated.
3431 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
3433         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
3434         Remove tests for returning assumed character length arrays.
3436 2006-02-12  Roger Sayle  <roger@eyesopen.com>
3437             John David Anglin  <dave@hiauly1.hia.nrc.ca>
3439         PR libgomp/25936
3440         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
3442 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
3444         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
3446 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
3448         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
3449         part of LD_LIBRARY_PATH manually.
3451 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
3453         PR libgomp/25852
3454         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
3455         libgomp_init.
3457 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
3459         PR libgomp/25884
3460         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
3461         * configure.ac (PERL): Don't set.
3462         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
3463         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
3464         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
3465         * omp.h.in: Wrap the new configure substitutions with @ characters.
3466         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
3467         * aclocal.m4, configure, Makefile.in: Regenerate.
3468         * mkomp_h.pl: Delete.
3470 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
3472         PR libgomp/25259
3473         * configure.ac: Use GCC_HEADER_STDINT.
3474         * libgomp.h: Include gstdint.h.
3475         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
3476         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
3478 2006-01-24  Richard Henderson  <rth@redhat.com>
3480         PR libgomp/25942
3481         * configure.ac: Add AM_MAINTAINER_MODE.
3482         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
3484 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
3486         * Makefile.in: Regenerate.
3487         * testsuite/Makefile.in: Regenerate.
3488         * aclocal.m4: Regenerate.
3490 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
3492         * config/posix/proc.c: Conditional include of sys/loadavg.h for
3493         Solaris.
3494         * configure.ac: Add check for loadavg.h.
3495         (link_gomp): Adjust comment.
3496         * configure: Regenerate.
3497         * config.h.in: Regenerate.
3499 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
3501         PR libgomp/25877
3502         * configure.ac: Remove check for alloca.h.
3503         * configure: Regenerate.
3504         * config.h.in: Regenerate.
3505         * libgomp.h: define gomp_alloca to be __builtin_alloca.
3506         * team.c: Remove use of alloca.h.
3507         Call gomp_alloca instead of alloca.
3509 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
3511         PR libgomp/25877
3512         * team.c: Add include of alloca.h.
3513         * configure.ac: Add check for alloca.h.
3514         * configure: Regenerate.
3515         * config.h.in: Regenerate.
3517 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
3519         PR fortran/25219
3520         * testsuite/libgomp.fortran/pr25219.f90: New test.
3522 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
3524         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
3525         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
3526         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3527         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3528         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
3529         testsuite/libgomp.fortran/threadprivate1.f90,
3530         testsuite/libgomp.fortran/threadprivate2.f90,
3531         testsuite/libgomp.fortran/threadprivate3.f90,
3532         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3533         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3534         testsuite/libgomp.fortran/omp_parse3.f90: Change required
3535         effective-target to TLS runtime.
3537         * testsuite/libgomp.fortran/pr25162.f: Require
3538         effective-target TLS runtime.
3540 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
3542         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
3543         * testsuite/libgomp.c/nestedfn-3.c: New test.
3545 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
3547         PR fortran/25162
3548         * testsuite/libgomp.fortran/pr25162.f: New test.
3550 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
3552         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
3553         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
3555 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
3557         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
3558         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
3559         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
3560         single.c, team.c, work.c, config/linux/alpha/futex.h,
3561         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
3562         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
3563         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
3564         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
3565         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
3566         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
3567         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
3568         FSF address.
3570 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
3572         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
3573         to nodist_noinst_HEADERS.
3574         * Makefile.in: Rebuilt.
3576         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
3577         add integer count field.
3578         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
3579         omp_nest_lock_t type change.
3580         (omp_init_nest_lock): Likewise.  Initialize count to 0.
3581         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
3582         Increment count.
3583         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
3584         Decrement count.
3585         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
3586         Increment count if successful and return the new nesting level.
3587         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
3588         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
3589         * testsuite/libgomp.c/lib-1.c: New test.
3590         * testsuite/libgomp.fortran/lib1.f90: New test.
3591         * testsuite/libgomp.fortran/lib2.f: New test.
3592         * testsuite/libgomp.fortran/lib3.f: New test.
3594 2005-11-17  Richard Henderson  <rth@redhat.com>
3596         PR 24845
3597         * Makefile.am (nodist_toolexeclib_HEADERS): New.
3598         * configure.ac (link_gomp): New.  Substitute it.
3599         (AC_CONFIG_FILES): Add libgomp.spec.
3600         * libgomp.spec.in: New file.
3601         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
3602         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
3604 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
3606         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
3607         reduction(-:var) behaving the same as reduction(+:var).
3608         * testsuite/libgomp.c/reduction-4.c: New test.
3610 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
3612         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
3613         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
3614         testsuite/libgomp.c/copyin-3.c,
3615         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
3616         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
3617         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
3618         testsuite/libgomp.c++/pr24455.C,
3619         testsuite/libgomp.fortran/threadprivate1.f90,
3620         testsuite/libgomp.fortran/threadprivate2.f90,
3621         testsuite/libgomp.fortran/threadprivate3.f90,
3622         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
3623         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
3624         testsuite/libgomp.fortran/omp_parse3.f90: Require
3625         effective-target TLS.
3627 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
3629         * HEADER: Remove.
3631 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
3633         PR libgomp/24797
3634         * team.c (initialize_team): Pass NULL rather than free as
3635         pthread_key_create destructor.  Initialize thread specific data
3636         pointer in initial thread to a static local variable rather than
3637         malloced memory.
3639 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
3641         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
3642         its location to ld_library_path.
3644 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
3646         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
3648 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
3650         * testsuite/libgomp.c: Rename from libgomp.dg.
3652 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
3654         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
3655         threadprivate variable 'i'.
3657 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
3659         * config/linux/s390/futex.h: New file.
3660         * configure.tgt: Use it.
3662         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
3663         before the parallel.
3665 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
3667         PR c++/24734
3668         * testsuite/libgomp.c++/master-1.C: New test.
3670 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
3672         * testsuite/libgomp.dg/copyin-3.c: New test.
3674 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
3676         * testsuite/libgomp.fortran/retval1.f90: New test.
3677         * testsuite/libgomp.fortran/vla7.f90: New test.
3679 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
3681         * testsuite/libgomp.fortran/vla2.f90: New test.
3682         * testsuite/libgomp.fortran/vla3.f90: New test.
3683         * testsuite/libgomp.fortran/vla4.f90: New test.
3684         * testsuite/libgomp.fortran/vla5.f90: New test.
3685         * testsuite/libgomp.fortran/vla6.f90: New test.
3687 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
3689         * config/linux/sparc/futex.h: New file.
3690         * configure.tgt: Use it.
3691         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
3693         * critical.c: Include stdlib.h.
3694         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
3695         ignoring return value.
3696         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
3697         LIBGOMP_CHECK_SYNC_BUILTINS check.
3698         * configure: Rebuilt.
3700 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
3702         * testsuite/libgomp.fortran/vla1.f90: New test.
3704 2005-10-31  Richard Henderson  <rth@redhat.com>
3706         * testsuite/libgomp.fortran/character2.f90: Fix race condition
3707         setting 's' in different threads.
3709 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
3711         * libgomp.h (attribute_hidden, ialias): Define.
3712         * config/posix/proc.c (omp_get_num_procs): Add ialias.
3713         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
3714         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
3715         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3716         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3717         omp_test_lock, omp_test_nest_lock): Likewise.
3718         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
3719         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
3720         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
3721         omp_test_lock, omp_test_nest_lock): Likewise.
3722         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
3723         omp_get_dynamic, omp_get_nested): Likewise.
3724         * parallel.c (omp_get_num_threads, omp_get_max_threads,
3725         omp_get_thread_num, omp_in_parallel): Likewise.
3726         * fortran.c (ialias_redirect): Define.
3727         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
3728         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
3729         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
3730         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
3731         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
3732         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
3733         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
3734         omp_get_wtime): Add ialias_redirect.
3736 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
3738         * fortran.c: Include stdlib.h.
3740 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
3742         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
3743         * Makefile.in: Regenerated.
3745 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
3747         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
3748         * libgomp_f.h.in (omp_check_defines): New function.
3749         * env.c: Include libgomp_f.h.
3750         (initialize_env): Call omp_check_defines.
3752         * testsuite/libgomp.dg/copyin-2.c: New test.
3753         * testsuite/libgomp.c++/copyin-2.C: New test.
3754         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
3756         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
3757         * testsuite/libgomp.fortran/sharing2.f90: New test.
3759         * testsuite/libgomp.dg/copyin-1.c: New test.
3760         * testsuite/libgomp.c++/copyin-1.C: New test.
3762 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
3764         * testsuite/libgomp.fortran/crayptr1.f90: New test.
3766         * testsuite/libgomp.fortran/workshare1.f90: New test.
3768         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
3769         only test.
3770         * libgomp.fortran/sharing1.f90: New test.
3772 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
3774         PR c++/24502
3775         * testsuite/libgomp.c++/loop-7.C: New test.
3777         * testsuite/libgomp.dg/nestedfn-2.c: New test.
3779         * testsuite/libgomp.dg/nestedfn-1.c: New test.
3780         * testsuite/libgomp.fortran/reduction6.f90: New test.
3781         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
3783 2005-10-23  Richard Henderson  <rth@redhat.com>
3785         * testsuite/libgomp.c++/ctor-1.C: New.
3786         * testsuite/libgomp.c++/ctor-2.C: New.
3787         * testsuite/libgomp.c++/ctor-3.C: New.
3788         * testsuite/libgomp.c++/ctor-4.C: New.
3789         * testsuite/libgomp.c++/ctor-5.C: New.
3790         * testsuite/libgomp.c++/ctor-6.C: New.
3791         * testsuite/libgomp.c++/ctor-7.C: New.
3792         * testsuite/libgomp.c++/ctor-8.C: New.
3793         * testsuite/libgomp.c++/ctor-9.C: New.
3795 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
3797         PR 24455
3798         * testsuite/libgomp.c++/pr24455-1.C: New test.
3799         * testsuite/libgomp.c++/pr24455.C: New test.
3800         * testsuite/libgomp.dg/pr24455-1.c: New test.
3801         * testsuite/libgomp.dg/pr24455.c: New test.
3803 2005-10-20  Richard Henderson  <rth@redhat.com>
3805         * testsuite/libgomp.c++/loop-6.C: New.
3806         * testsuite/libgomp.dg/loop-3.c: New.
3808 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
3810         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
3811         explicitly private.
3812         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
3813         explicitly shared.
3815 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
3817         * testsuite/libgomp.fortran/jacobi.f: New test.
3819 2005-10-19  Richard Henderson  <rth@redhat.com>
3821         * configure.tgt (i?86-linux): Default to with_arch instead of
3822         CFLAGS.  Add -mtune to match target_cpu.
3823         (x86_64-linux): Tune to i686.
3825         * fortran.c (omp_test_nest_lock_): Fix typo.
3827 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
3829         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3830         gomp_ordered_sync): Do nothing if team->nthreads == 1.
3831         * testsuite/libgomp.dg/ordered-3.c: New test.
3833         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
3834         Remove volatile keyword.
3836         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
3837         in COMMON block to avoid warnings on 64-bit targets.
3839 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
3841         * testsuite/libgomp.dg/shared-3.c: New test.
3843 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
3845         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
3846         * testsuite/libgomp.fortran/reduction5.f90: New test.
3848 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
3850         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
3851         dg-options.
3852         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
3853         flush loop now that __sync_synchronize has proper memory barrier.
3854         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
3855         Add -ffixed-form to dg-options.
3857 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
3859         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
3860         from subdirectories.
3861         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
3862         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
3863         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
3864         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
3865         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
3866         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
3867         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
3868         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
3869         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
3870         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
3871         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
3872         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
3873         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
3874         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
3875         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
3876         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
3877         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
3878         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
3879         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
3880         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
3881         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
3882         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
3883         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
3884         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
3885         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
3887 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
3889         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
3890         lang_library_path exists.  Use find instead of glob to gather tests.
3891         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
3893 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
3895         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
3896         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
3897         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
3898         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
3899         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
3900         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
3901         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
3902         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
3903         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
3904         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
3905         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
3906         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
3907         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
3909 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
3911         * testsuite/libgomp.dg/vla-1.c: New test.
3913         * testsuite/libgomp.fortran/reference2.f90: New test.
3915         * testsuite/libgomp.fortran/character2.f90: Remove explicit
3916         declaration of omp_get_thread_num.
3917         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
3918         use omp_lib.
3920         * testsuite/libgomp.fortran/reduction1.f90: New test.
3921         * testsuite/libgomp.fortran/reduction2.f90: New test.
3922         * testsuite/libgomp.fortran/reduction3.f90: New test.
3923         * testsuite/libgomp.fortran/reduction4.f90: New test.
3925 2005-10-13  Richard Henderson  <rth@redhat.com>
3927         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
3928         * Makefile.in: Regenerate.
3929         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
3930         * libgomp.h: Include bar.h.
3931         (struct gomp_barrier): Remove.
3932         (struct gomp_team): Add barrier.  Replace master_barrier with
3933         master_release.  Replace threads with ordered_release.
3934         (struct gomp_thread): Replace barrier with release.
3935         * ordered.c (gomp_ordered_first): Update for ordered_release change.
3936         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
3937         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
3938         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
3939         (GOMP_single_copy_end): Likewise.
3940         * team.c (gomp_threads_dock): New.
3941         (gomp_barrier_init, gomp_barrier_destroy): Remove.
3942         (gomp_thread_start): Use gomp_barrier_wait.
3943         (new_team, free_team): Update for gomp_team changes.
3944         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
3945         (gomp_team_end): Use gomp_barrier_wait.
3946         (initialize_team): Update for gomp_thread changes.
3947         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
3948         (gomp_work_share_end_nowait): Use atomic ops when available.
3949         * config/linux/bar.c, config/linux/bar.h: New files.
3950         * config/posix/bar.c, config/posix/bar.h: New files.
3952 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
3954         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
3955         * testsuite/libgomp.dg/single-2.c: New test.
3957         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
3958         lang_link_flags): Unset, so that they aren't inherited from previously
3959         sourced *.exp.
3961         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
3963 2005-10-12  Richard Henderson  <rth@redhat.com>
3965         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
3966         (libgomp_init): Use lang_test_file, lang_library_path, and
3967         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
3969         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
3970         (lang_test_file, lang_link_flags): New.
3971         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
3973         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
3974         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
3975         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
3976         testsuite/libgomp.c++/parallel-1.C,
3977         testsuite/libgomp.c++/reduction-1.C,
3978         testsuite/libgomp.c++/reduction-2.C,
3979         testsuite/libgomp.c++/reduction-3.C,
3980         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
3981         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
3982         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
3983         New files, largely cribbed from the C testsuite.
3985 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
3987         * testsuite/libgomp.fortran/character1.f90: New test.
3988         * testsuite/libgomp.fortran/character2.f90: New test.
3990         * testsuite/libgomp.dg/nested-1.c: New test.
3991         * testsuite/libgomp.dg/nested-2.c: New test.
3992         * testsuite/libgomp.fortran/do1.f90: New test.
3993         * testsuite/libgomp.fortran/do2.f90: New test.
3995         * testsuite/libgomp.fortran/reference1.f90: New test.
3997 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
3999         * testsuite/libgomp.dg/reduction-1.c: New test.
4000         * testsuite/libgomp.dg/reduction-2.c: New test.
4001         * testsuite/libgomp.dg/reduction-3.c: New test.
4003 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
4005         * testsuite/libgomp.dg/atomic-1.c: New test.
4006         * testsuite/libgomp.dg/atomic-2.c: New test.
4008 2005-10-09  Richard Henderson  <rth@redhat.com>
4010         * critical.c (atomic_lock): New.
4011         (initialize_critical): Initialize it.
4012         (GOMP_atomic_start, GOMP_atomic_end): New.
4013         * libgomp.map: Export them.
4014         * libgomp_g.h: Declare them.
4016         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
4018 2005-10-02  Richard Henderson  <rth@redhat.com>
4020         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
4021         to XCFLAGS instead of CFLAGS.
4023 2005-09-30  Richard Henderson  <rth@redhat.com>
4025         * configure.ac: Determine whether -pthread or -lpthread is needed.
4026         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
4027         * Makefine.in, configure: Rebuild.
4029 2005-09-28  Richard Henderson  <rth@redhat.com>
4031         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
4032         * testsuite/libgomp.dg/omp-single-3.c: New test.
4034 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
4036         * testsuite/libgomp.dg/omp-single-2.c: New test.
4037         * testsuite/libgomp.dg/shared-2.c: Fix return code.
4039 2005-09-27  Richard Henderson  <rth@redhat.com>
4041         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
4042         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
4044 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
4046         * testsuite/libgomp.dg/omp-loop03.c: New test.
4048 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
4050         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
4052 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
4054         * testsuite/libgomp.dg/omp-single-1.c: New test.
4055         * testsuite/libgomp.dg/shared-1.c: Return 0.
4056         Add prototype for abort.
4057         * testsuite/libgomp.dg/shared-2.c: Likewise.
4059 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
4061         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
4062         constructs.
4064 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
4066         * testsuite/libgomp.dg/shared-1.c: New test.
4067         * testsuite/libgomp.dg/shared-2.c: New test.
4069 2005-09-24  Richard Henderson  <rth@redhat.com>
4071         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
4073 2005-09-24  Richard Henderson  <rth@redhat.com>
4075         * iter.c (gomp_iter_static_next): Round up when computing number
4076         of iterations.  Don't bother distributing a remainder equally.
4078         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
4079         Don't call srand.  Zero b before testing.
4080         (main): New.
4082 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
4084         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
4085         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
4087 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
4089         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
4090         without !$omp end do, followed immediately by subroutine end.
4092 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
4094         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
4096 2005-09-22  Richard Henderson  <rth@redhat.com>
4098         * critical.c (GOMP_critical_name_start): Change argument to void**.
4099         Reuse the pointer space if the mutex fits.
4100         (GOMP_critical_name_end): Likewise.
4101         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
4102         * libgomp_g.h (GOMP_critical_name_start): Update decl.
4103         (GOMP_critical_name_end): Likewise.
4104         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
4105         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
4107 2005-09-20  Richard Henderson  <rth@redhat.com>
4109         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
4110         (create_lock_lock): New.
4111         (initialize_critical): Initialize it.
4112         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
4113         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
4115 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
4117         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
4119 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
4121         * testsuite/libgomp.dg/omp-loop01.c: New test.
4122         * testsuite/libgomp.dg/omp-loop02.c: New test.
4124 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
4126         * configure.ac (AC_PROG_FC): Add.
4127         (USE_FORTRAN): New automake conditional.
4128         * configure: Rebuilt.
4129         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
4130         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
4131         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
4132         Add rules to build them.
4133         * Makefile.in: Rebuilt.
4134         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
4135         OMP_NEST_LOCK_KIND.
4136         * libgomp.map: Add Fortran wrappers.
4137         * libgomp_f.h.in: New file.
4138         * omp_lib.h.in: New file.
4139         * omp_lib.f90.in: New file.
4140         * fortran.c: New file.
4141         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
4142         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
4143         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
4144         libgfortran has been built.
4145         * testsuite/libgomp.fortran/fortran.exp: New file.
4146         * testsuite/libgomp.fortran/omp_cond1.f: New test.
4147         * testsuite/libgomp.fortran/omp_cond2.f: New test.
4148         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
4149         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
4150         * testsuite/libgomp.fortran/omp_hello.f: New test.
4151         * testsuite/libgomp.fortran/omp_orphan.f: New test.
4152         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
4153         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
4154         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
4155         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
4156         * testsuite/libgomp.fortran/omp_reduction.f: New test.
4157         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
4158         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
4160 2005-08-30  Richard Henderson  <rth@redhat.com>
4162         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
4163         function for when aliases are not usable.
4164         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
4165         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
4166         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
4167         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
4168         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
4169         GOMP_loop_ordered_guided_next): Likewise.
4170         * ordered.c (GOMP_ordered_start): Likewise.
4172 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
4174         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
4175         * testsuite/libgomp.dg/omp_hello.c: Fix return code
4176         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
4177         * testsuite/libgomp.dg/omp_orphan.c: Likewise
4178         * testsuite/libgomp.dg/omp_reduction.c: Likewise
4179         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
4180         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
4181         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
4182         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
4184 2005-07-07  Eric Christopher  <echristo@redhat.com>
4185             Diego Novillo  <dnovillo@redhat.com>
4187         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
4188         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
4189         up code.
4190         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
4191         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
4192         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
4193         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
4194         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
4195         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
4196         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
4198 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
4200         * TOPLEVEL.patch: Remove.
4202 2005-05-16  Richard Henderson  <rth@redhat.com>
4204         * configure.ac: Test for clock_gettime.
4205         * config.h.in, configure: Rebuild.
4206         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
4207         (omp_get_wtime): Use clock_gettime if available.
4208         (omp_get_wtick): Use clock_getres if available.
4210 2005-05-11  Richard Henderson  <rth@redhat.com>
4212         * config/linux/ia64/futex.h: New file.
4213         * configure.tgt: Use it.
4215         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
4217 2005-05-07  Richard Henderson  <rth@redhat.com>
4219         * config/linux/powerpc/futex.h: New file.
4220         * configure.tgt: Use it.
4222         * config/linux/i486/futex.h: Merge ...
4223         * config/linux/x86_64/futex.h: ... into ...
4224         * config/linux/x86/futex.h: ... here.
4225         * configure.tgt: Update to match.
4227 2005-05-06  Richard Henderson  <rth@redhat.com>
4229         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
4230         * config/linux/i486/futex.h: Likewise.
4231         * config/linux/x86_64/futex.h: Likewise.
4233         * config/linux/lock.c: New file.
4234         * config/linux/omp-lock.h: New file.
4236         * critical.c, env.h: Don't include omp.h
4237         * config/posix/lock.c: Include libgomp.h instead of omp.h.
4238         * config/posix/time.c: Likewise.
4239         * config/posix/omp-lock.h: New file.
4240         * libgomp.h: Include omp-lock.h and omp.h.
4241         * Makefile.am (nodist_include_HEADERS): New.
4242         (omp.h): New rule.
4243         * configure.ac (PERL): New.
4244         * mkomp_h.pl: New file.
4245         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
4246         with templates.
4247         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
4249         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
4250         build directory.  Re-add -march=i486 hack.
4252         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
4253         (libgomp_link_flags): Remove.
4254         (libgomp_initialized): Remove.
4255         (libgomp_init): Don't protect from reinitialization.  Copy code
4256         from libstdc++ for getting the multilib set correctly.
4258 2005-05-05  Richard Henderson  <rth@redhat.com>
4260         * config/linux/alpha/futex.h: New file.
4261         * configure.tgt (alpha*-*-linux*): Use it.
4263         * config/posix/mutex.c: New file.
4264         * config/posix/sem.c: Use libgomp.h.
4266         * configure.tgt (x86_64-linux): Also test CC for -m32.
4267         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
4269         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
4270         after $gccpath.
4272         * Makefile.am (SUBDIRS): New.
4273         (libgomp_la_LDFLAGS): Add -lpthread.
4274         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
4275         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
4277         * libgomp_g.h: New file.
4278         * libgomp.h: Split out all public declarations to libgomp_g.h.
4279         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
4280         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
4281         * config/linux/sem.h: Likewise.
4282         * config/posix/sem.h: Likewise.
4284         * Makefile.am (AM_LDFLAGS): New.
4285         (libgomp_version_script): Split out from ...
4286         (libgomp_la_LDFLAGS): ... here.
4287         (libgomp_version_info): New.
4288         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
4289         (LIBGOMP_ENABLE): New.
4290         (LIBGOMP_CHECK_LINKER_FEATURES): New.
4291         (LIBGOMP_ENABLE_SYMVERS): New.
4292         * configure.ac (AC_INIT): Version 1.0.
4293         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
4294         (enable-linux-futex): Likewise.  Rename from enable-futex.
4295         (libtool_VERSION): New.
4296         (LIBGOMP_ENABLE_SYMVERS): Use it.
4297         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
4298         * Makefile.in, aclocal.m4, configure: Rebuild.
4300         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
4301         (gomp_mutex_unlock_slow): Fix typo.
4302         * config/linux/sem.c: Similarly.
4303         (gomp_sem_post_slow): Fix typo.
4304         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
4305         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
4306         [__PIC__] (sys_futex0): Don't use tmp output in asm.
4308         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
4309         (libgomp_la_LDFLAGS): Add top_srcdir to path.
4310         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
4311         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
4312         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
4313         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
4314         LDFLAGS.  Pull enable_futex check to top-level.
4315         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
4316         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
4318         First attempt at real configury.
4319         * Makefile, config.h: Remove file.
4320         * Makefile.am, Makefile.in: New file.
4321         * acinclude.m4 aclocal.m4: New file.
4322         * configure.ac, configure.tgt, configure: New file.
4324         * config/posix/lock.c: Rename from sys-lock.c.
4325         * config/posix/mutex.h: Rename from sys-mutex.h.
4326         * config/posix/sem.c: Rename from sys-sem.c.
4327         * config/posix/sem.h: Rename from sys-sem.h.
4328         * config/posix/proc.c: Rename from sys-proc.c.
4329         * config/posix/time.c: Rename from sys-proc.c.
4331         * config/linux/mutex.c: New file.
4332         * config/linux/mutex.h: New file.
4333         * config/linux/sem.c: New file.
4334         * config/linux/sem.h: New file.
4335         * config/linux/i486/futex.h: New file.
4336         * config/linux/x86_64/futex.h: New file.
4338 2005-05-04  Richard Henderson  <rth@redhat.com>
4340         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
4341         * libgomp.h: Declare them.
4342         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
4343         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
4345 2005-05-04  Richard Henderson  <rth@redhat.com>
4347         * libgomp-1 code drop
4349 2005-05-04  Richard Henderson  <rth@redhat.com>
4351         * iter.c (gomp_iter_static_next): Return tri-state on 0.
4352         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
4353         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
4354         (gomp_iter_static_next): Update.
4355         (gomp_ordered_static_next): Update.
4356         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
4357         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
4358         totally empty range.
4359         (gomp_loop_ordered_static_next): Refine test for calling
4360         gomp_ordered_static_next.
4361         * testsuite/ordered-1.c: Add case for more threads than iterations.
4363         * iter.c (gomp_iter_runtime_next_locked): Remove.
4364         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
4365         gomp_loop_guided_start, gomp_loop_ordered_static_start,
4366         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
4367         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
4368         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
4369         gomp_loop_ordered_guided_next): Downcase name, make static, add
4370         an external alias with the old name.
4371         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
4372         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
4373         switch and call one of the above static functions.
4374         * libgomp.h: Update.
4376         * work.c (gomp_work_share_start): Lock the mutex for !first too.
4377         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
4378         GOMP_loop_guided_start, GOMP_loop_runtime_start,
4379         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
4380         GOMP_loop_ordered_guided_start): Update to match.
4381         * sections.c (GOMP_sections_start): Likewise.
4382         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
4384         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
4385         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
4386         Use bounds check instead of modulus.
4387         (gomp_ordered_sync): Split out of GOMP_ordered_start.
4388         (gomp_ordered_last): Don't sync with ordered_owner here.
4389         (gomp_ordered_next): Likewise.
4390         (gomp_ordered_static_loop_next): Likewise.
4391         * loop.c, libgomp.h: Update to match.
4393         * libgomp.h (GOMP_barrier): Declare.
4395         * testsuite/barrier-1.c: New file.
4396         * testsuite/critical-1.c: New file.
4397         * testsuite/ordered-2.c: New file.
4398         * testsuite/ordered-1.c: New file.
4399         * testsuite/sections-1.c: New file.
4400         * testsuite/single-1.c: New file.
4401         * testsuite/Makefile (TESTS): Add them.
4403 2005-05-04  Richard Henderson  <rth@redhat.com>
4405         * libgomp.h (struct gomp_work_share): Add ordered_owner.
4406         * loop.c (GOMP_loop_static_start): If not the startup thread,
4407         acquire the mutex to wait for initialization complete.
4408         (GOMP_loop_ordered_static_start): Likewise.
4409         (GOMP_loop_ordered_runtime_start): Likewise.
4410         (GOMP_loop_ordered_static_first): Remove.
4411         (GOMP_loop_ordered_dynamic_first): Remove.
4412         (GOMP_loop_ordered_guided_first): Remove.
4413         (GOMP_loop_ordered_runtime_first): Remove.
4414         * ordered.c (gomp_ordered_loop_first): Post to own release when
4415         we're the first thread.
4416         (gomp_ordered_loop_last): Wait on release if not owner.
4417         (gomp_ordered_loop_next): Likewise.
4418         (gomp_ordered_static_loop_init): New.
4419         (gomp_ordered_static_loop_next): Use ordered_owner.
4420         (GOMP_ordered_start): Likewise.
4421         * work.c (gomp_new_work_share): Initialize ordered_owner.
4423 2005-05-03  Richard Henderson  <rth@redhat.com>
4425         * Makefile (OPT): New.
4426         (CFLAGS): Use it.
4428         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
4429         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
4430         * libgomp.h, libgomp.map, NOTES: Update to match.
4432         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
4433         Add initialized and thr members.
4434         (gomp_thread_start): Pause when initially spawned to wait for
4435         the whole team to be created.
4436         (gomp_team_start): Release team members at the end.
4438         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
4439         (f_foo_1): Use GOMP_loop_end.
4440         (f_foo_2): Use GOMP_loop_end_nowait.
4442         * testsuite/loop-2.c: New file.
4443         * testsuite/Makefile (TESTS): Add it.
4445 2005-05-03  Richard Henderson  <rth@redhat.com>
4447         * iter.c (gomp_iter_static_next): Fix overflow check typo.
4448         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
4449         * team.c (new_team): Initialize oldest_live_gen to 1 if no
4450         initial work_share.
4452         * testsuite/Makefile: New file.
4453         * testsuite/loop-1.c: New file.
4455 2005-05-03  Richard Henderson  <rth@redhat.com>
4457         Initial implementation and checkin.