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