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