OSDN Git Service

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