OSDN Git Service

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