OSDN Git Service

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