OSDN Git Service

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