OSDN Git Service

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