OSDN Git Service

2012-02-06 Thomas König <tkoenig@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / libgomp / ChangeLog
1 2012-01-25  Matthias Klose  <doko@ubuntu.com>
2
3         * config/linux/arm: Remove empty directory.
4         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
5
6 2011-12-09  Alan Modra  <amodra@gmail.com>
7
8         PR libgomp/51376
9         * task.c (GOMP_taskwait): Don't access task->children outside of
10         task_lock mutex region.
11         (GOMP_task): Likewise.
12
13 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
14
15         PR libgomp/51132
16         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
17         to file scope.
18         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
19         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
20         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
21         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
22         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
23
24 2011-12-02  Alan Modra  <amodra@gmail.com>
25
26         * config/linux/affinity.c: Use atomic rather than sync builtin.
27         * config/linux/lock.c: Likewise.
28         * config/linux/ptrlock.h: Likewise.
29         * config/linux/ptrlock.c: Likewise.
30         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
31         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
32         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
33         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
34         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
35         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
36         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
37         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
38         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
39         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
40
41 2011-11-30  Alan Modra  <amodra@gmail.com>
42
43         PR libgomp/51298
44         * config/linux/bar.h: Use atomic rather than sync builtins.
45         * config/linux/bar.c: Likewise.  Add missing acquire
46         synchronisation on generation field.
47         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
48         double unlock.
49
50 2011-11-30  Alan Modra  <amodra@gmail.com>
51
52         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
53         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
54         * config/linux/mutex.h: Use atomic rather than sync builtins.
55         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
56         * config/linux/omp-lock.h: Comment fix.
57         * config/linux/arm/mutex.h: Delete.
58         * config/linux/powerpc/mutex.h: Delete.
59         * config/linux/ia64/mutex.h: Delete.
60         * config/linux/mips/mutex.h: Delete.
61
62 2011-11-30  Alan Modra  <amodra@gmail.com>
63
64         PR libgomp/51249
65         * config/linux/sem.h: Rewrite.
66         * config/linux/sem.c: Rewrite.
67
68 2011-11-28  Richard Henderson  <rth@redhat.com>
69
70         * libgomp.h (enum memmodel): New.
71
72 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
73
74         * configure: Regenerate.
75
76 2011-10-10  Matthias Klose  <doko@ubuntu.com>
77
78         * config/posix95: Remove empty directory.
79
80 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
81
82         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
83
84 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
85
86         PR fortran/49792
87         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
88         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
89
90 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
91
92         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
93
94 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
95
96         PR libgomp/49965
97         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
98
99 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
100
101         * config/linux/proc.h: New.
102         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
103         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
104         (gomp_init_num_threads): Update call to cpuset_popcount.
105         (get_num_procs): Ditto.
106         * config/linux/affinity.c (gomp_init_affinity): Call
107         gomp_cpuset_popcount.
108
109 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
110
111         PR fortran/42041
112         PR fortran/46752
113         * omp.h.in (omp_in_final): New prototype.
114         * omp_lib.f90.in (omp_in_final): New interface.
115         (omp_integer_kind, omp_logical_kind): Remove
116         and replace all its uses in the module with 4.
117         (openmp_version): Change to 201107.
118         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
119         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
120         kind for the parameters.
121         (omp_in_final): New external.
122         (openmp_version): Change to 201107.
123         * task.c (omp_in_final): New function.
124         (gomp_init_task): Initialize final_task.
125         (GOMP_task): Remove unused attribute from flags.  Handle final
126         tasks.
127         (GOMP_taskyield): New function.
128         (omp_in_final): Return true if if (false) or final (true) task
129         or descendant of final (true).
130         * fortran.c (omp_in_final_): New function.
131         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
132         (GOMP_3.0): Export GOMP_taskyield.
133         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
134         variables.
135         (parse_unsigned_long_list): New function.
136         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
137         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
138         even if parse_affinity returned false.
139         * config/linux/affinity.c (gomp_init_affinity): Handle
140         gomp_cpu_affinity_len == 0.
141         * libgomp_g.h (GOMP_taskyield): New prototype.
142         * libgomp.h (struct gomp_task): Add final_task field.
143         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
144         * team.c (gomp_team_start): Override new task's nthreads_var icv
145         if list form OMP_NUM_THREADS has been used and it has value for
146         the new nesting level.
147
148         * testsuite/libgomp.c/atomic-11.c: New test.
149         * testsuite/libgomp.c/atomic-12.c: New test.
150         * testsuite/libgomp.c/atomic-13.c: New test.
151         * testsuite/libgomp.c/atomic-14.c: New test.
152         * testsuite/libgomp.c/reduction-6.c: New test.
153         * testsuite/libgomp.c/task-5.c: New test.
154         * testsuite/libgomp.c++/atomic-2.C: New test.
155         * testsuite/libgomp.c++/atomic-3.C: New test.
156         * testsuite/libgomp.c++/atomic-4.C: New test.
157         * testsuite/libgomp.c++/atomic-5.C: New test.
158         * testsuite/libgomp.c++/atomic-6.C: New test.
159         * testsuite/libgomp.c++/atomic-7.C: New test.
160         * testsuite/libgomp.c++/atomic-8.C: New test.
161         * testsuite/libgomp.c++/atomic-9.C: New test.
162         * testsuite/libgomp.c++/task-8.C: New test.
163         * testsuite/libgomp.c++/reduction-4.C: New test.
164         * testsuite/libgomp.fortran/allocatable7.f90: New test.
165         * testsuite/libgomp.fortran/allocatable8.f90: New test.
166         * testsuite/libgomp.fortran/crayptr3.f90: New test.
167         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
168         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
169         * testsuite/libgomp.fortran/pointer1.f90: New test.
170         * testsuite/libgomp.fortran/pointer2.f90: New test.
171         * testsuite/libgomp.fortran/task4.f90: New test.
172
173 2011-08-02  Tobias Burnus  <burnus@net-b.de>
174
175         * libgomp.texi: Update OpenMP spec references to 3.1.
176         (omp_in_final,OMP_PROC_BIND): New sections.
177         (OMP_NUM_THREADS): Document that the value can be now a list.
178         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
179
180 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
181
182         * config/linux/x86/futex.h: Check __x86_64__ instead of
183         __LP64__.
184
185 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
186
187         PR middle-end/49897
188         PR middle-end/49898
189         * testsuite/libgomp.c/pr49897-1.c: New test.
190         * testsuite/libgomp.c/pr49897-2.c: New test.
191         * testsuite/libgomp.c/pr49898-1.c: New test.
192         * testsuite/libgomp.c/pr49898-2.c: New test.
193
194 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
195
196         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
197         for ia32 instead of ilp32.
198
199         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
200         * testsuite/libgomp.c/atomic-6.c: Likewise.
201
202 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
203
204         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
205         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
206
207 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
208
209         PR libgomp/45351
210         * config/osf/sem.h: New file.
211         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
212
213 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
214
215         PR target/49541
216         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
217         ldflags.
218
219 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
220
221         * config/linux/wait.h (do_spin): New inline, largely copied
222         from do_wait, just don't do futex_wait here, instead return true if
223         it should be done.
224         (do_wait): Implement using do_spin.
225         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
226         to prototype.
227         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
228         __sync_bool_compare_and_swap, pass the oldval to
229         gomp_mutex_lock_slow.
230         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
231         If all mutex contenders are just spinning and not sleeping, don't
232         change state to 2 unnecessarily.  Optimize the loop when state has
233         already become 2 to use just one atomic operation per loop instead
234         of two.
235         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
236         to prototype.
237         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
238         __sync_bool_compare_and_swap, pass the oldval to
239         gomp_mutex_lock_slow.
240
241 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
242
243         PR libgomp/49490
244         * iter.c (gomp_iter_static_next): For chunk size 0
245         only use n ceil/ nthreads size for the first
246         n % nthreads threads in the team instead of
247         all threads except for the last few ones which
248         get less work or none at all.
249         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
250         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
251         chunk argument, set run_sched_modifier to 0 for static
252         resp. 1 for other kinds.  If chunk argument is 0
253         and not static, set value to 1.
254
255 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
256
257         PR c++/49043
258         * testsuite/libgomp.c++/pr49043.C: New test.
259
260         PR c++/48869
261         * testsuite/libgomp.c++/pr48869.C: New test.
262
263 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
264
265         PR fortran/48894
266         * fortran.c: Include limits.h.
267         (TO_INT): Define.
268         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
269         *set.
270         (omp_set_num_threads_8_, omp_set_schedule_8_,
271         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
272         omp_get_team_size_8_): Use TO_INT macro.
273         * testsuite/libgomp.fortran/pr48894.f90: New test.
274
275 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
276
277         PR middle-end/48591
278         * testsuite/libgomp.c/pr48591.c: New test.
279
280 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
281
282         PR bootstrap/48135
283         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
284         * configure: Regenerate.
285
286 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
287
288         PR fortran/47886
289         * testsuite/libgomp.fortran/task3.f90: New test.
290
291 2011-02-24  Tobias Burnus  <burnus@net-b.de>
292
293         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
294
295 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
296
297         PR libgomp/47854
298         * libgomp.texi (omp_get_wtime): Don't say time in the past
299         must be Unix Epoch.
300
301 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
302
303         PR libgomp/47804
304         * testsuite/libgomp.fortran/fortran.exp: Check for both
305         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
306         but $blddir != "", still append ${blddir}/${lang_library_path}
307         to ld_library_path.
308
309 2011-02-16  Tobias Burnus  <burnus@net-b.de>
310
311         PR libgomp/47758
312         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
313         of libquadmath.a before adding its libpath to ldflags.
314
315 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
316
317         PR libgomp/47731
318         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
319         to FUTEX_WAIT futex syscall.
320         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
321
322 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
323
324         * configure: Regenerate.
325
326 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
327
328         PR libstdc++/36104
329         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
330
331 2011-01-16  Gerald Pfeifer
332
333         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
334
335 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
336
337         PR fortran/46874
338         * libgomp.fortran/allocatable6.f90: New test.
339
340 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
341
342         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
343         * configure: Regenerate.
344
345 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
346
347         PR target/40125
348         PR lto/46695
349         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
350         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
351         * aclocal.m4: Regenerate.
352         * configure: Regenerate.
353         * Makefile.in: Regenerate.
354         * testsuite/Makefile.in: Regenerate.
355
356 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
357
358         PR fortran/46753
359         * libgomp.fortran/pr46753.f90: New test.
360
361         PR libgomp/43706
362         * env.c (initialize_env): Default to spin count 300000
363         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
364         is specified.
365
366         PR libgomp/45240
367         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
368         at the end if sync builtins aren't supported.
369
370 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
371
372         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
373
374 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
375
376         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
377
378 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
379
380         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
381
382 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
383             Tobias Burnus  <burnus@net-b.de>
384
385         PR fortran/32049
386         * configure.ac:
387         * configure: Regenerate.
388
389 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
390
391         * config/linux/futex.h: New.
392         * config/linux/arm/mutex.h: New.
393         * configure.tgt (arm*-*-linux*): Add config path.
394
395 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
396
397         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
398
399 2010-09-23  Tobias Burnus  <burnus@net-b.de>
400
401         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
402         Change Fortran datatype to LOGICAL.
403         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
404         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
405
406 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
407
408         * configure: Regenerate.
409
410 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
411
412         * libgomp.texi: Add function keyword to a couple of Fortran
413         interfaces, use integer instead of int for Fortran.
414
415 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
416
417         * libgomp.texi: Fix spelling and pasto problems throughout.
418         Adjust prototypes to match code.
419
420 2010-07-24  Tobias Burnus  <burnus@net-b.de>
421
422         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
423         silence -fwhole-file warning.
424
425 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
426
427         * configure.tgt (*-*-solaris2.[56]*): Removed.
428
429 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
430
431         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
432         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
433         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
434         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
435         targetting solaris2*.
436         * configure: Regenerate.
437         * config.h.in: Regenerate.
438
439         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
440         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
441         Add libgomp_version_dep.
442         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
443         versioning.
444         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
445         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
446         * Makefile.in: Regenerate.
447
448         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
449         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
450         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
451         to common block, protected by
452         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
453
454 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
455
456         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
457
458 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
459
460         PR bootstrap/43170
461         * configure: Regenerate.
462
463 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
464
465         PR other/43620
466         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
467         * configure: Regenerate.
468         * Makefile.in: Regenerate.
469         * testsuite/Makefile.in: Regenerate.
470
471 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
472
473         PR c/43893
474         * testsuite/libgomp.c/pr43893.c: New test.
475         * testsuite/libgomp.c++/pr43893.C: New test.
476
477 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
478
479         PR middle-end/43570
480         * testsuite/libgomp.fortran/vla8.f90: New test.
481
482 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
483
484         PR libgomp/43706
485         * config/linux/affinity.c (gomp_init_affinity): Decrease
486         gomp_available_cpus if affinity mask confines the process to fewer
487         CPUs.
488         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
489         non-NULL, just return gomp_available_cpus.
490
491         PR libgomp/43569
492         * sections.c (gomp_sections_init): Initialize ws->mode.
493
494 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
495
496         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
497         not unused bar variable.
498         * configure: Regenerate.
499
500 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
501
502         * Makefile.in: Regenerate.
503         * aclocal.m4: Regenerate.
504         * testsuite/Makefile.in: Regenerate.
505
506 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
507
508         PR libgomp/42942
509         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
510         (initialize_env): Adjust callers.
511         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
512         when the argument is 0.
513
514         * testsuite/libgomp.c/pr42942.c: New test.
515
516 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
517
518         PR middle-end/42644
519         PR middle-end/42130
520         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
521         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
522
523 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
524
525         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
526         * testsuite/libgomp.c++/task-6.C: Likewise.
527
528 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
529
530         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
531
532 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
533
534         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
535         * configure: Regenerate.
536
537 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
538
539         PR fortran/42866
540         * testsuite/libgomp.fortran/allocatable5.f90: New test.
541
542 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
543
544         * configure.ac: Test for executability of GFORTRAN.
545         * configure: Regenerate.
546
547 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
548
549         * configure: Regenerate.
550
551 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
552
553         PR libgomp/42602
554         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
555
556 2010-01-03  Richard Guenther  <rguenther@suse.de>
557
558         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
559
560 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
561
562         * testsuite/libgomp.graphite/pr4118.c: New.
563
564 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
565
566         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
567         for darwin, protect the test with require-effective-target tls_runtime.
568         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
569
570 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
571
572         PR target/41605
573         * testsuite/lib/libgomp.exp: Provide -B options to allow for
574         link spec %s substitutions for static libraries.
575
576 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
577
578         PR testsuite/42135
579         * libgomp.graphite/force-parallel-2.c: Reduce array size.
580
581 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
582
583         * Makefile.in: Regenerate.
584         * configure: Regenerate.
585         * testsuite/Makefile.in: Regenerate.
586
587 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
588
589         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
590         settings for LC_ALL and LANG.
591
592 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
593
594         PR fortran/42162
595         * testsuite/libgomp.fortran/pr42162.f90: New test.
596
597 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
598
599         PR middle-end/42029
600         * testsuite/libgomp.c/pr42029.c: New test.
601
602 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
603
604         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
605         *s.  Accept ld version without text in ()s.
606         * configure: Regenerated.
607
608 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
609
610         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
611
612 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
613
614         PR libgomp/41418
615         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
616         or a hyphen (happens with fortran language disabled).
617         * configure: Regenerate.
618
619 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
620
621         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
622         use sed script portable to Solaris /bin/sed for extracting ld
623         version.
624         * configure: Regenerate.
625
626 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
627
628         * testsuite/libgomp.graphite/bounds.c: New test.
629
630 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
631
632         * Makefile.am (libgomp_la_LINK): New.
633         * Makefile.in: Regenerate.
634
635 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
636
637         * configure.ac (AC_PREREQ): Bump to 2.64.
638
639 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
640
641         * Makefile.am (install-html, install-pdf): Remove.
642         * Makefile.in: Regenerate.
643
644         * Makefile.in: Regenerate.
645         * aclocal.m4: Regenerate.
646         * config.h.in: Regenerate.
647         * configure: Regenerate.
648         * testsuite/Makefile.in: Regenerate.
649
650 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
651
652         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
653         * Makefile.in: Regenerate.
654
655 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
656
657         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
658         * Makefile.in: Regenerate.
659
660 2009-08-19  Tobias Burnus  <burnus@net-b.de>
661
662         PR fortran/41102
663         omp_lib.h.in: Fix -std=f95 errors.
664
665
666 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
667
668         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
669         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
670         * testsuite/libgomp.graphite/graphite.exp: New.
671
672 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
673
674         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
675         only build.
676
677 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
678
679         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
680         needed memory barrier semantics.
681         * config/linux/mips/mutex.h: New file.
682
683 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
684
685         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
686
687 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
688
689         * configure: Regenerate.
690
691 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
692
693         PR testsuite/40699
694         PR testsuite/40707
695         PR testsuite/40709
696         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
697         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
698         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
699
700 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
701
702         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
703         options when choosing a multilib.
704
705 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
706
707         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
708         ld_library_path.  Use add_path.  Add just find_libgcc_s to
709         ld_library_path, not every libgcc multilib directory.
710         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
711         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
712         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
713         Use add_path.
714         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
715
716 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
717
718         * Makefile.am (LTLDFLAGS): Define.
719         (LINK): Define.
720         * Makefile.in: Regenerate.
721
722 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
723
724         PR fortran/39718
725         * testsuite/libgomp.fortran/fortran.exp: Don't link with
726         libgfortranbegin, check existence of libgfortran.a instead of
727         libgfortranbegin.a.
728
729 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
730
731         PR libgomp/40174
732         * team.c (gomp_thread_start): Destroy thr->release semaphore.
733         (gomp_free_pool_helper): Likewise.
734
735 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
736             Jakub Jelinek  <jakub@redhat.com>
737
738         PR fortran/35423
739         * testsuite/libgomp.fortran/workshare2.f90: New test.
740
741 2009-04-09  Nick Clifton  <nickc@redhat.com>
742
743         * iter.c: Change copyright header to refer to version 3 of the
744         GNU General Public License with version 3.1 of the GCC Runtime
745         Library Exception and to point readers at the COPYING3 and
746         COPYING3.RUNTIME files and the FSF's license web page.
747         * alloc.c: Likewise.
748         * barrier.c: Likewise.
749         * config/bsd/proc.c: Likewise.
750         * config/linux/affinity.c: Likewise.
751         * config/linux/alpha/futex.h: Likewise.
752         * config/linux/bar.c: Likewise.
753         * config/linux/bar.h: Likewise.
754         * config/linux/ia64/futex.h: Likewise.
755         * config/linux/ia64/mutex.h: Likewise.
756         * config/linux/lock.c: Likewise.
757         * config/linux/mips/futex.h: Likewise.
758         * config/linux/mutex.c: Likewise.
759         * config/linux/mutex.h: Likewise.
760         * config/linux/powerpc/futex.h: Likewise.
761         * config/linux/proc.c: Likewise.
762         * config/linux/ptrlock.c: Likewise.
763         * config/linux/ptrlock.h: Likewise.
764         * config/linux/s390/futex.h: Likewise.
765         * config/linux/sem.c: Likewise.
766         * config/linux/sem.h: Likewise.
767         * config/linux/sparc/futex.h: Likewise.
768         * config/linux/wait.h: Likewise.
769         * config/linux/x86/futex.h: Likewise.
770         * config/mingw32/proc.c: Likewise.
771         * config/mingw32/time.c: Likewise.
772         * config/posix/affinity.c: Likewise.
773         * config/posix/bar.c: Likewise.
774         * config/posix/bar.h: Likewise.
775         * config/posix/lock.c: Likewise.
776         * config/posix/mutex.h: Likewise.
777         * config/posix/proc.c: Likewise.
778         * config/posix/ptrlock.h: Likewise.
779         * config/posix/sem.c: Likewise.
780         * config/posix/sem.h: Likewise.
781         * config/posix/time.c: Likewise.
782         * config/posix95/lock.c: Likewise.
783         * critical.c: Likewise.
784         * env.c: Likewise.
785         * error.c: Likewise.
786         * fortran.c: Likewise.
787         * iter_ull.c: Likewise.
788         * libgomp.h: Likewise.
789         * libgomp_f.h.in: Likewise.
790         * libgomp_g.h: Likewise.
791         * loop.c: Likewise.
792         * loop_ull.c: Likewise.
793         * omp.h.in: Likewise.
794         * omp_lib.f90.in: Likewise.
795         * omp_lib.h.in: Likewise.
796         * ordered.c: Likewise.
797         * parallel.c: Likewise.
798         * sections.c: Likewise.
799         * single.c: Likewise.
800         * task.c: Likewise.
801         * team.c: Likewise.
802         * work.c: Likewise.
803
804 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
805
806         * testsuite/config/default.exp: Change copyright header to refer to
807         version 3 of the GNU General Public License and to point readers
808         at the COPYING3 file and the FSF's license web page.
809
810 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
811
812         PR middle-end/39573
813         * libgomp.c++/pr39573.C: New test.
814
815 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
816
817         PR other/39591
818         * testsuite/libgomp.c/pr39591-1.c: New test.
819         * testsuite/libgomp.c/pr39591-2.c: New test.
820         * testsuite/libgomp.c/pr39591-3.c: New test.
821
822 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
823
824         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
825         * testsuite/libgomp.c/atomic-6.c: Ditto.
826
827 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
828
829         PR c/39495
830         * testsuite/libgomp.c/loop-12.c: New test.
831         * testsuite/libgomp.c/loop-11.c: New test.
832         * testsuite/libgomp.c++/loop-11.C: New test.
833         * testsuite/libgomp.c++/loop-12.C: New test.
834         * testsuite/libgomp.c++/for-8.C: New test.
835
836 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
837
838         * configure: Regenerate.
839
840 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
841
842         PR middle-end/39154
843         * testsuite/libgomp.c/pr39154.c: New test.
844
845 2009-01-30  Ian Lance Taylor  <iant@google.com>
846
847         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
848         libgomp_ld_is_gold.  Get gold version number.
849         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
850         * configure: Rebuild.
851
852 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
853
854         * testsuite/lib/libgomp.exp: Add -B option for targets that
855         use libgfortran.a%s in their specs.
856
857 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
858
859         PR libgomp/38086
860         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
861         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
862         HAVE_AS_SYMVER_DIRECTIVE is not defined.
863         * configure: Regenerated.
864         * config.h.in: Likewise.
865
866 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
867
868         PR c++/38650
869         * testsuite/libgomp.c/pr38650.c: New test.
870         * testsuite/libgomp.c++/pr38650.C: New test.
871
872 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
873
874         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
875
876 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
877
878         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
879
880 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
881
882         * configure: Regenerate.
883
884 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
885
886         PR middle-end/36802
887         * testsuite/libgomp.c/pr36802-1.c: New test.
888         * testsuite/libgomp.c/pr36802-2.c: New test.
889         * testsuite/libgomp.c/pr36802-3.c: New test.
890
891 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
892
893         PR libgomp/38270
894         * config/linux/powerpc/mutex.h: New.
895
896 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
897
898         PR c++/38257
899         * testsuite/libgomp.c++/for-7.C: New test.
900
901         PR c++/38348
902         * testsuite/libgomp.c++/for-6.C: New test.
903
904 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
905
906         PR testsuite/28870
907         * testsuite/lib/libgomp.exp: Include new timeout library files.
908         (libgomp_target_compile): Set timeout value from new proc.
909
910 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
911
912         PR libgomp/37938
913         * config/linux/ia64/mutex.h: New.
914
915 2008-11-04  Tobias Burnus  <burnus@net-b.de>
916
917         PR libgomp/37935
918         * libgomp.texi (Runtime library routines, environment variables):
919         Update for OpenMP version 3.0.
920
921 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
922             Steve Ellcey  <sje@cup.hp.com>
923
924         * configure: Regenerate for new libtool.
925         * Makefile.in: Ditto.
926         * testsuite/Makefile.in: Ditto.
927
928 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
929             Andreas Tobler  <a.tobler@schweiz.org>
930
931         * config/bsd/proc.c: New file.
932         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
933         * configure.ac: Check for header <sys/sysctl.h>
934         * configure: Regenerate.
935         * config.h.in: Likewise.
936
937 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
938
939         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
940
941 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
942
943         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
944         * Makefile.in: Regenerated.
945         * testsuite/Makefile.in: Regenerated.
946
947 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
948
949         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
950         depend on blddir if blddir exists.
951         (libgomp_target_compile): Likewise.
952         * testsuite/libgomp.c++/c++.exp: Likewise.
953         * testsuite/libgomp.fortran/fortran.exp: Likewise.
954
955 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
956
957         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
958         Do not list GPL as Invariant Section.
959
960 2008-07-28  Ilie Garbacea  <ilie@mips.com>
961             Chao-ying Fu  <fu@mips.com>
962
963         * configure.tgt: Enable futex for MIPS.
964         * config/linux/mips/futex.h: New file.
965
966 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
967
968         * team.c (gomp_team_end): Free team immediately if it has
969         just one thread.
970
971 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
972
973         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
974         * testsuite/libgomp.fortran/fortran.exp: Same.
975         * testsuite/libgomp.c/c.exp: Same.
976         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
977         directory to library path first.
978
979 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
980
981         * env.c (parse_stacksize): Add cast to avoid warning.
982         (parse_spincount): Likewise.
983
984 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
985
986         * testsuite/libgomp.c/loop-10.c: New test.
987         * libgomp.c/loop-3.c (main): Add lastprivate clause.
988         * libgomp.c++/loop-6.C (main): Likewise.
989
990         PR debug/36617
991         * testsuite/libgomp.c/debug-1.c: New test.
992
993 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
994
995         * testsuite/libgomp.c/nqueens-1.c: New test.
996
997         PR c++/36523
998         * testsuite/libgomp.c++/task-7.C: New function.
999
1000 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1001
1002         * configure: Regenerate.
1003
1004 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1005
1006         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
1007         mutex when HAVE_SYNC_BUILTINS isn't defined.
1008
1009 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1010
1011         * libgomp.texi (omp_test_lock): Fix typo.
1012
1013 2008-06-12  Tobias Burnus  <burnus@net-b.de>
1014
1015         * omp_lib.f90.in: Add "implicit none".
1016
1017 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
1018
1019         PR middle-end/36506
1020         * testsuite/libgomp.c/reduction-5.c: New test.
1021
1022 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
1023
1024         * libgomp.h (struct gomp_task): Add in_tied_task field.
1025         * task.c (gomp_init_task): Initialize it.
1026         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
1027         unconditionally.  Don't call gomp_team_barrier_wake if
1028         current task is implicit or if(0) from implicit and number of
1029         running tasks is equal to nthreads - 1.
1030
1031         PR libgomp/36471
1032         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
1033         omp_get_team_size_8): Fix pastos.
1034
1035         PR libgomp/36469
1036         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
1037         * configure: Regenerated.
1038         * config.h.in: Regenerated.
1039         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
1040         defined.
1041
1042 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
1043
1044         PR bootstrap/36452
1045         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
1046         (GOMP_loop_ull_dynamic_start): Likewise.
1047         (GOMP_loop_ull_guided_start): Likewise.
1048         (GOMP_loop_ull_ordered_static_start): Likewise.
1049         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
1050         (GOMP_loop_ull_ordered_guided_start): Likewise.
1051
1052 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1053             Richard Henderson  <rth@redhat.com>
1054             Ulrich Drepper  <drepper@redhat.com>
1055             Jakob Blomer  <jakob.blomer@ira.uka.de>
1056
1057         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
1058         Substitute also OMP_*LOCK_25*.
1059         * configure: Regenerated.
1060         * config.h.in: Regenerated.
1061         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
1062         ptrlock.c and task.c.
1063         * Makefile.in: Regenerated.
1064         * testsuite/Makefile.in: Regenerated.
1065         * task.c: New file.
1066         * loop_ull.c: New file.
1067         * iter_ull.c: New file.
1068         * libgomp.h: Include ptrlock.h.
1069         (enum gomp_task_kind): New type.
1070         (struct gomp_team): Add task_lock, task_queue, task_count,
1071         task_running_count, single_count fields.  Add
1072         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
1073         Remove work_share_lock, generation_mask,
1074         oldest_live_gen, num_live_gen and init_work_shares fields, add
1075         work work_share_list_alloc, work_share_list_free and work_share_chunk
1076         fields.  Change work_shares from pointer to pointers into an array.
1077         Change ordered_release field into gomp_sem_t ** from flexible array
1078         member.  Add implicit_task and initial_work_shares fields.
1079         Move close to the end of the struct.
1080         (struct gomp_team_state): Add single_count, last_work_share,
1081         active_level and level fields, remove work_share_generation.
1082         (gomp_barrier_handle_tasks): New prototype.
1083         (gomp_finish_task): New inline function.
1084         (struct gomp_work_share): Move chunk_size, end, incr into
1085         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
1086         next_ll fields.  Reshuffle fields.  Add next_alloc,
1087         next_ws, next_free and inline_ordered_team_ids fields, change
1088         ordered_team_ids into pointer from flexible array member.
1089         Add mode field.  Put lock and next into a different cache line
1090         from most of the write-once fields.
1091         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
1092         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
1093         gomp_iter_ull_guided_next): New prototypes.
1094         (gomp_new_icv): New prototype.
1095         (struct gomp_thread): Add thread_pool and task fields.
1096         (struct gomp_thread_pool): New type.
1097         (gomp_new_team): New prototype.
1098         (gomp_team_start): Change type of last argument.
1099         (gomp_new_work_share): Removed.
1100         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
1101         (gomp_work_share_init_done): New static inline.
1102         (gomp_throttled_spin_count_var, gomp_available_cpus,
1103         gomp_managed_threads): New extern decls.
1104         (gomp_init_task): New prototype.
1105         (gomp_spin_count_var): New extern var decl.
1106         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
1107         or no alias support, or if not PIC.
1108         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
1109         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
1110         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
1111         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
1112         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
1113         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
1114         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
1115         gomp_test_nest_lock_25): New prototypes.
1116         (omp_lock_symver, strong_alias): Define.
1117         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
1118         decls.
1119         (gomp_end_task): New.
1120         (struct gomp_task_icv, gomp_global_icv): New.
1121         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
1122         (struct gomp_task): New.
1123         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1124         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1125         (gomp_icv): New.
1126         (gomp_schedule_type): Reorder enum to match
1127         omp_sched_t.
1128         * team.c (struct gomp_thread_start_data): Add thread_pool and task
1129         fields.
1130         (gomp_thread_start): Add gomp_team_barrier_wait call.
1131         For non-nested case remove clearing of docked thread thr fields.
1132         Use pool fields instead of global gomp_* variables.  Use
1133         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
1134         Create tasks for each member thread.
1135         (free_team): Only destroy team barrier, task_lock here and free it.
1136         (gomp_free_thread): Free last_team if non-NULL.
1137         (gomp_team_end): Call gomp_team_barrier_wait instead of
1138         gomp_barrier_wait.  For nested case call one extra
1139         gomp_barrier_wait.  Move here some destruction from free_team.
1140         Call free_team on pool->last_team if any, rather than freeing
1141         current team.  Destroy work_share_list_free_lock ifndef
1142         HAVE_SYNC_BUILTINS.
1143         (gomp_new_icv): New function.
1144         (gomp_threads, gomp_threads_size, gomp_threads_used,
1145         gomp_threads_dock): Removed.
1146         (gomp_thread_destructor): New variable.
1147         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
1148         functions.
1149         (gomp_team_start): Create new pool if current thread doesn't have
1150         one.  Use pool fields instead of global gomp_* variables.
1151         Initialize thread_pool field for new threads.  Clear single_count.
1152         Change last argument from ws to team, don't create
1153         new team, set ts.work_share to &team->work_shares[0] and clear
1154         ts.last_work_share.  Don't clear ts.work_share_generation.
1155         If number of threads changed, adjust atomically gomp_managed_threads.
1156         Use gomp_init_task instead of gomp_new_task,
1157         set thr->task to the corresponding implicit_task array entry.
1158         Create tasks for each member thread.  Initialize ts.level.
1159         (initialize_team): Call pthread_key_create on
1160         gomp_thread_destructor.
1161         (team_destructor): New function.
1162         (new_team): Removed.
1163         (gomp_new_team): New function.
1164         (free_team): Free gomp_work_share blocks chained through next_alloc,
1165         instead of freeing work_shares and destroying work_share_lock.
1166         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
1167         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
1168         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
1169         of gomp_barrier_wait.
1170         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
1171         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
1172         if gomp_work_share_start returned true.  Don't unlock ws->lock.
1173         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
1174         of gomp_barrier_wait.
1175         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
1176         gomp_work_share_init_done if gomp_work_share_start returned true.
1177         Don't unlock ws->lock.
1178         * work.c: Include stddef.h.
1179         (free_work_share): Use work_share_list_free_lock instead
1180         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
1181         Call gomp_fini_work_share and then either free ws if orphaned, or
1182         put it into work_share_list_free list of the current team.
1183         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
1184         functions.
1185         (gomp_work_share_start, gomp_work_share_end,
1186         gomp_work_share_end_nowait): Rewritten.
1187         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
1188         (openmp_version): Set to 200805.
1189         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1190         omp_sched_guided, omp_sched_auto): New parameters.
1191         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1192         omp_set_max_active_levels, omp_get_max_active_levels,
1193         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1194         omp_get_active_level): New interfaces.
1195         * omp_lib.h.in (openmp_version): Set to 200805.
1196         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
1197         omp_sched_guided, omp_sched_auto): New parameters.
1198         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1199         omp_set_max_active_levels, omp_get_max_active_levels,
1200         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1201         omp_get_active_level): New externals.
1202         * loop.c: Include limits.h.
1203         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
1204         GFS_AUTO.
1205         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
1206         Likewise.  Use gomp_icv.
1207         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
1208         ts.static_trip here.
1209         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
1210         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
1211         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
1212         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
1213         don't unlock ws->lock, otherwise lock it.
1214         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
1215         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
1216         (gomp_parallel_loop_start): Call gomp_new_team instead of
1217         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
1218         Adjust gomp_team_start caller.  Pass 0 as second argument to
1219         gomp_resolve_num_threads.
1220         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
1221         If adding ws->chunk_size nthreads + 1 times after end won't
1222         overflow, set ws->mode to 1.
1223         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
1224         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
1225         GOMP_loop_ull_ordered_static_start,
1226         GOMP_loop_ull_ordered_dynamic_start,
1227         GOMP_loop_ull_ordered_guided_start,
1228         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
1229         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
1230         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
1231         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
1232         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
1233         prototypes.
1234         * libgomp.map: Export lock routines also @@OMP_2.0.
1235         (GOMP_loop_ordered_dynamic_first,
1236         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
1237         GOMP_loop_ordered_static_first): Remove.
1238         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
1239         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
1240         GOMP_loop_ull_ordered_dynamic_next,
1241         GOMP_loop_ull_ordered_dynamic_start,
1242         GOMP_loop_ull_ordered_guided_next,
1243         GOMP_loop_ull_ordered_guided_start,
1244         GOMP_loop_ull_ordered_runtime_next,
1245         GOMP_loop_ull_ordered_runtime_start,
1246         GOMP_loop_ull_ordered_static_next,
1247         GOMP_loop_ull_ordered_static_start,
1248         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
1249         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
1250         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
1251         (omp_set_schedule, omp_get_schedule,
1252         omp_get_thread_limit, omp_set_max_active_levels,
1253         omp_get_max_active_levels, omp_get_level,
1254         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
1255         omp_set_schedule_, omp_set_schedule_8_,
1256         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1257         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1258         omp_get_max_active_levels_, omp_get_level_,
1259         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1260         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1261         New exports @@OMP_3.0.
1262         * omp.h.in (omp_sched_t): New type.
1263         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1264         omp_set_max_active_levels, omp_get_max_active_levels,
1265         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
1266         omp_get_active_level): New prototypes.
1267         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
1268         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
1269         gomp_thread_limit_var, gomp_remaining_threads_count,
1270         gomp_remaining_threads_lock): New variables.
1271         (parse_spincount): New function.
1272         (initialize_env): Call gomp_init_num_threads unconditionally.
1273         Initialize gomp_available_cpus.  Call parse_spincount,
1274         initialize gomp_{,throttled_}spin_count_var
1275         depending on presence and value of OMP_WAIT_POLICY and
1276         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
1277         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
1278         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
1279         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
1280         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
1281         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
1282         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
1283         (gomp_global_icv): New.
1284         (parse_schedule): Use it.  Parse "auto".
1285         (omp_set_num_threads): Use gomp_icv.
1286         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
1287         Likewise.
1288         (omp_get_max_threads): Move from parallel.c.
1289         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
1290         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
1291         add ialias.
1292         (parse_stacksize, parse_wait_policy): New functions.
1293         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
1294         both wrappers for compatibility and new locks.
1295         (omp_set_schedule, omp_get_schedule,
1296         omp_get_thread_limit, omp_set_max_active_levels,
1297         omp_get_max_active_levels, omp_get_level,
1298         omp_get_ancestor_thread_num, omp_get_team_size,
1299         omp_get_active_level): New ialias_redirect.
1300         (omp_set_schedule_, omp_set_schedule_8_,
1301         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
1302         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
1303         omp_get_max_active_levels_, omp_get_level_,
1304         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
1305         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
1306         New functions.
1307         * parallel.c: Include limits.h.
1308         (gomp_resolve_num_threads): Add count argument.  Rewritten.
1309         (GOMP_parallel_start): Call gomp_new_team and pass that as last
1310         argument to gomp_team_start.  Pass 0 as second argument to
1311         gomp_resolve_num_threads.
1312         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
1313         if gomp_thread_limit_var != ULONG_MAX.
1314         (omp_in_parallel): Implement using ts.active_level.
1315         (omp_get_max_threads): Move to env.c.
1316         (omp_get_level, omp_get_ancestor_thread_num,
1317         omp_get_team_size, omp_get_active_level): New functions,
1318         add ialias.
1319         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
1320         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
1321         gomp_iter_dynamic_next instead of the _locked variant and don't take
1322         lock around it, otherwise acquire it before calling
1323         gomp_iter_dynamic_next_locked.
1324         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
1325         gomp_iter_dynamic_next instead of the _locked variant and don't take
1326         lock around it.
1327         (GOMP_parallel_sections_start): Call gomp_new_team instead of
1328         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
1329         Adjust gomp_team_start caller.  Pass count as second argument to
1330         gomp_resolve_num_threads, don't adjust num_threads after the call.
1331         Use gomp_icv.
1332         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
1333         ws->chunk_size by incr.
1334         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
1335         code.
1336         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
1337         types.
1338         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
1339         (omp_check_defines): Check even the compat defines.
1340         * config/linux/ptrlock.c: New file.
1341         * config/linux/ptrlock.h: New file.
1342         * config/linux/wait.h: New file.
1343         * config/posix/ptrlock.c: New file.
1344         * config/posix/ptrlock.h: New file.
1345         * config/linux/bar.h (gomp_team_barrier_wait,
1346         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1347         (gomp_team_barrier_set_task_pending,
1348         gomp_team_barrier_clear_task_pending,
1349         gomp_team_barrier_set_waiting_for_tasks,
1350         gomp_team_barrier_waiting_for_tasks,
1351         gomp_team_barrier_done): New inlines.
1352         (gomp_barrier_t): Rewritten.
1353         (gomp_barrier_state_t): New typedef.
1354         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
1355         gomp_barrier_wait_start): Rewritten.
1356         (gomp_barrier_wait_end): Change second argument to
1357         gomp_barrier_state_t.
1358         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1359         inlines.
1360         * config/linux/bar.c: Include wait.h instead of libgomp.h and
1361         futex.h.
1362         (gomp_barrier_wait_end): Rewritten.
1363         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1364         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
1365         * config/posix/bar.h (gomp_barrier_t): Add generation field.
1366         (gomp_barrier_state_t): New typedef.
1367         (gomp_team_barrier_wait,
1368         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
1369         (gomp_barrier_wait_start): Or all but low 2 bits from generation
1370         into the return value.  Return gomp_barrier_state_t.
1371         (gomp_team_barrier_set_task_pending,
1372         gomp_team_barrier_clear_task_pending,
1373         gomp_team_barrier_set_waiting_for_tasks,
1374         gomp_team_barrier_waiting_for_tasks,
1375         gomp_team_barrier_done): New inlines.
1376         (gomp_barrier_wait_end): Change second argument to
1377         gomp_barrier_state_t.
1378         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
1379         inlines.
1380         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
1381         (gomp_barrier_wait_end): Change second argument to
1382         gomp_barrier_state_t.
1383         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
1384         gomp_team_barrier_wake): New functions.
1385         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
1386         futex.h.
1387         (gomp_futex_wake, gomp_futex_wait): New variables.
1388         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
1389         * config/linux/lock.c: Rewrite to make locks task owned,
1390         for backwards compatibility provide the old entrypoints
1391         if symbol versioning.  Include wait.h instead of libgomp.h and
1392         futex.h.
1393         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
1394         * config/posix95/lock.c: Rewrite to make locks task owned,
1395         for backwards compatibility provide the old entrypoints
1396         if symbol versioning.
1397         * config/posix/lock.c: Rewrite to make locks task owned,
1398         for backwards compatibility provide the old entrypoints
1399         if symbol versioning.
1400         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
1401         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
1402         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
1403         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1404         (sys_futex0): Return error code.
1405         (futex_wake, futex_wait): If ENOSYS was returned, clear
1406         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1407         (cpu_relax, atomic_write_barrier): New static inlines.
1408         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1409         (futex_wake, futex_wait): If ENOSYS was returned, clear
1410         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1411         (cpu_relax, atomic_write_barrier): New static inlines.
1412         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1413         (sys_futex0): Return error code.
1414         (futex_wake, futex_wait): If ENOSYS was returned, clear
1415         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1416         (cpu_relax, atomic_write_barrier): New static inlines.
1417         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1418         (sys_futex0): Return error code.
1419         (futex_wake, futex_wait): If ENOSYS was returned, clear
1420         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1421         (cpu_relax, atomic_write_barrier): New static inlines.
1422         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1423         (sys_futex0): Return error code.
1424         (futex_wake, futex_wait): If ENOSYS was returned, clear
1425         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1426         (cpu_relax, atomic_write_barrier): New static inlines.
1427         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
1428         (sys_futex0): Return error code.
1429         (futex_wake, futex_wait): If ENOSYS was returned, clear
1430         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
1431         (cpu_relax, atomic_write_barrier): New static inlines.
1432         * config/linux/sem.c: Include wait.h instead of libgomp.h and
1433         futex.h.
1434         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
1435         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
1436         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
1437         types.
1438         (omp_nest_lock_t): Change owner into void *, add lock field.
1439         * config/posix95/omp-lock.h: Include semaphore.h.
1440         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1441         (omp_lock_t): Use sem_t instead of mutex if semaphores
1442         aren't broken.
1443         (omp_nest_lock_t): Likewise.  Change owner to void *.
1444         * config/posix/omp-lock.h: Include semaphore.h.
1445         (omp_lock_25_t, omp_nest_lock_25_t): New types.
1446         (omp_lock_t): Use sem_t instead of mutex if semaphores
1447         aren't broken.
1448         (omp_nest_lock_t): Likewise.  Add owner field.
1449
1450 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1451
1452         * testsuite/libgomp.c/collapse-1.c: New test.
1453         * testsuite/libgomp.c/collapse-2.c: New test.
1454         * testsuite/libgomp.c/collapse-3.c: New test.
1455         * testsuite/libgomp.c/icv-1.c: New test.
1456         * testsuite/libgomp.c/icv-2.c: New test.
1457         * testsuite/libgomp.c/lib-2.c: New test.
1458         * testsuite/libgomp.c/lock-1.c: New test.
1459         * testsuite/libgomp.c/lock-2.c: New test.
1460         * testsuite/libgomp.c/lock-3.c: New test.
1461         * testsuite/libgomp.c/loop-4.c: New test.
1462         * testsuite/libgomp.c/loop-5.c: New test.
1463         * testsuite/libgomp.c/loop-6.c: New test.
1464         * testsuite/libgomp.c/loop-7.c: New test.
1465         * testsuite/libgomp.c/loop-8.c: New test.
1466         * testsuite/libgomp.c/loop-9.c: New test.
1467         * testsuite/libgomp.c/nested-3.c: New test.
1468         * testsuite/libgomp.c/nestedfn-6.c: New test.
1469         * testsuite/libgomp.c/sort-1.c: New test.
1470         * testsuite/libgomp.c/task-1.c: New test.
1471         * testsuite/libgomp.c/task-2.c: New test.
1472         * testsuite/libgomp.c/task-3.c: New test.
1473         * testsuite/libgomp.c/task-4.c: New test.
1474         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
1475         to C++ testsuite default compiler options.
1476         * testsuite/libgomp.c++/collapse-1.C: New test.
1477         * testsuite/libgomp.c++/collapse-2.C: New test.
1478         * testsuite/libgomp.c++/ctor-10.C: New test.
1479         * testsuite/libgomp.c++/for-1.C: New test.
1480         * testsuite/libgomp.c++/for-2.C: New test.
1481         * testsuite/libgomp.c++/for-3.C: New test.
1482         * testsuite/libgomp.c++/for-4.C: New test.
1483         * testsuite/libgomp.c++/for-5.C: New test.
1484         * testsuite/libgomp.c++/loop-8.C: New test.
1485         * testsuite/libgomp.c++/loop-9.C: New test.
1486         * testsuite/libgomp.c++/loop-10.C: New test.
1487         * testsuite/libgomp.c++/task-1.C: New test.
1488         * testsuite/libgomp.c++/task-2.C: New test.
1489         * testsuite/libgomp.c++/task-3.C: New test.
1490         * testsuite/libgomp.c++/task-4.C: New test.
1491         * testsuite/libgomp.c++/task-5.C: New test.
1492         * testsuite/libgomp.c++/task-6.C: New test.
1493         * testsuite/libgomp.fortran/allocatable1.f90: New test.
1494         * testsuite/libgomp.fortran/allocatable2.f90: New test.
1495         * testsuite/libgomp.fortran/allocatable3.f90: New test.
1496         * testsuite/libgomp.fortran/allocatable4.f90: New test.
1497         * testsuite/libgomp.fortran/collapse1.f90: New test.
1498         * testsuite/libgomp.fortran/collapse2.f90: New test.
1499         * testsuite/libgomp.fortran/collapse3.f90: New test.
1500         * testsuite/libgomp.fortran/collapse4.f90: New test.
1501         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
1502         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
1503         * testsuite/libgomp.fortran/lib4.f90: New test.
1504         * testsuite/libgomp.fortran/lock-1.f90: New test.
1505         * testsuite/libgomp.fortran/lock-2.f90: New test.
1506         * testsuite/libgomp.fortran/nested1.f90: New test.
1507         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
1508         * testsuite/libgomp.fortran/strassen.f90: New test.
1509         * testsuite/libgomp.fortran/tabs1.f90: New test.
1510         * testsuite/libgomp.fortran/tabs2.f: New test.
1511         * testsuite/libgomp.fortran/task1.f90: New test.
1512         * testsuite/libgomp.fortran/task2.f90: New test.
1513         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
1514         * testsuite/libgomp.fortran/vla5.f90: Likewise.
1515         * testsuite/libgomp.c/pr26943-2.c: Likewise.
1516         * testsuite/libgomp.c/pr26943-3.c: Likewise.
1517         * testsuite/libgomp.c/pr26943-4.c: Likewise.
1518
1519 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
1520
1521         PR c++/36308
1522         * testsuite/libgomp.c++/ctor-11.C: New test.
1523         * testsuite/libgomp.c++/ctor-12.C: New test.
1524
1525 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
1526
1527         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
1528
1529 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
1530
1531         PR middle-end/36106
1532         * testsuite/libgomp.c/atomic-5.c: New test.
1533         * testsuite/libgomp.c/atomic-6.c: New test.
1534         * testsuite/libgomp.c/autopar-1.c: New test.
1535
1536 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1537
1538         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
1539         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
1540         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
1541         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
1542         * configure: Regenerate.
1543         * Makefile.in, testsuite/Makefile.in: Likewise.
1544
1545 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
1546
1547         PR bootstrap/35457
1548         * aclocal.m4: Regenerate.
1549         * configure: Regenerate.
1550
1551 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
1552
1553         PR middle-end/35611
1554         * testsuite/libgomp.c/atomic-4.c: New test.
1555
1556         PR libgomp/35625
1557         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
1558         (gomp_iter_guided_next): Likewise.
1559         * testsuite/libgomp.c/pr35625.c: New test.
1560
1561 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1562
1563         * aclocal.m4: Regenerate.
1564         * configure: Likewise.
1565         * Makefile.in: Likewise.
1566         * testsuite/Makefile.in: Likewise.
1567
1568 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
1569
1570         PR middle-end/35185
1571         * testsuite/libgomp.c++/pr35185.C: New test.
1572
1573 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
1574
1575         PR middle-end/35549
1576         * testsuite/libgomp.c/pr35549.c: New test.
1577
1578 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
1579
1580         * testsuite/libgomp.c/atomic-3.c: New test.
1581
1582 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1583
1584         PR fortran/33197
1585         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
1586         .F08 file suffixes.
1587
1588 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
1589
1590         PR libgomp/33131
1591         * configure.ac: Add ACX_HEADER_STRING.
1592         * env.c: Include strings.h.
1593         * aclocal.m4: Regenerate.
1594         * config.h.in: Regenerate.
1595         * configure: Regenerate.
1596         * Makefile.in: Regenerate.
1597         * testsuite/Makefile.in: Regenerate.
1598
1599 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
1600
1601         PR middle-end/35196
1602         * testsuite/libgomp.c/pr35196.c: New test.
1603
1604         PR middle-end/35130
1605         * testsuite/libgomp.fortran/pr35130.f90: New test.
1606         * testsuite/libgomp.c/pr35130.c: New test.
1607
1608 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
1609
1610         PR middle-end/33880
1611         * testsuite/libgomp.c/pr33880.c: New test.
1612         * testsuite/libgomp.fortran/pr33880.f90: New test.
1613
1614 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
1615
1616         * configure: Regenerate.
1617
1618 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
1619
1620         * configure.ac: Move futex checking into ../config/futex.m4.
1621         * configure: Rebuilt.
1622         * aclocal.m4: Rebuilt.
1623         * Makefile.in: Rebuilt.
1624
1625         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
1626         2007-10-15 ../config/tls.m4 change.
1627
1628 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
1629
1630         PR c++/34513
1631         * testsuite/libgomp.c/pr34513.c: New test.
1632         * testsuite/libgomp.c++/pr34513.C: New test.
1633
1634 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
1635
1636         PR target/32765
1637         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
1638
1639 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
1640
1641         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
1642
1643 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
1644
1645         * testsuite/libgomp.c/private-1.c: New test.
1646
1647 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
1648             Paolo Bonzini  <bonzini@gnu.org>
1649
1650         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
1651         instead of 'VPATH ='.
1652         * Makefile.in: Regenerate.
1653
1654 2007-11-23  Matthias Klose  <doko@ubuntu.com>
1655
1656         * configure.ac: Adjust makeinfo version check.
1657         * configure: Regenerate.
1658
1659 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
1660
1661         PR fortran/34020
1662         * testsuite/libgomp.fortran/pr34020.f90: New test.
1663
1664 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
1665
1666         PR c++/33894
1667         * testsuite/libgomp.c++/atomic-1.C: New test.
1668
1669 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
1670
1671         PR libgomp/33275
1672         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
1673         Make x and y integers rather than (implicit) reals.  Add private (j)
1674         clause to the last omp parallel.
1675
1676 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
1677
1678         * configure: Regenerate following changes to ../config/tls.m4.
1679
1680 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
1681
1682         * testsuite/libgomp.fortran/stack.f90: New test.
1683
1684 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
1685
1686         * config/mingw32/proc.c: New file.
1687
1688 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
1689
1690         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
1691         (main): Use __get_cpuid to get i386 target fetaures.
1692         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
1693         (main): Use __get_cpuid to get x86_64 target fetaures.
1694
1695 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
1696
1697         PR target/32765
1698         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
1699         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
1700
1701 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
1702
1703         PR fortran/32550
1704         * testsuite/libgomp.fortran/pr32550.f90: New test.
1705         * testsuite/libgomp.fortran/crayptr2.f90: New test.
1706
1707 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1708
1709         * aclocal.m4: Regenerated.
1710
1711 2007-07-05  Tobias Burnus  <burnus@net-b.de>
1712
1713         PR fortran/32359
1714         * testsuite/libgomp.fortran/pr32359.f90: New.
1715
1716 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
1717
1718         PR libgomp/32468
1719         * sections.c (GOMP_parallel_sections_start): Only decrease
1720         number of threads to COUNT if dyn_var is true.
1721         * testsuite/libgomp.c/pr32468.c: New test.
1722
1723 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1724
1725         PR libgomp/26308
1726         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
1727
1728 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
1729
1730         PR middle-end/32362
1731         * testsuite/libgomp.c/pr32362-1.c: New test.
1732         * testsuite/libgomp.c/pr32362-2.c: New test.
1733         * testsuite/libgomp.c/pr32362-3.c: New test.
1734
1735 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
1736
1737         * team.c (gomp_team_start): Fix setting up thread_attr
1738         stack size.
1739
1740 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
1741
1742         * configure: Regenerate.
1743
1744 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
1745
1746         * Makefile.in: Regenerate.
1747         * configure: Regenerate.
1748         * aclocal.m4: Regenerate.
1749         * testsuite/Makefile.in: Regenerate.
1750
1751 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
1752
1753         * config/linux/proc.c: New file.
1754
1755         PR libgomp/28482
1756         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
1757
1758 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
1759
1760         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
1761
1762 2007-04-16  Matthias Klose  <doko@debian.org>
1763
1764         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
1765         flags if not building with -m64.
1766         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
1767         flag for i?86-*-* targets, if current target matches -m64.
1768
1769 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
1770
1771         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
1772         * Makefile.in: Regenerate.
1773
1774 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1775
1776         PR testsuite/31369
1777         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
1778         ld_library_path.
1779         * testsuite/libgomp.fortran/fortran.exp: Likewise.
1780
1781 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
1782
1783         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
1784         decls.
1785         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
1786         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
1787         (parse_affinity): New function.
1788         (initialize_env): Call it and gomp_init_affinity.
1789         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
1790         create new pthread_attr_t and call gomp_init_thread_affinity
1791         on it for each thread before passing the attribute to pthread_create.
1792         * config/linux/affinity.c: New file.
1793         * config/posix/affinity.c: New file.
1794         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
1795         * configure: Rebuilt.
1796         * config.h.in: Rebuilt.
1797         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
1798         * Makefile.in: Rebuilt.
1799
1800 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
1801
1802         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
1803         *-*-darwin*.
1804         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
1805         and use it if found.
1806
1807 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
1808
1809         * testsuite/config/default.exp: New file.
1810         * testsuite/lib/libgomp.exp: New file.
1811         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
1812         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
1813         load_lib *, load_gcc_lib *): Move to libgomp.exp.
1814         (libgomp_load): Remove.
1815         * testsuite/lib/libgomp.exp (libgomp_init): Compute
1816         always_ld_library_path, not ld_library_path.  Set additional_flags
1817         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
1818         (target_compile): Do not call libgomp_init.  Append lang_library_path
1819         and lang_link_flags to options.
1820         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
1821         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
1822         here.
1823         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
1824         always_ld_library_path.  Set LD_LIBRARY_PATH here.
1825         * testsuite/libgomp.fortran/fortran.exp: Ditto.
1826         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
1827         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
1828         CX8 flag.
1829         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
1830         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
1831         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
1832         * testsuite/libgomp.c/pr29947-1.c: Ditto.
1833         * testsuite/libgomp.c/atomic-10.c: Ditto.
1834
1835 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
1836
1837         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
1838         dg-final cleanup-modules line.
1839         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
1840         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
1841         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
1842         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1843         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1844         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1845         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1846
1847 2007-03-18  Andreas Schwab  <schwab@suse.de>
1848
1849         * acinclude.m4: Adjust regular expression for ld version
1850         extraction.
1851         * configure: Regenerate.
1852
1853 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
1854
1855         * Makefile.am: Add install-pdf target as copied from
1856         automake v1.10 rules.
1857         * Makefile.in: Regenerate
1858
1859 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
1860
1861         PR libgomp/28486
1862         * configure: Regenerate.
1863
1864         PR c++/30703
1865         * testsuite/libgomp.c++/pr30703.C: New test.
1866
1867 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
1868
1869         Revert:
1870         2006-07-05  Eric Christopher  <echristo@apple.com>
1871         * configure.ac: Depend addition of -pthread on host OS.
1872         * configure: Regenerate.
1873
1874 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1875
1876         * libgomp.texi: Fix spacing after abbreviations.
1877
1878 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
1879
1880         PR libgomp/30546
1881         * configure.ac: Add check for makeinfo
1882         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
1883         if an appropiate version of makeinfo is found.
1884         * aclocal.m4: Regenerated.
1885         * configure: Regenerated.
1886         * Makefile.in: Regenerated.
1887         * testsuite/Makefile.in: Regenerated.
1888
1889 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
1890
1891         PR libgomp/30540
1892         * libgomp.texi: More about implementation-dependent settings.
1893
1894 2007-01-26  Tobias Burnus  <burnus@net-b.de>
1895
1896         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
1897
1898 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
1899
1900         PR middle-end/30494
1901         * testsuite/libgomp.c/pr30494.c: New test.
1902
1903 2007-01-15  Tom Tromey  <tromey@redhat.com>
1904
1905         * configure: Rebuilt.
1906         * configure.ac: Fixed comment.
1907
1908 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
1909
1910         * libgomp.texi: Document implementation specific default values of
1911         environment variables.
1912
1913 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
1914
1915         PR libgomp/28209
1916         * libgomp.texi: New file.
1917         * configure.ac: Add --enable-generated-files-in-srcdir option.
1918         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
1919         files to srcdir.
1920         * Makefile.in: Regenerated.
1921         * config.h.in: Regenerated.
1922         * testsuite/Makefile.in: Regenerated.
1923         * NOTES: Removed.
1924
1925 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
1926
1927         PR libgomp/29949
1928         * env.c (omp_set_num_threads): Set illegal thread count to 1.
1929
1930 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1931
1932         * configure: Regenerate.
1933
1934 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
1935
1936         PR libgomp/29947
1937         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
1938         start if there shouldn't be any loop iterations.
1939         (gomp_loop_ordered_static_start): Remove start == end test.
1940         * testsuite/libgomp.c/pr29947-1.c: New test.
1941         * testsuite/libgomp.c/pr29947-2.c: New test.
1942
1943 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
1944
1945         * configure.tgt: Force initial-exec TLS model on Linux only.
1946
1947 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
1948
1949         * configure: Regenerated.
1950
1951 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
1952
1953         * env.c (parse_schedule): Reject out of range values.
1954         (parse_unsigned_long): Reject out of range, negative or zero values.
1955
1956 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
1957
1958         PR fortran/29629
1959         * testsuite/libgomp.fortran/pr29629.f90: New test.
1960
1961 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
1962
1963         PR libgomp/29494
1964         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
1965         * config/posix95: New directory.
1966         * config/posix95/omp-lock.h: New file.
1967         * config/posix95/lock.c: Likewise.
1968
1969 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
1970
1971         * aclocal.m4: Regenerate.
1972         * configure: Regenerate.
1973
1974 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
1975
1976         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
1977         '<' to '<='.
1978
1979 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
1980
1981         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
1982         test.
1983         * configure: Regenerate.
1984         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
1985
1986 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
1987
1988         PR middle-end/25261
1989         PR middle-end/28790
1990         * testsuite/libgomp.c/nestedfn-4.c: New test.
1991         * testsuite/libgomp.c/nestedfn-5.c: New test.
1992         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
1993
1994         PR fortran/29097
1995         * testsuite/libgomp.fortran/condinc1.f: New test.
1996         * testsuite/libgomp.fortran/condinc2.f: New test.
1997         * testsuite/libgomp.fortran/condinc3.f90: New test.
1998         * testsuite/libgomp.fortran/condinc4.f90: New test.
1999         * testsuite/libgomp.fortran/condinc1.inc: New file.
2000
2001 2006-09-18  Tom Tromey  <tromey@redhat.com>
2002
2003         * configure: Rebuilt.
2004
2005 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
2006
2007         PR c/28768
2008         PR preprocessor/14634
2009         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
2010         to AC_DEFINE.
2011         * configure: Regenerate.
2012
2013 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
2014
2015         * testsuite/libgomp.fortran/reduction3.f90: Change
2016         -2147483648 to -huge(i)-1 to avoid overflow.
2017         * testsuite/libgomp.fortran/reduction4.f90: Change
2018         Z'ffffffff' to not(0) to avoid overflow.
2019
2020 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
2021
2022         PR libgomp/25938
2023         * Makefile.am (libsubincludedir): New.
2024         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
2025         * Makefile.in: Regenerate.
2026
2027 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
2028
2029         PR libgomp/28725
2030         * env.c: Include ctype.h.
2031         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
2032         leading and/or trailing whitespace and compare strings case
2033         insensitively.
2034
2035 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
2036
2037         PR fortran/28390
2038         * testsuite/libgomp.fortran/pr28390.f: New test.
2039
2040 2006-07-05  Eric Christopher  <echristo@apple.com>
2041
2042         * configure.ac: Depend addition of -pthread on host OS.
2043         * configure: Regenerate.
2044
2045 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
2046
2047         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
2048         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
2049         defined.
2050
2051 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
2052
2053         PR libgomp/26175
2054         PR libgomp/26477
2055         * configure.ac: If neither --enable-linux-futex nor
2056         --disable-linux-futex is passed, determine the default by checking
2057         for compiling and/or running against NPTL.  With --enable-linux-futex,
2058         check if SYS_gettid and SYS_futex are defined.
2059         * configure: Rebuilt.
2060
2061 2006-06-14  Richard Henderson  <rth@redhat.com>
2062
2063         PR libgomp/28008
2064         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
2065         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
2066
2067 2006-06-09  Richard Henderson  <rth@redhat.com>
2068
2069         * env.c (gomp_nthreads_var): Change to unsigned long.
2070         (gomp_run_sched_chunk): Likewise.
2071         (parse_unsigned_long): Rename from parse_num_threads and generalize.
2072         (initialize_env): Initialize gomp_thread_attr.
2073         * libgomp.h (gomp_nthreads_var): Update decl.
2074         (gomp_run_sched_chunk): Likewise.
2075         (gomp_thread_attr): Declare.
2076         * team.c (gomp_thread_attr): Export.
2077         (initialize_team): Don't initialize it.
2078
2079 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
2080
2081         PR fortran/27916
2082         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
2083         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
2084
2085 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2086
2087         * config/mingw32/time.c: New file.
2088         * configure.tgt: Use it.
2089
2090 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
2091
2092         * Makefile.am: Add install-html target. Add install-html to .PHONY
2093         * Makefile.in: Regenerate.
2094
2095 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2096
2097         PR libgomp/27612
2098         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
2099         * testsuite/libgomp.c/critical-1.c: Likewise.
2100         * testsuite/libgomp.c/loop-1.c: Likewise.
2101         * testsuite/libgomp.c/loop-2.c: Likewise.
2102         * testsuite/libgomp.c/single-1.c: Likewise.
2103         * testsuite/libgomp.c/ordered-1.c: Likewise.
2104         * testsuite/libgomp.c/ordered-2.c: Likewise.
2105
2106 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
2107
2108         PR middle-end/27416
2109         * libgomp.fortran/pr27416-1.f90: New test.
2110
2111 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
2112
2113         PR fortran/27395
2114         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
2115         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
2116
2117 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2118
2119         PR c++/26943
2120         * testsuite/libgomp.c/pr26943-1.c: New test.
2121         * testsuite/libgomp.c/pr26943-2.c: New test.
2122         * testsuite/libgomp.c/pr26943-3.c: New test.
2123         * testsuite/libgomp.c/pr26943-4.c: New test.
2124         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
2125         * testsuite/libgomp.c++/pr26943.C: New test.
2126
2127 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
2128
2129         PR middle-end/27337
2130         * testsuite/libgomp.c++/pr27337.C: New test.
2131
2132 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
2133
2134         PR c/26171
2135         * testsuite/libgomp.c/pr26171.c: New test.
2136
2137 2006-04-25  Richard Henderson  <rth@redhat.com>
2138
2139         PR libgomp/25865
2140         * configure.ac: Use GCC_CHECK_TLS.
2141         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
2142         * Makefile.in, aclocal.m4, configure: Regenerate.
2143
2144 2006-04-10  Matthias Klose  <doko@debian.org>
2145
2146         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
2147         directory names containing underscores.
2148
2149 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
2150
2151         PR c++/26691
2152         * testsuite/libgomp.c++/pr26691.C: New test.
2153
2154 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
2155
2156         * testsuite/libgomp.fortran/retval2.f90: New test.
2157
2158 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
2159
2160         * testsuite/libgomp.c++: New directory.
2161
2162 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
2163
2164         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
2165         * config/posix/sem.c: Implement the above.
2166
2167 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
2168
2169         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
2170         define HAVE_BROKEN_POSIX_SEMAPHORES.
2171         * configure: Rebuilt.
2172         * config.h.in: Rebuilt.
2173
2174 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
2175
2176         PR bootstrap/26161
2177         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
2178         for the other pthread check.
2179         * configure: Regenerate.
2180         * config.h.in: Regenerate.
2181
2182 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
2183
2184         PR libgomp/25938
2185         PR libgomp/25984
2186         * Makefile.am (fincludedir): New variable.
2187         (nodist_include_HEADERS): Remove Fortran files.
2188         (nodist_finclude_HEADERS): New variable.
2189         * Makefile.in: Regenerated.
2190
2191 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
2192
2193         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
2194         Remove tests for returning assumed character length arrays.
2195
2196 2006-02-12  Roger Sayle  <roger@eyesopen.com>
2197             John David Anglin  <dave@hiauly1.hia.nrc.ca>
2198
2199         PR libgomp/25936
2200         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
2201
2202 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
2203
2204         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
2205
2206 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
2207
2208         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
2209         part of LD_LIBRARY_PATH manually.
2210
2211 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
2212
2213         PR libgomp/25852
2214         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
2215         libgomp_init.
2216
2217 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
2218
2219         PR libgomp/25884
2220         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
2221         * configure.ac (PERL): Don't set.
2222         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
2223         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
2224         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
2225         * omp.h.in: Wrap the new configure substitutions with @ characters.
2226         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
2227         * aclocal.m4, configure, Makefile.in: Regenerate.
2228         * mkomp_h.pl: Delete.
2229
2230 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
2231
2232         PR libgomp/25259
2233         * configure.ac: Use GCC_HEADER_STDINT.
2234         * libgomp.h: Include gstdint.h.
2235         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
2236         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
2237
2238 2006-01-24  Richard Henderson  <rth@redhat.com>
2239
2240         PR libgomp/25942
2241         * configure.ac: Add AM_MAINTAINER_MODE.
2242         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
2243
2244 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
2245
2246         * Makefile.in: Regenerate.
2247         * testsuite/Makefile.in: Regenerate.
2248         * aclocal.m4: Regenerate.
2249
2250 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
2251
2252         * config/posix/proc.c: Conditional include of sys/loadavg.h for
2253         Solaris.
2254         * configure.ac: Add check for loadavg.h.
2255         (link_gomp): Adjust comment.
2256         * configure: Regenerate.
2257         * config.h.in: Regenerate.
2258
2259 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
2260
2261         PR libgomp/25877
2262         * configure.ac: Remove check for alloca.h.
2263         * configure: Regenerate.
2264         * config.h.in: Regenerate.
2265         * libgomp.h: define gomp_alloca to be __builtin_alloca.
2266         * team.c: Remove use of alloca.h.
2267         Call gomp_alloca instead of alloca.
2268
2269 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
2270
2271         PR libgomp/25877
2272         * team.c: Add include of alloca.h.
2273         * configure.ac: Add check for alloca.h.
2274         * configure: Regenerate.
2275         * config.h.in: Regenerate.
2276
2277 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
2278
2279         PR fortran/25219
2280         * testsuite/libgomp.fortran/pr25219.f90: New test.
2281
2282 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
2283
2284         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
2285         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
2286         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2287         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2288         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
2289         testsuite/libgomp.fortran/threadprivate1.f90,
2290         testsuite/libgomp.fortran/threadprivate2.f90,
2291         testsuite/libgomp.fortran/threadprivate3.f90,
2292         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2293         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2294         testsuite/libgomp.fortran/omp_parse3.f90: Change required
2295         effective-target to TLS runtime.
2296
2297         * testsuite/libgomp.fortran/pr25162.f: Require
2298         effective-target TLS runtime.
2299
2300 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
2301
2302         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
2303         * testsuite/libgomp.c/nestedfn-3.c: New test.
2304
2305 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
2306
2307         PR fortran/25162
2308         * testsuite/libgomp.fortran/pr25162.f: New test.
2309
2310 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
2311
2312         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
2313         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
2314
2315 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
2316
2317         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
2318         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
2319         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
2320         single.c, team.c, work.c, config/linux/alpha/futex.h,
2321         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
2322         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
2323         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
2324         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
2325         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
2326         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
2327         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
2328         FSF address.
2329
2330 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2331
2332         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
2333         to nodist_noinst_HEADERS.
2334         * Makefile.in: Rebuilt.
2335
2336         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
2337         add integer count field.
2338         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
2339         omp_nest_lock_t type change.
2340         (omp_init_nest_lock): Likewise.  Initialize count to 0.
2341         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
2342         Increment count.
2343         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
2344         Decrement count.
2345         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
2346         Increment count if successful and return the new nesting level.
2347         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
2348         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
2349         * testsuite/libgomp.c/lib-1.c: New test.
2350         * testsuite/libgomp.fortran/lib1.f90: New test.
2351         * testsuite/libgomp.fortran/lib2.f: New test.
2352         * testsuite/libgomp.fortran/lib3.f: New test.
2353
2354 2005-11-17  Richard Henderson  <rth@redhat.com>
2355
2356         PR 24845
2357         * Makefile.am (nodist_toolexeclib_HEADERS): New.
2358         * configure.ac (link_gomp): New.  Substitute it.
2359         (AC_CONFIG_FILES): Add libgomp.spec.
2360         * libgomp.spec.in: New file.
2361         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
2362         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
2363
2364 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
2365
2366         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
2367         reduction(-:var) behaving the same as reduction(+:var).
2368         * testsuite/libgomp.c/reduction-4.c: New test.
2369
2370 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
2371
2372         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
2373         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
2374         testsuite/libgomp.c/copyin-3.c,
2375         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
2376         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
2377         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
2378         testsuite/libgomp.c++/pr24455.C,
2379         testsuite/libgomp.fortran/threadprivate1.f90,
2380         testsuite/libgomp.fortran/threadprivate2.f90,
2381         testsuite/libgomp.fortran/threadprivate3.f90,
2382         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
2383         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
2384         testsuite/libgomp.fortran/omp_parse3.f90: Require
2385         effective-target TLS.
2386
2387 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
2388
2389         * HEADER: Remove.
2390
2391 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
2392
2393         PR libgomp/24797
2394         * team.c (initialize_team): Pass NULL rather than free as
2395         pthread_key_create destructor.  Initialize thread specific data
2396         pointer in initial thread to a static local variable rather than
2397         malloced memory.
2398
2399 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
2400
2401         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
2402         its location to ld_library_path.
2403
2404 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2405
2406         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
2407
2408 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
2409
2410         * testsuite/libgomp.c: Rename from libgomp.dg.
2411
2412 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
2413
2414         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
2415         threadprivate variable 'i'.
2416
2417 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
2418
2419         * config/linux/s390/futex.h: New file.
2420         * configure.tgt: Use it.
2421
2422         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
2423         before the parallel.
2424
2425 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
2426
2427         PR c++/24734
2428         * testsuite/libgomp.c++/master-1.C: New test.
2429
2430 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2431
2432         * testsuite/libgomp.dg/copyin-3.c: New test.
2433
2434 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
2435
2436         * testsuite/libgomp.fortran/retval1.f90: New test.
2437         * testsuite/libgomp.fortran/vla7.f90: New test.
2438
2439 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
2440
2441         * testsuite/libgomp.fortran/vla2.f90: New test.
2442         * testsuite/libgomp.fortran/vla3.f90: New test.
2443         * testsuite/libgomp.fortran/vla4.f90: New test.
2444         * testsuite/libgomp.fortran/vla5.f90: New test.
2445         * testsuite/libgomp.fortran/vla6.f90: New test.
2446
2447 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
2448
2449         * config/linux/sparc/futex.h: New file.
2450         * configure.tgt: Use it.
2451         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
2452
2453         * critical.c: Include stdlib.h.
2454         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
2455         ignoring return value.
2456         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
2457         LIBGOMP_CHECK_SYNC_BUILTINS check.
2458         * configure: Rebuilt.
2459
2460 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2461
2462         * testsuite/libgomp.fortran/vla1.f90: New test.
2463
2464 2005-10-31  Richard Henderson  <rth@redhat.com>
2465
2466         * testsuite/libgomp.fortran/character2.f90: Fix race condition
2467         setting 's' in different threads.
2468
2469 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
2470
2471         * libgomp.h (attribute_hidden, ialias): Define.
2472         * config/posix/proc.c (omp_get_num_procs): Add ialias.
2473         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
2474         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
2475         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2476         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2477         omp_test_lock, omp_test_nest_lock): Likewise.
2478         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
2479         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
2480         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
2481         omp_test_lock, omp_test_nest_lock): Likewise.
2482         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
2483         omp_get_dynamic, omp_get_nested): Likewise.
2484         * parallel.c (omp_get_num_threads, omp_get_max_threads,
2485         omp_get_thread_num, omp_in_parallel): Likewise.
2486         * fortran.c (ialias_redirect): Define.
2487         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
2488         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
2489         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
2490         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
2491         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
2492         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
2493         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
2494         omp_get_wtime): Add ialias_redirect.
2495
2496 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
2497
2498         * fortran.c: Include stdlib.h.
2499
2500 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
2501
2502         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
2503         * Makefile.in: Regenerated.
2504
2505 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
2506
2507         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
2508         * libgomp_f.h.in (omp_check_defines): New function.
2509         * env.c: Include libgomp_f.h.
2510         (initialize_env): Call omp_check_defines.
2511
2512         * testsuite/libgomp.dg/copyin-2.c: New test.
2513         * testsuite/libgomp.c++/copyin-2.C: New test.
2514         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
2515
2516         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
2517         * testsuite/libgomp.fortran/sharing2.f90: New test.
2518
2519         * testsuite/libgomp.dg/copyin-1.c: New test.
2520         * testsuite/libgomp.c++/copyin-1.C: New test.
2521
2522 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
2523
2524         * testsuite/libgomp.fortran/crayptr1.f90: New test.
2525
2526         * testsuite/libgomp.fortran/workshare1.f90: New test.
2527
2528         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
2529         only test.
2530         * libgomp.fortran/sharing1.f90: New test.
2531
2532 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
2533
2534         PR c++/24502
2535         * testsuite/libgomp.c++/loop-7.C: New test.
2536
2537         * testsuite/libgomp.dg/nestedfn-2.c: New test.
2538
2539         * testsuite/libgomp.dg/nestedfn-1.c: New test.
2540         * testsuite/libgomp.fortran/reduction6.f90: New test.
2541         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
2542
2543 2005-10-23  Richard Henderson  <rth@redhat.com>
2544
2545         * testsuite/libgomp.c++/ctor-1.C: New.
2546         * testsuite/libgomp.c++/ctor-2.C: New.
2547         * testsuite/libgomp.c++/ctor-3.C: New.
2548         * testsuite/libgomp.c++/ctor-4.C: New.
2549         * testsuite/libgomp.c++/ctor-5.C: New.
2550         * testsuite/libgomp.c++/ctor-6.C: New.
2551         * testsuite/libgomp.c++/ctor-7.C: New.
2552         * testsuite/libgomp.c++/ctor-8.C: New.
2553         * testsuite/libgomp.c++/ctor-9.C: New.
2554
2555 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
2556
2557         PR 24455
2558         * testsuite/libgomp.c++/pr24455-1.C: New test.
2559         * testsuite/libgomp.c++/pr24455.C: New test.
2560         * testsuite/libgomp.dg/pr24455-1.c: New test.
2561         * testsuite/libgomp.dg/pr24455.c: New test.
2562
2563 2005-10-20  Richard Henderson  <rth@redhat.com>
2564
2565         * testsuite/libgomp.c++/loop-6.C: New.
2566         * testsuite/libgomp.dg/loop-3.c: New.
2567
2568 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
2569
2570         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
2571         explicitly private.
2572         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
2573         explicitly shared.
2574
2575 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
2576
2577         * testsuite/libgomp.fortran/jacobi.f: New test.
2578
2579 2005-10-19  Richard Henderson  <rth@redhat.com>
2580
2581         * configure.tgt (i?86-linux): Default to with_arch instead of
2582         CFLAGS.  Add -mtune to match target_cpu.
2583         (x86_64-linux): Tune to i686.
2584
2585         * fortran.c (omp_test_nest_lock_): Fix typo.
2586
2587 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
2588
2589         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
2590         gomp_ordered_sync): Do nothing if team->nthreads == 1.
2591         * testsuite/libgomp.dg/ordered-3.c: New test.
2592
2593         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
2594         Remove volatile keyword.
2595
2596         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
2597         in COMMON block to avoid warnings on 64-bit targets.
2598
2599 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
2600
2601         * testsuite/libgomp.dg/shared-3.c: New test.
2602
2603 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2604
2605         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
2606         * testsuite/libgomp.fortran/reduction5.f90: New test.
2607
2608 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
2609
2610         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
2611         dg-options.
2612         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
2613         flush loop now that __sync_synchronize has proper memory barrier.
2614         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
2615         Add -ffixed-form to dg-options.
2616
2617 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2618
2619         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
2620         from subdirectories.
2621         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
2622         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
2623         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
2624         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
2625         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
2626         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
2627         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
2628         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
2629         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
2630         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
2631         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
2632         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
2633         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
2634         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
2635         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
2636         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
2637         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
2638         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
2639         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
2640         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
2641         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
2642         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
2643         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
2644         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
2645         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
2646
2647 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
2648
2649         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
2650         lang_library_path exists.  Use find instead of glob to gather tests.
2651         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
2652
2653 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
2654
2655         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
2656         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
2657         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
2658         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
2659         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
2660         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
2661         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
2662         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
2663         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
2664         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
2665         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
2666         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
2667         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
2668
2669 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
2670
2671         * testsuite/libgomp.dg/vla-1.c: New test.
2672
2673         * testsuite/libgomp.fortran/reference2.f90: New test.
2674
2675         * testsuite/libgomp.fortran/character2.f90: Remove explicit
2676         declaration of omp_get_thread_num.
2677         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
2678         use omp_lib.
2679
2680         * testsuite/libgomp.fortran/reduction1.f90: New test.
2681         * testsuite/libgomp.fortran/reduction2.f90: New test.
2682         * testsuite/libgomp.fortran/reduction3.f90: New test.
2683         * testsuite/libgomp.fortran/reduction4.f90: New test.
2684
2685 2005-10-13  Richard Henderson  <rth@redhat.com>
2686
2687         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
2688         * Makefile.in: Regenerate.
2689         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
2690         * libgomp.h: Include bar.h.
2691         (struct gomp_barrier): Remove.
2692         (struct gomp_team): Add barrier.  Replace master_barrier with
2693         master_release.  Replace threads with ordered_release.
2694         (struct gomp_thread): Replace barrier with release.
2695         * ordered.c (gomp_ordered_first): Update for ordered_release change.
2696         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
2697         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
2698         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
2699         (GOMP_single_copy_end): Likewise.
2700         * team.c (gomp_threads_dock): New.
2701         (gomp_barrier_init, gomp_barrier_destroy): Remove.
2702         (gomp_thread_start): Use gomp_barrier_wait.
2703         (new_team, free_team): Update for gomp_team changes.
2704         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
2705         (gomp_team_end): Use gomp_barrier_wait.
2706         (initialize_team): Update for gomp_thread changes.
2707         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
2708         (gomp_work_share_end_nowait): Use atomic ops when available.
2709         * config/linux/bar.c, config/linux/bar.h: New files.
2710         * config/posix/bar.c, config/posix/bar.h: New files.
2711
2712 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
2713
2714         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
2715         * testsuite/libgomp.dg/single-2.c: New test.
2716
2717         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
2718         lang_link_flags): Unset, so that they aren't inherited from previously
2719         sourced *.exp.
2720
2721         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
2722
2723 2005-10-12  Richard Henderson  <rth@redhat.com>
2724
2725         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
2726         (libgomp_init): Use lang_test_file, lang_library_path, and
2727         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
2728
2729         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
2730         (lang_test_file, lang_link_flags): New.
2731         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
2732
2733         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
2734         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
2735         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
2736         testsuite/libgomp.c++/parallel-1.C,
2737         testsuite/libgomp.c++/reduction-1.C,
2738         testsuite/libgomp.c++/reduction-2.C,
2739         testsuite/libgomp.c++/reduction-3.C,
2740         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
2741         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
2742         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
2743         New files, largely cribbed from the C testsuite.
2744
2745 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
2746
2747         * testsuite/libgomp.fortran/character1.f90: New test.
2748         * testsuite/libgomp.fortran/character2.f90: New test.
2749
2750         * testsuite/libgomp.dg/nested-1.c: New test.
2751         * testsuite/libgomp.dg/nested-2.c: New test.
2752         * testsuite/libgomp.fortran/do1.f90: New test.
2753         * testsuite/libgomp.fortran/do2.f90: New test.
2754
2755         * testsuite/libgomp.fortran/reference1.f90: New test.
2756
2757 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
2758
2759         * testsuite/libgomp.dg/reduction-1.c: New test.
2760         * testsuite/libgomp.dg/reduction-2.c: New test.
2761         * testsuite/libgomp.dg/reduction-3.c: New test.
2762
2763 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
2764
2765         * testsuite/libgomp.dg/atomic-1.c: New test.
2766         * testsuite/libgomp.dg/atomic-2.c: New test.
2767
2768 2005-10-09  Richard Henderson  <rth@redhat.com>
2769
2770         * critical.c (atomic_lock): New.
2771         (initialize_critical): Initialize it.
2772         (GOMP_atomic_start, GOMP_atomic_end): New.
2773         * libgomp.map: Export them.
2774         * libgomp_g.h: Declare them.
2775
2776         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
2777
2778 2005-10-02  Richard Henderson  <rth@redhat.com>
2779
2780         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
2781         to XCFLAGS instead of CFLAGS.
2782
2783 2005-09-30  Richard Henderson  <rth@redhat.com>
2784
2785         * configure.ac: Determine whether -pthread or -lpthread is needed.
2786         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
2787         * Makefine.in, configure: Rebuild.
2788
2789 2005-09-28  Richard Henderson  <rth@redhat.com>
2790
2791         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
2792         * testsuite/libgomp.dg/omp-single-3.c: New test.
2793
2794 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
2795
2796         * testsuite/libgomp.dg/omp-single-2.c: New test.
2797         * testsuite/libgomp.dg/shared-2.c: Fix return code.
2798
2799 2005-09-27  Richard Henderson  <rth@redhat.com>
2800
2801         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
2802         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
2803
2804 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
2805
2806         * testsuite/libgomp.dg/omp-loop03.c: New test.
2807
2808 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2809
2810         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
2811
2812 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
2813
2814         * testsuite/libgomp.dg/omp-single-1.c: New test.
2815         * testsuite/libgomp.dg/shared-1.c: Return 0.
2816         Add prototype for abort.
2817         * testsuite/libgomp.dg/shared-2.c: Likewise.
2818
2819 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
2820
2821         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
2822         constructs.
2823
2824 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
2825
2826         * testsuite/libgomp.dg/shared-1.c: New test.
2827         * testsuite/libgomp.dg/shared-2.c: New test.
2828
2829 2005-09-24  Richard Henderson  <rth@redhat.com>
2830
2831         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
2832
2833 2005-09-24  Richard Henderson  <rth@redhat.com>
2834
2835         * iter.c (gomp_iter_static_next): Round up when computing number
2836         of iterations.  Don't bother distributing a remainder equally.
2837
2838         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
2839         Don't call srand.  Zero b before testing.
2840         (main): New.
2841
2842 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
2843
2844         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
2845         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
2846
2847 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
2848
2849         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
2850         without !$omp end do, followed immediately by subroutine end.
2851
2852 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
2853
2854         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
2855
2856 2005-09-22  Richard Henderson  <rth@redhat.com>
2857
2858         * critical.c (GOMP_critical_name_start): Change argument to void**.
2859         Reuse the pointer space if the mutex fits.
2860         (GOMP_critical_name_end): Likewise.
2861         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
2862         * libgomp_g.h (GOMP_critical_name_start): Update decl.
2863         (GOMP_critical_name_end): Likewise.
2864         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
2865         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
2866
2867 2005-09-20  Richard Henderson  <rth@redhat.com>
2868
2869         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
2870         (create_lock_lock): New.
2871         (initialize_critical): Initialize it.
2872         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
2873         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
2874
2875 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
2876
2877         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
2878
2879 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
2880
2881         * testsuite/libgomp.dg/omp-loop01.c: New test.
2882         * testsuite/libgomp.dg/omp-loop02.c: New test.
2883
2884 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
2885
2886         * configure.ac (AC_PROG_FC): Add.
2887         (USE_FORTRAN): New automake conditional.
2888         * configure: Rebuilt.
2889         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
2890         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
2891         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
2892         Add rules to build them.
2893         * Makefile.in: Rebuilt.
2894         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
2895         OMP_NEST_LOCK_KIND.
2896         * libgomp.map: Add Fortran wrappers.
2897         * libgomp_f.h.in: New file.
2898         * omp_lib.h.in: New file.
2899         * omp_lib.f90.in: New file.
2900         * fortran.c: New file.
2901         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
2902         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
2903         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
2904         libgfortran has been built.
2905         * testsuite/libgomp.fortran/fortran.exp: New file.
2906         * testsuite/libgomp.fortran/omp_cond1.f: New test.
2907         * testsuite/libgomp.fortran/omp_cond2.f: New test.
2908         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
2909         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
2910         * testsuite/libgomp.fortran/omp_hello.f: New test.
2911         * testsuite/libgomp.fortran/omp_orphan.f: New test.
2912         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
2913         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
2914         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
2915         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
2916         * testsuite/libgomp.fortran/omp_reduction.f: New test.
2917         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
2918         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
2919
2920 2005-08-30  Richard Henderson  <rth@redhat.com>
2921
2922         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
2923         function for when aliases are not usable.
2924         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
2925         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
2926         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
2927         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
2928         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
2929         GOMP_loop_ordered_guided_next): Likewise.
2930         * ordered.c (GOMP_ordered_start): Likewise.
2931
2932 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
2933
2934         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
2935         * testsuite/libgomp.dg/omp_hello.c: Fix return code
2936         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
2937         * testsuite/libgomp.dg/omp_orphan.c: Likewise
2938         * testsuite/libgomp.dg/omp_reduction.c: Likewise
2939         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
2940         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
2941         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
2942         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
2943
2944 2005-07-07  Eric Christopher  <echristo@redhat.com>
2945             Diego Novillo  <dnovillo@redhat.com>
2946
2947         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
2948         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
2949         up code.
2950         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
2951         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
2952         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
2953         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
2954         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
2955         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
2956         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
2957
2958 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
2959
2960         * TOPLEVEL.patch: Remove.
2961
2962 2005-05-16  Richard Henderson  <rth@redhat.com>
2963
2964         * configure.ac: Test for clock_gettime.
2965         * config.h.in, configure: Rebuild.
2966         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
2967         (omp_get_wtime): Use clock_gettime if available.
2968         (omp_get_wtick): Use clock_getres if available.
2969
2970 2005-05-11  Richard Henderson  <rth@redhat.com>
2971
2972         * config/linux/ia64/futex.h: New file.
2973         * configure.tgt: Use it.
2974
2975         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
2976
2977 2005-05-07  Richard Henderson  <rth@redhat.com>
2978
2979         * config/linux/powerpc/futex.h: New file.
2980         * configure.tgt: Use it.
2981
2982         * config/linux/i486/futex.h: Merge ...
2983         * config/linux/x86_64/futex.h: ... into ...
2984         * config/linux/x86/futex.h: ... here.
2985         * configure.tgt: Update to match.
2986
2987 2005-05-06  Richard Henderson  <rth@redhat.com>
2988
2989         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
2990         * config/linux/i486/futex.h: Likewise.
2991         * config/linux/x86_64/futex.h: Likewise.
2992
2993         * config/linux/lock.c: New file.
2994         * config/linux/omp-lock.h: New file.
2995
2996         * critical.c, env.h: Don't include omp.h
2997         * config/posix/lock.c: Include libgomp.h instead of omp.h.
2998         * config/posix/time.c: Likewise.
2999         * config/posix/omp-lock.h: New file.
3000         * libgomp.h: Include omp-lock.h and omp.h.
3001         * Makefile.am (nodist_include_HEADERS): New.
3002         (omp.h): New rule.
3003         * configure.ac (PERL): New.
3004         * mkomp_h.pl: New file.
3005         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
3006         with templates.
3007         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
3008
3009         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
3010         build directory.  Re-add -march=i486 hack.
3011
3012         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
3013         (libgomp_link_flags): Remove.
3014         (libgomp_initialized): Remove.
3015         (libgomp_init): Don't protect from reinitialization.  Copy code
3016         from libstdc++ for getting the multilib set correctly.
3017
3018 2005-05-05  Richard Henderson  <rth@redhat.com>
3019
3020         * config/linux/alpha/futex.h: New file.
3021         * configure.tgt (alpha*-*-linux*): Use it.
3022
3023         * config/posix/mutex.c: New file.
3024         * config/posix/sem.c: Use libgomp.h.
3025
3026         * configure.tgt (x86_64-linux): Also test CC for -m32.
3027         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
3028
3029         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
3030         after $gccpath.
3031
3032         * Makefile.am (SUBDIRS): New.
3033         (libgomp_la_LDFLAGS): Add -lpthread.
3034         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
3035         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
3036
3037         * libgomp_g.h: New file.
3038         * libgomp.h: Split out all public declarations to libgomp_g.h.
3039         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
3040         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
3041         * config/linux/sem.h: Likewise.
3042         * config/posix/sem.h: Likewise.
3043
3044         * Makefile.am (AM_LDFLAGS): New.
3045         (libgomp_version_script): Split out from ...
3046         (libgomp_la_LDFLAGS): ... here.
3047         (libgomp_version_info): New.
3048         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
3049         (LIBGOMP_ENABLE): New.
3050         (LIBGOMP_CHECK_LINKER_FEATURES): New.
3051         (LIBGOMP_ENABLE_SYMVERS): New.
3052         * configure.ac (AC_INIT): Version 1.0.
3053         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
3054         (enable-linux-futex): Likewise.  Rename from enable-futex.
3055         (libtool_VERSION): New.
3056         (LIBGOMP_ENABLE_SYMVERS): Use it.
3057         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
3058         * Makefile.in, aclocal.m4, configure: Rebuild.
3059
3060         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
3061         (gomp_mutex_unlock_slow): Fix typo.
3062         * config/linux/sem.c: Similarly.
3063         (gomp_sem_post_slow): Fix typo.
3064         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
3065         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
3066         [__PIC__] (sys_futex0): Don't use tmp output in asm.
3067
3068         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
3069         (libgomp_la_LDFLAGS): Add top_srcdir to path.
3070         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
3071         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
3072         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
3073         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
3074         LDFLAGS.  Pull enable_futex check to top-level.
3075         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
3076         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
3077
3078         First attempt at real configury.
3079         * Makefile, config.h: Remove file.
3080         * Makefile.am, Makefile.in: New file.
3081         * acinclude.m4 aclocal.m4: New file.
3082         * configure.ac, configure.tgt, configure: New file.
3083
3084         * config/posix/lock.c: Rename from sys-lock.c.
3085         * config/posix/mutex.h: Rename from sys-mutex.h.
3086         * config/posix/sem.c: Rename from sys-sem.c.
3087         * config/posix/sem.h: Rename from sys-sem.h.
3088         * config/posix/proc.c: Rename from sys-proc.c.
3089         * config/posix/time.c: Rename from sys-proc.c.
3090
3091         * config/linux/mutex.c: New file.
3092         * config/linux/mutex.h: New file.
3093         * config/linux/sem.c: New file.
3094         * config/linux/sem.h: New file.
3095         * config/linux/i486/futex.h: New file.
3096         * config/linux/x86_64/futex.h: New file.
3097
3098 2005-05-04  Richard Henderson  <rth@redhat.com>
3099
3100         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
3101         * libgomp.h: Declare them.
3102         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
3103         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
3104
3105 2005-05-04  Richard Henderson  <rth@redhat.com>
3106
3107         * libgomp-1 code drop
3108
3109 2005-05-04  Richard Henderson  <rth@redhat.com>
3110
3111         * iter.c (gomp_iter_static_next): Return tri-state on 0.
3112         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
3113         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
3114         (gomp_iter_static_next): Update.
3115         (gomp_ordered_static_next): Update.
3116         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
3117         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
3118         totally empty range.
3119         (gomp_loop_ordered_static_next): Refine test for calling
3120         gomp_ordered_static_next.
3121         * testsuite/ordered-1.c: Add case for more threads than iterations.
3122
3123         * iter.c (gomp_iter_runtime_next_locked): Remove.
3124         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
3125         gomp_loop_guided_start, gomp_loop_ordered_static_start,
3126         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
3127         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
3128         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
3129         gomp_loop_ordered_guided_next): Downcase name, make static, add
3130         an external alias with the old name.
3131         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
3132         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
3133         switch and call one of the above static functions.
3134         * libgomp.h: Update.
3135
3136         * work.c (gomp_work_share_start): Lock the mutex for !first too.
3137         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
3138         GOMP_loop_guided_start, GOMP_loop_runtime_start,
3139         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
3140         GOMP_loop_ordered_guided_start): Update to match.
3141         * sections.c (GOMP_sections_start): Likewise.
3142         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
3143
3144         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
3145         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
3146         Use bounds check instead of modulus.
3147         (gomp_ordered_sync): Split out of GOMP_ordered_start.
3148         (gomp_ordered_last): Don't sync with ordered_owner here.
3149         (gomp_ordered_next): Likewise.
3150         (gomp_ordered_static_loop_next): Likewise.
3151         * loop.c, libgomp.h: Update to match.
3152
3153         * libgomp.h (GOMP_barrier): Declare.
3154
3155         * testsuite/barrier-1.c: New file.
3156         * testsuite/critical-1.c: New file.
3157         * testsuite/ordered-2.c: New file.
3158         * testsuite/ordered-1.c: New file.
3159         * testsuite/sections-1.c: New file.
3160         * testsuite/single-1.c: New file.
3161         * testsuite/Makefile (TESTS): Add them.
3162
3163 2005-05-04  Richard Henderson  <rth@redhat.com>
3164
3165         * libgomp.h (struct gomp_work_share): Add ordered_owner.
3166         * loop.c (GOMP_loop_static_start): If not the startup thread,
3167         acquire the mutex to wait for initialization complete.
3168         (GOMP_loop_ordered_static_start): Likewise.
3169         (GOMP_loop_ordered_runtime_start): Likewise.
3170         (GOMP_loop_ordered_static_first): Remove.
3171         (GOMP_loop_ordered_dynamic_first): Remove.
3172         (GOMP_loop_ordered_guided_first): Remove.
3173         (GOMP_loop_ordered_runtime_first): Remove.
3174         * ordered.c (gomp_ordered_loop_first): Post to own release when
3175         we're the first thread.
3176         (gomp_ordered_loop_last): Wait on release if not owner.
3177         (gomp_ordered_loop_next): Likewise.
3178         (gomp_ordered_static_loop_init): New.
3179         (gomp_ordered_static_loop_next): Use ordered_owner.
3180         (GOMP_ordered_start): Likewise.
3181         * work.c (gomp_new_work_share): Initialize ordered_owner.
3182
3183 2005-05-03  Richard Henderson  <rth@redhat.com>
3184
3185         * Makefile (OPT): New.
3186         (CFLAGS): Use it.
3187
3188         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
3189         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
3190         * libgomp.h, libgomp.map, NOTES: Update to match.
3191
3192         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
3193         Add initialized and thr members.
3194         (gomp_thread_start): Pause when initially spawned to wait for
3195         the whole team to be created.
3196         (gomp_team_start): Release team members at the end.
3197
3198         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
3199         (f_foo_1): Use GOMP_loop_end.
3200         (f_foo_2): Use GOMP_loop_end_nowait.
3201
3202         * testsuite/loop-2.c: New file.
3203         * testsuite/Makefile (TESTS): Add it.
3204
3205 2005-05-03  Richard Henderson  <rth@redhat.com>
3206
3207         * iter.c (gomp_iter_static_next): Fix overflow check typo.
3208         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
3209         * team.c (new_team): Initialize oldest_live_gen to 1 if no
3210         initial work_share.
3211
3212         * testsuite/Makefile: New file.
3213         * testsuite/loop-1.c: New file.
3214
3215 2005-05-03  Richard Henderson  <rth@redhat.com>
3216
3217         Initial implementation and checkin.