OSDN Git Service

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