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