OSDN Git Service

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