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