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