OSDN Git Service

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