OSDN Git Service

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