diff options
Diffstat (limited to 'gcc-4.2.1-5666.3/libgomp')
273 files changed, 0 insertions, 36412 deletions
diff --git a/gcc-4.2.1-5666.3/libgomp/ChangeLog b/gcc-4.2.1-5666.3/libgomp/ChangeLog deleted file mode 100644 index 56191ecee..000000000 --- a/gcc-4.2.1-5666.3/libgomp/ChangeLog +++ /dev/null @@ -1,1399 +0,0 @@ -2007-07-19 Release Manager - - * GCC 4.2.1 released. - -2007-07-02 Jakub Jelinek <jakub@redhat.com> - - PR libgomp/32468 - * sections.c (GOMP_parallel_sections_start): Only decrease - number of threads to COUNT if dyn_var is true. - * testsuite/libgomp.c/pr32468.c: New test. - -2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> - - PR libgomp/26308 - * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX. - -2007-06-21 Jakub Jelinek <jakub@redhat.com> - - PR middle-end/32362 - * testsuite/libgomp.c/pr32362-1.c: New test. - * testsuite/libgomp.c/pr32362-2.c: New test. - * testsuite/libgomp.c/pr32362-3.c: New test. - -2007-05-13 Release Manager - - * GCC 4.2.0 released. - -2007-03-18 Andreas Schwab <schwab@suse.de> - - * acinclude.m4: Adjust regular expression for ld version - extraction. - * configure: Regenerate. - -2007-02-07 Jakub Jelinek <jakub@redhat.com> - - PR c++/30703 - * testsuite/libgomp.c++/pr30703.C: New test. - -2007-02-07 Daniel Franke <franke.daniel@gmail.com> - - Backport from mainline: - 2007-01-31 Daniel Franke <franke.daniel@gmail.com> - - PR libgomp/30546 - * configure.ac: Add check for makeinfo - * Makefile.am: Redefined target libgomp.info, build libgomp.info only - if an appropiate version of makeinfo is found. - * aclocal.m4: Regenerated. - * configure: Regenerated. - * Makefile.in: Regenerated. - * testsuite/Makefile.in: Regenerated. - -2007-02-07 Daniel Franke <franke.daniel@gmail.com> - - Backport from mainline: - 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> - - * libgomp.texi: Fix spacing after abbreviations. - - Backport from mainline: - 2007-01-29 Daniel Franke <franke.daniel@gmail.com> - - PR libgomp/30540 - * libgomp.texi: More about implementation-dependent settings. - -2007-02-06 Roger Sayle <roger@eyesopen.com> - - PR libgomp/28296 - Backport from mainline. - Revert: - 2006-07-05 Eric Christopher <echristo@apple.com> - * configure.ac: Depend addition of -pthread on host OS. - * configure: Regenerate. - -2007-01-30 Tobias Burnus <burnus@net-b.de> - - Backport from mainline. - 2007-01-26 Tobias Burnus <burnus@net-b.de> - - * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension. - -2007-01-25 Daniel Franke <franke.daniel@gmail.com> - - Backport from mainline: - 2006-12-21 Daniel Franke <franke.daniel@gmail.com> - - PR libgomp/28209 - * libgomp.texi: New file. - * configure.ac: Add --enable-generated-files-in-srcdir option. - * Makefile.am: Add info, dvi, pdf, html targets. On request, - copy files to srcdir. - * Makefile.in: Regenerated. - * testsuite/Makefile.in: Regenerated. - * NOTES: Removed. - - Backport from mainline: - 2007-01-14 Daniel Franke <franke.daniel@gmail.com> - * libgomp.texi: Document implementation specific default values of - environment variables. - -2007-01-24 Jakub Jelinek <jakub@redhat.com> - - PR middle-end/30494 - * testsuite/libgomp.c/pr30494.c: New test. - -2006-12-18 Daniel Franke <franke.daniel@gmail.com> - - Backport from mainline: - 2006-12-04 Daniel Franke <franke.daniel@gmail.com> - - PR libgomp/29949 - * env.c (omp_set_num_threads): Set illegal thread count to 1. - - Backport from mainline: - 2006-11-09 Uros Bizjak <ubizjak@gmail.com> - - * env.c (parse_schedule): Reject out of range values. - (parse_unsigned_long): Reject out of range, negative - or zero values. - -2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr> - - * configure: Regenerate. - -2006-12-04 Jakub Jelinek <jakub@redhat.com> - - PR libgomp/29947 - * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to - start if there shouldn't be any loop iterations. - (gomp_loop_ordered_static_start): Remove start == end test. - * testsuite/libgomp.c/pr29947-1.c: New test. - * testsuite/libgomp.c/pr29947-2.c: New test. - -2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr> - - * configure.tgt: Force initial-exec TLS model on Linux only. - -2006-10-29 Jakub Jelinek <jakub@redhat.com> - - PR fortran/29629 - * testsuite/libgomp.fortran/pr29629.f90: New test. - -2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr> - - PR libgomp/29494 - * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6. - * config/posix95: New directory. - * config/posix95/omp-lock.h: New file. - * config/posix95/lock.c: Likewise. - -2006-10-14 Geoffrey Keating <geoffk@apple.com> - - * aclocal.m4: Regenerate. - * configure: Regenerate. - -2006-10-05 Danny Smith <dannysmith@users.sourceforge.net> - - * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from - '<' to '<='. - -2006-10-05 Danny Smith <dannysmith@users.sourceforge.net> - - * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from - test. - * configure: Regenerate. - * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias. - -2006-09-26 Jakub Jelinek <jakub@redhat.com> - - PR middle-end/25261 - PR middle-end/28790 - * testsuite/libgomp.c/nestedfn-4.c: New test. - * testsuite/libgomp.c/nestedfn-5.c: New test. - * testsuite/libgomp.fortran/nestedfn3.f90: New test. - - PR fortran/29097 - * testsuite/libgomp.fortran/condinc1.f: New test. - * testsuite/libgomp.fortran/condinc2.f: New test. - * testsuite/libgomp.fortran/condinc3.f90: New test. - * testsuite/libgomp.fortran/condinc4.f90: New test. - * testsuite/libgomp.fortran/condinc1.inc: New file. - -2006-09-18 Tom Tromey <tromey@redhat.com> - - * configure: Rebuilt. - -2006-09-13 Joseph S. Myers <joseph@codesourcery.com> - - PR c/28768 - PR preprocessor/14634 - * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument - to AC_DEFINE. - * configure: Regenerate. - -2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org> - - * testsuite/libgomp.fortran/reduction3.f90: Change - -2147483648 to -huge(i)-1 to avoid overflow. - * testsuite/libgomp.fortran/reduction4.f90: Change - Z'ffffffff' to not(0) to avoid overflow. - -2006-08-26 Joseph S. Myers <joseph@codesourcery.com> - - PR libgomp/25938 - * Makefile.am (libsubincludedir): New. - (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS. - * Makefile.in: Regenerate. - -2006-08-17 Jakub Jelinek <jakub@redhat.com> - - PR libgomp/28725 - * env.c: Include ctype.h. - (parse_schedule, parse_unsigned_long, parse_boolean): Allow - leading and/or trailing whitespace and compare strings case - insensitively. - -2006-07-16 Jakub Jelinek <jakub@redhat.com> - - PR fortran/28390 - * testsuite/libgomp.fortran/pr28390.f: New test. - -2006-07-05 Eric Christopher <echristo@apple.com> - - * configure.ac: Depend addition of -pthread on host OS. - * configure: Regenerate. - -2006-06-21 Jakub Jelinek <jakub@redhat.com> - - * critical.c (GOMP_critical_name_start): Fix *pptr initialization - when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is - defined. - -2006-06-20 Jakub Jelinek <jakub@redhat.com> - - PR libgomp/26175 - PR libgomp/26477 - * configure.ac: If neither --enable-linux-futex nor - --disable-linux-futex is passed, determine the default by checking - for compiling and/or running against NPTL. With --enable-linux-futex, - check if SYS_gettid and SYS_futex are defined. - * configure: Rebuilt. - -2006-06-14 Richard Henderson <rth@redhat.com> - - PR libgomp/28008 - * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when - undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment. - -2006-06-09 Richard Henderson <rth@redhat.com> - - * env.c (gomp_nthreads_var): Change to unsigned long. - (gomp_run_sched_chunk): Likewise. - (parse_unsigned_long): Rename from parse_num_threads and generalize. - (initialize_env): Initialize gomp_thread_attr. - * libgomp.h (gomp_nthreads_var): Update decl. - (gomp_run_sched_chunk): Likewise. - (gomp_thread_attr): Declare. - * team.c (gomp_thread_attr): Export. - (initialize_team): Don't initialize it. - -2006-06-09 Jakub Jelinek <jakub@redhat.com> - - PR fortran/27916 - * testsuite/libgomp.fortran/pr27916-1.f90: New test. - * testsuite/libgomp.fortran/pr27916-2.f90: New test. - -2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr> - - * config/mingw32/time.c: New file. - * configure.tgt: Use it. - -2006-05-23 Carlos O'Donell <carlos@codesourcery.com> - - * Makefile.am: Add install-html target. Add install-html to .PHONY - * Makefile.in: Regenerate. - -2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> - - PR libgomp/27612 - * testsuite/libgomp.c/sections-1.c: Require sync_int_long. - * testsuite/libgomp.c/critical-1.c: Likewise. - * testsuite/libgomp.c/loop-1.c: Likewise. - * testsuite/libgomp.c/loop-2.c: Likewise. - * testsuite/libgomp.c/single-1.c: Likewise. - * testsuite/libgomp.c/ordered-1.c: Likewise. - * testsuite/libgomp.c/ordered-2.c: Likewise. - -2006-05-15 Jakub Jelinek <jakub@redhat.com> - - PR middle-end/27416 - * libgomp.fortran/pr27416-1.f90: New test. - -2006-05-03 Jakub Jelinek <jakub@redhat.com> - - PR fortran/27395 - * testsuite/libgomp.fortran/pr27395-1.f90: New test. - * testsuite/libgomp.fortran/pr27395-2.f90: New test. - -2006-05-02 Jakub Jelinek <jakub@redhat.com> - - PR c++/26943 - * testsuite/libgomp.c/pr26943-1.c: New test. - * testsuite/libgomp.c/pr26943-2.c: New test. - * testsuite/libgomp.c/pr26943-3.c: New test. - * testsuite/libgomp.c/pr26943-4.c: New test. - * testsuite/libgomp.c++/pr27337.C: Remove barrier. - * testsuite/libgomp.c++/pr26943.C: New test. - -2006-05-02 Jakub Jelinek <jakub@redhat.com> - - PR middle-end/27337 - * testsuite/libgomp.c++/pr27337.C: New test. - -2006-04-26 Jakub Jelinek <jakub@redhat.com> - - PR c/26171 - * testsuite/libgomp.c/pr26171.c: New test. - -2006-04-25 Richard Henderson <rth@redhat.com> - - PR libgomp/25865 - * configure.ac: Use GCC_CHECK_TLS. - * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove. - * Makefile.in, aclocal.m4, configure: Regenerate. - -2006-04-10 Matthias Klose <doko@debian.org> - - * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib - directory names containing underscores. - -2006-03-21 Jakub Jelinek <jakub@redhat.com> - - PR c++/26691 - * testsuite/libgomp.c++/pr26691.C: New test. - -2006-03-13 Jakub Jelinek <jakub@redhat.com> - - * testsuite/libgomp.fortran/retval2.f90: New test. - -2006-03-09 Diego Novillo <dnovillo@redhat.com> - - * testsuite/libgomp.c++: New directory. - -2006-02-25 Shantonu Sen <ssen@opendarwin.org> - - * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions. - * config/posix/sem.c: Implement the above. - -2006-02-25 Andreas Tobler <a.tobler@schweiz.ch> - - * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and - define HAVE_BROKEN_POSIX_SEMAPHORES. - * configure: Rebuilt. - * config.h.in: Rebuilt. - -2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr> - - PR bootstrap/26161 - * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment - for the other pthread check. - * configure: Regenerate. - * config.h.in: Regenerate. - -2006-02-15 Jakub Jelinek <jakub@redhat.com> - - PR libgomp/25938 - PR libgomp/25984 - * Makefile.am (fincludedir): New variable. - (nodist_include_HEADERS): Remove Fortran files. - (nodist_finclude_HEADERS): New variable. - * Makefile.in: Regenerated. - -2006-02-13 Jakub Jelinek <jakub@redhat.com> - - * testsuite/libgomp.fortran/vla7.f90: Add -w to options. - Remove tests for returning assumed character length arrays. - -2006-02-12 Roger Sayle <roger@eyesopen.com> - John David Anglin <dave@hiauly1.hia.nrc.ca> - - PR libgomp/25936 - * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems. - -2006-02-08 Ulrich Weigand <uweigand@de.ibm.com> - - * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library. - -2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr> - - * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related - part of LD_LIBRARY_PATH manually. - -2006-02-03 H.J. Lu <hongjiu.lu@intel.com> - - PR libgomp/25852 - * testsuite/lib/libgomp-dg.exp (blddir): Set it in - libgomp_init. - -2005-01-25 Paolo Bonzini <bonzini@gnu.org> - - PR libgomp/25884 - * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove. - * configure.ac (PERL): Don't set. - (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here. - (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE, - OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions. - * omp.h.in: Wrap the new configure substitutions with @ characters. - * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise. - * aclocal.m4, configure, Makefile.in: Regenerate. - * mkomp_h.pl: Delete. - -2005-01-24 Paolo Bonzini <bonzini@gnu.org> - - PR libgomp/25259 - * configure.ac: Use GCC_HEADER_STDINT. - * libgomp.h: Include gstdint.h. - * libgomp_f.h.in: Don't include stdint.h or inttypes.h. - * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild. - -2006-01-24 Richard Henderson <rth@redhat.com> - - PR libgomp/25942 - * configure.ac: Add AM_MAINTAINER_MODE. - * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild. - -2006-01-24 Diego Novillo <dnovillo@redhat.com> - - * Makefile.in: Regenerate. - * testsuite/Makefile.in: Regenerate. - * aclocal.m4: Regenerate. - -2006-01-23 Andreas Tobler <a.tobler@schweiz.ch> - - * config/posix/proc.c: Conditional include of sys/loadavg.h for - Solaris. - * configure.ac: Add check for loadavg.h. - (link_gomp): Adjust comment. - * configure: Regenerate. - * config.h.in: Regenerate. - -2006-01-21 Steve Ellcey <sje@cup.hp.com> - - PR libgomp/25877 - * configure.ac: Remove check for alloca.h. - * configure: Regenerate. - * config.h.in: Regenerate. - * libgomp.h: define gomp_alloca to be __builtin_alloca. - * team.c: Remove use of alloca.h. - Call gomp_alloca instead of alloca. - -2006-01-20 Steve Ellcey <sje@cup.hp.com> - - PR libgomp/25877 - * team.c: Add include of alloca.h. - * configure.ac: Add check for alloca.h. - * configure: Regenerate. - * config.h.in: Regenerate. - -2006-01-17 Jakub Jelinek <jakub@redhat.com> - - PR fortran/25219 - * testsuite/libgomp.fortran/pr25219.f90: New test. - -2005-12-05 Uros Bizjak <uros@kss-loka.si> - - * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c, - testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c, - testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C, - testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C, - testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C, - testsuite/libgomp.fortran/threadprivate1.f90, - testsuite/libgomp.fortran/threadprivate2.f90, - testsuite/libgomp.fortran/threadprivate3.f90, - testsuite/libgomp.fortran/appendix-a/a.22.7.f9, - testsuite/libgomp.fortran/appendix-a/a.22.8.f9, - testsuite/libgomp.fortran/omp_parse3.f90: Change required - effective-target to TLS runtime. - - * testsuite/libgomp.fortran/pr25162.f: Require - effective-target TLS runtime. - -2005-12-01 Jakub Jelinek <jakub@redhat.com> - - * testsuite/libgomp.fortran/nestedfn2.f90: New test. - * testsuite/libgomp.c/nestedfn-3.c: New test. - -2005-11-30 Jakub Jelinek <jakub@redhat.com> - - PR fortran/25162 - * testsuite/libgomp.fortran/pr25162.f: New test. - -2005-11-28 Jakub Jelinek <jakub@redhat.com> - - * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to - CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed. - -2005-11-25 Jakub Jelinek <jakub@redhat.com> - - * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c, - libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in, - omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c, - single.c, team.c, work.c, config/linux/alpha/futex.h, - config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h, - config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h, - config/linux/powerpc/futex.h, config/linux/s390/futex.h, - config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h, - config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h, - config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c, - config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update - FSF address. - -2005-11-18 Jakub Jelinek <jakub@redhat.com> - - * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS - to nodist_noinst_HEADERS. - * Makefile.in: Rebuilt. - - * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct, - add integer count field. - * config/posix/lock.c (omp_destroy_nest_lock): Adjust for - omp_nest_lock_t type change. - (omp_init_nest_lock): Likewise. Initialize count to 0. - (omp_set_nest_lock): Adjust for omp_nest_lock_t type change. - Increment count. - (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change. - Decrement count. - (omp_test_nest_lock): Adjust for omp_nest_lock_t type change. - Increment count if successful and return the new nesting level. - * config/linux/lock.c (omp_test_nest_lock): Return new nesting level. - * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type. - * testsuite/libgomp.c/lib-1.c: New test. - * testsuite/libgomp.fortran/lib1.f90: New test. - * testsuite/libgomp.fortran/lib2.f: New test. - * testsuite/libgomp.fortran/lib3.f: New test. - -2005-11-17 Richard Henderson <rth@redhat.com> - - PR 24845 - * Makefile.am (nodist_toolexeclib_HEADERS): New. - * configure.ac (link_gomp): New. Substitute it. - (AC_CONFIG_FILES): Add libgomp.spec. - * libgomp.spec.in: New file. - * Makefile.in, testsuite/Makefile.in, configure: Rebuild. - * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags. - -2005-11-18 Jakub Jelinek <jakub@redhat.com> - - * testsuite/libgomp.fortran/reduction1.f90: Adjust for - reduction(-:var) behaving the same as reduction(+:var). - * testsuite/libgomp.c/reduction-4.c: New test. - -2005-11-15 Uros Bizjak <uros@kss-loka.si> - - * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c, - testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c, - testsuite/libgomp.c/copyin-3.c, - testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C, - testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C, - testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C, - testsuite/libgomp.c++/pr24455.C, - testsuite/libgomp.fortran/threadprivate1.f90, - testsuite/libgomp.fortran/threadprivate2.f90, - testsuite/libgomp.fortran/threadprivate3.f90, - testsuite/libgomp.fortran/appendix-a/a.22.7.f9, - testsuite/libgomp.fortran/appendix-a/a.22.8.f9, - testsuite/libgomp.fortran/omp_parse3.f90: Require - effective-target TLS. - -2005-11-14 Diego Novillo <dnovillo@redhat.com> - - * HEADER: Remove. - -2005-11-13 Jakub Jelinek <jakub@redhat.com> - - PR libgomp/24797 - * team.c (initialize_team): Pass NULL rather than free as - pthread_key_create destructor. Initialize thread specific data - pointer in initial thread to a static local variable rather than - malloced memory. - -2005-11-11 Uros Bizjak <uros@kss-loka.si> - - * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append - its location to ld_library_path. - -2005-11-10 Diego Novillo <dnovillo@redhat.com> - - * testsuite/libgomp.c/c.exp: Rename from dg.exp. - -2005-11-10 Diego Novillo <dnovillo@redhat.com> - - * testsuite/libgomp.c: Rename from libgomp.dg. - -2005-11-09 Diego Novillo <dnovillo@redhat.com> - - * testsuite/libgomp.c++/pr24455.C: Add copyin clause for - threadprivate variable 'i'. - -2005-11-09 Jakub Jelinek <jakub@redhat.com> - - * config/linux/s390/futex.h: New file. - * configure.tgt: Use it. - - * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization - before the parallel. - -2005-11-08 Jakub Jelinek <jakub@redhat.com> - - PR c++/24734 - * testsuite/libgomp.c++/master-1.C: New test. - -2005-11-07 Jakub Jelinek <jakub@redhat.com> - - * testsuite/libgomp.dg/copyin-3.c: New test. - -2005-11-07 Jakub Jelinek <jakub@redhat.com> - - * testsuite/libgomp.fortran/retval1.f90: New test. - * testsuite/libgomp.fortran/vla7.f90: New test. - -2005-11-06 Jakub Jelinek <jakub@redhat.com> - - * testsuite/libgomp.fortran/vla2.f90: New test. - * testsuite/libgomp.fortran/vla3.f90: New test. - * testsuite/libgomp.fortran/vla4.f90: New test. - * testsuite/libgomp.fortran/vla5.f90: New test. - * testsuite/libgomp.fortran/vla6.f90: New test. - -2005-11-01 Jakub Jelinek <jakub@redhat.com> - - * config/linux/sparc/futex.h: New file. - * configure.tgt: Use it. - * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing. - - * critical.c: Include stdlib.h. - * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about - ignoring return value. - * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after - LIBGOMP_CHECK_SYNC_BUILTINS check. - * configure: Rebuilt. - -2005-10-31 Jakub Jelinek <jakub@redhat.com> - - * testsuite/libgomp.fortran/vla1.f90: New test. - -2005-10-31 Richard Henderson <rth@redhat.com> - - * testsuite/libgomp.fortran/character2.f90: Fix race condition - setting 's' in different threads. - -2005-10-31 Jakub Jelinek <jakub@redhat.com> - - * libgomp.h (attribute_hidden, ialias): Define. - * config/posix/proc.c (omp_get_num_procs): Add ialias. - * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise. - * config/posix/lock.c (omp_init_lock, omp_init_nest_lock, - omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock, - omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock, - omp_test_lock, omp_test_nest_lock): Likewise. - * config/linux/lock.c (omp_init_lock, omp_init_nest_lock, - omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock, - omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock, - omp_test_lock, omp_test_nest_lock): Likewise. - * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads, - omp_get_dynamic, omp_get_nested): Likewise. - * parallel.c (omp_get_num_threads, omp_get_max_threads, - omp_get_thread_num, omp_in_parallel): Likewise. - * fortran.c (ialias_redirect): Define. - (omp_init_lock, omp_init_nest_lock, omp_destroy_lock, - omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, - omp_unset_lock, omp_unset_nest_lock, omp_test_lock, - omp_test_nest_lock, omp_set_dynamic, omp_set_nested, - omp_set_num_threads, omp_get_dynamic, omp_get_nested, - omp_in_parallel, omp_get_max_threads, omp_get_num_procs, - omp_get_num_threads, omp_get_thread_num, omp_get_wtick, - omp_get_wtime): Add ialias_redirect. - -2005-10-30 Jakub Jelinek <jakub@redhat.com> - - * fortran.c: Include stdlib.h. - -2005-10-29 Jakub Jelinek <jakub@redhat.com> - - * Makefile.am (env.o, env.lo): Depend on libgomp_f.h. - * Makefile.in: Regenerated. - -2005-10-28 Jakub Jelinek <jakub@redhat.com> - - * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE. - * libgomp_f.h.in (omp_check_defines): New function. - * env.c: Include libgomp_f.h. - (initialize_env): Call omp_check_defines. - - * testsuite/libgomp.dg/copyin-2.c: New test. - * testsuite/libgomp.c++/copyin-2.C: New test. - * testsuite/libgomp.fortran/threadprivate3.f90: New test. - - * testsuite/libgomp.fortran/threadprivate2.f90: New test. - * testsuite/libgomp.fortran/sharing2.f90: New test. - - * testsuite/libgomp.dg/copyin-1.c: New test. - * testsuite/libgomp.c++/copyin-1.C: New test. - -2005-10-26 Jakub Jelinek <jakub@redhat.com> - - * testsuite/libgomp.fortran/crayptr1.f90: New test. - - * testsuite/libgomp.fortran/workshare1.f90: New test. - - * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile - only test. - * libgomp.fortran/sharing1.f90: New test. - -2005-10-24 Jakub Jelinek <jakub@redhat.com> - - PR c++/24502 - * testsuite/libgomp.c++/loop-7.C: New test. - - * testsuite/libgomp.dg/nestedfn-2.c: New test. - - * testsuite/libgomp.dg/nestedfn-1.c: New test. - * testsuite/libgomp.fortran/reduction6.f90: New test. - * testsuite/libgomp.fortran/nestedfn1.f90: New test. - -2005-10-23 Richard Henderson <rth@redhat.com> - - * testsuite/libgomp.c++/ctor-1.C: New. - * testsuite/libgomp.c++/ctor-2.C: New. - * testsuite/libgomp.c++/ctor-3.C: New. - * testsuite/libgomp.c++/ctor-4.C: New. - * testsuite/libgomp.c++/ctor-5.C: New. - * testsuite/libgomp.c++/ctor-6.C: New. - * testsuite/libgomp.c++/ctor-7.C: New. - * testsuite/libgomp.c++/ctor-8.C: New. - * testsuite/libgomp.c++/ctor-9.C: New. - -2005-10-21 Diego Novillo <dnovillo@redhat.com> - - PR 24455 - * testsuite/libgomp.c++/pr24455-1.C: New test. - * testsuite/libgomp.c++/pr24455.C: New test. - * testsuite/libgomp.dg/pr24455-1.c: New test. - * testsuite/libgomp.dg/pr24455.c: New test. - -2005-10-20 Richard Henderson <rth@redhat.com> - - * testsuite/libgomp.c++/loop-6.C: New. - * testsuite/libgomp.dg/loop-3.c: New. - -2005-10-20 Jakub Jelinek <jakub@redhat.com> - - * testsuite/libgomp.fortran/jacobi.f: Don't make i and j - explicitly private. - * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i - explicitly shared. - -2005-10-19 Diego Novillo <dnovillo@redhat.com> - - * testsuite/libgomp.fortran/jacobi.f: New test. - -2005-10-19 Richard Henderson <rth@redhat.com> - - * configure.tgt (i?86-linux): Default to with_arch instead of - CFLAGS. Add -mtune to match target_cpu. - (x86_64-linux): Tune to i686. - - * fortran.c (omp_test_nest_lock_): Fix typo. - -2005-10-19 Jakub Jelinek <jakub@redhat.com> - - * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next, - gomp_ordered_sync): Do nothing if team->nthreads == 1. - * testsuite/libgomp.dg/ordered-3.c: New test. - - * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort. - Remove volatile keyword. - - * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables - in COMMON block to avoid warnings on 64-bit targets. - -2005-10-18 Diego Novillo <dnovillo@redhat.com> - - * testsuite/libgomp.dg/shared-3.c: New test. - -2005-10-18 Jakub Jelinek <jakub@redhat.com> - - * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed. - * testsuite/libgomp.fortran/reduction5.f90: New test. - -2005-10-18 Jakub Jelinek <jakub@redhat.com> - - * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to - dg-options. - * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable - flush loop now that __sync_synchronize has proper memory barrier. - * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo. - Add -ffixed-form to dg-options. - -2005-10-17 Diego Novillo <dnovillo@redhat.com> - - * testsuite/libgomp.fortran/fortran.exp: Also gather tests - from subdirectories. - * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test. - * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test. - * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test. - * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test. - * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test. - * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test. - * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test. - * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test. - * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test. - * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test. - * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test. - * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test. - * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test. - * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test. - * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test. - * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test. - * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test. - * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test. - * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test. - * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test. - * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test. - * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test. - * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test. - * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test. - * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test. - -2005-10-17 Jakub Jelinek <jakub@redhat.com> - - * testsuite/libgomp.dg/dg.exp: Only unset lang_* if - lang_library_path exists. Use find instead of glob to gather tests. - * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed. - -2005-10-17 Diego Novillo <dnovillo@redhat.com> - - * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test. - * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test. - * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test. - * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test. - * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test. - * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test. - * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test. - * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test. - * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test. - * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test. - * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test. - * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test. - * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file. - -2005-10-15 Jakub Jelinek <jakub@redhat.com> - - * testsuite/libgomp.dg/vla-1.c: New test. - - * testsuite/libgomp.fortran/reference2.f90: New test. - - * testsuite/libgomp.fortran/character2.f90: Remove explicit - declaration of omp_get_thread_num. - * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add - use omp_lib. - - * testsuite/libgomp.fortran/reduction1.f90: New test. - * testsuite/libgomp.fortran/reduction2.f90: New test. - * testsuite/libgomp.fortran/reduction3.f90: New test. - * testsuite/libgomp.fortran/reduction4.f90: New test. - -2005-10-13 Richard Henderson <rth@redhat.com> - - * Makefile.am (libgomp_la_SOURCES): Add bar.c. - * Makefile.in: Regenerate. - * barrier.c (GOMP_barrier): Use gomp_barrier_wait. - * libgomp.h: Include bar.h. - (struct gomp_barrier): Remove. - (struct gomp_team): Add barrier. Replace master_barrier with - master_release. Replace threads with ordered_release. - (struct gomp_thread): Replace barrier with release. - * ordered.c (gomp_ordered_first): Update for ordered_release change. - (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init, - gomp_ordered_static_next, gomp_ordered_sync): Likewise. - * single.c (GOMP_single_copy_start): Use gomp_barrier_wait. - (GOMP_single_copy_end): Likewise. - * team.c (gomp_threads_dock): New. - (gomp_barrier_init, gomp_barrier_destroy): Remove. - (gomp_thread_start): Use gomp_barrier_wait. - (new_team, free_team): Update for gomp_team changes. - (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit. - (gomp_team_end): Use gomp_barrier_wait. - (initialize_team): Update for gomp_thread changes. - * work.c (gomp_work_share_end): Use gomp_barrier_wait_start. - (gomp_work_share_end_nowait): Use atomic ops when available. - * config/linux/bar.c, config/linux/bar.h: New files. - * config/posix/bar.c, config/posix/bar.h: New files. - -2005-10-13 Jakub Jelinek <jakub@redhat.com> - - * single.c (GOMP_single_copy_end): Don't segfault if team is NULL. - * testsuite/libgomp.dg/single-2.c: New test. - - * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file, - lang_link_flags): Unset, so that they aren't inherited from previously - sourced *.exp. - - * testsuite/libgomp.fortran/threadprivate1.f90: New test. - -2005-10-12 Richard Henderson <rth@redhat.com> - - * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel. - (libgomp_init): Use lang_test_file, lang_library_path, and - lang_link_flags, set by the subdirectory files. Add -fopenmp here. - - * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New. - (lang_test_file, lang_link_flags): New. - (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove. - - * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C, - testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C, - testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C, - testsuite/libgomp.c++/parallel-1.C, - testsuite/libgomp.c++/reduction-1.C, - testsuite/libgomp.c++/reduction-2.C, - testsuite/libgomp.c++/reduction-3.C, - testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C, - testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C, - testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C: - New files, largely cribbed from the C testsuite. - -2005-10-12 Jakub Jelinek <jakub@redhat.com> - - * testsuite/libgomp.fortran/character1.f90: New test. - * testsuite/libgomp.fortran/character2.f90: New test. - - * testsuite/libgomp.dg/nested-1.c: New test. - * testsuite/libgomp.dg/nested-2.c: New test. - * testsuite/libgomp.fortran/do1.f90: New test. - * testsuite/libgomp.fortran/do2.f90: New test. - - * testsuite/libgomp.fortran/reference1.f90: New test. - -2005-10-11 Jakub Jelinek <jakub@redhat.com> - - * testsuite/libgomp.dg/reduction-1.c: New test. - * testsuite/libgomp.dg/reduction-2.c: New test. - * testsuite/libgomp.dg/reduction-3.c: New test. - -2005-10-10 Jakub Jelinek <jakub@redhat.com> - - * testsuite/libgomp.dg/atomic-1.c: New test. - * testsuite/libgomp.dg/atomic-2.c: New test. - -2005-10-09 Richard Henderson <rth@redhat.com> - - * critical.c (atomic_lock): New. - (initialize_critical): Initialize it. - (GOMP_atomic_start, GOMP_atomic_end): New. - * libgomp.map: Export them. - * libgomp_g.h: Declare them. - - * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite. - -2005-10-02 Richard Henderson <rth@redhat.com> - - * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror - to XCFLAGS instead of CFLAGS. - -2005-09-30 Richard Henderson <rth@redhat.com> - - * configure.ac: Determine whether -pthread or -lpthread is needed. - * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread. - * Makefine.in, configure: Rebuild. - -2005-09-28 Richard Henderson <rth@redhat.com> - - * testsuite/libgomp.dg/omp-loop03.c: Fix return code. - * testsuite/libgomp.dg/omp-single-3.c: New test. - -2005-09-28 Diego Novillo <dnovillo@redhat.com> - - * testsuite/libgomp.dg/omp-single-2.c: New test. - * testsuite/libgomp.dg/shared-2.c: Fix return code. - -2005-09-27 Richard Henderson <rth@redhat.com> - - * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier. - * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule. - -2005-09-27 Jakub Jelinek <jakub@redhat.com> - - * testsuite/libgomp.dg/omp-loop03.c: New test. - -2005-09-27 Diego Novillo <dnovillo@redhat.com> - - * testsuite/libgomp.dg/omp-parallel-for.c: New test. - -2005-09-27 Diego Novillo <dnovillo@redhat.com> - - * testsuite/libgomp.dg/omp-single-1.c: New test. - * testsuite/libgomp.dg/shared-1.c: Return 0. - Add prototype for abort. - * testsuite/libgomp.dg/shared-2.c: Likewise. - -2005-09-26 Jakub Jelinek <jakub@redhat.com> - - * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming - constructs. - -2005-09-26 Diego Novillo <dnovillo@redhat.com> - - * testsuite/libgomp.dg/shared-1.c: New test. - * testsuite/libgomp.dg/shared-2.c: New test. - -2005-09-24 Richard Henderson <rth@redhat.com> - - * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error. - -2005-09-24 Richard Henderson <rth@redhat.com> - - * iter.c (gomp_iter_static_next): Round up when computing number - of iterations. Don't bother distributing a remainder equally. - - * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main. - Don't call srand. Zero b before testing. - (main): New. - -2005-09-24 Jakub Jelinek <jakub@redhat.com> - - * testsuite/libgomp.fortran/omp_atomic1.f90: New test. - * testsuite/libgomp.fortran/omp_atomic2.f90: New test. - -2005-09-23 Jakub Jelinek <jakub@redhat.com> - - * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do - without !$omp end do, followed immediately by subroutine end. - -2005-09-23 Diego Novillo <dnovillo@redhat.com> - - * testsuite/libgomp.dg/omp-parallel-if.c: New test. - -2005-09-22 Richard Henderson <rth@redhat.com> - - * critical.c (GOMP_critical_name_start): Change argument to void**. - Reuse the pointer space if the mutex fits. - (GOMP_critical_name_end): Likewise. - (initialize_critical): Don't define if GOMP_MUTEX_INIT_0. - * libgomp_g.h (GOMP_critical_name_start): Update decl. - (GOMP_critical_name_end): Likewise. - * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New. - * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New. - -2005-09-20 Richard Henderson <rth@redhat.com> - - * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New. - (create_lock_lock): New. - (initialize_critical): Initialize it. - * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New. - * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare. - -2005-09-20 Diego Novillo <dnovillo@redhat.com> - - * testsuite/libgom.dg/omp-loop01.c: Include stdio.h. - -2005-09-20 Diego Novillo <dnovillo@redhat.com> - - * testsuite/libgomp.dg/omp-loop01.c: New test. - * testsuite/libgomp.dg/omp-loop02.c: New test. - -2005-09-20 Jakub Jelinek <jakub@redhat.com> - - * configure.ac (AC_PROG_FC): Add. - (USE_FORTRAN): New automake conditional. - * configure: Rebuilt. - * Makefile.am (libgomp_la_SOURCES): Add fortran.c. - (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h. - If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod. - Add rules to build them. - * Makefile.in: Rebuilt. - * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and - OMP_NEST_LOCK_KIND. - * libgomp.map: Add Fortran wrappers. - * libgomp_f.h.in: New file. - * omp_lib.h.in: New file. - * omp_lib.f90.in: New file. - * fortran.c: New file. - * testsuite/lib/libgomp-dg.exp: Load a few more .exp files. - Append libgfortran directory to LD_LIBRARY_PATH if it exists. - Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if - libgfortran has been built. - * testsuite/libgomp.fortran/fortran.exp: New file. - * testsuite/libgomp.fortran/omp_cond1.f: New test. - * testsuite/libgomp.fortran/omp_cond2.f: New test. - * testsuite/libgomp.fortran/omp_cond3.F90: New test. - * testsuite/libgomp.fortran/omp_cond4.F90: New test. - * testsuite/libgomp.fortran/omp_hello.f: New test. - * testsuite/libgomp.fortran/omp_orphan.f: New test. - * testsuite/libgomp.fortran/omp_parse1.f90: New test. - * testsuite/libgomp.fortran/omp_parse2.f90: New test. - * testsuite/libgomp.fortran/omp_parse3.f90: New test. - * testsuite/libgomp.fortran/omp_parse4.f90: New test. - * testsuite/libgomp.fortran/omp_reduction.f: New test. - * testsuite/libgomp.fortran/omp_workshare1.f: New test. - * testsuite/libgomp.fortran/omp_workshare2.f: New test. - -2005-08-30 Richard Henderson <rth@redhat.com> - - * loop.c (GOMP_loop_static_start): Provide fallback wrapper - function for when aliases are not usable. - (GOMP_loop_dynamic_start, GOMP_loop_guided_start, - GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start, - GOMP_loop_ordered_guided_start, GOMP_loop_static_next, - GOMP_loop_dynamic_next, GOMP_loop_guided_next, - GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next, - GOMP_loop_ordered_guided_next): Likewise. - * ordered.c (GOMP_ordered_start): Likewise. - -2005-08-01 Diego Novillo <dnovillo@redhat.com> - - * testsuite/libgomp.dg/dg.exp: Use -O2 for now. - * testsuite/libgomp.dg/omp_hello.c: Fix return code - * testsuite/libgomp.dg/omp_matvec.c: Likewise. - * testsuite/libgomp.dg/omp_orphan.c: Likewise - * testsuite/libgomp.dg/omp_reduction.c: Likewise - * testsuite/libgomp.dg/omp_workshare1.c: Likewise - * testsuite/libgomp.dg/omp_workshare2.c: Likewise - * testsuite/libgomp.dg/omp_workshare3.c: Likewise - * testsuite/libgomp.dg/omp_workshare4.c: Likewise - -2005-07-07 Eric Christopher <echristo@redhat.com> - Diego Novillo <dnovillo@redhat.com> - - * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS. - * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix - up code. - * testsuite/libgomp.dg/omp_matvec.c: Ditto. - * testsuite/libgomp.dg/omp_orphan.c: Ditto. - * testsuite/libgomp.dg/omp_reduction.c: Ditto. - * testsuite/libgomp.dg/omp_workshare1.c: Ditto. - * testsuite/libgomp.dg/omp_workshare2.c: Ditto. - * testsuite/libgomp.dg/omp_workshare3.c: Ditto. - * testsuite/libgomp.dg/omp_workshare4.c: Ditto. - -2005-06-13 Diego Novillo <dnovillo@redhat.com> - - * TOPLEVEL.patch: Remove. - -2005-05-16 Richard Henderson <rth@redhat.com> - - * configure.ac: Test for clock_gettime. - * config.h.in, configure: Rebuild. - * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern. - (omp_get_wtime): Use clock_gettime if available. - (omp_get_wtick): Use clock_getres if available. - -2005-05-11 Richard Henderson <rth@redhat.com> - - * config/linux/ia64/futex.h: New file. - * configure.tgt: Use it. - - * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline. - -2005-05-07 Richard Henderson <rth@redhat.com> - - * config/linux/powerpc/futex.h: New file. - * configure.tgt: Use it. - - * config/linux/i486/futex.h: Merge ... - * config/linux/x86_64/futex.h: ... into ... - * config/linux/x86/futex.h: ... here. - * configure.tgt: Update to match. - -2005-05-06 Richard Henderson <rth@redhat.com> - - * config/linux/alpha/futex.h: Conditionally define SYS_futex. - * config/linux/i486/futex.h: Likewise. - * config/linux/x86_64/futex.h: Likewise. - - * config/linux/lock.c: New file. - * config/linux/omp-lock.h: New file. - - * critical.c, env.h: Don't include omp.h - * config/posix/lock.c: Include libgomp.h instead of omp.h. - * config/posix/time.c: Likewise. - * config/posix/omp-lock.h: New file. - * libgomp.h: Include omp-lock.h and omp.h. - * Makefile.am (nodist_include_HEADERS): New. - (omp.h): New rule. - * configure.ac (PERL): New. - * mkomp_h.pl: New file. - * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t - with templates. - * Makefile.in, configure, testsuite/Makefile.in: Rebuild. - - * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into - build directory. Re-add -march=i486 hack. - - * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove. - (libgomp_link_flags): Remove. - (libgomp_initialized): Remove. - (libgomp_init): Don't protect from reinitialization. Copy code - from libstdc++ for getting the multilib set correctly. - -2005-05-05 Richard Henderson <rth@redhat.com> - - * config/linux/alpha/futex.h: New file. - * configure.tgt (alpha*-*-linux*): Use it. - - * config/posix/mutex.c: New file. - * config/posix/sem.c: Use libgomp.h. - - * configure.tgt (x86_64-linux): Also test CC for -m32. - * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage. - - * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add / - after $gccpath. - - * Makefile.am (SUBDIRS): New. - (libgomp_la_LDFLAGS): Add -lpthread. - * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies. - * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild. - - * libgomp_g.h: New file. - * libgomp.h: Split out all public declarations to libgomp_g.h. - Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN. - * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN. - * config/linux/sem.h: Likewise. - * config/posix/sem.h: Likewise. - - * Makefile.am (AM_LDFLAGS): New. - (libgomp_version_script): Split out from ... - (libgomp_la_LDFLAGS): ... here. - (libgomp_version_info): New. - * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE. - (LIBGOMP_ENABLE): New. - (LIBGOMP_CHECK_LINKER_FEATURES): New. - (LIBGOMP_ENABLE_SYMVERS): New. - * configure.ac (AC_INIT): Version 1.0. - (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE. - (enable-linux-futex): Likewise. Rename from enable-futex. - (libtool_VERSION): New. - (LIBGOMP_ENABLE_SYMVERS): Use it. - * configure.tgt: Check with_gnu_ld wrt have_tls optimizations. - * Makefile.in, aclocal.m4, configure: Rebuild. - - * config/linux/mutex.c: Include libgomp.h instead of mutex.h. - (gomp_mutex_unlock_slow): Fix typo. - * config/linux/sem.c: Similarly. - (gomp_sem_post_slow): Fix typo. - * config/linux/sem.h (gomp_sem_post_slow): Fix typo. - * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code. - [__PIC__] (sys_futex0): Don't use tmp output in asm. - - * Makefile.am (AM_CFLAGS): Expand with XCFLAGS. - (libgomp_la_LDFLAGS): Add top_srcdir to path. - * acinclude.m4: Copy libtool.m4 stuff from libgfortran. - * configure.ac: Check for getloadavg. Substitute XCFLAGS and - XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS. - * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and - LDFLAGS. Pull enable_futex check to top-level. - * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN. - * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate. - - First attempt at real configury. - * Makefile, config.h: Remove file. - * Makefile.am, Makefile.in: New file. - * acinclude.m4 aclocal.m4: New file. - * configure.ac, configure.tgt, configure: New file. - - * config/posix/lock.c: Rename from sys-lock.c. - * config/posix/mutex.h: Rename from sys-mutex.h. - * config/posix/sem.c: Rename from sys-sem.c. - * config/posix/sem.h: Rename from sys-sem.h. - * config/posix/proc.c: Rename from sys-proc.c. - * config/posix/time.c: Rename from sys-proc.c. - - * config/linux/mutex.c: New file. - * config/linux/mutex.h: New file. - * config/linux/sem.c: New file. - * config/linux/sem.h: New file. - * config/linux/i486/futex.h: New file. - * config/linux/x86_64/futex.h: New file. - -2005-05-04 Richard Henderson <rth@redhat.com> - - * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New. - * libgomp.h: Declare them. - * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start, - gomp_loop_dynamic_next, gomp_loop_guided_next): Use them. - -2005-05-04 Richard Henderson <rth@redhat.com> - - * libgomp-1 code drop - -2005-05-04 Richard Henderson <rth@redhat.com> - - * iter.c (gomp_iter_static_next): Return tri-state on 0. - * ordered.c (gomp_ordered_static_next): Remove not_last argument. - * libgomp.h (struct gomp_team_state): Make static_trip unsigned. - (gomp_iter_static_next): Update. - (gomp_ordered_static_next): Update. - * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next. - (gomp_loop_ordered_static_start): Likewise. Exit early for a - totally empty range. - (gomp_loop_ordered_static_next): Refine test for calling - gomp_ordered_static_next. - * testsuite/ordered-1.c: Add case for more threads than iterations. - - * iter.c (gomp_iter_runtime_next_locked): Remove. - * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start, - gomp_loop_guided_start, gomp_loop_ordered_static_start, - gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start, - gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next, - gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next, - gomp_loop_ordered_guided_next): Downcase name, make static, add - an external alias with the old name. - (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start, - GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a - switch and call one of the above static functions. - * libgomp.h: Update. - - * work.c (gomp_work_share_start): Lock the mutex for !first too. - * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start, - GOMP_loop_guided_start, GOMP_loop_runtime_start, - GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start, - GOMP_loop_ordered_guided_start): Update to match. - * sections.c (GOMP_sections_start): Likewise. - * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise. - - * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next, - gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//. - Use bounds check instead of modulus. - (gomp_ordered_sync): Split out of GOMP_ordered_start. - (gomp_ordered_last): Don't sync with ordered_owner here. - (gomp_ordered_next): Likewise. - (gomp_ordered_static_loop_next): Likewise. - * loop.c, libgomp.h: Update to match. - - * libgomp.h (GOMP_barrier): Declare. - - * testsuite/barrier-1.c: New file. - * testsuite/critical-1.c: New file. - * testsuite/ordered-2.c: New file. - * testsuite/ordered-1.c: New file. - * testsuite/sections-1.c: New file. - * testsuite/single-1.c: New file. - * testsuite/Makefile (TESTS): Add them. - -2005-05-04 Richard Henderson <rth@redhat.com> - - * libgomp.h (struct gomp_work_share): Add ordered_owner. - * loop.c (GOMP_loop_static_start): If not the startup thread, - acquire the mutex to wait for initialization complete. - (GOMP_loop_ordered_static_start): Likewise. - (GOMP_loop_ordered_runtime_start): Likewise. - (GOMP_loop_ordered_static_first): Remove. - (GOMP_loop_ordered_dynamic_first): Remove. - (GOMP_loop_ordered_guided_first): Remove. - (GOMP_loop_ordered_runtime_first): Remove. - * ordered.c (gomp_ordered_loop_first): Post to own release when - we're the first thread. - (gomp_ordered_loop_last): Wait on release if not owner. - (gomp_ordered_loop_next): Likewise. - (gomp_ordered_static_loop_init): New. - (gomp_ordered_static_loop_next): Use ordered_owner. - (GOMP_ordered_start): Likewise. - * work.c (gomp_new_work_share): Initialize ordered_owner. - -2005-05-03 Richard Henderson <rth@redhat.com> - - * Makefile (OPT): New. - (CFLAGS): Use it. - - * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New. - * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New. - * libgomp.h, libgomp.map, NOTES: Update to match. - - * team.c (struct gomp_thread_start_data): Remove ts, fn, data. - Add initialized and thr members. - (gomp_thread_start): Pause when initially spawned to wait for - the whole team to be created. - (gomp_team_start): Release team members at the end. - - * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100. - (f_foo_1): Use GOMP_loop_end. - (f_foo_2): Use GOMP_loop_end_nowait. - - * testsuite/loop-2.c: New file. - * testsuite/Makefile (TESTS): Add it. - -2005-05-03 Richard Henderson <rth@redhat.com> - - * iter.c (gomp_iter_static_next): Fix overflow check typo. - (gomp_iter_dynamic_next_locked): Fix overflow check thinko. - * team.c (new_team): Initialize oldest_live_gen to 1 if no - initial work_share. - - * testsuite/Makefile: New file. - * testsuite/loop-1.c: New file. - -2005-05-03 Richard Henderson <rth@redhat.com> - - Initial implementation and checkin. diff --git a/gcc-4.2.1-5666.3/libgomp/ChangeLog.apple b/gcc-4.2.1-5666.3/libgomp/ChangeLog.apple deleted file mode 100644 index 80a7c4177..000000000 --- a/gcc-4.2.1-5666.3/libgomp/ChangeLog.apple +++ /dev/null @@ -1,25 +0,0 @@ -2007-01-14 Eric Christopher <echristo@pple.com> - - Radar 5674196 - * libgomp/configure.tgt: Build ppc64 for 10.4.0. - -2007-01-08 Eric Christopher <echristo@apple.com> - - Radar 5674196 - * libgomp/configure.tgt: Build for 10.3.9 for ppc/ppc64. - 10.4.0 for x86 processors. - -2007-12-03 Eric Christopher <echristo@apple.com> - - Radar 5602977 - * libgomp/configure.tgt: Build for 10.3.9. - -2007-08-20 Eric Christopher <echristo@apple.com> - - Radar 5423997 - Radar 5424010 - Merge .exp files from 4.3. - * testsuite/lib/libgomp.exp (libgomp_init): If blddir is "" then don't - add blddir specific flags. - * testsuite/libgomp.c++/c++.exp: If blddir is null assume we're - testing an installed compiler. diff --git a/gcc-4.2.1-5666.3/libgomp/Makefile.am b/gcc-4.2.1-5666.3/libgomp/Makefile.am deleted file mode 100644 index c2bfbeaad..000000000 --- a/gcc-4.2.1-5666.3/libgomp/Makefile.am +++ /dev/null @@ -1,99 +0,0 @@ -## Process this file with automake to produce Makefile.in - -ACLOCAL_AMFLAGS = -I ../config -SUBDIRS = testsuite - -## May be used by toolexeclibdir. -gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER) - -config_path = @config_path@ -search_path = $(addprefix $(top_srcdir)/config/, $(config_path)) $(top_srcdir) - -fincludedir = $(libdir)/gcc/$(target_alias)/$(gcc_version)/finclude -libsubincludedir = $(libdir)/gcc/$(target_alias)/$(gcc_version)/include - -empty = -space = $(empty) $(empty) -VPATH = $(subst $(space),:,$(strip $(search_path))) - -AM_CPPFLAGS = $(addprefix -I, $(search_path)) -AM_CFLAGS = $(XCFLAGS) -AM_LDFLAGS = $(XLDFLAGS) $(SECTION_LDFLAGS) $(OPT_LDFLAGS) - -toolexeclib_LTLIBRARIES = libgomp.la -nodist_toolexeclib_HEADERS = libgomp.spec - -if LIBGOMP_BUILD_VERSIONED_SHLIB -libgomp_version_script = -Wl,--version-script,$(top_srcdir)/libgomp.map -else -libgomp_version_script = -endif -libgomp_version_info = -version-info $(libtool_VERSION) -libgomp_la_LDFLAGS = $(libgomp_version_info) $(libgomp_version_script) - -libgomp_la_SOURCES = alloc.c barrier.c critical.c env.c error.c iter.c \ - loop.c ordered.c parallel.c sections.c single.c team.c work.c \ - lock.c mutex.c proc.c sem.c bar.c time.c fortran.c - -nodist_noinst_HEADERS = libgomp_f.h -nodist_libsubinclude_HEADERS = omp.h -if USE_FORTRAN -nodist_finclude_HEADERS = omp_lib.h omp_lib.f90 omp_lib.mod omp_lib_kinds.mod -endif - -omp_lib_kinds.mod: omp_lib.mod - : -omp_lib.mod: omp_lib.f90 - $(FC) $(FCFLAGS) -fsyntax-only omp_lib.f90 -fortran.lo: libgomp_f.h -fortran.o: libgomp_f.h -env.lo: libgomp_f.h -env.o: libgomp_f.h - - -# No install-html target -.PHONY: install-html -install-html: - - -# Automake Documentation: -# If your package has Texinfo files in many directories, you can use the -# variable TEXINFO_TEX to tell Automake where to find the canonical -# `texinfo.tex' for your package. The value of this variable should be -# the relative path from the current `Makefile.am' to `texinfo.tex'. -TEXINFO_TEX = ../gcc/doc/include/texinfo.tex - -# Defines info, dvi, pdf and html targets -MAKEINFOFLAGS = -I $(srcdir)/../gcc/doc/include -info_TEXINFOS = libgomp.texi - -# AM_CONDITIONAL on configure option --generated-files-in-srcdir -if GENINSRC -STAMP_GENINSRC = stamp-geninsrc -else -STAMP_GENINSRC = -endif - -# AM_CONDITIONAL on configure check ACX_CHECK_PROG_VER([MAKEINFO]) -if BUILD_INFO -STAMP_BUILD_INFO = stamp-build-info -else -STAMP_BUILD_INFO = -endif - - -all-local: $(STAMP_GENINSRC) - -stamp-geninsrc: libgomp.info - cp -p $(top_builddir)/libgomp.info $(srcdir)/libgomp.info - @touch $@ - -libgomp.info: $(STAMP_BUILD_INFO) - -stamp-build-info: libgomp.texi - $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -o libgomp.info $(srcdir)/libgomp.texi - @touch $@ - - -CLEANFILES = $(STAMP_GENINSRC) $(STAMP_BUILD_INFO) libgomp.info -MAINTAINERCLEANFILES = $(srcdir)/libgomp.info diff --git a/gcc-4.2.1-5666.3/libgomp/Makefile.in b/gcc-4.2.1-5666.3/libgomp/Makefile.in deleted file mode 100644 index 7fee1ccb3..000000000 --- a/gcc-4.2.1-5666.3/libgomp/Makefile.in +++ /dev/null @@ -1,1065 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ - - -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = . -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -target_triplet = @target@ -DIST_COMMON = $(am__configure_deps) $(srcdir)/../config.guess \ - $(srcdir)/../config.sub $(srcdir)/../depcomp \ - $(srcdir)/../install-sh $(srcdir)/../ltmain.sh \ - $(srcdir)/../missing $(srcdir)/../mkinstalldirs \ - $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ - $(srcdir)/config.h.in $(srcdir)/libgomp.spec.in \ - $(srcdir)/libgomp_f.h.in $(srcdir)/omp.h.in \ - $(srcdir)/omp_lib.f90.in $(srcdir)/omp_lib.h.in \ - $(top_srcdir)/configure ChangeLog -subdir = . -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \ - $(top_srcdir)/../config/depstand.m4 \ - $(top_srcdir)/../config/enable.m4 \ - $(top_srcdir)/../config/lead-dot.m4 \ - $(top_srcdir)/../config/multi.m4 \ - $(top_srcdir)/../config/stdint.m4 \ - $(top_srcdir)/../config/tls.m4 $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/../libtool.m4 $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ - configure.lineno configure.status.lineno -mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs -CONFIG_HEADER = config.h -CONFIG_CLEAN_FILES = omp.h omp_lib.h omp_lib.f90 libgomp_f.h \ - libgomp.spec -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; -am__installdirs = "$(DESTDIR)$(toolexeclibdir)" "$(DESTDIR)$(infodir)" \ - "$(DESTDIR)$(fincludedir)" "$(DESTDIR)$(libsubincludedir)" \ - "$(DESTDIR)$(toolexeclibdir)" -toolexeclibLTLIBRARIES_INSTALL = $(INSTALL) -LTLIBRARIES = $(toolexeclib_LTLIBRARIES) -libgomp_la_LIBADD = -am_libgomp_la_OBJECTS = alloc.lo barrier.lo critical.lo env.lo \ - error.lo iter.lo loop.lo ordered.lo parallel.lo sections.lo \ - single.lo team.lo work.lo lock.lo mutex.lo proc.lo sem.lo \ - bar.lo time.lo fortran.lo -libgomp_la_OBJECTS = $(am_libgomp_la_OBJECTS) -DEFAULT_INCLUDES = -I. -I$(srcdir) -I. -depcomp = $(SHELL) $(top_srcdir)/../depcomp -am__depfiles_maybe = depfiles -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -SOURCES = $(libgomp_la_SOURCES) -DIST_SOURCES = $(libgomp_la_SOURCES) -MULTISRCTOP = -MULTIBUILDTOP = -MULTIDIRS = -MULTISUBDIR = -MULTIDO = true -MULTICLEAN = true -INFO_DEPS = libgomp.info -am__TEXINFO_TEX_DIR = $(srcdir)/../gcc/doc/include -DVIS = libgomp.dvi -PDFS = libgomp.pdf -PSS = libgomp.ps -HTMLS = libgomp.html -TEXINFOS = libgomp.texi -TEXI2DVI = texi2dvi -TEXI2PDF = $(TEXI2DVI) --pdf --batch -MAKEINFOHTML = $(MAKEINFO) --html -AM_MAKEINFOHTMLFLAGS = $(AM_MAKEINFOFLAGS) -DVIPS = dvips -RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ - html-recursive info-recursive install-data-recursive \ - install-exec-recursive install-info-recursive \ - install-recursive installcheck-recursive installdirs-recursive \ - pdf-recursive ps-recursive uninstall-info-recursive \ - uninstall-recursive -nodist_fincludeHEADERS_INSTALL = $(INSTALL_HEADER) -nodist_libsubincludeHEADERS_INSTALL = $(INSTALL_HEADER) -nodist_toolexeclibHEADERS_INSTALL = $(INSTALL_HEADER) -HEADERS = $(nodist_finclude_HEADERS) $(nodist_libsubinclude_HEADERS) \ - $(nodist_noinst_HEADERS) $(nodist_toolexeclib_HEADERS) -ETAGS = etags -CTAGS = ctags -DIST_SUBDIRS = $(SUBDIRS) -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -distdir = $(PACKAGE)-$(VERSION) -top_distdir = $(distdir) -am__remove_distdir = \ - { test ! -d $(distdir) \ - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -fr $(distdir); }; } -DIST_ARCHIVES = $(distdir).tar.gz -GZIP_ENV = --best -distuninstallcheck_listfiles = find . -type f -print -distcleancheck_listfiles = find . -type f -print -VPATH = $(subst $(space),:,$(strip $(search_path))) -ACLOCAL = @ACLOCAL@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -BUILD_INFO_FALSE = @BUILD_INFO_FALSE@ -BUILD_INFO_TRUE = @BUILD_INFO_TRUE@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FC = @FC@ -FCFLAGS = @FCFLAGS@ -GENINSRC_FALSE = @GENINSRC_FALSE@ -GENINSRC_TRUE = @GENINSRC_TRUE@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE = @LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@ -LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE = @LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAINT = @MAINT@ -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ -MAKEINFO = @MAKEINFO@ -OBJEXT = @OBJEXT@ -OMP_LOCK_ALIGN = @OMP_LOCK_ALIGN@ -OMP_LOCK_KIND = @OMP_LOCK_KIND@ -OMP_LOCK_SIZE = @OMP_LOCK_SIZE@ -OMP_NEST_LOCK_ALIGN = @OMP_NEST_LOCK_ALIGN@ -OMP_NEST_LOCK_KIND = @OMP_NEST_LOCK_KIND@ -OMP_NEST_LOCK_SIZE = @OMP_NEST_LOCK_SIZE@ -OPT_LDFLAGS = @OPT_LDFLAGS@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PERL = @PERL@ -RANLIB = @RANLIB@ -SECTION_LDFLAGS = @SECTION_LDFLAGS@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -USE_FORTRAN_FALSE = @USE_FORTRAN_FALSE@ -USE_FORTRAN_TRUE = @USE_FORTRAN_TRUE@ -VERSION = @VERSION@ -XCFLAGS = @XCFLAGS@ -XLDFLAGS = @XLDFLAGS@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_FC = @ac_ct_FC@ -ac_ct_RANLIB = @ac_ct_RANLIB@ -ac_ct_STRIP = @ac_ct_STRIP@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -config_path = @config_path@ -datadir = @datadir@ -enable_shared = @enable_shared@ -enable_static = @enable_static@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -libtool_VERSION = @libtool_VERSION@ -link_gomp = @link_gomp@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -multi_basedir = @multi_basedir@ -oldincludedir = @oldincludedir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target = @target@ -target_alias = @target_alias@ -target_cpu = @target_cpu@ -target_os = @target_os@ -target_vendor = @target_vendor@ -toolexecdir = @toolexecdir@ -toolexeclibdir = @toolexeclibdir@ -ACLOCAL_AMFLAGS = -I ../config -SUBDIRS = testsuite -gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER) -search_path = $(addprefix $(top_srcdir)/config/, $(config_path)) $(top_srcdir) -fincludedir = $(libdir)/gcc/$(target_alias)/$(gcc_version)/finclude -libsubincludedir = $(libdir)/gcc/$(target_alias)/$(gcc_version)/include -empty = -space = $(empty) $(empty) -AM_CPPFLAGS = $(addprefix -I, $(search_path)) -AM_CFLAGS = $(XCFLAGS) -AM_LDFLAGS = $(XLDFLAGS) $(SECTION_LDFLAGS) $(OPT_LDFLAGS) -toolexeclib_LTLIBRARIES = libgomp.la -nodist_toolexeclib_HEADERS = libgomp.spec -@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@libgomp_version_script = -@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@libgomp_version_script = -Wl,--version-script,$(top_srcdir)/libgomp.map -libgomp_version_info = -version-info $(libtool_VERSION) -libgomp_la_LDFLAGS = $(libgomp_version_info) $(libgomp_version_script) -libgomp_la_SOURCES = alloc.c barrier.c critical.c env.c error.c iter.c \ - loop.c ordered.c parallel.c sections.c single.c team.c work.c \ - lock.c mutex.c proc.c sem.c bar.c time.c fortran.c - -nodist_noinst_HEADERS = libgomp_f.h -nodist_libsubinclude_HEADERS = omp.h -@USE_FORTRAN_TRUE@nodist_finclude_HEADERS = omp_lib.h omp_lib.f90 omp_lib.mod omp_lib_kinds.mod - -# Automake Documentation: -# If your package has Texinfo files in many directories, you can use the -# variable TEXINFO_TEX to tell Automake where to find the canonical -# `texinfo.tex' for your package. The value of this variable should be -# the relative path from the current `Makefile.am' to `texinfo.tex'. -TEXINFO_TEX = ../gcc/doc/include/texinfo.tex - -# Defines info, dvi, pdf and html targets -MAKEINFOFLAGS = -I $(srcdir)/../gcc/doc/include -info_TEXINFOS = libgomp.texi -@GENINSRC_FALSE@STAMP_GENINSRC = - -# AM_CONDITIONAL on configure option --generated-files-in-srcdir -@GENINSRC_TRUE@STAMP_GENINSRC = stamp-geninsrc -@BUILD_INFO_FALSE@STAMP_BUILD_INFO = - -# AM_CONDITIONAL on configure check ACX_CHECK_PROG_VER([MAKEINFO]) -@BUILD_INFO_TRUE@STAMP_BUILD_INFO = stamp-build-info -CLEANFILES = $(STAMP_GENINSRC) $(STAMP_BUILD_INFO) libgomp.info -MAINTAINERCLEANFILES = $(srcdir)/libgomp.info -all: config.h - $(MAKE) $(AM_MAKEFLAGS) all-recursive - -.SUFFIXES: -.SUFFIXES: .c .dvi .lo .o .obj .ps -am--refresh: - @: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \ - cd $(srcdir) && $(AUTOMAKE) --foreign \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --foreign Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - echo ' $(SHELL) ./config.status'; \ - $(SHELL) ./config.status;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(srcdir) && $(AUTOCONF) -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) - -config.h: stamp-h1 - @if test ! -f $@; then \ - rm -f stamp-h1; \ - $(MAKE) stamp-h1; \ - else :; fi - -stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status - @rm -f stamp-h1 - cd $(top_builddir) && $(SHELL) ./config.status config.h -$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_srcdir) && $(AUTOHEADER) - rm -f stamp-h1 - touch $@ - -distclean-hdr: - -rm -f config.h stamp-h1 -omp.h: $(top_builddir)/config.status $(srcdir)/omp.h.in - cd $(top_builddir) && $(SHELL) ./config.status $@ -omp_lib.h: $(top_builddir)/config.status $(srcdir)/omp_lib.h.in - cd $(top_builddir) && $(SHELL) ./config.status $@ -omp_lib.f90: $(top_builddir)/config.status $(srcdir)/omp_lib.f90.in - cd $(top_builddir) && $(SHELL) ./config.status $@ -libgomp_f.h: $(top_builddir)/config.status $(srcdir)/libgomp_f.h.in - cd $(top_builddir) && $(SHELL) ./config.status $@ -libgomp.spec: $(top_builddir)/config.status $(srcdir)/libgomp.spec.in - cd $(top_builddir) && $(SHELL) ./config.status $@ -install-toolexeclibLTLIBRARIES: $(toolexeclib_LTLIBRARIES) - @$(NORMAL_INSTALL) - test -z "$(toolexeclibdir)" || $(mkdir_p) "$(DESTDIR)$(toolexeclibdir)" - @list='$(toolexeclib_LTLIBRARIES)'; for p in $$list; do \ - if test -f $$p; then \ - f=$(am__strip_dir) \ - echo " $(LIBTOOL) --mode=install $(toolexeclibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(toolexeclibdir)/$$f'"; \ - $(LIBTOOL) --mode=install $(toolexeclibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(toolexeclibdir)/$$f"; \ - else :; fi; \ - done - -uninstall-toolexeclibLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @set -x; list='$(toolexeclib_LTLIBRARIES)'; for p in $$list; do \ - p=$(am__strip_dir) \ - echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(toolexeclibdir)/$$p'"; \ - $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(toolexeclibdir)/$$p"; \ - done - -clean-toolexeclibLTLIBRARIES: - -test -z "$(toolexeclib_LTLIBRARIES)" || rm -f $(toolexeclib_LTLIBRARIES) - @list='$(toolexeclib_LTLIBRARIES)'; for p in $$list; do \ - dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ - test "$$dir" != "$$p" || dir=.; \ - echo "rm -f \"$${dir}/so_locations\""; \ - rm -f "$${dir}/so_locations"; \ - done -libgomp.la: $(libgomp_la_OBJECTS) $(libgomp_la_DEPENDENCIES) - $(LINK) -rpath $(toolexeclibdir) $(libgomp_la_LDFLAGS) $(libgomp_la_OBJECTS) $(libgomp_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/alloc.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bar.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/barrier.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/critical.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/env.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/error.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fortran.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iter.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lock.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/loop.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mutex.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ordered.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/parallel.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/proc.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sections.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sem.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/single.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/team.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/time.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/work.Plo@am__quote@ - -.c.o: -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c $< - -.c.obj: -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool - -# GNU Make needs to see an explicit $(MAKE) variable in the command it -# runs to enable its job server during parallel builds. Hence the -# comments below. -all-multi: - $(MULTIDO) $(AM_MAKEFLAGS) DO=all multi-do # $(MAKE) -install-multi: - $(MULTIDO) $(AM_MAKEFLAGS) DO=install multi-do # $(MAKE) - -mostlyclean-multi: - $(MULTICLEAN) $(AM_MAKEFLAGS) DO=mostlyclean multi-clean # $(MAKE) -clean-multi: - $(MULTICLEAN) $(AM_MAKEFLAGS) DO=clean multi-clean # $(MAKE) -distclean-multi: - $(MULTICLEAN) $(AM_MAKEFLAGS) DO=distclean multi-clean # $(MAKE) -maintainer-clean-multi: - $(MULTICLEAN) $(AM_MAKEFLAGS) DO=maintainer-clean multi-clean # $(MAKE) - -libgomp.dvi: libgomp.texi - TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \ - MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir)' \ - $(TEXI2DVI) -o $@ `test -f 'libgomp.texi' || echo '$(srcdir)/'`libgomp.texi - -libgomp.pdf: libgomp.texi - TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \ - MAKEINFO='$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir)' \ - $(TEXI2PDF) -o $@ `test -f 'libgomp.texi' || echo '$(srcdir)/'`libgomp.texi - -libgomp.html: libgomp.texi - rm -rf $(@:.html=.htp) - if $(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) \ - -o $(@:.html=.htp) `test -f 'libgomp.texi' || echo '$(srcdir)/'`libgomp.texi; \ - then \ - rm -rf $@; \ - if test ! -d $(@:.html=.htp) && test -d $(@:.html=); then \ - mv $(@:.html=) $@; else mv $(@:.html=.htp) $@; fi; \ - else \ - if test ! -d $(@:.html=.htp) && test -d $(@:.html=); then \ - rm -rf $(@:.html=); else rm -Rf $(@:.html=.htp) $@; fi; \ - exit 1; \ - fi -.dvi.ps: - TEXINPUTS="$(am__TEXINFO_TEX_DIR)$(PATH_SEPARATOR)$$TEXINPUTS" \ - $(DVIPS) -o $@ $< - -uninstall-info-am: - @$(PRE_UNINSTALL) - @if (install-info --version && \ - install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then \ - list='$(INFO_DEPS)'; \ - for file in $$list; do \ - relfile=`echo "$$file" | sed 's|^.*/||'`; \ - echo " install-info --info-dir='$(DESTDIR)$(infodir)' --remove '$(DESTDIR)$(infodir)/$$relfile'"; \ - install-info --info-dir="$(DESTDIR)$(infodir)" --remove "$(DESTDIR)$(infodir)/$$relfile"; \ - done; \ - else :; fi - @$(NORMAL_UNINSTALL) - @list='$(INFO_DEPS)'; \ - for file in $$list; do \ - relfile=`echo "$$file" | sed 's|^.*/||'`; \ - relfile_i=`echo "$$relfile" | sed 's|\.info$$||;s|$$|.i|'`; \ - (if cd "$(DESTDIR)$(infodir)"; then \ - echo " cd '$(DESTDIR)$(infodir)' && rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]"; \ - rm -f $$relfile $$relfile-[0-9] $$relfile-[0-9][0-9] $$relfile_i[0-9] $$relfile_i[0-9][0-9]; \ - else :; fi); \ - done - -dist-info: $(INFO_DEPS) - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - list='$(INFO_DEPS)'; \ - for base in $$list; do \ - case $$base in \ - $(srcdir)/*) base=`echo "$$base" | sed "s|^$$srcdirstrip/||"`;; \ - esac; \ - if test -f $$base; then d=.; else d=$(srcdir); fi; \ - for file in $$d/$$base*; do \ - relfile=`expr "$$file" : "$$d/\(.*\)"`; \ - test -f $(distdir)/$$relfile || \ - cp -p $$file $(distdir)/$$relfile; \ - done; \ - done - -mostlyclean-aminfo: - -rm -rf libgomp.aux libgomp.cp libgomp.cps libgomp.fn libgomp.fns libgomp.ky \ - libgomp.kys libgomp.log libgomp.pg libgomp.pgs libgomp.tmp \ - libgomp.toc libgomp.tp libgomp.tps libgomp.vr libgomp.vrs \ - libgomp.dvi libgomp.pdf libgomp.ps libgomp.html - -maintainer-clean-aminfo: - @list='$(INFO_DEPS)'; for i in $$list; do \ - i_i=`echo "$$i" | sed 's|\.info$$||;s|$$|.i|'`; \ - echo " rm -f $$i $$i-[0-9] $$i-[0-9][0-9] $$i_i[0-9] $$i_i[0-9][0-9]"; \ - rm -f $$i $$i-[0-9] $$i-[0-9][0-9] $$i_i[0-9] $$i_i[0-9][0-9]; \ - done -install-nodist_fincludeHEADERS: $(nodist_finclude_HEADERS) - @$(NORMAL_INSTALL) - test -z "$(fincludedir)" || $(mkdir_p) "$(DESTDIR)$(fincludedir)" - @list='$(nodist_finclude_HEADERS)'; for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(nodist_fincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(fincludedir)/$$f'"; \ - $(nodist_fincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(fincludedir)/$$f"; \ - done - -uninstall-nodist_fincludeHEADERS: - @$(NORMAL_UNINSTALL) - @list='$(nodist_finclude_HEADERS)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(fincludedir)/$$f'"; \ - rm -f "$(DESTDIR)$(fincludedir)/$$f"; \ - done -install-nodist_libsubincludeHEADERS: $(nodist_libsubinclude_HEADERS) - @$(NORMAL_INSTALL) - test -z "$(libsubincludedir)" || $(mkdir_p) "$(DESTDIR)$(libsubincludedir)" - @list='$(nodist_libsubinclude_HEADERS)'; for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(nodist_libsubincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(libsubincludedir)/$$f'"; \ - $(nodist_libsubincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(libsubincludedir)/$$f"; \ - done - -uninstall-nodist_libsubincludeHEADERS: - @$(NORMAL_UNINSTALL) - @list='$(nodist_libsubinclude_HEADERS)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(libsubincludedir)/$$f'"; \ - rm -f "$(DESTDIR)$(libsubincludedir)/$$f"; \ - done -install-nodist_toolexeclibHEADERS: $(nodist_toolexeclib_HEADERS) - @$(NORMAL_INSTALL) - test -z "$(toolexeclibdir)" || $(mkdir_p) "$(DESTDIR)$(toolexeclibdir)" - @list='$(nodist_toolexeclib_HEADERS)'; for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(am__strip_dir) \ - echo " $(nodist_toolexeclibHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(toolexeclibdir)/$$f'"; \ - $(nodist_toolexeclibHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(toolexeclibdir)/$$f"; \ - done - -uninstall-nodist_toolexeclibHEADERS: - @$(NORMAL_UNINSTALL) - @list='$(nodist_toolexeclib_HEADERS)'; for p in $$list; do \ - f=$(am__strip_dir) \ - echo " rm -f '$(DESTDIR)$(toolexeclibdir)/$$f'"; \ - rm -f "$(DESTDIR)$(toolexeclibdir)/$$f"; \ - done - -# This directory's subdirectories are mostly independent; you can cd -# into them and run `make' without going through this Makefile. -# To change the values of `make' variables: instead of editing Makefiles, -# (1) if the variable is set in `config.status', edit `config.status' -# (which will cause the Makefiles to be regenerated when you run `make'); -# (2) otherwise, pass the desired values on the `make' command line. -$(RECURSIVE_TARGETS): - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - target=`echo $@ | sed s/-recursive//`; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - dot_seen=yes; \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done; \ - if test "$$dot_seen" = "no"; then \ - $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ - fi; test -z "$$fail" - -mostlyclean-recursive clean-recursive distclean-recursive \ -maintainer-clean-recursive: - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - case "$@" in \ - distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ - *) list='$(SUBDIRS)' ;; \ - esac; \ - rev=''; for subdir in $$list; do \ - if test "$$subdir" = "."; then :; else \ - rev="$$subdir $$rev"; \ - fi; \ - done; \ - rev="$$rev ."; \ - target=`echo $@ | sed s/-recursive//`; \ - for subdir in $$rev; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done && test -z "$$fail" -tags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ - done -ctags-recursive: - list='$(SUBDIRS)'; for subdir in $$list; do \ - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ - done - -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - mkid -fID $$unique -tags: TAGS - -TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ - include_option=--etags-include; \ - empty_fix=.; \ - else \ - include_option=--include; \ - empty_fix=; \ - fi; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test ! -f $$subdir/TAGS || \ - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ - fi; \ - done; \ - list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ - test -n "$$unique" || unique=$$empty_fix; \ - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique; \ - fi -ctags: CTAGS -CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ - $(TAGS_FILES) $(LISP) - tags=; \ - here=`pwd`; \ - list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ - unique=`for i in $$list; do \ - if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ - done | \ - $(AWK) ' { files[$$0] = 1; } \ - END { for (i in files) print i; }'`; \ - test -z "$(CTAGS_ARGS)$$tags$$unique" \ - || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ - $$tags $$unique - -GTAGS: - here=`$(am__cd) $(top_builddir) && pwd` \ - && cd $(top_srcdir) \ - && gtags -i $(GTAGS_ARGS) $$here - -distclean-tags: - -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - -distdir: $(DISTFILES) - $(am__remove_distdir) - mkdir $(distdir) - $(mkdir_p) $(distdir)/. $(distdir)/.. $(distdir)/../config - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ - if test "$$subdir" = .; then :; else \ - test -d "$(distdir)/$$subdir" \ - || $(mkdir_p) "$(distdir)/$$subdir" \ - || exit 1; \ - distdir=`$(am__cd) $(distdir) && pwd`; \ - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ - (cd $$subdir && \ - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$$top_distdir" \ - distdir="$$distdir/$$subdir" \ - distdir) \ - || exit 1; \ - fi; \ - done - $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$(top_distdir)" distdir="$(distdir)" \ - dist-info - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ - ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ - ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ - || chmod -R a+r $(distdir) -dist-gzip: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -dist-bzip2: distdir - tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 - $(am__remove_distdir) - -dist-tarZ: distdir - tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z - $(am__remove_distdir) - -dist-shar: distdir - shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz - $(am__remove_distdir) - -dist-zip: distdir - -rm -f $(distdir).zip - zip -rq $(distdir).zip $(distdir) - $(am__remove_distdir) - -dist dist-all: distdir - tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(am__remove_distdir) - -# This target untars the dist file and tries a VPATH configuration. Then -# it guarantees that the distribution is self-contained by making another -# tarfile. -distcheck: dist - case '$(DIST_ARCHIVES)' in \ - *.tar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ - *.tar.bz2*) \ - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ - *.tar.Z*) \ - uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ - *.shar.gz*) \ - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ - *.zip*) \ - unzip $(distdir).zip ;;\ - esac - chmod -R a-w $(distdir); chmod a+w $(distdir) - mkdir $(distdir)/_build - mkdir $(distdir)/_inst - chmod a-w $(distdir) - dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ - && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ - && cd $(distdir)/_build \ - && ../configure --srcdir=.. --prefix="$$dc_install_base" \ - $(DISTCHECK_CONFIGURE_FLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) dvi \ - && $(MAKE) $(AM_MAKEFLAGS) check \ - && $(MAKE) $(AM_MAKEFLAGS) install \ - && $(MAKE) $(AM_MAKEFLAGS) installcheck \ - && $(MAKE) $(AM_MAKEFLAGS) uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ - distuninstallcheck \ - && chmod -R a-w "$$dc_install_base" \ - && ({ \ - (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ - && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ - distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ - } || { rm -rf "$$dc_destdir"; exit 1; }) \ - && rm -rf "$$dc_destdir" \ - && $(MAKE) $(AM_MAKEFLAGS) dist \ - && rm -rf $(DIST_ARCHIVES) \ - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck - $(am__remove_distdir) - @(echo "$(distdir) archives ready for distribution: "; \ - list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ - sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}' -distuninstallcheck: - @cd $(distuninstallcheck_dir) \ - && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ - || { echo "ERROR: files left after uninstall:" ; \ - if test -n "$(DESTDIR)"; then \ - echo " (check DESTDIR support)"; \ - fi ; \ - $(distuninstallcheck_listfiles) ; \ - exit 1; } >&2 -distcleancheck: distclean - @if test '$(srcdir)' = . ; then \ - echo "ERROR: distcleancheck can only run from a VPATH build" ; \ - exit 1 ; \ - fi - @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ - || { echo "ERROR: files left in build directory after distclean:" ; \ - $(distcleancheck_listfiles) ; \ - exit 1; } >&2 -check-am: all-am -check: check-recursive -all-am: Makefile $(INFO_DEPS) $(LTLIBRARIES) all-multi $(HEADERS) \ - config.h all-local -installdirs: installdirs-recursive -installdirs-am: - for dir in "$(DESTDIR)$(toolexeclibdir)" "$(DESTDIR)$(infodir)" "$(DESTDIR)$(fincludedir)" "$(DESTDIR)$(libsubincludedir)" "$(DESTDIR)$(toolexeclibdir)"; do \ - test -z "$$dir" || $(mkdir_p) "$$dir"; \ - done -install: install-recursive -install-exec: install-exec-recursive -install-data: install-data-recursive -uninstall: uninstall-recursive - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-recursive -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." - -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) -clean: clean-multi clean-recursive - -clean-am: clean-generic clean-libtool clean-toolexeclibLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-multi distclean-recursive - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf ./$(DEPDIR) - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-hdr distclean-libtool distclean-tags - -dvi: dvi-recursive - -dvi-am: $(DVIS) - -html: html-recursive - -html-am: $(HTMLS) - -info: info-recursive - -info-am: $(INFO_DEPS) - -install-data-am: install-info-am install-nodist_fincludeHEADERS \ - install-nodist_libsubincludeHEADERS - -install-exec-am: install-multi install-nodist_toolexeclibHEADERS \ - install-toolexeclibLTLIBRARIES - -install-info: install-info-recursive - -install-info-am: $(INFO_DEPS) - @$(NORMAL_INSTALL) - test -z "$(infodir)" || $(mkdir_p) "$(DESTDIR)$(infodir)" - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - list='$(INFO_DEPS)'; \ - for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - esac; \ - if test -f $$file; then d=.; else d=$(srcdir); fi; \ - file_i=`echo "$$file" | sed 's|\.info$$||;s|$$|.i|'`; \ - for ifile in $$d/$$file $$d/$$file-[0-9] $$d/$$file-[0-9][0-9] \ - $$d/$$file_i[0-9] $$d/$$file_i[0-9][0-9] ; do \ - if test -f $$ifile; then \ - relfile=`echo "$$ifile" | sed 's|^.*/||'`; \ - echo " $(INSTALL_DATA) '$$ifile' '$(DESTDIR)$(infodir)/$$relfile'"; \ - $(INSTALL_DATA) "$$ifile" "$(DESTDIR)$(infodir)/$$relfile"; \ - else : ; fi; \ - done; \ - done - @$(POST_INSTALL) - @if (install-info --version && \ - install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then \ - list='$(INFO_DEPS)'; \ - for file in $$list; do \ - relfile=`echo "$$file" | sed 's|^.*/||'`; \ - echo " install-info --info-dir='$(DESTDIR)$(infodir)' '$(DESTDIR)$(infodir)/$$relfile'";\ - install-info --info-dir="$(DESTDIR)$(infodir)" "$(DESTDIR)$(infodir)/$$relfile" || :;\ - done; \ - else : ; fi -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-multi maintainer-clean-recursive - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -rf $(top_srcdir)/autom4te.cache - -rm -rf ./$(DEPDIR) - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-aminfo \ - maintainer-clean-generic - -mostlyclean: mostlyclean-multi mostlyclean-recursive - -mostlyclean-am: mostlyclean-aminfo mostlyclean-compile \ - mostlyclean-generic mostlyclean-libtool - -pdf: pdf-recursive - -pdf-am: $(PDFS) - -ps: ps-recursive - -ps-am: $(PSS) - -uninstall-am: uninstall-info-am uninstall-nodist_fincludeHEADERS \ - uninstall-nodist_libsubincludeHEADERS \ - uninstall-nodist_toolexeclibHEADERS \ - uninstall-toolexeclibLTLIBRARIES - -uninstall-info: uninstall-info-recursive - -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am all-local \ - all-multi am--refresh check check-am clean clean-generic \ - clean-libtool clean-multi clean-recursive \ - clean-toolexeclibLTLIBRARIES ctags ctags-recursive dist \ - dist-all dist-bzip2 dist-gzip dist-info dist-shar dist-tarZ \ - dist-zip distcheck distclean distclean-compile \ - distclean-generic distclean-hdr distclean-libtool \ - distclean-multi distclean-recursive distclean-tags \ - distcleancheck distdir distuninstallcheck dvi dvi-am html \ - html-am info info-am install install-am install-data \ - install-data-am install-exec install-exec-am install-info \ - install-info-am install-man install-multi \ - install-nodist_fincludeHEADERS \ - install-nodist_libsubincludeHEADERS \ - install-nodist_toolexeclibHEADERS install-strip \ - install-toolexeclibLTLIBRARIES installcheck installcheck-am \ - installdirs installdirs-am maintainer-clean \ - maintainer-clean-aminfo maintainer-clean-generic \ - maintainer-clean-multi maintainer-clean-recursive mostlyclean \ - mostlyclean-aminfo mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool mostlyclean-multi mostlyclean-recursive \ - pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ - uninstall-info-am uninstall-nodist_fincludeHEADERS \ - uninstall-nodist_libsubincludeHEADERS \ - uninstall-nodist_toolexeclibHEADERS \ - uninstall-toolexeclibLTLIBRARIES - - -omp_lib_kinds.mod: omp_lib.mod - : -omp_lib.mod: omp_lib.f90 - $(FC) $(FCFLAGS) -fsyntax-only omp_lib.f90 -fortran.lo: libgomp_f.h -fortran.o: libgomp_f.h -env.lo: libgomp_f.h -env.o: libgomp_f.h - -# No install-html target -.PHONY: install-html -install-html: - -all-local: $(STAMP_GENINSRC) - -stamp-geninsrc: libgomp.info - cp -p $(top_builddir)/libgomp.info $(srcdir)/libgomp.info - @touch $@ - -libgomp.info: $(STAMP_BUILD_INFO) - -stamp-build-info: libgomp.texi - $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -o libgomp.info $(srcdir)/libgomp.texi - @touch $@ -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/gcc-4.2.1-5666.3/libgomp/acinclude.m4 b/gcc-4.2.1-5666.3/libgomp/acinclude.m4 deleted file mode 100644 index acf47dfe3..000000000 --- a/gcc-4.2.1-5666.3/libgomp/acinclude.m4 +++ /dev/null @@ -1,303 +0,0 @@ -dnl ---------------------------------------------------------------------- -dnl This whole bit snagged from libgfortran. - -dnl Check whether the target supports __sync_*_compare_and_swap. -AC_DEFUN([LIBGOMP_CHECK_SYNC_BUILTINS], [ - AC_CACHE_CHECK([whether the target supports __sync_*_compare_and_swap], - have_sync_builtins, [ - AC_TRY_LINK([], [int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);], - have_sync_builtins=yes, have_sync_builtins=no)]) - if test $have_sync_builtins = yes; then - AC_DEFINE(HAVE_SYNC_BUILTINS, 1, - [Define to 1 if the target supports __sync_*_compare_and_swap]) - fi]) - -dnl Check whether the target supports hidden visibility. -AC_DEFUN([LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY], [ - AC_CACHE_CHECK([whether the target supports hidden visibility], - have_attribute_visibility, [ - save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -Werror" - AC_TRY_COMPILE([void __attribute__((visibility("hidden"))) foo(void) { }], - [], have_attribute_visibility=yes, - have_attribute_visibility=no) - CFLAGS="$save_CFLAGS"]) - if test $have_attribute_visibility = yes; then - AC_DEFINE(HAVE_ATTRIBUTE_VISIBILITY, 1, - [Define to 1 if the target supports __attribute__((visibility(...))).]) - fi]) - -dnl Check whether the target supports dllexport -AC_DEFUN([LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT], [ - AC_CACHE_CHECK([whether the target supports dllexport], - have_attribute_dllexport, [ - save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -Werror" - AC_TRY_COMPILE([void __attribute__((dllexport)) foo(void) { }], - [], have_attribute_dllexport=yes, - have_attribute_dllexport=no) - CFLAGS="$save_CFLAGS"]) - if test $have_attribute_dllexport = yes; then - AC_DEFINE(HAVE_ATTRIBUTE_DLLEXPORT, 1, - [Define to 1 if the target supports __attribute__((dllexport)).]) - fi]) - -dnl Check whether the target supports symbol aliases. -AC_DEFUN([LIBGOMP_CHECK_ATTRIBUTE_ALIAS], [ - AC_CACHE_CHECK([whether the target supports symbol aliases], - have_attribute_alias, [ - AC_TRY_LINK([ -void foo(void) { } -extern void bar(void) __attribute__((alias("foo")));], - [bar();], have_attribute_alias=yes, have_attribute_alias=no)]) - if test $have_attribute_alias = yes; then - AC_DEFINE(HAVE_ATTRIBUTE_ALIAS, 1, - [Define to 1 if the target supports __attribute__((alias(...))).]) - fi]) - -sinclude(../libtool.m4) -dnl The lines below arrange for aclocal not to bring an installed -dnl libtool.m4 into aclocal.m4, while still arranging for automake to -dnl add a definition of LIBTOOL to Makefile.in. -ifelse(,,,[AC_SUBST(LIBTOOL) -AC_DEFUN([AM_PROG_LIBTOOL]) -AC_DEFUN([AC_LIBTOOL_DLOPEN]) -AC_DEFUN([AC_PROG_LD]) -]) - -dnl ---------------------------------------------------------------------- -dnl This whole bit snagged from libstdc++-v3. - -dnl -dnl LIBGOMP_ENABLE -dnl (FEATURE, DEFAULT, HELP-ARG, HELP-STRING) -dnl (FEATURE, DEFAULT, HELP-ARG, HELP-STRING, permit a|b|c) -dnl (FEATURE, DEFAULT, HELP-ARG, HELP-STRING, SHELL-CODE-HANDLER) -dnl -dnl See docs/html/17_intro/configury.html#enable for documentation. -dnl -m4_define([LIBGOMP_ENABLE],[dnl -m4_define([_g_switch],[--enable-$1])dnl -m4_define([_g_help],[AC_HELP_STRING(_g_switch$3,[$4 @<:@default=$2@:>@])])dnl - AC_ARG_ENABLE($1,_g_help, - m4_bmatch([$5], - [^permit ], - [[ - case "$enableval" in - m4_bpatsubst([$5],[permit ])) ;; - *) AC_MSG_ERROR(Unknown argument to enable/disable $1) ;; - dnl Idea for future: generate a URL pointing to - dnl "onlinedocs/configopts.html#whatever" - esac - ]], - [^$], - [[ - case "$enableval" in - yes|no) ;; - *) AC_MSG_ERROR(Argument to enable/disable $1 must be yes or no) ;; - esac - ]], - [[$5]]), - [enable_]m4_bpatsubst([$1],-,_)[=][$2]) -m4_undefine([_g_switch])dnl -m4_undefine([_g_help])dnl -]) - - -dnl -dnl If GNU ld is in use, check to see if tricky linker opts can be used. If -dnl the native linker is in use, all variables will be defined to something -dnl safe (like an empty string). -dnl -dnl Defines: -dnl SECTION_LDFLAGS='-Wl,--gc-sections' if possible -dnl OPT_LDFLAGS='-Wl,-O1' if possible -dnl LD (as a side effect of testing) -dnl Sets: -dnl with_gnu_ld -dnl libgomp_gnu_ld_version (possibly) -dnl -dnl The last will be a single integer, e.g., version 1.23.45.0.67.89 will -dnl set libgomp_gnu_ld_version to 12345. Zeros cause problems. -dnl -AC_DEFUN([LIBGOMP_CHECK_LINKER_FEATURES], [ - # If we're not using GNU ld, then there's no point in even trying these - # tests. Check for that first. We should have already tested for gld - # by now (in libtool), but require it now just to be safe... - test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS='' - test -z "$OPT_LDFLAGS" && OPT_LDFLAGS='' - AC_REQUIRE([AC_PROG_LD]) - AC_REQUIRE([AC_PROG_AWK]) - - # The name set by libtool depends on the version of libtool. Shame on us - # for depending on an impl detail, but c'est la vie. Older versions used - # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on - # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually - # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't - # set (hence we're using an older libtool), then set it. - if test x${with_gnu_ld+set} != xset; then - if test x${ac_cv_prog_gnu_ld+set} != xset; then - # We got through "ac_require(ac_prog_ld)" and still not set? Huh? - with_gnu_ld=no - else - with_gnu_ld=$ac_cv_prog_gnu_ld - fi - fi - - # Start by getting the version number. I think the libtool test already - # does some of this, but throws away the result. - changequote(,) - ldver=`$LD --version 2>/dev/null | head -1 | \ - sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` - changequote([,]) - libgomp_gnu_ld_version=`echo $ldver | \ - $AWK -F. '{ if (NF<3) [$]3=0; print ([$]1*100+[$]2)*100+[$]3 }'` - - # Set --gc-sections. - if test "$with_gnu_ld" = "notbroken"; then - # GNU ld it is! Joy and bunny rabbits! - - # All these tests are for C++; save the language and the compiler flags. - # Need to do this so that g++ won't try to link in libstdc++ - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS='-x c++ -Wl,--gc-sections' - - # Check for -Wl,--gc-sections - # XXX This test is broken at the moment, as symbols required for linking - # are now in libsupc++ (not built yet). In addition, this test has - # cored on solaris in the past. In addition, --gc-sections doesn't - # really work at the moment (keeps on discarding used sections, first - # .eh_frame and now some of the glibc sections for iconv). - # Bzzzzt. Thanks for playing, maybe next time. - AC_MSG_CHECKING([for ld that supports -Wl,--gc-sections]) - AC_TRY_RUN([ - int main(void) - { - try { throw 1; } - catch (...) { }; - return 0; - } - ], [ac_sectionLDflags=yes],[ac_sectionLDflags=no], [ac_sectionLDflags=yes]) - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - else - # this is the suspicious part - CFLAGS='' - fi - if test "$ac_sectionLDflags" = "yes"; then - SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" - fi - AC_MSG_RESULT($ac_sectionLDflags) - fi - - # Set linker optimization flags. - if test x"$with_gnu_ld" = x"yes"; then - OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" - fi - - AC_SUBST(SECTION_LDFLAGS) - AC_SUBST(OPT_LDFLAGS) -]) - - -dnl -dnl Add version tags to symbols in shared library (or not), additionally -dnl marking other symbols as private/local (or not). -dnl -dnl --enable-symvers=style adds a version script to the linker call when -dnl creating the shared library. The choice of version script is -dnl controlled by 'style'. -dnl --disable-symvers does not. -dnl + Usage: LIBGOMP_ENABLE_SYMVERS[(DEFAULT)] -dnl Where DEFAULT is either 'yes' or 'no'. Passing `yes' tries to -dnl choose a default style based on linker characteristics. Passing -dnl 'no' disables versioning. -dnl -AC_DEFUN([LIBGOMP_ENABLE_SYMVERS], [ - -LIBGOMP_ENABLE(symvers,yes,[=STYLE], - [enables symbol versioning of the shared library], - [permit yes|no|gnu]) - -# If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we -# don't know enough about $LD to do tricks... -AC_REQUIRE([LIBGOMP_CHECK_LINKER_FEATURES]) -# FIXME The following test is too strict, in theory. -if test $enable_shared = no || - test "x$LD" = x || - test x$libgomp_gnu_ld_version = x; then - enable_symvers=no -fi - -# Check to see if libgcc_s exists, indicating that shared libgcc is possible. -if test $enable_symvers != no; then - AC_MSG_CHECKING([for shared libgcc]) - ac_save_CFLAGS="$CFLAGS" - CFLAGS=' -lgcc_s' - AC_TRY_LINK(, [return 0;], libgomp_shared_libgcc=yes, libgomp_shared_libgcc=no) - CFLAGS="$ac_save_CFLAGS" - if test $libgomp_shared_libgcc = no; then - cat > conftest.c <<EOF -int main (void) { return 0; } -EOF -changequote(,)dnl - libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ - -shared -shared-libgcc -o conftest.so \ - conftest.c -v 2>&1 >/dev/null \ - | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'` -changequote([,])dnl - rm -f conftest.c conftest.so - if test x${libgomp_libgcc_s_suffix+set} = xset; then - CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix" - AC_TRY_LINK(, [return 0;], libgomp_shared_libgcc=yes) - CFLAGS="$ac_save_CFLAGS" - fi - fi - AC_MSG_RESULT($libgomp_shared_libgcc) -fi - -# For GNU ld, we need at least this version. The format is described in -# LIBGOMP_CHECK_LINKER_FEATURES above. -libgomp_min_gnu_ld_version=21400 -# XXXXXXXXXXX libgomp_gnu_ld_version=21390 - -# Check to see if unspecified "yes" value can win, given results above. -# Change "yes" into either "no" or a style name. -if test $enable_symvers = yes; then - if test $with_gnu_ld = yes && - test $libgomp_shared_libgcc = yes; - then - if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then - enable_symvers=gnu - else - # The right tools, the right setup, but too old. Fallbacks? - AC_MSG_WARN(=== Linker version $libgomp_gnu_ld_version is too old for) - AC_MSG_WARN(=== full symbol versioning support in this release of GCC.) - AC_MSG_WARN(=== You would need to upgrade your binutils to version) - AC_MSG_WARN(=== $libgomp_min_gnu_ld_version or later and rebuild GCC.) - if test $libgomp_gnu_ld_version -ge 21200 ; then - # Globbing fix is present, proper block support is not. - dnl AC_MSG_WARN([=== Dude, you are soooo close. Maybe we can fake it.]) - dnl enable_symvers=??? - AC_MSG_WARN([=== Symbol versioning will be disabled.]) - enable_symvers=no - else - # 2.11 or older. - AC_MSG_WARN([=== Symbol versioning will be disabled.]) - enable_symvers=no - fi - fi - else - # just fail for now - AC_MSG_WARN([=== You have requested some kind of symbol versioning, but]) - AC_MSG_WARN([=== either you are not using a supported linker, or you are]) - AC_MSG_WARN([=== not building a shared libgcc_s (which is required).]) - AC_MSG_WARN([=== Symbol versioning will be disabled.]) - enable_symvers=no - fi -fi - -AM_CONDITIONAL(LIBGOMP_BUILD_VERSIONED_SHLIB, test $enable_symvers != no) -AC_MSG_NOTICE(versioning on shared library symbols is $enable_symvers) -]) diff --git a/gcc-4.2.1-5666.3/libgomp/aclocal.m4 b/gcc-4.2.1-5666.3/libgomp/aclocal.m4 deleted file mode 100644 index 31c2eec2d..000000000 --- a/gcc-4.2.1-5666.3/libgomp/aclocal.m4 +++ /dev/null @@ -1,866 +0,0 @@ -# generated automatically by aclocal 1.9.6 -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005 Free Software Foundation, Inc. -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_AUTOMAKE_VERSION(VERSION) -# ---------------------------- -# Automake X.Y traces this macro to ensure aclocal.m4 has been -# generated from the m4 files accompanying Automake X.Y. -AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) - -# AM_SET_CURRENT_AUTOMAKE_VERSION -# ------------------------------- -# Call AM_AUTOMAKE_VERSION so it can be traced. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], - [AM_AUTOMAKE_VERSION([1.9.6])]) - -# AM_AUX_DIR_EXPAND -*- Autoconf -*- - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets -# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to -# `$srcdir', `$srcdir/..', or `$srcdir/../..'. -# -# Of course, Automake must honor this variable whenever it calls a -# tool from the auxiliary directory. The problem is that $srcdir (and -# therefore $ac_aux_dir as well) can be either absolute or relative, -# depending on how configure is run. This is pretty annoying, since -# it makes $ac_aux_dir quite unusable in subdirectories: in the top -# source directory, any form will work fine, but in subdirectories a -# relative path needs to be adjusted first. -# -# $ac_aux_dir/missing -# fails when called from a subdirectory if $ac_aux_dir is relative -# $top_srcdir/$ac_aux_dir/missing -# fails if $ac_aux_dir is absolute, -# fails when called from a subdirectory in a VPATH build with -# a relative $ac_aux_dir -# -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir -# are both prefixed by $srcdir. In an in-source build this is usually -# harmless because $srcdir is `.', but things will broke when you -# start a VPATH build or use an absolute $srcdir. -# -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, -# iff we strip the leading $srcdir from $ac_aux_dir. That would be: -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` -# and then we would define $MISSING as -# MISSING="\${SHELL} $am_aux_dir/missing" -# This will work as long as MISSING is not called from configure, because -# unfortunately $(top_srcdir) has no meaning in configure. -# However there are other variables, like CC, which are often used in -# configure, and could therefore not use this "fixed" $ac_aux_dir. -# -# Another solution, used here, is to always expand $ac_aux_dir to an -# absolute PATH. The drawback is that using absolute paths prevent a -# configured tree to be moved without reconfiguration. - -AC_DEFUN([AM_AUX_DIR_EXPAND], -[dnl Rely on autoconf to set up CDPATH properly. -AC_PREREQ([2.50])dnl -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` -]) - -# AM_CONDITIONAL -*- Autoconf -*- - -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 7 - -# AM_CONDITIONAL(NAME, SHELL-CONDITION) -# ------------------------------------- -# Define a conditional. -AC_DEFUN([AM_CONDITIONAL], -[AC_PREREQ(2.52)dnl - ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl -AC_SUBST([$1_TRUE]) -AC_SUBST([$1_FALSE]) -if $2; then - $1_TRUE= - $1_FALSE='#' -else - $1_TRUE='#' - $1_FALSE= -fi -AC_CONFIG_COMMANDS_PRE( -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then - AC_MSG_ERROR([[conditional "$1" was never defined. -Usually this means the macro was only invoked conditionally.]]) -fi])]) - - -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 8 - -# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be -# written in clear, in which case automake, when reading aclocal.m4, -# will think it sees a *use*, and therefore will trigger all it's -# C support machinery. Also note that it means that autoscan, seeing -# CC etc. in the Makefile, will ask for an AC_PROG_CC use... - - -# _AM_DEPENDENCIES(NAME) -# ---------------------- -# See how the compiler implements dependency checking. -# NAME is "CC", "CXX", "GCJ", or "OBJC". -# We try a few techniques and use that to set a single cache variable. -# -# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was -# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular -# dependency, and given that the user is not expected to run this macro, -# just rely on AC_PROG_CC. -AC_DEFUN([_AM_DEPENDENCIES], -[AC_REQUIRE([AM_SET_DEPDIR])dnl -AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl -AC_REQUIRE([AM_MAKE_INCLUDE])dnl -AC_REQUIRE([AM_DEP_TRACK])dnl - -ifelse([$1], CC, [depcc="$CC" am_compiler_list=], - [$1], CXX, [depcc="$CXX" am_compiler_list=], - [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], - [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], - [depcc="$$1" am_compiler_list=]) - -AC_CACHE_CHECK([dependency style of $depcc], - [am_cv_$1_dependencies_compiler_type], -[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_$1_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_$1_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_$1_dependencies_compiler_type=none -fi -]) -AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) -AM_CONDITIONAL([am__fastdep$1], [ - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) -]) - - -# AM_SET_DEPDIR -# ------------- -# Choose a directory name for dependency files. -# This macro is AC_REQUIREd in _AM_DEPENDENCIES -AC_DEFUN([AM_SET_DEPDIR], -[AC_REQUIRE([AM_SET_LEADING_DOT])dnl -AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl -]) - - -# AM_DEP_TRACK -# ------------ -AC_DEFUN([AM_DEP_TRACK], -[AC_ARG_ENABLE(dependency-tracking, -[ --disable-dependency-tracking speeds up one-time build - --enable-dependency-tracking do not reject slow dependency extractors]) -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' -fi -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) -AC_SUBST([AMDEPBACKSLASH]) -]) - -# Generate code to set up dependency tracking. -*- Autoconf -*- - -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -#serial 3 - -# _AM_OUTPUT_DEPENDENCY_COMMANDS -# ------------------------------ -AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], -[for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # So let's grep whole file. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then - dirpart=`AS_DIRNAME("$mf")` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`AS_DIRNAME(["$file"])` - AS_MKDIR_P([$dirpart/$fdir]) - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done -done -])# _AM_OUTPUT_DEPENDENCY_COMMANDS - - -# AM_OUTPUT_DEPENDENCY_COMMANDS -# ----------------------------- -# This macro should only be invoked once -- use via AC_REQUIRE. -# -# This code is only required when automatic dependency tracking -# is enabled. FIXME. This creates each `.P' file that we will -# need in order to bootstrap the dependency handling code. -AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], -[AC_CONFIG_COMMANDS([depfiles], - [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], - [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) -]) - -# Do all the work for Automake. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 12 - -# This macro actually does too much. Some checks are only needed if -# your package does certain things. But this isn't really a big deal. - -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) -# AM_INIT_AUTOMAKE([OPTIONS]) -# ----------------------------------------------- -# The call with PACKAGE and VERSION arguments is the old style -# call (pre autoconf-2.50), which is being phased out. PACKAGE -# and VERSION should now be passed to AC_INIT and removed from -# the call to AM_INIT_AUTOMAKE. -# We support both call styles for the transition. After -# the next Automake release, Autoconf can make the AC_INIT -# arguments mandatory, and then we can depend on a new Autoconf -# release and drop the old call support. -AC_DEFUN([AM_INIT_AUTOMAKE], -[AC_PREREQ([2.58])dnl -dnl Autoconf wants to disallow AM_ names. We explicitly allow -dnl the ones we care about. -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl -AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl -AC_REQUIRE([AC_PROG_INSTALL])dnl -# test to see if srcdir already configured -if test "`cd $srcdir && pwd`" != "`pwd`" && - test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi -AC_SUBST([CYGPATH_W]) - -# Define the identity of the package. -dnl Distinguish between old-style and new-style calls. -m4_ifval([$2], -[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl - AC_SUBST([PACKAGE], [$1])dnl - AC_SUBST([VERSION], [$2])], -[_AM_SET_OPTIONS([$1])dnl - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl - -_AM_IF_OPTION([no-define],, -[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) - AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl - -# Some tools Automake needs. -AC_REQUIRE([AM_SANITY_CHECK])dnl -AC_REQUIRE([AC_ARG_PROGRAM])dnl -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) -AM_MISSING_PROG(AUTOCONF, autoconf) -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) -AM_MISSING_PROG(AUTOHEADER, autoheader) -AM_MISSING_PROG(MAKEINFO, makeinfo) -AM_PROG_INSTALL_SH -AM_PROG_INSTALL_STRIP -AC_REQUIRE([AM_PROG_MKDIR_P])dnl -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -AC_REQUIRE([AC_PROG_AWK])dnl -AC_REQUIRE([AC_PROG_MAKE_SET])dnl -AC_REQUIRE([AM_SET_LEADING_DOT])dnl -_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], - [_AM_PROG_TAR([v7])])]) -_AM_IF_OPTION([no-dependencies],, -[AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES(CC)], - [define([AC_PROG_CC], - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl -AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES(CXX)], - [define([AC_PROG_CXX], - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl -]) -]) - - -# When config.status generates a header, we must update the stamp-h file. -# This file resides in the same directory as the config header -# that is generated. The stamp files are numbered to have different names. - -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the -# loop where config.status creates the headers, so we can generate -# our stamp files there. -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], -[# Compute $1's index in $config_headers. -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $1 | $1:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_SH -# ------------------ -# Define $install_sh. -AC_DEFUN([AM_PROG_INSTALL_SH], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -install_sh=${install_sh-"$am_aux_dir/install-sh"} -AC_SUBST(install_sh)]) - -# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- -# From Jim Meyering - -# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 4 - -AC_DEFUN([AM_MAINTAINER_MODE], -[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) - dnl maintainer-mode is disabled by default - AC_ARG_ENABLE(maintainer-mode, -[ --enable-maintainer-mode enable make rules and dependencies not useful - (and sometimes confusing) to the casual installer], - USE_MAINTAINER_MODE=$enableval, - USE_MAINTAINER_MODE=no) - AC_MSG_RESULT([$USE_MAINTAINER_MODE]) - AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) - MAINT=$MAINTAINER_MODE_TRUE - AC_SUBST(MAINT)dnl -] -) - -AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) - -# Check to see how 'make' treats includes. -*- Autoconf -*- - -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 3 - -# AM_MAKE_INCLUDE() -# ----------------- -# Check to see how make treats includes. -AC_DEFUN([AM_MAKE_INCLUDE], -[am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo done -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -AC_MSG_CHECKING([for style of include used by $am_make]) -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi -fi -AC_SUBST([am__include]) -AC_SUBST([am__quote]) -AC_MSG_RESULT([$_am_result]) -rm -f confinc confmf -]) - -# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- - -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 4 - -# AM_MISSING_PROG(NAME, PROGRAM) -# ------------------------------ -AC_DEFUN([AM_MISSING_PROG], -[AC_REQUIRE([AM_MISSING_HAS_RUN]) -$1=${$1-"${am_missing_run}$2"} -AC_SUBST($1)]) - - -# AM_MISSING_HAS_RUN -# ------------------ -# Define MISSING if not defined so far and test if it supports --run. -# If it does, set am_missing_run to use it, otherwise, to nothing. -AC_DEFUN([AM_MISSING_HAS_RUN], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - AC_MSG_WARN([`missing' script is too old or missing]) -fi -]) - -# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_MKDIR_P -# --------------- -# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. -# -# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories -# created by `make install' are always world readable, even if the -# installer happens to have an overly restrictive umask (e.g. 077). -# This was a mistake. There are at least two reasons why we must not -# use `-m 0755': -# - it causes special bits like SGID to be ignored, -# - it may be too restrictive (some setups expect 775 directories). -# -# Do not use -m 0755 and let people choose whatever they expect by -# setting umask. -# -# We cannot accept any implementation of `mkdir' that recognizes `-p'. -# Some implementations (such as Solaris 8's) are not thread-safe: if a -# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' -# concurrently, both version can detect that a/ is missing, but only -# one can create it and the other will error out. Consequently we -# restrict ourselves to GNU make (using the --version option ensures -# this.) -AC_DEFUN([AM_PROG_MKDIR_P], -[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then - # We used to keeping the `.' as first argument, in order to - # allow $(mkdir_p) to be used without argument. As in - # $(mkdir_p) $(somedir) - # where $(somedir) is conditionally defined. However this is wrong - # for two reasons: - # 1. if the package is installed by a user who cannot write `.' - # make install will fail, - # 2. the above comment should most certainly read - # $(mkdir_p) $(DESTDIR)$(somedir) - # so it does not work when $(somedir) is undefined and - # $(DESTDIR) is not. - # To support the latter case, we have to write - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), - # so the `.' trick is pointless. - mkdir_p='mkdir -p --' -else - # On NextStep and OpenStep, the `mkdir' command does not - # recognize any option. It will interpret all options as - # directories to create, and then abort because `.' already - # exists. - for d in ./-p ./--version; - do - test -d $d && rmdir $d - done - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. - if test -f "$ac_aux_dir/mkinstalldirs"; then - mkdir_p='$(mkinstalldirs)' - else - mkdir_p='$(install_sh) -d' - fi -fi -AC_SUBST([mkdir_p])]) - -# Helper functions for option handling. -*- Autoconf -*- - -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 3 - -# _AM_MANGLE_OPTION(NAME) -# ----------------------- -AC_DEFUN([_AM_MANGLE_OPTION], -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) - -# _AM_SET_OPTION(NAME) -# ------------------------------ -# Set option NAME. Presently that only means defining a flag for this option. -AC_DEFUN([_AM_SET_OPTION], -[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) - -# _AM_SET_OPTIONS(OPTIONS) -# ---------------------------------- -# OPTIONS is a space-separated list of Automake options. -AC_DEFUN([_AM_SET_OPTIONS], -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) - -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) -# ------------------------------------------- -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. -AC_DEFUN([_AM_IF_OPTION], -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) - -# Check to make sure that the build environment is sane. -*- Autoconf -*- - -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 -# Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 4 - -# AM_SANITY_CHECK -# --------------- -AC_DEFUN([AM_SANITY_CHECK], -[AC_MSG_CHECKING([whether build environment is sane]) -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$[*]" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$[*]" != "X $srcdir/configure conftest.file" \ - && test "$[*]" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken -alias in your environment]) - fi - - test "$[2]" = conftest.file - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -AC_MSG_RESULT(yes)]) - -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# AM_PROG_INSTALL_STRIP -# --------------------- -# One issue with vendor `install' (even GNU) is that you can't -# specify the program used to strip binaries. This is especially -# annoying in cross-compiling environments, where the build's strip -# is unlikely to handle the host's binaries. -# Fortunately install-sh will honor a STRIPPROG variable, so we -# always use install-sh in `make install-strip', and initialize -# STRIPPROG with the value of the STRIP variable (set by the user). -AC_DEFUN([AM_PROG_INSTALL_STRIP], -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -dnl Don't test for $cross_compiling = yes, because it might be `maybe'. -if test "$cross_compiling" != no; then - AC_CHECK_TOOL([STRIP], [strip], :) -fi -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" -AC_SUBST([INSTALL_STRIP_PROGRAM])]) - -# Check how to create a tarball. -*- Autoconf -*- - -# Copyright (C) 2004, 2005 Free Software Foundation, Inc. -# -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# serial 2 - -# _AM_PROG_TAR(FORMAT) -# -------------------- -# Check how to create a tarball in format FORMAT. -# FORMAT should be one of `v7', `ustar', or `pax'. -# -# Substitute a variable $(am__tar) that is a command -# writing to stdout a FORMAT-tarball containing the directory -# $tardir. -# tardir=directory && $(am__tar) > result.tar -# -# Substitute a variable $(am__untar) that extract such -# a tarball read from stdin. -# $(am__untar) < result.tar -AC_DEFUN([_AM_PROG_TAR], -[# Always define AMTAR for backward compatibility. -AM_MISSING_PROG([AMTAR], [tar]) -m4_if([$1], [v7], - [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], - [m4_case([$1], [ustar],, [pax],, - [m4_fatal([Unknown tar format])]) -AC_MSG_CHECKING([how to create a $1 tar archive]) -# Loop over all known methods to create a tar archive until one works. -_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' -_am_tools=${am_cv_prog_tar_$1-$_am_tools} -# Do not fold the above two line into one, because Tru64 sh and -# Solaris sh will not grok spaces in the rhs of `-'. -for _am_tool in $_am_tools -do - case $_am_tool in - gnutar) - for _am_tar in tar gnutar gtar; - do - AM_RUN_LOG([$_am_tar --version]) && break - done - am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' - am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' - am__untar="$_am_tar -xf -" - ;; - plaintar) - # Must skip GNU tar: if it does not support --format= it doesn't create - # ustar tarball either. - (tar --version) >/dev/null 2>&1 && continue - am__tar='tar chf - "$$tardir"' - am__tar_='tar chf - "$tardir"' - am__untar='tar xf -' - ;; - pax) - am__tar='pax -L -x $1 -w "$$tardir"' - am__tar_='pax -L -x $1 -w "$tardir"' - am__untar='pax -r' - ;; - cpio) - am__tar='find "$$tardir" -print | cpio -o -H $1 -L' - am__tar_='find "$tardir" -print | cpio -o -H $1 -L' - am__untar='cpio -i -H $1 -d' - ;; - none) - am__tar=false - am__tar_=false - am__untar=false - ;; - esac - - # If the value was cached, stop now. We just wanted to have am__tar - # and am__untar set. - test -n "${am_cv_prog_tar_$1}" && break - - # tar/untar a dummy directory, and stop if the command works - rm -rf conftest.dir - mkdir conftest.dir - echo GrepMe > conftest.dir/file - AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) - rm -rf conftest.dir - if test -s conftest.tar; then - AM_RUN_LOG([$am__untar <conftest.tar]) - grep GrepMe conftest.dir/file >/dev/null 2>&1 && break - fi -done -rm -rf conftest.dir - -AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) -AC_MSG_RESULT([$am_cv_prog_tar_$1])]) -AC_SUBST([am__tar]) -AC_SUBST([am__untar]) -]) # _AM_PROG_TAR - -m4_include([../config/acx.m4]) -m4_include([../config/depstand.m4]) -m4_include([../config/enable.m4]) -m4_include([../config/lead-dot.m4]) -m4_include([../config/multi.m4]) -m4_include([../config/stdint.m4]) -m4_include([../config/tls.m4]) -m4_include([acinclude.m4]) diff --git a/gcc-4.2.1-5666.3/libgomp/alloc.c b/gcc-4.2.1-5666.3/libgomp/alloc.c deleted file mode 100644 index e3b6b42e6..000000000 --- a/gcc-4.2.1-5666.3/libgomp/alloc.c +++ /dev/null @@ -1,61 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This file contains wrappers for the system allocation routines. Most - places in the OpenMP API do not make any provision for failure, so in - general we cannot allow memory allocation to fail. */ - -#include "libgomp.h" -#include <stdlib.h> - - -void * -gomp_malloc (size_t size) -{ - void *ret = malloc (size); - if (ret == NULL) - gomp_fatal ("Out of memory allocating %lu bytes", (unsigned long) size); - return ret; -} - -void * -gomp_malloc_cleared (size_t size) -{ - void *ret = calloc (1, size); - if (ret == NULL) - gomp_fatal ("Out of memory allocating %lu bytes", (unsigned long) size); - return ret; -} - -void * -gomp_realloc (void *old, size_t size) -{ - void *ret = realloc (old, size); - if (ret == NULL) - gomp_fatal ("Out of memory allocating %lu bytes", (unsigned long) size); - return ret; -} diff --git a/gcc-4.2.1-5666.3/libgomp/barrier.c b/gcc-4.2.1-5666.3/libgomp/barrier.c deleted file mode 100644 index bcad683af..000000000 --- a/gcc-4.2.1-5666.3/libgomp/barrier.c +++ /dev/null @@ -1,44 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This file handles the BARRIER construct. */ - -#include "libgomp.h" - - -void -GOMP_barrier (void) -{ - struct gomp_thread *thr = gomp_thread (); - struct gomp_team *team = thr->ts.team; - - /* It is legal to have orphaned barriers. */ - if (team == NULL) - return; - - gomp_barrier_wait (&team->barrier); -} diff --git a/gcc-4.2.1-5666.3/libgomp/config.h.in b/gcc-4.2.1-5666.3/libgomp/config.h.in deleted file mode 100644 index 0c1599388..000000000 --- a/gcc-4.2.1-5666.3/libgomp/config.h.in +++ /dev/null @@ -1,103 +0,0 @@ -/* config.h.in. Generated from configure.ac by autoheader. */ - -/* Define to 1 if the target supports __attribute__((alias(...))). */ -#undef HAVE_ATTRIBUTE_ALIAS - -/* Define to 1 if the target supports __attribute__((dllexport)). */ -#undef HAVE_ATTRIBUTE_DLLEXPORT - -/* Define to 1 if the target supports __attribute__((visibility(...))). */ -#undef HAVE_ATTRIBUTE_VISIBILITY - -/* Define if the POSIX Semaphores do not work on your system. */ -#undef HAVE_BROKEN_POSIX_SEMAPHORES - -/* Define to 1 if you have the `clock_gettime' function. */ -#undef HAVE_CLOCK_GETTIME - -/* Define to 1 if you have the `getloadavg' function. */ -#undef HAVE_GETLOADAVG - -/* Define to 1 if you have the <inttypes.h> header file. */ -#undef HAVE_INTTYPES_H - -/* Define to 1 if you have the <memory.h> header file. */ -#undef HAVE_MEMORY_H - -/* Define to 1 if you have the <semaphore.h> header file. */ -#undef HAVE_SEMAPHORE_H - -/* Define to 1 if you have the <stdint.h> header file. */ -#undef HAVE_STDINT_H - -/* Define to 1 if you have the <stdlib.h> header file. */ -#undef HAVE_STDLIB_H - -/* Define to 1 if you have the <strings.h> header file. */ -#undef HAVE_STRINGS_H - -/* Define to 1 if you have the <string.h> header file. */ -#undef HAVE_STRING_H - -/* Define to 1 if the target supports __sync_*_compare_and_swap */ -#undef HAVE_SYNC_BUILTINS - -/* Define to 1 if you have the <sys/loadavg.h> header file. */ -#undef HAVE_SYS_LOADAVG_H - -/* Define to 1 if you have the <sys/stat.h> header file. */ -#undef HAVE_SYS_STAT_H - -/* Define to 1 if you have the <sys/time.h> header file. */ -#undef HAVE_SYS_TIME_H - -/* Define to 1 if you have the <sys/types.h> header file. */ -#undef HAVE_SYS_TYPES_H - -/* Define to 1 if the target supports thread-local storage. */ -#undef HAVE_TLS - -/* Define to 1 if you have the <unistd.h> header file. */ -#undef HAVE_UNISTD_H - -/* Name of package */ -#undef PACKAGE - -/* Define to the address where bug reports for this package should be sent. */ -#undef PACKAGE_BUGREPORT - -/* Define to the full name of this package. */ -#undef PACKAGE_NAME - -/* Define to the full name and version of this package. */ -#undef PACKAGE_STRING - -/* Define to the one symbol short name of this package. */ -#undef PACKAGE_TARNAME - -/* Define to the version of this package. */ -#undef PACKAGE_VERSION - -/* The size of a `char', as computed by sizeof. */ -#undef SIZEOF_CHAR - -/* The size of a `int', as computed by sizeof. */ -#undef SIZEOF_INT - -/* The size of a `long', as computed by sizeof. */ -#undef SIZEOF_LONG - -/* The size of a `short', as computed by sizeof. */ -#undef SIZEOF_SHORT - -/* The size of a `void *', as computed by sizeof. */ -#undef SIZEOF_VOID_P - -/* Define to 1 if you have the ANSI C header files. */ -#undef STDC_HEADERS - -/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ -#undef TIME_WITH_SYS_TIME - -/* Version number of package */ -#undef VERSION diff --git a/gcc-4.2.1-5666.3/libgomp/config/linux/alpha/futex.h b/gcc-4.2.1-5666.3/libgomp/config/linux/alpha/futex.h deleted file mode 100644 index 98681a852..000000000 --- a/gcc-4.2.1-5666.3/libgomp/config/linux/alpha/futex.h +++ /dev/null @@ -1,76 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* Provide target-specific access to the futex system call. */ - -#ifndef SYS_futex -#define SYS_futex 394 -#endif -#define FUTEX_WAIT 0 -#define FUTEX_WAKE 1 - - -static inline void -futex_wait (int *addr, int val) -{ - register long sc_0 __asm__("$0"); - register long sc_16 __asm__("$16"); - register long sc_17 __asm__("$17"); - register long sc_18 __asm__("$18"); - register long sc_19 __asm__("$19"); - - sc_0 = SYS_futex; - sc_16 = (long) addr; - sc_17 = FUTEX_WAIT; - sc_18 = val; - sc_19 = 0; - __asm volatile ("callsys" - : "=r" (sc_0), "=r"(sc_19) - : "0"(sc_0), "r" (sc_16), "r"(sc_17), "r"(sc_18), "1"(sc_19) - : "$1", "$2", "$3", "$4", "$5", "$6", "$7", "$8", - "$22", "$23", "$24", "$25", "$27", "$28", "memory"); -} - -static inline void -futex_wake (int *addr, int count) -{ - register long sc_0 __asm__("$0"); - register long sc_16 __asm__("$16"); - register long sc_17 __asm__("$17"); - register long sc_18 __asm__("$18"); - register long sc_19 __asm__("$19"); - - sc_0 = SYS_futex; - sc_16 = (long) addr; - sc_17 = FUTEX_WAKE; - sc_18 = count; - __asm volatile ("callsys" - : "=r" (sc_0), "=r"(sc_19) - : "0"(sc_0), "r" (sc_16), "r"(sc_17), "r"(sc_18) - : "$1", "$2", "$3", "$4", "$5", "$6", "$7", "$8", - "$22", "$23", "$24", "$25", "$27", "$28", "memory"); -} diff --git a/gcc-4.2.1-5666.3/libgomp/config/linux/bar.c b/gcc-4.2.1-5666.3/libgomp/config/linux/bar.c deleted file mode 100644 index 5c4f32e6f..000000000 --- a/gcc-4.2.1-5666.3/libgomp/config/linux/bar.c +++ /dev/null @@ -1,64 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This is a Linux specific implementation of a barrier synchronization - mechanism for libgomp. This type is private to the library. This - implementation uses atomic instructions and the futex syscall. */ - -#include "libgomp.h" -#include "futex.h" -#include <limits.h> - - -void -gomp_barrier_wait_end (gomp_barrier_t *bar, bool last) -{ - if (last) - { - bar->generation++; - futex_wake (&bar->generation, INT_MAX); - } - else - { - unsigned int generation = bar->generation; - - gomp_mutex_unlock (&bar->mutex); - - do - futex_wait (&bar->generation, generation); - while (bar->generation == generation); - } - - if (__sync_add_and_fetch (&bar->arrived, -1) == 0) - gomp_mutex_unlock (&bar->mutex); -} - -void -gomp_barrier_wait (gomp_barrier_t *barrier) -{ - gomp_barrier_wait_end (barrier, gomp_barrier_wait_start (barrier)); -} diff --git a/gcc-4.2.1-5666.3/libgomp/config/linux/bar.h b/gcc-4.2.1-5666.3/libgomp/config/linux/bar.h deleted file mode 100644 index 57268585d..000000000 --- a/gcc-4.2.1-5666.3/libgomp/config/linux/bar.h +++ /dev/null @@ -1,75 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This is a Linux specific implementation of a barrier synchronization - mechanism for libgomp. This type is private to the library. This - implementation uses atomic instructions and the futex syscall. */ - -#ifndef GOMP_BARRIER_H -#define GOMP_BARRIER_H 1 - -#include "mutex.h" - -typedef struct -{ - gomp_mutex_t mutex; - unsigned total; - unsigned arrived; - int generation; -} gomp_barrier_t; - -static inline void gomp_barrier_init (gomp_barrier_t *bar, unsigned count) -{ - gomp_mutex_init (&bar->mutex); - bar->total = count; - bar->arrived = 0; - bar->generation = 0; -} - -static inline void gomp_barrier_reinit (gomp_barrier_t *bar, unsigned count) -{ - gomp_mutex_lock (&bar->mutex); - bar->total = count; - gomp_mutex_unlock (&bar->mutex); -} - -static inline void gomp_barrier_destroy (gomp_barrier_t *bar) -{ - /* Before destroying, make sure all threads have left the barrier. */ - gomp_mutex_lock (&bar->mutex); -} - -extern void gomp_barrier_wait (gomp_barrier_t *); -extern void gomp_barrier_wait_end (gomp_barrier_t *, bool); - -static inline bool gomp_barrier_wait_start (gomp_barrier_t *bar) -{ - gomp_mutex_lock (&bar->mutex); - return ++bar->arrived == bar->total; -} - -#endif /* GOMP_BARRIER_H */ diff --git a/gcc-4.2.1-5666.3/libgomp/config/linux/ia64/futex.h b/gcc-4.2.1-5666.3/libgomp/config/linux/ia64/futex.h deleted file mode 100644 index 5e54982d6..000000000 --- a/gcc-4.2.1-5666.3/libgomp/config/linux/ia64/futex.h +++ /dev/null @@ -1,71 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* Provide target-specific access to the futex system call. */ - -#include <sys/syscall.h> - -#define FUTEX_WAIT 0 -#define FUTEX_WAKE 1 - - -static inline void -sys_futex0(int *addr, int op, int val) -{ - register long out0 asm ("out0") = (long) addr; - register long out1 asm ("out1") = op; - register long out2 asm ("out2") = val; - register long out3 asm ("out3") = 0; - register long r15 asm ("r15") = SYS_futex; - - __asm __volatile ("break 0x100000" - : "=r"(r15), "=r"(out0), "=r"(out1), "=r"(out2), "=r"(out3) - : "r"(r15), "r"(out0), "r"(out1), "r"(out2), "r"(out3) - : "memory", "r8", "r10", "out4", "out5", "out6", "out7", - /* Non-stacked integer registers, minus r8, r10, r15. */ - "r2", "r3", "r9", "r11", "r12", "r13", "r14", "r16", "r17", "r18", - "r19", "r20", "r21", "r22", "r23", "r24", "r25", "r26", "r27", - "r28", "r29", "r30", "r31", - /* Predicate registers. */ - "p6", "p7", "p8", "p9", "p10", "p11", "p12", "p13", "p14", "p15", - /* Non-rotating fp registers. */ - "f6", "f7", "f8", "f9", "f10", "f11", "f12", "f13", "f14", "f15", - /* Branch registers. */ - "b6"); -} - -static inline void -futex_wait (int *addr, int val) -{ - sys_futex0 (addr, FUTEX_WAIT, val); -} - -static inline void -futex_wake (int *addr, int count) -{ - sys_futex0 (addr, FUTEX_WAKE, count); -} diff --git a/gcc-4.2.1-5666.3/libgomp/config/linux/lock.c b/gcc-4.2.1-5666.3/libgomp/config/linux/lock.c deleted file mode 100644 index 211f6007b..000000000 --- a/gcc-4.2.1-5666.3/libgomp/config/linux/lock.c +++ /dev/null @@ -1,182 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This is a Linux specific implementation of the public OpenMP locking - primitives. This implementation uses atomic instructions and the futex - syscall. */ - -#include "libgomp.h" -#include <string.h> -#include <unistd.h> -#include <sys/syscall.h> -#include "futex.h" - - -/* The internal gomp_mutex_t and the external non-recursive omp_lock_t - have the same form. Re-use it. */ - -void -omp_init_lock (omp_lock_t *lock) -{ - gomp_mutex_init (lock); -} - -void -omp_destroy_lock (omp_lock_t *lock) -{ - gomp_mutex_destroy (lock); -} - -void -omp_set_lock (omp_lock_t *lock) -{ - gomp_mutex_lock (lock); -} - -void -omp_unset_lock (omp_lock_t *lock) -{ - gomp_mutex_unlock (lock); -} - -int -omp_test_lock (omp_lock_t *lock) -{ - return __sync_bool_compare_and_swap (lock, 0, 1); -} - -/* The external recursive omp_nest_lock_t form requires additional work. */ - -/* We need an integer to uniquely identify this thread. Most generally - this is the thread's TID, which ideally we'd get this straight from - the TLS block where glibc keeps it. Unfortunately, we can't get at - that directly. - - If we don't support (or have disabled) TLS, one function call is as - good (or bad) as any other. Use the syscall all the time. - - On an ILP32 system (defined here as not LP64), we can make do with - any thread-local pointer. Ideally we'd use the TLS base address, - since that requires the least amount of arithmetic, but that's not - always available directly. Make do with the gomp_thread pointer - since it's handy. */ - -#if !defined (HAVE_TLS) -static inline int gomp_tid (void) -{ - return syscall (SYS_gettid); -} -#elif !defined(__LP64__) -static inline int gomp_tid (void) -{ - return (int) gomp_thread (); -} -#else -static __thread int tid_cache; -static inline int gomp_tid (void) -{ - int tid = tid_cache; - if (__builtin_expect (tid == 0, 0)) - tid_cache = tid = syscall (SYS_gettid); - return tid; -} -#endif - - -void -omp_init_nest_lock (omp_nest_lock_t *lock) -{ - memset (lock, 0, sizeof (lock)); -} - -void -omp_destroy_nest_lock (omp_nest_lock_t *lock) -{ -} - -void -omp_set_nest_lock (omp_nest_lock_t *lock) -{ - int otid, tid = gomp_tid (); - - while (1) - { - otid = __sync_val_compare_and_swap (&lock->owner, 0, tid); - if (otid == 0) - { - lock->count = 1; - return; - } - if (otid == tid) - { - lock->count++; - return; - } - - futex_wait (&lock->owner, otid); - } -} - -void -omp_unset_nest_lock (omp_nest_lock_t *lock) -{ - /* ??? Validate that we own the lock here. */ - - if (--lock->count == 0) - { - __sync_lock_release (&lock->owner); - futex_wake (&lock->owner, 1); - } -} - -int -omp_test_nest_lock (omp_nest_lock_t *lock) -{ - int otid, tid = gomp_tid (); - - otid = __sync_val_compare_and_swap (&lock->owner, 0, tid); - if (otid == 0) - { - lock->count = 1; - return 1; - } - if (otid == tid) - return ++lock->count; - - return 0; -} - -ialias (omp_init_lock) -ialias (omp_init_nest_lock) -ialias (omp_destroy_lock) -ialias (omp_destroy_nest_lock) -ialias (omp_set_lock) -ialias (omp_set_nest_lock) -ialias (omp_unset_lock) -ialias (omp_unset_nest_lock) -ialias (omp_test_lock) -ialias (omp_test_nest_lock) diff --git a/gcc-4.2.1-5666.3/libgomp/config/linux/mutex.c b/gcc-4.2.1-5666.3/libgomp/config/linux/mutex.c deleted file mode 100644 index fa3dfd1cb..000000000 --- a/gcc-4.2.1-5666.3/libgomp/config/linux/mutex.c +++ /dev/null @@ -1,52 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This is a Linux specific implementation of a mutex synchronization - mechanism for libgomp. This type is private to the library. This - implementation uses atomic instructions and the futex syscall. */ - -#include "libgomp.h" -#include "futex.h" - - -void -gomp_mutex_lock_slow (gomp_mutex_t *mutex) -{ - do - { - int oldval = __sync_val_compare_and_swap (mutex, 1, 2); - if (oldval != 0) - futex_wait (mutex, 2); - } - while (!__sync_bool_compare_and_swap (mutex, 0, 2)); -} - -void -gomp_mutex_unlock_slow (gomp_mutex_t *mutex) -{ - futex_wake (mutex, 1); -} diff --git a/gcc-4.2.1-5666.3/libgomp/config/linux/mutex.h b/gcc-4.2.1-5666.3/libgomp/config/linux/mutex.h deleted file mode 100644 index 323814aa8..000000000 --- a/gcc-4.2.1-5666.3/libgomp/config/linux/mutex.h +++ /dev/null @@ -1,63 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This is a Linux specific implementation of a mutex synchronization - mechanism for libgomp. This type is private to the library. This - implementation uses atomic instructions and the futex syscall. */ - -#ifndef GOMP_MUTEX_H -#define GOMP_MUTEX_H 1 - -typedef int gomp_mutex_t; - -#define GOMP_MUTEX_INIT_0 1 - -static inline void gomp_mutex_init (gomp_mutex_t *mutex) -{ - *mutex = 0; -} - -extern void gomp_mutex_lock_slow (gomp_mutex_t *mutex); -static inline void gomp_mutex_lock (gomp_mutex_t *mutex) -{ - if (!__sync_bool_compare_and_swap (mutex, 0, 1)) - gomp_mutex_lock_slow (mutex); -} - -extern void gomp_mutex_unlock_slow (gomp_mutex_t *mutex); -static inline void gomp_mutex_unlock (gomp_mutex_t *mutex) -{ - int val = __sync_lock_test_and_set (mutex, 0); - if (__builtin_expect (val > 1, 0)) - gomp_mutex_unlock_slow (mutex); -} - -static inline void gomp_mutex_destroy (gomp_mutex_t *mutex) -{ -} - -#endif /* GOMP_MUTEX_H */ diff --git a/gcc-4.2.1-5666.3/libgomp/config/linux/omp-lock.h b/gcc-4.2.1-5666.3/libgomp/config/linux/omp-lock.h deleted file mode 100644 index 350cba160..000000000 --- a/gcc-4.2.1-5666.3/libgomp/config/linux/omp-lock.h +++ /dev/null @@ -1,10 +0,0 @@ -/* This header is used during the build process to find the size and - alignment of the public OpenMP locks, so that we can export data - structures without polluting the namespace. - - When using the Linux futex primitive, non-recursive locks require - only one int. Recursive locks require we identify the owning thread - and so require two ints. */ - -typedef int omp_lock_t; -typedef struct { int owner, count; } omp_nest_lock_t; diff --git a/gcc-4.2.1-5666.3/libgomp/config/linux/powerpc/futex.h b/gcc-4.2.1-5666.3/libgomp/config/linux/powerpc/futex.h deleted file mode 100644 index 20e035737..000000000 --- a/gcc-4.2.1-5666.3/libgomp/config/linux/powerpc/futex.h +++ /dev/null @@ -1,70 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* Provide target-specific access to the futex system call. */ - -#include <sys/syscall.h> -#define FUTEX_WAIT 0 -#define FUTEX_WAKE 1 - -static inline void -sys_futex0 (int *addr, int op, int val) -{ - register long int r0 __asm__ ("r0"); - register long int r3 __asm__ ("r3"); - register long int r4 __asm__ ("r4"); - register long int r5 __asm__ ("r5"); - register long int r6 __asm__ ("r6"); - - r0 = SYS_futex; - r3 = (long) addr; - r4 = op; - r5 = val; - r6 = 0; - - /* ??? The powerpc64 sysdep.h file clobbers ctr; the powerpc32 sysdep.h - doesn't. It doesn't much matter for us. In the interest of unity, - go ahead and clobber it always. */ - - __asm volatile ("sc" - : "=r"(r0), "=r"(r3), "=r"(r4), "=r"(r5), "=r"(r6) - : "r"(r0), "r"(r3), "r"(r4), "r"(r5), "r"(r6) - : "r7", "r8", "r9", "r10", "r11", "r12", - "cr0", "ctr", "memory"); -} - -static inline void -futex_wait (int *addr, int val) -{ - sys_futex0 (addr, FUTEX_WAIT, val); -} - -static inline void -futex_wake (int *addr, int count) -{ - sys_futex0 (addr, FUTEX_WAKE, count); -} diff --git a/gcc-4.2.1-5666.3/libgomp/config/linux/s390/futex.h b/gcc-4.2.1-5666.3/libgomp/config/linux/s390/futex.h deleted file mode 100644 index 9b3820c0d..000000000 --- a/gcc-4.2.1-5666.3/libgomp/config/linux/s390/futex.h +++ /dev/null @@ -1,64 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Jakub Jelinek <jakub@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* Provide target-specific access to the futex system call. */ - -#include <sys/syscall.h> -#define FUTEX_WAIT 0 -#define FUTEX_WAKE 1 - -static inline void -sys_futex0 (int *addr, int op, int val) -{ - register long int gpr2 __asm__ ("2"); - register long int gpr3 __asm__ ("3"); - register long int gpr4 __asm__ ("4"); - register long int gpr5 __asm__ ("5"); - - gpr2 = (long) addr; - gpr3 = op; - gpr4 = val; - gpr5 = 0; - - __asm volatile ("svc %b1" - : "=d" (gpr2) - : "i" (SYS_futex), - "0" (gpr2), "d" (gpr3), "d" (gpr4), "d" (gpr5) - : "memory"); -} - -static inline void -futex_wait (int *addr, int val) -{ - sys_futex0 (addr, FUTEX_WAIT, val); -} - -static inline void -futex_wake (int *addr, int count) -{ - sys_futex0 (addr, FUTEX_WAKE, count); -} diff --git a/gcc-4.2.1-5666.3/libgomp/config/linux/sem.c b/gcc-4.2.1-5666.3/libgomp/config/linux/sem.c deleted file mode 100644 index 798e3f1f2..000000000 --- a/gcc-4.2.1-5666.3/libgomp/config/linux/sem.c +++ /dev/null @@ -1,65 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This is a Linux specific implementation of a semaphore synchronization - mechanism for libgomp. This type is private to the library. This - implementation uses atomic instructions and the futex syscall. */ - -#include "libgomp.h" -#include "futex.h" - - -void -gomp_sem_wait_slow (gomp_sem_t *sem) -{ - while (1) - { - int val = __sync_val_compare_and_swap (sem, 0, -1); - if (val > 0) - { - if (__sync_bool_compare_and_swap (sem, val, val - 1)) - return; - } - futex_wait (sem, -1); - } -} - -void -gomp_sem_post_slow (gomp_sem_t *sem) -{ - int old, tmp = *sem, wake; - - do - { - old = tmp; - wake = old > 0 ? old + 1 : 1; - tmp = __sync_val_compare_and_swap (sem, old, wake); - } - while (old != tmp); - - futex_wake (sem, wake); -} diff --git a/gcc-4.2.1-5666.3/libgomp/config/linux/sem.h b/gcc-4.2.1-5666.3/libgomp/config/linux/sem.h deleted file mode 100644 index fff0bbded..000000000 --- a/gcc-4.2.1-5666.3/libgomp/config/linux/sem.h +++ /dev/null @@ -1,60 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This is a Linux specific implementation of a semaphore synchronization - mechanism for libgomp. This type is private to the library. This - implementation uses atomic instructions and the futex syscall. */ - -#ifndef GOMP_SEM_H -#define GOMP_SEM_H 1 - -typedef int gomp_sem_t; - -static inline void gomp_sem_init (gomp_sem_t *sem, int value) -{ - *sem = value; -} - -extern void gomp_sem_wait_slow (gomp_sem_t *); -static inline void gomp_sem_wait (gomp_sem_t *sem) -{ - if (!__sync_bool_compare_and_swap (sem, 1, 0)) - gomp_sem_wait_slow (sem); -} - -extern void gomp_sem_post_slow (gomp_sem_t *); -static inline void gomp_sem_post (gomp_sem_t *sem) -{ - if (!__sync_bool_compare_and_swap (sem, 0, 1)) - gomp_sem_post_slow (sem); -} - -static inline void gomp_sem_destroy (gomp_sem_t *sem) -{ -} - -#endif /* GOMP_SEM_H */ diff --git a/gcc-4.2.1-5666.3/libgomp/config/linux/sparc/futex.h b/gcc-4.2.1-5666.3/libgomp/config/linux/sparc/futex.h deleted file mode 100644 index 7b1cc8379..000000000 --- a/gcc-4.2.1-5666.3/libgomp/config/linux/sparc/futex.h +++ /dev/null @@ -1,80 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Jakub Jelinek <jakub@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* Provide target-specific access to the futex system call. */ - -#include <sys/syscall.h> -#define FUTEX_WAIT 0 -#define FUTEX_WAKE 1 - -static inline void -sys_futex0 (int *addr, int op, int val) -{ - register long int g1 __asm__ ("g1"); - register long int o0 __asm__ ("o0"); - register long int o1 __asm__ ("o1"); - register long int o2 __asm__ ("o2"); - register long int o3 __asm__ ("o3"); - - g1 = SYS_futex; - o0 = (long) addr; - o1 = op; - o2 = val; - o3 = 0; - -#ifdef __arch64__ -# define SYSCALL_STRING "ta\t0x6d" -#else -# define SYSCALL_STRING "ta\t0x10" -#endif - - __asm volatile (SYSCALL_STRING - : "=r" (g1), "=r" (o0) - : "0" (g1), "1" (o0), "r" (o1), "r" (o2), "r" (o3) - : "g2", "g3", "g4", "g5", "g6", - "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", - "f8", "f9", "f10", "f11", "f12", "f13", "f14", "f15", - "f16", "f17", "f18", "f19", "f20", "f21", "f22", "f23", - "f24", "f25", "f26", "f27", "f28", "f29", "f30", "f31", -#ifdef __arch64__ - "f32", "f34", "f36", "f38", "f40", "f42", "f44", "f46", - "f48", "f50", "f52", "f54", "f56", "f58", "f60", "f62", -#endif - "cc", "memory"); -} - -static inline void -futex_wait (int *addr, int val) -{ - sys_futex0 (addr, FUTEX_WAIT, val); -} - -static inline void -futex_wake (int *addr, int count) -{ - sys_futex0 (addr, FUTEX_WAKE, count); -} diff --git a/gcc-4.2.1-5666.3/libgomp/config/linux/x86/futex.h b/gcc-4.2.1-5666.3/libgomp/config/linux/x86/futex.h deleted file mode 100644 index 4f9aac2dd..000000000 --- a/gcc-4.2.1-5666.3/libgomp/config/linux/x86/futex.h +++ /dev/null @@ -1,110 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* Provide target-specific access to the futex system call. */ - -#define FUTEX_WAIT 0 -#define FUTEX_WAKE 1 - -#ifdef __LP64__ -# ifndef SYS_futex -# define SYS_futex 202 -# endif - -static inline void -futex_wait (int *addr, int val) -{ - register long r10 __asm__("%r10") = 0; - long res; - - __asm volatile ("syscall" - : "=a" (res) - : "0"(SYS_futex), "D" (addr), "S"(FUTEX_WAIT), - "d"(val), "r"(r10) - : "r11", "rcx", "memory"); -} - -static inline void -futex_wake (int *addr, int count) -{ - long res; - - __asm volatile ("syscall" - : "=a" (res) - : "0"(SYS_futex), "D" (addr), "S"(FUTEX_WAKE), "d"(count) - : "r11", "rcx", "memory"); -} -#else -# ifndef SYS_futex -# define SYS_futex 240 -# endif - -# ifdef __PIC__ - -static inline void -sys_futex0 (int *addr, int op, int val) -{ - long res; - - __asm volatile ("xchgl\t%%ebx, %2\n\t" - "int\t$0x80\n\t" - "xchgl\t%%ebx, %2" - : "=a" (res) - : "0"(SYS_futex), "r" (addr), "c"(op), - "d"(val), "S"(0) - : "memory"); -} - -# else - -static inline void -sys_futex0 (int *addr, int op, int val) -{ - long res; - - __asm volatile ("int $0x80" - : "=a" (res) - : "0"(SYS_futex), "b" (addr), "c"(op), - "d"(val), "S"(0) - : "memory"); -} - -# endif /* __PIC__ */ - -static inline void -futex_wait (int *addr, int val) -{ - sys_futex0 (addr, FUTEX_WAIT, val); -} - -static inline void -futex_wake (int *addr, int count) -{ - sys_futex0 (addr, FUTEX_WAKE, count); -} - -#endif /* __LP64__ */ diff --git a/gcc-4.2.1-5666.3/libgomp/config/mingw32/time.c b/gcc-4.2.1-5666.3/libgomp/config/mingw32/time.c deleted file mode 100644 index 0a83113be..000000000 --- a/gcc-4.2.1-5666.3/libgomp/config/mingw32/time.c +++ /dev/null @@ -1,49 +0,0 @@ -/* Copyright (C) 2006 Free Software Foundation, Inc. - Contributed by Francois-Xavier Coudert <coudert@clipper.ens.fr> - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This file contains timer routines for mingw32. */ - -#include "libgomp.h" -#include <unistd.h> -#include <sys/timeb.h> - -double -omp_get_wtime (void) -{ - struct _timeb timebuf; - _ftime (&timebuf); - return (timebuf.time + (long)(timebuf.millitm) / 1e3); -} - -double -omp_get_wtick (void) -{ - return 1e-3; -} - -ialias (omp_get_wtime) -ialias (omp_get_wtick) diff --git a/gcc-4.2.1-5666.3/libgomp/config/posix/bar.c b/gcc-4.2.1-5666.3/libgomp/config/posix/bar.c deleted file mode 100644 index 79721610c..000000000 --- a/gcc-4.2.1-5666.3/libgomp/config/posix/bar.c +++ /dev/null @@ -1,111 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This is the default implementation of a barrier synchronization mechanism - for libgomp. This type is private to the library. Note that we rely on - being able to adjust the barrier count while threads are blocked, so the - POSIX pthread_barrier_t won't work. */ - -#include "libgomp.h" - - -void -gomp_barrier_init (gomp_barrier_t *bar, unsigned count) -{ - gomp_mutex_init (&bar->mutex1); -#ifndef HAVE_SYNC_BUILTINS - gomp_mutex_init (&bar->mutex2); -#endif - gomp_sem_init (&bar->sem1, 0); - gomp_sem_init (&bar->sem2, 0); - bar->total = count; - bar->arrived = 0; -} - -void -gomp_barrier_destroy (gomp_barrier_t *bar) -{ - /* Before destroying, make sure all threads have left the barrier. */ - gomp_mutex_lock (&bar->mutex1); - gomp_mutex_unlock (&bar->mutex1); - - gomp_mutex_destroy (&bar->mutex1); -#ifndef HAVE_SYNC_BUILTINS - gomp_mutex_destroy (&bar->mutex2); -#endif - gomp_sem_destroy (&bar->sem1); - gomp_sem_destroy (&bar->sem2); -} - -void -gomp_barrier_reinit (gomp_barrier_t *bar, unsigned count) -{ - gomp_mutex_lock (&bar->mutex1); - bar->total = count; - gomp_mutex_unlock (&bar->mutex1); -} - -void -gomp_barrier_wait_end (gomp_barrier_t *bar, bool last) -{ - unsigned int n; - - if (last) - { - n = --bar->arrived; - if (n > 0) - { - do - gomp_sem_post (&bar->sem1); - while (--n != 0); - gomp_sem_wait (&bar->sem2); - } - gomp_mutex_unlock (&bar->mutex1); - } - else - { - gomp_mutex_unlock (&bar->mutex1); - gomp_sem_wait (&bar->sem1); - -#ifdef HAVE_SYNC_BUILTINS - n = __sync_add_and_fetch (&bar->arrived, -1); -#else - gomp_mutex_lock (&bar->mutex2); - n = --bar->arrived; - gomp_mutex_unlock (&bar->mutex2); -#endif - - if (n == 0) - gomp_sem_post (&bar->sem2); - } -} - -void -gomp_barrier_wait (gomp_barrier_t *barrier) -{ - gomp_barrier_wait_end (barrier, gomp_barrier_wait_start (barrier)); -} diff --git a/gcc-4.2.1-5666.3/libgomp/config/posix/bar.h b/gcc-4.2.1-5666.3/libgomp/config/posix/bar.h deleted file mode 100644 index 5275efa96..000000000 --- a/gcc-4.2.1-5666.3/libgomp/config/posix/bar.h +++ /dev/null @@ -1,63 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This is the default implementation of a barrier synchronization mechanism - for libgomp. This type is private to the library. Note that we rely on - being able to adjust the barrier count while threads are blocked, so the - POSIX pthread_barrier_t won't work. */ - -#ifndef GOMP_BARRIER_H -#define GOMP_BARRIER_H 1 - -#include <pthread.h> - -typedef struct -{ - gomp_mutex_t mutex1; -#ifndef HAVE_SYNC_BUILTINS - gomp_mutex_t mutex2; -#endif - gomp_sem_t sem1; - gomp_sem_t sem2; - unsigned total; - unsigned arrived; -} gomp_barrier_t; - -extern void gomp_barrier_init (gomp_barrier_t *, unsigned); -extern void gomp_barrier_reinit (gomp_barrier_t *, unsigned); -extern void gomp_barrier_destroy (gomp_barrier_t *); - -extern void gomp_barrier_wait (gomp_barrier_t *); -extern void gomp_barrier_wait_end (gomp_barrier_t *, bool); - -static inline bool gomp_barrier_wait_start (gomp_barrier_t *bar) -{ - gomp_mutex_lock (&bar->mutex1); - return ++bar->arrived == bar->total; -} - -#endif /* GOMP_BARRIER_H */ diff --git a/gcc-4.2.1-5666.3/libgomp/config/posix/lock.c b/gcc-4.2.1-5666.3/libgomp/config/posix/lock.c deleted file mode 100644 index 59459bb86..000000000 --- a/gcc-4.2.1-5666.3/libgomp/config/posix/lock.c +++ /dev/null @@ -1,125 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This is the default PTHREADS implementation of the public OpenMP - locking primitives. - - Because OpenMP uses different entry points for normal and recursive - locks, and pthreads uses only one entry point, a system may be able - to do better and streamline the locking as well as reduce the size - of the types exported. */ - -/* We need Unix98 extensions to get recursive locks. On Tru64 UNIX V4.0F, - the declarations are available without _XOPEN_SOURCE, which actually - breaks compilation. */ -#ifndef __osf__ -#define _XOPEN_SOURCE 500 -#endif - -#include "libgomp.h" - - -void -omp_init_lock (omp_lock_t *lock) -{ - pthread_mutex_init (lock, NULL); -} - -void -omp_destroy_lock (omp_lock_t *lock) -{ - pthread_mutex_destroy (lock); -} - -void -omp_set_lock (omp_lock_t *lock) -{ - pthread_mutex_lock (lock); -} - -void -omp_unset_lock (omp_lock_t *lock) -{ - pthread_mutex_unlock (lock); -} - -int -omp_test_lock (omp_lock_t *lock) -{ - return pthread_mutex_trylock (lock) == 0; -} - -void -omp_init_nest_lock (omp_nest_lock_t *lock) -{ - pthread_mutexattr_t attr; - - pthread_mutexattr_init (&attr); - pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_RECURSIVE); - pthread_mutex_init (&lock->lock, &attr); - lock->count = 0; - pthread_mutexattr_destroy (&attr); -} - -void -omp_destroy_nest_lock (omp_nest_lock_t *lock) -{ - pthread_mutex_destroy (&lock->lock); -} - -void -omp_set_nest_lock (omp_nest_lock_t *lock) -{ - pthread_mutex_lock (&lock->lock); - lock->count++; -} - -void -omp_unset_nest_lock (omp_nest_lock_t *lock) -{ - lock->count--; - pthread_mutex_unlock (&lock->lock); -} - -int -omp_test_nest_lock (omp_nest_lock_t *lock) -{ - if (pthread_mutex_trylock (&lock->lock) == 0) - return ++lock->count; - return 0; -} - -ialias (omp_init_lock) -ialias (omp_init_nest_lock) -ialias (omp_destroy_lock) -ialias (omp_destroy_nest_lock) -ialias (omp_set_lock) -ialias (omp_set_nest_lock) -ialias (omp_unset_lock) -ialias (omp_unset_nest_lock) -ialias (omp_test_lock) -ialias (omp_test_nest_lock) diff --git a/gcc-4.2.1-5666.3/libgomp/config/posix/mutex.c b/gcc-4.2.1-5666.3/libgomp/config/posix/mutex.c deleted file mode 100644 index 39bb64da0..000000000 --- a/gcc-4.2.1-5666.3/libgomp/config/posix/mutex.c +++ /dev/null @@ -1 +0,0 @@ -/* Everything is in the header. */ diff --git a/gcc-4.2.1-5666.3/libgomp/config/posix/mutex.h b/gcc-4.2.1-5666.3/libgomp/config/posix/mutex.h deleted file mode 100644 index c798e78ae..000000000 --- a/gcc-4.2.1-5666.3/libgomp/config/posix/mutex.h +++ /dev/null @@ -1,60 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This is the default PTHREADS implementation of a mutex synchronization - mechanism for libgomp. This type is private to the library. */ - -#ifndef GOMP_MUTEX_H -#define GOMP_MUTEX_H 1 - -#include <pthread.h> - -typedef pthread_mutex_t gomp_mutex_t; - -#define GOMP_MUTEX_INIT_0 0 - -static inline void gomp_mutex_init (gomp_mutex_t *mutex) -{ - pthread_mutex_init (mutex, NULL); -} - -static inline void gomp_mutex_lock (gomp_mutex_t *mutex) -{ - pthread_mutex_lock (mutex); -} - -static inline void gomp_mutex_unlock (gomp_mutex_t *mutex) -{ - pthread_mutex_unlock (mutex); -} - -static inline void gomp_mutex_destroy (gomp_mutex_t *mutex) -{ - pthread_mutex_destroy (mutex); -} - -#endif /* GOMP_MUTEX_H */ diff --git a/gcc-4.2.1-5666.3/libgomp/config/posix/omp-lock.h b/gcc-4.2.1-5666.3/libgomp/config/posix/omp-lock.h deleted file mode 100644 index ed70618d8..000000000 --- a/gcc-4.2.1-5666.3/libgomp/config/posix/omp-lock.h +++ /dev/null @@ -1,11 +0,0 @@ -/* This header is used during the build process to find the size and - alignment of the public OpenMP locks, so that we can export data - structures without polluting the namespace. - - In this default POSIX implementation, we map the two locks to the - same PTHREADS primitive. */ - -#include <pthread.h> - -typedef pthread_mutex_t omp_lock_t; -typedef struct { pthread_mutex_t lock; int count; } omp_nest_lock_t; diff --git a/gcc-4.2.1-5666.3/libgomp/config/posix/proc.c b/gcc-4.2.1-5666.3/libgomp/config/posix/proc.c deleted file mode 100644 index 3ee84f5c9..000000000 --- a/gcc-4.2.1-5666.3/libgomp/config/posix/proc.c +++ /dev/null @@ -1,103 +0,0 @@ -/* Copyright (C) 2005, 2006 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This file contains system specific routines related to counting - online processors and dynamic load balancing. It is expected that - a system may well want to write special versions of each of these. - - The following implementation uses a mix of POSIX and BSD routines. */ - -#include "libgomp.h" -#include <unistd.h> -#include <stdlib.h> -#ifdef HAVE_GETLOADAVG -# ifdef HAVE_SYS_LOADAVG_H -# include <sys/loadavg.h> -# endif -#endif - - -/* At startup, determine the default number of threads. It would seem - this should be related to the number of cpus online. */ - -void -gomp_init_num_threads (void) -{ -#ifdef _SC_NPROCESSORS_ONLN - gomp_nthreads_var = sysconf (_SC_NPROCESSORS_ONLN); -#endif -} - -/* When OMP_DYNAMIC is set, at thread launch determine the number of - threads we should spawn for this team. */ -/* ??? I have no idea what best practice for this is. Surely some - function of the number of processors that are *still* online and - the load average. Here I use the number of processors online - minus the 15 minute load average. */ - -unsigned -gomp_dynamic_max_threads (void) -{ - unsigned n_onln, loadavg; - -#ifdef _SC_NPROCESSORS_ONLN - n_onln = sysconf (_SC_NPROCESSORS_ONLN); - if (n_onln > gomp_nthreads_var) - n_onln = gomp_nthreads_var; -#else - n_onln = gomp_nthreads_var; -#endif - - loadavg = 0; -#ifdef HAVE_GETLOADAVG - { - double dloadavg[3]; - if (getloadavg (dloadavg, 3) == 3) - { - /* Add 0.1 to get a kind of biased rounding. */ - loadavg = dloadavg[2] + 0.1; - } - } -#endif - - if (loadavg >= n_onln) - return 1; - else - return n_onln - loadavg; -} - -int -omp_get_num_procs (void) -{ -#ifdef _SC_NPROCESSORS_ONLN - return sysconf (_SC_NPROCESSORS_ONLN); -#else - return gomp_nthreads_var; -#endif -} - -ialias (omp_get_num_procs) diff --git a/gcc-4.2.1-5666.3/libgomp/config/posix/sem.c b/gcc-4.2.1-5666.3/libgomp/config/posix/sem.c deleted file mode 100644 index b44cb5d16..000000000 --- a/gcc-4.2.1-5666.3/libgomp/config/posix/sem.c +++ /dev/null @@ -1,126 +0,0 @@ -/* Copyright (C) 2005, 2006 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This is the default POSIX 1003.1b implementation of a semaphore - synchronization mechanism for libgomp. This type is private to - the library. - - This is a bit heavy weight for what we need, in that we're not - interested in sem_wait as a cancelation point, but it's not too - bad for a default. */ - -#include "libgomp.h" - -#ifdef HAVE_BROKEN_POSIX_SEMAPHORES -#include <stdlib.h> - -void gomp_sem_init (gomp_sem_t *sem, int value) -{ - int ret; - - ret = pthread_mutex_init (&sem->mutex, NULL); - if (ret) - return; - - ret = pthread_cond_init (&sem->cond, NULL); - if (ret) - return; - - sem->value = value; -} - -void gomp_sem_wait (gomp_sem_t *sem) -{ - int ret; - - ret = pthread_mutex_lock (&sem->mutex); - if (ret) - return; - - if (sem->value > 0) - { - sem->value--; - ret = pthread_mutex_unlock (&sem->mutex); - return; - } - - while (sem->value <= 0) - { - ret = pthread_cond_wait (&sem->cond, &sem->mutex); - if (ret) - { - pthread_mutex_unlock (&sem->mutex); - return; - } - } - - sem->value--; - ret = pthread_mutex_unlock (&sem->mutex); - return; -} - -void gomp_sem_post (gomp_sem_t *sem) -{ - int ret; - - ret = pthread_mutex_lock (&sem->mutex); - if (ret) - return; - - sem->value++; - - ret = pthread_mutex_unlock (&sem->mutex); - if (ret) - return; - - ret = pthread_cond_signal (&sem->cond); - - return; -} - -void gomp_sem_destroy (gomp_sem_t *sem) -{ - int ret; - - ret = pthread_mutex_destroy (&sem->mutex); - if (ret) - return; - - ret = pthread_cond_destroy (&sem->cond); - - return; -} -#else /* HAVE_BROKEN_POSIX_SEMAPHORES */ -void -gomp_sem_wait (gomp_sem_t *sem) -{ - /* With POSIX, the wait can be canceled by signals. We don't want that. - It is expected that the return value here is -1 and errno is EINTR. */ - while (sem_wait (sem) != 0) - continue; -} -#endif diff --git a/gcc-4.2.1-5666.3/libgomp/config/posix/sem.h b/gcc-4.2.1-5666.3/libgomp/config/posix/sem.h deleted file mode 100644 index 7056abffc..000000000 --- a/gcc-4.2.1-5666.3/libgomp/config/posix/sem.h +++ /dev/null @@ -1,90 +0,0 @@ -/* Copyright (C) 2005, 2006 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This is the default POSIX 1003.1b implementation of a semaphore - synchronization mechanism for libgomp. This type is private to - the library. - - This is a bit heavy weight for what we need, in that we're not - interested in sem_wait as a cancelation point, but it's not too - bad for a default. */ - -#ifndef GOMP_SEM_H -#define GOMP_SEM_H 1 - -#ifdef HAVE_ATTRIBUTE_VISIBILITY -# pragma GCC visibility push(default) -#endif - -#include <semaphore.h> - -#ifdef HAVE_ATTRIBUTE_VISIBILITY -# pragma GCC visibility pop -#endif - -#ifdef HAVE_BROKEN_POSIX_SEMAPHORES -#include <pthread.h> - -struct gomp_sem -{ - pthread_mutex_t mutex; - pthread_cond_t cond; - int value; -}; - -typedef struct gomp_sem gomp_sem_t; - -extern void gomp_sem_init (gomp_sem_t *sem, int value); - -extern void gomp_sem_wait (gomp_sem_t *sem); - -extern void gomp_sem_post (gomp_sem_t *sem); - -extern void gomp_sem_destroy (gomp_sem_t *sem); - -#else /* HAVE_BROKEN_POSIX_SEMAPHORES */ - -typedef sem_t gomp_sem_t; - -static inline void gomp_sem_init (gomp_sem_t *sem, int value) -{ - sem_init (sem, 0, value); -} - -extern void gomp_sem_wait (gomp_sem_t *sem); - -static inline void gomp_sem_post (gomp_sem_t *sem) -{ - sem_post (sem); -} - -static inline void gomp_sem_destroy (gomp_sem_t *sem) -{ - sem_destroy (sem); -} -#endif /* doesn't HAVE_BROKEN_POSIX_SEMAPHORES */ -#endif /* GOMP_SEM_H */ diff --git a/gcc-4.2.1-5666.3/libgomp/config/posix/time.c b/gcc-4.2.1-5666.3/libgomp/config/posix/time.c deleted file mode 100644 index ef267a312..000000000 --- a/gcc-4.2.1-5666.3/libgomp/config/posix/time.c +++ /dev/null @@ -1,81 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This file contains system specific timer routines. It is expected that - a system may well want to write special versions of each of these. - - The following implementation uses the most simple POSIX routines. - If present, POSIX 4 clocks should be used instead. */ - -#include "libgomp.h" -#include <unistd.h> -#if TIME_WITH_SYS_TIME -# include <sys/time.h> -# include <time.h> -#else -# if HAVE_SYS_TIME_H -# include <sys/time.h> -# else -# include <time.h> -# endif -#endif - - -double -omp_get_wtime (void) -{ -#ifdef HAVE_CLOCK_GETTIME - struct timespec ts; -# ifdef CLOCK_MONOTONIC - if (clock_gettime (CLOCK_MONOTONIC, &ts) < 0) -# endif - clock_gettime (CLOCK_REALTIME, &ts); - return ts.tv_sec + ts.tv_nsec / 1e9; -#else - struct timeval tv; - gettimeofday (&tv, NULL); - return tv.tv_sec + tv.tv_usec / 1e6; -#endif -} - -double -omp_get_wtick (void) -{ -#ifdef HAVE_CLOCK_GETTIME - struct timespec ts; -# ifdef CLOCK_MONOTONIC - if (clock_getres (CLOCK_MONOTONIC, &ts) < 0) -# endif - clock_getres (CLOCK_REALTIME, &ts); - return ts.tv_sec + ts.tv_nsec / 1e9; -#else - return 1.0 / sysconf(_SC_CLK_TCK); -#endif -} - -ialias (omp_get_wtime) -ialias (omp_get_wtick) diff --git a/gcc-4.2.1-5666.3/libgomp/config/posix95/lock.c b/gcc-4.2.1-5666.3/libgomp/config/posix95/lock.c deleted file mode 100644 index 2416f1131..000000000 --- a/gcc-4.2.1-5666.3/libgomp/config/posix95/lock.c +++ /dev/null @@ -1,131 +0,0 @@ -/* Copyright (C) 2006 Free Software Foundation, Inc. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This is the POSIX95 implementation of the public OpenMP locking primitives. - - Because OpenMP uses different entry points for normal and recursive - locks, and pthreads uses only one entry point, a system may be able - to do better and streamline the locking as well as reduce the size - of the types exported. */ - -#include "libgomp.h" - - -void -omp_init_lock (omp_lock_t *lock) -{ - pthread_mutex_init (lock, NULL); -} - -void -omp_destroy_lock (omp_lock_t *lock) -{ - pthread_mutex_destroy (lock); -} - -void -omp_set_lock (omp_lock_t *lock) -{ - pthread_mutex_lock (lock); -} - -void -omp_unset_lock (omp_lock_t *lock) -{ - pthread_mutex_unlock (lock); -} - -int -omp_test_lock (omp_lock_t *lock) -{ - return pthread_mutex_trylock (lock) == 0; -} - -void -omp_init_nest_lock (omp_nest_lock_t *lock) -{ - pthread_mutex_init (&lock->lock, NULL); - lock->owner = (pthread_t) 0; - lock->count = 0; -} - -void -omp_destroy_nest_lock (omp_nest_lock_t *lock) -{ - pthread_mutex_destroy (&lock->lock); -} - -void -omp_set_nest_lock (omp_nest_lock_t *lock) -{ - pthread_t me = pthread_self (); - - if (lock->owner != me) - { - pthread_mutex_lock (&lock->lock); - lock->owner = me; - } - - lock->count++; -} - -void -omp_unset_nest_lock (omp_nest_lock_t *lock) -{ - lock->count--; - - if (lock->count == 0) - { - lock->owner = (pthread_t) 0; - pthread_mutex_unlock (&lock->lock); - } -} - -int -omp_test_nest_lock (omp_nest_lock_t *lock) -{ - pthread_t me = pthread_self (); - - if (lock->owner != me) - { - if (pthread_mutex_trylock (&lock->lock) != 0) - return 0; - lock->owner = me; - } - - return ++lock->count; -} - -ialias (omp_init_lock) -ialias (omp_init_nest_lock) -ialias (omp_destroy_lock) -ialias (omp_destroy_nest_lock) -ialias (omp_set_lock) -ialias (omp_set_nest_lock) -ialias (omp_unset_lock) -ialias (omp_unset_nest_lock) -ialias (omp_test_lock) -ialias (omp_test_nest_lock) diff --git a/gcc-4.2.1-5666.3/libgomp/config/posix95/omp-lock.h b/gcc-4.2.1-5666.3/libgomp/config/posix95/omp-lock.h deleted file mode 100644 index c446aec01..000000000 --- a/gcc-4.2.1-5666.3/libgomp/config/posix95/omp-lock.h +++ /dev/null @@ -1,17 +0,0 @@ -/* This header is used during the build process to find the size and - alignment of the public OpenMP locks, so that we can export data - structures without polluting the namespace. - - In this POSIX95 implementation, we map the two locks to the - same PTHREADS primitive. */ - -#include <pthread.h> - -typedef pthread_mutex_t omp_lock_t; - -typedef struct -{ - pthread_mutex_t lock; - pthread_t owner; - int count; -} omp_nest_lock_t; diff --git a/gcc-4.2.1-5666.3/libgomp/configure b/gcc-4.2.1-5666.3/libgomp/configure deleted file mode 100755 index af4254c1f..000000000 --- a/gcc-4.2.1-5666.3/libgomp/configure +++ /dev/null @@ -1,12933 +0,0 @@ -#! /bin/sh -# Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.59 for GNU OpenMP Runtime Library 1.0. -# -# Copyright (C) 2003 Free Software Foundation, Inc. -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be Bourne compatible -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then - set -o posix -fi -DUALCASE=1; export DUALCASE # for MKS sh - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# Work around bugs in pre-3.0 UWIN ksh. -$as_unset ENV MAIL MAILPATH -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1; then - as_expr=expr -else - as_expr=false -fi - -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)$' \| \ - . : '\(.\)' 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } - /^X\/\(\/\/\)$/{ s//\1/; q; } - /^X\/\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - - -# PATH needs CR, and LINENO needs CR and PATH. -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x$as_lineno_3" = "x$as_lineno_2" || { - # Find who we are. Look in the path if we contain no path at all - # relative or not. - case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done - - ;; - esac - # We did not find ourselves, most probably we were run as `sh COMMAND' - # in which case we are not to be found in the path. - if test "x$as_myself" = x; then - as_myself=$0 - fi - if test ! -f "$as_myself"; then - { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 - { (exit 1); exit 1; }; } - fi - case $CONFIG_SHELL in - '') - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for as_base in sh bash ksh sh5; do - case $as_dir in - /*) - if ("$as_dir/$as_base" -c ' - as_lineno_1=$LINENO - as_lineno_2=$LINENO - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } - CONFIG_SHELL=$as_dir/$as_base - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$0" ${1+"$@"} - fi;; - esac - done -done -;; - esac - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line before each line; the second 'sed' does the real - # work. The second script uses 'N' to pair each line-number line - # with the numbered line, and appends trailing '-' during - # substitution so that $LINENO is not a special case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) - sed '=' <$as_myself | - sed ' - N - s,$,-, - : loop - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, - t loop - s,-$,, - s,^['$as_cr_digits']*\n,, - ' >$as_me.lineno && - chmod +x $as_me.lineno || - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensible to this). - . ./$as_me.lineno - # Exit status is that of the last command. - exit -} - - -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in - *c*,-n*) ECHO_N= ECHO_C=' -' ECHO_T=' ' ;; - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; - *) ECHO_N= ECHO_C='\c' ECHO_T= ;; -esac - -if expr a : '\(a\)' >/dev/null 2>&1; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - # We could just check for DJGPP; but this test a) works b) is more generic - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). - if test -f conf$$.exe; then - # Don't use ln at all; we don't have any links - as_ln_s='cp -p' - else - as_ln_s='ln -s' - fi -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.file - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -as_executable_p="test -f" - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -# IFS -# We need space, tab and new line, in precisely that order. -as_nl=' -' -IFS=" $as_nl" - -# CDPATH. -$as_unset CDPATH - - -# Name of the host. -# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, -# so uname gets run too. -ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` - -exec 6>&1 - -# -# Initializations. -# -ac_default_prefix=/usr/local -ac_config_libobj_dir=. -cross_compiling=no -subdirs= -MFLAGS= -MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} - -# Maximum number of lines to put in a shell here document. -# This variable seems obsolete. It should probably be removed, and -# only ac_max_sed_lines should be used. -: ${ac_max_here_lines=38} - -# Identity of this package. -PACKAGE_NAME='GNU OpenMP Runtime Library' -PACKAGE_TARNAME='libgomp' -PACKAGE_VERSION='1.0' -PACKAGE_STRING='GNU OpenMP Runtime Library 1.0' -PACKAGE_BUGREPORT='' - -# Factoring default headers for most tests. -ac_includes_default="\ -#include <stdio.h> -#if HAVE_SYS_TYPES_H -# include <sys/types.h> -#endif -#if HAVE_SYS_STAT_H -# include <sys/stat.h> -#endif -#if STDC_HEADERS -# include <stdlib.h> -# include <stddef.h> -#else -# if HAVE_STDLIB_H -# include <stdlib.h> -# endif -#endif -#if HAVE_STRING_H -# if !STDC_HEADERS && HAVE_MEMORY_H -# include <memory.h> -# endif -# include <string.h> -#endif -#if HAVE_STRINGS_H -# include <strings.h> -#endif -#if HAVE_INTTYPES_H -# include <inttypes.h> -#else -# if HAVE_STDINT_H -# include <stdint.h> -# endif -#endif -#if HAVE_UNISTD_H -# include <unistd.h> -#endif" - -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS GENINSRC_TRUE GENINSRC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS AR ac_ct_AR RANLIB ac_ct_RANLIB PERL BUILD_INFO_TRUE BUILD_INFO_FALSE LN_S LIBTOOL enable_shared enable_static MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT FC FCFLAGS LDFLAGS ac_ct_FC libtool_VERSION CPP CPPFLAGS EGREP SECTION_LDFLAGS OPT_LDFLAGS LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE config_path XCFLAGS XLDFLAGS link_gomp USE_FORTRAN_TRUE USE_FORTRAN_FALSE OMP_LOCK_SIZE OMP_LOCK_ALIGN OMP_NEST_LOCK_SIZE OMP_NEST_LOCK_ALIGN OMP_LOCK_KIND OMP_NEST_LOCK_KIND LIBOBJS LTLIBOBJS' -ac_subst_files='' - -# Initialize some variables set by options. -ac_init_help= -ac_init_version=false -# The variables have the same names as the options, with -# dashes changed to underlines. -cache_file=/dev/null -exec_prefix=NONE -no_create= -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -verbose= -x_includes=NONE -x_libraries=NONE - -# Installation directory options. -# These are left unexpanded so users can "make install exec_prefix=/foo" -# and all the variables that are supposed to be based on exec_prefix -# by default will actually change. -# Use braces instead of parens because sh, perl, etc. also accept them. -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' -includedir='${prefix}/include' -oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' - -ac_prev= -for ac_option -do - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case $ac_option in - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir=$ac_optarg ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build_alias ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build_alias=$ac_optarg ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file=$ac_optarg ;; - - --config-cache | -C) - cache_file=config.cache ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir=$ac_optarg ;; - - -disable-* | --disable-*) - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/-/_/g'` - eval "enable_$ac_feature=no" ;; - - -enable-* | --enable-*) - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid feature name: $ac_feature" >&2 - { (exit 1); exit 1; }; } - ac_feature=`echo $ac_feature | sed 's/-/_/g'` - case $ac_option in - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; - *) ac_optarg=yes ;; - esac - eval "enable_$ac_feature='$ac_optarg'" ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix=$ac_optarg ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he | -h) - ac_init_help=long ;; - -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) - ac_init_help=recursive ;; - -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) - ac_init_help=short ;; - - -host | --host | --hos | --ho) - ac_prev=host_alias ;; - -host=* | --host=* | --hos=* | --ho=*) - host_alias=$ac_optarg ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir=$ac_optarg ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir=$ac_optarg ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir=$ac_optarg ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir=$ac_optarg ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir=$ac_optarg ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir=$ac_optarg ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c | -n) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir=$ac_optarg ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix=$ac_optarg ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix=$ac_optarg ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix=$ac_optarg ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name=$ac_optarg ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir=$ac_optarg ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir=$ac_optarg ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site=$ac_optarg ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir=$ac_optarg ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir=$ac_optarg ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target_alias ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target_alias=$ac_optarg ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers | -V) - ac_init_version=: ;; - - -with-* | --with-*) - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package| sed 's/-/_/g'` - case $ac_option in - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; - *) ac_optarg=yes ;; - esac - eval "with_$ac_package='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` - # Reject names that are not valid shell variable names. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid package name: $ac_package" >&2 - { (exit 1); exit 1; }; } - ac_package=`echo $ac_package | sed 's/-/_/g'` - eval "with_$ac_package=no" ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes=$ac_optarg ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries=$ac_optarg ;; - - -*) { echo "$as_me: error: unrecognized option: $ac_option -Try \`$0 --help' for more information." >&2 - { (exit 1); exit 1; }; } - ;; - - *=*) - ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` - # Reject names that are not valid shell variable names. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 - { (exit 1); exit 1; }; } - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` - eval "$ac_envvar='$ac_optarg'" - export $ac_envvar ;; - - *) - # FIXME: should be removed in autoconf 3.0. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2 - expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - echo "$as_me: WARNING: invalid host type: $ac_option" >&2 - : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} - ;; - - esac -done - -if test -n "$ac_prev"; then - ac_option=--`echo $ac_prev | sed 's/_/-/g'` - { echo "$as_me: error: missing argument to $ac_option" >&2 - { (exit 1); exit 1; }; } -fi - -# Be sure to have absolute paths. -for ac_var in exec_prefix prefix -do - eval ac_val=$`echo $ac_var` - case $ac_val in - [\\/$]* | ?:[\\/]* | NONE | '' ) ;; - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; };; - esac -done - -# Be sure to have absolute paths. -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ - localstatedir libdir includedir oldincludedir infodir mandir -do - eval ac_val=$`echo $ac_var` - case $ac_val in - [\\/$]* | ?:[\\/]* ) ;; - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 - { (exit 1); exit 1; }; };; - esac -done - -# There might be people who depend on the old broken behavior: `$host' -# used to hold the argument of --host etc. -# FIXME: To remove some day. -build=$build_alias -host=$host_alias -target=$target_alias - -# FIXME: To remove some day. -if test "x$host_alias" != x; then - if test "x$build_alias" = x; then - cross_compiling=maybe - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. - If a cross compiler is detected then cross compile mode will be used." >&2 - elif test "x$build_alias" != "x$host_alias"; then - cross_compiling=yes - fi -fi - -ac_tool_prefix= -test -n "$host_alias" && ac_tool_prefix=$host_alias- - -test "$silent" = yes && exec 6>/dev/null - - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_confdir=`(dirname "$0") 2>/dev/null || -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$0" : 'X\(//\)[^/]' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$0" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - srcdir=$ac_confdir - if test ! -r "$srcdir/$ac_unique_file"; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r "$srcdir/$ac_unique_file"; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 - { (exit 1); exit 1; }; } - else - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 - { (exit 1); exit 1; }; } - fi -fi -(cd $srcdir && test -r "./$ac_unique_file") 2>/dev/null || - { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 - { (exit 1); exit 1; }; } -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` -ac_env_build_alias_set=${build_alias+set} -ac_env_build_alias_value=$build_alias -ac_cv_env_build_alias_set=${build_alias+set} -ac_cv_env_build_alias_value=$build_alias -ac_env_host_alias_set=${host_alias+set} -ac_env_host_alias_value=$host_alias -ac_cv_env_host_alias_set=${host_alias+set} -ac_cv_env_host_alias_value=$host_alias -ac_env_target_alias_set=${target_alias+set} -ac_env_target_alias_value=$target_alias -ac_cv_env_target_alias_set=${target_alias+set} -ac_cv_env_target_alias_value=$target_alias -ac_env_FC_set=${FC+set} -ac_env_FC_value=$FC -ac_cv_env_FC_set=${FC+set} -ac_cv_env_FC_value=$FC -ac_env_FCFLAGS_set=${FCFLAGS+set} -ac_env_FCFLAGS_value=$FCFLAGS -ac_cv_env_FCFLAGS_set=${FCFLAGS+set} -ac_cv_env_FCFLAGS_value=$FCFLAGS -ac_env_LDFLAGS_set=${LDFLAGS+set} -ac_env_LDFLAGS_value=$LDFLAGS -ac_cv_env_LDFLAGS_set=${LDFLAGS+set} -ac_cv_env_LDFLAGS_value=$LDFLAGS -ac_env_CPP_set=${CPP+set} -ac_env_CPP_value=$CPP -ac_cv_env_CPP_set=${CPP+set} -ac_cv_env_CPP_value=$CPP -ac_env_CPPFLAGS_set=${CPPFLAGS+set} -ac_env_CPPFLAGS_value=$CPPFLAGS -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} -ac_cv_env_CPPFLAGS_value=$CPPFLAGS - -# -# Report the --help message. -# -if test "$ac_init_help" = "long"; then - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat <<_ACEOF -\`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems. - -Usage: $0 [OPTION]... [VAR=VALUE]... - -To assign environment variables (e.g., CC, CFLAGS...), specify them as -VAR=VALUE. See below for descriptions of some of the useful variables. - -Defaults for the options are specified in brackets. - -Configuration: - -h, --help display this help and exit - --help=short display options specific to this package - --help=recursive display the short help of all the included packages - -V, --version display version information and exit - -q, --quiet, --silent do not print \`checking...' messages - --cache-file=FILE cache test results in FILE [disabled] - -C, --config-cache alias for \`--cache-file=config.cache' - -n, --no-create do not create output files - --srcdir=DIR find the sources in DIR [configure dir or \`..'] - -_ACEOF - - cat <<_ACEOF -Installation directories: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [PREFIX] - -By default, \`make install' will install all the files in -\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify -an installation prefix other than \`$ac_default_prefix' using \`--prefix', -for instance \`--prefix=\$HOME'. - -For better control, use the options below. - -Fine tuning of the installation directories: - --bindir=DIR user executables [EPREFIX/bin] - --sbindir=DIR system admin executables [EPREFIX/sbin] - --libexecdir=DIR program executables [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data [PREFIX/share] - --sysconfdir=DIR read-only single-machine data [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] - --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --libdir=DIR object code libraries [EPREFIX/lib] - --includedir=DIR C header files [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc [/usr/include] - --infodir=DIR info documentation [PREFIX/info] - --mandir=DIR man documentation [PREFIX/man] -_ACEOF - - cat <<\_ACEOF - -Program names: - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM run sed PROGRAM on installed program names - -System types: - --build=BUILD configure for building on BUILD [guessed] - --host=HOST cross-compile to build programs to run on HOST [BUILD] - --target=TARGET configure for building compilers for TARGET [HOST] -_ACEOF -fi - -if test -n "$ac_init_help"; then - case $ac_init_help in - short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";; - esac - cat <<\_ACEOF - -Optional Features: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --enable-version-specific-runtime-libs - Specify that runtime libraries should be installed - in a compiler-specific directory [default=no] - --enable-linux-futex Use the Linux futex system call - [default=default] - --enable-generated-files-in-srcdir - put copies of generated files in source dir intended - for creating source tarballs for users without - texinfo bison or flex. [default=no] - --enable-multilib build many library versions (default) - --disable-dependency-tracking speeds up one-time build - --enable-dependency-tracking do not reject slow dependency extractors - --enable-shared=PKGS build shared libraries default=yes - --enable-static=PKGS build static libraries default=yes - --enable-fast-install=PKGS optimize for fast installation default=yes - --disable-libtool-lock avoid locking (might break parallel builds) - --enable-maintainer-mode enable make rules and dependencies not useful - (and sometimes confusing) to the casual installer - --enable-tls Use thread-local storage [default=yes] - --enable-symvers=STYLE enables symbol versioning of the shared library - [default=yes] - -Optional Packages: - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-gnu-ld assume the C compiler uses GNU ld default=no - --with-pic try to use only PIC/non-PIC objects default=use both - -Some influential environment variables: - CC C compiler command - CFLAGS C compiler flags - LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a - nonstandard directory <lib dir> - CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have - headers in a nonstandard directory <include dir> - FC Fortran compiler command - FCFLAGS Fortran compiler flags - CPP C preprocessor - -Use these variables to override the choices made by `configure' or to help -it to find libraries and programs with nonstandard names/locations. - -_ACEOF -fi - -if test "$ac_init_help" = "recursive"; then - # If there are subdirs, report their specific --help. - ac_popdir=`pwd` - for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue - test -d $ac_dir || continue - ac_builddir=. - -if test "$ac_dir" != .; then - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A "../" for each directory in $ac_dir_suffix. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` -else - ac_dir_suffix= ac_top_builddir= -fi - -case $srcdir in - .) # No --srcdir option. We are building in place. - ac_srcdir=. - if test -z "$ac_top_builddir"; then - ac_top_srcdir=. - else - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` - fi ;; - [\\/]* | ?:[\\/]* ) # Absolute path. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir ;; - *) # Relative path. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_builddir$srcdir ;; -esac - -# Do not use `cd foo && pwd` to compute absolute paths, because -# the directories may not exist. -case `pwd` in -.) ac_abs_builddir="$ac_dir";; -*) - case "$ac_dir" in - .) ac_abs_builddir=`pwd`;; - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; - *) ac_abs_builddir=`pwd`/"$ac_dir";; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_builddir=${ac_top_builddir}.;; -*) - case ${ac_top_builddir}. in - .) ac_abs_top_builddir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_srcdir=$ac_srcdir;; -*) - case $ac_srcdir in - .) ac_abs_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_srcdir=$ac_top_srcdir;; -*) - case $ac_top_srcdir in - .) ac_abs_top_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; - esac;; -esac - - cd $ac_dir - # Check for guested configure; otherwise get Cygnus style configure. - if test -f $ac_srcdir/configure.gnu; then - echo - $SHELL $ac_srcdir/configure.gnu --help=recursive - elif test -f $ac_srcdir/configure; then - echo - $SHELL $ac_srcdir/configure --help=recursive - elif test -f $ac_srcdir/configure.ac || - test -f $ac_srcdir/configure.in; then - echo - $ac_configure --help - else - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 - fi - cd $ac_popdir - done -fi - -test -n "$ac_init_help" && exit 0 -if $ac_init_version; then - cat <<\_ACEOF -GNU OpenMP Runtime Library configure 1.0 -generated by GNU Autoconf 2.59 - -Copyright (C) 2003 Free Software Foundation, Inc. -This configure script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it. -_ACEOF - exit 0 -fi -exec 5>config.log -cat >&5 <<_ACEOF -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. - -It was created by GNU OpenMP Runtime Library $as_me 1.0, which was -generated by GNU Autoconf 2.59. Invocation command line was - - $ $0 $@ - -_ACEOF -{ -cat <<_ASUNAME -## --------- ## -## Platform. ## -## --------- ## - -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` - -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` -hostinfo = `(hostinfo) 2>/dev/null || echo unknown` -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` - -_ASUNAME - -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - echo "PATH: $as_dir" -done - -} >&5 - -cat >&5 <<_ACEOF - - -## ----------- ## -## Core tests. ## -## ----------- ## - -_ACEOF - - -# Keep a trace of the command line. -# Strip out --no-create and --no-recursion so they do not pile up. -# Strip out --silent because we don't want to record it for future runs. -# Also quote any args containing shell meta-characters. -# Make two passes to allow for proper duplicate-argument suppression. -ac_configure_args= -ac_configure_args0= -ac_configure_args1= -ac_sep= -ac_must_keep_next=false -for ac_pass in 1 2 -do - for ac_arg - do - case $ac_arg in - -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - continue ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - case $ac_pass in - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; - 2) - ac_configure_args1="$ac_configure_args1 '$ac_arg'" - if test $ac_must_keep_next = true; then - ac_must_keep_next=false # Got value, back to normal. - else - case $ac_arg in - *=* | --config-cache | -C | -disable-* | --disable-* \ - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ - | -with-* | --with-* | -without-* | --without-* | --x) - case "$ac_configure_args0 " in - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; - esac - ;; - -* ) ac_must_keep_next=true ;; - esac - fi - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" - # Get rid of the leading space. - ac_sep=" " - ;; - esac - done -done -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } - -# When interrupted or exit'd, cleanup temporary files, and complete -# config.log. We remove comments because anyway the quotes in there -# would cause problems or look ugly. -# WARNING: Be sure not to use single quotes in there, as some shells, -# such as our DU 5.0 friend, will then `close' the trap. -trap 'exit_status=$? - # Save into config.log some information that might help in debugging. - { - echo - - cat <<\_ASBOX -## ---------------- ## -## Cache variables. ## -## ---------------- ## -_ASBOX - echo - # The following way of writing the cache mishandles newlines in values, -{ - (set) 2>&1 | - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in - *ac_space=\ *) - sed -n \ - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" - ;; - *) - sed -n \ - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" - ;; - esac; -} - echo - - cat <<\_ASBOX -## ----------------- ## -## Output variables. ## -## ----------------- ## -_ASBOX - echo - for ac_var in $ac_subst_vars - do - eval ac_val=$`echo $ac_var` - echo "$ac_var='"'"'$ac_val'"'"'" - done | sort - echo - - if test -n "$ac_subst_files"; then - cat <<\_ASBOX -## ------------- ## -## Output files. ## -## ------------- ## -_ASBOX - echo - for ac_var in $ac_subst_files - do - eval ac_val=$`echo $ac_var` - echo "$ac_var='"'"'$ac_val'"'"'" - done | sort - echo - fi - - if test -s confdefs.h; then - cat <<\_ASBOX -## ----------- ## -## confdefs.h. ## -## ----------- ## -_ASBOX - echo - sed "/^$/d" confdefs.h | sort - echo - fi - test "$ac_signal" != 0 && - echo "$as_me: caught signal $ac_signal" - echo "$as_me: exit $exit_status" - } >&5 - rm -f core *.core && - rm -rf conftest* confdefs* conf$$* $ac_clean_files && - exit $exit_status - ' 0 -for ac_signal in 1 2 13 15; do - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal -done -ac_signal=0 - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo >confdefs.h - -# Predefined preprocessor variables. - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_NAME "$PACKAGE_NAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_VERSION "$PACKAGE_VERSION" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_STRING "$PACKAGE_STRING" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" -_ACEOF - - -# Let the site file select an alternate cache file if it wants to. -# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 -echo "$as_me: loading site script $ac_site_file" >&6;} - sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special - # files actually), so we avoid doing that. - if test -f "$cache_file"; then - { echo "$as_me:$LINENO: loading cache $cache_file" >&5 -echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . $cache_file;; - *) . ./$cache_file;; - esac - fi -else - { echo "$as_me:$LINENO: creating cache $cache_file" >&5 -echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file -fi - -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in `(set) 2>&1 | - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val="\$ac_cv_env_${ac_var}_value" - eval ac_new_val="\$ac_env_${ac_var}_value" - case $ac_old_set,$ac_new_set in - set,) - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,);; - *) - if test "x$ac_old_val" != "x$ac_new_val"; then - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 -echo "$as_me: former value: $ac_old_val" >&2;} - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 -echo "$as_me: current value: $ac_new_val" >&2;} - ac_cache_corrupted=: - fi;; - esac - # Pass precious variables to config.status. - if test "$ac_new_set" = set; then - case $ac_new_val in - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; - *) ac_arg=$ac_var=$ac_new_val ;; - esac - case " $ac_configure_args " in - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; - esac - fi -done -if $ac_cache_corrupted; then - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 -echo "$as_me: error: changes in the environment can compromise the build" >&2;} - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} - { (exit 1); exit 1; }; } -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - - - - - - - - - - - - - - - - - - - - - - - - - - - ac_config_headers="$ac_config_headers config.h" - - -# ------- -# Options -# ------- - -echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5 -echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6 - # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given. -if test "${enable_version_specific_runtime_libs+set}" = set; then - enableval="$enable_version_specific_runtime_libs" - - case "$enableval" in - yes|no) ;; - *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5 -echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;} - { (exit 1); exit 1; }; } ;; - esac - -else - enable_version_specific_runtime_libs=no -fi; - -echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5 -echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6 - -echo "$as_me:$LINENO: checking for --enable-linux-futex" >&5 -echo $ECHO_N "checking for --enable-linux-futex... $ECHO_C" >&6 - # Check whether --enable-linux-futex or --disable-linux-futex was given. -if test "${enable_linux_futex+set}" = set; then - enableval="$enable_linux_futex" - - case "$enableval" in - yes|no|default) ;; - *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5 -echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;} - { (exit 1); exit 1; }; } ;; - esac - -else - enable_linux_futex=default -fi; - -echo "$as_me:$LINENO: result: $enable_linux_futex" >&5 -echo "${ECHO_T}$enable_linux_futex" >&6 - -# We would like our source tree to be readonly. However when releases or -# pre-releases are generated, the flex/bison generated files as well as the -# various formats of manuals need to be included along with the rest of the -# sources. Therefore we have --enable-generated-files-in-srcdir to do -# just that. -echo "$as_me:$LINENO: checking for --enable-generated-files-in-srcdir" >&5 -echo $ECHO_N "checking for --enable-generated-files-in-srcdir... $ECHO_C" >&6 - # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given. -if test "${enable_generated_files_in_srcdir+set}" = set; then - enableval="$enable_generated_files_in_srcdir" - - case "$enableval" in - yes|no) ;; - *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable generated-files-in-srcdir" >&5 -echo "$as_me: error: Unknown argument to enable/disable generated-files-in-srcdir" >&2;} - { (exit 1); exit 1; }; } ;; - esac - -else - enable_generated_files_in_srcdir=no -fi; - -echo "$as_me:$LINENO: result: $enable_generated_files_in_srcdir" >&5 -echo "${ECHO_T}$enable_generated_files_in_srcdir" >&6 - - -if test "$enable_generated_files_in_srcdir" = yes; then - GENINSRC_TRUE= - GENINSRC_FALSE='#' -else - GENINSRC_TRUE='#' - GENINSRC_FALSE= -fi - - - -# ------- -# ------- - -# Gets build, host, target, *_vendor, *_cpu, *_os, etc. -# -# You will slowly go insane if you do not grok the following fact: when -# building this library, the top-level /target/ becomes the library's /host/. -# -# configure then causes --target to default to --host, exactly like any -# other package using autoconf. Therefore, 'target' and 'host' will -# always be the same. This makes sense both for native and cross compilers -# just think about it for a little while. :-) -# -# Also, if this library is being configured as part of a cross compiler, the -# top-level configure script will pass the "real" host as $with_cross_host. -# -# Do not delete or change the following two lines. For why, see -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html -ac_aux_dir= -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - elif test -f $ac_dir/shtool; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/shtool install -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 -echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} - { (exit 1); exit 1; }; } -fi -ac_config_guess="$SHELL $ac_aux_dir/config.guess" -ac_config_sub="$SHELL $ac_aux_dir/config.sub" -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. - -# Make sure we can run config.sub. -$ac_config_sub sun4 >/dev/null 2>&1 || - { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 -echo "$as_me: error: cannot run $ac_config_sub" >&2;} - { (exit 1); exit 1; }; } - -echo "$as_me:$LINENO: checking build system type" >&5 -echo $ECHO_N "checking build system type... $ECHO_C" >&6 -if test "${ac_cv_build+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_build_alias=$build_alias -test -z "$ac_cv_build_alias" && - ac_cv_build_alias=`$ac_config_guess` -test -z "$ac_cv_build_alias" && - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 -echo "$as_me: error: cannot guess build type; you must specify one" >&2;} - { (exit 1); exit 1; }; } -ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 -echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} - { (exit 1); exit 1; }; } - -fi -echo "$as_me:$LINENO: result: $ac_cv_build" >&5 -echo "${ECHO_T}$ac_cv_build" >&6 -build=$ac_cv_build -build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` - - -echo "$as_me:$LINENO: checking host system type" >&5 -echo $ECHO_N "checking host system type... $ECHO_C" >&6 -if test "${ac_cv_host+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_host_alias=$host_alias -test -z "$ac_cv_host_alias" && - ac_cv_host_alias=$ac_cv_build_alias -ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 -echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} - { (exit 1); exit 1; }; } - -fi -echo "$as_me:$LINENO: result: $ac_cv_host" >&5 -echo "${ECHO_T}$ac_cv_host" >&6 -host=$ac_cv_host -host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` - - -echo "$as_me:$LINENO: checking target system type" >&5 -echo $ECHO_N "checking target system type... $ECHO_C" >&6 -if test "${ac_cv_target+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_target_alias=$target_alias -test "x$ac_cv_target_alias" = "x" && - ac_cv_target_alias=$ac_cv_host_alias -ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 -echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} - { (exit 1); exit 1; }; } - -fi -echo "$as_me:$LINENO: result: $ac_cv_target" >&5 -echo "${ECHO_T}$ac_cv_target" >&6 -target=$ac_cv_target -target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` - - -# The aliases save the names the user supplied, while $host etc. -# will get canonicalized. -test -n "$target_alias" && - test "$program_prefix$program_suffix$program_transform_name" = \ - NONENONEs,x,x, && - program_prefix=${target_alias}- -target_alias=${target_alias-$host_alias} - -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the -# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. -# 1.9.0: minimum required version -# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch -# of other PACKAGE_* variables will, however, and there's nothing -# we can do about that; they come from AC_INIT). -# foreign: we don't follow the normal rules for GNU packages (no COPYING -# file in the top srcdir, etc, etc), so stop complaining. -# no-dependencies: turns off auto dependency generation (just for now) -# -Wall: turns on all automake warnings... -# -Wno-portability: ...except this one, since GNU make is required. -# -Wno-override: ... and this one, since we do want this in testsuite. -am__api_version="1.9" -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - done - done - ;; -esac -done - - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL=$ac_install_sh - fi -fi -echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6 - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - -echo "$as_me:$LINENO: checking whether build environment is sane" >&5 -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$*" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$*" != "X $srcdir/configure conftest.file" \ - && test "$*" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&5 -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken -alias in your environment" >&2;} - { (exit 1); exit 1; }; } - fi - - test "$2" = conftest.file - ) -then - # Ok. - : -else - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! -Check your system clock" >&5 -echo "$as_me: error: newly created file is older than distributed files! -Check your system clock" >&2;} - { (exit 1); exit 1; }; } -fi -echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6 -test "$program_prefix" != NONE && - program_transform_name="s,^,$program_prefix,;$program_transform_name" -# Use a double $ so make ignores it. -test "$program_suffix" != NONE && - program_transform_name="s,\$,$program_suffix,;$program_transform_name" -# Double any \ or $. echo might interpret backslashes. -# By default was `s,x,x', remove it if useless. -cat <<\_ACEOF >conftest.sed -s/[\\$]/&&/g;s/;s,x,x,$// -_ACEOF -program_transform_name=`echo $program_transform_name | sed -f conftest.sed` -rm conftest.sed - -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` - -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} -fi - -if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then - # We used to keeping the `.' as first argument, in order to - # allow $(mkdir_p) to be used without argument. As in - # $(mkdir_p) $(somedir) - # where $(somedir) is conditionally defined. However this is wrong - # for two reasons: - # 1. if the package is installed by a user who cannot write `.' - # make install will fail, - # 2. the above comment should most certainly read - # $(mkdir_p) $(DESTDIR)$(somedir) - # so it does not work when $(somedir) is undefined and - # $(DESTDIR) is not. - # To support the latter case, we have to write - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), - # so the `.' trick is pointless. - mkdir_p='mkdir -p --' -else - # On NextStep and OpenStep, the `mkdir' command does not - # recognize any option. It will interpret all options as - # directories to create, and then abort because `.' already - # exists. - for d in ./-p ./--version; - do - test -d $d && rmdir $d - done - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. - if test -f "$ac_aux_dir/mkinstalldirs"; then - mkdir_p='$(mkinstalldirs)' - else - mkdir_p='$(install_sh) -d' - fi -fi - -for ac_prog in gawk mawk nawk awk -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_AWK+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AWK"; then - ac_cv_prog_AWK="$AWK" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_AWK="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - echo "$as_me:$LINENO: result: $AWK" >&5 -echo "${ECHO_T}$AWK" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - test -n "$AWK" && break -done - -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.make <<\_ACEOF -all: - @echo 'ac_maketemp="$(MAKE)"' -_ACEOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` -if test -n "$ac_maketemp"; then - eval ac_cv_prog_make_${ac_make}_set=yes -else - eval ac_cv_prog_make_${ac_make}_set=no -fi -rm -f conftest.make -fi -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then - echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6 - SET_MAKE= -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 - SET_MAKE="MAKE=${MAKE-make}" -fi - -rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null - -# test to see if srcdir already configured -if test "`cd $srcdir && pwd`" != "`pwd`" && - test -f $srcdir/config.status; then - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} - { (exit 1); exit 1; }; } -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi - - -# Define the identity of the package. - PACKAGE='libgomp' - VERSION='1.0' - - -cat >>confdefs.h <<_ACEOF -#define PACKAGE "$PACKAGE" -_ACEOF - - -cat >>confdefs.h <<_ACEOF -#define VERSION "$VERSION" -_ACEOF - -# Some tools Automake needs. - -ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} - - -AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} - - -AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} - - -AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} - - -MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} - -install_sh=${install_sh-"$am_aux_dir/install-sh"} - -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -if test "$cross_compiling" != no; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_STRIP="strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -echo "${ECHO_T}$ac_ct_STRIP" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - STRIP=$ac_ct_STRIP -else - STRIP="$ac_cv_prog_STRIP" -fi - -fi -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" - -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -# Always define AMTAR for backward compatibility. - -AMTAR=${AMTAR-"${am_missing_run}tar"} - -am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' - - - - - -# Default to --enable-multilib -# Check whether --enable-multilib or --disable-multilib was given. -if test "${enable_multilib+set}" = set; then - enableval="$enable_multilib" - case "$enableval" in - yes) multilib=yes ;; - no) multilib=no ;; - *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5 -echo "$as_me: error: bad value $enableval for multilib option" >&2;} - { (exit 1); exit 1; }; } ;; - esac -else - multilib=yes -fi; - -# We may get other options which we leave undocumented: -# --with-target-subdir, --with-multisrctop, --with-multisubdir -# See config-ml.in if you want the gory details. - -if test "$srcdir" = "."; then - if test "$with_target_subdir" != "."; then - multi_basedir="$srcdir/$with_multisrctop../.." - else - multi_basedir="$srcdir/$with_multisrctop.." - fi -else - multi_basedir="$srcdir/.." -fi - - -# Even if the default multilib is not a cross compilation, -# it may be that some of the other multilibs are. -if test $cross_compiling = no && test $multilib = yes \ - && test "x${with_multisubdir}" != x ; then - cross_compiling=maybe -fi - - ac_config_commands="$ac_config_commands default-1" - - -# Calculate toolexeclibdir -# Also toolexecdir, though it's only used in toolexeclibdir -case ${enable_version_specific_runtime_libs} in - yes) - # Need the gcc compiler version to know where to install libraries - # and header files if --enable-version-specific-runtime-libs option - # is selected. - toolexecdir='$(libdir)/gcc/$(target_alias)' - toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' - ;; - no) - if test -n "$with_cross_host" && - test x"$with_cross_host" != x"no"; then - # Install a library built with a cross compiler in tooldir, not libdir. - toolexecdir='$(exec_prefix)/$(target_alias)' - toolexeclibdir='$(toolexecdir)/lib' - else - toolexecdir='$(libdir)/gcc-lib/$(target_alias)' - toolexeclibdir='$(libdir)' - fi - multi_os_directory=`$CC -print-multi-os-directory` - case $multi_os_directory in - .) ;; # Avoid trailing /. - *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; - esac - ;; -esac - - - -# Check the compiler. -# The same as in boehm-gc and libstdc++. Have to borrow it from there. -# We must force CC to /not/ be precious variables; otherwise -# the wrong, non-multilib-adjusted value will be used in multilibs. -# As a side effect, we have to subst CFLAGS ourselves. - - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="gcc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - CC=$ac_ct_CC -else - CC="$ac_cv_prog_CC" -fi - -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - CC=$ac_ct_CC -else - CC="$ac_cv_prog_CC" -fi - -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" - fi -fi -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - echo "$as_me:$LINENO: result: $CC" >&5 -echo "${ECHO_T}$CC" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_CC"; then - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 -echo "${ECHO_T}$ac_ct_CC" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - test -n "$ac_ct_CC" && break -done - - CC=$ac_ct_CC -fi - -fi - - -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&5 -echo "$as_me: error: no acceptable C compiler found in \$PATH -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - -# Provide some information about the compiler. -echo "$as_me:$LINENO:" \ - "checking for C compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 - (eval $ac_compiler --version </dev/null >&5) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 - (eval $ac_compiler -v </dev/null >&5) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 - (eval $ac_compiler -V </dev/null >&5) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files a.out a.exe b.out" -# Try to create an executable without -o first, disregard a.out. -# It will help us diagnose broken compilers, and finding out an intuition -# of exeext. -echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` -if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 - (eval $ac_link_default) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # Find the output, starting from the most likely. This scheme is -# not robust to junk in `.', hence go to wildcards (a.*) only as a last -# resort. - -# Be careful to initialize this variable, since it used to be cached. -# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. -ac_cv_exeext= -# b.out is created by i960 compilers. -for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out -do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) - ;; - conftest.$ac_ext ) - # This is the source file. - ;; - [ab].out ) - # We found the default executable, but exeext='' is most - # certainly right. - break;; - *.* ) - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - # FIXME: I believe we export ac_cv_exeext for Libtool, - # but it would be cool to find out if it's true. Does anybody - # maintain Libtool? --akim. - export ac_cv_exeext - break;; - * ) - break;; - esac -done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables -See \`config.log' for more details." >&5 -echo "$as_me: error: C compiler cannot create executables -See \`config.log' for more details." >&2;} - { (exit 77); exit 77; }; } -fi - -ac_exeext=$ac_cv_exeext -echo "$as_me:$LINENO: result: $ac_file" >&5 -echo "${ECHO_T}$ac_file" >&6 - -# Check the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -echo "$as_me:$LINENO: checking whether the C compiler works" >&5 -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 -# If not cross compiling, check that we can run a simple program. -if test "$cross_compiling" != yes; then - if { ac_try='./$ac_file' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - cross_compiling=no - else - if test "$cross_compiling" = maybe; then - cross_compiling=yes - else - { { echo "$as_me:$LINENO: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run C compiled programs. -If you meant to cross compile, use \`--host'. -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } - fi - fi -fi -echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6 - -rm -f a.out a.exe conftest$ac_cv_exeext b.out -ac_clean_files=$ac_clean_files_save -# Check the compiler produces executables we can run. If not, either -# the compiler is broken, or we cross compile. -echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 -echo "$as_me:$LINENO: result: $cross_compiling" >&5 -echo "${ECHO_T}$cross_compiling" >&6 - -echo "$as_me:$LINENO: checking for suffix of executables" >&5 -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - # If both `conftest.exe' and `conftest' are `present' (well, observable) -# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will -# work properly (i.e., refer to `conftest.exe'), while it won't with -# `rm'. -for ac_file in conftest.exe conftest conftest.*; do - test -f "$ac_file" || continue - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; - *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - export ac_cv_exeext - break;; - * ) break;; - esac -done -else - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest$ac_cv_exeext -echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 -echo "${ECHO_T}$ac_cv_exeext" >&6 - -rm -f conftest.$ac_ext -EXEEXT=$ac_cv_exeext -ac_exeext=$EXEEXT -echo "$as_me:$LINENO: checking for suffix of object files" >&5 -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 -if test "${ac_cv_objext+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.o conftest.obj -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do - case $ac_file in - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` - break;; - esac -done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute suffix of object files: cannot compile -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -rm -f conftest.$ac_cv_objext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 -echo "${ECHO_T}$ac_cv_objext" >&6 -OBJEXT=$ac_cv_objext -ac_objext=$OBJEXT -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 -if test "${ac_cv_c_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_compiler_gnu=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - -fi -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 -GCC=`test $ac_compiler_gnu = yes && echo yes` -ac_test_CFLAGS=${CFLAGS+set} -ac_save_CFLAGS=$CFLAGS -CFLAGS="-g" -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 -if test "${ac_cv_prog_cc_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_prog_cc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_prog_cc_g=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 -if test "$ac_test_CFLAGS" = set; then - CFLAGS=$ac_save_CFLAGS -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 -if test "${ac_cv_prog_cc_stdc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_cv_prog_cc_stdc=no -ac_save_CC=$CC -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <stdarg.h> -#include <stdio.h> -#include <sys/types.h> -#include <sys/stat.h> -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ -struct buf { int x; }; -FILE * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (p, i) - char **p; - int i; -{ - return p[i]; -} -static char *f (char * (*g) (char **, int), char **p, ...) -{ - char *s; - va_list v; - va_start (v,p); - s = g (p, va_arg (v,int)); - va_end (v); - return s; -} - -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has - function prototypes and stuff, but not '\xHH' hex character constants. - These don't provoke an error unfortunately, instead are silently treated - as 'x'. The following induces an error, until -std1 is added to get - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an - array size at least. It's necessary to write '\x00'==0 to get something - that's true only with -std1. */ -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; - -int test (int i, double x); -struct s1 {int (*f) (int a);}; -struct s2 {int (*f) (double a);}; -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); -int argc; -char **argv; -int -main () -{ -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; - ; - return 0; -} -_ACEOF -# Don't try gcc -ansi; that turns off useful extensions and -# breaks some systems' header files. -# AIX -qlanglvl=ansi -# Ultrix and OSF/1 -std1 -# HP-UX 10.20 and later -Ae -# HP-UX older versions -Aa -D_HPUX_SOURCE -# SVR4 -Xc -D__EXTENSIONS__ -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" -do - CC="$ac_save_CC $ac_arg" - rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_prog_cc_stdc=$ac_arg -break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -fi -rm -f conftest.err conftest.$ac_objext -done -rm -f conftest.$ac_ext conftest.$ac_objext -CC=$ac_save_CC - -fi - -case "x$ac_cv_prog_cc_stdc" in - x|xno) - echo "$as_me:$LINENO: result: none needed" >&5 -echo "${ECHO_T}none needed" >&6 ;; - *) - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 - CC="$CC $ac_cv_prog_cc_stdc" ;; -esac - -# Some people use a C++ compiler to compile C. Since we use `exit', -# in C++ we need to declare it. In case someone uses the same compiler -# for both compiling C and C++ we need to have the C++ compiler decide -# the declaration of exit, since it's the most demanding environment. -cat >conftest.$ac_ext <<_ACEOF -#ifndef __cplusplus - choke me -#endif -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - for ac_declaration in \ - '' \ - 'extern "C" void std::exit (int) throw (); using std::exit;' \ - 'extern "C" void std::exit (int); using std::exit;' \ - 'extern "C" void exit (int) throw ();' \ - 'extern "C" void exit (int);' \ - 'void exit (int);' -do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_declaration -#include <stdlib.h> -int -main () -{ -exit (42); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -continue -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_declaration -int -main () -{ -exit (42); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -done -rm -f conftest* -if test -n "$ac_declaration"; then - echo '#ifdef __cplusplus' >>confdefs.h - echo $ac_declaration >>confdefs.h - echo '#endif' >>confdefs.h -fi - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -DEPDIR="${am__leading_dot}deps" - - ac_config_commands="$ac_config_commands depfiles" - - -am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo done -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi -fi - - -echo "$as_me:$LINENO: result: $_am_result" >&5 -echo "${ECHO_T}$_am_result" >&6 -rm -f confinc confmf - -# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; then - enableval="$enable_dependency_tracking" - -fi; -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' -fi - - -if test "x$enable_dependency_tracking" != xno; then - AMDEP_TRUE= - AMDEP_FALSE='#' -else - AMDEP_TRUE='#' - AMDEP_FALSE= -fi - - - - -depcc="$CC" am_compiler_list= - -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_CC_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with - # Solaris 8's {/usr,}/bin/sh. - touch sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # or remarks (even with -Werror). So we grep stderr for any message - # that says an option was ignored or not supported. - # When given -MP, icc 7.0 and 7.1 complain thusly: - # icc: Command line warning: ignoring option '-M'; no argument required - # The diagnosis changed in icc 8.0: - # icc: Command line remark: option '-MP' not supported - if (grep 'ignoring option' conftest.err || - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else - am_cv_CC_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CC_dependencies_compiler_type=none -fi - -fi -echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type - - - -if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then - am__fastdepCC_TRUE= - am__fastdepCC_FALSE='#' -else - am__fastdepCC_TRUE='#' - am__fastdepCC_FALSE= -fi - - - - - - -# In order to override CFLAGS_FOR_TARGET, all of our special flags go -# in XCFLAGS. But we need them in CFLAGS during configury. So put them -# in both places for now and restore CFLAGS at the end of config. -save_CFLAGS="$CFLAGS" - -# Add -Wall -Werror if we are using GCC. -if test "x$GCC" = "xyes"; then - XCFLAGS="$XCFLAGS -Wall -Werror" -fi - -# Find other programs we need. -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. -set dummy ${ac_tool_prefix}ar; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_AR+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$AR"; then - ac_cv_prog_AR="$AR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_AR="${ac_tool_prefix}ar" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -AR=$ac_cv_prog_AR -if test -n "$AR"; then - echo "$as_me:$LINENO: result: $AR" >&5 -echo "${ECHO_T}$AR" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -fi -if test -z "$ac_cv_prog_AR"; then - ac_ct_AR=$AR - # Extract the first word of "ar", so it can be a program name with args. -set dummy ar; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_AR"; then - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_AR="ar" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -ac_ct_AR=$ac_cv_prog_ac_ct_AR -if test -n "$ac_ct_AR"; then - echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 -echo "${ECHO_T}$ac_ct_AR" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - AR=$ac_ct_AR -else - AR="$ac_cv_prog_AR" -fi - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_RANLIB+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -RANLIB=$ac_cv_prog_RANLIB -if test -n "$RANLIB"; then - echo "$as_me:$LINENO: result: $RANLIB" >&5 -echo "${ECHO_T}$RANLIB" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -fi -if test -z "$ac_cv_prog_RANLIB"; then - ac_ct_RANLIB=$RANLIB - # Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_RANLIB"; then - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_RANLIB="ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error" -fi -fi -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB -if test -n "$ac_ct_RANLIB"; then - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 -echo "${ECHO_T}$ac_ct_RANLIB" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - RANLIB=$ac_ct_RANLIB -else - RANLIB="$ac_cv_prog_RANLIB" -fi - -# Extract the first word of "perl", so it can be a program name with args. -set dummy perl; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_path_PERL+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $PERL in - [\\/]* | ?:[\\/]*) - ac_cv_path_PERL="$PERL" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - - test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error" - ;; -esac -fi -PERL=$ac_cv_path_PERL - -if test -n "$PERL"; then - echo "$as_me:$LINENO: result: $PERL" >&5 -echo "${ECHO_T}$PERL" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.make <<\_ACEOF -all: - @echo 'ac_maketemp="$(MAKE)"' -_ACEOF -# GNU make sometimes prints "make[1]: Entering...", which would confuse us. -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` -if test -n "$ac_maketemp"; then - eval ac_cv_prog_make_${ac_make}_set=yes -else - eval ac_cv_prog_make_${ac_make}_set=no -fi -rm -f conftest.make -fi -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then - echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6 - SET_MAKE= -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 - SET_MAKE="MAKE=${MAKE-make}" -fi - -# Find a good install program. We prefer a C program (faster), -# so one script is as good as another. But avoid the broken or -# incompatible versions: -# SysV /etc/install, /usr/sbin/install -# SunOS /usr/etc/install -# IRIX /sbin/install -# AIX /bin/install -# AmigaOS /C/install, which installs bootblocks on floppy discs -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag -# AFS /usr/afsws/bin/install, which mishandles nonexistent args -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" -# OS/2's system install, which has a completely different semantic -# ./install, which can be erroneously created by make from ./install.sh. -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 -if test -z "$INSTALL"; then -if test "${ac_cv_path_install+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in - ./ | .// | /cC/* | \ - /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ - /usr/ucb/* ) ;; - *) - # OSF1 and SCO ODT 3.0 have their own names for install. - # Don't use installbsd from OSF since it installs stuff as root - # by default. - for ac_prog in ginstall scoinst install; do - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then - if test $ac_prog = install && - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # AIX install. It has an incompatible calling convention. - : - elif test $ac_prog = install && - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then - # program-specific install script used by HP pwplus--don't use. - : - else - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" - break 3 - fi - fi - done - done - ;; -esac -done - - -fi - if test "${ac_cv_path_install+set}" = set; then - INSTALL=$ac_cv_path_install - else - # As a last resort, use the slow shell script. We don't cache a - # path for INSTALL within a source directory, because that will - # break other packages using the cache if that directory is - # removed, or if the path is relative. - INSTALL=$ac_install_sh - fi -fi -echo "$as_me:$LINENO: result: $INSTALL" >&5 -echo "${ECHO_T}$INSTALL" >&6 - -# Use test -z because SunOS4 sh mishandles braces in ${var-val}. -# It thinks the first close brace ends the variable substitution. -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' - -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' - -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' - - -# See if makeinfo has been installed and is modern enough -# that we can use it. - - # Extract the first word of "makeinfo", so it can be a program name with args. -set dummy makeinfo; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_MAKEINFO+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$MAKEINFO"; then - ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_MAKEINFO="makeinfo" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -MAKEINFO=$ac_cv_prog_MAKEINFO -if test -n "$MAKEINFO"; then - echo "$as_me:$LINENO: result: $MAKEINFO" >&5 -echo "${ECHO_T}$MAKEINFO" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - if test -n "$MAKEINFO"; then - # Found it, now check the version. - echo "$as_me:$LINENO: checking for modern makeinfo" >&5 -echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6 -if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_prog_version=`eval $MAKEINFO --version 2>&1 | - sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` - - case $ac_prog_version in - '') gcc_cv_prog_makeinfo_modern=no;; - 4.[4-9]*) gcc_cv_prog_makeinfo_modern=yes;; - *) gcc_cv_prog_makeinfo_modern=no;; - esac - if test $gcc_cv_prog_makeinfo_modern = no; then - MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo" - fi - -fi -echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5 -echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6 - else - gcc_cv_prog_makeinfo_modern=no - fi - - - -if test $gcc_cv_prog_makeinfo_modern = "yes"; then - BUILD_INFO_TRUE= - BUILD_INFO_FALSE='#' -else - BUILD_INFO_TRUE='#' - BUILD_INFO_FALSE= -fi - - - -# Configure libtool -# Check whether --enable-shared or --disable-shared was given. -if test "${enable_shared+set}" = set; then - enableval="$enable_shared" - p=${PACKAGE-default} -case $enableval in -yes) enable_shared=yes ;; -no) enable_shared=no ;; -*) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," - for pkg in $enableval; do - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS="$ac_save_ifs" - ;; -esac -else - enable_shared=yes -fi; -# Check whether --enable-static or --disable-static was given. -if test "${enable_static+set}" = set; then - enableval="$enable_static" - p=${PACKAGE-default} -case $enableval in -yes) enable_static=yes ;; -no) enable_static=no ;; -*) - enable_static=no - # Look at the argument we got. We use all the common list separators. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," - for pkg in $enableval; do - if test "X$pkg" = "X$p"; then - enable_static=yes - fi - done - IFS="$ac_save_ifs" - ;; -esac -else - enable_static=yes -fi; -# Check whether --enable-fast-install or --disable-fast-install was given. -if test "${enable_fast_install+set}" = set; then - enableval="$enable_fast_install" - p=${PACKAGE-default} -case $enableval in -yes) enable_fast_install=yes ;; -no) enable_fast_install=no ;; -*) - enable_fast_install=no - # Look at the argument we got. We use all the common list separators. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," - for pkg in $enableval; do - if test "X$pkg" = "X$p"; then - enable_fast_install=yes - fi - done - IFS="$ac_save_ifs" - ;; -esac -else - enable_fast_install=yes -fi; - -# Check whether --with-gnu-ld or --without-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then - withval="$with_gnu_ld" - test "$withval" = no || with_gnu_ld=yes -else - with_gnu_ld=no -fi; -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - echo "$as_me:$LINENO: checking for ld used by GCC" >&5 -echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | [A-Za-z]:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the path of ld - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - echo "$as_me:$LINENO: checking for GNU ld" >&5 -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 -else - echo "$as_me:$LINENO: checking for non-GNU ld" >&5 -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 -fi -if test "${lt_cv_path_LD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some GNU ld's only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then - test "$with_gnu_ld" != no && break - else - test "$with_gnu_ld" != yes && break - fi - fi - done - IFS="$ac_save_ifs" -else - lt_cv_path_LD="$LD" # Let the user override the test with a path. -fi -fi - -LD="$lt_cv_path_LD" -if test -n "$LD"; then - echo "$as_me:$LINENO: result: $LD" >&5 -echo "${ECHO_T}$LD" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} - { (exit 1); exit 1; }; } -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 -if test "${lt_cv_prog_gnu_ld+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # I'd rather use --version here, but apparently some GNU ld's only accept -v. -if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then - lt_cv_prog_gnu_ld=yes -else - lt_cv_prog_gnu_ld=no -fi -fi -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 -with_gnu_ld=$lt_cv_prog_gnu_ld - - -echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 -if test "${lt_cv_ld_reload_flag+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_ld_reload_flag='-r' -fi -echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 -reload_flag=$lt_cv_ld_reload_flag -test -n "$reload_flag" && reload_flag=" $reload_flag" - -echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 -if test "${lt_cv_path_NM+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$NM"; then - # Let the user override the test. - lt_cv_path_NM="$NM" -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do - test -z "$ac_dir" && ac_dir=. - tmp_nm=$ac_dir/${ac_tool_prefix}nm - if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then - # Check to see if the nm accepts a BSD-compat flag. - # Adding the `sed 1q' prevents false positives on HP-UX, which says: - # nm: unknown option "B" ignored - # Tru64's nm complains that /dev/null is an invalid object file - if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then - lt_cv_path_NM="$tmp_nm -B" - break - elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then - lt_cv_path_NM="$tmp_nm -p" - break - else - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but - continue # so that we can try to find one that supports BSD flags - fi - fi - done - IFS="$ac_save_ifs" - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm -fi -fi - -NM="$lt_cv_path_NM" -echo "$as_me:$LINENO: result: $NM" >&5 -echo "${ECHO_T}$NM" >&6 - -echo "$as_me:$LINENO: checking whether ln -s works" >&5 -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 -LN_S=$as_ln_s -if test "$LN_S" = "ln -s"; then - echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6 -else - echo "$as_me:$LINENO: result: no, using $LN_S" >&5 -echo "${ECHO_T}no, using $LN_S" >&6 -fi - -echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 -echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 -if test "${lt_cv_deplibs_check_method+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_file_magic_cmd='$MAGIC_CMD' -lt_cv_file_magic_test_file= -lt_cv_deplibs_check_method='unknown' -# Need to set the preceding variable on all platforms that support -# interlibrary dependencies. -# 'none' -- dependencies not supported. -# `unknown' -- same as none, but documents that we really don't know. -# 'pass_all' -- all dependencies passed with no checks. -# 'test_compile' -- check by making test program. -# 'file_magic [regex]' -- check by looking for files in library path -# which responds to the $file_magic_cmd with a given egrep regex. -# If you have `file' or equivalent on your system and you're not sure -# whether `pass_all' will *always* work, you probably want this one. - -case $host_os in -aix*) - lt_cv_deplibs_check_method=pass_all - ;; - -beos*) - lt_cv_deplibs_check_method=pass_all - ;; - -bsdi4*) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' - lt_cv_file_magic_cmd='/usr/bin/file -L' - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - -cygwin* | mingw* |pw32*) - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' - lt_cv_file_magic_cmd='$OBJDUMP -f' - ;; - -darwin* | rhapsody*) - # this will be overwritten by pass_all, but leave it in just in case - lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' - lt_cv_file_magic_cmd='/usr/bin/file -L' - case "$host_os" in - rhapsody* | darwin1.012) - lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' - ;; - *) # Darwin 1.3 on - lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' - ;; - esac - lt_cv_deplibs_check_method=pass_all - ;; - -freebsd* | kfreebsd*-gnu) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - case $host_cpu in - i*86 ) - # Not sure whether the presence of OpenBSD here was a mistake. - # Let's accept both of them until this is cleared up. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` - ;; - esac - else - lt_cv_deplibs_check_method=pass_all - fi - ;; - -gnu*) - lt_cv_deplibs_check_method=pass_all - ;; - -hpux10.20*|hpux11*) - case $host_cpu in - hppa*) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=/usr/lib/libc.sl - ;; - ia64*) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so - ;; - esac - ;; - -irix5* | irix6*) - case $host_os in - irix5*) - # this will be overridden with pass_all, but let us keep it just in case - lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" - ;; - *) - case $LD in - *-32|*"-32 ") libmagic=32-bit;; - *-n32|*"-n32 ") libmagic=N32;; - *-64|*"-64 ") libmagic=64-bit;; - *) libmagic=never-match;; - esac - # this will be overridden with pass_all, but let us keep it just in case - lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" - ;; - esac - lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` - lt_cv_deplibs_check_method=pass_all - ;; - -# This must be Linux ELF. -linux-gnu*) - lt_cv_deplibs_check_method=pass_all - ;; - -netbsd* | knetbsd*-gnu) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' - else - lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' - fi - ;; - -newsos6) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=/usr/lib/libnls.so - ;; - -osf3* | osf4* | osf5*) - # this will be overridden with pass_all, but let us keep it just in case - lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' - lt_cv_file_magic_test_file=/shlib/libc.so - lt_cv_deplibs_check_method=pass_all - ;; - -sco3.2v5*) - lt_cv_deplibs_check_method=pass_all - ;; - -solaris*) - lt_cv_deplibs_check_method=pass_all - lt_cv_file_magic_test_file=/lib/libc.so - ;; - -sysv5uw[78]* | sysv4*uw2*) - lt_cv_deplibs_check_method=pass_all - ;; - -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) - case $host_vendor in - ncr) - lt_cv_deplibs_check_method=pass_all - ;; - motorola) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` - ;; - esac - ;; -esac - -fi -echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 -file_magic_cmd=$lt_cv_file_magic_cmd -deplibs_check_method=$lt_cv_deplibs_check_method - - - - - -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! - -# find the maximum length of command line arguments -echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 -if test "${lt_cv_sys_max_cmd_len+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - i=0 - teststring="ABCD" - - case $build_os in - msdosdjgpp*) - # On DJGPP, this test can blow up pretty badly due to problems in libc - # (any single argument exceeding 2000 bytes causes a buffer overrun - # during glob expansion). Even if it were fixed, the result of this - # check would be larger than it should be. - lt_cv_sys_max_cmd_len=12288; # 12K is about right - ;; - - cygwin* | mingw*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, - # you end up with a "frozen" computer, even though with patience - # the test eventually succeeds (with a max line length of 256k). - # Instead, let's just punt: use the minimum linelength reported by - # all of the supported platforms: 8192 (on NT/2K/XP). - lt_cv_sys_max_cmd_len=8192; - ;; - - amigaos*) - # On AmigaOS with pdksh, this test takes hours, literally. - # So we just punt and use a minimum line length of 8192. - lt_cv_sys_max_cmd_len=8192; - ;; - - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) - # This has been around since 386BSD, at least. Likely further. - if test -x /sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` - elif test -x /usr/sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` - else - lt_cv_sys_max_cmd_len=65536 # usable default for *BSD - fi - # And add a safety zone - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - ;; - esac - -fi - -if test -n "$lt_cv_sys_max_cmd_len" ; then - echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 -else - echo "$as_me:$LINENO: result: none" >&5 -echo "${ECHO_T}none" >&6 -fi - - -# Only perform the check for file, if the check method requires it -case $deplibs_check_method in -file_magic*) - if test "$file_magic_cmd" = '$MAGIC_CMD'; then - echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $MAGIC_CMD in - /*) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; - ?:/*) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. - ;; - *) - ac_save_MAGIC_CMD="$MAGIC_CMD" - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="/usr/bin:$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/${ac_tool_prefix}file; then - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - egrep "$file_magic_regex" > /dev/null; then - : - else - cat <<EOF 1>&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -EOF - fi ;; - esac - fi - break - fi - done - IFS="$ac_save_ifs" - MAGIC_CMD="$ac_save_MAGIC_CMD" - ;; -esac -fi - -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 -echo "${ECHO_T}$MAGIC_CMD" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -if test -z "$lt_cv_path_MAGIC_CMD"; then - if test -n "$ac_tool_prefix"; then - echo "$as_me:$LINENO: checking for file" >&5 -echo $ECHO_N "checking for file... $ECHO_C" >&6 -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - case $MAGIC_CMD in - /*) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; - ?:/*) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. - ;; - *) - ac_save_MAGIC_CMD="$MAGIC_CMD" - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="/usr/bin:$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/file; then - lt_cv_path_MAGIC_CMD="$ac_dir/file" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - egrep "$file_magic_regex" > /dev/null; then - : - else - cat <<EOF 1>&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -EOF - fi ;; - esac - fi - break - fi - done - IFS="$ac_save_ifs" - MAGIC_CMD="$ac_save_MAGIC_CMD" - ;; -esac -fi - -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 -echo "${ECHO_T}$MAGIC_CMD" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - else - MAGIC_CMD=: - fi -fi - - fi - ;; -esac - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_RANLIB+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -RANLIB=$ac_cv_prog_RANLIB -if test -n "$RANLIB"; then - echo "$as_me:$LINENO: result: $RANLIB" >&5 -echo "${ECHO_T}$RANLIB" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -fi -if test -z "$ac_cv_prog_RANLIB"; then - ac_ct_RANLIB=$RANLIB - # Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_RANLIB"; then - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_RANLIB="ranlib" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" -fi -fi -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB -if test -n "$ac_ct_RANLIB"; then - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 -echo "${ECHO_T}$ac_ct_RANLIB" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - RANLIB=$ac_ct_RANLIB -else - RANLIB="$ac_cv_prog_RANLIB" -fi - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_STRIP="${ac_tool_prefix}strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - echo "$as_me:$LINENO: result: $STRIP" >&5 -echo "${ECHO_T}$STRIP" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -fi -if test -z "$ac_cv_prog_STRIP"; then - ac_ct_STRIP=$STRIP - # Extract the first word of "strip", so it can be a program name with args. -set dummy strip; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_STRIP"; then - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_STRIP="strip" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" -fi -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 -echo "${ECHO_T}$ac_ct_STRIP" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - STRIP=$ac_ct_STRIP -else - STRIP="$ac_cv_prog_STRIP" -fi - - -# Check for any special flags to pass to ltconfig. -libtool_flags="--cache-file=$cache_file" -test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" -test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" -test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" -test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" -test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" - - -# Check whether --enable-libtool-lock or --disable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then - enableval="$enable_libtool_lock" - -fi; -test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" -test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" - - -# Check whether --with-pic or --without-pic was given. -if test "${with_pic+set}" = set; then - withval="$with_pic" - pic_mode="$withval" -else - pic_mode=default -fi; -test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" -test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" - -# Some flags need to be propagated to the compiler or linker for good -# libtool support. -case $host in -*-*-irix6*) - # Find out which ABI we are using. - echo '#line 4353 "configure"' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - if test "$lt_cv_prog_gnu_ld" = yes; then - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -melf32bsmip" - ;; - *N32*) - LD="${LD-ld} -melf32bmipn32" - ;; - *64-bit*) - LD="${LD-ld} -melf64bmip" - ;; - esac - else - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -32" - ;; - *N32*) - LD="${LD-ld} -n32" - ;; - *64-bit*) - LD="${LD-ld} -64" - ;; - esac - fi - fi - rm -rf conftest* - ;; - -ia64-*-hpux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - case "`/usr/bin/file conftest.o`" in - *ELF-32*) - HPUX_IA64_MODE="32" - ;; - *ELF-64*) - HPUX_IA64_MODE="64" - ;; - esac - fi - rm -rf conftest* - ;; - -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) - # Find out which ABI we are using. - echo 'int i;' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - case "`/usr/bin/file conftest.o`" in - *32-bit*) - case $host in - x86_64-*linux*) - LD="${LD-ld} -m elf_i386" - ;; - ppc64-*linux*|powerpc64-*linux*) - LD="${LD-ld} -m elf32ppclinux" - ;; - s390x-*linux*) - LD="${LD-ld} -m elf_s390" - ;; - sparc64-*linux*) - LD="${LD-ld} -m elf32_sparc" - ;; - esac - ;; - *64-bit*) - case $host in - x86_64-*linux*) - LD="${LD-ld} -m elf_x86_64" - ;; - ppc*-*linux*|powerpc*-*linux*) - LD="${LD-ld} -m elf64ppc" - ;; - s390*-*linux*) - LD="${LD-ld} -m elf64_s390" - ;; - sparc*-*linux*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - -*-*-sco3.2v5*) - # On SCO OpenServer 5, we need -belf to get full-featured binaries. - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -belf" - echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 -if test "${lt_cv_cc_needs_belf+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - lt_cv_cc_needs_belf=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -lt_cv_cc_needs_belf=no -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -fi -echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf - CFLAGS="$SAVE_CFLAGS" - fi - ;; - - -esac - - -# Save cache, so that ltconfig can load it -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. - -_ACEOF - -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -{ - (set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n \ - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" - ;; - esac; -} | - sed ' - t clear - : clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - : end' >>confcache -if diff $cache_file confcache >/dev/null 2>&1; then :; else - if test -w $cache_file; then - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" - cat confcache >$cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -# Actually configure libtool. ac_aux_dir is where install-sh is found. -AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ -MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ -LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ -AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ -objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ -deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ -${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ -$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ -|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 -echo "$as_me: error: libtool configure failed" >&2;} - { (exit 1); exit 1; }; } - -# Reload cache, that may have been modified by ltconfig -if test -r "$cache_file"; then - # Some versions of bash will fail to source /dev/null (special - # files actually), so we avoid doing that. - if test -f "$cache_file"; then - { echo "$as_me:$LINENO: loading cache $cache_file" >&5 -echo "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . $cache_file;; - *) . ./$cache_file;; - esac - fi -else - { echo "$as_me:$LINENO: creating cache $cache_file" >&5 -echo "$as_me: creating cache $cache_file" >&6;} - >$cache_file -fi - - -# This can be used to rebuild libtool when needed -LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" - -# Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' - -# Redirect the config.log output again, so that the ltconfig log is not -# clobbered by the next message. -exec 5>>./config.log - - - - - - - - - -echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 -echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 - # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. -if test "${enable_maintainer_mode+set}" = set; then - enableval="$enable_maintainer_mode" - USE_MAINTAINER_MODE=$enableval -else - USE_MAINTAINER_MODE=no -fi; - echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 -echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 - - -if test $USE_MAINTAINER_MODE = yes; then - MAINTAINER_MODE_TRUE= - MAINTAINER_MODE_FALSE='#' -else - MAINTAINER_MODE_TRUE='#' - MAINTAINER_MODE_FALSE= -fi - - MAINT=$MAINTAINER_MODE_TRUE - - - -# We need gfortran to compile parts of the library -# We can't use AC_PROG_FC because it expects a fully working gfortran. -#AC_PROG_FC(gfortran) -FC="$GFORTRAN" -ac_ext=${FC_SRCEXT-f} -ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' -ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_fc_compiler_gnu -if test -n "$ac_tool_prefix"; then - for ac_prog in gfortran - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_FC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$FC"; then - ac_cv_prog_FC="$FC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_FC="$ac_tool_prefix$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -FC=$ac_cv_prog_FC -if test -n "$FC"; then - echo "$as_me:$LINENO: result: $FC" >&5 -echo "${ECHO_T}$FC" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - test -n "$FC" && break - done -fi -if test -z "$FC"; then - ac_ct_FC=$FC - for ac_prog in gfortran -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo "$as_me:$LINENO: checking for $ac_word" >&5 -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 -if test "${ac_cv_prog_ac_ct_FC+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test -n "$ac_ct_FC"; then - ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_FC="$ac_prog" - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 - break 2 - fi -done -done - -fi -fi -ac_ct_FC=$ac_cv_prog_ac_ct_FC -if test -n "$ac_ct_FC"; then - echo "$as_me:$LINENO: result: $ac_ct_FC" >&5 -echo "${ECHO_T}$ac_ct_FC" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - - test -n "$ac_ct_FC" && break -done - - FC=$ac_ct_FC -fi - - -# Provide some information about the compiler. -echo "$as_me:4763:" \ - "checking for Fortran compiler version" >&5 -ac_compiler=`set X $ac_compile; echo $2` -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 - (eval $ac_compiler --version </dev/null >&5) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 - (eval $ac_compiler -v </dev/null >&5) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 - (eval $ac_compiler -V </dev/null >&5) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } -rm -f a.out - -# If we don't use `.F' as extension, the preprocessor is not run on the -# input file. (Note that this only needs to work for GNU compilers.) -ac_save_ext=$ac_ext -ac_ext=F -echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5 -echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6 -if test "${ac_cv_fc_compiler_gnu+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF - program main -#ifndef __GNUC__ - choke me -#endif - - end -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_fc_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_compiler_gnu=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_compiler_gnu=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_fc_compiler_gnu=$ac_compiler_gnu - -fi -echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5 -echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6 -ac_ext=$ac_save_ext -ac_test_FFLAGS=${FCFLAGS+set} -ac_save_FFLAGS=$FCFLAGS -FCFLAGS= -echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5 -echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6 -if test "${ac_cv_prog_fc_g+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - FCFLAGS=-g -cat >conftest.$ac_ext <<_ACEOF - program main - - end -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_fc_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_prog_fc_g=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_prog_fc_g=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - -fi -echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5 -echo "${ECHO_T}$ac_cv_prog_fc_g" >&6 -if test "$ac_test_FFLAGS" = set; then - FCFLAGS=$ac_save_FFLAGS -elif test $ac_cv_prog_fc_g = yes; then - if test "x$ac_cv_fc_compiler_gnu" = xyes; then - FCFLAGS="-g -O2" - else - FCFLAGS="-g" - fi -else - if test "x$ac_cv_fc_compiler_gnu" = xyes; then - FCFLAGS="-O2" - else - FCFLAGS= - fi -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -FCFLAGS="$FCFLAGS -Wall" - -# For libtool versioning info, format is CURRENT:REVISION:AGE -libtool_VERSION=1:0:0 - - -# Check header files. -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then - if test "${ac_cv_prog_CPP+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Double quotes because CPP needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" - do - ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since - # <limits.h> exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include <limits.h> -#else -# include <assert.h> -#endif - Syntax error -_ACEOF -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether non-existent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <ac_nonexistent.h> -_ACEOF -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - break -fi - - done - ac_cv_prog_CPP=$CPP - -fi - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP -fi -echo "$as_me:$LINENO: result: $CPP" >&5 -echo "${ECHO_T}$CPP" >&6 -ac_preproc_ok=false -for ac_c_preproc_warn_flag in '' yes -do - # Use a header file that comes with gcc, so configuring glibc - # with a fresh cross-compiler works. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since - # <limits.h> exists even on freestanding compilers. - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. "Syntax error" is here to catch this case. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifdef __STDC__ -# include <limits.h> -#else -# include <assert.h> -#endif - Syntax error -_ACEOF -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Broken: fails on valid input. -continue -fi -rm -f conftest.err conftest.$ac_ext - - # OK, works on sane cases. Now check whether non-existent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <ac_nonexistent.h> -_ACEOF -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - # Broken: success on invalid input. -continue -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - # Passes both tests. -ac_preproc_ok=: -break -fi -rm -f conftest.err conftest.$ac_ext - -done -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. -rm -f conftest.err conftest.$ac_ext -if $ac_preproc_ok; then - : -else - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." >&5 -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -echo "$as_me:$LINENO: checking for egrep" >&5 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6 -if test "${ac_cv_prog_egrep+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if echo a | (grep -E '(a|b)') >/dev/null 2>&1 - then ac_cv_prog_egrep='grep -E' - else ac_cv_prog_egrep='egrep' - fi -fi -echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 -echo "${ECHO_T}$ac_cv_prog_egrep" >&6 - EGREP=$ac_cv_prog_egrep - - -echo "$as_me:$LINENO: checking for ANSI C header files" >&5 -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 -if test "${ac_cv_header_stdc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <stdlib.h> -#include <stdarg.h> -#include <string.h> -#include <float.h> - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_header_stdc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_header_stdc=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <string.h> - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <stdlib.h> - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then - : -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then - : -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <ctype.h> -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - exit(2); - exit (0); -} -_ACEOF -rm -f conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - : -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_cv_header_stdc=no -fi -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -fi -fi -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 -echo "${ECHO_T}$ac_cv_header_stdc" >&6 -if test $ac_cv_header_stdc = yes; then - -cat >>confdefs.h <<\_ACEOF -#define STDC_HEADERS 1 -_ACEOF - -fi - -echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 -echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 -if test "${ac_cv_header_time+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <sys/types.h> -#include <sys/time.h> -#include <time.h> - -int -main () -{ -if ((struct tm *) 0) -return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_header_time=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_header_time=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 -echo "${ECHO_T}$ac_cv_header_time" >&6 -if test $ac_cv_header_time = yes; then - -cat >>confdefs.h <<\_ACEOF -#define TIME_WITH_SYS_TIME 1 -_ACEOF - -fi - -# On IRIX 5.3, sys/types and inttypes.h are conflicting. - - - - - - - - - -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ - inttypes.h stdint.h unistd.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default - -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - eval "$as_ac_Header=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -eval "$as_ac_Header=no" -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - - - - - -for ac_header in unistd.h semaphore.h sys/loadavg.h sys/time.h -do -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 -else - # Is the header compilable? -echo "$as_me:$LINENO: checking $ac_header usability" >&5 -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -#include <$ac_header> -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_header_compiler=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_header_compiler=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 -echo "${ECHO_T}$ac_header_compiler" >&6 - -# Is the header present? -echo "$as_me:$LINENO: checking $ac_header presence" >&5 -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <$ac_header> -_ACEOF -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } >/dev/null; then - if test -s conftest.err; then - ac_cpp_err=$ac_c_preproc_warn_flag - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag - else - ac_cpp_err= - fi -else - ac_cpp_err=yes -fi -if test -z "$ac_cpp_err"; then - ac_header_preproc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_header_preproc=no -fi -rm -f conftest.err conftest.$ac_ext -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 -echo "${ECHO_T}$ac_header_preproc" >&6 - -# So? What about this header? -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in - yes:no: ) - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} - ac_header_preproc=yes - ;; - no:yes:* ) - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} - ( - cat <<\_ASBOX -## ----------------------------------------------------- ## -## Report this to the GNU OpenMP Runtime Library lists. ## -## ----------------------------------------------------- ## -_ASBOX - ) | - sed "s/^/$as_me: WARNING: /" >&2 - ;; -esac -echo "$as_me:$LINENO: checking for $ac_header" >&5 -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 -if eval "test \"\${$as_ac_Header+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - eval "$as_ac_Header=\$ac_header_preproc" -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 - -fi -if test `eval echo '${'$as_ac_Header'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - - - -inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` - -acx_cv_header_stdint=stddef.h -acx_cv_header_stdint_kind="(already complete)" -for i in stdint.h $inttype_headers; do - unset ac_cv_type_uintptr_t - unset ac_cv_type_uintmax_t - unset ac_cv_type_int_least32_t - unset ac_cv_type_int_fast32_t - unset ac_cv_type_uint64_t - echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6 - echo "$as_me:$LINENO: checking for uintmax_t" >&5 -echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6 -if test "${ac_cv_type_uintmax_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <sys/types.h> -#include <$i> - -int -main () -{ -if ((uintmax_t *) 0) - return 0; -if (sizeof (uintmax_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_uintmax_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_type_uintmax_t=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 -echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6 -if test $ac_cv_type_uintmax_t = yes; then - acx_cv_header_stdint=$i -else - continue -fi - - echo "$as_me:$LINENO: checking for uintptr_t" >&5 -echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 -if test "${ac_cv_type_uintptr_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <sys/types.h> -#include <$i> - -int -main () -{ -if ((uintptr_t *) 0) - return 0; -if (sizeof (uintptr_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_uintptr_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_type_uintptr_t=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 -echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 -if test $ac_cv_type_uintptr_t = yes; then - : -else - acx_cv_header_stdint_kind="(mostly complete)" -fi - - echo "$as_me:$LINENO: checking for int_least32_t" >&5 -echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6 -if test "${ac_cv_type_int_least32_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <sys/types.h> -#include <$i> - -int -main () -{ -if ((int_least32_t *) 0) - return 0; -if (sizeof (int_least32_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_int_least32_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_type_int_least32_t=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5 -echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6 -if test $ac_cv_type_int_least32_t = yes; then - : -else - acx_cv_header_stdint_kind="(mostly complete)" -fi - - echo "$as_me:$LINENO: checking for int_fast32_t" >&5 -echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6 -if test "${ac_cv_type_int_fast32_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <sys/types.h> -#include <$i> - -int -main () -{ -if ((int_fast32_t *) 0) - return 0; -if (sizeof (int_fast32_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_int_fast32_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_type_int_fast32_t=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5 -echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6 -if test $ac_cv_type_int_fast32_t = yes; then - : -else - acx_cv_header_stdint_kind="(mostly complete)" -fi - - echo "$as_me:$LINENO: checking for uint64_t" >&5 -echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 -if test "${ac_cv_type_uint64_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <sys/types.h> -#include <$i> - -int -main () -{ -if ((uint64_t *) 0) - return 0; -if (sizeof (uint64_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_uint64_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_type_uint64_t=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 -echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 -if test $ac_cv_type_uint64_t = yes; then - : -else - acx_cv_header_stdint_kind="(lacks uint64_t)" -fi - - break -done -if test "$acx_cv_header_stdint" = stddef.h; then - acx_cv_header_stdint_kind="(lacks uintmax_t)" - for i in stdint.h $inttype_headers; do - unset ac_cv_type_uintptr_t - unset ac_cv_type_uint32_t - unset ac_cv_type_uint64_t - echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6 - echo "$as_me:$LINENO: checking for uint32_t" >&5 -echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 -if test "${ac_cv_type_uint32_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <sys/types.h> -#include <$i> - -int -main () -{ -if ((uint32_t *) 0) - return 0; -if (sizeof (uint32_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_uint32_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_type_uint32_t=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 -echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 -if test $ac_cv_type_uint32_t = yes; then - acx_cv_header_stdint=$i -else - continue -fi - - echo "$as_me:$LINENO: checking for uint64_t" >&5 -echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 -if test "${ac_cv_type_uint64_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <sys/types.h> -#include <$i> - -int -main () -{ -if ((uint64_t *) 0) - return 0; -if (sizeof (uint64_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_uint64_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_type_uint64_t=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 -echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 - - echo "$as_me:$LINENO: checking for uintptr_t" >&5 -echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 -if test "${ac_cv_type_uintptr_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <sys/types.h> -#include <$i> - -int -main () -{ -if ((uintptr_t *) 0) - return 0; -if (sizeof (uintptr_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_uintptr_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_type_uintptr_t=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 -echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 - - break - done -fi -if test "$acx_cv_header_stdint" = stddef.h; then - acx_cv_header_stdint_kind="(u_intXX_t style)" - for i in sys/types.h $inttype_headers; do - unset ac_cv_type_u_int32_t - unset ac_cv_type_u_int64_t - echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6 - echo "$as_me:$LINENO: checking for u_int32_t" >&5 -echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 -if test "${ac_cv_type_u_int32_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <sys/types.h> -#include <$i> - -int -main () -{ -if ((u_int32_t *) 0) - return 0; -if (sizeof (u_int32_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_u_int32_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_type_u_int32_t=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 -echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 -if test $ac_cv_type_u_int32_t = yes; then - acx_cv_header_stdint=$i -else - continue -fi - - echo "$as_me:$LINENO: checking for u_int64_t" >&5 -echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 -if test "${ac_cv_type_u_int64_t+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <sys/types.h> -#include <$i> - -int -main () -{ -if ((u_int64_t *) 0) - return 0; -if (sizeof (u_int64_t)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_u_int64_t=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_type_u_int64_t=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 -echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 - - break - done -fi -if test "$acx_cv_header_stdint" = stddef.h; then - acx_cv_header_stdint_kind="(using manual detection)" -fi - -test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no -test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no -test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no -test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no -test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no - -# ----------------- Summarize what we found so far - -echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5 -echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6 - -case `$as_basename gstdint.h || -$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ - Xgstdint.h : 'X\(//\)$' \| \ - Xgstdint.h : 'X\(/\)$' \| \ - . : '\(.\)' 2>/dev/null || -echo X/gstdint.h | - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } - /^X\/\(\/\/\)$/{ s//\1/; q; } - /^X\/\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` in - stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 -echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; - inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 -echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; - *) ;; -esac - -echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 -echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6 - -# ----------------- done included file, check C basic types -------- - -# Lacking an uintptr_t? Test size of void * -case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in - stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5 -echo $ECHO_N "checking for void *... $ECHO_C" >&6 -if test "${ac_cv_type_void_p+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -if ((void * *) 0) - return 0; -if (sizeof (void *)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_void_p=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_type_void_p=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 -echo "${ECHO_T}$ac_cv_type_void_p" >&6 - -echo "$as_me:$LINENO: checking size of void *" >&5 -echo $ECHO_N "checking size of void *... $ECHO_C" >&6 -if test "${ac_cv_sizeof_void_p+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$ac_cv_type_void_p" = yes; then - # The cast to unsigned long works around a bug in the HP C Compiler - # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects - # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. - # This bug is HP SR number 8606223364. - if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_lo=0 ac_mid=0 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_hi=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_hi=-1 ac_mid=-1 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_lo=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_hi=`expr '(' $ac_mid ')' - 1` - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid` -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_lo= ac_hi= -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_hi=$ac_mid -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_lo=`expr '(' $ac_mid ')' + 1` -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -done -case $ac_lo in -?*) ac_cv_sizeof_void_p=$ac_lo;; -'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute sizeof (void *), 77 -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } ;; -esac -else - if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run test program while cross compiling -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -long longval () { return (long) (sizeof (void *)); } -unsigned long ulongval () { return (long) (sizeof (void *)); } -#include <stdio.h> -#include <stdlib.h> -int -main () -{ - - FILE *f = fopen ("conftest.val", "w"); - if (! f) - exit (1); - if (((long) (sizeof (void *))) < 0) - { - long i = longval (); - if (i != ((long) (sizeof (void *)))) - exit (1); - fprintf (f, "%ld\n", i); - } - else - { - unsigned long i = ulongval (); - if (i != ((long) (sizeof (void *)))) - exit (1); - fprintf (f, "%lu\n", i); - } - exit (ferror (f) || fclose (f) != 0); - - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_sizeof_void_p=`cat conftest.val` -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute sizeof (void *), 77 -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -fi -rm -f conftest.val -else - ac_cv_sizeof_void_p=0 -fi -fi -echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 -echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 -cat >>confdefs.h <<_ACEOF -#define SIZEOF_VOID_P $ac_cv_sizeof_void_p -_ACEOF - - ;; -esac - -# Lacking an uint64_t? Test size of long -case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in - stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5 -echo $ECHO_N "checking for long... $ECHO_C" >&6 -if test "${ac_cv_type_long+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -if ((long *) 0) - return 0; -if (sizeof (long)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_long=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_type_long=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 -echo "${ECHO_T}$ac_cv_type_long" >&6 - -echo "$as_me:$LINENO: checking size of long" >&5 -echo $ECHO_N "checking size of long... $ECHO_C" >&6 -if test "${ac_cv_sizeof_long+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$ac_cv_type_long" = yes; then - # The cast to unsigned long works around a bug in the HP C Compiler - # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects - # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. - # This bug is HP SR number 8606223364. - if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_lo=0 ac_mid=0 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_hi=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_hi=-1 ac_mid=-1 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_lo=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_hi=`expr '(' $ac_mid ')' - 1` - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid` -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_lo= ac_hi= -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_hi=$ac_mid -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_lo=`expr '(' $ac_mid ')' + 1` -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -done -case $ac_lo in -?*) ac_cv_sizeof_long=$ac_lo;; -'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute sizeof (long), 77 -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } ;; -esac -else - if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run test program while cross compiling -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -long longval () { return (long) (sizeof (long)); } -unsigned long ulongval () { return (long) (sizeof (long)); } -#include <stdio.h> -#include <stdlib.h> -int -main () -{ - - FILE *f = fopen ("conftest.val", "w"); - if (! f) - exit (1); - if (((long) (sizeof (long))) < 0) - { - long i = longval (); - if (i != ((long) (sizeof (long)))) - exit (1); - fprintf (f, "%ld\n", i); - } - else - { - unsigned long i = ulongval (); - if (i != ((long) (sizeof (long)))) - exit (1); - fprintf (f, "%lu\n", i); - } - exit (ferror (f) || fclose (f) != 0); - - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_sizeof_long=`cat conftest.val` -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute sizeof (long), 77 -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -fi -rm -f conftest.val -else - ac_cv_sizeof_long=0 -fi -fi -echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 -echo "${ECHO_T}$ac_cv_sizeof_long" >&6 -cat >>confdefs.h <<_ACEOF -#define SIZEOF_LONG $ac_cv_sizeof_long -_ACEOF - - ;; -esac - -if test $acx_cv_header_stdint = stddef.h; then - # Lacking a good header? Test size of everything and deduce all types. - echo "$as_me:$LINENO: checking for int" >&5 -echo $ECHO_N "checking for int... $ECHO_C" >&6 -if test "${ac_cv_type_int+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -if ((int *) 0) - return 0; -if (sizeof (int)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_int=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_type_int=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 -echo "${ECHO_T}$ac_cv_type_int" >&6 - -echo "$as_me:$LINENO: checking size of int" >&5 -echo $ECHO_N "checking size of int... $ECHO_C" >&6 -if test "${ac_cv_sizeof_int+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$ac_cv_type_int" = yes; then - # The cast to unsigned long works around a bug in the HP C Compiler - # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects - # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. - # This bug is HP SR number 8606223364. - if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_lo=0 ac_mid=0 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_hi=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_hi=-1 ac_mid=-1 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_lo=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_hi=`expr '(' $ac_mid ')' - 1` - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid` -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_lo= ac_hi= -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_hi=$ac_mid -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_lo=`expr '(' $ac_mid ')' + 1` -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -done -case $ac_lo in -?*) ac_cv_sizeof_int=$ac_lo;; -'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute sizeof (int), 77 -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } ;; -esac -else - if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run test program while cross compiling -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -long longval () { return (long) (sizeof (int)); } -unsigned long ulongval () { return (long) (sizeof (int)); } -#include <stdio.h> -#include <stdlib.h> -int -main () -{ - - FILE *f = fopen ("conftest.val", "w"); - if (! f) - exit (1); - if (((long) (sizeof (int))) < 0) - { - long i = longval (); - if (i != ((long) (sizeof (int)))) - exit (1); - fprintf (f, "%ld\n", i); - } - else - { - unsigned long i = ulongval (); - if (i != ((long) (sizeof (int)))) - exit (1); - fprintf (f, "%lu\n", i); - } - exit (ferror (f) || fclose (f) != 0); - - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_sizeof_int=`cat conftest.val` -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute sizeof (int), 77 -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -fi -rm -f conftest.val -else - ac_cv_sizeof_int=0 -fi -fi -echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 -echo "${ECHO_T}$ac_cv_sizeof_int" >&6 -cat >>confdefs.h <<_ACEOF -#define SIZEOF_INT $ac_cv_sizeof_int -_ACEOF - - - echo "$as_me:$LINENO: checking for short" >&5 -echo $ECHO_N "checking for short... $ECHO_C" >&6 -if test "${ac_cv_type_short+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -if ((short *) 0) - return 0; -if (sizeof (short)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_short=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_type_short=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 -echo "${ECHO_T}$ac_cv_type_short" >&6 - -echo "$as_me:$LINENO: checking size of short" >&5 -echo $ECHO_N "checking size of short... $ECHO_C" >&6 -if test "${ac_cv_sizeof_short+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$ac_cv_type_short" = yes; then - # The cast to unsigned long works around a bug in the HP C Compiler - # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects - # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. - # This bug is HP SR number 8606223364. - if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_lo=0 ac_mid=0 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_hi=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_hi=-1 ac_mid=-1 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_lo=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_hi=`expr '(' $ac_mid ')' - 1` - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid` -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_lo= ac_hi= -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_hi=$ac_mid -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_lo=`expr '(' $ac_mid ')' + 1` -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -done -case $ac_lo in -?*) ac_cv_sizeof_short=$ac_lo;; -'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute sizeof (short), 77 -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } ;; -esac -else - if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run test program while cross compiling -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -long longval () { return (long) (sizeof (short)); } -unsigned long ulongval () { return (long) (sizeof (short)); } -#include <stdio.h> -#include <stdlib.h> -int -main () -{ - - FILE *f = fopen ("conftest.val", "w"); - if (! f) - exit (1); - if (((long) (sizeof (short))) < 0) - { - long i = longval (); - if (i != ((long) (sizeof (short)))) - exit (1); - fprintf (f, "%ld\n", i); - } - else - { - unsigned long i = ulongval (); - if (i != ((long) (sizeof (short)))) - exit (1); - fprintf (f, "%lu\n", i); - } - exit (ferror (f) || fclose (f) != 0); - - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_sizeof_short=`cat conftest.val` -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute sizeof (short), 77 -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -fi -rm -f conftest.val -else - ac_cv_sizeof_short=0 -fi -fi -echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 -echo "${ECHO_T}$ac_cv_sizeof_short" >&6 -cat >>confdefs.h <<_ACEOF -#define SIZEOF_SHORT $ac_cv_sizeof_short -_ACEOF - - - echo "$as_me:$LINENO: checking for char" >&5 -echo $ECHO_N "checking for char... $ECHO_C" >&6 -if test "${ac_cv_type_char+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -if ((char *) 0) - return 0; -if (sizeof (char)) - return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_type_char=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_type_char=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 -echo "${ECHO_T}$ac_cv_type_char" >&6 - -echo "$as_me:$LINENO: checking size of char" >&5 -echo $ECHO_N "checking size of char... $ECHO_C" >&6 -if test "${ac_cv_sizeof_char+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if test "$ac_cv_type_char" = yes; then - # The cast to unsigned long works around a bug in the HP C Compiler - # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects - # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. - # This bug is HP SR number 8606223364. - if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_lo=0 ac_mid=0 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_hi=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_hi=-1 ac_mid=-1 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_lo=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_hi=`expr '(' $ac_mid ')' - 1` - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid` -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_lo= ac_hi= -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -int -main () -{ -static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_hi=$ac_mid -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_lo=`expr '(' $ac_mid ')' + 1` -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -done -case $ac_lo in -?*) ac_cv_sizeof_char=$ac_lo;; -'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute sizeof (char), 77 -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } ;; -esac -else - if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run test program while cross compiling -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -$ac_includes_default -long longval () { return (long) (sizeof (char)); } -unsigned long ulongval () { return (long) (sizeof (char)); } -#include <stdio.h> -#include <stdlib.h> -int -main () -{ - - FILE *f = fopen ("conftest.val", "w"); - if (! f) - exit (1); - if (((long) (sizeof (char))) < 0) - { - long i = longval (); - if (i != ((long) (sizeof (char)))) - exit (1); - fprintf (f, "%ld\n", i); - } - else - { - unsigned long i = ulongval (); - if (i != ((long) (sizeof (char)))) - exit (1); - fprintf (f, "%lu\n", i); - } - exit (ferror (f) || fclose (f) != 0); - - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_sizeof_char=`cat conftest.val` -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot compute sizeof (char), 77 -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -fi -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -fi -rm -f conftest.val -else - ac_cv_sizeof_char=0 -fi -fi -echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 -echo "${ECHO_T}$ac_cv_sizeof_char" >&6 -cat >>confdefs.h <<_ACEOF -#define SIZEOF_CHAR $ac_cv_sizeof_char -_ACEOF - - - - echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5 -echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6 - case "$ac_cv_sizeof_char" in - 1) acx_cv_type_int8_t=char ;; - *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5 -echo "$as_me: error: no 8-bit type" >&2;} - { (exit please report a bug); exit please report a bug; }; } - esac - echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5 -echo "${ECHO_T}$acx_cv_type_int8_t" >&6 - - echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5 -echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6 - case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in - 2:*) acx_cv_type_int16_t=int ;; - *:2) acx_cv_type_int16_t=short ;; - *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5 -echo "$as_me: error: no 16-bit type" >&2;} - { (exit please report a bug); exit please report a bug; }; } - esac - echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5 -echo "${ECHO_T}$acx_cv_type_int16_t" >&6 - - echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5 -echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6 - case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in - 4:*) acx_cv_type_int32_t=int ;; - *:4) acx_cv_type_int32_t=long ;; - *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5 -echo "$as_me: error: no 32-bit type" >&2;} - { (exit please report a bug); exit please report a bug; }; } - esac - echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5 -echo "${ECHO_T}$acx_cv_type_int32_t" >&6 -fi - -# These tests are here to make the output prettier - -if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then - case "$ac_cv_sizeof_long" in - 8) acx_cv_type_int64_t=long ;; - esac - echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5 -echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6 - echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 -echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6 -fi - -# Now we can use the above types - -if test "$ac_cv_type_uintptr_t" != yes; then - echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5 -echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6 - case $ac_cv_sizeof_void_p in - 2) acx_cv_type_intptr_t=int16_t ;; - 4) acx_cv_type_intptr_t=int32_t ;; - 8) acx_cv_type_intptr_t=int64_t ;; - *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5 -echo "$as_me: error: no equivalent for intptr_t" >&2;} - { (exit please report a bug); exit please report a bug; }; } - esac - echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5 -echo "${ECHO_T}$acx_cv_type_intptr_t" >&6 -fi - -# ----------------- done all checks, emit header ------------- - ac_config_commands="$ac_config_commands gstdint.h" - - - - -# Check to see if -pthread or -lpthread is needed. Prefer the former. -# In case the pthread.h system header is not found, this test will fail. -XPCFLAGS="" -CFLAGS="$CFLAGS -pthread" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <pthread.h> - void *g(void *d) { return NULL; } -int -main () -{ -pthread_t t; pthread_create(&t,NULL,g,NULL); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - XPCFLAGS=" -Wc,-pthread" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <pthread.h> - void *g(void *d) { return NULL; } -int -main () -{ -pthread_t t; pthread_create(&t,NULL,g,NULL); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5 -echo "$as_me: error: Pthreads are required to build libgomp" >&2;} - { (exit 1); exit 1; }; } -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - -# Check for functions needed. - - -for ac_func in getloadavg clock_gettime -do -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` -echo "$as_me:$LINENO: checking for $ac_func" >&5 -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 -if eval "test \"\${$as_ac_var+set}\" = set"; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. - For example, HP-UX 11i <limits.h> declares gettimeofday. */ -#define $ac_func innocuous_$ac_func - -/* System header to define __stub macros and hopefully few prototypes, - which can conflict with char $ac_func (); below. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since - <limits.h> exists even on freestanding compilers. */ - -#ifdef __STDC__ -# include <limits.h> -#else -# include <assert.h> -#endif - -#undef $ac_func - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -{ -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func (); -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -char (*f) () = $ac_func; -#endif -#ifdef __cplusplus -} -#endif - -int -main () -{ -return f != $ac_func; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - eval "$as_ac_var=yes" -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -eval "$as_ac_var=no" -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 -if test `eval echo '${'$as_ac_var'}'` = yes; then - cat >>confdefs.h <<_ACEOF -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - - -# Check for broken semaphore implementation on darwin. -# sem_init returns: sem_init error: Function not implemented. -case "$host" in - *-darwin*) - -cat >>confdefs.h <<\_ACEOF -#define HAVE_BROKEN_POSIX_SEMAPHORES 1 -_ACEOF - - ;; - *-linux*) - case "$enable_linux_futex" in - default) - # If headers don't have gettid/futex syscalls definition, then - # default to no, otherwise there will be compile time failures. - # Otherwise, default to yes. If we don't detect we are - # compiled/linked against NPTL and not cross-compiling, check - # if programs are run by default against NPTL and if not, issue - # a warning. - enable_linux_futex=no - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <sys/syscall.h> - int lk; -int -main () -{ -syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#ifndef _GNU_SOURCE - #define _GNU_SOURCE 1 - #endif - #include <pthread.h> - pthread_t th; void *status; -int -main () -{ -pthread_tryjoin_np (th, &status); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - enable_linux_futex=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -if test x$cross_compiling = xno; then - if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \ - | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then - { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls. -If so, please configure with --disable-linux-futex" >&5 -echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls. -If so, please configure with --disable-linux-futex" >&2;} - fi - fi - enable_linux_futex=yes -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - ;; - yes) - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -#include <sys/syscall.h> - int lk; -int -main () -{ -syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - : -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5 -echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;} - { (exit 1); exit 1; }; } -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - ;; - esac - ;; -esac - -# At least for glibc, clock_gettime is in librt. But don't pull that -# in if it still doesn't give us the function we want. -if test $ac_cv_func_clock_gettime = no; then - echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 -echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6 -if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lrt $LIBS" -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -/* Override any gcc2 internal prototype to avoid an error. */ -#ifdef __cplusplus -extern "C" -#endif -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char clock_gettime (); -int -main () -{ -clock_gettime (); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_cv_lib_rt_clock_gettime=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_cv_lib_rt_clock_gettime=no -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 -echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6 -if test $ac_cv_lib_rt_clock_gettime = yes; then - LIBS="-lrt $LIBS" - -cat >>confdefs.h <<\_ACEOF -#define HAVE_CLOCK_GETTIME 1 -_ACEOF - -fi - -fi - -# See if we support thread-local storage. - - # Check whether --enable-tls or --disable-tls was given. -if test "${enable_tls+set}" = set; then - enableval="$enable_tls" - - case "$enableval" in - yes|no) ;; - *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5 -echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;} - { (exit 1); exit 1; }; } ;; - esac - -else - enable_tls=yes -fi; - - echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5 -echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6 -if test "${have_tls+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - if test "$cross_compiling" = yes; then - cat >conftest.$ac_ext <<_ACEOF -__thread int foo; -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - have_tls=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -have_tls=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - -else - cat >conftest.$ac_ext <<_ACEOF -__thread int a; int b; int main() { return a = b; } -_ACEOF -rm -f conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - save_LDFLAGS="$LDFLAGS" - LDFLAGS="-static $LDFLAGS" - cat >conftest.$ac_ext <<_ACEOF -int main() { return 0; } -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run test program while cross compiling -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -else - cat >conftest.$ac_ext <<_ACEOF -__thread int a; int b; int main() { return a = b; } -_ACEOF -rm -f conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - have_tls=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -have_tls=no -fi -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -have_tls=yes -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LDFLAGS="$save_LDFLAGS" -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -have_tls=no -fi -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -fi -echo "$as_me:$LINENO: result: $have_tls" >&5 -echo "${ECHO_T}$have_tls" >&6 - if test "$enable_tls $have_tls" = "yes yes"; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_TLS 1 -_ACEOF - - fi - -# See what sort of export controls are availible. - - echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5 -echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6 -if test "${have_attribute_visibility+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -Werror" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -void __attribute__((visibility("hidden"))) foo(void) { } -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - have_attribute_visibility=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -have_attribute_visibility=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS="$save_CFLAGS" -fi -echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5 -echo "${ECHO_T}$have_attribute_visibility" >&6 - if test $have_attribute_visibility = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ATTRIBUTE_VISIBILITY 1 -_ACEOF - - fi - - echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5 -echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6 -if test "${have_attribute_dllexport+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -Werror" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ -void __attribute__((dllexport)) foo(void) { } -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - have_attribute_dllexport=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -have_attribute_dllexport=no -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS="$save_CFLAGS" -fi -echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5 -echo "${ECHO_T}$have_attribute_dllexport" >&6 - if test $have_attribute_dllexport = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ATTRIBUTE_DLLEXPORT 1 -_ACEOF - - fi - - echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5 -echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6 -if test "${have_attribute_alias+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -void foo(void) { } -extern void bar(void) __attribute__((alias("foo"))); -int -main () -{ -bar(); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - have_attribute_alias=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -have_attribute_alias=no -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: $have_attribute_alias" >&5 -echo "${ECHO_T}$have_attribute_alias" >&6 - if test $have_attribute_alias = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_ATTRIBUTE_ALIAS 1 -_ACEOF - - fi - - # If we're not using GNU ld, then there's no point in even trying these - # tests. Check for that first. We should have already tested for gld - # by now (in libtool), but require it now just to be safe... - test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS='' - test -z "$OPT_LDFLAGS" && OPT_LDFLAGS='' - - - - # The name set by libtool depends on the version of libtool. Shame on us - # for depending on an impl detail, but c'est la vie. Older versions used - # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on - # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually - # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't - # set (hence we're using an older libtool), then set it. - if test x${with_gnu_ld+set} != xset; then - if test x${ac_cv_prog_gnu_ld+set} != xset; then - # We got through "ac_require(ac_prog_ld)" and still not set? Huh? - with_gnu_ld=no - else - with_gnu_ld=$ac_cv_prog_gnu_ld - fi - fi - - # Start by getting the version number. I think the libtool test already - # does some of this, but throws away the result. - - ldver=`$LD --version 2>/dev/null | head -1 | \ - sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` - - libgomp_gnu_ld_version=`echo $ldver | \ - $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` - - # Set --gc-sections. - if test "$with_gnu_ld" = "notbroken"; then - # GNU ld it is! Joy and bunny rabbits! - - # All these tests are for C++; save the language and the compiler flags. - # Need to do this so that g++ won't try to link in libstdc++ - ac_test_CFLAGS="${CFLAGS+set}" - ac_save_CFLAGS="$CFLAGS" - CFLAGS='-x c++ -Wl,--gc-sections' - - # Check for -Wl,--gc-sections - # XXX This test is broken at the moment, as symbols required for linking - # are now in libsupc++ (not built yet). In addition, this test has - # cored on solaris in the past. In addition, --gc-sections doesn't - # really work at the moment (keeps on discarding used sections, first - # .eh_frame and now some of the glibc sections for iconv). - # Bzzzzt. Thanks for playing, maybe next time. - echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5 -echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6 - if test "$cross_compiling" = yes; then - ac_sectionLDflags=yes -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - - int main(void) - { - try { throw 1; } - catch (...) { }; - return 0; - } - -_ACEOF -rm -f conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_sectionLDflags=yes -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -ac_sectionLDflags=no -fi -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi - if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" - else - # this is the suspicious part - CFLAGS='' - fi - if test "$ac_sectionLDflags" = "yes"; then - SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" - fi - echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5 -echo "${ECHO_T}$ac_sectionLDflags" >&6 - fi - - # Set linker optimization flags. - if test x"$with_gnu_ld" = x"yes"; then - OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" - fi - - - - - - - # Check whether --enable-symvers or --disable-symvers was given. -if test "${enable_symvers+set}" = set; then - enableval="$enable_symvers" - - case "$enableval" in - yes|no|gnu) ;; - *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5 -echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;} - { (exit 1); exit 1; }; } ;; - esac - -else - enable_symvers=yes -fi; - - -# If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we -# don't know enough about $LD to do tricks... - -# FIXME The following test is too strict, in theory. -if test $enable_shared = no || - test "x$LD" = x || - test x$libgomp_gnu_ld_version = x; then - enable_symvers=no -fi - -# Check to see if libgcc_s exists, indicating that shared libgcc is possible. -if test $enable_symvers != no; then - echo "$as_me:$LINENO: checking for shared libgcc" >&5 -echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6 - ac_save_CFLAGS="$CFLAGS" - CFLAGS=' -lgcc_s' - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - libgomp_shared_libgcc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -libgomp_shared_libgcc=no -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - CFLAGS="$ac_save_CFLAGS" - if test $libgomp_shared_libgcc = no; then - cat > conftest.c <<EOF -int main (void) { return 0; } -EOF - libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ - -shared -shared-libgcc -o conftest.so \ - conftest.c -v 2>&1 >/dev/null \ - | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'` - rm -f conftest.c conftest.so - if test x${libgomp_libgcc_s_suffix+set} = xset; then - CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -return 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - libgomp_shared_libgcc=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - CFLAGS="$ac_save_CFLAGS" - fi - fi - echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5 -echo "${ECHO_T}$libgomp_shared_libgcc" >&6 -fi - -# For GNU ld, we need at least this version. The format is described in -# LIBGOMP_CHECK_LINKER_FEATURES above. -libgomp_min_gnu_ld_version=21400 -# XXXXXXXXXXX libgomp_gnu_ld_version=21390 - -# Check to see if unspecified "yes" value can win, given results above. -# Change "yes" into either "no" or a style name. -if test $enable_symvers = yes; then - if test $with_gnu_ld = yes && - test $libgomp_shared_libgcc = yes; - then - if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then - enable_symvers=gnu - else - # The right tools, the right setup, but too old. Fallbacks? - { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5 -echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;} - { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5 -echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;} - { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5 -echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;} - { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5 -echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;} - if test $libgomp_gnu_ld_version -ge 21200 ; then - # Globbing fix is present, proper block support is not. - { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5 -echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} - enable_symvers=no - else - # 2.11 or older. - { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5 -echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} - enable_symvers=no - fi - fi - else - # just fail for now - { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5 -echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;} - { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5 -echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;} - { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5 -echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;} - { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5 -echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} - enable_symvers=no - fi -fi - - - -if test $enable_symvers != no; then - LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE= - LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#' -else - LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#' - LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE= -fi - -{ echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5 -echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;} - - -# Get target configury. -. ${srcdir}/configure.tgt -CFLAGS="$save_CFLAGS $XCFLAGS" - -# Check for __sync_val_compare_and_swap, but only after the target has -# had a chance to set XCFLAGS. - - echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5 -echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6 -if test "${have_sync_builtins+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1); - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - have_sync_builtins=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -have_sync_builtins=no -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -fi -echo "$as_me:$LINENO: result: $have_sync_builtins" >&5 -echo "${ECHO_T}$have_sync_builtins" >&6 - if test $have_sync_builtins = yes; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_SYNC_BUILTINS 1 -_ACEOF - - fi - -XCFLAGS="$XCFLAGS$XPCFLAGS" - - - - - -# Cleanup and exit. -CFLAGS="$save_CFLAGS" -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. - -_ACEOF - -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -{ - (set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n \ - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" - ;; - esac; -} | - sed ' - t clear - : clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - : end' >>confcache -if diff $cache_file confcache >/dev/null 2>&1; then :; else - if test -w $cache_file; then - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" - cat confcache >$cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -if test ${multilib} = yes; then - multilib_arg="--enable-multilib" -else - multilib_arg= -fi - -# Set up the set of libraries that we need to link against for libgomp. -# Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp, -# which will force linkage against -lpthread (or equivalent for the system). -# That's not 100% ideal, but about the best we can do easily. -if test $enable_shared = yes; then - link_gomp="-lgomp %{static: $LIBS}" -else - link_gomp="-lgomp $LIBS" -fi - - - - -if test "$ac_cv_fc_compiler_gnu" = yes; then - USE_FORTRAN_TRUE= - USE_FORTRAN_FALSE='#' -else - USE_FORTRAN_TRUE='#' - USE_FORTRAN_FALSE= -fi - - -# ??? 2006-01-24: Paulo committed to asking autoconf folk to document -# and export AC_COMPUTE_INT. If that happens, then we'll need to remove -# the underscore here and update the PREREQ. If it doesn't, then we'll -# need to copy this macro to our acinclude.m4. -save_CFLAGS="$CFLAGS" -for i in $config_path; do - if test -f $srcdir/config/$i/omp-lock.h; then - CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h" - break - fi -done - -if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_lo=0 ac_mid=0 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_hi=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_hi=-1 ac_mid=-1 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_lo=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_hi=`expr '(' $ac_mid ')' - 1` - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid` -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_lo= ac_hi= -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_hi=$ac_mid -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_lo=`expr '(' $ac_mid ')' + 1` -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -done -case $ac_lo in -?*) OMP_LOCK_SIZE=$ac_lo;; -'') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5 -echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;} - { (exit 1); exit 1; }; } ;; -esac -else - if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run test program while cross compiling -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -long longval () { return sizeof (omp_lock_t); } -unsigned long ulongval () { return sizeof (omp_lock_t); } -#include <stdio.h> -#include <stdlib.h> -int -main () -{ - - FILE *f = fopen ("conftest.val", "w"); - if (! f) - exit (1); - if ((sizeof (omp_lock_t)) < 0) - { - long i = longval (); - if (i != (sizeof (omp_lock_t))) - exit (1); - fprintf (f, "%ld\n", i); - } - else - { - unsigned long i = ulongval (); - if (i != (sizeof (omp_lock_t))) - exit (1); - fprintf (f, "%lu\n", i); - } - exit (ferror (f) || fclose (f) != 0); - - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - OMP_LOCK_SIZE=`cat conftest.val` -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -( exit $ac_status ) -{ { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5 -echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;} - { (exit 1); exit 1; }; } -fi -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -fi -rm -f conftest.val -if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_lo=0 ac_mid=0 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_hi=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_hi=-1 ac_mid=-1 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_lo=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_hi=`expr '(' $ac_mid ')' - 1` - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid` -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_lo= ac_hi= -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_hi=$ac_mid -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_lo=`expr '(' $ac_mid ')' + 1` -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -done -case $ac_lo in -?*) OMP_LOCK_ALIGN=$ac_lo;; -'') ;; -esac -else - if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run test program while cross compiling -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -long longval () { return __alignof (omp_lock_t); } -unsigned long ulongval () { return __alignof (omp_lock_t); } -#include <stdio.h> -#include <stdlib.h> -int -main () -{ - - FILE *f = fopen ("conftest.val", "w"); - if (! f) - exit (1); - if ((__alignof (omp_lock_t)) < 0) - { - long i = longval (); - if (i != (__alignof (omp_lock_t))) - exit (1); - fprintf (f, "%ld\n", i); - } - else - { - unsigned long i = ulongval (); - if (i != (__alignof (omp_lock_t))) - exit (1); - fprintf (f, "%lu\n", i); - } - exit (ferror (f) || fclose (f) != 0); - - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - OMP_LOCK_ALIGN=`cat conftest.val` -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -fi -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -fi -rm -f conftest.val -if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_lo=0 ac_mid=0 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_hi=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_hi=-1 ac_mid=-1 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_lo=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_hi=`expr '(' $ac_mid ')' - 1` - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid` -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_lo= ac_hi= -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_hi=$ac_mid -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_lo=`expr '(' $ac_mid ')' + 1` -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -done -case $ac_lo in -?*) OMP_NEST_LOCK_SIZE=$ac_lo;; -'') ;; -esac -else - if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run test program while cross compiling -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -long longval () { return sizeof (omp_nest_lock_t); } -unsigned long ulongval () { return sizeof (omp_nest_lock_t); } -#include <stdio.h> -#include <stdlib.h> -int -main () -{ - - FILE *f = fopen ("conftest.val", "w"); - if (! f) - exit (1); - if ((sizeof (omp_nest_lock_t)) < 0) - { - long i = longval (); - if (i != (sizeof (omp_nest_lock_t))) - exit (1); - fprintf (f, "%ld\n", i); - } - else - { - unsigned long i = ulongval (); - if (i != (sizeof (omp_nest_lock_t))) - exit (1); - fprintf (f, "%lu\n", i); - } - exit (ferror (f) || fclose (f) != 0); - - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - OMP_NEST_LOCK_SIZE=`cat conftest.val` -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -fi -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -fi -rm -f conftest.val -if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_lo=0 ac_mid=0 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_hi=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_lo=`expr $ac_mid + 1` - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid + 1` -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_hi=-1 ac_mid=-1 - while :; do - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_lo=$ac_mid; break -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_hi=`expr '(' $ac_mid ')' - 1` - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - ac_mid=`expr 2 '*' $ac_mid` -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - done -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_lo= ac_hi= -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)]; -test_array [0] = 0 - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - ac_hi=$ac_mid -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -ac_lo=`expr '(' $ac_mid ')' + 1` -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext -done -case $ac_lo in -?*) OMP_NEST_LOCK_ALIGN=$ac_lo;; -'') ;; -esac -else - if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling -See \`config.log' for more details." >&5 -echo "$as_me: error: cannot run test program while cross compiling -See \`config.log' for more details." >&2;} - { (exit 1); exit 1; }; } -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -long longval () { return __alignof (omp_nest_lock_t); } -unsigned long ulongval () { return __alignof (omp_nest_lock_t); } -#include <stdio.h> -#include <stdlib.h> -int -main () -{ - - FILE *f = fopen ("conftest.val", "w"); - if (! f) - exit (1); - if ((__alignof (omp_nest_lock_t)) < 0) - { - long i = longval (); - if (i != (__alignof (omp_nest_lock_t))) - exit (1); - fprintf (f, "%ld\n", i); - } - else - { - unsigned long i = ulongval (); - if (i != (__alignof (omp_nest_lock_t))) - exit (1); - fprintf (f, "%lu\n", i); - } - exit (ferror (f) || fclose (f) != 0); - - ; - return 0; -} -_ACEOF -rm -f conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - OMP_NEST_LOCK_ALIGN=`cat conftest.val` -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -fi -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi -fi -rm -f conftest.val - -# If the lock fits in an integer, then arrange for Fortran to use that -# integer. If it doesn't, then arrange for Fortran to use a pointer. -# Except that we don't have a way at present to multi-lib the installed -# Fortran modules, so we assume 8 bytes for pointers, regardless of the -# actual target. -OMP_LOCK_KIND=$OMP_LOCK_SIZE -OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE -if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then - OMP_LOCK_KIND=8 -fi -if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then - OMP_NEST_LOCK_KIND=8 -fi - - - - - - - -CFLAGS="$save_CFLAGS" - - ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h" - - ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec" - -cat >confcache <<\_ACEOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs, see configure's option --config-cache. -# It is not useful on other systems. If it contains results you don't -# want to keep, you may remove or edit it. -# -# config.status only pays attention to the cache file if you give it -# the --recheck option to rerun configure. -# -# `ac_cv_env_foo' variables (set or unset) will be overridden when -# loading this file, other *unset* `ac_cv_foo' will be assigned the -# following values. - -_ACEOF - -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -{ - (set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote - # substitution turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n \ - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" - ;; - esac; -} | - sed ' - t clear - : clear - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ - t end - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ - : end' >>confcache -if diff $cache_file confcache >/dev/null 2>&1; then :; else - if test -w $cache_file; then - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" - cat confcache >$cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# VPATH may cause trouble with some makes, so we remove $(srcdir), -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and -# trailing colons and then remove the whole line if VPATH becomes empty -# (actually we leave an empty line to preserve line numbers). -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=/{ -s/:*\$(srcdir):*/:/; -s/:*\${srcdir}:*/:/; -s/:*@srcdir@:*/:/; -s/^\([^=]*=[ ]*\):*/\1/; -s/:*$//; -s/^[^=]*=[ ]*$//; -}' -fi - -DEFS=-DHAVE_CONFIG_H - -ac_libobjs= -ac_ltlibobjs= -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue - # 1. Remove the extension, and $U if already installed. - ac_i=`echo "$ac_i" | - sed 's/\$U\././;s/\.o$//;s/\.obj$//'` - # 2. Add them. - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' -done -LIBOBJS=$ac_libobjs - -LTLIBOBJS=$ac_ltlibobjs - - -if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"GENINSRC\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"AMDEP\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"BUILD_INFO\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"BUILD_INFO\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi -if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then - { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined. -Usually this means the macro was only invoked conditionally." >&5 -echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined. -Usually this means the macro was only invoked conditionally." >&2;} - { (exit 1); exit 1; }; } -fi - -: ${CONFIG_STATUS=./config.status} -ac_clean_files_save=$ac_clean_files -ac_clean_files="$ac_clean_files $CONFIG_STATUS" -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 -echo "$as_me: creating $CONFIG_STATUS" >&6;} -cat >$CONFIG_STATUS <<_ACEOF -#! $SHELL -# Generated by $as_me. -# Run this file to recreate the current configuration. -# Compiler output produced by configure, useful for debugging -# configure, is in config.log if it exists. - -debug=false -ac_cs_recheck=false -ac_cs_silent=false -SHELL=\${CONFIG_SHELL-$SHELL} -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -## --------------------- ## -## M4sh Initialization. ## -## --------------------- ## - -# Be Bourne compatible -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then - set -o posix -fi -DUALCASE=1; export DUALCASE # for MKS sh - -# Support unset when possible. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset -else - as_unset=false -fi - - -# Work around bugs in pre-3.0 UWIN ksh. -$as_unset ENV MAIL MAILPATH -PS1='$ ' -PS2='> ' -PS4='+ ' - -# NLS nuisances. -for as_var in \ - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME -do - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then - eval $as_var=C; export $as_var - else - $as_unset $as_var - fi -done - -# Required to use basename. -if expr a : '\(a\)' >/dev/null 2>&1; then - as_expr=expr -else - as_expr=false -fi - -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then - as_basename=basename -else - as_basename=false -fi - - -# Name of the executable. -as_me=`$as_basename "$0" || -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)$' \| \ - . : '\(.\)' 2>/dev/null || -echo X/"$0" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } - /^X\/\(\/\/\)$/{ s//\1/; q; } - /^X\/\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - - -# PATH needs CR, and LINENO needs CR and PATH. -# Avoid depending upon Character Ranges. -as_cr_letters='abcdefghijklmnopqrstuvwxyz' -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' -as_cr_Letters=$as_cr_letters$as_cr_LETTERS -as_cr_digits='0123456789' -as_cr_alnum=$as_cr_Letters$as_cr_digits - -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi - - - as_lineno_1=$LINENO - as_lineno_2=$LINENO - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x$as_lineno_3" = "x$as_lineno_2" || { - # Find who we are. Look in the path if we contain no path at all - # relative or not. - case $0 in - *[\\/]* ) as_myself=$0 ;; - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break -done - - ;; - esac - # We did not find ourselves, most probably we were run as `sh COMMAND' - # in which case we are not to be found in the path. - if test "x$as_myself" = x; then - as_myself=$0 - fi - if test ! -f "$as_myself"; then - { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} - { (exit 1); exit 1; }; } - fi - case $CONFIG_SHELL in - '') - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for as_base in sh bash ksh sh5; do - case $as_dir in - /*) - if ("$as_dir/$as_base" -c ' - as_lineno_1=$LINENO - as_lineno_2=$LINENO - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` - test "x$as_lineno_1" != "x$as_lineno_2" && - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } - CONFIG_SHELL=$as_dir/$as_base - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$0" ${1+"$@"} - fi;; - esac - done -done -;; - esac - - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO - # uniformly replaced by the line number. The first 'sed' inserts a - # line-number line before each line; the second 'sed' does the real - # work. The second script uses 'N' to pair each line-number line - # with the numbered line, and appends trailing '-' during - # substitution so that $LINENO is not a special case at line end. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) - sed '=' <$as_myself | - sed ' - N - s,$,-, - : loop - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, - t loop - s,-$,, - s,^['$as_cr_digits']*\n,, - ' >$as_me.lineno && - chmod +x $as_me.lineno || - { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} - { (exit 1); exit 1; }; } - - # Don't try to exec as it changes $[0], causing all sort of problems - # (the dirname of $[0] is not the place where we might find the - # original and so on. Autoconf is especially sensible to this). - . ./$as_me.lineno - # Exit status is that of the last command. - exit -} - - -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in - *c*,-n*) ECHO_N= ECHO_C=' -' ECHO_T=' ' ;; - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; - *) ECHO_N= ECHO_C='\c' ECHO_T= ;; -esac - -if expr a : '\(a\)' >/dev/null 2>&1; then - as_expr=expr -else - as_expr=false -fi - -rm -f conf$$ conf$$.exe conf$$.file -echo >conf$$.file -if ln -s conf$$.file conf$$ 2>/dev/null; then - # We could just check for DJGPP; but this test a) works b) is more generic - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). - if test -f conf$$.exe; then - # Don't use ln at all; we don't have any links - as_ln_s='cp -p' - else - as_ln_s='ln -s' - fi -elif ln conf$$.file conf$$ 2>/dev/null; then - as_ln_s=ln -else - as_ln_s='cp -p' -fi -rm -f conf$$ conf$$.exe conf$$.file - -if mkdir -p . 2>/dev/null; then - as_mkdir_p=: -else - test -d ./-p && rmdir ./-p - as_mkdir_p=false -fi - -as_executable_p="test -f" - -# Sed expression to map a string onto a valid CPP name. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" - -# Sed expression to map a string onto a valid variable name. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - -# IFS -# We need space, tab and new line, in precisely that order. -as_nl=' -' -IFS=" $as_nl" - -# CDPATH. -$as_unset CDPATH - -exec 6>&1 - -# Open the log real soon, to keep \$[0] and so on meaningful, and to -# report actual input values of CONFIG_FILES etc. instead of their -# values after options handling. Logging --version etc. is OK. -exec 5>>config.log -{ - echo - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX -## Running $as_me. ## -_ASBOX -} >&5 -cat >&5 <<_CSEOF - -This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was -generated by GNU Autoconf 2.59. Invocation command line was - - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS - CONFIG_LINKS = $CONFIG_LINKS - CONFIG_COMMANDS = $CONFIG_COMMANDS - $ $0 $@ - -_CSEOF -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 -echo >&5 -_ACEOF - -# Files that config.status was made for. -if test -n "$ac_config_files"; then - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS -fi - -if test -n "$ac_config_headers"; then - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS -fi - -if test -n "$ac_config_links"; then - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS -fi - -if test -n "$ac_config_commands"; then - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS -fi - -cat >>$CONFIG_STATUS <<\_ACEOF - -ac_cs_usage="\ -\`$as_me' instantiates files from templates according to the -current configuration. - -Usage: $0 [OPTIONS] [FILE]... - - -h, --help print this help, then exit - -V, --version print version number, then exit - -q, --quiet do not print progress messages - -d, --debug don't remove temporary files - --recheck update $as_me by reconfiguring in the same conditions - --file=FILE[:TEMPLATE] - instantiate the configuration file FILE - --header=FILE[:TEMPLATE] - instantiate the configuration header FILE - -Configuration files: -$config_files - -Configuration headers: -$config_headers - -Configuration commands: -$config_commands - -Report bugs to <bug-autoconf@gnu.org>." -_ACEOF - -cat >>$CONFIG_STATUS <<_ACEOF -ac_cs_version="\\ -GNU OpenMP Runtime Library config.status 1.0 -configured by $0, generated by GNU Autoconf 2.59, - with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" - -Copyright (C) 2003 Free Software Foundation, Inc. -This config.status script is free software; the Free Software Foundation -gives unlimited permission to copy, distribute and modify it." -srcdir=$srcdir -INSTALL="$INSTALL" -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF -# If no file are specified by the user, then we need to provide default -# value. By we need to know if files were specified by the user. -ac_need_defaults=: -while test $# != 0 -do - case $1 in - --*=*) - ac_option=`expr "x$1" : 'x\([^=]*\)='` - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` - ac_shift=: - ;; - -*) - ac_option=$1 - ac_optarg=$2 - ac_shift=shift - ;; - *) # This is not an option, so the user has probably given explicit - # arguments. - ac_option=$1 - ac_need_defaults=false;; - esac - - case $ac_option in - # Handling of the options. -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - ac_cs_recheck=: ;; - --version | --vers* | -V ) - echo "$ac_cs_version"; exit 0 ;; - --he | --h) - # Conflict between --help and --header - { { echo "$as_me:$LINENO: error: ambiguous option: $1 -Try \`$0 --help' for more information." >&5 -echo "$as_me: error: ambiguous option: $1 -Try \`$0 --help' for more information." >&2;} - { (exit 1); exit 1; }; };; - --help | --hel | -h ) - echo "$ac_cs_usage"; exit 0 ;; - --debug | --d* | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - $ac_shift - CONFIG_FILES="$CONFIG_FILES $ac_optarg" - ac_need_defaults=false;; - --header | --heade | --head | --hea ) - $ac_shift - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" - ac_need_defaults=false;; - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil | --si | --s) - ac_cs_silent=: ;; - - # This is an error. - -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&5 -echo "$as_me: error: unrecognized option: $1 -Try \`$0 --help' for more information." >&2;} - { (exit 1); exit 1; }; } ;; - - *) ac_config_targets="$ac_config_targets $1" ;; - - esac - shift -done - -ac_configure_extra_args= - -if $ac_cs_silent; then - exec 6>/dev/null - ac_configure_extra_args="$ac_configure_extra_args --silent" -fi - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF -if \$ac_cs_recheck; then - echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 - exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion -fi - -_ACEOF - -cat >>$CONFIG_STATUS <<_ACEOF -# -# INIT-COMMANDS section. -# - - -srcdir="$srcdir" -host="$host" -target="$target" -with_multisubdir="$with_multisubdir" -with_multisrctop="$with_multisrctop" -with_target_subdir="$with_target_subdir" -ac_configure_args="${multilib_arg} ${ac_configure_args}" -multi_basedir="$multi_basedir" -CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} -CC="$CC" -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" - -GCC="$GCC" -CC="$CC" -acx_cv_header_stdint="$acx_cv_header_stdint" -acx_cv_type_int8_t="$acx_cv_type_int8_t" -acx_cv_type_int16_t="$acx_cv_type_int16_t" -acx_cv_type_int32_t="$acx_cv_type_int32_t" -acx_cv_type_int64_t="$acx_cv_type_int64_t" -acx_cv_type_intptr_t="$acx_cv_type_intptr_t" -ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" -ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" -ac_cv_type_uint64_t="$ac_cv_type_uint64_t" -ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" -ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" -ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" -ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" -ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" - - -_ACEOF - - - -cat >>$CONFIG_STATUS <<\_ACEOF -for ac_config_target in $ac_config_targets -do - case "$ac_config_target" in - # Handling of arguments. - "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;; - "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;; - "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;; - "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;; - "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; - "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; - "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;; - "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; - "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; - "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; - "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 -echo "$as_me: error: invalid argument: $ac_config_target" >&2;} - { (exit 1); exit 1; }; };; - esac -done - -# If the user did not use the arguments to specify the items to instantiate, -# then the envvar interface is used. Set only those that are not. -# We use the long form for the default assignment because of an extremely -# bizarre bug on SunOS 4.1.3. -if $ac_need_defaults; then - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands -fi - -# Have a temporary directory for convenience. Make it in the build tree -# simply because there is no reason to put it here, and in addition, -# creating and moving files from /tmp can sometimes cause problems. -# Create a temporary directory, and hook for its removal unless debugging. -$debug || -{ - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 -} - -# Create a (secure) tmp directory for tmp files. - -{ - tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" -} || -{ - tmp=./confstat$$-$RANDOM - (umask 077 && mkdir $tmp) -} || -{ - echo "$me: cannot create a temporary directory in ." >&2 - { (exit 1); exit 1; } -} - -_ACEOF - -cat >>$CONFIG_STATUS <<_ACEOF - -# -# CONFIG_FILES section. -# - -# No need to generate the scripts if there are no CONFIG_FILES. -# This happens for instance when ./config.status config.h -if test -n "\$CONFIG_FILES"; then - # Protect against being on the right side of a sed subst in config.status. - sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; - s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF -s,@SHELL@,$SHELL,;t t -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t -s,@exec_prefix@,$exec_prefix,;t t -s,@prefix@,$prefix,;t t -s,@program_transform_name@,$program_transform_name,;t t -s,@bindir@,$bindir,;t t -s,@sbindir@,$sbindir,;t t -s,@libexecdir@,$libexecdir,;t t -s,@datadir@,$datadir,;t t -s,@sysconfdir@,$sysconfdir,;t t -s,@sharedstatedir@,$sharedstatedir,;t t -s,@localstatedir@,$localstatedir,;t t -s,@libdir@,$libdir,;t t -s,@includedir@,$includedir,;t t -s,@oldincludedir@,$oldincludedir,;t t -s,@infodir@,$infodir,;t t -s,@mandir@,$mandir,;t t -s,@build_alias@,$build_alias,;t t -s,@host_alias@,$host_alias,;t t -s,@target_alias@,$target_alias,;t t -s,@DEFS@,$DEFS,;t t -s,@ECHO_C@,$ECHO_C,;t t -s,@ECHO_N@,$ECHO_N,;t t -s,@ECHO_T@,$ECHO_T,;t t -s,@LIBS@,$LIBS,;t t -s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t -s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t -s,@build@,$build,;t t -s,@build_cpu@,$build_cpu,;t t -s,@build_vendor@,$build_vendor,;t t -s,@build_os@,$build_os,;t t -s,@host@,$host,;t t -s,@host_cpu@,$host_cpu,;t t -s,@host_vendor@,$host_vendor,;t t -s,@host_os@,$host_os,;t t -s,@target@,$target,;t t -s,@target_cpu@,$target_cpu,;t t -s,@target_vendor@,$target_vendor,;t t -s,@target_os@,$target_os,;t t -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t -s,@INSTALL_DATA@,$INSTALL_DATA,;t t -s,@CYGPATH_W@,$CYGPATH_W,;t t -s,@PACKAGE@,$PACKAGE,;t t -s,@VERSION@,$VERSION,;t t -s,@ACLOCAL@,$ACLOCAL,;t t -s,@AUTOCONF@,$AUTOCONF,;t t -s,@AUTOMAKE@,$AUTOMAKE,;t t -s,@AUTOHEADER@,$AUTOHEADER,;t t -s,@MAKEINFO@,$MAKEINFO,;t t -s,@install_sh@,$install_sh,;t t -s,@STRIP@,$STRIP,;t t -s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t -s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t -s,@mkdir_p@,$mkdir_p,;t t -s,@AWK@,$AWK,;t t -s,@SET_MAKE@,$SET_MAKE,;t t -s,@am__leading_dot@,$am__leading_dot,;t t -s,@AMTAR@,$AMTAR,;t t -s,@am__tar@,$am__tar,;t t -s,@am__untar@,$am__untar,;t t -s,@multi_basedir@,$multi_basedir,;t t -s,@toolexecdir@,$toolexecdir,;t t -s,@toolexeclibdir@,$toolexeclibdir,;t t -s,@CC@,$CC,;t t -s,@ac_ct_CC@,$ac_ct_CC,;t t -s,@EXEEXT@,$EXEEXT,;t t -s,@OBJEXT@,$OBJEXT,;t t -s,@DEPDIR@,$DEPDIR,;t t -s,@am__include@,$am__include,;t t -s,@am__quote@,$am__quote,;t t -s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t -s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t -s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t -s,@CCDEPMODE@,$CCDEPMODE,;t t -s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t -s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t -s,@CFLAGS@,$CFLAGS,;t t -s,@AR@,$AR,;t t -s,@ac_ct_AR@,$ac_ct_AR,;t t -s,@RANLIB@,$RANLIB,;t t -s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t -s,@PERL@,$PERL,;t t -s,@BUILD_INFO_TRUE@,$BUILD_INFO_TRUE,;t t -s,@BUILD_INFO_FALSE@,$BUILD_INFO_FALSE,;t t -s,@LN_S@,$LN_S,;t t -s,@LIBTOOL@,$LIBTOOL,;t t -s,@enable_shared@,$enable_shared,;t t -s,@enable_static@,$enable_static,;t t -s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t -s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t -s,@MAINT@,$MAINT,;t t -s,@FC@,$FC,;t t -s,@FCFLAGS@,$FCFLAGS,;t t -s,@LDFLAGS@,$LDFLAGS,;t t -s,@ac_ct_FC@,$ac_ct_FC,;t t -s,@libtool_VERSION@,$libtool_VERSION,;t t -s,@CPP@,$CPP,;t t -s,@CPPFLAGS@,$CPPFLAGS,;t t -s,@EGREP@,$EGREP,;t t -s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t -s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t -s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t -s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t -s,@config_path@,$config_path,;t t -s,@XCFLAGS@,$XCFLAGS,;t t -s,@XLDFLAGS@,$XLDFLAGS,;t t -s,@link_gomp@,$link_gomp,;t t -s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t -s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t -s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t -s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t -s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t -s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t -s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t -s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t -s,@LIBOBJS@,$LIBOBJS,;t t -s,@LTLIBOBJS@,$LTLIBOBJS,;t t -CEOF - -_ACEOF - - cat >>$CONFIG_STATUS <<\_ACEOF - # Split the substitutions into bite-sized pieces for seds with - # small command number limits, like on Digital OSF/1 and HP-UX. - ac_max_sed_lines=48 - ac_sed_frag=1 # Number of current file. - ac_beg=1 # First line for current file. - ac_end=$ac_max_sed_lines # Line after last line for current file. - ac_more_lines=: - ac_sed_cmds= - while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag - else - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag - fi - if test ! -s $tmp/subs.frag; then - ac_more_lines=false - else - # The purpose of the label and of the branching condition is to - # speed up the sed processing (if there are no `@' at all, there - # is no need to browse any of the substitutions). - # These are the two extra sed commands mentioned above. - (echo ':t - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" - else - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" - fi - ac_sed_frag=`expr $ac_sed_frag + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_lines` - fi - done - if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat - fi -fi # test -n "$CONFIG_FILES" - -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case $ac_file in - - | *:- | *:-:* ) # input from stdin - cat >$tmp/stdin - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - * ) ac_file_in=$ac_file.in ;; - esac - - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. - ac_dir=`(dirname "$ac_file") 2>/dev/null || -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - { if $as_mkdir_p; then - mkdir -p "$ac_dir" - else - as_dir="$ac_dir" - as_dirs= - while test ! -d "$as_dir"; do - as_dirs="$as_dir $as_dirs" - as_dir=`(dirname "$as_dir") 2>/dev/null || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - done - test ! -n "$as_dirs" || mkdir $as_dirs - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} - { (exit 1); exit 1; }; }; } - - ac_builddir=. - -if test "$ac_dir" != .; then - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A "../" for each directory in $ac_dir_suffix. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` -else - ac_dir_suffix= ac_top_builddir= -fi - -case $srcdir in - .) # No --srcdir option. We are building in place. - ac_srcdir=. - if test -z "$ac_top_builddir"; then - ac_top_srcdir=. - else - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` - fi ;; - [\\/]* | ?:[\\/]* ) # Absolute path. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir ;; - *) # Relative path. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_builddir$srcdir ;; -esac - -# Do not use `cd foo && pwd` to compute absolute paths, because -# the directories may not exist. -case `pwd` in -.) ac_abs_builddir="$ac_dir";; -*) - case "$ac_dir" in - .) ac_abs_builddir=`pwd`;; - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; - *) ac_abs_builddir=`pwd`/"$ac_dir";; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_builddir=${ac_top_builddir}.;; -*) - case ${ac_top_builddir}. in - .) ac_abs_top_builddir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_srcdir=$ac_srcdir;; -*) - case $ac_srcdir in - .) ac_abs_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_srcdir=$ac_top_srcdir;; -*) - case $ac_top_srcdir in - .) ac_abs_top_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; - esac;; -esac - - - case $INSTALL in - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; - *) ac_INSTALL=$ac_top_builddir$INSTALL ;; - esac - - if test x"$ac_file" != x-; then - { echo "$as_me:$LINENO: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} - rm -f "$ac_file" - fi - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated by config.status. */ - if test x"$ac_file" = x-; then - configure_input= - else - configure_input="$ac_file. " - fi - configure_input=$configure_input"Generated from `echo $ac_file_in | - sed 's,.*/,,'` by configure." - - # First look for the input files in the build tree, otherwise in the - # src tree. - ac_file_inputs=`IFS=: - for f in $ac_file_in; do - case $f in - -) echo $tmp/stdin ;; - [\\/$]*) - # Absolute (can't be DOS-style, as IFS=:) - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 -echo "$as_me: error: cannot find input file: $f" >&2;} - { (exit 1); exit 1; }; } - echo "$f";; - *) # Relative - if test -f "$f"; then - # Build tree - echo "$f" - elif test -f "$srcdir/$f"; then - # Source tree - echo "$srcdir/$f" - else - # /dev/null tree - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 -echo "$as_me: error: cannot find input file: $f" >&2;} - { (exit 1); exit 1; }; } - fi;; - esac - done` || { (exit 1); exit 1; } -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF - sed "$ac_vpsub -$extrasub -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF -:t -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b -s,@configure_input@,$configure_input,;t t -s,@srcdir@,$ac_srcdir,;t t -s,@abs_srcdir@,$ac_abs_srcdir,;t t -s,@top_srcdir@,$ac_top_srcdir,;t t -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t -s,@builddir@,$ac_builddir,;t t -s,@abs_builddir@,$ac_abs_builddir,;t t -s,@top_builddir@,$ac_top_builddir,;t t -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t -s,@INSTALL@,$ac_INSTALL,;t t -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out - rm -f $tmp/stdin - if test x"$ac_file" != x-; then - mv $tmp/out $ac_file - else - cat $tmp/out - rm -f $tmp/out - fi - -done -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF - -# -# CONFIG_HEADER section. -# - -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where -# NAME is the cpp macro being defined and VALUE is the value it is being given. -# -# ac_d sets the value in "#define NAME VALUE" lines. -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' -ac_dB='[ ].*$,\1#\2' -ac_dC=' ' -ac_dD=',;t' -# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' -ac_uB='$,\1#\2define\3' -ac_uC=' ' -ac_uD=',;t' - -for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case $ac_file in - - | *:- | *:-:* ) # input from stdin - cat >$tmp/stdin - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; - * ) ac_file_in=$ac_file.in ;; - esac - - test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} - - # First look for the input files in the build tree, otherwise in the - # src tree. - ac_file_inputs=`IFS=: - for f in $ac_file_in; do - case $f in - -) echo $tmp/stdin ;; - [\\/$]*) - # Absolute (can't be DOS-style, as IFS=:) - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 -echo "$as_me: error: cannot find input file: $f" >&2;} - { (exit 1); exit 1; }; } - # Do quote $f, to prevent DOS paths from being IFS'd. - echo "$f";; - *) # Relative - if test -f "$f"; then - # Build tree - echo "$f" - elif test -f "$srcdir/$f"; then - # Source tree - echo "$srcdir/$f" - else - # /dev/null tree - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 -echo "$as_me: error: cannot find input file: $f" >&2;} - { (exit 1); exit 1; }; } - fi;; - esac - done` || { (exit 1); exit 1; } - # Remove the trailing spaces. - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in - -_ACEOF - -# Transform confdefs.h into two sed scripts, `conftest.defines' and -# `conftest.undefs', that substitutes the proper values into -# config.h.in to produce config.h. The first handles `#define' -# templates, and the second `#undef' templates. -# And first: Protect against being on the right side of a sed subst in -# config.status. Protect against being in an unquoted here document -# in config.status. -rm -f conftest.defines conftest.undefs -# Using a here document instead of a string reduces the quoting nightmare. -# Putting comments in sed scripts is not portable. -# -# `end' is used to avoid that the second main sed command (meant for -# 0-ary CPP macros) applies to n-ary macro definitions. -# See the Autoconf documentation for `clear'. -cat >confdef2sed.sed <<\_ACEOF -s/[\\&,]/\\&/g -s,[\\$`],\\&,g -t clear -: clear -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp -t end -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp -: end -_ACEOF -# If some macros were called several times there might be several times -# the same #defines, which is useless. Nevertheless, we may not want to -# sort them, since we want the *last* AC-DEFINE to be honored. -uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines -sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs -rm -f confdef2sed.sed - -# This sed command replaces #undef with comments. This is necessary, for -# example, in the case of _POSIX_SOURCE, which is predefined and required -# on some systems where configure will not decide to define it. -cat >>conftest.undefs <<\_ACEOF -s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, -_ACEOF - -# Break up conftest.defines because some shells have a limit on the size -# of here documents, and old seds have small limits too (100 cmds). -echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS -echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS -echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS -echo ' :' >>$CONFIG_STATUS -rm -f conftest.tail -while grep . conftest.defines >/dev/null -do - # Write a limited-size here document to $tmp/defines.sed. - echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS - # Speed up: don't consider the non `#define' lines. - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS - # Work around the forget-to-reset-the-flag bug. - echo 't clr' >>$CONFIG_STATUS - echo ': clr' >>$CONFIG_STATUS - sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS - echo 'CEOF - sed -f $tmp/defines.sed $tmp/in >$tmp/out - rm -f $tmp/in - mv $tmp/out $tmp/in -' >>$CONFIG_STATUS - sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail - rm -f conftest.defines - mv conftest.tail conftest.defines -done -rm -f conftest.defines -echo ' fi # grep' >>$CONFIG_STATUS -echo >>$CONFIG_STATUS - -# Break up conftest.undefs because some shells have a limit on the size -# of here documents, and old seds have small limits too (100 cmds). -echo ' # Handle all the #undef templates' >>$CONFIG_STATUS -rm -f conftest.tail -while grep . conftest.undefs >/dev/null -do - # Write a limited-size here document to $tmp/undefs.sed. - echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS - # Speed up: don't consider the non `#undef' - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS - # Work around the forget-to-reset-the-flag bug. - echo 't clr' >>$CONFIG_STATUS - echo ': clr' >>$CONFIG_STATUS - sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS - echo 'CEOF - sed -f $tmp/undefs.sed $tmp/in >$tmp/out - rm -f $tmp/in - mv $tmp/out $tmp/in -' >>$CONFIG_STATUS - sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail - rm -f conftest.undefs - mv conftest.tail conftest.undefs -done -rm -f conftest.undefs - -cat >>$CONFIG_STATUS <<\_ACEOF - # Let's still pretend it is `configure' which instantiates (i.e., don't - # use $as_me), people would be surprised to read: - # /* config.h. Generated by config.status. */ - if test x"$ac_file" = x-; then - echo "/* Generated by configure. */" >$tmp/config.h - else - echo "/* $ac_file. Generated by configure. */" >$tmp/config.h - fi - cat $tmp/in >>$tmp/config.h - rm -f $tmp/in - if test x"$ac_file" != x-; then - if diff $ac_file $tmp/config.h >/dev/null 2>&1; then - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 -echo "$as_me: $ac_file is unchanged" >&6;} - else - ac_dir=`(dirname "$ac_file") 2>/dev/null || -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$ac_file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - { if $as_mkdir_p; then - mkdir -p "$ac_dir" - else - as_dir="$ac_dir" - as_dirs= - while test ! -d "$as_dir"; do - as_dirs="$as_dir $as_dirs" - as_dir=`(dirname "$as_dir") 2>/dev/null || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - done - test ! -n "$as_dirs" || mkdir $as_dirs - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} - { (exit 1); exit 1; }; }; } - - rm -f $ac_file - mv $tmp/config.h $ac_file - fi - else - cat $tmp/config.h - rm -f $tmp/config.h - fi -# Compute $ac_file's index in $config_headers. -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $ac_file | $ac_file:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || -$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X$ac_file : 'X\(//\)[^/]' \| \ - X$ac_file : 'X\(//\)$' \| \ - X$ac_file : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X$ac_file | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'`/stamp-h$_am_stamp_count -done -_ACEOF -cat >>$CONFIG_STATUS <<\_ACEOF - -# -# CONFIG_COMMANDS section. -# -for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue - ac_dest=`echo "$ac_file" | sed 's,:.*,,'` - ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_dir=`(dirname "$ac_dest") 2>/dev/null || -$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_dest" : 'X\(//\)[^/]' \| \ - X"$ac_dest" : 'X\(//\)$' \| \ - X"$ac_dest" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$ac_dest" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - { if $as_mkdir_p; then - mkdir -p "$ac_dir" - else - as_dir="$ac_dir" - as_dirs= - while test ! -d "$as_dir"; do - as_dirs="$as_dir $as_dirs" - as_dir=`(dirname "$as_dir") 2>/dev/null || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - done - test ! -n "$as_dirs" || mkdir $as_dirs - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} - { (exit 1); exit 1; }; }; } - - ac_builddir=. - -if test "$ac_dir" != .; then - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` - # A "../" for each directory in $ac_dir_suffix. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` -else - ac_dir_suffix= ac_top_builddir= -fi - -case $srcdir in - .) # No --srcdir option. We are building in place. - ac_srcdir=. - if test -z "$ac_top_builddir"; then - ac_top_srcdir=. - else - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` - fi ;; - [\\/]* | ?:[\\/]* ) # Absolute path. - ac_srcdir=$srcdir$ac_dir_suffix; - ac_top_srcdir=$srcdir ;; - *) # Relative path. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_builddir$srcdir ;; -esac - -# Do not use `cd foo && pwd` to compute absolute paths, because -# the directories may not exist. -case `pwd` in -.) ac_abs_builddir="$ac_dir";; -*) - case "$ac_dir" in - .) ac_abs_builddir=`pwd`;; - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; - *) ac_abs_builddir=`pwd`/"$ac_dir";; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_builddir=${ac_top_builddir}.;; -*) - case ${ac_top_builddir}. in - .) ac_abs_top_builddir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_srcdir=$ac_srcdir;; -*) - case $ac_srcdir in - .) ac_abs_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; - esac;; -esac -case $ac_abs_builddir in -.) ac_abs_top_srcdir=$ac_top_srcdir;; -*) - case $ac_top_srcdir in - .) ac_abs_top_srcdir=$ac_abs_builddir;; - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; - esac;; -esac - - - { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 -echo "$as_me: executing $ac_dest commands" >&6;} - case $ac_dest in - default-1 ) -# Only add multilib support code if we just rebuilt the top-level -# Makefile. -case " $CONFIG_FILES " in - *" Makefile "*) - ac_file=Makefile . ${multi_basedir}/config-ml.in - ;; -esac ;; - depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # So let's grep whole file. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then - dirpart=`(dirname "$mf") 2>/dev/null || -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$mf" : 'X\(//\)[^/]' \| \ - X"$mf" : 'X\(//\)$' \| \ - X"$mf" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$mf" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - else - continue - fi - # Extract the definition of DEPDIR, am__include, and am__quote - # from the Makefile without running `make'. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` - test -z "$DEPDIR" && continue - am__include=`sed -n 's/^am__include = //p' < "$mf"` - test -z "am__include" && continue - am__quote=`sed -n 's/^am__quote = //p' < "$mf"` - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n 's/^U = //p' < "$mf"` - # Find all dependency output files, they are included files with - # $(DEPDIR) in their names. We invoke sed twice because it is the - # simplest approach to changing $(DEPDIR) to its actual value in the - # expansion. - for file in `sed -n " - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`(dirname "$file") 2>/dev/null || -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$file" : 'X\(//\)[^/]' \| \ - X"$file" : 'X\(//\)$' \| \ - X"$file" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$file" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - { if $as_mkdir_p; then - mkdir -p $dirpart/$fdir - else - as_dir=$dirpart/$fdir - as_dirs= - while test ! -d "$as_dir"; do - as_dirs="$as_dir $as_dirs" - as_dir=`(dirname "$as_dir") 2>/dev/null || -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || -echo X"$as_dir" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } - /^X\(\/\/\)[^/].*/{ s//\1/; q; } - /^X\(\/\/\)$/{ s//\1/; q; } - /^X\(\/\).*/{ s//\1/; q; } - s/.*/./; q'` - done - test ! -n "$as_dirs" || mkdir $as_dirs - fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 -echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} - { (exit 1); exit 1; }; }; } - - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done -done - ;; - gstdint.h ) -if test "$GCC" = yes; then - echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h -else - echo "/* generated for $CC */" > tmp-stdint.h -fi - -sed 's/^ *//' >> tmp-stdint.h <<EOF - - #ifndef GCC_GENERATED_STDINT_H - #define GCC_GENERATED_STDINT_H 1 - - #include <sys/types.h> -EOF - -if test "$acx_cv_header_stdint" != stdint.h; then - echo "#include <stddef.h>" >> tmp-stdint.h -fi -if test "$acx_cv_header_stdint" != stddef.h; then - echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h -fi - -sed 's/^ *//' >> tmp-stdint.h <<EOF - /* glibc uses these symbols as guards to prevent redefinitions. */ - #ifdef __int8_t_defined - #define _INT8_T - #define _INT16_T - #define _INT32_T - #endif - #ifdef __uint32_t_defined - #define _UINT32_T - #endif - -EOF - -# ----------------- done header, emit basic int types ------------- -if test "$acx_cv_header_stdint" = stddef.h; then - sed 's/^ *//' >> tmp-stdint.h <<EOF - - #ifndef _UINT8_T - #define _UINT8_T - typedef unsigned $acx_cv_type_int8_t uint8_t; - #endif - - #ifndef _UINT16_T - #define _UINT16_T - typedef unsigned $acx_cv_type_int16_t uint16_t; - #endif - - #ifndef _UINT32_T - #define _UINT32_T - typedef unsigned $acx_cv_type_int32_t uint32_t; - #endif - - #ifndef _INT8_T - #define _INT8_T - typedef $acx_cv_type_int8_t int8_t; - #endif - - #ifndef _INT16_T - #define _INT16_T - typedef $acx_cv_type_int16_t int16_t; - #endif - - #ifndef _INT32_T - #define _INT32_T - typedef $acx_cv_type_int32_t int32_t; - #endif -EOF -elif test "$ac_cv_type_u_int32_t" = yes; then - sed 's/^ *//' >> tmp-stdint.h <<EOF - - /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ - #ifndef _INT8_T - #define _INT8_T - #endif - #ifndef _INT16_T - #define _INT16_T - #endif - #ifndef _INT32_T - #define _INT32_T - #endif - - #ifndef _UINT8_T - #define _UINT8_T - typedef u_int8_t uint8_t; - #endif - - #ifndef _UINT16_T - #define _UINT16_T - typedef u_int16_t uint16_t; - #endif - - #ifndef _UINT32_T - #define _UINT32_T - typedef u_int32_t uint32_t; - #endif -EOF -else - sed 's/^ *//' >> tmp-stdint.h <<EOF - - /* Some systems have guard macros to prevent redefinitions, define them. */ - #ifndef _INT8_T - #define _INT8_T - #endif - #ifndef _INT16_T - #define _INT16_T - #endif - #ifndef _INT32_T - #define _INT32_T - #endif - #ifndef _UINT8_T - #define _UINT8_T - #endif - #ifndef _UINT16_T - #define _UINT16_T - #endif - #ifndef _UINT32_T - #define _UINT32_T - #endif -EOF -fi - -# ------------- done basic int types, emit int64_t types ------------ -if test "$ac_cv_type_uint64_t" = yes; then - sed 's/^ *//' >> tmp-stdint.h <<EOF - - /* system headers have good uint64_t and int64_t */ - #ifndef _INT64_T - #define _INT64_T - #endif - #ifndef _UINT64_T - #define _UINT64_T - #endif -EOF -elif test "$ac_cv_type_u_int64_t" = yes; then - sed 's/^ *//' >> tmp-stdint.h <<EOF - - /* system headers have an u_int64_t (and int64_t) */ - #ifndef _INT64_T - #define _INT64_T - #endif - #ifndef _UINT64_T - #define _UINT64_T - typedef u_int64_t uint64_t; - #endif -EOF -elif test -n "$acx_cv_type_int64_t"; then - sed 's/^ *//' >> tmp-stdint.h <<EOF - - /* architecture has a 64-bit type, $acx_cv_type_int64_t */ - #ifndef _INT64_T - #define _INT64_T - typedef $acx_cv_type_int64_t int64_t; - #endif - #ifndef _UINT64_T - #define _UINT64_T - typedef unsigned $acx_cv_type_int64_t uint64_t; - #endif -EOF -else - sed 's/^ *//' >> tmp-stdint.h <<EOF - - /* some common heuristics for int64_t, using compiler-specific tests */ - #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L - #ifndef _INT64_T - #define _INT64_T - typedef long long int64_t; - #endif - #ifndef _UINT64_T - #define _UINT64_T - typedef unsigned long long uint64_t; - #endif - - #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 - /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and - does not implement __extension__. But that compiler doesn't define - __GNUC_MINOR__. */ - # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) - # define __extension__ - # endif - - # ifndef _INT64_T - # define _INT64_T - __extension__ typedef long long int64_t; - # endif - # ifndef _UINT64_T - # define _UINT64_T - __extension__ typedef unsigned long long uint64_t; - # endif - - #elif !defined __STRICT_ANSI__ - # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ - - # ifndef _INT64_T - # define _INT64_T - typedef __int64 int64_t; - # endif - # ifndef _UINT64_T - # define _UINT64_T - typedef unsigned __int64 uint64_t; - # endif - # endif /* compiler */ - - #endif /* ANSI version */ -EOF -fi - -# ------------- done int64_t types, emit intptr types ------------ -if test "$ac_cv_type_uintptr_t" != yes; then - sed 's/^ *//' >> tmp-stdint.h <<EOF - - /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ - typedef u$acx_cv_type_intptr_t uintptr_t; - typedef $acx_cv_type_intptr_t intptr_t; -EOF -fi - -# ------------- done intptr types, emit int_least types ------------ -if test "$ac_cv_type_int_least32_t" != yes; then - sed 's/^ *//' >> tmp-stdint.h <<EOF - - /* Define int_least types */ - typedef int8_t int_least8_t; - typedef int16_t int_least16_t; - typedef int32_t int_least32_t; - #ifdef _INT64_T - typedef int64_t int_least64_t; - #endif - - typedef uint8_t uint_least8_t; - typedef uint16_t uint_least16_t; - typedef uint32_t uint_least32_t; - #ifdef _UINT64_T - typedef uint64_t uint_least64_t; - #endif -EOF -fi - -# ------------- done intptr types, emit int_fast types ------------ -if test "$ac_cv_type_int_fast32_t" != yes; then - sed 's/^ *//' >> tmp-stdint.h <<EOF - - /* Define int_fast types. short is often slow */ - typedef int8_t int_fast8_t; - typedef int int_fast16_t; - typedef int32_t int_fast32_t; - #ifdef _INT64_T - typedef int64_t int_fast64_t; - #endif - - typedef uint8_t uint_fast8_t; - typedef unsigned int uint_fast16_t; - typedef uint32_t uint_fast32_t; - #ifdef _UINT64_T - typedef uint64_t uint_fast64_t; - #endif -EOF -fi - -if test "$ac_cv_type_uintmax_t" != yes; then - sed 's/^ *//' >> tmp-stdint.h <<EOF - - /* Define intmax based on what we found */ - #ifdef _INT64_T - typedef int64_t intmax_t; - #else - typedef long intmax_t; - #endif - #ifdef _UINT64_T - typedef uint64_t uintmax_t; - #else - typedef unsigned long uintmax_t; - #endif -EOF -fi - -sed 's/^ *//' >> tmp-stdint.h <<EOF - - #endif /* GCC_GENERATED_STDINT_H */ -EOF - -if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then - rm -f tmp-stdint.h -else - mv -f tmp-stdint.h gstdint.h -fi - - ;; - esac -done -_ACEOF - -cat >>$CONFIG_STATUS <<\_ACEOF - -{ (exit 0); exit 0; } -_ACEOF -chmod +x $CONFIG_STATUS -ac_clean_files=$ac_clean_files_save - - -# configure is writing to config.log, and then calls config.status. -# config.status does its own redirection, appending to config.log. -# Unfortunately, on DOS this fails, as config.log is still kept open -# by configure, so config.status won't be able to write to it; its -# output is simply discarded. So we exec the FD to /dev/null, -# effectively closing config.log, so it can be properly (re)opened and -# appended to by config.status. When coming back to configure, we -# need to make the FD available again. -if test "$no_create" != yes; then - ac_cs_success=: - ac_config_status_args= - test "$silent" = yes && - ac_config_status_args="$ac_config_status_args --quiet" - exec 5>/dev/null - $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false - exec 5>>config.log - # Use ||, not &&, to avoid exiting from the if with $? = 1, which - # would make configure fail if this is the last instruction. - $ac_cs_success || { (exit 1); exit 1; } -fi - diff --git a/gcc-4.2.1-5666.3/libgomp/configure.ac b/gcc-4.2.1-5666.3/libgomp/configure.ac deleted file mode 100644 index fc0f0030d..000000000 --- a/gcc-4.2.1-5666.3/libgomp/configure.ac +++ /dev/null @@ -1,337 +0,0 @@ -# Process this file with autoconf to produce a configure script, like so: -# aclocal -I ../config && autoconf && autoheader && automake - -AC_PREREQ(2.59) -AC_INIT([GNU OpenMP Runtime Library], 1.0,,[libgomp]) -AC_CONFIG_HEADER(config.h) - -# ------- -# Options -# ------- - -AC_MSG_CHECKING([for --enable-version-specific-runtime-libs]) -LIBGOMP_ENABLE(version-specific-runtime-libs, no, , - [Specify that runtime libraries should be installed in a compiler-specific directory], - permit yes|no) -AC_MSG_RESULT($enable_version_specific_runtime_libs) - -AC_MSG_CHECKING([for --enable-linux-futex]) -LIBGOMP_ENABLE(linux-futex, default, , - [Use the Linux futex system call], - permit yes|no|default) -AC_MSG_RESULT($enable_linux_futex) - -# We would like our source tree to be readonly. However when releases or -# pre-releases are generated, the flex/bison generated files as well as the -# various formats of manuals need to be included along with the rest of the -# sources. Therefore we have --enable-generated-files-in-srcdir to do -# just that. -AC_MSG_CHECKING([for --enable-generated-files-in-srcdir]) -LIBGOMP_ENABLE(generated-files-in-srcdir, no, , - [put copies of generated files in source dir intended for creating source - tarballs for users without texinfo bison or flex.], - permit yes|no) -AC_MSG_RESULT($enable_generated_files_in_srcdir) -AM_CONDITIONAL(GENINSRC, test "$enable_generated_files_in_srcdir" = yes) - - -# ------- -# ------- - -# Gets build, host, target, *_vendor, *_cpu, *_os, etc. -# -# You will slowly go insane if you do not grok the following fact: when -# building this library, the top-level /target/ becomes the library's /host/. -# -# configure then causes --target to default to --host, exactly like any -# other package using autoconf. Therefore, 'target' and 'host' will -# always be the same. This makes sense both for native and cross compilers -# just think about it for a little while. :-) -# -# Also, if this library is being configured as part of a cross compiler, the -# top-level configure script will pass the "real" host as $with_cross_host. -# -# Do not delete or change the following two lines. For why, see -# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html -AC_CANONICAL_SYSTEM -target_alias=${target_alias-$host_alias} - -# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the -# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. -# 1.9.0: minimum required version -# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch -# of other PACKAGE_* variables will, however, and there's nothing -# we can do about that; they come from AC_INIT). -# foreign: we don't follow the normal rules for GNU packages (no COPYING -# file in the top srcdir, etc, etc), so stop complaining. -# no-dependencies: turns off auto dependency generation (just for now) -# -Wall: turns on all automake warnings... -# -Wno-portability: ...except this one, since GNU make is required. -# -Wno-override: ... and this one, since we do want this in testsuite. -AM_INIT_AUTOMAKE([1.9.0 foreign -Wall -Wno-portability -Wno-override]) -AM_ENABLE_MULTILIB(, ..) - -# Calculate toolexeclibdir -# Also toolexecdir, though it's only used in toolexeclibdir -case ${enable_version_specific_runtime_libs} in - yes) - # Need the gcc compiler version to know where to install libraries - # and header files if --enable-version-specific-runtime-libs option - # is selected. - toolexecdir='$(libdir)/gcc/$(target_alias)' - toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' - ;; - no) - if test -n "$with_cross_host" && - test x"$with_cross_host" != x"no"; then - # Install a library built with a cross compiler in tooldir, not libdir. - toolexecdir='$(exec_prefix)/$(target_alias)' - toolexeclibdir='$(toolexecdir)/lib' - else - toolexecdir='$(libdir)/gcc-lib/$(target_alias)' - toolexeclibdir='$(libdir)' - fi - multi_os_directory=`$CC -print-multi-os-directory` - case $multi_os_directory in - .) ;; # Avoid trailing /. - *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; - esac - ;; -esac -AC_SUBST(toolexecdir) -AC_SUBST(toolexeclibdir) - -# Check the compiler. -# The same as in boehm-gc and libstdc++. Have to borrow it from there. -# We must force CC to /not/ be precious variables; otherwise -# the wrong, non-multilib-adjusted value will be used in multilibs. -# As a side effect, we have to subst CFLAGS ourselves. - -m4_rename([_AC_ARG_VAR_PRECIOUS],[real_PRECIOUS]) -m4_define([_AC_ARG_VAR_PRECIOUS],[]) -AC_PROG_CC -m4_rename([real_PRECIOUS],[_AC_ARG_VAR_PRECIOUS]) - -AC_SUBST(CFLAGS) - -# In order to override CFLAGS_FOR_TARGET, all of our special flags go -# in XCFLAGS. But we need them in CFLAGS during configury. So put them -# in both places for now and restore CFLAGS at the end of config. -save_CFLAGS="$CFLAGS" - -# Add -Wall -Werror if we are using GCC. -if test "x$GCC" = "xyes"; then - XCFLAGS="$XCFLAGS -Wall -Werror" -fi - -# Find other programs we need. -AC_CHECK_TOOL(AR, ar) -AC_CHECK_TOOL(RANLIB, ranlib, ranlib-not-found-in-path-error) -AC_PATH_PROG(PERL, perl, perl-not-found-in-path-error) -AC_PROG_MAKE_SET -AC_PROG_INSTALL - -# See if makeinfo has been installed and is modern enough -# that we can use it. -ACX_CHECK_PROG_VER([MAKEINFO], [makeinfo], [--version], - [GNU texinfo.* \([0-9][0-9.]*\)], - [4.[4-9]*]) -AM_CONDITIONAL(BUILD_INFO, test $gcc_cv_prog_makeinfo_modern = "yes") - - -# Configure libtool -AM_PROG_LIBTOOL -AC_SUBST(enable_shared) -AC_SUBST(enable_static) - -AM_MAINTAINER_MODE - -# We need gfortran to compile parts of the library -# We can't use AC_PROG_FC because it expects a fully working gfortran. -#AC_PROG_FC(gfortran) -FC="$GFORTRAN" -AC_PROG_FC(gfortran) -FCFLAGS="$FCFLAGS -Wall" - -# For libtool versioning info, format is CURRENT:REVISION:AGE -libtool_VERSION=1:0:0 -AC_SUBST(libtool_VERSION) - -# Check header files. -AC_STDC_HEADERS -AC_HEADER_TIME -AC_CHECK_HEADERS(unistd.h semaphore.h sys/loadavg.h sys/time.h) - -GCC_HEADER_STDINT(gstdint.h) - -# Check to see if -pthread or -lpthread is needed. Prefer the former. -# In case the pthread.h system header is not found, this test will fail. -XPCFLAGS="" -CFLAGS="$CFLAGS -pthread" -AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [#include <pthread.h> - void *g(void *d) { return NULL; }], - [pthread_t t; pthread_create(&t,NULL,g,NULL);])], - [XPCFLAGS=" -Wc,-pthread"], - [CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS" - AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [#include <pthread.h> - void *g(void *d) { return NULL; }], - [pthread_t t; pthread_create(&t,NULL,g,NULL);])], - [], - [AC_MSG_ERROR([Pthreads are required to build libgomp])])]) - -# Check for functions needed. -AC_CHECK_FUNCS(getloadavg clock_gettime) - -# Check for broken semaphore implementation on darwin. -# sem_init returns: sem_init error: Function not implemented. -case "$host" in - *-darwin*) - AC_DEFINE(HAVE_BROKEN_POSIX_SEMAPHORES, 1, - Define if the POSIX Semaphores do not work on your system.) - ;; - *-linux*) - case "$enable_linux_futex" in - default) - # If headers don't have gettid/futex syscalls definition, then - # default to no, otherwise there will be compile time failures. - # Otherwise, default to yes. If we don't detect we are - # compiled/linked against NPTL and not cross-compiling, check - # if programs are run by default against NPTL and if not, issue - # a warning. - enable_linux_futex=no - AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [#include <sys/syscall.h> - int lk;], - [syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);])], - [AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [#ifndef _GNU_SOURCE - #define _GNU_SOURCE 1 - #endif - #include <pthread.h> - pthread_t th; void *status;], - [pthread_tryjoin_np (th, &status);])],[enable_linux_futex=yes], - [if test x$cross_compiling = xno; then - if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \ - | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then - AC_MSG_WARN([The kernel might not support futex or gettid syscalls. -If so, please configure with --disable-linux-futex]) - fi - fi - enable_linux_futex=yes])]) - ;; - yes) - AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [#include <sys/syscall.h> - int lk;], - [syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);])],[], - [AC_MSG_ERROR([SYS_gettid and SYS_futex required for --enable-linux-futex])]) - ;; - esac - ;; -esac - -# At least for glibc, clock_gettime is in librt. But don't pull that -# in if it still doesn't give us the function we want. -if test $ac_cv_func_clock_gettime = no; then - AC_CHECK_LIB(rt, clock_gettime, - [LIBS="-lrt $LIBS" - AC_DEFINE(HAVE_CLOCK_GETTIME, 1, - [Define to 1 if you have the `clock_gettime' function.])]) -fi - -# See if we support thread-local storage. -GCC_CHECK_TLS - -# See what sort of export controls are availible. -LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY -LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT -LIBGOMP_CHECK_ATTRIBUTE_ALIAS -LIBGOMP_ENABLE_SYMVERS - -# Get target configury. -. ${srcdir}/configure.tgt -CFLAGS="$save_CFLAGS $XCFLAGS" - -# Check for __sync_val_compare_and_swap, but only after the target has -# had a chance to set XCFLAGS. -LIBGOMP_CHECK_SYNC_BUILTINS - -XCFLAGS="$XCFLAGS$XPCFLAGS" - -AC_SUBST(config_path) -AC_SUBST(XCFLAGS) -AC_SUBST(XLDFLAGS) - -# Cleanup and exit. -CFLAGS="$save_CFLAGS" -AC_CACHE_SAVE - -if test ${multilib} = yes; then - multilib_arg="--enable-multilib" -else - multilib_arg= -fi - -# Set up the set of libraries that we need to link against for libgomp. -# Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp, -# which will force linkage against -lpthread (or equivalent for the system). -# That's not 100% ideal, but about the best we can do easily. -if test $enable_shared = yes; then - link_gomp="-lgomp %{static: $LIBS}" -else - link_gomp="-lgomp $LIBS" -fi -AC_SUBST(link_gomp) - -AM_CONDITIONAL([USE_FORTRAN], [test "$ac_cv_fc_compiler_gnu" = yes]) - -# ??? 2006-01-24: Paulo committed to asking autoconf folk to document -# and export AC_COMPUTE_INT. If that happens, then we'll need to remove -# the underscore here and update the PREREQ. If it doesn't, then we'll -# need to copy this macro to our acinclude.m4. -save_CFLAGS="$CFLAGS" -for i in $config_path; do - if test -f $srcdir/config/$i/omp-lock.h; then - CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h" - break - fi -done - -_AC_COMPUTE_INT([sizeof (omp_lock_t)], [OMP_LOCK_SIZE],, - [AC_MSG_ERROR([unsupported system, cannot find sizeof (omp_lock_t)])]) -_AC_COMPUTE_INT([__alignof (omp_lock_t)], [OMP_LOCK_ALIGN]) -_AC_COMPUTE_INT([sizeof (omp_nest_lock_t)], [OMP_NEST_LOCK_SIZE]) -_AC_COMPUTE_INT([__alignof (omp_nest_lock_t)], [OMP_NEST_LOCK_ALIGN]) - -# If the lock fits in an integer, then arrange for Fortran to use that -# integer. If it doesn't, then arrange for Fortran to use a pointer. -# Except that we don't have a way at present to multi-lib the installed -# Fortran modules, so we assume 8 bytes for pointers, regardless of the -# actual target. -OMP_LOCK_KIND=$OMP_LOCK_SIZE -OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE -if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then - OMP_LOCK_KIND=8 -fi -if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then - OMP_NEST_LOCK_KIND=8 -fi - -AC_SUBST(OMP_LOCK_SIZE) -AC_SUBST(OMP_LOCK_ALIGN) -AC_SUBST(OMP_NEST_LOCK_SIZE) -AC_SUBST(OMP_NEST_LOCK_ALIGN) -AC_SUBST(OMP_LOCK_KIND) -AC_SUBST(OMP_NEST_LOCK_KIND) -CFLAGS="$save_CFLAGS" - -AC_CONFIG_FILES(omp.h omp_lib.h omp_lib.f90 libgomp_f.h) -AC_CONFIG_FILES(Makefile testsuite/Makefile libgomp.spec) -AC_OUTPUT diff --git a/gcc-4.2.1-5666.3/libgomp/configure.tgt b/gcc-4.2.1-5666.3/libgomp/configure.tgt deleted file mode 100644 index 6b08d1bc6..000000000 --- a/gcc-4.2.1-5666.3/libgomp/configure.tgt +++ /dev/null @@ -1,130 +0,0 @@ -# This is the target specific configuration file. This is invoked by the -# autoconf generated configure script. Putting it in a separate shell file -# lets us skip running autoconf when modifying target specific information. - -# This file switches on the shell variable ${target}, and sets the -# following shell variables: -# config_path An ordered list of directories to search for -# sources and headers. This is relative to the -# config subdirectory of the source tree. -# XCFLAGS Add extra compile flags to use. -# XLDFLAGS Add extra link flags to use. - -# Optimize TLS usage by avoiding the overhead of dynamic allocation. -# This does require that the library be present during process -# startup, so mark the library as not to be dlopened. -if test $have_tls = yes ; then - case "${target}" in - - *-*-linux*) - XCFLAGS="${XCFLAGS} -ftls-model=initial-exec" - XLDFLAGS="${XLDFLAGS} -Wl,-z,nodlopen" - ;; - esac -fi - -# Since we require POSIX threads, assume a POSIX system by default. -config_path="posix" - -# Check for futex enabled all at once. -if test $enable_linux_futex = yes; then - case "${target}" in - - alpha*-*-linux*) - config_path="linux/alpha linux posix" - ;; - - ia64*-*-linux*) - config_path="linux/ia64 linux posix" - ;; - - powerpc*-*-linux*) - config_path="linux/powerpc linux posix" - ;; - - s390*-*-linux*) - config_path="linux/s390 linux posix" - ;; - - # Note that bare i386 is not included here. We need cmpxchg. - i[456]86-*-linux*) - config_path="linux/x86 linux posix" - if test -z "$with_arch"; then - XCFLAGS="${XCFLAGS} -march=i486 -mtune=${target_cpu}" - fi - ;; - - # Similar jiggery-pokery for x86_64 multilibs, except here we - # can't rely on the --with-arch configure option, since that - # applies to the 64-bit side. - x86_64-*-linux*) - config_path="linux/x86 linux posix" - case " ${CC} ${CFLAGS} " in - *" -m32 "*) - XCFLAGS="${XCFLAGS} -march=i486 -mtune=i686" - ;; - esac - ;; - - # Note that sparcv7 and sparcv8 is not included here. We need cas. - sparcv9-*-linux* | sparc64-*-linux*) - echo "int i;" > conftestx.c - if ${CC} ${CFLAGS} -c -o conftestx.o conftestx.c > /dev/null 2>&1; then - config_path="linux/sparc linux posix" - case "`/usr/bin/file conftestx.o`" in - *32-bit*) - case " ${CC} ${CFLAGS}" in - *" -mcpu=ultrasparc"*) - ;; - *) - XCFLAGS="${XCFLAGS} -mcpu=v9" - ;; - esac - ;; - esac - fi - rm -f conftestx.c conftestx.o - ;; - esac -fi - -# Other system configury -case "${target}" in - - *-*-hpux11*) - # HPUX v11.x requires -lrt to resolve sem_init in libgomp.la - XLDFLAGS="${XLDFLAGS} -lrt" - ;; - - *-*-mingw32*) - config_path="mingw32 posix" - ;; - - *-*-solaris2.[56]*) - config_path="posix95 posix" - XLDFLAGS="${XLDFLAGS} -lposix4" - ;; -# APPLE LOCAL begin mainline candidate - i[456]86-*-darwin[891]*) - XCFLAGS="${XCFLAGS} -mmacosx-version-min=10.4.0" - ;; - - x86_64-*-darwin*) - XCFLAGS="${XCFLAGS} -mmacosx-version-min=10.4.0" - ;; - - powerpc*-*-darwin[891]*) - case " ${CC} ${CFLAGS}" in - *" -m64"*) - XCFLAGS="${XCFLAGS} -mmacosx-version-min=10.4.0" - ;; - *) - XCFLAGS="${XCFLAGS} -mmacosx-version-min=10.3.9" - ;; - esac - ;; -# APPLE LOCAL end mainline candidate - *) - ;; - -esac diff --git a/gcc-4.2.1-5666.3/libgomp/critical.c b/gcc-4.2.1-5666.3/libgomp/critical.c deleted file mode 100644 index 90821634b..000000000 --- a/gcc-4.2.1-5666.3/libgomp/critical.c +++ /dev/null @@ -1,149 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This file handles the CRITICAL construct. */ - -#include "libgomp.h" -#include <stdlib.h> - - -static gomp_mutex_t default_lock; - -void -GOMP_critical_start (void) -{ - gomp_mutex_lock (&default_lock); -} - -void -GOMP_critical_end (void) -{ - gomp_mutex_unlock (&default_lock); -} - -#ifndef HAVE_SYNC_BUILTINS -static gomp_mutex_t create_lock_lock; -#endif - -void -GOMP_critical_name_start (void **pptr) -{ - gomp_mutex_t *plock; - - /* If a mutex fits within the space for a pointer, and is zero initialized, - then use the pointer space directly. */ - if (GOMP_MUTEX_INIT_0 - && sizeof (gomp_mutex_t) <= sizeof (void *) - && __alignof (gomp_mutex_t) <= sizeof (void *)) - plock = (gomp_mutex_t *)pptr; - - /* Otherwise we have to be prepared to malloc storage. */ - else - { - plock = *pptr; - - if (plock == NULL) - { -#ifdef HAVE_SYNC_BUILTINS - gomp_mutex_t *nlock = gomp_malloc (sizeof (gomp_mutex_t)); - gomp_mutex_init (nlock); - - plock = __sync_val_compare_and_swap (pptr, NULL, nlock); - if (plock != NULL) - { - gomp_mutex_destroy (nlock); - free (nlock); - } - else - plock = nlock; -#else - gomp_mutex_lock (&create_lock_lock); - plock = *pptr; - if (plock == NULL) - { - plock = gomp_malloc (sizeof (gomp_mutex_t)); - gomp_mutex_init (plock); - __sync_synchronize (); - *pptr = plock; - } - gomp_mutex_unlock (&create_lock_lock); -#endif - } - } - - gomp_mutex_lock (plock); -} - -void -GOMP_critical_name_end (void **pptr) -{ - gomp_mutex_t *plock; - - /* If a mutex fits within the space for a pointer, and is zero initialized, - then use the pointer space directly. */ - if (GOMP_MUTEX_INIT_0 - && sizeof (gomp_mutex_t) <= sizeof (void *) - && __alignof (gomp_mutex_t) <= sizeof (void *)) - plock = (gomp_mutex_t *)pptr; - else - plock = *pptr; - - gomp_mutex_unlock (plock); -} - -/* This mutex is used when atomic operations don't exist for the target - in the mode requested. The result is not globally atomic, but works so - long as all parallel references are within #pragma omp atomic directives. - According to responses received from omp@openmp.org, appears to be within - spec. Which makes sense, since that's how several other compilers - handle this situation as well. */ - -static gomp_mutex_t atomic_lock; - -void -GOMP_atomic_start (void) -{ - gomp_mutex_lock (&atomic_lock); -} - -void -GOMP_atomic_end (void) -{ - gomp_mutex_unlock (&atomic_lock); -} - -#if !GOMP_MUTEX_INIT_0 -static void __attribute__((constructor)) -initialize_critical (void) -{ - gomp_mutex_init (&default_lock); - gomp_mutex_init (&atomic_lock); -#ifndef HAVE_SYNC_BUILTINS - gomp_mutex_init (&create_lock_lock); -#endif -} -#endif diff --git a/gcc-4.2.1-5666.3/libgomp/env.c b/gcc-4.2.1-5666.3/libgomp/env.c deleted file mode 100644 index f07b31b91..000000000 --- a/gcc-4.2.1-5666.3/libgomp/env.c +++ /dev/null @@ -1,259 +0,0 @@ -/* Copyright (C) 2005, 2006 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This file defines the OpenMP internal control variables, and arranges - for them to be initialized from environment variables at startup. */ - -#include "libgomp.h" -#include "libgomp_f.h" -#include <ctype.h> -#include <stdlib.h> -#include <string.h> -#include <limits.h> -#include <errno.h> - - -unsigned long gomp_nthreads_var = 1; -bool gomp_dyn_var = false; -bool gomp_nest_var = false; -enum gomp_schedule_type gomp_run_sched_var = GFS_DYNAMIC; -unsigned long gomp_run_sched_chunk = 1; - -/* Parse the OMP_SCHEDULE environment variable. */ - -static void -parse_schedule (void) -{ - char *env, *end; - unsigned long value; - - env = getenv ("OMP_SCHEDULE"); - if (env == NULL) - return; - - while (isspace ((unsigned char) *env)) - ++env; - if (strncasecmp (env, "static", 6) == 0) - { - gomp_run_sched_var = GFS_STATIC; - env += 6; - } - else if (strncasecmp (env, "dynamic", 7) == 0) - { - gomp_run_sched_var = GFS_DYNAMIC; - env += 7; - } - else if (strncasecmp (env, "guided", 6) == 0) - { - gomp_run_sched_var = GFS_GUIDED; - env += 6; - } - else - goto unknown; - - while (isspace ((unsigned char) *env)) - ++env; - if (*env == '\0') - return; - if (*env++ != ',') - goto unknown; - while (isspace ((unsigned char) *env)) - ++env; - if (*env == '\0') - goto invalid; - - errno = 0; - value = strtoul (env, &end, 10); - if (errno) - goto invalid; - - while (isspace ((unsigned char) *end)) - ++end; - if (*end != '\0') - goto invalid; - - gomp_run_sched_chunk = value; - return; - - unknown: - gomp_error ("Unknown value for environment variable OMP_SCHEDULE"); - return; - - invalid: - gomp_error ("Invalid value for chunk size in " - "environment variable OMP_SCHEDULE"); - return; -} - -/* Parse an unsigned long environment varible. Return true if one was - present and it was successfully parsed. */ - -static bool -parse_unsigned_long (const char *name, unsigned long *pvalue) -{ - char *env, *end; - unsigned long value; - - env = getenv (name); - if (env == NULL) - return false; - - while (isspace ((unsigned char) *env)) - ++env; - if (*env == '\0') - goto invalid; - - errno = 0; - value = strtoul (env, &end, 10); - if (errno || (long) value <= 0) - goto invalid; - - while (isspace ((unsigned char) *end)) - ++end; - if (*end != '\0') - goto invalid; - - *pvalue = value; - return true; - - invalid: - gomp_error ("Invalid value for environment variable %s", name); - return false; -} - -/* Parse a boolean value for environment variable NAME and store the - result in VALUE. */ - -static void -parse_boolean (const char *name, bool *value) -{ - const char *env; - - env = getenv (name); - if (env == NULL) - return; - - while (isspace ((unsigned char) *env)) - ++env; - if (strncasecmp (env, "true", 4) == 0) - { - *value = true; - env += 4; - } - else if (strncasecmp (env, "false", 5) == 0) - { - *value = false; - env += 5; - } - else - env = "X"; - while (isspace ((unsigned char) *env)) - ++env; - if (*env != '\0') - gomp_error ("Invalid value for environment variable %s", name); -} - -static void __attribute__((constructor)) -initialize_env (void) -{ - unsigned long stacksize; - - /* Do a compile time check that mkomp_h.pl did good job. */ - omp_check_defines (); - - parse_schedule (); - parse_boolean ("OMP_DYNAMIC", &gomp_dyn_var); - parse_boolean ("OMP_NESTED", &gomp_nest_var); - if (!parse_unsigned_long ("OMP_NUM_THREADS", &gomp_nthreads_var)) - gomp_init_num_threads (); - - /* Not strictly environment related, but ordering constructors is tricky. */ - pthread_attr_init (&gomp_thread_attr); - pthread_attr_setdetachstate (&gomp_thread_attr, PTHREAD_CREATE_DETACHED); - - if (parse_unsigned_long ("GOMP_STACKSIZE", &stacksize)) - { - int err; - - stacksize *= 1024; - err = pthread_attr_setstacksize (&gomp_thread_attr, stacksize); - -#ifdef PTHREAD_STACK_MIN - if (err == EINVAL) - { - if (stacksize < PTHREAD_STACK_MIN) - gomp_error ("Stack size less than minimum of %luk", - PTHREAD_STACK_MIN / 1024ul - + (PTHREAD_STACK_MIN % 1024 != 0)); - else - gomp_error ("Stack size larger than system limit"); - } - else -#endif - if (err != 0) - gomp_error ("Stack size change failed: %s", strerror (err)); - } -} - - -/* The public OpenMP API routines that access these variables. */ - -void -omp_set_num_threads (int n) -{ - gomp_nthreads_var = (n > 0 ? n : 1); -} - -void -omp_set_dynamic (int val) -{ - gomp_dyn_var = val; -} - -int -omp_get_dynamic (void) -{ - return gomp_dyn_var; -} - -void -omp_set_nested (int val) -{ - gomp_nest_var = val; -} - -int -omp_get_nested (void) -{ - return gomp_nest_var; -} - -ialias (omp_set_dynamic) -ialias (omp_set_nested) -ialias (omp_set_num_threads) -ialias (omp_get_dynamic) -ialias (omp_get_nested) diff --git a/gcc-4.2.1-5666.3/libgomp/error.c b/gcc-4.2.1-5666.3/libgomp/error.c deleted file mode 100644 index 673074fed..000000000 --- a/gcc-4.2.1-5666.3/libgomp/error.c +++ /dev/null @@ -1,69 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This file contains routines used to signal errors. Most places in the - OpenMP API do not make any provision for failure, so we can't just - defer the decision on reporting the problem to the user; we must do it - ourselves or not at all. */ -/* ??? Is this about what other implementations do? Assume stderr hasn't - been pointed somewhere unsafe? */ - -#include "libgomp.h" -#include <stdarg.h> -#include <stdio.h> -#include <stdlib.h> - - -static void -gomp_verror (const char *fmt, va_list list) -{ - fputs ("\nlibgomp: ", stderr); - vfprintf (stderr, fmt, list); - fputc ('\n', stderr); -} - -void -gomp_error (const char *fmt, ...) -{ - va_list list; - - va_start (list, fmt); - gomp_verror (fmt, list); - va_end (list); -} - -void -gomp_fatal (const char *fmt, ...) -{ - va_list list; - - va_start (list, fmt); - gomp_verror (fmt, list); - va_end (list); - - exit (EXIT_FAILURE); -} diff --git a/gcc-4.2.1-5666.3/libgomp/fortran.c b/gcc-4.2.1-5666.3/libgomp/fortran.c deleted file mode 100644 index f6f64c61b..000000000 --- a/gcc-4.2.1-5666.3/libgomp/fortran.c +++ /dev/null @@ -1,227 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Jakub Jelinek <jakub@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This file contains Fortran wrapper routines. */ - -#include "libgomp.h" -#include "libgomp_f.h" -#include <stdlib.h> - -#ifdef HAVE_ATTRIBUTE_ALIAS -/* Use internal aliases if possible. */ -#define ULP STR1(__USER_LABEL_PREFIX__) -#define STR1(x) STR2(x) -#define STR2(x) #x -# define ialias_redirect(fn) \ - extern __typeof (fn) fn __asm__ (ULP "gomp_ialias_" #fn) attribute_hidden; -ialias_redirect (omp_init_lock) -ialias_redirect (omp_init_nest_lock) -ialias_redirect (omp_destroy_lock) -ialias_redirect (omp_destroy_nest_lock) -ialias_redirect (omp_set_lock) -ialias_redirect (omp_set_nest_lock) -ialias_redirect (omp_unset_lock) -ialias_redirect (omp_unset_nest_lock) -ialias_redirect (omp_test_lock) -ialias_redirect (omp_test_nest_lock) -ialias_redirect (omp_set_dynamic) -ialias_redirect (omp_set_nested) -ialias_redirect (omp_set_num_threads) -ialias_redirect (omp_get_dynamic) -ialias_redirect (omp_get_nested) -ialias_redirect (omp_in_parallel) -ialias_redirect (omp_get_max_threads) -ialias_redirect (omp_get_num_procs) -ialias_redirect (omp_get_num_threads) -ialias_redirect (omp_get_thread_num) -ialias_redirect (omp_get_wtick) -ialias_redirect (omp_get_wtime) -#endif - -void -omp_init_lock_ (omp_lock_arg_t lock) -{ -#ifndef OMP_LOCK_DIRECT - omp_lock_arg (lock) = malloc (sizeof (omp_lock_t)); -#endif - omp_init_lock (omp_lock_arg (lock)); -} - -void -omp_init_nest_lock_ (omp_nest_lock_arg_t lock) -{ -#ifndef OMP_NEST_LOCK_DIRECT - omp_nest_lock_arg (lock) = malloc (sizeof (omp_nest_lock_t)); -#endif - omp_init_nest_lock (omp_nest_lock_arg (lock)); -} - -void -omp_destroy_lock_ (omp_lock_arg_t lock) -{ - omp_destroy_lock (omp_lock_arg (lock)); -#ifndef OMP_LOCK_DIRECT - free (omp_lock_arg (lock)); - omp_lock_arg (lock) = NULL; -#endif -} - -void -omp_destroy_nest_lock_ (omp_nest_lock_arg_t lock) -{ - omp_destroy_nest_lock (omp_nest_lock_arg (lock)); -#ifndef OMP_NEST_LOCK_DIRECT - free (omp_nest_lock_arg (lock)); - omp_nest_lock_arg (lock) = NULL; -#endif -} - -void -omp_set_lock_ (omp_lock_arg_t lock) -{ - omp_set_lock (omp_lock_arg (lock)); -} - -void -omp_set_nest_lock_ (omp_nest_lock_arg_t lock) -{ - omp_set_nest_lock (omp_nest_lock_arg (lock)); -} - -void -omp_unset_lock_ (omp_lock_arg_t lock) -{ - omp_unset_lock (omp_lock_arg (lock)); -} - -void -omp_unset_nest_lock_ (omp_nest_lock_arg_t lock) -{ - omp_unset_nest_lock (omp_nest_lock_arg (lock)); -} - -void -omp_set_dynamic_ (const int32_t *set) -{ - omp_set_dynamic (*set); -} - -void -omp_set_dynamic_8_ (const int64_t *set) -{ - omp_set_dynamic (*set); -} - -void -omp_set_nested_ (const int32_t *set) -{ - omp_set_nested (*set); -} - -void -omp_set_nested_8_ (const int64_t *set) -{ - omp_set_nested (*set); -} - -void -omp_set_num_threads_ (const int32_t *set) -{ - omp_set_num_threads (*set); -} - -void -omp_set_num_threads_8_ (const int64_t *set) -{ - omp_set_num_threads (*set); -} - -int32_t -omp_get_dynamic_ (void) -{ - return omp_get_dynamic (); -} - -int32_t -omp_get_nested_ (void) -{ - return omp_get_nested (); -} - -int32_t -omp_in_parallel_ (void) -{ - return omp_in_parallel (); -} - -int32_t -omp_test_lock_ (omp_lock_arg_t lock) -{ - return omp_test_lock (omp_lock_arg (lock)); -} - -int32_t -omp_get_max_threads_ (void) -{ - return omp_get_max_threads (); -} - -int32_t -omp_get_num_procs_ (void) -{ - return omp_get_num_procs (); -} - -int32_t -omp_get_num_threads_ (void) -{ - return omp_get_num_threads (); -} - -int32_t -omp_get_thread_num_ (void) -{ - return omp_get_thread_num (); -} - -int32_t -omp_test_nest_lock_ (omp_nest_lock_arg_t lock) -{ - return omp_test_nest_lock (omp_nest_lock_arg (lock)); -} - -double -omp_get_wtick_ (void) -{ - return omp_get_wtick (); -} - -double -omp_get_wtime_ (void) -{ - return omp_get_wtime (); -} diff --git a/gcc-4.2.1-5666.3/libgomp/iter.c b/gcc-4.2.1-5666.3/libgomp/iter.c deleted file mode 100644 index 1a8a2a7d0..000000000 --- a/gcc-4.2.1-5666.3/libgomp/iter.c +++ /dev/null @@ -1,310 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This file contains routines for managing work-share iteration, both - for loops and sections. */ - -#include "libgomp.h" -#include <stdlib.h> - - -/* This function implements the STATIC scheduling method. The caller should - iterate *pstart <= x < *pend. Return zero if there are more iterations - to perform; nonzero if not. Return less than 0 if this thread had - received the absolutely last iteration. */ - -int -gomp_iter_static_next (long *pstart, long *pend) -{ - struct gomp_thread *thr = gomp_thread (); - struct gomp_team *team = thr->ts.team; - struct gomp_work_share *ws = thr->ts.work_share; - unsigned long nthreads = team ? team->nthreads : 1; - - if (thr->ts.static_trip == -1) - return -1; - - /* Quick test for degenerate teams and orphaned constructs. */ - if (nthreads == 1) - { - *pstart = ws->next; - *pend = ws->end; - thr->ts.static_trip = -1; - return ws->next == ws->end; - } - - /* We interpret chunk_size zero as "unspecified", which means that we - should break up the iterations such that each thread makes only one - trip through the outer loop. */ - if (ws->chunk_size == 0) - { - unsigned long n, q, i; - unsigned long s0, e0; - long s, e; - - if (thr->ts.static_trip > 0) - return 1; - - /* Compute the total number of iterations. */ - s = ws->incr + (ws->incr > 0 ? -1 : 1); - n = (ws->end - ws->next + s) / ws->incr; - i = thr->ts.team_id; - - /* Compute the "zero-based" start and end points. That is, as - if the loop began at zero and incremented by one. */ - q = n / nthreads; - q += (q * nthreads != n); - s0 = q * i; - e0 = s0 + q; - if (e0 > n) - e0 = n; - - /* Notice when no iterations allocated for this thread. */ - if (s0 >= e0) - { - thr->ts.static_trip = 1; - return 1; - } - - /* Transform these to the actual start and end numbers. */ - s = (long)s0 * ws->incr + ws->next; - e = (long)e0 * ws->incr + ws->next; - - *pstart = s; - *pend = e; - thr->ts.static_trip = (e0 == n ? -1 : 1); - return 0; - } - else - { - unsigned long n, s0, e0, i, c; - long s, e; - - /* Otherwise, each thread gets exactly chunk_size iterations - (if available) each time through the loop. */ - - s = ws->incr + (ws->incr > 0 ? -1 : 1); - n = (ws->end - ws->next + s) / ws->incr; - i = thr->ts.team_id; - c = ws->chunk_size; - - /* Initial guess is a C sized chunk positioned nthreads iterations - in, offset by our thread number. */ - s0 = (thr->ts.static_trip * nthreads + i) * c; - e0 = s0 + c; - - /* Detect overflow. */ - if (s0 >= n) - return 1; - if (e0 > n) - e0 = n; - - /* Transform these to the actual start and end numbers. */ - s = (long)s0 * ws->incr + ws->next; - e = (long)e0 * ws->incr + ws->next; - - *pstart = s; - *pend = e; - - if (e0 == n) - thr->ts.static_trip = -1; - else - thr->ts.static_trip++; - return 0; - } -} - - -/* This function implements the DYNAMIC scheduling method. Arguments are - as for gomp_iter_static_next. This function must be called with ws->lock - held. */ - -bool -gomp_iter_dynamic_next_locked (long *pstart, long *pend) -{ - struct gomp_thread *thr = gomp_thread (); - struct gomp_work_share *ws = thr->ts.work_share; - long start, end, chunk, left; - - start = ws->next; - if (start == ws->end) - return false; - - chunk = ws->chunk_size * ws->incr; - left = ws->end - start; - if (ws->incr < 0) - { - if (chunk < left) - chunk = left; - } - else - { - if (chunk > left) - chunk = left; - } - end = start + chunk; - - ws->next = end; - *pstart = start; - *pend = end; - return true; -} - - -#ifdef HAVE_SYNC_BUILTINS -/* Similar, but doesn't require the lock held, and uses compare-and-swap - instead. Note that the only memory value that changes is ws->next. */ - -bool -gomp_iter_dynamic_next (long *pstart, long *pend) -{ - struct gomp_thread *thr = gomp_thread (); - struct gomp_work_share *ws = thr->ts.work_share; - long start, end, nend, chunk, incr; - - start = ws->next; - end = ws->end; - incr = ws->incr; - chunk = ws->chunk_size * incr; - - while (1) - { - long left = end - start; - long tmp; - - if (start == end) - return false; - - if (incr < 0) - { - if (chunk < left) - chunk = left; - } - else - { - if (chunk > left) - chunk = left; - } - nend = start + chunk; - - tmp = __sync_val_compare_and_swap (&ws->next, start, nend); - if (__builtin_expect (tmp == start, 1)) - break; - - start = tmp; - } - - *pstart = start; - *pend = nend; - return true; -} -#endif /* HAVE_SYNC_BUILTINS */ - - -/* This function implements the GUIDED scheduling method. Arguments are - as for gomp_iter_static_next. This function must be called with the - work share lock held. */ - -bool -gomp_iter_guided_next_locked (long *pstart, long *pend) -{ - struct gomp_thread *thr = gomp_thread (); - struct gomp_work_share *ws = thr->ts.work_share; - struct gomp_team *team = thr->ts.team; - unsigned long nthreads = team ? team->nthreads : 1; - unsigned long n, q; - long start, end; - - if (ws->next == ws->end) - return false; - - n = (ws->end - ws->next) / ws->incr; - q = (n + nthreads - 1) / nthreads; - - if (q < ws->chunk_size) - q = ws->chunk_size; - if (q > n) - q = n; - - start = ws->next; - end = start + q * ws->incr; - - ws->next = end; - *pstart = start; - *pend = end; - return true; -} - -#ifdef HAVE_SYNC_BUILTINS -/* Similar, but doesn't require the lock held, and uses compare-and-swap - instead. Note that the only memory value that changes is ws->next. */ - -bool -gomp_iter_guided_next (long *pstart, long *pend) -{ - struct gomp_thread *thr = gomp_thread (); - struct gomp_work_share *ws = thr->ts.work_share; - struct gomp_team *team = thr->ts.team; - unsigned long nthreads = team ? team->nthreads : 1; - long start, end, nend, incr; - unsigned long chunk_size; - - start = ws->next; - end = ws->end; - incr = ws->incr; - chunk_size = ws->chunk_size; - - while (1) - { - unsigned long n, q; - long tmp; - - if (start == end) - return false; - - n = (end - start) / ws->incr; - q = (n + nthreads - 1) / nthreads; - - if (q < chunk_size) - q = chunk_size; - if (q > n) - q = n; - - nend = start + q * incr; - - tmp = __sync_val_compare_and_swap (&ws->next, start, nend); - if (__builtin_expect (tmp == start, 1)) - break; - - start = tmp; - } - - *pstart = start; - *pend = nend; - return true; -} -#endif /* HAVE_SYNC_BUILTINS */ diff --git a/gcc-4.2.1-5666.3/libgomp/libgomp.h b/gcc-4.2.1-5666.3/libgomp/libgomp.h deleted file mode 100644 index 47e68e69c..000000000 --- a/gcc-4.2.1-5666.3/libgomp/libgomp.h +++ /dev/null @@ -1,336 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This file contains data types and function declarations that are not - part of the official OpenMP user interface. There are declarations - in here that are part of the GNU OpenMP ABI, in that the compiler is - required to know about them and use them. - - The convention is that the all caps prefix "GOMP" is used group items - that are part of the external ABI, and the lower case prefix "gomp" - is used group items that are completely private to the library. */ - -#ifndef LIBGOMP_H -#define LIBGOMP_H 1 - -#include "config.h" -#include "gstdint.h" - -#include <pthread.h> -#include <stdbool.h> - -#ifdef HAVE_ATTRIBUTE_VISIBILITY -# pragma GCC visibility push(hidden) -#endif - -#include "sem.h" -#include "mutex.h" -#include "bar.h" - - -/* This structure contains the data to control one work-sharing construct, - either a LOOP (FOR/DO) or a SECTIONS. */ - -enum gomp_schedule_type -{ - GFS_STATIC, - GFS_DYNAMIC, - GFS_GUIDED, - GFS_RUNTIME -}; - -struct gomp_work_share -{ - /* This member records the SCHEDULE clause to be used for this construct. - The user specification of "runtime" will already have been resolved. - If this is a SECTIONS construct, this value will always be DYNAMIC. */ - enum gomp_schedule_type sched; - - /* This is the chunk_size argument to the SCHEDULE clause. */ - long chunk_size; - - /* This is the iteration end point. If this is a SECTIONS construct, - this is the number of contained sections. */ - long end; - - /* This is the iteration step. If this is a SECTIONS construct, this - is always 1. */ - long incr; - - /* This lock protects the update of the following members. */ - gomp_mutex_t lock; - - union { - /* This is the next iteration value to be allocated. In the case of - GFS_STATIC loops, this the iteration start point and never changes. */ - long next; - - /* This is the returned data structure for SINGLE COPYPRIVATE. */ - void *copyprivate; - }; - - /* This is the count of the number of threads that have exited the work - share construct. If the construct was marked nowait, they have moved on - to other work; otherwise they're blocked on a barrier. The last member - of the team to exit the work share construct must deallocate it. */ - unsigned threads_completed; - - /* This is the index into the circular queue ordered_team_ids of the - current thread that's allowed into the ordered reason. */ - unsigned ordered_cur; - - /* This is the number of threads that have registered themselves in - the circular queue ordered_team_ids. */ - unsigned ordered_num_used; - - /* This is the team_id of the currently acknoledged owner of the ordered - section, or -1u if the ordered section has not been acknowledged by - any thread. This is distinguished from the thread that is *allowed* - to take the section next. */ - unsigned ordered_owner; - - /* This is a circular queue that details which threads will be allowed - into the ordered region and in which order. When a thread allocates - iterations on which it is going to work, it also registers itself at - the end of the array. When a thread reaches the ordered region, it - checks to see if it is the one at the head of the queue. If not, it - blocks on its RELEASE semaphore. */ - unsigned ordered_team_ids[]; -}; - -/* This structure contains all of the thread-local data associated with - a thread team. This is the data that must be saved when a thread - encounters a nested PARALLEL construct. */ - -struct gomp_team_state -{ - /* This is the team of which the thread is currently a member. */ - struct gomp_team *team; - - /* This is the work share construct which this thread is currently - processing. Recall that with NOWAIT, not all threads may be - processing the same construct. This value is NULL when there - is no construct being processed. */ - struct gomp_work_share *work_share; - - /* This is the ID of this thread within the team. This value is - guaranteed to be between 0 and N-1, where N is the number of - threads in the team. */ - unsigned team_id; - - /* The work share "generation" is a number that increases by one for - each work share construct encountered in the dynamic flow of the - program. It is used to find the control data for the work share - when encountering it for the first time. This particular number - reflects the generation of the work_share member of this struct. */ - unsigned work_share_generation; - - /* For GFS_RUNTIME loops that resolved to GFS_STATIC, this is the - trip number through the loop. So first time a particular loop - is encountered this number is 0, the second time through the loop - is 1, etc. This is unused when the compiler knows in advance that - the loop is statically scheduled. */ - unsigned long static_trip; -}; - -/* This structure describes a "team" of threads. These are the threads - that are spawned by a PARALLEL constructs, as well as the work sharing - constructs that the team encounters. */ - -struct gomp_team -{ - /* This lock protects access to the following work shares data structures. */ - gomp_mutex_t work_share_lock; - - /* This is a dynamically sized array containing pointers to the control - structs for all "live" work share constructs. Here "live" means that - the construct has been encountered by at least one thread, and not - completed by all threads. */ - struct gomp_work_share **work_shares; - - /* The work_shares array is indexed by "generation & generation_mask". - The mask will be 2**N - 1, where 2**N is the size of the array. */ - unsigned generation_mask; - - /* These two values define the bounds of the elements of the work_shares - array that are currently in use. */ - unsigned oldest_live_gen; - unsigned num_live_gen; - - /* This is the number of threads in the current team. */ - unsigned nthreads; - - /* This is the saved team state that applied to a master thread before - the current thread was created. */ - struct gomp_team_state prev_ts; - - /* This barrier is used for most synchronization of the team. */ - gomp_barrier_t barrier; - - /* This semaphore should be used by the master thread instead of its - "native" semaphore in the thread structure. Required for nested - parallels, as the master is a member of two teams. */ - gomp_sem_t master_release; - - /* This array contains pointers to the release semaphore of the threads - in the team. */ - gomp_sem_t *ordered_release[]; -}; - -/* This structure contains all data that is private to libgomp and is - allocated per thread. */ - -struct gomp_thread -{ - /* This is the function that the thread should run upon launch. */ - void (*fn) (void *data); - void *data; - - /* This is the current team state for this thread. The ts.team member - is NULL only if the thread is idle. */ - struct gomp_team_state ts; - - /* This semaphore is used for ordered loops. */ - gomp_sem_t release; -}; - -/* ... and here is that TLS data. */ - -#ifdef HAVE_TLS -extern __thread struct gomp_thread gomp_tls_data; -static inline struct gomp_thread *gomp_thread (void) -{ - return &gomp_tls_data; -} -#else -extern pthread_key_t gomp_tls_key; -static inline struct gomp_thread *gomp_thread (void) -{ - return pthread_getspecific (gomp_tls_key); -} -#endif - -/* These are the OpenMP 2.5 internal control variables described in - section 2.3. At least those that correspond to environment variables. */ - -extern unsigned long gomp_nthreads_var; -extern bool gomp_dyn_var; -extern bool gomp_nest_var; -extern enum gomp_schedule_type gomp_run_sched_var; -extern unsigned long gomp_run_sched_chunk; - -/* The attributes to be used during thread creation. */ -extern pthread_attr_t gomp_thread_attr; - -/* Function prototypes. */ - -/* alloc.c */ - -extern void *gomp_malloc (size_t) __attribute__((malloc)); -extern void *gomp_malloc_cleared (size_t) __attribute__((malloc)); -extern void *gomp_realloc (void *, size_t); - -/* Avoid conflicting prototypes of alloca() in system headers by using - GCC's builtin alloca(). */ -#define gomp_alloca(x) __builtin_alloca(x) - -/* error.c */ - -extern void gomp_error (const char *, ...) - __attribute__((format (printf, 1, 2))); -extern void gomp_fatal (const char *, ...) - __attribute__((noreturn, format (printf, 1, 2))); - -/* iter.c */ - -extern int gomp_iter_static_next (long *, long *); -extern bool gomp_iter_dynamic_next_locked (long *, long *); -extern bool gomp_iter_guided_next_locked (long *, long *); - -#ifdef HAVE_SYNC_BUILTINS -extern bool gomp_iter_dynamic_next (long *, long *); -extern bool gomp_iter_guided_next (long *, long *); -#endif - -/* ordered.c */ - -extern void gomp_ordered_first (void); -extern void gomp_ordered_last (void); -extern void gomp_ordered_next (void); -extern void gomp_ordered_static_init (void); -extern void gomp_ordered_static_next (void); -extern void gomp_ordered_sync (void); - -/* parallel.c */ - -extern unsigned gomp_resolve_num_threads (unsigned); - -/* proc.c (in config/) */ - -extern void gomp_init_num_threads (void); -extern unsigned gomp_dynamic_max_threads (void); - -/* team.c */ - -extern void gomp_team_start (void (*) (void *), void *, unsigned, - struct gomp_work_share *); -extern void gomp_team_end (void); - -/* work.c */ - -extern struct gomp_work_share * gomp_new_work_share (bool, unsigned); -extern bool gomp_work_share_start (bool); -extern void gomp_work_share_end (void); -extern void gomp_work_share_end_nowait (void); - -#ifdef HAVE_ATTRIBUTE_VISIBILITY -# pragma GCC visibility pop -#endif - -/* Now that we're back to default visibility, include the globals. */ -#include "libgomp_g.h" - -/* Include omp.h by parts. */ -#include "omp-lock.h" -#define _LIBGOMP_OMP_LOCK_DEFINED 1 -#include "omp.h.in" - -#ifdef HAVE_ATTRIBUTE_VISIBILITY -# define attribute_hidden __attribute__ ((visibility ("hidden"))) -#else -# define attribute_hidden -#endif - -#ifdef HAVE_ATTRIBUTE_ALIAS -# define ialias(fn) \ - extern __typeof (fn) gomp_ialias_##fn \ - __attribute__ ((alias (#fn))) attribute_hidden; -#else -# define ialias(fn) -#endif - -#endif /* LIBGOMP_H */ diff --git a/gcc-4.2.1-5666.3/libgomp/libgomp.map b/gcc-4.2.1-5666.3/libgomp/libgomp.map deleted file mode 100644 index 9e13ef811..000000000 --- a/gcc-4.2.1-5666.3/libgomp/libgomp.map +++ /dev/null @@ -1,105 +0,0 @@ -OMP_1.0 { - global: - omp_set_num_threads; - omp_get_num_threads; - omp_get_max_threads; - omp_get_thread_num; - omp_get_num_procs; - omp_in_parallel; - omp_set_dynamic; - omp_get_dynamic; - omp_set_nested; - omp_get_nested; - omp_init_lock; - omp_init_nest_lock; - omp_destroy_lock; - omp_destroy_nest_lock; - omp_set_lock; - omp_set_nest_lock; - omp_unset_lock; - omp_unset_nest_lock; - omp_test_lock; - omp_test_nest_lock; - omp_destroy_lock_; - omp_destroy_nest_lock_; - omp_get_dynamic_; - omp_get_max_threads_; - omp_get_nested_; - omp_get_num_procs_; - omp_get_num_threads_; - omp_get_thread_num_; - omp_in_parallel_; - omp_init_lock_; - omp_init_nest_lock_; - omp_set_dynamic_; - omp_set_dynamic_8_; - omp_set_lock_; - omp_set_nest_lock_; - omp_set_nested_; - omp_set_nested_8_; - omp_set_num_threads_; - omp_set_num_threads_8_; - omp_test_lock_; - omp_test_nest_lock_; - omp_unset_lock_; - omp_unset_nest_lock_; - local: - *; -}; - -OMP_2.0 { - global: - omp_get_wtick; - omp_get_wtime; - omp_get_wtick_; - omp_get_wtime_; -} OMP_1.0; - -GOMP_1.0 { - global: - GOMP_atomic_end; - GOMP_atomic_start; - GOMP_barrier; - GOMP_critical_end; - GOMP_critical_name_end; - GOMP_critical_name_start; - GOMP_critical_start; - GOMP_loop_dynamic_next; - GOMP_loop_dynamic_start; - GOMP_loop_end; - GOMP_loop_end_nowait; - GOMP_loop_guided_next; - GOMP_loop_guided_start; - GOMP_loop_ordered_dynamic_first; - GOMP_loop_ordered_dynamic_next; - GOMP_loop_ordered_dynamic_start; - GOMP_loop_ordered_guided_first; - GOMP_loop_ordered_guided_next; - GOMP_loop_ordered_guided_start; - GOMP_loop_ordered_runtime_first; - GOMP_loop_ordered_runtime_next; - GOMP_loop_ordered_runtime_start; - GOMP_loop_ordered_static_first; - GOMP_loop_ordered_static_next; - GOMP_loop_ordered_static_start; - GOMP_loop_runtime_next; - GOMP_loop_runtime_start; - GOMP_loop_static_next; - GOMP_loop_static_start; - GOMP_ordered_end; - GOMP_ordered_start; - GOMP_parallel_end; - GOMP_parallel_loop_dynamic_start; - GOMP_parallel_loop_guided_start; - GOMP_parallel_loop_runtime_start; - GOMP_parallel_loop_static_start; - GOMP_parallel_sections_start; - GOMP_parallel_start; - GOMP_sections_end; - GOMP_sections_end_nowait; - GOMP_sections_next; - GOMP_sections_start; - GOMP_single_copy_end; - GOMP_single_copy_start; - GOMP_single_start; -}; diff --git a/gcc-4.2.1-5666.3/libgomp/libgomp.spec.in b/gcc-4.2.1-5666.3/libgomp/libgomp.spec.in deleted file mode 100644 index b7319f33a..000000000 --- a/gcc-4.2.1-5666.3/libgomp/libgomp.spec.in +++ /dev/null @@ -1,3 +0,0 @@ -# This spec file is read by gcc when linking. It is used to specify the -# standard libraries we need in order to link with -fopenmp. -*link_gomp: @link_gomp@ diff --git a/gcc-4.2.1-5666.3/libgomp/libgomp.texi b/gcc-4.2.1-5666.3/libgomp/libgomp.texi deleted file mode 100644 index c48cf93e0..000000000 --- a/gcc-4.2.1-5666.3/libgomp/libgomp.texi +++ /dev/null @@ -1,1364 +0,0 @@ -\input texinfo @c -*-texinfo-*- - -@c %**start of header -@setfilename libgomp.info -@settitle GNU libgomp -@c %**end of header - - -@copying -Copyright @copyright{} 2006 Free Software Foundation, Inc. - -Permission is granted to copy, distribute and/or modify this document -under the terms of the GNU Free Documentation License, Version 1.1 or -any later version published by the Free Software Foundation; with the -Invariant Sections being ``GNU General Public License'' and ``Funding -Free Software'', the Front-Cover -texts being (a) (see below), and with the Back-Cover Texts being (b) -(see below). A copy of the license is included in the section entitled -``GNU Free Documentation License''. - -(a) The FSF's Front-Cover Text is: - - A GNU Manual - -(b) The FSF's Back-Cover Text is: - - You have freedom to copy and modify this GNU Manual, like GNU - software. Copies published by the Free Software Foundation raise - funds for GNU development. -@end copying - -@ifinfo -@dircategory GNU Libraries -@direntry -* libgomp: (libgomp). GNU OpenMP runtime library -@end direntry - -This manual documents the GNU implementation of the OpenMP API for -multi-platform shared-memory parallel programming in C/C++ and Fortran. - -Published by the Free Software Foundation -51 Franklin Street, Fifth Floor -Boston, MA 02110-1301 USA - -@insertcopying -@end ifinfo - - -@setchapternewpage odd - -@titlepage -@title The GNU OpenMP Implementation -@page -@vskip 0pt plus 1filll -@comment For the @value{version-GCC} Version* -@sp 1 -Published by the Free Software Foundation @* -51 Franklin Street, Fifth Floor@* -Boston, MA 02110-1301, USA@* -@sp 1 -@insertcopying -@end titlepage - -@summarycontents -@contents -@page - - -@node Top -@top Introduction -@cindex Introduction - -This manual documents the usage of libgomp, the GNU implementation of the -@uref{http://www.openmp.org, OpenMP} Application Programming Interface (API) -for multi-platform shared-memory parallel programming in C/C++ and Fortran. - - - -@comment -@comment When you add a new menu item, please keep the right hand -@comment aligned to the same column. Do not use tabs. This provides -@comment better formatting. -@comment -@menu -* Enabling OpenMP:: How to enable OpenMP for your applications. -* Runtime Library Routines:: The OpenMP runtime application programming - interface. -* Environment Variables:: Influencing runtime behavior with environment - variables. -* The libgomp ABI:: Notes on the external ABI presented by libgomp. -* Reporting Bugs:: How to report bugs in GNU OpenMP. -* Copying:: GNU general public license says - how you can copy and share libgomp. -* GNU Free Documentation License:: - How you can copy and share this manual. -* Funding:: How to help assure continued work for free - software. -* Index:: Index of this documentation. -@end menu - - -@c --------------------------------------------------------------------- -@c Enabling OpenMP -@c --------------------------------------------------------------------- - -@node Enabling OpenMP -@chapter Enabling OpenMP - -To activate the OpenMP extensions for C/C++ and Fortran, the compile-time -flag @command{-fopenmp} must be specified. This enables the OpenMP directive -@code{#pragma omp} in C/C++ and @code{!$omp} directives in free form, -@code{c$omp}, @code{*$omp} and @code{!$omp} directives in fixed form, -@code{!$} conditional compilation sentinels in free form and @code{c$}, -@code{*$} and @code{!$} sentinels in fixed form, for Fortran. The flag also -arranges for automatic linking of the OpenMP runtime library -(@ref{Runtime Library Routines}). - -A complete description of all OpenMP directives accepted may be found in -the @uref{http://www.openmp.org, OpenMP Application Program Interface} manual, -version 2.5. - - -@c --------------------------------------------------------------------- -@c Runtime Library Routines -@c --------------------------------------------------------------------- - -@node Runtime Library Routines -@chapter Runtime Library Routines - -The runtime routines described here are defined by section 3 of the OpenMP -specifications in version 2.5. - -Control threads, processors and the parallel environment. - -@menu -* omp_get_dynamic:: Dynamic teams setting -* omp_get_max_threads:: Maximum number of threads -* omp_get_nested:: Nested parallel regions -* omp_get_num_procs:: Number of processors online -* omp_get_num_threads:: Size of the active team -* omp_get_thread_num:: Current thread ID -* omp_in_parallel:: Whether a parallel region is active -* omp_set_dynamic:: Enable/disable dynamic teams -* omp_set_nested:: Enable/disable nested parallel regions -* omp_set_num_threads:: Set upper team size limit -@end menu - -Initialize, set, test, unset and destroy simple and nested locks. - -@menu -* omp_init_lock:: Initialize simple lock -* omp_set_lock:: Wait for and set simple lock -* omp_test_lock:: Test and set simple lock if available -* omp_unset_lock:: Unset simple lock -* omp_destroy_lock:: Destroy simple lock -* omp_init_nest_lock:: Initialize nested lock -* omp_set_nest_lock:: Wait for and set simple lock -* omp_test_nest_lock:: Test and set nested lock if available -* omp_unset_nest_lock:: Unset nested lock -* omp_destroy_nest_lock:: Destroy nested lock -@end menu - -Portable, thread-based, wall clock timer. - -@menu -* omp_get_wtick:: Get timer precision. -* omp_get_wtime:: Elapsed wall clock time. -@end menu - -@node omp_get_dynamic -@section @code{omp_get_dynamic} -- Dynamic teams setting -@table @asis -@item @emph{Description}: -This function returns @code{true} if enabled, @code{false} otherwise. -Here, @code{true} and @code{false} represent their language-specific -counterparts. - -The dynamic team setting may be initialized at startup by the -@code{OMP_DYNAMIC} environment variable or at runtime using -@code{omp_set_dynamic}. If undefined, dynamic adjustment is -disabled by default. - -@item @emph{C/C++}: -@multitable @columnfractions .20 .80 -@item @emph{Prototype}: @tab @code{int omp_get_dynamic();} -@end multitable - -@item @emph{Fortran}: -@multitable @columnfractions .20 .80 -@item @emph{Interface}: @tab @code{logical function omp_get_dynamic()} -@end multitable - -@item @emph{See also}: -@ref{omp_set_dynamic}, @ref{OMP_DYNAMIC} - -@item @emph{Reference}: -@uref{http://www.openmp.org/, OpenMP specifications v2.5}, section 3.2.8. -@end table - - - -@node omp_get_max_threads -@section @code{omp_get_max_threads} -- Maximum number of threads -@table @asis -@item @emph{Description}: -Return the maximum number of threads used for parallel regions that do -not use the clause @code{num_threads}. - -@item @emph{C/C++}: -@multitable @columnfractions .20 .80 -@item @emph{Prototype}: @tab @code{int omp_get_max_threads();} -@end multitable - -@item @emph{Fortran}: -@multitable @columnfractions .20 .80 -@item @emph{Interface}: @tab @code{integer function omp_get_max_threads()} -@end multitable - -@item @emph{See also}: -@ref{omp_set_num_threads}, @ref{omp_set_dynamic} - -@item @emph{Reference}: -@uref{http://www.openmp.org/, OpenMP specifications v2.5}, section 3.2.3. -@end table - - - -@node omp_get_nested -@section @code{omp_get_nested} -- Nested parallel regions -@table @asis -@item @emph{Description}: -This function returns @code{true} if nested parallel regions are -enabled, @code{false} otherwise. Here, @code{true} and @code{false} -represent their language-specific counterparts. - -Nested parallel regions may be initialized at startup by the -@code{OMP_NESTED} environment variable or at runtime using -@code{omp_set_nested}. If undefined, nested parallel regions are -disabled by default. - -@item @emph{C/C++}: -@multitable @columnfractions .20 .80 -@item @emph{Prototype}: @tab @code{int omp_get_nested();} -@end multitable - -@item @emph{Fortran}: -@multitable @columnfractions .20 .80 -@item @emph{Interface}: @tab @code{integer function omp_get_nested()} -@end multitable - -@item @emph{See also}: -@ref{omp_set_nested}, @ref{OMP_NESTED} - -@item @emph{Reference}: -@uref{http://www.openmp.org/, OpenMP specifications v2.5}, section 3.2.10. -@end table - - - -@node omp_get_num_procs -@section @code{omp_get_num_procs} -- Number of processors online -@table @asis -@item @emph{Description}: -Returns the number of processors online. - -@item @emph{C/C++}: -@multitable @columnfractions .20 .80 -@item @emph{Prototype}: @tab @code{int omp_get_num_procs();} -@end multitable - -@item @emph{Fortran}: -@multitable @columnfractions .20 .80 -@item @emph{Interface}: @tab @code{integer function omp_get_num_procs()} -@end multitable - -@item @emph{Reference}: -@uref{http://www.openmp.org/, OpenMP specifications v2.5}, section 3.2.5. -@end table - - - -@node omp_get_num_threads -@section @code{omp_get_num_threads} -- Size of the active team -@table @asis -@item @emph{Description}: -The number of threads in the current team. In a sequential section of -the program @code{omp_get_num_threads} returns 1. - -The default team size may be initialized at startup by the -@code{OMP_NUM_THREADS} environment variable. At runtime, the size -of the current team may be set either by the @code{NUM_THREADS} -clause or by @code{omp_set_num_threads}. If none of the above were -used to define a specific value and @code{OMP_DYNAMIC} is disabled, -one thread per CPU online is used. - -@item @emph{C/C++}: -@multitable @columnfractions .20 .80 -@item @emph{Prototype}: @tab @code{int omp_get_num_threads();} -@end multitable - -@item @emph{Fortran}: -@multitable @columnfractions .20 .80 -@item @emph{Interface}: @tab @code{integer function omp_get_num_threads()} -@end multitable - -@item @emph{See also}: -@ref{omp_get_max_threads}, @ref{omp_set_num_threads}, @ref{OMP_NUM_THREADS} - -@item @emph{Reference}: -@uref{http://www.openmp.org/, OpenMP specifications v2.5}, section 3.2.2. -@end table - - - -@node omp_get_thread_num -@section @code{omp_get_thread_num} -- Current thread ID -@table @asis -@item @emph{Description}: -Unique thread identification number. In a sequential parts of the program, -@code{omp_get_thread_num} always returns 0. In parallel regions the return -value varies from 0 to @code{omp_get_max_threads}-1 inclusive. The return -value of the master thread of a team is always 0. - -@item @emph{C/C++}: -@multitable @columnfractions .20 .80 -@item @emph{Prototype}: @tab @code{int omp_get_thread_num();} -@end multitable - -@item @emph{Fortran}: -@multitable @columnfractions .20 .80 -@item @emph{Interface}: @tab @code{integer function omp_get_thread_num()} -@end multitable - -@item @emph{See also}: -@ref{omp_get_max_threads} - -@item @emph{Reference}: -@uref{http://www.openmp.org/, OpenMP specifications v2.5}, section 3.2.4. -@end table - - - -@node omp_in_parallel -@section @code{omp_in_parallel} -- Whether a parallel region is active -@table @asis -@item @emph{Description}: -This function returns @code{true} if currently running in parallel, -@code{false} otherwise. Here, @code{true} and @code{false} represent -their language-specific counterparts. - -@item @emph{C/C++}: -@multitable @columnfractions .20 .80 -@item @emph{Prototype}: @tab @code{int omp_in_parallel();} -@end multitable - -@item @emph{Fortran}: -@multitable @columnfractions .20 .80 -@item @emph{Interface}: @tab @code{logical function omp_in_parallel()} -@end multitable - -@item @emph{Reference}: -@uref{http://www.openmp.org/, OpenMP specifications v2.5}, section 3.2.6. -@end table - - -@node omp_set_dynamic -@section @code{omp_set_dynamic} -- Enable/disable dynamic teams -@table @asis -@item @emph{Description}: -Enable or disable the dynamic adjustment of the number of threads -within a team. The function takes the language-specific equivalent -of @code{true} and @code{false}, where @code{true} enables dynamic -adjustment of team sizes and @code{false} disables it. - -@item @emph{C/C++}: -@multitable @columnfractions .20 .80 -@item @emph{Prototype}: @tab @code{void omp_set_dynamic(int);} -@end multitable - -@item @emph{Fortran}: -@multitable @columnfractions .20 .80 -@item @emph{Interface}: @tab @code{subroutine omp_set_dynamic(set)} -@item @tab @code{integer, intent(in) :: set} -@end multitable - -@item @emph{See also}: -@ref{OMP_DYNAMIC}, @ref{omp_get_dynamic} - -@item @emph{Reference}: -@uref{http://www.openmp.org/, OpenMP specifications v2.5}, section 3.2.7. -@end table - - - -@node omp_set_nested -@section @code{omp_set_nested} -- Enable/disable nested parallel regions -@table @asis -@item @emph{Description}: -Enable or disable nested parallel regions, i.e., whether team members -are allowed to create new teams. The function takes the language-specific -equivalent of @code{true} and @code{false}, where @code{true} enables -dynamic adjustment of team sizes and @code{false} disables it. - -@item @emph{C/C++}: -@multitable @columnfractions .20 .80 -@item @emph{Prototype}: @tab @code{void omp_set_dynamic(int);} -@end multitable - -@item @emph{Fortran}: -@multitable @columnfractions .20 .80 -@item @emph{Interface}: @tab @code{subroutine omp_set_dynamic(set)} -@item @tab @code{integer, intent(in) :: set} -@end multitable - -@item @emph{See also}: -@ref{OMP_NESTED}, @ref{omp_get_nested} - -@item @emph{Reference}: -@uref{http://www.openmp.org/, OpenMP specifications v2.5}, section 3.2.9. -@end table - - - -@node omp_set_num_threads -@section @code{omp_set_num_threads} -- Set upper team size limit -@table @asis -@item @emph{Description}: -Specifies the number of threads used by default in subsequent parallel -sections, if those do not specify a @code{num_threads} clause. The -argument of @code{omp_set_num_threads} shall be a positive integer. - -@item @emph{C/C++}: -@multitable @columnfractions .20 .80 -@item @emph{Prototype}: @tab @code{void omp_set_num_threads(int);} -@end multitable - -@item @emph{Fortran}: -@multitable @columnfractions .20 .80 -@item @emph{Interface}: @tab @code{subroutine omp_set_num_threads(set)} -@item @tab @code{integer, intent(in) :: set} -@end multitable - -@item @emph{See also}: -@ref{OMP_NUM_THREADS}, @ref{omp_get_num_threads}, @ref{omp_get_max_threads} - -@item @emph{Reference}: -@uref{http://www.openmp.org/, OpenMP specifications v2.5}, section 3.2.1. -@end table - - - -@node omp_init_lock -@section @code{omp_init_lock} -- Initialize simple lock -@table @asis -@item @emph{Description}: -Initialize a simple lock. After initialization, the lock is in -an unlocked state. - -@item @emph{C/C++}: -@multitable @columnfractions .20 .80 -@item @emph{Prototype}: @tab @code{void omp_init_lock(omp_lock_t *lock);} -@end multitable - -@item @emph{Fortran}: -@multitable @columnfractions .20 .80 -@item @emph{Interface}: @tab @code{subroutine omp_init_lock(lock)} -@item @tab @code{integer(omp_lock_kind), intent(out) :: lock} -@end multitable - -@item @emph{See also}: -@ref{omp_destroy_lock} - -@item @emph{Reference}: -@uref{http://www.openmp.org/, OpenMP specifications v2.5}, section 3.3.1. -@end table - - - -@node omp_set_lock -@section @code{omp_set_lock} -- Wait for and set simple lock -@table @asis -@item @emph{Description}: -Before setting a simple lock, the lock variable must be initialized by -@code{omp_init_lock}. The calling thread is blocked until the lock -is available. If the lock is already held by the current thread, -a deadlock occurs. - -@item @emph{C/C++}: -@multitable @columnfractions .20 .80 -@item @emph{Prototype}: @tab @code{void omp_set_lock(omp_lock_t *lock);} -@end multitable - -@item @emph{Fortran}: -@multitable @columnfractions .20 .80 -@item @emph{Interface}: @tab @code{subroutine omp_set_lock(lock)} -@item @tab @code{integer(omp_lock_kind), intent(out) :: lock} -@end multitable - -@item @emph{See also}: -@ref{omp_init_lock}, @ref{omp_test_lock}, @ref{omp_unset_lock} - -@item @emph{Reference}: -@uref{http://www.openmp.org/, OpenMP specifications v2.5}, section 3.3.3. -@end table - - - -@node omp_test_lock -@section @code{omp_test_lock} -- Test and set simple lock if available -@table @asis -@item @emph{Description}: -Before setting a simple lock, the lock variable must be initialized by -@code{omp_init_lock}. Contrary to @code{omp_set_lock}, @code{omp_test_lock} -does not block if the lock is not available. This function returns -@code{true} upon success,@code{false} otherwise. Here, @code{true} and -@code{false} represent their language-specific counterparts. - -@item @emph{C/C++}: -@multitable @columnfractions .20 .80 -@item @emph{Prototype}: @tab @code{int omp_test_lock(omp_lock_t *lock);} -@end multitable - -@item @emph{Fortran}: -@multitable @columnfractions .20 .80 -@item @emph{Interface}: @tab @code{subroutine omp_test_lock(lock)} -@item @tab @code{logical(omp_logical_kind) :: omp_test_lock} -@item @tab @code{integer(omp_lock_kind), intent(out) :: lock} -@end multitable - -@item @emph{See also}: -@ref{omp_init_lock}, @ref{omp_set_lock}, @ref{omp_set_lock} - -@item @emph{Reference}: -@uref{http://www.openmp.org/, OpenMP specifications v2.5}, section 3.3.5. -@end table - - - -@node omp_unset_lock -@section @code{omp_unset_lock} -- Unset simple lock -@table @asis -@item @emph{Description}: -A simple lock about to be unset must have been locked by @code{omp_set_lock} -or @code{omp_test_lock} before. In addition, the lock must be held by the -thread calling @code{omp_unset_lock}. Then, the lock becomes unlocked. If one -ore more threads attempted to set the lock before, one of them is chosen to, -again, set the lock for itself. - -@item @emph{C/C++}: -@multitable @columnfractions .20 .80 -@item @emph{Prototype}: @tab @code{void omp_unset_lock(omp_lock_t *lock);} -@end multitable - -@item @emph{Fortran}: -@multitable @columnfractions .20 .80 -@item @emph{Interface}: @tab @code{subroutine omp_unset_lock(lock)} -@item @tab @code{integer(omp_lock_kind), intent(out) :: lock} -@end multitable - -@item @emph{See also}: -@ref{omp_set_lock}, @ref{omp_test_lock} - -@item @emph{Reference}: -@uref{http://www.openmp.org/, OpenMP specifications v2.5}, section 3.3.4. -@end table - - - -@node omp_destroy_lock -@section @code{omp_destroy_lock} -- Destroy simple lock -@table @asis -@item @emph{Description}: -Destroy a simple lock. In order to be destroyed, a simple lock must be -in the unlocked state. - -@item @emph{C/C++}: -@multitable @columnfractions .20 .80 -@item @emph{Prototype}: @tab @code{void omp_destroy_lock(omp_lock_t *);} -@end multitable - -@item @emph{Fortran}: -@multitable @columnfractions .20 .80 -@item @emph{Interface}: @tab @code{subroutine omp_destroy_lock(lock)} -@item @tab @code{integer(omp_lock_kind), intent(inout) :: lock} -@end multitable - -@item @emph{See also}: -@ref{omp_init_lock} - -@item @emph{Reference}: -@uref{http://www.openmp.org/, OpenMP specifications v2.5}, section 3.3.2. -@end table - - - -@node omp_init_nest_lock -@section @code{omp_init_nest_lock} -- Initialize nested lock -@table @asis -@item @emph{Description}: -Initialize a nested lock. After initialization, the lock is in -an unlocked state and the nesting count is set to zero. - -@item @emph{C/C++}: -@multitable @columnfractions .20 .80 -@item @emph{Prototype}: @tab @code{void omp_init_nest_lock(omp_nest_lock_t *lock);} -@end multitable - -@item @emph{Fortran}: -@multitable @columnfractions .20 .80 -@item @emph{Interface}: @tab @code{subroutine omp_init_nest_lock(lock)} -@item @tab @code{integer(omp_nest_lock_kind), intent(out) :: lock} -@end multitable - -@item @emph{See also}: -@ref{omp_destroy_nest_lock} - -@item @emph{Reference}: -@uref{http://www.openmp.org/, OpenMP specifications v2.5}, section 3.3.1. -@end table - - -@node omp_set_nest_lock -@section @code{omp_set_nest_lock} -- Wait for and set simple lock -@table @asis -@item @emph{Description}: -Before setting a nested lock, the lock variable must be initialized by -@code{omp_init_nest_lock}. The calling thread is blocked until the lock -is available. If the lock is already held by the current thread, the -nesting count for the lock in incremented. - -@item @emph{C/C++}: -@multitable @columnfractions .20 .80 -@item @emph{Prototype}: @tab @code{void omp_set_nest_lock(omp_nest_lock_t *lock);} -@end multitable - -@item @emph{Fortran}: -@multitable @columnfractions .20 .80 -@item @emph{Interface}: @tab @code{subroutine omp_set_nest_lock(lock)} -@item @tab @code{integer(omp_nest_lock_kind), intent(out) :: lock} -@end multitable - -@item @emph{See also}: -@ref{omp_init_nest_lock}, @ref{omp_unset_nest_lock} - -@item @emph{Reference}: -@uref{http://www.openmp.org/, OpenMP specifications v2.5}, section 3.3.3. -@end table - - - -@node omp_test_nest_lock -@section @code{omp_test_nest_lock} -- Test and set nested lock if available -@table @asis -@item @emph{Description}: -Before setting a nested lock, the lock variable must be initialized by -@code{omp_init_nest_lock}. Contrary to @code{omp_set_nest_lock}, -@code{omp_test_nest_lock} does not block if the lock is not available. -If the lock is already held by the current thread, the new nesting count -is returned. Otherwise, the return value equals zero. - -@item @emph{C/C++}: -@multitable @columnfractions .20 .80 -@item @emph{Prototype}: @tab @code{int omp_test_nest_lock(omp_nest_lock_t *lock);} -@end multitable - -@item @emph{Fortran}: -@multitable @columnfractions .20 .80 -@item @emph{Interface}: @tab @code{integer function omp_test_nest_lock(lock)} -@item @tab @code{integer(omp_integer_kind) :: omp_test_nest_lock} -@item @tab @code{integer(omp_nest_lock_kind), intent(inout) :: lock} -@end multitable - - -@item @emph{See also}: -@ref{omp_init_lock}, @ref{omp_set_lock}, @ref{omp_set_lock} - -@item @emph{Reference}: -@uref{http://www.openmp.org/, OpenMP specifications v2.5}, section 3.3.5. -@end table - - - -@node omp_unset_nest_lock -@section @code{omp_unset_nest_lock} -- Unset nested lock -@table @asis -@item @emph{Description}: -A nested lock about to be unset must have been locked by @code{omp_set_nested_lock} -or @code{omp_test_nested_lock} before. In addition, the lock must be held by the -thread calling @code{omp_unset_nested_lock}. If the nesting count drops to zero, the -lock becomes unlocked. If one ore more threads attempted to set the lock before, -one of them is chosen to, again, set the lock for itself. - -@item @emph{C/C++}: -@multitable @columnfractions .20 .80 -@item @emph{Prototype}: @tab @code{void omp_unset_nest_lock(omp_nest_lock_t *lock);} -@end multitable - -@item @emph{Fortran}: -@multitable @columnfractions .20 .80 -@item @emph{Interface}: @tab @code{subroutine omp_unset_nest_lock(lock)} -@item @tab @code{integer(omp_nest_lock_kind), intent(out) :: lock} -@end multitable - -@item @emph{See also}: -@ref{omp_set_nest_lock} - -@item @emph{Reference}: -@uref{http://www.openmp.org/, OpenMP specifications v2.5}, section 3.3.4. -@end table - - - -@node omp_destroy_nest_lock -@section @code{omp_destroy_nest_lock} -- Destroy nested lock -@table @asis -@item @emph{Description}: -Destroy a nested lock. In order to be destroyed, a nested lock must be -in the unlocked state and its nesting count must equal zero. - -@item @emph{C/C++}: -@multitable @columnfractions .20 .80 -@item @emph{Prototype}: @tab @code{void omp_destroy_nest_lock(omp_nest_lock_t *);} -@end multitable - -@item @emph{Fortran}: -@multitable @columnfractions .20 .80 -@item @emph{Interface}: @tab @code{subroutine omp_destroy_nest_lock(lock)} -@item @tab @code{integer(omp_nest_lock_kind), intent(inout) :: lock} -@end multitable - -@item @emph{See also}: -@ref{omp_init_lock} - -@item @emph{Reference}: -@uref{http://www.openmp.org/, OpenMP specifications v2.5}, section 3.3.2. -@end table - - - -@node omp_get_wtick -@section @code{omp_get_wtick} -- Get timer precision -@table @asis -@item @emph{Description}: -Gets the timer precision, i.e., the number of seconds between two -successive clock ticks. - -@item @emph{C/C++}: -@multitable @columnfractions .20 .80 -@item @emph{Prototype}: @tab @code{double omp_get_wtick();} -@end multitable - -@item @emph{Fortran}: -@multitable @columnfractions .20 .80 -@item @emph{Interface}: @tab @code{double precision function omp_get_wtick()} -@end multitable - -@item @emph{See also}: -@ref{omp_get_wtime} - -@item @emph{Reference}: -@uref{http://www.openmp.org/, OpenMP specifications v2.5}, section 3.4.2. -@end table - - - -@node omp_get_wtime -@section @code{omp_get_wtime} -- Elapsed wall clock time -@table @asis -@item @emph{Description}: -Elapsed wall clock time in seconds. The time is measured per thread, no -guarantee can bee made that two distinct threads measure the same time. -Time is measured from some "time in the past". On POSIX compliant systems -the seconds since the Epoch (00:00:00 UTC, January 1, 1970) are returned. - -@item @emph{C/C++}: -@multitable @columnfractions .20 .80 -@item @emph{Prototype}: @tab @code{double omp_get_wtime();} -@end multitable - -@item @emph{Fortran}: -@multitable @columnfractions .20 .80 -@item @emph{Interface}: @tab @code{double precision function omp_get_wtime()} -@end multitable - -@item @emph{See also}: -@ref{omp_get_wtick} - -@item @emph{Reference}: -@uref{http://www.openmp.org/, OpenMP specifications v2.5}, section 3.4.1. -@end table - - - -@c --------------------------------------------------------------------- -@c Environment Variables -@c --------------------------------------------------------------------- - -@node Environment Variables -@chapter Environment Variables - -The variables @env{OMP_DYNAMIC}, @env{OMP_NESTED}, @env{OMP_NUM_THREADS} and -@env{OMP_SCHEDULE} are defined by section 4 of the OpenMP specifications in -version 2.5, while @env{GOMP_CPU_AFFINITY} and @env{GOMP_STACKSIZE} are GNU -extensions. - -@menu -* OMP_DYNAMIC:: Dynamic adjustment of threads -* OMP_NESTED:: Nested parallel regions -* OMP_NUM_THREADS:: Specifies the number of threads to use -* OMP_SCHEDULE:: How threads are scheduled -* GOMP_CPU_AFFINITY:: Bind threads to specific CPUs -* GOMP_STACKSIZE:: Set default thread stack size -@end menu - - -@node OMP_DYNAMIC -@section @env{OMP_DYNAMIC} -- Dynamic adjustment of threads -@cindex Environment Variable -@cindex Implementation specific setting -@table @asis -@item @emph{Description}: -Enable or disable the dynamic adjustment of the number of threads -within a team. The value of this environment variable shall be -@code{TRUE} or @code{FALSE}. If undefined, dynamic adjustment is -disabled by default. - -@item @emph{See also}: -@ref{omp_set_dynamic} - -@item @emph{Reference}: -@uref{http://www.openmp.org/, OpenMP specifications v2.5}, section 4.3 -@end table - - - -@node OMP_NESTED -@section @env{OMP_NESTED} -- Nested parallel regions -@cindex Environment Variable -@cindex Implementation specific setting -@table @asis -@item @emph{Description}: -Enable or disable nested parallel regions, i.e., whether team members -are allowed to create new teams. The value of this environment variable -shall be @code{TRUE} or @code{FALSE}. If undefined, nested parallel -regions are disabled by default. - -@item @emph{See also}: -@ref{omp_set_nested} - -@item @emph{Reference}: -@uref{http://www.openmp.org/, OpenMP specifications v2.5}, section 4.4 -@end table - - - -@node OMP_NUM_THREADS -@section @env{OMP_NUM_THREADS} -- Specifies the number of threads to use -@cindex Environment Variable -@cindex Implementation specific setting -@table @asis -@item @emph{Description}: -Specifies the default number of threads to use in parallel regions. The -value of this variable shall be positive integer. If undefined one thread -per CPU online is used. - -@item @emph{See also}: -@ref{omp_set_num_threads} - -@item @emph{Reference}: -@uref{http://www.openmp.org/, OpenMP specifications v2.5}, section 4.2 -@end table - - - -@node OMP_SCHEDULE -@section @env{OMP_SCHEDULE} -- How threads are scheduled -@cindex Environment Variable -@cindex Implementation specific setting -@table @asis -@item @emph{Description}: -Allows to specify @code{schedule type} and @code{chunk size}. -The value of the variable shall have the form: @code{type[,chunk]} where -@code{type} is one of @code{static}, @code{dynamic} or @code{guided}. -The optional @code{chunk size} shall be a positive integer. If undefined, -dynamic scheduling and a chunk size of 1 is used. - -@item @emph{Reference}: -@uref{http://www.openmp.org/, OpenMP specifications v2.5}, sections 2.5.1 and 4.1 -@end table - - - -@node GOMP_CPU_AFFINITY -@section @env{GOMP_CPU_AFFINITY} -- Bind threads to specific CPUs -@cindex Environment Variable -@table @asis -@item @emph{Description}: -A patch for this extension has been submitted, but was not yet applied at the -time of writing. - -@item @emph{Reference}: -@uref{http://gcc.gnu.org/ml/gcc-patches/2006-05/msg00982.html, -GCC Patches Mailinglist} -@uref{http://gcc.gnu.org/ml/gcc-patches/2006-05/msg01133.html, -GCC Patches Mailinglist} -@end table - - - -@node GOMP_STACKSIZE -@section @env{GOMP_STACKSIZE} -- Set default thread stack size -@cindex Environment Variable -@cindex Implementation specific setting -@table @asis -@item @emph{Description}: -Set the default thread stack size in kilobytes. This is in opposition -to @code{pthread_attr_setstacksize} which gets the number of bytes as an -argument. If the stacksize can not be set due to system constraints, an -error is reported and the initial stacksize is left unchanged. If undefined, -the stack size is system dependent. - -@item @emph{Reference}: -@uref{http://gcc.gnu.org/ml/gcc-patches/2006-06/msg00493.html, -GCC Patches Mailinglist}, -@uref{http://gcc.gnu.org/ml/gcc-patches/2006-06/msg00496.html, -GCC Patches Mailinglist} -@end table - - - -@c --------------------------------------------------------------------- -@c The libgomp ABI -@c --------------------------------------------------------------------- - -@node The libgomp ABI -@chapter The libgomp ABI - -The following sections present notes on the external ABI as -presented by libgomp. Only maintainers should need them. - -@menu -* Implementing MASTER construct:: -* Implementing CRITICAL construct:: -* Implementing ATOMIC construct:: -* Implementing FLUSH construct:: -* Implementing BARRIER construct:: -* Implementing THREADPRIVATE construct:: -* Implementing PRIVATE clause:: -* Implementing FIRSTPRIVATE LASTPRIVATE COPYIN and COPYPRIVATE clauses:: -* Implementing REDUCTION clause:: -* Implementing PARALLEL construct:: -* Implementing FOR construct:: -* Implementing ORDERED construct:: -* Implementing SECTIONS construct:: -* Implementing SINGLE construct:: -@end menu - - -@node Implementing MASTER construct -@section Implementing MASTER construct - -@smallexample -if (omp_get_thread_num () == 0) - block -@end smallexample - -Alternately, we generate two copies of the parallel subfunction -and only include this in the version run by the master thread. -Surely that's not worthwhile though... - - - -@node Implementing CRITICAL construct -@section Implementing CRITICAL construct - -Without a specified name, - -@smallexample - void GOMP_critical_start (void); - void GOMP_critical_end (void); -@end smallexample - -so that we don't get COPY relocations from libgomp to the main -application. - -With a specified name, use omp_set_lock and omp_unset_lock with -name being transformed into a variable declared like - -@smallexample - omp_lock_t gomp_critical_user_<name> __attribute__((common)) -@end smallexample - -Ideally the ABI would specify that all zero is a valid unlocked -state, and so we wouldn't actually need to initialize this at -startup. - - - -@node Implementing ATOMIC construct -@section Implementing ATOMIC construct - -The target should implement the @code{__sync} builtins. - -Failing that we could add - -@smallexample - void GOMP_atomic_enter (void) - void GOMP_atomic_exit (void) -@end smallexample - -which reuses the regular lock code, but with yet another lock -object private to the library. - - - -@node Implementing FLUSH construct -@section Implementing FLUSH construct - -Expands to the @code{__sync_synchronize} builtin. - - - -@node Implementing BARRIER construct -@section Implementing BARRIER construct - -@smallexample - void GOMP_barrier (void) -@end smallexample - - -@node Implementing THREADPRIVATE construct -@section Implementing THREADPRIVATE construct - -In _most_ cases we can map this directly to @code{__thread}. Except -that OMP allows constructors for C++ objects. We can either -refuse to support this (how often is it used?) or we can -implement something akin to .ctors. - -Even more ideally, this ctor feature is handled by extensions -to the main pthreads library. Failing that, we can have a set -of entry points to register ctor functions to be called. - - - -@node Implementing PRIVATE clause -@section Implementing PRIVATE clause - -In association with a PARALLEL, or within the lexical extent -of a PARALLEL block, the variable becomes a local variable in -the parallel subfunction. - -In association with FOR or SECTIONS blocks, create a new -automatic variable within the current function. This preserves -the semantic of new variable creation. - - - -@node Implementing FIRSTPRIVATE LASTPRIVATE COPYIN and COPYPRIVATE clauses -@section Implementing FIRSTPRIVATE LASTPRIVATE COPYIN and COPYPRIVATE clauses - -Seems simple enough for PARALLEL blocks. Create a private -struct for communicating between parent and subfunction. -In the parent, copy in values for scalar and "small" structs; -copy in addresses for others TREE_ADDRESSABLE types. In the -subfunction, copy the value into the local variable. - -Not clear at all what to do with bare FOR or SECTION blocks. -The only thing I can figure is that we do something like - -@smallexample -#pragma omp for firstprivate(x) lastprivate(y) -for (int i = 0; i < n; ++i) - body; -@end smallexample - -which becomes - -@smallexample -@{ - int x = x, y; - - // for stuff - - if (i == n) - y = y; -@} -@end smallexample - -where the "x=x" and "y=y" assignments actually have different -uids for the two variables, i.e. not something you could write -directly in C. Presumably this only makes sense if the "outer" -x and y are global variables. - -COPYPRIVATE would work the same way, except the structure -broadcast would have to happen via SINGLE machinery instead. - - - -@node Implementing REDUCTION clause -@section Implementing REDUCTION clause - -The private struct mentioned in the previous section should have -a pointer to an array of the type of the variable, indexed by the -thread's @var{team_id}. The thread stores its final value into the -array, and after the barrier the master thread iterates over the -array to collect the values. - - -@node Implementing PARALLEL construct -@section Implementing PARALLEL construct - -@smallexample - #pragma omp parallel - @{ - body; - @} -@end smallexample - -becomes - -@smallexample - void subfunction (void *data) - @{ - use data; - body; - @} - - setup data; - GOMP_parallel_start (subfunction, &data, num_threads); - subfunction (&data); - GOMP_parallel_end (); -@end smallexample - -@smallexample - void GOMP_parallel_start (void (*fn)(void *), void *data, unsigned num_threads) -@end smallexample - -The @var{FN} argument is the subfunction to be run in parallel. - -The @var{DATA} argument is a pointer to a structure used to -communicate data in and out of the subfunction, as discussed -above with respect to FIRSTPRIVATE et al. - -The @var{NUM_THREADS} argument is 1 if an IF clause is present -and false, or the value of the NUM_THREADS clause, if -present, or 0. - -The function needs to create the appropriate number of -threads and/or launch them from the dock. It needs to -create the team structure and assign team ids. - -@smallexample - void GOMP_parallel_end (void) -@end smallexample - -Tears down the team and returns us to the previous @code{omp_in_parallel()} state. - - - -@node Implementing FOR construct -@section Implementing FOR construct - -@smallexample - #pragma omp parallel for - for (i = lb; i <= ub; i++) - body; -@end smallexample - -becomes - -@smallexample - void subfunction (void *data) - @{ - long _s0, _e0; - while (GOMP_loop_static_next (&_s0, &_e0)) - @{ - long _e1 = _e0, i; - for (i = _s0; i < _e1; i++) - body; - @} - GOMP_loop_end_nowait (); - @} - - GOMP_parallel_loop_static (subfunction, NULL, 0, lb, ub+1, 1, 0); - subfunction (NULL); - GOMP_parallel_end (); -@end smallexample - -@smallexample - #pragma omp for schedule(runtime) - for (i = 0; i < n; i++) - body; -@end smallexample - -becomes - -@smallexample - @{ - long i, _s0, _e0; - if (GOMP_loop_runtime_start (0, n, 1, &_s0, &_e0)) - do @{ - long _e1 = _e0; - for (i = _s0, i < _e0; i++) - body; - @} while (GOMP_loop_runtime_next (&_s0, _&e0)); - GOMP_loop_end (); - @} -@end smallexample - -Note that while it looks like there is trickyness to propagating -a non-constant STEP, there isn't really. We're explicitly allowed -to evaluate it as many times as we want, and any variables involved -should automatically be handled as PRIVATE or SHARED like any other -variables. So the expression should remain evaluable in the -subfunction. We can also pull it into a local variable if we like, -but since its supposed to remain unchanged, we can also not if we like. - -If we have SCHEDULE(STATIC), and no ORDERED, then we ought to be -able to get away with no work-sharing context at all, since we can -simply perform the arithmetic directly in each thread to divide up -the iterations. Which would mean that we wouldn't need to call any -of these routines. - -There are separate routines for handling loops with an ORDERED -clause. Bookkeeping for that is non-trivial... - - - -@node Implementing ORDERED construct -@section Implementing ORDERED construct - -@smallexample - void GOMP_ordered_start (void) - void GOMP_ordered_end (void) -@end smallexample - - - -@node Implementing SECTIONS construct -@section Implementing SECTIONS construct - -A block as - -@smallexample - #pragma omp sections - @{ - #pragma omp section - stmt1; - #pragma omp section - stmt2; - #pragma omp section - stmt3; - @} -@end smallexample - -becomes - -@smallexample - for (i = GOMP_sections_start (3); i != 0; i = GOMP_sections_next ()) - switch (i) - @{ - case 1: - stmt1; - break; - case 2: - stmt2; - break; - case 3: - stmt3; - break; - @} - GOMP_barrier (); -@end smallexample - - -@node Implementing SINGLE construct -@section Implementing SINGLE construct - -A block like - -@smallexample - #pragma omp single - @{ - body; - @} -@end smallexample - -becomes - -@smallexample - if (GOMP_single_start ()) - body; - GOMP_barrier (); -@end smallexample - -while - -@smallexample - #pragma omp single copyprivate(x) - body; -@end smallexample - -becomes - -@smallexample - datap = GOMP_single_copy_start (); - if (datap == NULL) - @{ - body; - data.x = x; - GOMP_single_copy_end (&data); - @} - else - x = datap->x; - GOMP_barrier (); -@end smallexample - - - -@c --------------------------------------------------------------------- -@c -@c --------------------------------------------------------------------- - -@node Reporting Bugs -@chapter Reporting Bugs - -Bugs in the GNU OpenMP implementation should be reported via -@uref{http://gcc.gnu.org/bugzilla/, bugzilla}. In all cases, please add -"openmp" to the keywords field in the bug report. - - - -@c --------------------------------------------------------------------- -@c GNU General Public License -@c --------------------------------------------------------------------- - -@include gpl.texi - - - -@c --------------------------------------------------------------------- -@c GNU Free Documentation License -@c --------------------------------------------------------------------- - -@include fdl.texi - - - -@c --------------------------------------------------------------------- -@c Funding Free Software -@c --------------------------------------------------------------------- - -@include funding.texi - -@c --------------------------------------------------------------------- -@c Index -@c --------------------------------------------------------------------- - -@node Index -@unnumbered Index - -@printindex cp - -@bye diff --git a/gcc-4.2.1-5666.3/libgomp/libgomp_f.h.in b/gcc-4.2.1-5666.3/libgomp/libgomp_f.h.in deleted file mode 100644 index 85543565a..000000000 --- a/gcc-4.2.1-5666.3/libgomp/libgomp_f.h.in +++ /dev/null @@ -1,68 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Jakub Jelinek <jakub@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This file contains prototypes of functions in the external ABI. - This file is included by files in the testsuite. */ - -#ifndef LIBGOMP_F_H -#define LIBGOMP_F_H 1 - -#include "libgomp.h" - -#if (@OMP_LOCK_SIZE@ == @OMP_LOCK_KIND@) \ - && (@OMP_LOCK_ALIGN@ <= @OMP_LOCK_SIZE@) -# define OMP_LOCK_DIRECT -typedef omp_lock_t *omp_lock_arg_t; -# define omp_lock_arg(arg) (arg) -#else -typedef union { omp_lock_t *lock; uint64_t u; } *omp_lock_arg_t; -# define omp_lock_arg(arg) ((arg)->lock) -# endif - -#if (@OMP_NEST_LOCK_SIZE@ == @OMP_NEST_LOCK_KIND@) \ - && (@OMP_NEST_LOCK_ALIGN@ <= @OMP_NEST_LOCK_SIZE@) -# define OMP_NEST_LOCK_DIRECT -typedef omp_nest_lock_t *omp_nest_lock_arg_t; -# define omp_nest_lock_arg(arg) (arg) -#else -typedef union { omp_nest_lock_t *lock; uint64_t u; } *omp_nest_lock_arg_t; -# define omp_nest_lock_arg(arg) ((arg)->lock) -# endif - -static inline void -omp_check_defines (void) -{ - char test[(@OMP_LOCK_SIZE@ != sizeof (omp_lock_t) - || @OMP_LOCK_ALIGN@ != __alignof (omp_lock_t) - || @OMP_NEST_LOCK_SIZE@ != sizeof (omp_nest_lock_t) - || @OMP_NEST_LOCK_ALIGN@ != __alignof (omp_nest_lock_t) - || @OMP_LOCK_KIND@ != sizeof (*(omp_lock_arg_t) 0) - || @OMP_NEST_LOCK_KIND@ != sizeof (*(omp_nest_lock_arg_t) 0)) - ? -1 : 1] __attribute__ ((__unused__)); -} - -#endif /* LIBGOMP_F_H */ diff --git a/gcc-4.2.1-5666.3/libgomp/libgomp_g.h b/gcc-4.2.1-5666.3/libgomp/libgomp_g.h deleted file mode 100644 index 52ecafdcf..000000000 --- a/gcc-4.2.1-5666.3/libgomp/libgomp_g.h +++ /dev/null @@ -1,111 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This file contains prototypes of functions in the external ABI. - This file is included by files in the testsuite. */ - -#ifndef LIBGOMP_G_H -#define LIBGOMP_G_H 1 - -#include <stdbool.h> - -/* barrier.c */ - -extern void GOMP_barrier (void); - -/* critical.c */ - -extern void GOMP_critical_start (void); -extern void GOMP_critical_end (void); -extern void GOMP_critical_name_start (void **); -extern void GOMP_critical_name_end (void **); -extern void GOMP_atomic_start (void); -extern void GOMP_atomic_end (void); - -/* loop.c */ - -extern bool GOMP_loop_static_start (long, long, long, long, long *, long *); -extern bool GOMP_loop_dynamic_start (long, long, long, long, long *, long *); -extern bool GOMP_loop_guided_start (long, long, long, long, long *, long *); -extern bool GOMP_loop_runtime_start (long, long, long, long *, long *); - -extern bool GOMP_loop_ordered_static_start (long, long, long, long, - long *, long *); -extern bool GOMP_loop_ordered_dynamic_start (long, long, long, long, - long *, long *); -extern bool GOMP_loop_ordered_guided_start (long, long, long, long, - long *, long *); -extern bool GOMP_loop_ordered_runtime_start (long, long, long, long *, long *); - -extern bool GOMP_loop_static_next (long *, long *); -extern bool GOMP_loop_dynamic_next (long *, long *); -extern bool GOMP_loop_guided_next (long *, long *); -extern bool GOMP_loop_runtime_next (long *, long *); - -extern bool GOMP_loop_ordered_static_next (long *, long *); -extern bool GOMP_loop_ordered_dynamic_next (long *, long *); -extern bool GOMP_loop_ordered_guided_next (long *, long *); -extern bool GOMP_loop_ordered_runtime_next (long *, long *); - -extern void GOMP_parallel_loop_static_start (void (*)(void *), void *, - unsigned, long, long, long, long); -extern void GOMP_parallel_loop_dynamic_start (void (*)(void *), void *, - unsigned, long, long, long, long); -extern void GOMP_parallel_loop_guided_start (void (*)(void *), void *, - unsigned, long, long, long, long); -extern void GOMP_parallel_loop_runtime_start (void (*)(void *), void *, - unsigned, long, long, long); - -extern void GOMP_loop_end (void); -extern void GOMP_loop_end_nowait (void); - -/* ordered.c */ - -extern void GOMP_ordered_start (void); -extern void GOMP_ordered_end (void); - -/* parallel.c */ - -extern void GOMP_parallel_start (void (*) (void *), void *, unsigned); -extern void GOMP_parallel_end (void); - -/* sections.c */ - -extern unsigned GOMP_sections_start (unsigned); -extern unsigned GOMP_sections_next (void); -extern void GOMP_parallel_sections_start (void (*) (void *), void *, - unsigned, unsigned); -extern void GOMP_sections_end (void); -extern void GOMP_sections_end_nowait (void); - -/* single.c */ - -extern bool GOMP_single_start (void); -extern void *GOMP_single_copy_start (void); -extern void GOMP_single_copy_end (void *); - -#endif /* LIBGOMP_G_H */ diff --git a/gcc-4.2.1-5666.3/libgomp/loop.c b/gcc-4.2.1-5666.3/libgomp/loop.c deleted file mode 100644 index 58fd9a8af..000000000 --- a/gcc-4.2.1-5666.3/libgomp/loop.c +++ /dev/null @@ -1,553 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This file handles the LOOP (FOR/DO) construct. */ - -#include "libgomp.h" -#include <stdlib.h> - - -/* Initialize the given work share construct from the given arguments. */ - -static inline void -gomp_loop_init (struct gomp_work_share *ws, long start, long end, long incr, - enum gomp_schedule_type sched, long chunk_size) -{ - ws->sched = sched; - ws->chunk_size = chunk_size; - /* Canonicalize loops that have zero iterations to ->next == ->end. */ - ws->end = ((incr > 0 && start > end) || (incr < 0 && start < end)) - ? start : end; - ws->incr = incr; - ws->next = start; -} - -/* The *_start routines are called when first encountering a loop construct - that is not bound directly to a parallel construct. The first thread - that arrives will create the work-share construct; subsequent threads - will see the construct exists and allocate work from it. - - START, END, INCR are the bounds of the loop; due to the restrictions of - OpenMP, these values must be the same in every thread. This is not - verified (nor is it entirely verifiable, since START is not necessarily - retained intact in the work-share data structure). CHUNK_SIZE is the - scheduling parameter; again this must be identical in all threads. - - Returns true if there's any work for this thread to perform. If so, - *ISTART and *IEND are filled with the bounds of the iteration block - allocated to this thread. Returns false if all work was assigned to - other threads prior to this thread's arrival. */ - -static bool -gomp_loop_static_start (long start, long end, long incr, long chunk_size, - long *istart, long *iend) -{ - struct gomp_thread *thr = gomp_thread (); - - if (gomp_work_share_start (false)) - gomp_loop_init (thr->ts.work_share, start, end, incr, - GFS_STATIC, chunk_size); - gomp_mutex_unlock (&thr->ts.work_share->lock); - - return !gomp_iter_static_next (istart, iend); -} - -static bool -gomp_loop_dynamic_start (long start, long end, long incr, long chunk_size, - long *istart, long *iend) -{ - struct gomp_thread *thr = gomp_thread (); - bool ret; - - if (gomp_work_share_start (false)) - gomp_loop_init (thr->ts.work_share, start, end, incr, - GFS_DYNAMIC, chunk_size); - -#ifdef HAVE_SYNC_BUILTINS - gomp_mutex_unlock (&thr->ts.work_share->lock); - ret = gomp_iter_dynamic_next (istart, iend); -#else - ret = gomp_iter_dynamic_next_locked (istart, iend); - gomp_mutex_unlock (&thr->ts.work_share->lock); -#endif - - return ret; -} - -static bool -gomp_loop_guided_start (long start, long end, long incr, long chunk_size, - long *istart, long *iend) -{ - struct gomp_thread *thr = gomp_thread (); - bool ret; - - if (gomp_work_share_start (false)) - gomp_loop_init (thr->ts.work_share, start, end, incr, - GFS_GUIDED, chunk_size); - -#ifdef HAVE_SYNC_BUILTINS - gomp_mutex_unlock (&thr->ts.work_share->lock); - ret = gomp_iter_guided_next (istart, iend); -#else - ret = gomp_iter_guided_next_locked (istart, iend); - gomp_mutex_unlock (&thr->ts.work_share->lock); -#endif - - return ret; -} - -bool -GOMP_loop_runtime_start (long start, long end, long incr, - long *istart, long *iend) -{ - switch (gomp_run_sched_var) - { - case GFS_STATIC: - return gomp_loop_static_start (start, end, incr, gomp_run_sched_chunk, - istart, iend); - case GFS_DYNAMIC: - return gomp_loop_dynamic_start (start, end, incr, gomp_run_sched_chunk, - istart, iend); - case GFS_GUIDED: - return gomp_loop_guided_start (start, end, incr, gomp_run_sched_chunk, - istart, iend); - default: - abort (); - } -} - -/* The *_ordered_*_start routines are similar. The only difference is that - this work-share construct is initialized to expect an ORDERED section. */ - -static bool -gomp_loop_ordered_static_start (long start, long end, long incr, - long chunk_size, long *istart, long *iend) -{ - struct gomp_thread *thr = gomp_thread (); - - if (gomp_work_share_start (true)) - { - gomp_loop_init (thr->ts.work_share, start, end, incr, - GFS_STATIC, chunk_size); - gomp_ordered_static_init (); - } - gomp_mutex_unlock (&thr->ts.work_share->lock); - - return !gomp_iter_static_next (istart, iend); -} - -static bool -gomp_loop_ordered_dynamic_start (long start, long end, long incr, - long chunk_size, long *istart, long *iend) -{ - struct gomp_thread *thr = gomp_thread (); - bool ret; - - if (gomp_work_share_start (true)) - gomp_loop_init (thr->ts.work_share, start, end, incr, - GFS_DYNAMIC, chunk_size); - - ret = gomp_iter_dynamic_next_locked (istart, iend); - if (ret) - gomp_ordered_first (); - gomp_mutex_unlock (&thr->ts.work_share->lock); - - return ret; -} - -static bool -gomp_loop_ordered_guided_start (long start, long end, long incr, - long chunk_size, long *istart, long *iend) -{ - struct gomp_thread *thr = gomp_thread (); - bool ret; - - if (gomp_work_share_start (true)) - gomp_loop_init (thr->ts.work_share, start, end, incr, - GFS_GUIDED, chunk_size); - - ret = gomp_iter_guided_next_locked (istart, iend); - if (ret) - gomp_ordered_first (); - gomp_mutex_unlock (&thr->ts.work_share->lock); - - return ret; -} - -bool -GOMP_loop_ordered_runtime_start (long start, long end, long incr, - long *istart, long *iend) -{ - switch (gomp_run_sched_var) - { - case GFS_STATIC: - return gomp_loop_ordered_static_start (start, end, incr, - gomp_run_sched_chunk, - istart, iend); - case GFS_DYNAMIC: - return gomp_loop_ordered_dynamic_start (start, end, incr, - gomp_run_sched_chunk, - istart, iend); - case GFS_GUIDED: - return gomp_loop_ordered_guided_start (start, end, incr, - gomp_run_sched_chunk, - istart, iend); - default: - abort (); - } -} - -/* The *_next routines are called when the thread completes processing of - the iteration block currently assigned to it. If the work-share - construct is bound directly to a parallel construct, then the iteration - bounds may have been set up before the parallel. In which case, this - may be the first iteration for the thread. - - Returns true if there is work remaining to be performed; *ISTART and - *IEND are filled with a new iteration block. Returns false if all work - has been assigned. */ - -static bool -gomp_loop_static_next (long *istart, long *iend) -{ - return !gomp_iter_static_next (istart, iend); -} - -static bool -gomp_loop_dynamic_next (long *istart, long *iend) -{ - bool ret; - -#ifdef HAVE_SYNC_BUILTINS - ret = gomp_iter_dynamic_next (istart, iend); -#else - struct gomp_thread *thr = gomp_thread (); - gomp_mutex_lock (&thr->ts.work_share->lock); - ret = gomp_iter_dynamic_next_locked (istart, iend); - gomp_mutex_unlock (&thr->ts.work_share->lock); -#endif - - return ret; -} - -static bool -gomp_loop_guided_next (long *istart, long *iend) -{ - bool ret; - -#ifdef HAVE_SYNC_BUILTINS - ret = gomp_iter_guided_next (istart, iend); -#else - struct gomp_thread *thr = gomp_thread (); - gomp_mutex_lock (&thr->ts.work_share->lock); - ret = gomp_iter_guided_next_locked (istart, iend); - gomp_mutex_unlock (&thr->ts.work_share->lock); -#endif - - return ret; -} - -bool -GOMP_loop_runtime_next (long *istart, long *iend) -{ - struct gomp_thread *thr = gomp_thread (); - - switch (thr->ts.work_share->sched) - { - case GFS_STATIC: - return gomp_loop_static_next (istart, iend); - case GFS_DYNAMIC: - return gomp_loop_dynamic_next (istart, iend); - case GFS_GUIDED: - return gomp_loop_guided_next (istart, iend); - default: - abort (); - } -} - -/* The *_ordered_*_next routines are called when the thread completes - processing of the iteration block currently assigned to it. - - Returns true if there is work remaining to be performed; *ISTART and - *IEND are filled with a new iteration block. Returns false if all work - has been assigned. */ - -static bool -gomp_loop_ordered_static_next (long *istart, long *iend) -{ - struct gomp_thread *thr = gomp_thread (); - int test; - - gomp_ordered_sync (); - gomp_mutex_lock (&thr->ts.work_share->lock); - test = gomp_iter_static_next (istart, iend); - if (test >= 0) - gomp_ordered_static_next (); - gomp_mutex_unlock (&thr->ts.work_share->lock); - - return test == 0; -} - -static bool -gomp_loop_ordered_dynamic_next (long *istart, long *iend) -{ - struct gomp_thread *thr = gomp_thread (); - bool ret; - - gomp_ordered_sync (); - gomp_mutex_lock (&thr->ts.work_share->lock); - ret = gomp_iter_dynamic_next_locked (istart, iend); - if (ret) - gomp_ordered_next (); - else - gomp_ordered_last (); - gomp_mutex_unlock (&thr->ts.work_share->lock); - - return ret; -} - -static bool -gomp_loop_ordered_guided_next (long *istart, long *iend) -{ - struct gomp_thread *thr = gomp_thread (); - bool ret; - - gomp_ordered_sync (); - gomp_mutex_lock (&thr->ts.work_share->lock); - ret = gomp_iter_guided_next_locked (istart, iend); - if (ret) - gomp_ordered_next (); - else - gomp_ordered_last (); - gomp_mutex_unlock (&thr->ts.work_share->lock); - - return ret; -} - -bool -GOMP_loop_ordered_runtime_next (long *istart, long *iend) -{ - struct gomp_thread *thr = gomp_thread (); - - switch (thr->ts.work_share->sched) - { - case GFS_STATIC: - return gomp_loop_ordered_static_next (istart, iend); - case GFS_DYNAMIC: - return gomp_loop_ordered_dynamic_next (istart, iend); - case GFS_GUIDED: - return gomp_loop_ordered_guided_next (istart, iend); - default: - abort (); - } -} - -/* The GOMP_parallel_loop_* routines pre-initialize a work-share construct - to avoid one synchronization once we get into the loop. */ - -static void -gomp_parallel_loop_start (void (*fn) (void *), void *data, - unsigned num_threads, long start, long end, - long incr, enum gomp_schedule_type sched, - long chunk_size) -{ - struct gomp_work_share *ws; - - num_threads = gomp_resolve_num_threads (num_threads); - ws = gomp_new_work_share (false, num_threads); - gomp_loop_init (ws, start, end, incr, sched, chunk_size); - gomp_team_start (fn, data, num_threads, ws); -} - -void -GOMP_parallel_loop_static_start (void (*fn) (void *), void *data, - unsigned num_threads, long start, long end, - long incr, long chunk_size) -{ - gomp_parallel_loop_start (fn, data, num_threads, start, end, incr, - GFS_STATIC, chunk_size); -} - -void -GOMP_parallel_loop_dynamic_start (void (*fn) (void *), void *data, - unsigned num_threads, long start, long end, - long incr, long chunk_size) -{ - gomp_parallel_loop_start (fn, data, num_threads, start, end, incr, - GFS_DYNAMIC, chunk_size); -} - -void -GOMP_parallel_loop_guided_start (void (*fn) (void *), void *data, - unsigned num_threads, long start, long end, - long incr, long chunk_size) -{ - gomp_parallel_loop_start (fn, data, num_threads, start, end, incr, - GFS_GUIDED, chunk_size); -} - -void -GOMP_parallel_loop_runtime_start (void (*fn) (void *), void *data, - unsigned num_threads, long start, long end, - long incr) -{ - gomp_parallel_loop_start (fn, data, num_threads, start, end, incr, - gomp_run_sched_var, gomp_run_sched_chunk); -} - -/* The GOMP_loop_end* routines are called after the thread is told that - all loop iterations are complete. This first version synchronizes - all threads; the nowait version does not. */ - -void -GOMP_loop_end (void) -{ - gomp_work_share_end (); -} - -void -GOMP_loop_end_nowait (void) -{ - gomp_work_share_end_nowait (); -} - - -/* We use static functions above so that we're sure that the "runtime" - function can defer to the proper routine without interposition. We - export the static function with a strong alias when possible, or with - a wrapper function otherwise. */ - -#ifdef HAVE_ATTRIBUTE_ALIAS -extern __typeof(gomp_loop_static_start) GOMP_loop_static_start - __attribute__((alias ("gomp_loop_static_start"))); -extern __typeof(gomp_loop_dynamic_start) GOMP_loop_dynamic_start - __attribute__((alias ("gomp_loop_dynamic_start"))); -extern __typeof(gomp_loop_guided_start) GOMP_loop_guided_start - __attribute__((alias ("gomp_loop_guided_start"))); - -extern __typeof(gomp_loop_ordered_static_start) GOMP_loop_ordered_static_start - __attribute__((alias ("gomp_loop_ordered_static_start"))); -extern __typeof(gomp_loop_ordered_dynamic_start) GOMP_loop_ordered_dynamic_start - __attribute__((alias ("gomp_loop_ordered_dynamic_start"))); -extern __typeof(gomp_loop_ordered_guided_start) GOMP_loop_ordered_guided_start - __attribute__((alias ("gomp_loop_ordered_guided_start"))); - -extern __typeof(gomp_loop_static_next) GOMP_loop_static_next - __attribute__((alias ("gomp_loop_static_next"))); -extern __typeof(gomp_loop_dynamic_next) GOMP_loop_dynamic_next - __attribute__((alias ("gomp_loop_dynamic_next"))); -extern __typeof(gomp_loop_guided_next) GOMP_loop_guided_next - __attribute__((alias ("gomp_loop_guided_next"))); - -extern __typeof(gomp_loop_ordered_static_next) GOMP_loop_ordered_static_next - __attribute__((alias ("gomp_loop_ordered_static_next"))); -extern __typeof(gomp_loop_ordered_dynamic_next) GOMP_loop_ordered_dynamic_next - __attribute__((alias ("gomp_loop_ordered_dynamic_next"))); -extern __typeof(gomp_loop_ordered_guided_next) GOMP_loop_ordered_guided_next - __attribute__((alias ("gomp_loop_ordered_guided_next"))); -#else -bool -GOMP_loop_static_start (long start, long end, long incr, long chunk_size, - long *istart, long *iend) -{ - return gomp_loop_static_start (start, end, incr, chunk_size, istart, iend); -} - -bool -GOMP_loop_dynamic_start (long start, long end, long incr, long chunk_size, - long *istart, long *iend) -{ - return gomp_loop_dynamic_start (start, end, incr, chunk_size, istart, iend); -} - -bool -GOMP_loop_guided_start (long start, long end, long incr, long chunk_size, - long *istart, long *iend) -{ - return gomp_loop_guided_start (start, end, incr, chunk_size, istart, iend); -} - -bool -GOMP_loop_ordered_static_start (long start, long end, long incr, - long chunk_size, long *istart, long *iend) -{ - return gomp_loop_ordered_static_start (start, end, incr, chunk_size, - istart, iend); -} - -bool -GOMP_loop_ordered_dynamic_start (long start, long end, long incr, - long chunk_size, long *istart, long *iend) -{ - return gomp_loop_ordered_dynamic_start (start, end, incr, chunk_size, - istart, iend); -} - -bool -GOMP_loop_ordered_guided_start (long start, long end, long incr, - long chunk_size, long *istart, long *iend) -{ - return gomp_loop_ordered_guided_start (start, end, incr, chunk_size, - istart, iend); -} - -bool -GOMP_loop_static_next (long *istart, long *iend) -{ - return gomp_loop_static_next (istart, iend); -} - -bool -GOMP_loop_dynamic_next (long *istart, long *iend) -{ - return gomp_loop_dynamic_next (istart, iend); -} - -bool -GOMP_loop_guided_next (long *istart, long *iend) -{ - return gomp_loop_guided_next (istart, iend); -} - -bool -GOMP_loop_ordered_static_next (long *istart, long *iend) -{ - return gomp_loop_ordered_static_next (istart, iend); -} - -bool -GOMP_loop_ordered_dynamic_next (long *istart, long *iend) -{ - return gomp_loop_ordered_dynamic_next (istart, iend); -} - -bool -GOMP_loop_ordered_guided_next (long *istart, long *iend) -{ - return gomp_loop_ordered_guided_next (istart, iend); -} -#endif diff --git a/gcc-4.2.1-5666.3/libgomp/omp.h.in b/gcc-4.2.1-5666.3/libgomp/omp.h.in deleted file mode 100644 index 44fda9088..000000000 --- a/gcc-4.2.1-5666.3/libgomp/omp.h.in +++ /dev/null @@ -1,87 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -#ifndef OMP_H -#define OMP_H 1 - -#ifndef _LIBGOMP_OMP_LOCK_DEFINED -#define _LIBGOMP_OMP_LOCK_DEFINED 1 -/* These two structures get edited by the libgomp build process to - reflect the shape of the two types. Their internals are private - to the library. */ - -typedef struct -{ - unsigned char _x[@OMP_LOCK_SIZE@] - __attribute__((__aligned__(@OMP_LOCK_ALIGN@))); -} omp_lock_t; - -typedef struct -{ - unsigned char _x[@OMP_NEST_LOCK_SIZE@] - __attribute__((__aligned__(@OMP_NEST_LOCK_ALIGN@))); -} omp_nest_lock_t; -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -extern void omp_set_num_threads (int); -extern int omp_get_num_threads (void); -extern int omp_get_max_threads (void); -extern int omp_get_thread_num (void); -extern int omp_get_num_procs (void); - -extern int omp_in_parallel (void); - -extern void omp_set_dynamic (int); -extern int omp_get_dynamic (void); - -extern void omp_set_nested (int); -extern int omp_get_nested (void); - -extern void omp_init_lock (omp_lock_t *); -extern void omp_destroy_lock (omp_lock_t *); -extern void omp_set_lock (omp_lock_t *); -extern void omp_unset_lock (omp_lock_t *); -extern int omp_test_lock (omp_lock_t *); - -extern void omp_init_nest_lock (omp_nest_lock_t *); -extern void omp_destroy_nest_lock (omp_nest_lock_t *); -extern void omp_set_nest_lock (omp_nest_lock_t *); -extern void omp_unset_nest_lock (omp_nest_lock_t *); -extern int omp_test_nest_lock (omp_nest_lock_t *); - -extern double omp_get_wtime (void); -extern double omp_get_wtick (void); - -#ifdef __cplusplus -} -#endif - -#endif /* OMP_H */ diff --git a/gcc-4.2.1-5666.3/libgomp/omp_lib.f90.in b/gcc-4.2.1-5666.3/libgomp/omp_lib.f90.in deleted file mode 100644 index 4b8553b32..000000000 --- a/gcc-4.2.1-5666.3/libgomp/omp_lib.f90.in +++ /dev/null @@ -1,199 +0,0 @@ -! Copyright (C) 2005 Free Software Foundation, Inc. -! Contributed by Jakub Jelinek <jakub@redhat.com>. - -! This file is part of the GNU OpenMP Library (libgomp). - -! Libgomp is free software; you can redistribute it and/or modify it -! under the terms of the GNU Lesser General Public License as published by -! the Free Software Foundation; either version 2.1 of the License, or -! (at your option) any later version. - -! Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY -! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -! FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for -! more details. - -! You should have received a copy of the GNU Lesser General Public License -! along with libgomp; see the file COPYING.LIB. If not, write to the -! Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, -! MA 02110-1301, USA. */ - -! As a special exception, if you link this library with other files, some -! of which are compiled with GCC, to produce an executable, this library -! does not by itself cause the resulting executable to be covered by the -! GNU General Public License. This exception does not however invalidate -! any other reasons why the executable file might be covered by the GNU -! General Public License. - - module omp_lib_kinds - integer, parameter :: omp_integer_kind = 4 - integer, parameter :: omp_logical_kind = 4 - integer, parameter :: omp_lock_kind = @OMP_LOCK_KIND@ - integer, parameter :: omp_nest_lock_kind = @OMP_NEST_LOCK_KIND@ - end module - - module omp_lib - use omp_lib_kinds - integer, parameter :: openmp_version = 200505 - - interface - subroutine omp_init_lock (lock) - use omp_lib_kinds - integer (omp_lock_kind), intent (out) :: lock - end subroutine omp_init_lock - end interface - - interface - subroutine omp_init_nest_lock (lock) - use omp_lib_kinds - integer (omp_nest_lock_kind), intent (out) :: lock - end subroutine omp_init_nest_lock - end interface - - interface - subroutine omp_destroy_lock (lock) - use omp_lib_kinds - integer (omp_lock_kind), intent (inout) :: lock - end subroutine omp_destroy_lock - end interface - - interface - subroutine omp_destroy_nest_lock (lock) - use omp_lib_kinds - integer (omp_nest_lock_kind), intent (inout) :: lock - end subroutine omp_destroy_nest_lock - end interface - - interface - subroutine omp_set_lock (lock) - use omp_lib_kinds - integer (omp_lock_kind), intent (inout) :: lock - end subroutine omp_set_lock - end interface - - interface - subroutine omp_set_nest_lock (lock) - use omp_lib_kinds - integer (omp_nest_lock_kind), intent (inout) :: lock - end subroutine omp_set_nest_lock - end interface - - interface - subroutine omp_unset_lock (lock) - use omp_lib_kinds - integer (omp_lock_kind), intent (inout) :: lock - end subroutine omp_unset_lock - end interface - - interface - subroutine omp_unset_nest_lock (lock) - use omp_lib_kinds - integer (omp_nest_lock_kind), intent (inout) :: lock - end subroutine omp_unset_nest_lock - end interface - - interface omp_set_dynamic - subroutine omp_set_dynamic (set) - logical (4), intent (in) :: set - end subroutine omp_set_dynamic - subroutine omp_set_dynamic_8 (set) - logical (8), intent (in) :: set - end subroutine omp_set_dynamic_8 - end interface - - interface omp_set_nested - subroutine omp_set_nested (set) - logical (4), intent (in) :: set - end subroutine omp_set_nested - subroutine omp_set_nested_8 (set) - logical (8), intent (in) :: set - end subroutine omp_set_nested_8 - end interface - - interface omp_set_num_threads - subroutine omp_set_num_threads (set) - integer (4), intent (in) :: set - end subroutine omp_set_num_threads - subroutine omp_set_num_threads_8 (set) - integer (8), intent (in) :: set - end subroutine omp_set_num_threads_8 - end interface - - interface - function omp_get_dynamic () - use omp_lib_kinds - logical (omp_logical_kind) :: omp_get_dynamic - end function omp_get_dynamic - end interface - - interface - function omp_get_nested () - use omp_lib_kinds - logical (omp_logical_kind) :: omp_get_nested - end function omp_get_nested - end interface - - interface - function omp_in_parallel () - use omp_lib_kinds - logical (omp_logical_kind) :: omp_in_parallel - end function omp_in_parallel - end interface - - interface - function omp_test_lock (lock) - use omp_lib_kinds - logical (omp_logical_kind) :: omp_test_lock - integer (omp_lock_kind), intent (inout) :: lock - end function omp_test_lock - end interface - - interface - function omp_get_max_threads () - use omp_lib_kinds - integer (omp_integer_kind) :: omp_get_max_threads - end function omp_get_max_threads - end interface - - interface - function omp_get_num_procs () - use omp_lib_kinds - integer (omp_integer_kind) :: omp_get_num_procs - end function omp_get_num_procs - end interface - - interface - function omp_get_num_threads () - use omp_lib_kinds - integer (omp_integer_kind) :: omp_get_num_threads - end function omp_get_num_threads - end interface - - interface - function omp_get_thread_num () - use omp_lib_kinds - integer (omp_integer_kind) :: omp_get_thread_num - end function omp_get_thread_num - end interface - - interface - function omp_test_nest_lock (lock) - use omp_lib_kinds - integer (omp_integer_kind) :: omp_test_nest_lock - integer (omp_nest_lock_kind), intent (inout) :: lock - end function omp_test_nest_lock - end interface - - interface - function omp_get_wtick () - double precision :: omp_get_wtick - end function omp_get_wtick - end interface - - interface - function omp_get_wtime () - double precision :: omp_get_wtime - end function omp_get_wtime - end interface - - end module omp_lib diff --git a/gcc-4.2.1-5666.3/libgomp/omp_lib.h.in b/gcc-4.2.1-5666.3/libgomp/omp_lib.h.in deleted file mode 100644 index 734f2f781..000000000 --- a/gcc-4.2.1-5666.3/libgomp/omp_lib.h.in +++ /dev/null @@ -1,53 +0,0 @@ -! Copyright (C) 2005 Free Software Foundation, Inc. -! Contributed by Jakub Jelinek <jakub@redhat.com>. - -! This file is part of the GNU OpenMP Library (libgomp). - -! Libgomp is free software; you can redistribute it and/or modify it -! under the terms of the GNU Lesser General Public License as published by -! the Free Software Foundation; either version 2.1 of the License, or -! (at your option) any later version. - -! Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY -! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -! FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for -! more details. - -! You should have received a copy of the GNU Lesser General Public License -! along with libgomp; see the file COPYING.LIB. If not, write to the -! Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, -! MA 02110-1301, USA. */ - -! As a special exception, if you link this library with other files, some -! of which are compiled with GCC, to produce an executable, this library -! does not by itself cause the resulting executable to be covered by the -! GNU General Public License. This exception does not however invalidate -! any other reasons why the executable file might be covered by the GNU -! General Public License. - - integer omp_lock_kind, omp_nest_lock_kind, openmp_version - parameter (omp_lock_kind = @OMP_LOCK_KIND@) - parameter (omp_nest_lock_kind = @OMP_NEST_LOCK_KIND@) - parameter (openmp_version = 200505) - - external omp_init_lock, omp_init_nest_lock - external omp_destroy_lock, omp_destroy_nest_lock - external omp_set_lock, omp_set_nest_lock - external omp_unset_lock, omp_unset_nest_lock - external omp_set_dynamic, omp_set_nested - external omp_set_num_threads - - external omp_get_dynamic, omp_get_nested - logical*4 omp_get_dynamic, omp_get_nested - external omp_test_lock, omp_in_parallel - logical*4 omp_test_lock, omp_in_parallel - - external omp_get_max_threads, omp_get_num_procs - integer*4 omp_get_max_threads, omp_get_num_procs - external omp_get_num_threads, omp_get_thread_num - integer*4 omp_get_num_threads, omp_get_thread_num - external omp_test_nest_lock - integer*4 omp_test_nest_lock - - external omp_get_wtick, omp_get_wtime - double precision omp_get_wtick, omp_get_wtime diff --git a/gcc-4.2.1-5666.3/libgomp/ordered.c b/gcc-4.2.1-5666.3/libgomp/ordered.c deleted file mode 100644 index 7c5d67199..000000000 --- a/gcc-4.2.1-5666.3/libgomp/ordered.c +++ /dev/null @@ -1,249 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This file handles the ORDERED construct. */ - -#include "libgomp.h" - - -/* This function is called when first allocating an iteration block. That - is, the thread is not currently on the queue. The work-share lock must - be held on entry. */ - -void -gomp_ordered_first (void) -{ - struct gomp_thread *thr = gomp_thread (); - struct gomp_team *team = thr->ts.team; - struct gomp_work_share *ws = thr->ts.work_share; - unsigned index; - - /* Work share constructs can be orphaned. */ - if (team == NULL || team->nthreads == 1) - return; - - index = ws->ordered_cur + ws->ordered_num_used; - if (index >= team->nthreads) - index -= team->nthreads; - ws->ordered_team_ids[index] = thr->ts.team_id; - - /* If this is the first and only thread in the queue, then there is - no one to release us when we get to our ordered section. Post to - our own release queue now so that we won't block later. */ - if (ws->ordered_num_used++ == 0) - gomp_sem_post (team->ordered_release[thr->ts.team_id]); -} - -/* This function is called when completing the last iteration block. That - is, there are no more iterations to perform and so the thread should be - removed from the queue entirely. Because of the way ORDERED blocks are - managed, it follows that we currently own access to the ORDERED block, - and should now pass it on to the next thread. The work-share lock must - be held on entry. */ - -void -gomp_ordered_last (void) -{ - struct gomp_thread *thr = gomp_thread (); - struct gomp_team *team = thr->ts.team; - struct gomp_work_share *ws = thr->ts.work_share; - unsigned next_id; - - /* Work share constructs can be orphaned. */ - if (team == NULL || team->nthreads == 1) - return; - - /* We're no longer the owner. */ - ws->ordered_owner = -1; - - /* If we're not the last thread in the queue, then wake the next. */ - if (--ws->ordered_num_used > 0) - { - unsigned next = ws->ordered_cur + 1; - if (next == team->nthreads) - next = 0; - ws->ordered_cur = next; - - next_id = ws->ordered_team_ids[next]; - gomp_sem_post (team->ordered_release[next_id]); - } -} - - -/* This function is called when allocating a subsequent allocation block. - That is, we're done with the current iteration block and we're allocating - another. This is the logical combination of a call to gomp_ordered_last - followed by a call to gomp_ordered_first. The work-share lock must be - held on entry. */ - -void -gomp_ordered_next (void) -{ - struct gomp_thread *thr = gomp_thread (); - struct gomp_team *team = thr->ts.team; - struct gomp_work_share *ws = thr->ts.work_share; - unsigned index, next_id; - - /* Work share constructs can be orphaned. */ - if (team == NULL || team->nthreads == 1) - return; - - /* We're no longer the owner. */ - ws->ordered_owner = -1; - - /* If there's only one thread in the queue, that must be us. */ - if (ws->ordered_num_used == 1) - { - /* We have a similar situation as in gomp_ordered_first - where we need to post to our own release semaphore. */ - gomp_sem_post (team->ordered_release[thr->ts.team_id]); - return; - } - - /* If the queue is entirely full, then we move ourself to the end of - the queue merely by incrementing ordered_cur. Only if it's not - full do we have to write our id. */ - if (ws->ordered_num_used < team->nthreads) - { - index = ws->ordered_cur + ws->ordered_num_used; - if (index >= team->nthreads) - index -= team->nthreads; - ws->ordered_team_ids[index] = thr->ts.team_id; - } - - index = ws->ordered_cur + 1; - if (index == team->nthreads) - index = 0; - ws->ordered_cur = index; - - next_id = ws->ordered_team_ids[index]; - gomp_sem_post (team->ordered_release[next_id]); -} - - -/* This function is called when a statically scheduled loop is first - being created. */ - -void -gomp_ordered_static_init (void) -{ - struct gomp_thread *thr = gomp_thread (); - struct gomp_team *team = thr->ts.team; - - if (team == NULL || team->nthreads == 1) - return; - - gomp_sem_post (team->ordered_release[0]); -} - -/* This function is called when a statically scheduled loop is moving to - the next allocation block. Static schedules are not first come first - served like the others, so we're to move to the numerically next thread, - not the next thread on a list. The work-share lock should *not* be held - on entry. */ - -void -gomp_ordered_static_next (void) -{ - struct gomp_thread *thr = gomp_thread (); - struct gomp_team *team = thr->ts.team; - struct gomp_work_share *ws = thr->ts.work_share; - unsigned id = thr->ts.team_id; - - if (team == NULL || team->nthreads == 1) - return; - - ws->ordered_owner = -1; - - /* This thread currently owns the lock. Increment the owner. */ - if (++id == team->nthreads) - id = 0; - ws->ordered_team_ids[0] = id; - gomp_sem_post (team->ordered_release[id]); -} - -/* This function is called when we need to assert that the thread owns the - ordered section. Due to the problem of posted-but-not-waited semaphores, - this needs to happen before completing a loop iteration. */ - -void -gomp_ordered_sync (void) -{ - struct gomp_thread *thr = gomp_thread (); - struct gomp_team *team = thr->ts.team; - struct gomp_work_share *ws = thr->ts.work_share; - - /* Work share constructs can be orphaned. But this clearly means that - we are the only thread, and so we automatically own the section. */ - if (team == NULL || team->nthreads == 1) - return; - - /* ??? I believe it to be safe to access this data without taking the - ws->lock. The only presumed race condition is with the previous - thread on the queue incrementing ordered_cur such that it points - to us, concurrently with our check below. But our team_id is - already present in the queue, and the other thread will always - post to our release semaphore. So the two cases are that we will - either win the race an momentarily block on the semaphore, or lose - the race and find the semaphore already unlocked and so not block. - Either way we get correct results. */ - - if (ws->ordered_owner != thr->ts.team_id) - { - gomp_sem_wait (team->ordered_release[thr->ts.team_id]); - ws->ordered_owner = thr->ts.team_id; - } -} - -/* This function is called by user code when encountering the start of an - ORDERED block. We must check to see if the current thread is at the - head of the queue, and if not, block. */ - -#ifdef HAVE_ATTRIBUTE_ALIAS -extern void GOMP_ordered_start (void) - __attribute__((alias ("gomp_ordered_sync"))); -#else -void -GOMP_ordered_start (void) -{ - gomp_ordered_sync (); -} -#endif - -/* This function is called by user code when encountering the end of an - ORDERED block. With the current ORDERED implementation there's nothing - for us to do. - - However, the current implementation has a flaw in that it does not allow - the next thread into the ORDERED section immediately after the current - thread exits the ORDERED section in its last iteration. The existance - of this function allows the implementation to change. */ - -void -GOMP_ordered_end (void) -{ -} diff --git a/gcc-4.2.1-5666.3/libgomp/parallel.c b/gcc-4.2.1-5666.3/libgomp/parallel.c deleted file mode 100644 index edd344a90..000000000 --- a/gcc-4.2.1-5666.3/libgomp/parallel.c +++ /dev/null @@ -1,126 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This file handles the (bare) PARALLEL construct. */ - -#include "libgomp.h" - - -/* Determine the number of threads to be launched for a PARALLEL construct. - This algorithm is explicitly described in OpenMP 2.5 section 2.4.1. - SPECIFIED is a combination of the NUM_THREADS clause and the IF clause. - If the IF clause is false, SPECIFIED is forced to 1. When NUM_THREADS - is not present, SPECIFIED is 0. */ - -unsigned -gomp_resolve_num_threads (unsigned specified) -{ - /* Early exit for false IF condition or degenerate NUM_THREADS. */ - if (specified == 1) - return 1; - - /* If this is a nested region, and nested regions are disabled, force - this team to use only one thread. */ - if (gomp_thread()->ts.team && !gomp_nest_var) - return 1; - - /* If NUM_THREADS not specified, use nthreads_var. */ - if (specified == 0) - specified = gomp_nthreads_var; - - /* If dynamic threads are enabled, bound the number of threads - that we launch. */ - if (gomp_dyn_var) - { - unsigned dyn = gomp_dynamic_max_threads (); - if (dyn < specified) - return dyn; - } - - return specified; -} - -void -GOMP_parallel_start (void (*fn) (void *), void *data, unsigned num_threads) -{ - num_threads = gomp_resolve_num_threads (num_threads); - gomp_team_start (fn, data, num_threads, NULL); -} - -void -GOMP_parallel_end (void) -{ - gomp_team_end (); -} - - -/* The public OpenMP API for thread and team related inquiries. */ - -int -omp_get_num_threads (void) -{ - struct gomp_team *team = gomp_thread ()->ts.team; - return team ? team->nthreads : 1; -} - -/* ??? Does this function need to disregard dyn_var? I don't see - how else one could get a useable "maximum". */ - -int -omp_get_max_threads (void) -{ - return gomp_resolve_num_threads (0); -} - -int -omp_get_thread_num (void) -{ - return gomp_thread ()->ts.team_id; -} - -/* ??? This isn't right. The definition of this function is false if any - of the IF clauses for any of the parallels is false. Which is not the - same thing as any outer team having more than one thread. */ - -int omp_in_parallel (void) -{ - struct gomp_team *team = gomp_thread ()->ts.team; - - while (team) - { - if (team->nthreads > 1) - return true; - team = team->prev_ts.team; - } - - return false; -} - -ialias (omp_get_num_threads) -ialias (omp_get_max_threads) -ialias (omp_get_thread_num) -ialias (omp_in_parallel) diff --git a/gcc-4.2.1-5666.3/libgomp/sections.c b/gcc-4.2.1-5666.3/libgomp/sections.c deleted file mode 100644 index 9ccc65e4b..000000000 --- a/gcc-4.2.1-5666.3/libgomp/sections.c +++ /dev/null @@ -1,131 +0,0 @@ -/* Copyright (C) 2005, 2007 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This file handles the SECTIONS construct. */ - -#include "libgomp.h" - - -/* Initialize the given work share construct from the given arguments. */ - -static inline void -gomp_sections_init (struct gomp_work_share *ws, unsigned count) -{ - ws->sched = GFS_DYNAMIC; - ws->chunk_size = 1; - ws->end = count + 1; - ws->incr = 1; - ws->next = 1; -} - -/* This routine is called when first encountering a sections construct - that is not bound directly to a parallel construct. The first thread - that arrives will create the work-share construct; subsequent threads - will see the construct exists and allocate work from it. - - COUNT is the number of sections in this construct. - - Returns the 1-based section number for this thread to perform, or 0 if - all work was assigned to other threads prior to this thread's arrival. */ - -unsigned -GOMP_sections_start (unsigned count) -{ - struct gomp_thread *thr = gomp_thread (); - long s, e, ret; - - if (gomp_work_share_start (false)) - gomp_sections_init (thr->ts.work_share, count); - - if (gomp_iter_dynamic_next_locked (&s, &e)) - ret = s; - else - ret = 0; - - gomp_mutex_unlock (&thr->ts.work_share->lock); - - return ret; -} - -/* This routine is called when the thread completes processing of the - section currently assigned to it. If the work-share construct is - bound directly to a parallel construct, then the construct may have - been set up before the parallel. In which case, this may be the - first iteration for the thread. - - Returns the 1-based section number for this thread to perform, or 0 if - all work was assigned to other threads prior to this thread's arrival. */ - -unsigned -GOMP_sections_next (void) -{ - struct gomp_thread *thr = gomp_thread (); - long s, e, ret; - - gomp_mutex_lock (&thr->ts.work_share->lock); - if (gomp_iter_dynamic_next_locked (&s, &e)) - ret = s; - else - ret = 0; - gomp_mutex_unlock (&thr->ts.work_share->lock); - - return ret; -} - -/* This routine pre-initializes a work-share construct to avoid one - synchronization once we get into the loop. */ - -void -GOMP_parallel_sections_start (void (*fn) (void *), void *data, - unsigned num_threads, unsigned count) -{ - struct gomp_work_share *ws; - - num_threads = gomp_resolve_num_threads (num_threads); - if (gomp_dyn_var && num_threads > count) - num_threads = count; - - ws = gomp_new_work_share (false, num_threads); - gomp_sections_init (ws, count); - gomp_team_start (fn, data, num_threads, ws); -} - -/* The GOMP_section_end* routines are called after the thread is told - that all sections are complete. This first version synchronizes - all threads; the nowait version does not. */ - -void -GOMP_sections_end (void) -{ - gomp_work_share_end (); -} - -void -GOMP_sections_end_nowait (void) -{ - gomp_work_share_end_nowait (); -} diff --git a/gcc-4.2.1-5666.3/libgomp/single.c b/gcc-4.2.1-5666.3/libgomp/single.c deleted file mode 100644 index dde05d9ce..000000000 --- a/gcc-4.2.1-5666.3/libgomp/single.c +++ /dev/null @@ -1,91 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This file handles the SINGLE construct. */ - -#include "libgomp.h" - - -/* This routine is called when first encountering a SINGLE construct that - doesn't have a COPYPRIVATE clause. Returns true if this is the thread - that should execute the clause. */ - -bool -GOMP_single_start (void) -{ - bool ret = gomp_work_share_start (false); - gomp_mutex_unlock (&gomp_thread ()->ts.work_share->lock); - gomp_work_share_end_nowait (); - return ret; -} - -/* This routine is called when first encountering a SINGLE construct that - does have a COPYPRIVATE clause. Returns NULL if this is the thread - that should execute the clause; otherwise the return value is pointer - given to GOMP_single_copy_end by the thread that did execute the clause. */ - -void * -GOMP_single_copy_start (void) -{ - struct gomp_thread *thr = gomp_thread (); - - bool first; - void *ret; - - first = gomp_work_share_start (false); - gomp_mutex_unlock (&thr->ts.work_share->lock); - - if (first) - ret = NULL; - else - { - gomp_barrier_wait (&thr->ts.team->barrier); - - ret = thr->ts.work_share->copyprivate; - gomp_work_share_end_nowait (); - } - - return ret; -} - -/* This routine is called when the thread that entered a SINGLE construct - with a COPYPRIVATE clause gets to the end of the construct. */ - -void -GOMP_single_copy_end (void *data) -{ - struct gomp_thread *thr = gomp_thread (); - struct gomp_team *team = thr->ts.team; - - if (team != NULL) - { - thr->ts.work_share->copyprivate = data; - gomp_barrier_wait (&team->barrier); - } - - gomp_work_share_end_nowait (); -} diff --git a/gcc-4.2.1-5666.3/libgomp/team.c b/gcc-4.2.1-5666.3/libgomp/team.c deleted file mode 100644 index 060f4ea2c..000000000 --- a/gcc-4.2.1-5666.3/libgomp/team.c +++ /dev/null @@ -1,341 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This file handles the maintainence of threads in response to team - creation and termination. */ - -#include "libgomp.h" -#include <stdlib.h> -#include <string.h> - -/* This array manages threads spawned from the top level, which will - return to the idle loop once the current PARALLEL construct ends. */ -static struct gomp_thread **gomp_threads; -static unsigned gomp_threads_size; -static unsigned gomp_threads_used; - -/* This attribute contains PTHREAD_CREATE_DETACHED. */ -pthread_attr_t gomp_thread_attr; - -/* This barrier holds and releases threads waiting in gomp_threads. */ -static gomp_barrier_t gomp_threads_dock; - -/* This is the libgomp per-thread data structure. */ -#ifdef HAVE_TLS -__thread struct gomp_thread gomp_tls_data; -#else -pthread_key_t gomp_tls_key; -#endif - - -/* This structure is used to communicate across pthread_create. */ - -struct gomp_thread_start_data -{ - struct gomp_team_state ts; - void (*fn) (void *); - void *fn_data; - bool nested; -}; - - -/* This function is a pthread_create entry point. This contains the idle - loop in which a thread waits to be called up to become part of a team. */ - -static void * -gomp_thread_start (void *xdata) -{ - struct gomp_thread_start_data *data = xdata; - struct gomp_thread *thr; - void (*local_fn) (void *); - void *local_data; - -#ifdef HAVE_TLS - thr = &gomp_tls_data; -#else - struct gomp_thread local_thr; - thr = &local_thr; - pthread_setspecific (gomp_tls_key, thr); -#endif - gomp_sem_init (&thr->release, 0); - - /* Extract what we need from data. */ - local_fn = data->fn; - local_data = data->fn_data; - thr->ts = data->ts; - - thr->ts.team->ordered_release[thr->ts.team_id] = &thr->release; - - if (data->nested) - { - gomp_barrier_wait (&thr->ts.team->barrier); - local_fn (local_data); - gomp_barrier_wait (&thr->ts.team->barrier); - } - else - { - gomp_threads[thr->ts.team_id] = thr; - - gomp_barrier_wait (&gomp_threads_dock); - do - { - struct gomp_team *team; - - local_fn (local_data); - - /* Clear out the team and function data. This is a debugging - signal that we're in fact back in the dock. */ - team = thr->ts.team; - thr->fn = NULL; - thr->data = NULL; - thr->ts.team = NULL; - thr->ts.work_share = NULL; - thr->ts.team_id = 0; - thr->ts.work_share_generation = 0; - thr->ts.static_trip = 0; - - gomp_barrier_wait (&team->barrier); - gomp_barrier_wait (&gomp_threads_dock); - - local_fn = thr->fn; - local_data = thr->data; - } - while (local_fn); - } - - return NULL; -} - - -/* Create a new team data structure. */ - -static struct gomp_team * -new_team (unsigned nthreads, struct gomp_work_share *work_share) -{ - struct gomp_team *team; - size_t size; - - size = sizeof (*team) + nthreads * sizeof (team->ordered_release[0]); - team = gomp_malloc (size); - gomp_mutex_init (&team->work_share_lock); - - team->work_shares = gomp_malloc (4 * sizeof (struct gomp_work_share *)); - team->generation_mask = 3; - team->oldest_live_gen = work_share == NULL; - team->num_live_gen = work_share != NULL; - team->work_shares[0] = work_share; - - team->nthreads = nthreads; - gomp_barrier_init (&team->barrier, nthreads); - - gomp_sem_init (&team->master_release, 0); - team->ordered_release[0] = &team->master_release; - - return team; -} - - -/* Free a team data structure. */ - -static void -free_team (struct gomp_team *team) -{ - free (team->work_shares); - gomp_mutex_destroy (&team->work_share_lock); - gomp_barrier_destroy (&team->barrier); - gomp_sem_destroy (&team->master_release); - free (team); -} - - -/* Launch a team. */ - -void -gomp_team_start (void (*fn) (void *), void *data, unsigned nthreads, - struct gomp_work_share *work_share) -{ - struct gomp_thread_start_data *start_data; - struct gomp_thread *thr, *nthr; - struct gomp_team *team; - bool nested; - unsigned i, n, old_threads_used = 0; - - thr = gomp_thread (); - nested = thr->ts.team != NULL; - - team = new_team (nthreads, work_share); - - /* Always save the previous state, even if this isn't a nested team. - In particular, we should save any work share state from an outer - orphaned work share construct. */ - team->prev_ts = thr->ts; - - thr->ts.team = team; - thr->ts.work_share = work_share; - thr->ts.team_id = 0; - thr->ts.work_share_generation = 0; - thr->ts.static_trip = 0; - - if (nthreads == 1) - return; - - i = 1; - - /* We only allow the reuse of idle threads for non-nested PARALLEL - regions. This appears to be implied by the semantics of - threadprivate variables, but perhaps that's reading too much into - things. Certainly it does prevent any locking problems, since - only the initial program thread will modify gomp_threads. */ - if (!nested) - { - old_threads_used = gomp_threads_used; - - if (nthreads <= old_threads_used) - n = nthreads; - else if (old_threads_used == 0) - { - n = 0; - gomp_barrier_init (&gomp_threads_dock, nthreads); - } - else - { - n = old_threads_used; - - /* Increase the barrier threshold to make sure all new - threads arrive before the team is released. */ - gomp_barrier_reinit (&gomp_threads_dock, nthreads); - } - - /* Not true yet, but soon will be. We're going to release all - threads from the dock, and those that aren't part of the - team will exit. */ - gomp_threads_used = nthreads; - - /* Release existing idle threads. */ - for (; i < n; ++i) - { - nthr = gomp_threads[i]; - nthr->ts.team = team; - nthr->ts.work_share = work_share; - nthr->ts.team_id = i; - nthr->ts.work_share_generation = 0; - nthr->ts.static_trip = 0; - nthr->fn = fn; - nthr->data = data; - team->ordered_release[i] = &nthr->release; - } - - if (i == nthreads) - goto do_release; - - /* If necessary, expand the size of the gomp_threads array. It is - expected that changes in the number of threads is rare, thus we - make no effort to expand gomp_threads_size geometrically. */ - if (nthreads >= gomp_threads_size) - { - gomp_threads_size = nthreads + 1; - gomp_threads - = gomp_realloc (gomp_threads, - gomp_threads_size - * sizeof (struct gomp_thread_data *)); - } - } - - start_data = gomp_alloca (sizeof (struct gomp_thread_start_data) - * (nthreads-i)); - - /* Launch new threads. */ - for (; i < nthreads; ++i, ++start_data) - { - pthread_t pt; - int err; - - start_data->ts.team = team; - start_data->ts.work_share = work_share; - start_data->ts.team_id = i; - start_data->ts.work_share_generation = 0; - start_data->ts.static_trip = 0; - start_data->fn = fn; - start_data->fn_data = data; - start_data->nested = nested; - - err = pthread_create (&pt, &gomp_thread_attr, - gomp_thread_start, start_data); - if (err != 0) - gomp_fatal ("Thread creation failed: %s", strerror (err)); - } - - do_release: - gomp_barrier_wait (nested ? &team->barrier : &gomp_threads_dock); - - /* Decrease the barrier threshold to match the number of threads - that should arrive back at the end of this team. The extra - threads should be exiting. Note that we arrange for this test - to never be true for nested teams. */ - if (nthreads < old_threads_used) - gomp_barrier_reinit (&gomp_threads_dock, nthreads); -} - - -/* Terminate the current team. This is only to be called by the master - thread. We assume that we must wait for the other threads. */ - -void -gomp_team_end (void) -{ - struct gomp_thread *thr = gomp_thread (); - struct gomp_team *team = thr->ts.team; - - gomp_barrier_wait (&team->barrier); - - thr->ts = team->prev_ts; - - free_team (team); -} - - -/* Constructors for this file. */ - -static void __attribute__((constructor)) -initialize_team (void) -{ - struct gomp_thread *thr; - -#ifndef HAVE_TLS - static struct gomp_thread initial_thread_tls_data; - - pthread_key_create (&gomp_tls_key, NULL); - pthread_setspecific (gomp_tls_key, &initial_thread_tls_data); -#endif - -#ifdef HAVE_TLS - thr = &gomp_tls_data; -#else - thr = &initial_thread_tls_data; -#endif - gomp_sem_init (&thr->release, 0); -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/Makefile.am b/gcc-4.2.1-5666.3/libgomp/testsuite/Makefile.am deleted file mode 100644 index 561b7e254..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/Makefile.am +++ /dev/null @@ -1,13 +0,0 @@ -## Process this file with automake to produce Makefile.in. - -AUTOMAKE_OPTIONS = foreign dejagnu - -# May be used by various substitution variables. -gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER) - -EXPECT = $(shell if test -f $(top_builddir)/../expect/expect; then \ - echo $(top_builddir)/../expect/expect; else echo expect; fi) - -_RUNTEST = $(shell if test -f $(top_srcdir)/../dejagnu/runtest; then \ - echo $(top_srcdir)/../dejagnu/runtest; else echo runtest; fi) -RUNTEST = "$(_RUNTEST) $(AM_RUNTESTFLAGS)" diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/Makefile.in b/gcc-4.2.1-5666.3/libgomp/testsuite/Makefile.in deleted file mode 100644 index 4c10b5354..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/Makefile.in +++ /dev/null @@ -1,393 +0,0 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. -# This Makefile.in is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY, to the extent permitted by law; without -# even the implied warranty of MERCHANTABILITY or FITNESS FOR A -# PARTICULAR PURPOSE. - -@SET_MAKE@ -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ -VPATH = @srcdir@ -pkgdatadir = $(datadir)/@PACKAGE@ -pkglibdir = $(libdir)/@PACKAGE@ -pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = .. -am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ -install_sh_DATA = $(install_sh) -c -m 644 -install_sh_PROGRAM = $(install_sh) -c -install_sh_SCRIPT = $(install_sh) -c -INSTALL_HEADER = $(INSTALL_DATA) -transform = $(program_transform_name) -NORMAL_INSTALL = : -PRE_INSTALL = : -POST_INSTALL = : -NORMAL_UNINSTALL = : -PRE_UNINSTALL = : -POST_UNINSTALL = : -build_triplet = @build@ -host_triplet = @host@ -target_triplet = @target@ -subdir = testsuite -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/../config/acx.m4 \ - $(top_srcdir)/../config/depstand.m4 \ - $(top_srcdir)/../config/enable.m4 \ - $(top_srcdir)/../config/lead-dot.m4 \ - $(top_srcdir)/../config/multi.m4 \ - $(top_srcdir)/../config/stdint.m4 \ - $(top_srcdir)/../config/tls.m4 $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/../libtool.m4 $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -SOURCES = -DIST_SOURCES = -DEJATOOL = $(PACKAGE) -RUNTESTDEFAULTFLAGS = --tool $$tool --srcdir $$srcdir -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ -AMTAR = @AMTAR@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -BUILD_INFO_FALSE = @BUILD_INFO_FALSE@ -BUILD_INFO_TRUE = @BUILD_INFO_TRUE@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -EXEEXT = @EXEEXT@ -FC = @FC@ -FCFLAGS = @FCFLAGS@ -GENINSRC_FALSE = @GENINSRC_FALSE@ -GENINSRC_TRUE = @GENINSRC_TRUE@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -LDFLAGS = @LDFLAGS@ -LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE = @LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@ -LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE = @LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBTOOL = @LIBTOOL@ -LN_S = @LN_S@ -LTLIBOBJS = @LTLIBOBJS@ -MAINT = @MAINT@ -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ -MAKEINFO = @MAKEINFO@ -OBJEXT = @OBJEXT@ -OMP_LOCK_ALIGN = @OMP_LOCK_ALIGN@ -OMP_LOCK_KIND = @OMP_LOCK_KIND@ -OMP_LOCK_SIZE = @OMP_LOCK_SIZE@ -OMP_NEST_LOCK_ALIGN = @OMP_NEST_LOCK_ALIGN@ -OMP_NEST_LOCK_KIND = @OMP_NEST_LOCK_KIND@ -OMP_NEST_LOCK_SIZE = @OMP_NEST_LOCK_SIZE@ -OPT_LDFLAGS = @OPT_LDFLAGS@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PERL = @PERL@ -RANLIB = @RANLIB@ -SECTION_LDFLAGS = @SECTION_LDFLAGS@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -STRIP = @STRIP@ -USE_FORTRAN_FALSE = @USE_FORTRAN_FALSE@ -USE_FORTRAN_TRUE = @USE_FORTRAN_TRUE@ -VERSION = @VERSION@ -XCFLAGS = @XCFLAGS@ -XLDFLAGS = @XLDFLAGS@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_FC = @ac_ct_FC@ -ac_ct_RANLIB = @ac_ct_RANLIB@ -ac_ct_STRIP = @ac_ct_STRIP@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__include = @am__include@ -am__leading_dot = @am__leading_dot@ -am__quote = @am__quote@ -am__tar = @am__tar@ -am__untar = @am__untar@ -bindir = @bindir@ -build = @build@ -build_alias = @build_alias@ -build_cpu = @build_cpu@ -build_os = @build_os@ -build_vendor = @build_vendor@ -config_path = @config_path@ -datadir = @datadir@ -enable_shared = @enable_shared@ -enable_static = @enable_static@ -exec_prefix = @exec_prefix@ -host = @host@ -host_alias = @host_alias@ -host_cpu = @host_cpu@ -host_os = @host_os@ -host_vendor = @host_vendor@ -includedir = @includedir@ -infodir = @infodir@ -install_sh = @install_sh@ -libdir = @libdir@ -libexecdir = @libexecdir@ -libtool_VERSION = @libtool_VERSION@ -link_gomp = @link_gomp@ -localstatedir = @localstatedir@ -mandir = @mandir@ -mkdir_p = @mkdir_p@ -multi_basedir = @multi_basedir@ -oldincludedir = @oldincludedir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -target = @target@ -target_alias = @target_alias@ -target_cpu = @target_cpu@ -target_os = @target_os@ -target_vendor = @target_vendor@ -toolexecdir = @toolexecdir@ -toolexeclibdir = @toolexeclibdir@ -AUTOMAKE_OPTIONS = foreign dejagnu - -# May be used by various substitution variables. -gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER) -EXPECT = $(shell if test -f $(top_builddir)/../expect/expect; then \ - echo $(top_builddir)/../expect/expect; else echo expect; fi) - -_RUNTEST = $(shell if test -f $(top_srcdir)/../dejagnu/runtest; then \ - echo $(top_srcdir)/../dejagnu/runtest; else echo runtest; fi) - -RUNTEST = "$(_RUNTEST) $(AM_RUNTESTFLAGS)" -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign testsuite/Makefile'; \ - cd $(top_srcdir) && \ - $(AUTOMAKE) --foreign testsuite/Makefile -.PRECIOUS: Makefile -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status - @case '$?' in \ - *config.status*) \ - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ - *) \ - echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool -uninstall-info-am: -tags: TAGS -TAGS: - -ctags: CTAGS -CTAGS: - - -check-DEJAGNU: site.exp - srcdir=`$(am__cd) $(srcdir) && pwd`; export srcdir; \ - EXPECT=$(EXPECT); export EXPECT; \ - runtest=$(RUNTEST); \ - if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \ - l='$(DEJATOOL)'; for tool in $$l; do \ - $$runtest $(AM_RUNTESTFLAGS) $(RUNTESTDEFAULTFLAGS) $(RUNTESTFLAGS); \ - done; \ - else echo "WARNING: could not find \`runtest'" 1>&2; :;\ - fi -site.exp: Makefile - @echo 'Making a new site.exp file...' - @echo '## these variables are automatically generated by make ##' >site.tmp - @echo '# Do not edit here. If you wish to override these values' >>site.tmp - @echo '# edit the last section' >>site.tmp - @echo 'set srcdir $(srcdir)' >>site.tmp - @echo "set objdir `pwd`" >>site.tmp - @echo 'set build_alias "$(build_alias)"' >>site.tmp - @echo 'set build_triplet $(build_triplet)' >>site.tmp - @echo 'set host_alias "$(host_alias)"' >>site.tmp - @echo 'set host_triplet $(host_triplet)' >>site.tmp - @echo 'set target_alias "$(target_alias)"' >>site.tmp - @echo 'set target_triplet $(target_triplet)' >>site.tmp - @echo '## All variables above are generated by configure. Do Not Edit ##' >>site.tmp - @test ! -f site.exp || \ - sed '1,/^## All variables above are.*##/ d' site.exp >> site.tmp - @-rm -f site.bak - @test ! -f site.exp || mv site.exp site.bak - @mv site.tmp site.exp - -distclean-DEJAGNU: - -rm -f site.exp site.bak - -l='$(DEJATOOL)'; for tool in $$l; do \ - rm -f $$tool.sum $$tool.log; \ - done - -distdir: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ - if test -d $$d/$$file; then \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ - fi; \ - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ - else \ - test -f $(distdir)/$$file \ - || cp -p $$d/$$file $(distdir)/$$file \ - || exit 1; \ - fi; \ - done -check-am: all-am - $(MAKE) $(AM_MAKEFLAGS) check-DEJAGNU -check: check-am -all-am: Makefile -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \ - echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-DEJAGNU distclean-generic \ - distclean-libtool - -dvi: dvi-am - -dvi-am: - -html: html-am - -info: info-am - -info-am: - -install-data-am: - -install-exec-am: - -install-info: install-info-am - -install-man: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-info-am - -.PHONY: all all-am check check-DEJAGNU check-am clean clean-generic \ - clean-libtool distclean distclean-DEJAGNU distclean-generic \ - distclean-libtool distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-exec \ - install-exec-am install-info install-info-am install-man \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - uninstall uninstall-am uninstall-info-am - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/config/default.exp b/gcc-4.2.1-5666.3/libgomp/testsuite/config/default.exp deleted file mode 100644 index 7f3b819a3..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/config/default.exp +++ /dev/null @@ -1,18 +0,0 @@ -# APPLE LOCAL file mainline -# Copyright (C) 1997 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -load_lib "standard.exp" diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/lib/libgomp-dg.exp b/gcc-4.2.1-5666.3/libgomp/testsuite/lib/libgomp-dg.exp deleted file mode 100644 index f0881e2a3..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/lib/libgomp-dg.exp +++ /dev/null @@ -1,8 +0,0 @@ -# APPLE LOCAL file mainline -proc libgomp-dg-test { prog do_what extra_tool_flags } { - return [gcc-dg-test-1 libgomp_target_compile $prog $do_what $extra_tool_flags] -} - -proc libgomp-dg-prune { system text } { - return [gcc-dg-prune $system $text] -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/lib/libgomp.exp b/gcc-4.2.1-5666.3/libgomp/testsuite/lib/libgomp.exp deleted file mode 100644 index 4140e75eb..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/lib/libgomp.exp +++ /dev/null @@ -1,209 +0,0 @@ -# APPLE LOCAL file mainline -# Damn dejagnu for not having proper library search paths for load_lib. -# We have to explicitly load everything that gcc-dg.exp wants to load. - -proc load_gcc_lib { filename } { - global srcdir loaded_libs - - load_file $srcdir/../../gcc/testsuite/lib/$filename - set loaded_libs($filename) "" -} - -load_lib dg.exp -load_gcc_lib file-format.exp -load_gcc_lib target-supports.exp -load_gcc_lib target-supports-dg.exp -load_gcc_lib scanasm.exp -load_gcc_lib scandump.exp -load_gcc_lib scanrtl.exp -load_gcc_lib scantree.exp -load_gcc_lib scanipa.exp -load_gcc_lib prune.exp -load_gcc_lib target-libpath.exp -load_gcc_lib wrapper.exp -load_gcc_lib gcc-defs.exp -load_gcc_lib gcc-dg.exp -load_gcc_lib gfortran-dg.exp - -set dg-do-what-default run - -# -# GCC_UNDER_TEST is the compiler under test. -# - -set libgomp_compile_options "" - -# -# libgomp_init -# - -if [info exists TOOL_OPTIONS] { - set multilibs [get_multilibs $TOOL_OPTIONS] -} else { - set multilibs [get_multilibs] -} - -proc libgomp_init { args } { - global srcdir blddir objdir tool_root_dir - global libgomp_initialized - global tmpdir - global blddir - global gluefile wrap_flags - global ALWAYS_CFLAGS - global CFLAGS - global TOOL_EXECUTABLE TOOL_OPTIONS - global GCC_UNDER_TEST - global TESTING_IN_BUILD_TREE - global target_triplet - global always_ld_library_path - - set blddir [lookfor_file [get_multilibs] libgomp] - - # We set LC_ALL and LANG to C so that we get the same error - # messages as expected. - setenv LC_ALL C - setenv LANG C - - if ![info exists GCC_UNDER_TEST] then { - if [info exists TOOL_EXECUTABLE] { - set GCC_UNDER_TEST $TOOL_EXECUTABLE - } else { - set GCC_UNDER_TEST "[find_gcc]" - } - } - - if ![info exists tmpdir] { - set tmpdir "/tmp" - } - - if [info exists gluefile] { - unset gluefile - } - - if {![info exists CFLAGS]} { - set CFLAGS "" - } - - # Locate libgcc.a so we don't need to account for different values of - # SHLIB_EXT on different platforms - set gccdir [lookfor_file $tool_root_dir gcc/libgcc.a] - if {$gccdir != ""} { - set gccdir [file dirname $gccdir] - } - - # Compute what needs to be put into LD_LIBRARY_PATH - set always_ld_library_path ".:${blddir}/.libs" - - # Compute what needs to be added to the existing LD_LIBRARY_PATH. - if {$gccdir != ""} { - append always_ld_library_path ":${gccdir}" - set compiler [lindex $GCC_UNDER_TEST 0] - - if { [is_remote host] == 0 && [which $compiler] != 0 } { - foreach i "[exec $compiler --print-multi-lib]" { - set mldir "" - regexp -- "\[a-z0-9=_/\.-\]*;" $i mldir - set mldir [string trimright $mldir "\;@"] - if { "$mldir" == "." } { - continue - } - if { [llength [glob -nocomplain ${gccdir}/${mldir}/libgcc_s*.so.*]] >= 1 } { - append always_ld_library_path ":${gccdir}/${mldir}" - } - } - } - } - - set ALWAYS_CFLAGS "" - # APPLE LOCAL begin mainline candidate - # Make sure that blddir exists... - if {$blddir != ""} { - lappend ALWAYS_CFLAGS "additional_flags=-B${blddir}/" - lappend ALWAYS_CFLAGS "additional_flags=-I${blddir}" - lappend ALWAYS_CFLAGS "ldflags=-L${blddir}/.libs" - } - lappend ALWAYS_CFLAGS "additional_flags=-I${srcdir}/../" - lappend ALWAYS_CFLAGS "-lgomp" - - # APPLE LOCAL end mainline candidate - # We use atomic operations in the testcases to validate results. - if { ([istarget i?86-*-*] || [istarget x86_64-*-*]) - && [check_effective_target_ilp32] } { - lappend ALWAYS_CFLAGS "additional_flags=-march=i486" - } - - if [istarget *-*-darwin*] { - lappend ALWAYS_CFLAGS "additional_flags=-shared-libgcc" - } - - if [istarget sparc*-*-*] { - lappend ALWAYS_CFLAGS "additional_flags=-mcpu=v9" - } - - if [info exists TOOL_OPTIONS] { - lappend ALWAYS_CFLAGS "additional_flags=$TOOL_OPTIONS" - } - - # Make sure that lines are not wrapped. That can confuse the - # error-message parsing machinery. - lappend ALWAYS_CFLAGS "additional_flags=-fmessage-length=0" - - # And, gee, turn on OpenMP. - lappend ALWAYS_CFLAGS "additional_flags=-fopenmp" -} - -# -# libgomp_target_compile -- compile a source file -# - -proc libgomp_target_compile { source dest type options } { - global blddir - global libgomp_compile_options - global gluefile wrap_flags - global ALWAYS_CFLAGS - global GCC_UNDER_TEST - global lang_test_file - global lang_library_path - global lang_link_flags - - if { [info exists lang_test_file] && [file exists "${blddir}/"] } { - lappend options "ldflags=-L${blddir}/${lang_library_path} ${lang_link_flags}" - } - - if { [target_info needs_status_wrapper] != "" && [info exists gluefile] } { - lappend options "libs=${gluefile}" - lappend options "ldflags=${wrap_flags}" - } - - lappend options "additional_flags=[libio_include_flags]" - lappend options "compiler=$GCC_UNDER_TEST" - - set options [concat $libgomp_compile_options $options] - - if [info exists ALWAYS_CFLAGS] { - set options [concat "$ALWAYS_CFLAGS" $options] - } - - set options [dg-additional-files-options $options $source] - - set result [target_compile $source $dest $type $options] - - return $result -} - -proc libgomp_option_help { } { - send_user " --additional_options,OPTIONS\t\tUse OPTIONS to compile the testcase files. OPTIONS should be comma-separated.\n" -} - -proc libgomp_option_proc { option } { - if [regexp "^--additional_options," $option] { - global libgomp_compile_options - regsub "--additional_options," $option "" option - foreach x [split $option ","] { - lappend libgomp_compile_options "additional_flags=$x" - } - return 1 - } else { - return 0 - } -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/c++.exp b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/c++.exp deleted file mode 100644 index d42dc8ccd..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/c++.exp +++ /dev/null @@ -1,47 +0,0 @@ -# APPLE LOCAL file mainline -load_lib libgomp-dg.exp - -global shlib_ext - -set shlib_ext [get_shlib_extension] -set lang_link_flags "-lstdc++" -set lang_test_file_found 0 -set lang_library_path "../libstdc++-v3/src/.libs" - -# Initialize dg. -dg-init - -set blddir [lookfor_file [get_multilibs] libgomp] - -# Look for a static libstdc++ first. -if [file exists "${blddir}/${lang_library_path}/libstdc++.a"] { - set lang_test_file "${lang_library_path}/libstdc++.a" - set lang_test_file_found 1 -# We may have a shared only build, so look for a shared libstdc++. -} elseif [file exists "${blddir}/${lang_library_path}/libstdc++.${shlib_ext}"] { - set lang_test_file "${lang_library_path}/libstdc++.${shlib_ext}" - set lang_test_file_found 1 -# APPLE LOCAL begin mainline candidate -# We may be testing an installed compiler, if $blddir is blank look for 'g++' -} elseif { $blddir == "" } { - verbose -log "Testing an installed compiler - you'd better have installed g++" - set GCC_UNDER_TEST [transform "g++"] - set lang_test_file_found 1 -# APPLE LOCAL end mainline candidate -} else { - puts "No libstdc++ library found, will not execute c++ tests" -} - -if { $lang_test_file_found } { - # Gather a list of all tests. - set tests [lsort [glob -nocomplain $srcdir/$subdir/*.C]] - - set ld_library_path "$always_ld_library_path:${blddir}/${lang_library_path}" - set_ld_library_path_env_vars - - # Main loop. - gfortran-dg-runtest $tests "" -} - -# All done. -dg-finish diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/copyin-1.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/copyin-1.C deleted file mode 100644 index bc12be2d2..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/copyin-1.C +++ /dev/null @@ -1,34 +0,0 @@ -// { dg-do run } -// { dg-require-effective-target tls_runtime } - -#include <omp.h> - -extern "C" void abort (void); - -int thr = 32; -#pragma omp threadprivate (thr) - -int -main (void) -{ - int l = 0; - - omp_set_dynamic (0); - omp_set_num_threads (6); - -#pragma omp parallel copyin (thr) reduction (||:l) - { - l = thr != 32; - thr = omp_get_thread_num () + 11; - } - - if (l || thr != 11) - abort (); - -#pragma omp parallel reduction (||:l) - l = thr != omp_get_thread_num () + 11; - - if (l) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/copyin-2.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/copyin-2.C deleted file mode 100644 index 024f59980..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/copyin-2.C +++ /dev/null @@ -1,34 +0,0 @@ -// { dg-do run } -// { dg-require-effective-target tls_runtime } - -#include <omp.h> - -extern "C" void abort (void); - -struct S { int t; char buf[64]; } thr = { 32, "" }; -#pragma omp threadprivate (thr) - -int -main (void) -{ - int l = 0; - - omp_set_dynamic (0); - omp_set_num_threads (6); - -#pragma omp parallel copyin (thr) reduction (||:l) - { - l = thr.t != 32; - thr.t = omp_get_thread_num () + 11; - } - - if (l || thr.t != 11) - abort (); - -#pragma omp parallel reduction (||:l) - l = thr.t != omp_get_thread_num () + 11; - - if (l) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/ctor-1.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/ctor-1.C deleted file mode 100644 index 2ad3b3a6e..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/ctor-1.C +++ /dev/null @@ -1,65 +0,0 @@ -// { dg-do run } - -#include <omp.h> -#include <assert.h> - -struct B -{ - static int icount; - static int dcount; - static int xcount; - - B(); - B(const B &); - ~B(); - B& operator=(const B &); - void doit(); -}; - -int B::icount; -int B::dcount; -int B::xcount; - -B::B() -{ - #pragma omp atomic - icount++; -} - -B::~B() -{ - #pragma omp atomic - dcount++; -} - -void B::doit() -{ - #pragma omp atomic - xcount++; -} - -static int nthreads; - -void foo() -{ - B b; - #pragma omp parallel private(b) - { - #pragma omp master - nthreads = omp_get_num_threads (); - b.doit(); - } -} - -int main() -{ - omp_set_dynamic (0); - omp_set_num_threads (4); - foo(); - - assert (B::xcount == nthreads); - assert (B::icount == nthreads+1); - assert (B::dcount == nthreads+1); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/ctor-2.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/ctor-2.C deleted file mode 100644 index 6611c592f..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/ctor-2.C +++ /dev/null @@ -1,76 +0,0 @@ -// { dg-do run } - -#include <omp.h> -#include <assert.h> - -struct B -{ - static int ccount; - static int dcount; - static int xcount; - static B *expected; - - B(); - B(int); - B(const B &); - ~B(); - B& operator=(const B &); - void doit(); -}; - -int B::ccount; -int B::dcount; -int B::xcount; -B * B::expected; - -B::B(int) -{ - expected = this; -} - -B::B(const B &b) -{ - #pragma omp atomic - ccount++; - assert (&b == expected); -} - -B::~B() -{ - #pragma omp atomic - dcount++; -} - -void B::doit() -{ - #pragma omp atomic - xcount++; - assert (this != expected); -} - -static int nthreads; - -void foo() -{ - B b(0); - - #pragma omp parallel firstprivate(b) - { - #pragma omp master - nthreads = omp_get_num_threads (); - b.doit(); - } -} - -int main() -{ - omp_set_dynamic (0); - omp_set_num_threads (4); - foo(); - - assert (B::xcount == nthreads); - assert (B::ccount == nthreads); - assert (B::dcount == nthreads+1); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/ctor-3.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/ctor-3.C deleted file mode 100644 index e65e4ea52..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/ctor-3.C +++ /dev/null @@ -1,89 +0,0 @@ -// { dg-do run } - -#include <omp.h> -#include <assert.h> - -struct B -{ - static int icount; - static int dcount; - static int ccount; - static B *e_inner; - static B *e_outer; - - B(); - B(int); - B(const B &); - ~B(); - B& operator=(const B &); - void doit(); -}; - -int B::icount; -int B::dcount; -int B::ccount; -B * B::e_inner; -B * B::e_outer; - -B::B() -{ - #pragma omp atomic - icount++; -} - -B::B(int) -{ - e_outer = this; -} - -B::~B() -{ - #pragma omp atomic - dcount++; -} - -B& B::operator= (const B &b) -{ - assert (&b == e_inner); - assert (this == e_outer); - #pragma omp atomic - ccount++; - return *this; -} - -void B::doit() -{ - #pragma omp critical - { - assert (e_inner == 0); - e_inner = this; - } -} - -static int nthreads; - -void foo() -{ - B b(0); - - #pragma omp parallel sections lastprivate(b) - { - #pragma omp section - nthreads = omp_get_num_threads (); - #pragma omp section - b.doit (); - } -} - -int main() -{ - omp_set_dynamic (0); - omp_set_num_threads (4); - foo(); - - assert (B::ccount == 1); - assert (B::icount == nthreads); - assert (B::dcount == nthreads+1); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/ctor-4.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/ctor-4.C deleted file mode 100644 index e4f8f82db..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/ctor-4.C +++ /dev/null @@ -1,90 +0,0 @@ -// { dg-do run } - -#include <omp.h> -#include <assert.h> - -struct B -{ - static int ccount; - static int dcount; - static int ecount; - static B *e_inner; - static B *e_outer; - - B(); - B(int); - B(const B &); - ~B(); - B& operator=(const B &); - void doit(); -}; - -int B::ccount; -int B::dcount; -int B::ecount; -B * B::e_inner; -B * B::e_outer; - -B::B(int) -{ - e_outer = this; -} - -B::B(const B &b) -{ - assert (&b == e_outer); - #pragma omp atomic - ccount++; -} - -B::~B() -{ - #pragma omp atomic - dcount++; -} - -B& B::operator= (const B &b) -{ - assert (&b == e_inner); - assert (this == e_outer); - #pragma omp atomic - ecount++; - return *this; -} - -void B::doit() -{ - #pragma omp critical - { - assert (e_inner == 0); - e_inner = this; - } -} - -static int nthreads; - -void foo() -{ - B b(0); - - #pragma omp parallel sections firstprivate(b) lastprivate(b) - { - #pragma omp section - nthreads = omp_get_num_threads (); - #pragma omp section - b.doit (); - } -} - -int main() -{ - omp_set_dynamic (0); - omp_set_num_threads (4); - foo(); - - assert (B::ecount == 1); - assert (B::ccount == nthreads); - assert (B::dcount == nthreads+1); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/ctor-5.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/ctor-5.C deleted file mode 100644 index d99a1d462..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/ctor-5.C +++ /dev/null @@ -1,52 +0,0 @@ -// { dg-do run } -// { dg-require-effective-target tls_runtime } - -#include <omp.h> -#include <assert.h> - -struct B -{ - static int count; - static B *expected; - - B& operator=(const B &); -}; - -int B::count; -B * B::expected; - -static B thr; -#pragma omp threadprivate(thr) - -B& B::operator= (const B &b) -{ - assert (&b == expected); - assert (this != expected); - #pragma omp atomic - count++; - return *this; -} - -static int nthreads; - -void foo() -{ - B::expected = &thr; - - #pragma omp parallel copyin(thr) - { - #pragma omp master - nthreads = omp_get_num_threads (); - } -} - -int main() -{ - omp_set_dynamic (0); - omp_set_num_threads (4); - foo(); - - assert (B::count == nthreads-1); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/ctor-6.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/ctor-6.C deleted file mode 100644 index eab74e089..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/ctor-6.C +++ /dev/null @@ -1,50 +0,0 @@ -// { dg-do run } - -#include <omp.h> -#include <assert.h> - -struct B -{ - static int count; - static B *expected; - - B& operator=(const B &); -}; - -int B::count; -B * B::expected; - -B& B::operator= (const B &b) -{ - assert (&b == expected); - assert (this != expected); - #pragma omp atomic - count++; - return *this; -} - -static int nthreads; - -void foo() -{ - #pragma omp parallel - { - B b; - #pragma omp single copyprivate(b) - { - nthreads = omp_get_num_threads (); - B::expected = &b; - } - } -} - -int main() -{ - omp_set_dynamic (0); - omp_set_num_threads (4); - foo(); - - assert (B::count == nthreads-1); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/ctor-7.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/ctor-7.C deleted file mode 100644 index 3d669a707..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/ctor-7.C +++ /dev/null @@ -1,67 +0,0 @@ -// { dg-do run } - -#include <omp.h> -#include <assert.h> - -#define N 10 - -struct B -{ - static int icount; - static int dcount; - static int xcount; - - B(); - B(const B &); - ~B(); - B& operator=(const B &); - void doit(); -}; - -int B::icount; -int B::dcount; -int B::xcount; - -B::B() -{ - #pragma omp atomic - icount++; -} - -B::~B() -{ - #pragma omp atomic - dcount++; -} - -void B::doit() -{ - #pragma omp atomic - xcount++; -} - -static int nthreads; - -void foo() -{ - B b[N]; - #pragma omp parallel private(b) - { - #pragma omp master - nthreads = omp_get_num_threads (); - b[0].doit(); - } -} - -int main() -{ - omp_set_dynamic (0); - omp_set_num_threads (4); - foo(); - - assert (B::xcount == nthreads); - assert (B::icount == (nthreads+1)*N); - assert (B::dcount == (nthreads+1)*N); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/ctor-8.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/ctor-8.C deleted file mode 100644 index 5c0d81b73..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/ctor-8.C +++ /dev/null @@ -1,77 +0,0 @@ -// { dg-do run } -// { dg-require-effective-target tls_runtime } - -#include <omp.h> -#include <assert.h> - -#define N 10 -#define THR 4 - -struct B -{ - B(); - B(const B &); - ~B(); - B& operator=(const B &); - void doit(); -}; - -static B *base; -static B *threadbase; -static unsigned cmask[THR]; -static unsigned dmask[THR]; - -#pragma omp threadprivate(threadbase) - -B::B() -{ - assert (base == 0); -} - -B::B(const B &b) -{ - unsigned index = &b - base; - assert (index < N); - cmask[omp_get_thread_num()] |= 1u << index; -} - -B::~B() -{ - if (threadbase) - { - unsigned index = this - threadbase; - assert (index < N); - dmask[omp_get_thread_num()] |= 1u << index; - } -} - -void foo() -{ - B b[N]; - - base = b; - - #pragma omp parallel firstprivate(b) - { - assert (omp_get_num_threads () == THR); - threadbase = b; - } - - threadbase = 0; -} - -int main() -{ - omp_set_dynamic (0); - omp_set_num_threads (THR); - foo(); - - for (int i = 0; i < THR; ++i) - { - unsigned xmask = (1u << N) - 1; - assert (cmask[i] == xmask); - assert (dmask[i] == xmask); - } - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/ctor-9.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/ctor-9.C deleted file mode 100644 index 215a901f8..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/ctor-9.C +++ /dev/null @@ -1,60 +0,0 @@ -// { dg-do run } -// { dg-require-effective-target tls_runtime } - -#include <omp.h> -#include <assert.h> - -#define N 10 -#define THR 4 - -struct B -{ - B& operator=(const B &); -}; - -static B *base; -static B *threadbase; -static int singlethread; -#pragma omp threadprivate(threadbase) - -static unsigned cmask[THR]; - -B& B::operator= (const B &b) -{ - unsigned sindex = &b - base; - unsigned tindex = this - threadbase; - assert(sindex < N); - assert(sindex == tindex); - cmask[omp_get_thread_num ()] |= 1u << tindex; - return *this; -} - -void foo() -{ - #pragma omp parallel - { - B b[N]; - threadbase = b; - #pragma omp single copyprivate(b) - { - assert(omp_get_num_threads () == THR); - singlethread = omp_get_thread_num (); - base = b; - } - } -} - -int main() -{ - omp_set_dynamic (0); - omp_set_num_threads (THR); - foo(); - - for (int i = 0; i < THR; ++i) - if (i == singlethread) - assert(cmask[singlethread] == 0); - else - assert(cmask[i] == (1u << N) - 1); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/loop-1.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/loop-1.C deleted file mode 100644 index 0e83c9583..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/loop-1.C +++ /dev/null @@ -1,96 +0,0 @@ -#include <stdlib.h> -#include <stdio.h> -#include <string.h> -#include <omp.h> - -#define MAX 1000 - -void main1() -{ - int i, N1, N2, step; - int a[MAX], b[MAX]; - - N1 = rand () % 13; - N2 = rand () % (MAX - 51) + 50; - step = rand () % 7 + 1; - - printf ("N1 = %d\nN2 = %d\nstep = %d\n", N1, N2, step); - - for (i = N1; i <= N2; i += step) - a[i] = 42+ i; - - /* COUNTING UP (<). Fill in array 'b' in parallel. */ - memset (b, 0, sizeof b); -#pragma omp parallel shared(a,b,N1,N2,step) private(i) - { -#pragma omp for - for (i = N1; i < N2; i += step) - b[i] = a[i]; - } - - /* COUNTING UP (<). Check that all the cells were filled in properly. */ - for (i = N1; i < N2; i += step) - if (a[i] != b[i]) - abort (); - - printf ("for (i = %d; i < %d; i += %d) [OK]\n", N1, N2, step); - - /* COUNTING UP (<=). Fill in array 'b' in parallel. */ - memset (b, 0, sizeof b); -#pragma omp parallel shared(a,b,N1,N2,step) private(i) - { -#pragma omp for - for (i = N1; i <= N2; i += step) - b[i] = a[i]; - } - - /* COUNTING UP (<=). Check that all the cells were filled in properly. */ - for (i = N1; i <= N2; i += step) - if (a[i] != b[i]) - abort (); - - printf ("for (i = %d; i <= %d; i += %d) [OK]\n", N1, N2, step); - - /* COUNTING DOWN (>). Fill in array 'b' in parallel. */ - memset (b, 0, sizeof b); -#pragma omp parallel shared(a,b,N1,N2,step) private(i) - { -#pragma omp for - for (i = N2; i > N1; i -= step) - b[i] = a[i]; - } - - /* COUNTING DOWN (>). Check that all the cells were filled in properly. */ - for (i = N2; i > N1; i -= step) - if (a[i] != b[i]) - abort (); - - printf ("for (i = %d; i > %d; i -= %d) [OK]\n", N2, N1, step); - - /* COUNTING DOWN (>=). Fill in array 'b' in parallel. */ - memset (b, 0, sizeof b); -#pragma omp parallel shared(a,b,N1,N2,step) private(i) - { -#pragma omp for - for (i = N2; i >= N1; i -= step) - b[i] = a[i]; - } - - /* COUNTING DOWN (>=). Check that all the cells were filled in properly. */ - for (i = N2; i >= N1; i -= step) - if (a[i] != b[i]) - abort (); - - printf ("for (i = %d; i >= %d; i -= %d) [OK]\n", N2, N1, step); -} - -int -main () -{ - int i; - - srand (0); - for (i = 0; i < 10; ++i) - main1(); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/loop-2.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/loop-2.C deleted file mode 100644 index ea3dc588a..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/loop-2.C +++ /dev/null @@ -1,32 +0,0 @@ -#include <omp.h> - -/* Orphaned work sharing. */ - -extern "C" void abort (void); - -#define N 10 - -void parloop (int *a) -{ - int i; - -#pragma omp for - for (i = 0; i < N; i++) - a[i] = i + 3; -} - -main() -{ - int i, a[N]; - -#pragma omp parallel shared(a) - { - parloop (a); - } - - for (i = 0; i < N; i++) - if (a[i] != i + 3) - abort (); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/loop-3.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/loop-3.C deleted file mode 100644 index fa50f099f..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/loop-3.C +++ /dev/null @@ -1,26 +0,0 @@ -extern "C" void abort (void); -int a; - -void -foo () -{ - int i; - a = 30; -#pragma omp barrier -#pragma omp for lastprivate (a) - for (i = 0; i < 1024; i++) - { - a = i; - } - if (a != 1023) - abort (); -} - -int -main (void) -{ -#pragma omp parallel num_threads (64) - foo (); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/loop-4.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/loop-4.C deleted file mode 100644 index 731f23450..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/loop-4.C +++ /dev/null @@ -1,20 +0,0 @@ -extern "C" void abort (void); - -main() -{ - int i, a; - - a = 30; - -#pragma omp parallel for firstprivate (a) lastprivate (a) \ - num_threads (2) schedule(static) - for (i = 0; i < 10; i++) - a = a + i; - - /* The thread that owns the last iteration will have computed - 30 + 5 + 6 + 7 + 8 + 9 = 65. */ - if (a != 65) - abort (); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/loop-5.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/loop-5.C deleted file mode 100644 index c427efa85..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/loop-5.C +++ /dev/null @@ -1,19 +0,0 @@ -extern "C" void abort (); - -int check; -int f1() { check |= 1; return 1; } -int f2() { check |= 2; return 11; } -int f3() { check |= 4; return 2; } - -int a[12]; - -int main() -{ - #pragma omp for - for (int i = f1(); i <= f2(); i += f3()) - a[i] = 1; - - for (int i = 0; i < 12; ++i) - if (a[i] != (i & 1)) - abort (); -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/loop-6.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/loop-6.C deleted file mode 100644 index fa26c6892..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/loop-6.C +++ /dev/null @@ -1,24 +0,0 @@ -// { dg-do run } - -extern "C" void abort (void); - -volatile int count; -static int test(void) -{ - return ++count > 0; -} - -int main() -{ - int i; - #pragma omp for - for (i = 0; i < 10; ++i) - { - if (test()) - continue; - abort (); - } - if (i != count) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/loop-7.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/loop-7.C deleted file mode 100644 index 4eccb7fca..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/loop-7.C +++ /dev/null @@ -1,22 +0,0 @@ -// PR c++/24502 -// { dg-do run } - -extern "C" void abort (); - -template <typename T> T -foo (T r) -{ - T i; -#pragma omp for - for (i = 0; i < 10; i++) - r += i; - return r; -} - -int -main () -{ - if (foo (0) != 10 * 9 / 2 || foo (2L) != 10L * 9 / 2 + 2) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/master-1.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/master-1.C deleted file mode 100644 index 734b4e2cd..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/master-1.C +++ /dev/null @@ -1,24 +0,0 @@ -// PR c++/24734 -// { dg-do run } - -extern "C" void abort (); -int i; - -template<int> void -foo () -{ - #pragma omp parallel - { - #pragma omp master - i++; - } -} - -int -main () -{ - foo<0> (); - if (i != 1) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/nested-1.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/nested-1.C deleted file mode 100644 index 8d0e397bd..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/nested-1.C +++ /dev/null @@ -1,28 +0,0 @@ -// { dg-do run } - -extern "C" void abort(void); -#define N 1000 - -int foo() -{ - int i = 0, j; - - #pragma omp parallel for num_threads(2) shared (i) - for (j = 0; j < N; ++j) - { - #pragma omp parallel num_threads(1) shared (i) - { - #pragma omp atomic - i++; - } - } - - return i; -} - -int main() -{ - if (foo() != N) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/parallel-1.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/parallel-1.C deleted file mode 100644 index 3c9314713..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/parallel-1.C +++ /dev/null @@ -1,40 +0,0 @@ -#include <omp.h> - -extern "C" void abort (void); - -int -foo (void) -{ - return 10; -} - -main () -{ - int A = 0; - - #pragma omp parallel if (foo () > 10) shared (A) - { - A = omp_get_num_threads (); - } - - if (A != 1) - abort (); - - #pragma omp parallel if (foo () == 10) num_threads (3) shared (A) - { - A = omp_get_num_threads (); - } - - if (A != 3) - abort (); - - #pragma omp parallel if (foo () == 10) num_threads (foo ()) shared (A) - { - A = omp_get_num_threads (); - } - - if (A != 10) - abort (); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/pr24455-1.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/pr24455-1.C deleted file mode 100644 index e7f38f8ab..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/pr24455-1.C +++ /dev/null @@ -1,6 +0,0 @@ -// { dg-do compile } -// { dg-require-effective-target tls } -extern int i; -#pragma omp threadprivate (i) - -int i; diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/pr24455.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/pr24455.C deleted file mode 100644 index ad43b47b2..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/pr24455.C +++ /dev/null @@ -1,23 +0,0 @@ -// { dg-do run } -// { dg-additional-sources pr24455-1.C } -// { dg-require-effective-target tls_runtime } - -extern "C" void abort (void); - -extern int i; -#pragma omp threadprivate(i) - -int main() -{ - i = 0; - -#pragma omp parallel default(none) num_threads(10) copyin(i) - { - i++; -#pragma omp barrier - if (i != 1) - abort (); - } - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/pr26691.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/pr26691.C deleted file mode 100644 index 776b31e24..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/pr26691.C +++ /dev/null @@ -1,20 +0,0 @@ -// PR c++/26691 - -struct A -{ - int n; - A (int i = 3) : n (i) {} -}; - -int -main () -{ - A a; - int err = 0; -#pragma omp parallel private (a) reduction (+:err) - if (a.n != 3) - err++; - - return err; - } - diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/pr26943.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/pr26943.C deleted file mode 100644 index 07b7b5dbf..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/pr26943.C +++ /dev/null @@ -1,62 +0,0 @@ -// PR c++/26943 -// { dg-do run } - -#include <assert.h> -#include <unistd.h> - -struct S -{ - public: - int x; - S () : x(-1) { } - S (const S &); - S& operator= (const S &); - void test (); -}; - -static volatile int hold; - -S::S (const S &s) -{ - #pragma omp master - sleep (1); - - assert (s.x == -1); - x = 0; -} - -S& -S::operator= (const S& s) -{ - assert (s.x == 1); - x = 2; - return *this; -} - -void -S::test () -{ - assert (x == 0); - x = 1; -} - -static S x; - -void -foo () -{ - #pragma omp sections firstprivate(x) lastprivate(x) - { - x.test(); - } -} - -int -main () -{ - #pragma omp parallel num_threads(2) - foo(); - - assert (x.x == 2); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/pr27337.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/pr27337.C deleted file mode 100644 index 6db2465ec..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/pr27337.C +++ /dev/null @@ -1,87 +0,0 @@ -// PR middle-end/27337 -// { dg-do run } - -#include <omp.h> - -extern "C" void abort (void); - -struct S -{ - S (); - ~S (); - S (const S &); - int i; -}; - -int n[3]; - -S::S () : i(18) -{ - if (omp_get_thread_num () != 0) -#pragma omp atomic - n[0]++; -} - -S::~S () -{ - if (omp_get_thread_num () != 0) -#pragma omp atomic - n[1]++; -} - -S::S (const S &x) -{ - if (x.i != 18) - abort (); - i = 118; - if (omp_get_thread_num () != 0) -#pragma omp atomic - n[2]++; -} - -S -foo () -{ - int i; - S ret; - -#pragma omp parallel for firstprivate (ret) lastprivate (ret) \ - schedule (static, 1) num_threads (4) - for (i = 0; i < 4; i++) - ret.i += omp_get_thread_num (); - - return ret; -} - -S -bar () -{ - int i; - S ret; - -#pragma omp parallel for num_threads (4) - for (i = 0; i < 4; i++) -#pragma omp atomic - ret.i += omp_get_thread_num () + 1; - - return ret; -} - -S x; - -int -main (void) -{ - omp_set_dynamic (false); - x = foo (); - if (n[0] != 0 || n[1] != 3 || n[2] != 3) - abort (); - if (x.i != 118 + 3) - abort (); - x = bar (); - if (n[0] != 0 || n[1] != 3 || n[2] != 3) - abort (); - if (x.i != 18 + 0 + 1 + 2 + 3 + 4) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/pr30703.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/pr30703.C deleted file mode 100644 index d48efd952..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/pr30703.C +++ /dev/null @@ -1,73 +0,0 @@ -// PR c++/30703 -// { dg-do run } - -#include <omp.h> - -extern "C" void abort (); - -int ctor, cctor, dtor; - -struct A -{ - A(); - A(const A &); - ~A(); - int i; -}; - -A::A() -{ -#pragma omp atomic - ctor++; -} - -A::A(const A &r) -{ - i = r.i; -#pragma omp atomic - cctor++; -} - -A::~A() -{ -#pragma omp atomic - dtor++; -} - -void -foo (A a, A b) -{ - int i, j = 0; -#pragma omp parallel for firstprivate (a) lastprivate (a) private (b) schedule (static, 1) num_threads (5) - for (i = 0; i < 5; i++) - { - b.i = 5; - if (a.i != 6) - #pragma omp atomic - j += 1; - a.i = b.i + i + 6; - } - - if (j || a.i != 15) - abort (); -} - -void -bar () -{ - A a, b; - a.i = 6; - b.i = 7; - foo (a, b); -} - -int -main () -{ - omp_set_dynamic (false); - if (ctor || cctor || dtor) - abort (); - bar (); - if (ctor + cctor != dtor) - abort (); -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/reduction-1.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/reduction-1.C deleted file mode 100644 index 665163af0..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/reduction-1.C +++ /dev/null @@ -1,36 +0,0 @@ -#include <omp.h> -#include <stdlib.h> - -int -main (void) -{ - int i = 0, j = 0, k = ~0; - double d = 1.0; -#pragma omp parallel num_threads(4) reduction(+:i) reduction(*:d) reduction(&:k) - { - if (i != 0 || d != 1.0 || k != ~0) -#pragma omp atomic - j |= 1; - - if (omp_get_num_threads () != 4) -#pragma omp atomic - j |= 2; - - i = omp_get_thread_num (); - d = i + 1; - k = ~(1 << (2 * i)); - } - - if (j & 1) - abort (); - if ((j & 2) == 0) - { - if (i != (0 + 1 + 2 + 3)) - abort (); - if (d != (1.0 * 2.0 * 3.0 * 4.0)) - abort (); - if (k != (~0 ^ 0x55)) - abort (); - } - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/reduction-2.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/reduction-2.C deleted file mode 100644 index 52b3faff7..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/reduction-2.C +++ /dev/null @@ -1,50 +0,0 @@ -#include <omp.h> -#include <stdlib.h> - -int -main (void) -{ - int i = 0, j = 0, k = ~0, l; - double d = 1.0; -#pragma omp parallel num_threads(4) - { -#pragma omp single - { - i = 16; - k ^= (1 << 16); - d += 32.0; - } - -#pragma omp for reduction(+:i) reduction(*:d) reduction(&:k) - for (l = 0; l < 4; l++) - { - if (omp_get_num_threads () == 4 && (i != 0 || d != 1.0 || k != ~0)) -#pragma omp atomic - j |= 1; - - if (l == omp_get_thread_num ()) - { - i = omp_get_thread_num (); - d = i + 1; - k = ~(1 << (2 * i)); - } - } - - if (omp_get_num_threads () == 4) - { - if (i != (16 + 0 + 1 + 2 + 3)) -#pragma omp atomic - j |= 2; - if (d != (33.0 * 1.0 * 2.0 * 3.0 * 4.0)) -#pragma omp atomic - j |= 4; - if (k != (~0 ^ 0x55 ^ (1 << 16))) -#pragma omp atomic - j |= 8; - } - } - - if (j) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/reduction-3.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/reduction-3.C deleted file mode 100644 index 4f8f2fc12..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/reduction-3.C +++ /dev/null @@ -1,51 +0,0 @@ -#include <omp.h> -#include <stdlib.h> - -int -main (void) -{ - int i = 0, j = 0, k = ~0, l; - double d = 1.0; -#pragma omp parallel num_threads(4) - { -#pragma omp single - { - i = 16; - k ^= (1 << 16); - d += 32.0; - } - -#pragma omp for reduction(+:i) reduction(*:d) reduction(&:k) nowait - for (l = 0; l < 4; l++) - { - if (omp_get_num_threads () == 4 && (i != 0 || d != 1.0 || k != ~0)) -#pragma omp atomic - j |= 1; - - if (l == omp_get_thread_num ()) - { - i = omp_get_thread_num (); - d = i + 1; - k = ~(1 << (2 * i)); - } - } - - if (omp_get_num_threads () == 4) - { -#pragma omp barrier - if (i != (16 + 0 + 1 + 2 + 3)) -#pragma omp atomic - j |= 2; - if (d != (33.0 * 1.0 * 2.0 * 3.0 * 4.0)) -#pragma omp atomic - j |= 4; - if (k != (~0 ^ 0x55 ^ (1 << 16))) -#pragma omp atomic - j |= 8; - } - } - - if (j) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/sections-1.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/sections-1.C deleted file mode 100644 index 32c93dbde..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/sections-1.C +++ /dev/null @@ -1,64 +0,0 @@ -/****************************************************************************** -* FILE: omp_workshare2.c -* DESCRIPTION: -* OpenMP Example - Sections Work-sharing - C/C++ Version -* In this example, the OpenMP SECTION directive is used to assign -* different array operations to threads that execute a SECTION. Each -* thread receives its own copy of the result array to work with. -* AUTHOR: Blaise Barney 5/99 -* LAST REVISED: 04/06/05 -******************************************************************************/ -#include <omp.h> -#include <stdio.h> -#include <stdlib.h> -#define N 50 - -int main (int argc, char *argv[]) { - -int i, nthreads, tid; -float a[N], b[N], c[N]; - -/* Some initializations */ -for (i=0; i<N; i++) - a[i] = b[i] = i * 1.0; - -#pragma omp parallel shared(a,b,nthreads) private(c,i,tid) - { - tid = omp_get_thread_num(); - if (tid == 0) - { - nthreads = omp_get_num_threads(); - printf("Number of threads = %d\n", nthreads); - } - printf("Thread %d starting...\n",tid); - - #pragma omp sections nowait - { - #pragma omp section - { - printf("Thread %d doing section 1\n",tid); - for (i=0; i<N; i++) - { - c[i] = a[i] + b[i]; - printf("Thread %d: c[%d]= %f\n",tid,i,c[i]); - } - } - - #pragma omp section - { - printf("Thread %d doing section 2\n",tid); - for (i=0; i<N; i++) - { - c[i] = a[i] * b[i]; - printf("Thread %d: c[%d]= %f\n",tid,i,c[i]); - } - } - - } /* end of sections */ - - printf("Thread %d done.\n",tid); - - } /* end of parallel section */ - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/shared-1.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/shared-1.C deleted file mode 100644 index 334a553ce..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/shared-1.C +++ /dev/null @@ -1,60 +0,0 @@ -#include <omp.h> - -extern "C" void abort (void); - -struct Y -{ - int l[5][10]; -}; - -struct X -{ - struct Y y; - float b[10]; -}; - -void -parallel (int a, int b) -{ - int i, j; - struct X A[10][5]; - a = b = 3; - - for (i = 0; i < 10; i++) - for (j = 0; j < 5; j++) - A[i][j].y.l[3][3] = -10; - - #pragma omp parallel shared (a, b, A) num_threads (5) - { - int i, j; - - #pragma omp atomic - a += omp_get_num_threads (); - - #pragma omp atomic - b += omp_get_num_threads (); - - #pragma omp for private (j) - for (i = 0; i < 10; i++) - for (j = 0; j < 5; j++) - A[i][j].y.l[3][3] += 20; - - } - - for (i = 0; i < 10; i++) - for (j = 0; j < 5; j++) - if (A[i][j].y.l[3][3] != 10) - abort (); - - if (a != 28) - abort (); - - if (b != 28) - abort (); -} - -main() -{ - parallel (1, 2); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/shared-2.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/shared-2.C deleted file mode 100644 index 01855fbd4..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/shared-2.C +++ /dev/null @@ -1,47 +0,0 @@ -extern "C" void abort (void); - -void -parallel (int a, int b) -{ - int bad, LASTPRIV, LASTPRIV_SEC; - int i; - - a = b = 3; - - bad = 0; - - #pragma omp parallel firstprivate (a,b) shared (bad) num_threads (5) - { - if (a != 3 || b != 3) - bad = 1; - - #pragma omp for lastprivate (LASTPRIV) - for (i = 0; i < 10; i++) - LASTPRIV = i; - - #pragma omp sections lastprivate (LASTPRIV_SEC) - { - #pragma omp section - { LASTPRIV_SEC = 3; } - - #pragma omp section - { LASTPRIV_SEC = 42; } - } - - } - - if (LASTPRIV != 9) - abort (); - - if (LASTPRIV_SEC != 42) - abort (); - - if (bad) - abort (); -} - -int main() -{ - parallel (1, 2); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/single-1.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/single-1.C deleted file mode 100644 index e318a48ca..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/single-1.C +++ /dev/null @@ -1,19 +0,0 @@ -extern "C" void abort (void); - -main() -{ - int i = 0; - - #pragma omp parallel shared (i) - { - #pragma omp single - { - i++; - } - } - - if (i != 1) - abort (); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/single-2.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/single-2.C deleted file mode 100644 index c2dd22856..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/single-2.C +++ /dev/null @@ -1,36 +0,0 @@ -extern "C" void abort (void); - -struct X -{ - int a; - char b; - int c; -}; - -main() -{ - int i = 0; - struct X x; - int bad = 0; - - #pragma omp parallel private (i, x) shared (bad) - { - i = 5; - - #pragma omp single copyprivate (i, x) - { - i++; - x.a = 23; - x.b = 42; - x.c = 26; - } - - if (i != 6 || x.a != 23 || x.b != 42 || x.c != 26) - bad = 1; - } - - if (bad) - abort (); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/single-3.C b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/single-3.C deleted file mode 100644 index abc7f44b3..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c++/single-3.C +++ /dev/null @@ -1,21 +0,0 @@ -extern "C" void abort (void); - -void -single (int a, int b) -{ - #pragma omp single copyprivate(a) copyprivate(b) - { - a = b = 5; - } - - if (a != b) - abort (); -} - -int main() -{ - #pragma omp parallel - single (1, 2); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.15.1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.15.1.c deleted file mode 100644 index 276ac6caa..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.15.1.c +++ /dev/null @@ -1,44 +0,0 @@ -/* { dg-do run } */ - -#include <stdio.h> - -void -work (int n) -{ - printf ("[%d of %d], nested = %d, n = %d\n", omp_get_thread_num (), omp_get_num_threads(), omp_get_nested (), n); -} - -void -sub3 (int n) -{ - work (n); -#pragma omp barrier - work (n); -} - -void -sub2 (int k) -{ -#pragma omp parallel shared(k) - sub3 (k); -} - -void -sub1 (int n) -{ - int i; -#pragma omp parallel private(i) shared(n) - { -#pragma omp for - for (i = 0; i < n; i++) - sub2 (i); - } -} -int -main () -{ - sub1 (2); - sub2 (15); - sub3 (20); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.16.1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.16.1.c deleted file mode 100644 index 28a994a28..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.16.1.c +++ /dev/null @@ -1,47 +0,0 @@ -/* { dg-do run } */ - -#include <stdio.h> - -float -work1 (int i) -{ - return 1.0 * i; -} - -float -work2 (int i) -{ - return 2.0 * i; -} - -void -a16 (float *x, float *y, int *index, int n) -{ - int i; -#pragma omp parallel for shared(x, y, index, n) - for (i = 0; i < n; i++) - { -#pragma omp atomic - x[index[i]] += work1 (i); - y[i] += work2 (i); - } -} -int -main () -{ - float x[1000]; - float y[10000]; - int index[10000]; - int i; - for (i = 0; i < 10000; i++) - { - index[i] = i % 1000; - y[i] = 0.0; - } - for (i = 0; i < 1000; i++) - x[i] = 0.0; - a16 (x, y, index, 10000); - for (i = 0; i < 10; i++) - printf ("x[%d] = %f, y[%d] = %f\n", i, x[i], i, y[i]); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.18.1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.18.1.c deleted file mode 100644 index 388763e59..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.18.1.c +++ /dev/null @@ -1,67 +0,0 @@ -/* { dg-do run } */ - -#include <omp.h> -#include <stdio.h> - -extern void abort (void); - -#define NUMBER_OF_THREADS 4 - -int synch[NUMBER_OF_THREADS]; -int work[NUMBER_OF_THREADS]; -int result[NUMBER_OF_THREADS]; -int -fn1 (int i) -{ - return i * 2; -} - -int -fn2 (int a, int b) -{ - return a + b; -} - -int -main () -{ - int i, iam, neighbor; - omp_set_num_threads (NUMBER_OF_THREADS); -#pragma omp parallel private(iam,neighbor) shared(work,synch) - { - iam = omp_get_thread_num (); - synch[iam] = 0; -#pragma omp barrier - /*Do computation into my portion of work array */ - work[iam] = fn1 (iam); - /* Announce that I am done with my work. The first flush - * ensures that my work is made visible before synch. - * The second flush ensures that synch is made visible. - */ -#pragma omp flush(work,synch) - synch[iam] = 1; -#pragma omp flush(synch) - /* Wait for neighbor. The first flush ensures that synch is read - * from memory, rather than from the temporary view of memory. - * The second flush ensures that work is read from memory, and - * is done so after the while loop exits. - */ - neighbor = (iam > 0 ? iam : omp_get_num_threads ()) - 1; - while (synch[neighbor] == 0) - { -#pragma omp flush(synch) - } -#pragma omp flush(work,synch) - /* Read neighbor's values of work array */ - result[iam] = fn2 (work[neighbor], work[iam]); - } - /* output result here */ - for (i = 0; i < NUMBER_OF_THREADS; i++) - { - neighbor = (i > 0 ? i : NUMBER_OF_THREADS) - 1; - if (result[i] != i * 2 + neighbor * 2) - abort (); - } - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.19.1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.19.1.c deleted file mode 100644 index 65ffe624c..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.19.1.c +++ /dev/null @@ -1,55 +0,0 @@ -/* { dg-do run } */ - -int x, *p = &x; -extern void abort (void); -void -f1 (int *q) -{ - *q = 1; -#pragma omp flush - /* x, p, and *q are flushed */ - /* because they are shared and accessible */ - /* q is not flushed because it is not shared. */ -} - -void -f2 (int *q) -{ -#pragma omp barrier - *q = 2; -#pragma omp barrier - /* a barrier implies a flush */ - /* x, p, and *q are flushed */ - /* because they are shared and accessible */ - /* q is not flushed because it is not shared. */ -} - -int -g (int n) -{ - int i = 1, j, sum = 0; - *p = 1; -#pragma omp parallel reduction(+: sum) num_threads(2) - { - f1 (&j); - /* i, n and sum were not flushed */ - /* because they were not accessible in f1 */ - /* j was flushed because it was accessible */ - sum += j; - f2 (&j); - /* i, n, and sum were not flushed */ - /* because they were not accessible in f2 */ - /* j was flushed because it was accessible */ - sum += i + j + *p + n; - } - return sum; -} - -int -main () -{ - int result = g (10); - if (result != 30) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.2.1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.2.1.c deleted file mode 100644 index f6ae4c7c5..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.2.1.c +++ /dev/null @@ -1,45 +0,0 @@ -/* { dg-do run } */ - -#include <stdio.h> -#include <omp.h> -extern void abort (void); -int -main () -{ - int bad, x; - x = 2; - bad = 0; -#pragma omp parallel num_threads(2) shared(x, bad) - { - if (omp_get_thread_num () == 0) - { - volatile int i; - for (i = 0; i < 100000000; i++) - x = 5; - } - else - { - /* Print 1: the following read of x has a race */ - if (x != 2 && x != 5) - bad = 1; - } -#pragma omp barrier - if (omp_get_thread_num () == 0) - { - /* x must be 5 now. */ - if (x != 5) - bad = 1; - } - else - { - /* x must be 5 now. */ - if (x != 5) - bad = 1; - } - } - - if (bad) - abort (); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.21.1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.21.1.c deleted file mode 100644 index 0c1c39a12..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.21.1.c +++ /dev/null @@ -1,25 +0,0 @@ -/* { dg-do run } */ - -#include <stdio.h> -void -work (int k) -{ -#pragma omp ordered - printf (" %d\n", k); -} - -void -a21 (int lb, int ub, int stride) -{ - int i; -#pragma omp parallel for ordered schedule(dynamic) - for (i = lb; i < ub; i += stride) - work (i); -} - -int -main () -{ - a21 (0, 100, 5); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.26.1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.26.1.c deleted file mode 100644 index e146fa204..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.26.1.c +++ /dev/null @@ -1,17 +0,0 @@ -/* { dg-do run } */ - -#include <stdio.h> -int -main () -{ - int i, j; - i = 1; - j = 2; -#pragma omp parallel private(i) firstprivate(j) - { - i = 3; - j = j + 2; - } - printf ("%d %d\n", i, j); /* i and j are undefined */ - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.29.1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.29.1.c deleted file mode 100644 index 6f0f65fa0..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.29.1.c +++ /dev/null @@ -1,30 +0,0 @@ -/* { dg-do run } */ - -#include <assert.h> -int A[2][2] = { 1, 2, 3, 4 }; -void -f (int n, int B[n][n], int C[]) -{ - int D[2][2] = { 1, 2, 3, 4 }; - int E[n][n]; - assert (n >= 2); - E[1][1] = 4; -#pragma omp parallel firstprivate(B, C, D, E) - { - assert (sizeof (B) == sizeof (int (*)[n])); - assert (sizeof (C) == sizeof (int *)); - assert (sizeof (D) == 4 * sizeof (int)); - assert (sizeof (E) == n * n * sizeof (int)); - /* Private B and C have values of original B and C. */ - assert (&B[1][1] == &A[1][1]); - assert (&C[3] == &A[1][1]); - assert (D[1][1] == 4); - assert (E[1][1] == 4); - } -} -int -main () -{ - f (2, A, A[0]); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.3.1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.3.1.c deleted file mode 100644 index 9e7c24f75..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.3.1.c +++ /dev/null @@ -1,11 +0,0 @@ -/* { dg-do run } */ - -#include <stdio.h> -int -main () -{ -# ifdef _OPENMP - printf ("Compiled by an OpenMP-compliant implementation.\n"); -# endif - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.33.3.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.33.3.c deleted file mode 100644 index 0b7f0197c..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.33.3.c +++ /dev/null @@ -1,16 +0,0 @@ -/* { dg-do compile } */ - -#include <stdio.h> -#include <stdlib.h> -#include <omp.h> -omp_lock_t * -new_lock () -{ - omp_lock_t *lock_ptr; -#pragma omp single copyprivate(lock_ptr) - { - lock_ptr = (omp_lock_t *) malloc (sizeof (omp_lock_t)); - omp_init_lock (lock_ptr); - } - return lock_ptr; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.36.1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.36.1.c deleted file mode 100644 index b60534d11..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.36.1.c +++ /dev/null @@ -1,31 +0,0 @@ -/* { dg-do run } */ - -#include <omp.h> -#include <stdlib.h> -void -do_by_16 (float *x, int iam, int ipoints) -{ -} - -void -a36 (float *x, int npoints) -{ - int iam, ipoints; - omp_set_dynamic (0); - omp_set_num_threads (16); -#pragma omp parallel shared(x, npoints) private(iam, ipoints) - { - if (omp_get_num_threads () != 16) - abort (); - iam = omp_get_thread_num (); - ipoints = npoints / 16; - do_by_16 (x, iam, ipoints); - } -} - -int main() -{ - float a[10]; - a36 (a, 10); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.39.1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.39.1.c deleted file mode 100644 index a129e87fc..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.39.1.c +++ /dev/null @@ -1,38 +0,0 @@ -/* { dg-do run } */ - -#include <stdio.h> -#include <omp.h> -void -skip (int i) -{ -} - -void -work (int i) -{ -} -int -main () -{ - omp_lock_t lck; - int id; - omp_init_lock (&lck); -#pragma omp parallel shared(lck) private(id) - { - id = omp_get_thread_num (); - omp_set_lock (&lck); - /* only one thread at a time can execute this printf */ - printf ("My thread id is %d.\n", id); - omp_unset_lock (&lck); - while (!omp_test_lock (&lck)) - { - skip (id); /* we do not yet have the lock, - so we must do something else */ - } - work (id); /* we now have the lock - and can do the work */ - omp_unset_lock (&lck); - } - omp_destroy_lock (&lck); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.4.1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.4.1.c deleted file mode 100644 index c6be49090..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.4.1.c +++ /dev/null @@ -1,38 +0,0 @@ -/* { dg-do run } */ - -#include <omp.h> -extern void abort (void); -void -subdomain (float *x, int istart, int ipoints) -{ - int i; - for (i = 0; i < ipoints; i++) - x[istart + i] = 123.456; -} - -void -sub (float *x, int npoints) -{ - int iam, nt, ipoints, istart; -#pragma omp parallel default(shared) private(iam,nt,ipoints,istart) - { - iam = omp_get_thread_num (); - nt = omp_get_num_threads (); - ipoints = npoints / nt; /* size of partition */ - istart = iam * ipoints; /* starting array index */ - if (iam == nt - 1) /* last thread may do more */ - ipoints = npoints - istart; - subdomain (x, istart, ipoints); - } -} -int -main () -{ - int i; - float array[10000]; - sub (array, 10000); - for (i = 0; i < 10000; i++) - if (array[i] < 123.45 || array[i] > 123.46) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.40.1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.40.1.c deleted file mode 100644 index aa7b88d70..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.40.1.c +++ /dev/null @@ -1,48 +0,0 @@ -/* { dg-do compile } */ - -#include <omp.h> -typedef struct -{ - int a, b; - omp_nest_lock_t lck; -} pair; -int work1 (); -int work2 (); -int work3 (); -void -incr_a (pair * p, int a) -{ - /* Called only from incr_pair, no need to lock. */ - p->a += a; -} - -void -incr_b (pair * p, int b) -{ - /* Called both from incr_pair and elsewhere, */ - /* so need a nestable lock. */ - omp_set_nest_lock (&p->lck); - p->b += b; - omp_unset_nest_lock (&p->lck); -} - -void -incr_pair (pair * p, int a, int b) -{ - omp_set_nest_lock (&p->lck); - incr_a (p, a); - incr_b (p, b); - omp_unset_nest_lock (&p->lck); -} - -void -a40 (pair * p) -{ -#pragma omp parallel sections - { -#pragma omp section - incr_pair (p, work1 (), work2 ()); -#pragma omp section - incr_b (p, work3 ()); - } -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.5.1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.5.1.c deleted file mode 100644 index b909c4ddb..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/appendix-a/a.5.1.c +++ /dev/null @@ -1,13 +0,0 @@ -/* { dg-do run } */ - -#include <omp.h> -int -main () -{ - omp_set_dynamic (1); -#pragma omp parallel num_threads(10) - { - /* do work here */ - } - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/atomic-1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/atomic-1.c deleted file mode 100644 index 82642a4e4..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/atomic-1.c +++ /dev/null @@ -1,64 +0,0 @@ -/* { dg-do run } */ -/* { dg-options "-O2 -fopenmp" } */ -/* { dg-options "-O2 -fopenmp -march=pentium" { target i?86-*-* x86_64-*-* } } */ -/* { dg-options "-O2 -fopenmp" { target lp64 } } */ - -#ifdef __i386__ -#include "../../../gcc/testsuite/gcc.dg/i386-cpuid.h" -#define bit_CX8 (1 << 8) -#endif - -extern void abort (void); -double d; -struct -{ - int i; - double e; - int j; -} x; - -void -f1 (void) -{ - #pragma omp atomic - d += 7.5; - #pragma omp atomic - d *= 2.5; - #pragma omp atomic - d /= 0.25; -} - -void -f2 (void) -{ - #pragma omp atomic - x.e += 7.5; - #pragma omp atomic - x.e *= 2.5; - #pragma omp atomic - x.e /= 0.25; -} - -int -main (void) -{ -#ifdef __i386__ - unsigned long cpu_facilities; - - cpu_facilities = i386_cpuid (); - - if ((cpu_facilities & bit_CX8) == 0) - return 0; -#endif - - d = 1.0; - f1 (); - if (d != 85.0) - abort (); - - x.e = 1.0; - f2 (); - if (x.i != 0 || x.e != 85.0 || x.j != 0) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/atomic-10.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/atomic-10.c deleted file mode 100644 index 6565279b9..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/atomic-10.c +++ /dev/null @@ -1,140 +0,0 @@ -/* { dg-do run } */ -/* { dg-options "-O2 -fopenmp" } */ - -extern void abort (void); -int x1, x2, x3, x4, x5; -volatile int y6 = 9, y2, y3, y4, y5; -volatile unsigned char z1, z2, z3, z4, z5; -float a1, a2, a3, a4; - -void -f1 (void) -{ - #pragma omp atomic - x1++; - #pragma omp atomic - x2--; - #pragma omp atomic - ++x3; - #pragma omp atomic - --x4; - #pragma omp atomic - x5 += 1; - #pragma omp atomic - x1 -= y6; - #pragma omp atomic - x2 |= 1; - #pragma omp atomic - x3 &= 1; - #pragma omp atomic - x4 ^= 1; - #pragma omp atomic - x5 *= 3; - #pragma omp atomic - x1 /= 3; - #pragma omp atomic - x2 /= 3; - #pragma omp atomic - x3 <<= 3; - #pragma omp atomic - x4 >>= 3; -} - -void -f2 (void) -{ - #pragma omp atomic - y6++; - #pragma omp atomic - y2--; - #pragma omp atomic - ++y3; - #pragma omp atomic - --y4; - #pragma omp atomic - y5 += 1; - #pragma omp atomic - y6 -= x1; - #pragma omp atomic - y2 |= 1; - #pragma omp atomic - y3 &= 1; - #pragma omp atomic - y4 ^= 1; - #pragma omp atomic - y5 *= 3; - #pragma omp atomic - y6 /= 3; - #pragma omp atomic - y2 /= 3; - #pragma omp atomic - y3 <<= 3; - #pragma omp atomic - y4 >>= 3; -} - -void -f3 (void) -{ - #pragma omp atomic - z1++; - #pragma omp atomic - z2--; - #pragma omp atomic - ++z3; - #pragma omp atomic - --z4; - #pragma omp atomic - z5 += 1; - #pragma omp atomic - z1 |= 1; - #pragma omp atomic - z2 &= 1; - #pragma omp atomic - z3 ^= 1; - #pragma omp atomic - z4 *= 3; - #pragma omp atomic - z5 /= 3; - #pragma omp atomic - z1 /= 3; - #pragma omp atomic - z2 <<= 3; - #pragma omp atomic - z3 >>= 3; -} - -void -f4 (void) -{ - #pragma omp atomic - a1 += 8.0; - #pragma omp atomic - a2 *= 3.5; - #pragma omp atomic - a3 -= a1 + a2; - #pragma omp atomic - a4 /= 2.0; -} - -int -main (void) -{ - f1 (); - if (x1 != -2 || x2 != 0 || x3 != 8 || x4 != -1 || x5 != 3) - abort (); - f2 (); - if (y6 != 4 || y2 != 0 || y3 != 8 || y4 != -1 || y5 != 3) - abort (); - f3 (); - if (z1 != 0 || z2 != 8 || z3 != 0 || z4 != 253 || z5 != 0) - abort (); - a1 = 7; - a2 = 10; - a3 = 11; - a4 = 13; - f4 (); - if (a1 != 15.0 || a2 != 35.0 || a3 != -39.0 || a4 != 6.5) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/atomic-2.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/atomic-2.c deleted file mode 100644 index 6f4939256..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/atomic-2.c +++ /dev/null @@ -1,35 +0,0 @@ -/* { dg-do run } */ -/* { dg-options "-O2 -fopenmp" } */ -/* { dg-options "-O2 -fopenmp -march=nocona" { target i?86-*-* x86_64-*-* } } */ -/* { dg-options "-O2 -fopenmp" { target ilp32 } } */ - -double d = 1.5; -long double ld = 3; -extern void abort (void); - -void -test (void) -{ -#pragma omp atomic - d *= 1.25; -#pragma omp atomic - ld /= 0.75; - if (d != 1.875 || ld != 4.0L) - abort (); -} - -int -main (void) -{ -#ifdef __x86_64__ -# define bit_SSE3 (1 << 0) -# define bit_CX16 (1 << 13) - unsigned int ax, bx, cx, dx; - __asm__ ("cpuid" : "=a" (ax), "=b" (bx), "=c" (cx), "=d" (dx) - : "0" (1) : "cc"); - if ((cx & (bit_SSE3 | bit_CX16)) != (bit_SSE3 | bit_CX16)) - return 0; -#endif - test (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/barrier-1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/barrier-1.c deleted file mode 100644 index 1f8d1f0d3..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/barrier-1.c +++ /dev/null @@ -1,50 +0,0 @@ -/* Trivial test of barrier. */ - -#include <omp.h> -#include <sys/time.h> -#include <unistd.h> -#include <assert.h> -#include "libgomp_g.h" - - -struct timeval stamps[3][3]; - -static void function(void *dummy) -{ - int iam = omp_get_thread_num (); - - gettimeofday (&stamps[iam][0], NULL); - if (iam == 0) - usleep (10); - - GOMP_barrier (); - - if (iam == 0) - { - gettimeofday (&stamps[0][1], NULL); - usleep (10); - } - - GOMP_barrier (); - - gettimeofday (&stamps[iam][2], NULL); -} - -int main() -{ - omp_set_dynamic (0); - - GOMP_parallel_start (function, NULL, 3); - function (NULL); - GOMP_parallel_end (); - - assert (!timercmp (&stamps[0][0], &stamps[0][1], >)); - assert (!timercmp (&stamps[1][0], &stamps[0][1], >)); - assert (!timercmp (&stamps[2][0], &stamps[0][1], >)); - - assert (!timercmp (&stamps[0][1], &stamps[0][2], >)); - assert (!timercmp (&stamps[0][1], &stamps[1][2], >)); - assert (!timercmp (&stamps[0][1], &stamps[2][2], >)); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/c.exp b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/c.exp deleted file mode 100644 index d9a5fc330..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/c.exp +++ /dev/null @@ -1,28 +0,0 @@ -# APPLE LOCAL file mainline -if [info exists lang_library_path] then { - unset lang_library_path - unset lang_test_file - unset lang_link_flags -} - -load_lib libgomp-dg.exp - -# If a testcase doesn't have special options, use these. -if ![info exists DEFAULT_CFLAGS] then { - set DEFAULT_CFLAGS "-O2" -} - -# Initialize dg. -dg-init - -# Gather a list of all tests. -set tests [lsort [find $srcdir/$subdir *.c]] - -set ld_library_path $always_ld_library_path -set_ld_library_path_env_vars - -# Main loop. -dg-runtest $tests "" $DEFAULT_CFLAGS - -# All done. -dg-finish diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/copyin-1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/copyin-1.c deleted file mode 100644 index 49c546004..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/copyin-1.c +++ /dev/null @@ -1,34 +0,0 @@ -/* { dg-do run } */ -/* { dg-options "-O2" } */ -/* { dg-require-effective-target tls_runtime } */ - -#include <omp.h> -#include <stdlib.h> - -int thr = 32; -#pragma omp threadprivate (thr) - -int -main (void) -{ - int l = 0; - - omp_set_dynamic (0); - omp_set_num_threads (6); - -#pragma omp parallel copyin (thr) reduction (||:l) - { - l = thr != 32; - thr = omp_get_thread_num () + 11; - } - - if (l || thr != 11) - abort (); - -#pragma omp parallel reduction (||:l) - l = thr != omp_get_thread_num () + 11; - - if (l) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/copyin-2.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/copyin-2.c deleted file mode 100644 index ae2451ef1..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/copyin-2.c +++ /dev/null @@ -1,34 +0,0 @@ -/* { dg-do run } */ -/* { dg-options "-O2" } */ -/* { dg-require-effective-target tls_runtime } */ - -#include <omp.h> -#include <stdlib.h> - -struct { int t; char buf[64]; } thr = { 32, "" }; -#pragma omp threadprivate (thr) - -int -main (void) -{ - int l = 0; - - omp_set_dynamic (0); - omp_set_num_threads (6); - -#pragma omp parallel copyin (thr) reduction (||:l) - { - l = thr.t != 32; - thr.t = omp_get_thread_num () + 11; - } - - if (l || thr.t != 11) - abort (); - -#pragma omp parallel reduction (||:l) - l = thr.t != omp_get_thread_num () + 11; - - if (l) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/copyin-3.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/copyin-3.c deleted file mode 100644 index 86b0d691f..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/copyin-3.c +++ /dev/null @@ -1,42 +0,0 @@ -/* { dg-do run } */ -/* { dg-options "-O2" } */ -/* { dg-require-effective-target tls_runtime } */ - -#include <omp.h> -#include <stdlib.h> - -int thr; -#pragma omp threadprivate (thr) - -int -test (int l) -{ - return l || (thr != omp_get_thread_num () * 2); -} - -int -main (void) -{ - int l = 0; - - omp_set_dynamic (0); - omp_set_num_threads (6); - - thr = 8; - /* Broadcast the value to all threads. */ -#pragma omp parallel copyin (thr) - ; - -#pragma omp parallel reduction (||:l) - { - /* Now test if the broadcast succeeded. */ - l = thr != 8; - thr = omp_get_thread_num () * 2; -#pragma omp barrier - l = test (l); - } - - if (l) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/critical-1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/critical-1.c deleted file mode 100644 index 2b8503be7..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/critical-1.c +++ /dev/null @@ -1,39 +0,0 @@ -/* Trivial test of critical sections. */ - -/* { dg-require-effective-target sync_int_long } */ - -#include <omp.h> -#include <sys/time.h> -#include <unistd.h> -#include <assert.h> -#include "libgomp_g.h" - - -static volatile int test = -1; - -static void function(void *dummy) -{ - int iam = omp_get_thread_num (); - int old; - - GOMP_critical_start (); - - old = __sync_lock_test_and_set (&test, iam); - assert (old == -1); - - usleep (10); - test = -1; - - GOMP_critical_end (); -} - -int main() -{ - omp_set_dynamic (0); - - GOMP_parallel_start (function, NULL, 3); - function (NULL); - GOMP_parallel_end (); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/critical-2.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/critical-2.c deleted file mode 100644 index 530a891f6..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/critical-2.c +++ /dev/null @@ -1,35 +0,0 @@ -// { dg-do run } -// Test several constructs within a parallel. At one point in development, -// the critical directive clobbered the shared clause of the parallel. - -#include <omp.h> -#include <stdlib.h> - -#define N 2000 - -int main() -{ - int A[N]; - int nthreads; - int i; - -#pragma omp parallel shared (A, nthreads) - { - #pragma omp master - nthreads = omp_get_num_threads (); - - #pragma omp for - for (i = 0; i < N; i++) - A[i] = 0; - - #pragma omp critical - for (i = 0; i < N; i++) - A[i] += 1; - } - - for (i = 0; i < N; i++) - if (A[i] != nthreads) - abort (); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/lib-1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/lib-1.c deleted file mode 100644 index 4839cf936..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/lib-1.c +++ /dev/null @@ -1,99 +0,0 @@ -#include <stdlib.h> -#include <omp.h> - -int -main (void) -{ - double d, e; - int l; - omp_lock_t lck; - omp_nest_lock_t nlck; - - d = omp_get_wtime (); - - omp_init_lock (&lck); - omp_set_lock (&lck); - if (omp_test_lock (&lck)) - abort (); - omp_unset_lock (&lck); - if (! omp_test_lock (&lck)) - abort (); - if (omp_test_lock (&lck)) - abort (); - omp_unset_lock (&lck); - omp_destroy_lock (&lck); - - omp_init_nest_lock (&nlck); - if (omp_test_nest_lock (&nlck) != 1) - abort (); - omp_set_nest_lock (&nlck); - if (omp_test_nest_lock (&nlck) != 3) - abort (); - omp_unset_nest_lock (&nlck); - omp_unset_nest_lock (&nlck); - if (omp_test_nest_lock (&nlck) != 2) - abort (); - omp_unset_nest_lock (&nlck); - omp_unset_nest_lock (&nlck); - omp_destroy_nest_lock (&nlck); - - omp_set_dynamic (1); - if (! omp_get_dynamic ()) - abort (); - omp_set_dynamic (0); - if (omp_get_dynamic ()) - abort (); - - omp_set_nested (1); - if (! omp_get_nested ()) - abort (); - omp_set_nested (0); - if (omp_get_nested ()) - abort (); - - omp_set_num_threads (5); - if (omp_get_num_threads () != 1) - abort (); - if (omp_get_max_threads () != 5) - abort (); - if (omp_get_thread_num () != 0) - abort (); - omp_set_num_threads (3); - if (omp_get_num_threads () != 1) - abort (); - if (omp_get_max_threads () != 3) - abort (); - if (omp_get_thread_num () != 0) - abort (); - l = 0; -#pragma omp parallel reduction (|:l) - { - l = omp_get_num_threads () != 3; - l |= omp_get_thread_num () < 0; - l |= omp_get_thread_num () >= 3; -#pragma omp master - l |= omp_get_thread_num () != 0; - } - if (l) - abort (); - - if (omp_get_num_procs () <= 0) - abort (); - if (omp_in_parallel ()) - abort (); -#pragma omp parallel reduction (|:l) - l = ! omp_in_parallel (); -#pragma omp parallel reduction (|:l) if (1) - l = ! omp_in_parallel (); - - e = omp_get_wtime (); - if (d > e) - abort (); - d = omp_get_wtick (); - /* Negative precision is definitely wrong, - bigger than 1s clock resolution is also strange. */ - if (d <= 0 || d > 1) - abort (); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/loop-1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/loop-1.c deleted file mode 100644 index 11348dcfe..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/loop-1.c +++ /dev/null @@ -1,140 +0,0 @@ -/* Test that all loop iterations are touched. This doesn't verify - scheduling order, merely coverage. */ - -/* { dg-require-effective-target sync_int_long } */ - -#include <omp.h> -#include <string.h> -#include <assert.h> -#include "libgomp_g.h" - - -#define N 10000 -static int S, E, INCR, CHUNK, NTHR; -static int data[N]; - -static void clean_data (void) -{ - memset (data, -1, sizeof (data)); -} - -static void test_data (void) -{ - int i, j; - - for (i = 0; i < S; ++i) - assert (data[i] == -1); - - for (j = 0; i < E; ++i, j = (j + 1) % INCR) - if (j == 0) - assert (data[i] != -1); - else - assert (data[i] == -1); - - for (; i < N; ++i) - assert (data[i] == -1); -} - -static void set_data (long i, int val) -{ - int old; - assert (i >= 0 && i < N); - old = __sync_lock_test_and_set (data+i, val); - assert (old == -1); -} - - -#define TMPL_1(sched) \ -static void f_##sched##_1 (void *dummy) \ -{ \ - int iam = omp_get_thread_num (); \ - long s0, e0, i; \ - if (GOMP_loop_##sched##_start (S, E, INCR, CHUNK, &s0, &e0)) \ - do \ - { \ - for (i = s0; i < e0; i += INCR) \ - set_data (i, iam); \ - } \ - while (GOMP_loop_##sched##_next (&s0, &e0)); \ - GOMP_loop_end (); \ -} \ -static void t_##sched##_1 (void) \ -{ \ - clean_data (); \ - GOMP_parallel_start (f_##sched##_1, NULL, NTHR); \ - f_##sched##_1 (NULL); \ - GOMP_parallel_end (); \ - test_data (); \ -} - -TMPL_1(static) -TMPL_1(dynamic) -TMPL_1(guided) - -#define TMPL_2(sched) \ -static void f_##sched##_2 (void *dummy) \ -{ \ - int iam = omp_get_thread_num (); \ - long s0, e0, i; \ - while (GOMP_loop_##sched##_next (&s0, &e0)) \ - { \ - for (i = s0; i < e0; i += INCR) \ - set_data (i, iam); \ - } \ - GOMP_loop_end_nowait (); \ -} \ -static void t_##sched##_2 (void) \ -{ \ - clean_data (); \ - GOMP_parallel_loop_##sched##_start \ - (f_##sched##_2, NULL, NTHR, S, E, INCR, CHUNK); \ - f_##sched##_2 (NULL); \ - GOMP_parallel_end (); \ - test_data (); \ -} - -TMPL_2(static) -TMPL_2(dynamic) -TMPL_2(guided) - -static void test (void) -{ - t_static_1 (); - t_dynamic_1 (); - t_guided_1 (); - t_static_2 (); - t_dynamic_2 (); - t_guided_2 (); -} - -int main() -{ - omp_set_dynamic (0); - - NTHR = 4; - - S = 0, E = N, INCR = 1, CHUNK = 4; - test (); - - S = 0, E = N, INCR = 2, CHUNK = 4; - test (); - - S = 1, E = N-1, INCR = 1, CHUNK = 5; - test (); - - S = 1, E = N-1, INCR = 2, CHUNK = 5; - test (); - - S = 2, E = 4, INCR = 1, CHUNK = 1; - test (); - - S = 0, E = N, INCR = 1, CHUNK = 0; - t_static_1 (); - t_static_2 (); - - S = 1, E = N-1, INCR = 1, CHUNK = 0; - t_static_1 (); - t_static_2 (); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/loop-2.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/loop-2.c deleted file mode 100644 index 4bae023c7..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/loop-2.c +++ /dev/null @@ -1,114 +0,0 @@ -/* Validate static scheduling iteration dispatch. We only test with - even thread distributions here; there are multiple valid solutions - for uneven thread distributions. */ - -/* { dg-require-effective-target sync_int_long } */ - -#include <omp.h> -#include <string.h> -#include <assert.h> -#include "libgomp_g.h" - - -#define N 360 -static int data[N][2]; -static int INCR, NTHR, CHUNK; - -static void clean_data (void) -{ - memset (data, -1, sizeof (data)); -} - -static void test_data (void) -{ - int n, i, c, thr, iter, chunk; - - chunk = CHUNK; - if (chunk == 0) - chunk = N / INCR / NTHR; - - thr = iter = c = i = 0; - - for (n = 0; n < N; ++n) - { - if (i == 0) - { - assert (data[n][0] == thr); - assert (data[n][1] == iter); - } - else - { - assert (data[n][0] == -1); - assert (data[n][1] == -1); - } - - if (++i == INCR) - { - i = 0; - if (++c == chunk) - { - c = 0; - if (++thr == NTHR) - { - thr = 0; - ++iter; - } - } - } - } -} - -static void set_data (long i, int thr, int iter) -{ - int old; - assert (i >= 0 && i < N); - old = __sync_lock_test_and_set (&data[i][0], thr); - assert (old == -1); - old = __sync_lock_test_and_set (&data[i][1], iter); - assert (old == -1); -} - -static void f_static_1 (void *dummy) -{ - int iam = omp_get_thread_num (); - long s0, e0, i, count = 0; - if (GOMP_loop_static_start (0, N, INCR, CHUNK, &s0, &e0)) - do - { - for (i = s0; i < e0; i += INCR) - set_data (i, iam, count); - ++count; - } - while (GOMP_loop_static_next (&s0, &e0)); - GOMP_loop_end (); -} - -static void test (void) -{ - clean_data (); - GOMP_parallel_start (f_static_1, NULL, NTHR); - f_static_1 (NULL); - GOMP_parallel_end (); - test_data (); -} - -int main() -{ - omp_set_dynamic (0); - - NTHR = 5; - - INCR = 1, CHUNK = 0; /* chunk = 360 / 5 = 72 */ - test (); - - INCR = 4, CHUNK = 0; /* chunk = 360 / 4 / 5 = 18 */ - test (); - - INCR = 1, CHUNK = 4; /* 1 * 4 * 5 = 20 -> 360 / 20 = 18 iterations. */ - test (); - - INCR = 3, CHUNK = 4; /* 3 * 4 * 5 = 60 -> 360 / 60 = 6 iterations. */ - test (); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/loop-3.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/loop-3.c deleted file mode 100644 index ba3ecdaca..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/loop-3.c +++ /dev/null @@ -1,24 +0,0 @@ -/* { dg-do run } */ - -extern void abort (void); - -volatile int count; -static int test(void) -{ - return ++count > 0; -} - -int main() -{ - int i; - #pragma omp for - for (i = 0; i < 10; ++i) - { - if (test()) - continue; - abort (); - } - if (i != count) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/nested-1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/nested-1.c deleted file mode 100644 index d3cfb0100..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/nested-1.c +++ /dev/null @@ -1,30 +0,0 @@ -#include <omp.h> -#include <stdlib.h> - -int -main (void) -{ - int i = -1, j = -1; - - omp_set_nested (1); - omp_set_dynamic (0); -#pragma omp parallel num_threads (4) - { -#pragma omp single - { - i = omp_get_thread_num () + omp_get_num_threads () * 256; -#pragma omp parallel num_threads (2) - { -#pragma omp single - { - j = omp_get_thread_num () + omp_get_num_threads () * 256; - } - } - } - } - if (i < 4 * 256 || i >= 4 * 256 + 4) - abort (); - if (j < 2 * 256 || j >= 2 * 256 + 2) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/nested-2.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/nested-2.c deleted file mode 100644 index f52b074ff..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/nested-2.c +++ /dev/null @@ -1,30 +0,0 @@ -#include <omp.h> -#include <stdlib.h> - -int -main (void) -{ - int i = -1, j = -1; - - omp_set_nested (0); - omp_set_dynamic (0); -#pragma omp parallel num_threads (4) - { -#pragma omp single - { - i = omp_get_thread_num () + omp_get_num_threads () * 256; -#pragma omp parallel num_threads (2) - { -#pragma omp single - { - j = omp_get_thread_num () + omp_get_num_threads () * 256; - } - } - } - } - if (i < 4 * 256 || i >= 4 * 256 + 4) - abort (); - if (j != 256 + 0) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/nestedfn-1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/nestedfn-1.c deleted file mode 100644 index 26c0d237c..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/nestedfn-1.c +++ /dev/null @@ -1,49 +0,0 @@ -/* { dg-do run } */ - -#include <omp.h> -#include <stdlib.h> - -int -main (void) -{ - int a = 1, b = 2, c = 3; - void - foo (void) - { - int l = 0; -#pragma omp parallel shared (a) private (b) firstprivate (c) \ - num_threads (2) reduction (||:l) - { - if (a != 1 || c != 3) l = 1; -#pragma omp barrier - if (omp_get_thread_num () == 0) - { - a = 4; - b = 5; - c = 6; - } -#pragma omp barrier - if (omp_get_thread_num () == 1) - { - if (a != 4 || c != 3) l = 1; - a = 7; - b = 8; - c = 9; - } - else if (omp_get_num_threads () == 1) - a = 7; -#pragma omp barrier - if (omp_get_thread_num () == 0) - if (a != 7 || b != 5 || c != 6) l = 1; -#pragma omp barrier - if (omp_get_thread_num () == 1) - if (a != 7 || b != 8 || c != 9) l = 1; - } - if (l) - abort (); - } - foo (); - if (a != 7) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/nestedfn-2.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/nestedfn-2.c deleted file mode 100644 index fdbbe0f73..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/nestedfn-2.c +++ /dev/null @@ -1,20 +0,0 @@ -/* { dg-do run } */ - -extern void abort (void); - -int -main (void) -{ - int i; - void - foo (void) - { -#pragma omp master - i += 8; - } - i = 4; - foo (); - if (i != 12) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/nestedfn-3.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/nestedfn-3.c deleted file mode 100644 index 8f8847f97..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/nestedfn-3.c +++ /dev/null @@ -1,52 +0,0 @@ -/* { dg-do run } */ - -#include <omp.h> - -extern void abort (void); - -int -main (void) -{ - int i = 5, l = 0; - int foo (void) { return i == 6; } - int bar (void) { return i - 3; } - - omp_set_dynamic (0); - -#pragma omp parallel if (foo ()) num_threads (bar ()) reduction (|:l) - if (omp_get_num_threads () != 1) - l = 1; - - i++; - -#pragma omp parallel if (foo ()) num_threads (bar ()) reduction (|:l) - if (omp_get_num_threads () != 3) - l = 1; - - i++; - -#pragma omp master - if (bar () != 4) - abort (); - -#pragma omp single - { - if (foo ()) - abort (); - i--; - if (! foo ()) - abort (); - } - - if (l) - abort (); - - i = 8; -#pragma omp atomic - l += bar (); - - if (l != 5) - abort (); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/nestedfn-4.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/nestedfn-4.c deleted file mode 100644 index dbe1062bd..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/nestedfn-4.c +++ /dev/null @@ -1,65 +0,0 @@ -/* PR middle-end/25261 */ -/* { dg-do run } */ - -#include <omp.h> - -extern void abort (void); - -int -main (void) -{ - int i = 5, j, l = 0; - int foo (void) - { - return i == 6; - } - int bar (void) - { - return i - 3; - } - - omp_set_dynamic (0); - -#pragma omp parallel if (foo ()) num_threads (2) - if (omp_get_num_threads () != 1) -#pragma omp atomic - l++; - -#pragma omp parallel for schedule (static, bar ()) num_threads (2) \ - reduction (|:l) - for (j = 0; j < 4; j++) - if (omp_get_thread_num () != (j >= 2)) -#pragma omp atomic - l++; - - i++; - -#pragma omp parallel if (foo ()) num_threads (2) - if (omp_get_num_threads () != 2) -#pragma omp atomic - l++; - -#pragma omp parallel for schedule (static, bar ()) num_threads (2) \ - reduction (|:l) - for (j = 0; j < 6; j++) - if (omp_get_thread_num () != (j >= 3)) -#pragma omp atomic - l++; - -#pragma omp parallel num_threads (4) reduction (|:l) - if (!foo () || bar () != 3) -#pragma omp atomic - l++; - - i++; - -#pragma omp parallel num_threads (4) reduction (|:l) - if (foo () || bar () != 4) -#pragma omp atomic - l++; - - if (l) - abort (); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/nestedfn-5.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/nestedfn-5.c deleted file mode 100644 index 6072b1fe3..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/nestedfn-5.c +++ /dev/null @@ -1,38 +0,0 @@ -/* { dg-do run } */ -/* { dg-options "-O2" } */ - -extern void abort (void); - -void -foo (int *j) -{ - int i = 5; - int bar (void) { return i + 1; } -#pragma omp sections - { - #pragma omp section - { - if (bar () != 6) - #pragma omp atomic - ++*j; - } - #pragma omp section - { - if (bar () != 6) - #pragma omp atomic - ++*j; - } - } -} - -int -main (void) -{ - int j = 0; -#pragma omp parallel num_threads (2) - foo (&j); - if (j) - abort (); - return 0; -} - diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp-loop01.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp-loop01.c deleted file mode 100644 index 0e83c9583..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp-loop01.c +++ /dev/null @@ -1,96 +0,0 @@ -#include <stdlib.h> -#include <stdio.h> -#include <string.h> -#include <omp.h> - -#define MAX 1000 - -void main1() -{ - int i, N1, N2, step; - int a[MAX], b[MAX]; - - N1 = rand () % 13; - N2 = rand () % (MAX - 51) + 50; - step = rand () % 7 + 1; - - printf ("N1 = %d\nN2 = %d\nstep = %d\n", N1, N2, step); - - for (i = N1; i <= N2; i += step) - a[i] = 42+ i; - - /* COUNTING UP (<). Fill in array 'b' in parallel. */ - memset (b, 0, sizeof b); -#pragma omp parallel shared(a,b,N1,N2,step) private(i) - { -#pragma omp for - for (i = N1; i < N2; i += step) - b[i] = a[i]; - } - - /* COUNTING UP (<). Check that all the cells were filled in properly. */ - for (i = N1; i < N2; i += step) - if (a[i] != b[i]) - abort (); - - printf ("for (i = %d; i < %d; i += %d) [OK]\n", N1, N2, step); - - /* COUNTING UP (<=). Fill in array 'b' in parallel. */ - memset (b, 0, sizeof b); -#pragma omp parallel shared(a,b,N1,N2,step) private(i) - { -#pragma omp for - for (i = N1; i <= N2; i += step) - b[i] = a[i]; - } - - /* COUNTING UP (<=). Check that all the cells were filled in properly. */ - for (i = N1; i <= N2; i += step) - if (a[i] != b[i]) - abort (); - - printf ("for (i = %d; i <= %d; i += %d) [OK]\n", N1, N2, step); - - /* COUNTING DOWN (>). Fill in array 'b' in parallel. */ - memset (b, 0, sizeof b); -#pragma omp parallel shared(a,b,N1,N2,step) private(i) - { -#pragma omp for - for (i = N2; i > N1; i -= step) - b[i] = a[i]; - } - - /* COUNTING DOWN (>). Check that all the cells were filled in properly. */ - for (i = N2; i > N1; i -= step) - if (a[i] != b[i]) - abort (); - - printf ("for (i = %d; i > %d; i -= %d) [OK]\n", N2, N1, step); - - /* COUNTING DOWN (>=). Fill in array 'b' in parallel. */ - memset (b, 0, sizeof b); -#pragma omp parallel shared(a,b,N1,N2,step) private(i) - { -#pragma omp for - for (i = N2; i >= N1; i -= step) - b[i] = a[i]; - } - - /* COUNTING DOWN (>=). Check that all the cells were filled in properly. */ - for (i = N2; i >= N1; i -= step) - if (a[i] != b[i]) - abort (); - - printf ("for (i = %d; i >= %d; i -= %d) [OK]\n", N2, N1, step); -} - -int -main () -{ - int i; - - srand (0); - for (i = 0; i < 10; ++i) - main1(); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp-loop02.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp-loop02.c deleted file mode 100644 index 04aaea2e3..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp-loop02.c +++ /dev/null @@ -1,32 +0,0 @@ -#include <omp.h> - -/* Orphaned work sharing. */ - -extern void abort (void); - -#define N 10 - -void parloop (int *a) -{ - int i; - -#pragma omp for - for (i = 0; i < N; i++) - a[i] = i + 3; -} - -main() -{ - int i, a[N]; - -#pragma omp parallel shared(a) - { - parloop (a); - } - - for (i = 0; i < N; i++) - if (a[i] != i + 3) - abort (); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp-loop03.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp-loop03.c deleted file mode 100644 index 7bb9a1943..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp-loop03.c +++ /dev/null @@ -1,26 +0,0 @@ -extern void abort (void); -int a; - -void -foo () -{ - int i; - a = 30; -#pragma omp barrier -#pragma omp for lastprivate (a) - for (i = 0; i < 1024; i++) - { - a = i; - } - if (a != 1023) - abort (); -} - -int -main (void) -{ -#pragma omp parallel num_threads (64) - foo (); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp-nested-1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp-nested-1.c deleted file mode 100644 index 655ef26fa..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp-nested-1.c +++ /dev/null @@ -1,28 +0,0 @@ -// { dg-do run } - -extern void abort(void); -#define N 1000 - -int foo() -{ - int i = 0, j; - - #pragma omp parallel for num_threads(2) shared (i) - for (j = 0; j < N; ++j) - { - #pragma omp parallel num_threads(1) shared (i) - { - #pragma omp atomic - i++; - } - } - - return i; -} - -int main() -{ - if (foo() != N) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp-parallel-for.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp-parallel-for.c deleted file mode 100644 index c6631a0a7..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp-parallel-for.c +++ /dev/null @@ -1,20 +0,0 @@ -extern void abort (void); - -main() -{ - int i, a; - - a = 30; - -#pragma omp parallel for firstprivate (a) lastprivate (a) \ - num_threads (2) schedule(static) - for (i = 0; i < 10; i++) - a = a + i; - - /* The thread that owns the last iteration will have computed - 30 + 5 + 6 + 7 + 8 + 9 = 65. */ - if (a != 65) - abort (); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp-parallel-if.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp-parallel-if.c deleted file mode 100644 index 5e378359a..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp-parallel-if.c +++ /dev/null @@ -1,40 +0,0 @@ -#include <omp.h> - -extern void abort (void); - -int -foo (void) -{ - return 10; -} - -main () -{ - int A = 0; - - #pragma omp parallel if (foo () > 10) shared (A) - { - A = omp_get_num_threads (); - } - - if (A != 1) - abort (); - - #pragma omp parallel if (foo () == 10) num_threads (3) shared (A) - { - A = omp_get_num_threads (); - } - - if (A != 3) - abort (); - - #pragma omp parallel if (foo () == 10) num_threads (foo ()) shared (A) - { - A = omp_get_num_threads (); - } - - if (A != 10) - abort (); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp-single-1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp-single-1.c deleted file mode 100644 index a44ca54ac..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp-single-1.c +++ /dev/null @@ -1,19 +0,0 @@ -extern void abort (void); - -main() -{ - int i = 0; - - #pragma omp parallel shared (i) - { - #pragma omp single - { - i++; - } - } - - if (i != 1) - abort (); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp-single-2.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp-single-2.c deleted file mode 100644 index 687855973..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp-single-2.c +++ /dev/null @@ -1,38 +0,0 @@ -#include <omp.h> - -extern void abort (void); - -struct X -{ - int a; - char b; - int c; -}; - -main() -{ - int i = 0; - struct X x; - int bad = 0; - - #pragma omp parallel private (i, x) shared (bad) - { - i = 5; - - #pragma omp single copyprivate (i, x) - { - i++; - x.a = 23; - x.b = 42; - x.c = 26; - } - - if (i != 6 || x.a != 23 || x.b != 42 || x.c != 26) - bad = 1; - } - - if (bad) - abort (); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp-single-3.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp-single-3.c deleted file mode 100644 index 5a0653244..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp-single-3.c +++ /dev/null @@ -1,21 +0,0 @@ -extern void abort (void); - -void -single (int a, int b) -{ - #pragma omp single copyprivate(a) copyprivate(b) - { - a = b = 5; - } - - if (a != b) - abort (); -} - -int main() -{ - #pragma omp parallel - single (1, 2); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp_hello.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp_hello.c deleted file mode 100644 index 8d58cd43b..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp_hello.c +++ /dev/null @@ -1,39 +0,0 @@ -/****************************************************************************** -* FILE: omp_hello.c -* DESCRIPTION: -* OpenMP Example - Hello World - C/C++ Version -* In this simple example, the master thread forks a parallel region. -* All threads in the team obtain their unique thread number and print it. -* The master thread only prints the total number of threads. Two OpenMP -* library routines are used to obtain the number of threads and each -* thread's number. -* AUTHOR: Blaise Barney 5/99 -* LAST REVISED: 04/06/05 -******************************************************************************/ -#include <omp.h> -#include <stdio.h> -#include <stdlib.h> - -int main (int argc, char *argv[]) { - -int nthreads, tid; - -/* Fork a team of threads giving them their own copies of variables */ -#pragma omp parallel private(nthreads, tid) - { - - /* Obtain thread number */ - tid = omp_get_thread_num(); - printf("Hello World from thread = %d\n", tid); - - /* Only master thread does this */ - if (tid == 0) - { - nthreads = omp_get_num_threads(); - printf("Number of threads = %d\n", nthreads); - } - - } /* All threads join master thread and disband */ - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp_matvec.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp_matvec.c deleted file mode 100644 index 12b8c6896..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp_matvec.c +++ /dev/null @@ -1,72 +0,0 @@ -/****************************************************************************** -* OpenMP Example - Matrix-vector multiplication - C/C++ Version -* FILE: omp_matvec.c -* DESCRIPTION: -* This example multiplies all row i elements of matrix A with vector -* element b(i) and stores the summed products in vector c(i). A total is -* maintained for the entire matrix. Performed by using the OpenMP loop -* work-sharing construct. The update of the shared global total is -* serialized by using the OpenMP critical directive. -* SOURCE: Blaise Barney 5/99 -* LAST REVISED: -******************************************************************************/ - -#include <omp.h> -#include <stdio.h> -#define SIZE 10 - - -main () -{ - -float A[SIZE][SIZE], b[SIZE], c[SIZE], total; -int i, j, tid; - -/* Initializations */ -total = 0.0; -for (i=0; i < SIZE; i++) - { - for (j=0; j < SIZE; j++) - A[i][j] = (j+1) * 1.0; - b[i] = 1.0 * (i+1); - c[i] = 0.0; - } -printf("\nStarting values of matrix A and vector b:\n"); -for (i=0; i < SIZE; i++) - { - printf(" A[%d]= ",i); - for (j=0; j < SIZE; j++) - printf("%.1f ",A[i][j]); - printf(" b[%d]= %.1f\n",i,b[i]); - } -printf("\nResults by thread/row:\n"); - -/* Create a team of threads and scope variables */ -#pragma omp parallel shared(A,b,c,total) private(tid,i) - { - tid = omp_get_thread_num(); - -/* Loop work-sharing construct - distribute rows of matrix */ -#pragma omp for private(j) - for (i=0; i < SIZE; i++) - { - for (j=0; j < SIZE; j++) - c[i] += (A[i][j] * b[i]); - - /* Update and display of running total must be serialized */ - #pragma omp critical - { - total = total + c[i]; - printf(" thread %d did row %d\t c[%d]=%.2f\t",tid,i,i,c[i]); - printf("Running total= %.2f\n",total); - } - - } /* end of parallel i loop */ - - } /* end of parallel construct */ - -printf("\nMatrix-vector total - sum of all c[] = %.2f\n\n",total); - - return 0; -} - diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp_orphan.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp_orphan.c deleted file mode 100644 index cbf7abf37..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp_orphan.c +++ /dev/null @@ -1,47 +0,0 @@ -/****************************************************************************** -* FILE: omp_orphan.c -* DESCRIPTION: -* OpenMP Example - Parallel region with an orphaned directive - C/C++ Version -* This example demonstrates a dot product being performed by an orphaned -* loop reduction construct. Scoping of the reduction variable is critical. -* AUTHOR: Blaise Barney 5/99 -* LAST REVISED: 04/06/05 -******************************************************************************/ -#include <omp.h> -#include <stdio.h> -#include <stdlib.h> -#define VECLEN 100 - -float a[VECLEN], b[VECLEN], sum; - -float dotprod () -{ -int i,tid; - -tid = omp_get_thread_num(); -#pragma omp for reduction(+:sum) - for (i=0; i < VECLEN; i++) - { - sum = sum + (a[i]*b[i]); - printf(" tid= %d i=%d\n",tid,i); - } - -return(sum); -} - - -int main (int argc, char *argv[]) -{ -int i; - -for (i=0; i < VECLEN; i++) - a[i] = b[i] = 1.0 * i; -sum = 0.0; - -#pragma omp parallel - sum = dotprod(); - -printf("Sum = %f\n",sum); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp_reduction.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp_reduction.c deleted file mode 100644 index 5c9c41ec7..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp_reduction.c +++ /dev/null @@ -1,35 +0,0 @@ -/****************************************************************************** -* FILE: omp_reduction.c -* DESCRIPTION: -* OpenMP Example - Combined Parallel Loop Reduction - C/C++ Version -* This example demonstrates a sum reduction within a combined parallel loop -* construct. Notice that default data element scoping is assumed - there -* are no clauses specifying shared or private variables. OpenMP will -* automatically make loop index variables private within team threads, and -* global variables shared. -* AUTHOR: Blaise Barney 5/99 -* LAST REVISED: 04/06/05 -******************************************************************************/ -#include <omp.h> -#include <stdio.h> -#include <stdlib.h> - -int main (int argc, char *argv[]) { - -int i, n; -float a[100], b[100], sum; - -/* Some initializations */ -n = 100; -for (i=0; i < n; i++) - a[i] = b[i] = i * 1.0; -sum = 0.0; - -#pragma omp parallel for reduction(+:sum) - for (i=0; i < n; i++) - sum = sum + (a[i] * b[i]); - -printf(" Sum = %f\n",sum); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp_workshare1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp_workshare1.c deleted file mode 100644 index e33bef316..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp_workshare1.c +++ /dev/null @@ -1,47 +0,0 @@ -/****************************************************************************** -* FILE: omp_workshare1.c -* DESCRIPTION: -* OpenMP Example - Loop Work-sharing - C/C++ Version -* In this example, the iterations of a loop are scheduled dynamically -* across the team of threads. A thread will perform CHUNK iterations -* at a time before being scheduled for the next CHUNK of work. -* AUTHOR: Blaise Barney 5/99 -* LAST REVISED: 04/06/05 -******************************************************************************/ -#include <omp.h> -#include <stdio.h> -#include <stdlib.h> -#define CHUNKSIZE 10 -#define N 100 - -int main (int argc, char *argv[]) { - -int nthreads, tid, i, chunk; -float a[N], b[N], c[N]; - -/* Some initializations */ -for (i=0; i < N; i++) - a[i] = b[i] = i * 1.0; -chunk = CHUNKSIZE; - -#pragma omp parallel shared(a,b,c,nthreads,chunk) private(i,tid) - { - tid = omp_get_thread_num(); - if (tid == 0) - { - nthreads = omp_get_num_threads(); - printf("Number of threads = %d\n", nthreads); - } - printf("Thread %d starting...\n",tid); - - #pragma omp for schedule(dynamic,chunk) - for (i=0; i<N; i++) - { - c[i] = a[i] + b[i]; - printf("Thread %d: c[%d]= %f\n",tid,i,c[i]); - } - - } /* end of parallel section */ - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp_workshare2.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp_workshare2.c deleted file mode 100644 index 32c93dbde..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp_workshare2.c +++ /dev/null @@ -1,64 +0,0 @@ -/****************************************************************************** -* FILE: omp_workshare2.c -* DESCRIPTION: -* OpenMP Example - Sections Work-sharing - C/C++ Version -* In this example, the OpenMP SECTION directive is used to assign -* different array operations to threads that execute a SECTION. Each -* thread receives its own copy of the result array to work with. -* AUTHOR: Blaise Barney 5/99 -* LAST REVISED: 04/06/05 -******************************************************************************/ -#include <omp.h> -#include <stdio.h> -#include <stdlib.h> -#define N 50 - -int main (int argc, char *argv[]) { - -int i, nthreads, tid; -float a[N], b[N], c[N]; - -/* Some initializations */ -for (i=0; i<N; i++) - a[i] = b[i] = i * 1.0; - -#pragma omp parallel shared(a,b,nthreads) private(c,i,tid) - { - tid = omp_get_thread_num(); - if (tid == 0) - { - nthreads = omp_get_num_threads(); - printf("Number of threads = %d\n", nthreads); - } - printf("Thread %d starting...\n",tid); - - #pragma omp sections nowait - { - #pragma omp section - { - printf("Thread %d doing section 1\n",tid); - for (i=0; i<N; i++) - { - c[i] = a[i] + b[i]; - printf("Thread %d: c[%d]= %f\n",tid,i,c[i]); - } - } - - #pragma omp section - { - printf("Thread %d doing section 2\n",tid); - for (i=0; i<N; i++) - { - c[i] = a[i] * b[i]; - printf("Thread %d: c[%d]= %f\n",tid,i,c[i]); - } - } - - } /* end of sections */ - - printf("Thread %d done.\n",tid); - - } /* end of parallel section */ - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp_workshare3.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp_workshare3.c deleted file mode 100644 index 913f1f731..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp_workshare3.c +++ /dev/null @@ -1,43 +0,0 @@ -/* { dg-do compile } */ - -/****************************************************************************** -* OpenMP Example - Combined Parallel Loop Work-sharing - C/C++ Version -* FILE: omp_workshare3.c -* DESCRIPTION: -* This example attempts to show use of the parallel for construct. However -* it will generate errors at compile time. Try to determine what is causing -* the error. See omp_workshare4.c for a corrected version. -* SOURCE: Blaise Barney 5/99 -* LAST REVISED: 03/03/2002 -******************************************************************************/ - -#include <omp.h> -#include <stdio.h> -#define N 50 -#define CHUNKSIZE 5 - -main () { - -int i, chunk, tid; -float a[N], b[N], c[N]; - -/* Some initializations */ -for (i=0; i < N; i++) - a[i] = b[i] = i * 1.0; -chunk = CHUNKSIZE; - -#pragma omp parallel for \ - shared(a,b,c,chunk) \ - private(i,tid) \ - schedule(static,chunk) - { /* { dg-error "expected" } */ - tid = omp_get_thread_num(); - for (i=0; i < N; i++) - { - c[i] = a[i] + b[i]; - printf("tid= %d i= %d c[i]= %f\n", tid, i, c[i]); - } - } /* end of parallel for construct */ - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp_workshare4.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp_workshare4.c deleted file mode 100644 index 67605e38b..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/omp_workshare4.c +++ /dev/null @@ -1,48 +0,0 @@ -/****************************************************************************** -* OpenMP Example - Combined Parallel Loop Work-sharing - C/C++ Version -* FILE: omp_workshare4.c -* DESCRIPTION: -* This is a corrected version of the omp_workshare3.c example. Corrections -* include removing all statements between the parallel for construct and -* the actual for loop, and introducing logic to preserve the ability to -* query a thread's id and print it from inside the for loop. -* SOURCE: Blaise Barney 5/99 -* LAST REVISED: 03/03/2002 -******************************************************************************/ - -#include <omp.h> -#include <stdio.h> -#define N 50 -#define CHUNKSIZE 5 - -main () { - -int i, chunk, tid; -float a[N], b[N], c[N]; -char first_time; - -/* Some initializations */ -for (i=0; i < N; i++) - a[i] = b[i] = i * 1.0; -chunk = CHUNKSIZE; -first_time = 'y'; - -#pragma omp parallel for \ - shared(a,b,c,chunk) \ - private(i,tid) \ - schedule(static,chunk) \ - firstprivate(first_time) - - for (i=0; i < N; i++) - { - if (first_time == 'y') - { - tid = omp_get_thread_num(); - first_time = 'n'; - } - c[i] = a[i] + b[i]; - printf("tid= %d i= %d c[i]= %f\n", tid, i, c[i]); - } - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/ordered-1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/ordered-1.c deleted file mode 100644 index c6143fac2..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/ordered-1.c +++ /dev/null @@ -1,115 +0,0 @@ -/* Test that all loop iterations are touched. This doesn't verify - scheduling order, merely coverage. */ -/* Note that we never call GOMP_ordered_start in here. AFAICS, this is - valid; the only requirement is "not more than once per iteration". */ - -/* { dg-require-effective-target sync_int_long } */ - -#include <omp.h> -#include <string.h> -#include <assert.h> -#include "libgomp_g.h" - - -#define N 1000 -static int S, E, INCR, CHUNK, NTHR; -static int data[N]; - -static void clean_data (void) -{ - memset (data, -1, sizeof (data)); -} - -static void test_data (void) -{ - int i, j; - - for (i = 0; i < S; ++i) - assert (data[i] == -1); - - for (j = 0; i < E; ++i, j = (j + 1) % INCR) - if (j == 0) - assert (data[i] != -1); - else - assert (data[i] == -1); - - for (; i < N; ++i) - assert (data[i] == -1); -} - -static void set_data (long i, int val) -{ - int old; - assert (i >= 0 && i < N); - old = __sync_lock_test_and_set (data+i, val); - assert (old == -1); -} - - -#define TMPL_1(sched) \ -static void f_##sched##_1 (void *dummy) \ -{ \ - int iam = omp_get_thread_num (); \ - long s0, e0, i; \ - if (GOMP_loop_ordered_##sched##_start (S, E, INCR, CHUNK, &s0, &e0)) \ - do \ - { \ - for (i = s0; i < e0; i += INCR) \ - set_data (i, iam); \ - } \ - while (GOMP_loop_ordered_##sched##_next (&s0, &e0)); \ - GOMP_loop_end (); \ -} \ -static void t_##sched##_1 (void) \ -{ \ - clean_data (); \ - GOMP_parallel_start (f_##sched##_1, NULL, NTHR); \ - f_##sched##_1 (NULL); \ - GOMP_parallel_end (); \ - test_data (); \ -} - -TMPL_1(static) -TMPL_1(dynamic) -TMPL_1(guided) - -static void test (void) -{ - t_static_1 (); - t_dynamic_1 (); - t_guided_1 (); -} - -int main() -{ - omp_set_dynamic (0); - - NTHR = 4; - - S = 0, E = N, INCR = 1, CHUNK = 4; - test (); - - S = 0, E = N, INCR = 2, CHUNK = 4; - test (); - - S = 1, E = N-1, INCR = 1, CHUNK = 5; - test (); - - S = 1, E = N-1, INCR = 2, CHUNK = 5; - test (); - - S = 2, E = 4, INCR = 1, CHUNK = 1; - test (); - - S = 0, E = N, INCR = 1, CHUNK = 0; - t_static_1 (); - - S = 1, E = N-1, INCR = 1, CHUNK = 0; - t_static_1 (); - - NTHR = 10; - S = 1, E = 9, INCR = 1, CHUNK = 0; - t_static_1 (); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/ordered-2.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/ordered-2.c deleted file mode 100644 index 91564371a..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/ordered-2.c +++ /dev/null @@ -1,82 +0,0 @@ -/* Trivial test of ordered. */ - -/* { dg-require-effective-target sync_int_long } */ - -#include <omp.h> -#include <string.h> -#include <assert.h> -#include "libgomp_g.h" - - -#define N 100 -static int next; -static int CHUNK, NTHR; - -static void clean_data (void) -{ - next = 0; -} - -static void set_data (long i) -{ - int n = __sync_fetch_and_add (&next, 1); - assert (n == i); -} - - -#define TMPL_1(sched) \ -static void f_##sched##_1 (void *dummy) \ -{ \ - long s0, e0, i; \ - if (GOMP_loop_ordered_##sched##_start (0, N, 1, CHUNK, &s0, &e0)) \ - do \ - { \ - for (i = s0; i < e0; ++i) \ - { \ - GOMP_ordered_start (); \ - set_data (i); \ - GOMP_ordered_end (); \ - } \ - } \ - while (GOMP_loop_ordered_##sched##_next (&s0, &e0)); \ - GOMP_loop_end (); \ -} \ -static void t_##sched##_1 (void) \ -{ \ - clean_data (); \ - GOMP_parallel_start (f_##sched##_1, NULL, NTHR); \ - f_##sched##_1 (NULL); \ - GOMP_parallel_end (); \ -} - -TMPL_1(static) -TMPL_1(dynamic) -TMPL_1(guided) - -static void test (void) -{ - t_static_1 (); - t_dynamic_1 (); - t_guided_1 (); -} - -int main() -{ - omp_set_dynamic (0); - - NTHR = 4; - - CHUNK = 1; - test (); - - CHUNK = 5; - test (); - - CHUNK = 7; - test (); - - CHUNK = 0; - t_static_1 (); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/ordered-3.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/ordered-3.c deleted file mode 100644 index 2a2f21970..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/ordered-3.c +++ /dev/null @@ -1,82 +0,0 @@ -#include <stdlib.h> - -int cnt; - -void -check (int x) -{ - if (cnt++ != x) - abort (); -} - -int -main (void) -{ - int j; - - cnt = 0; -#pragma omp parallel for ordered schedule (static, 1) num_threads (4) if (0) - for (j = 0; j < 1000; j++) - { -#pragma omp ordered - check (j); - } - - cnt = 0; -#pragma omp parallel for ordered schedule (static, 1) num_threads (4) if (1) - for (j = 0; j < 1000; j++) - { -#pragma omp ordered - check (j); - } - - cnt = 0; -#pragma omp parallel for ordered schedule (runtime) num_threads (4) if (0) - for (j = 0; j < 1000; j++) - { -#pragma omp ordered - check (j); - } - - cnt = 0; -#pragma omp parallel for ordered schedule (runtime) num_threads (4) if (1) - for (j = 0; j < 1000; j++) - { -#pragma omp ordered - check (j); - } - - cnt = 0; -#pragma omp parallel for ordered schedule (dynamic) num_threads (4) if (0) - for (j = 0; j < 1000; j++) - { -#pragma omp ordered - check (j); - } - - cnt = 0; -#pragma omp parallel for ordered schedule (dynamic) num_threads (4) if (1) - for (j = 0; j < 1000; j++) - { -#pragma omp ordered - check (j); - } - - cnt = 0; -#pragma omp parallel for ordered schedule (guided) num_threads (4) if (0) - for (j = 0; j < 1000; j++) - { -#pragma omp ordered - check (j); - } - - cnt = 0; -#pragma omp parallel for ordered schedule (guided) num_threads (4) if (1) - for (j = 0; j < 1000; j++) - { -#pragma omp ordered - check (j); - } - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/parallel-1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/parallel-1.c deleted file mode 100644 index 031f5bf88..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/parallel-1.c +++ /dev/null @@ -1,48 +0,0 @@ -/* Trivial test of thread startup. */ - -#include <omp.h> -#include <string.h> -#include <assert.h> -#include "libgomp_g.h" - - -static int nthr; -static int saw[4]; - -static void function(void *dummy) -{ - int iam = omp_get_thread_num (); - - if (iam == 0) - nthr = omp_get_num_threads (); - - saw[iam] = 1; -} - -int main() -{ - omp_set_dynamic (0); - - GOMP_parallel_start (function, NULL, 2); - function (NULL); - GOMP_parallel_end (); - - assert (nthr == 2); - assert (saw[0] != 0); - assert (saw[1] != 0); - assert (saw[2] == 0); - - memset (saw, 0, sizeof (saw)); - - GOMP_parallel_start (function, NULL, 3); - function (NULL); - GOMP_parallel_end (); - - assert (nthr == 3); - assert (saw[0] != 0); - assert (saw[1] != 0); - assert (saw[2] != 0); - assert (saw[3] == 0); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr24455-1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr24455-1.c deleted file mode 100644 index c39068f80..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr24455-1.c +++ /dev/null @@ -1,6 +0,0 @@ -/* { dg-do compile } */ -/* { dg-require-effective-target tls } */ -extern int i; -#pragma omp threadprivate (i) - -int i; diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr24455.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr24455.c deleted file mode 100644 index 8af449e7b..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr24455.c +++ /dev/null @@ -1,23 +0,0 @@ -/* { dg-do run } */ -/* { dg-additional-sources pr24455-1.c } */ -/* { dg-require-effective-target tls_runtime } */ - -extern void abort (void); - -extern int i; -#pragma omp threadprivate(i) - -int main() -{ - i = 0; - -#pragma omp parallel default(none) num_threads(10) - { - i++; -#pragma omp barrier - if (i != 1) - abort (); - } - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr26171.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr26171.c deleted file mode 100644 index eacc9a71d..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr26171.c +++ /dev/null @@ -1,14 +0,0 @@ -/* PR c/26171 */ -/* { dg-do run } */ -/* { dg-options "-fopenmp" } */ -/* { dg-require-effective-target tls_runtime } */ - -int thrv = 0; -#pragma omp threadprivate (thrv) - -int -main () -{ - thrv = 1; - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr26943-1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr26943-1.c deleted file mode 100644 index 86c43f04b..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr26943-1.c +++ /dev/null @@ -1,24 +0,0 @@ -/* PR c++/26943 */ -/* { dg-do run } */ - -extern void abort (void); -extern void omp_set_dynamic (int); -int n = 6; - -int -main (void) -{ - int i, x = 0; - omp_set_dynamic (0); -#pragma omp parallel for num_threads (16) firstprivate (n) lastprivate (n) \ - schedule (static, 1) reduction (+: x) - for (i = 0; i < 16; i++) - { - if (n != 6) - ++x; - n = i; - } - if (x || n != 15) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr26943-2.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr26943-2.c deleted file mode 100644 index 778048492..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr26943-2.c +++ /dev/null @@ -1,47 +0,0 @@ -/* PR c++/26943 */ -/* { dg-do run } */ - -extern int omp_set_dynamic (int); -extern void abort (void); - -int a = 8, b = 12, c = 16, d = 20, j = 0; -char e[10] = "a", f[10] = "b", g[10] = "c", h[10] = "d"; - -int -main (void) -{ - int i; - omp_set_dynamic (0); -#pragma omp parallel for shared (a, e) firstprivate (b, f) \ - lastprivate (c, g) private (d, h) \ - schedule (static, 1) num_threads (4) \ - reduction (+:j) - for (i = 0; i < 4; i++) - { - if (a != 8 || b != 12 || e[0] != 'a' || f[0] != 'b') - j++; -#pragma omp barrier -#pragma omp atomic - a += i; - b += i; - c = i; - d = i; -#pragma omp atomic - e[0] += i; - f[0] += i; - g[0] = 'g' + i; - h[0] = 'h' + i; -#pragma omp barrier - if (a != 8 + 6 || b != 12 + i || c != i || d != i) - j += 8; - if (e[0] != 'a' + 6 || f[0] != 'b' + i || g[0] != 'g' + i) - j += 64; - if (h[0] != 'h' + i) - j += 512; - } - if (j || a != 8 + 6 || b != 12 || c != 3 || d != 20) - abort (); - if (e[0] != 'a' + 6 || f[0] != 'b' || g[0] != 'g' + 3 || h[0] != 'd') - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr26943-3.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr26943-3.c deleted file mode 100644 index be93cb479..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr26943-3.c +++ /dev/null @@ -1,56 +0,0 @@ -/* PR c++/26943 */ -/* { dg-do run } */ - -extern int omp_set_dynamic (int); -extern int omp_get_thread_num (void); -extern void abort (void); - -int a = 8, b = 12, c = 16, d = 20, j = 0, l = 0; -char e[10] = "a", f[10] = "b", g[10] = "c", h[10] = "d"; -volatile int k; - -int -main (void) -{ - int i; - omp_set_dynamic (0); - omp_set_nested (1); -#pragma omp parallel num_threads (2) reduction (+:l) - if (k == omp_get_thread_num ()) - { -#pragma omp parallel for shared (a, e) firstprivate (b, f) \ - lastprivate (c, g) private (d, h) \ - schedule (static, 1) num_threads (4) \ - reduction (+:j) - for (i = 0; i < 4; i++) - { - if (a != 8 || b != 12 || e[0] != 'a' || f[0] != 'b') - j++; -#pragma omp barrier -#pragma omp atomic - a += i; - b += i; - c = i; - d = i; -#pragma omp atomic - e[0] += i; - f[0] += i; - g[0] = 'g' + i; - h[0] = 'h' + i; -#pragma omp barrier - if (a != 8 + 6 || b != 12 + i || c != i || d != i) - j += 8; - if (e[0] != 'a' + 6 || f[0] != 'b' + i || g[0] != 'g' + i) - j += 64; - if (h[0] != 'h' + i) - j += 512; - } - if (j || a != 8 + 6 || b != 12 || c != 3 || d != 20) - ++l; - if (e[0] != 'a' + 6 || f[0] != 'b' || g[0] != 'g' + 3 || h[0] != 'd') - l += 8; - } - if (l) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr26943-4.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr26943-4.c deleted file mode 100644 index 33d368583..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr26943-4.c +++ /dev/null @@ -1,61 +0,0 @@ -/* PR c++/26943 */ -/* { dg-do run } */ - -extern int omp_set_dynamic (int); -extern int omp_get_thread_num (void); -extern void abort (void); - -int a = 8, b = 12, c = 16, d = 20, j = 0, l = 0; -char e[10] = "a", f[10] = "b", g[10] = "c", h[10] = "d"; -volatile int k; - -int -main (void) -{ - int i; - omp_set_dynamic (0); - omp_set_nested (1); -#pragma omp parallel num_threads (2) reduction (+:l) \ - firstprivate (a, b, c, d, e, f, g, h, j) - if (k == omp_get_thread_num ()) - { -#pragma omp parallel for shared (a, e) firstprivate (b, f) \ - lastprivate (c, g) private (d, h) \ - schedule (static, 1) num_threads (4) \ - reduction (+:j) - for (i = 0; i < 4; i++) - { - if (a != 8 || b != 12 || e[0] != 'a' || f[0] != 'b') - j++; -#pragma omp barrier -#pragma omp atomic - a += i; - b += i; - c = i; - d = i; -#pragma omp atomic - e[0] += i; - f[0] += i; - g[0] = 'g' + i; - h[0] = 'h' + i; -#pragma omp barrier - if (a != 8 + 6 || b != 12 + i || c != i || d != i) - j += 8; - if (e[0] != 'a' + 6 || f[0] != 'b' + i || g[0] != 'g' + i) - j += 64; - if (h[0] != 'h' + i) - j += 512; - } - if (j || a != 8 + 6 || b != 12 || c != 3 || d != 20) - ++l; - if (e[0] != 'a' + 6 || f[0] != 'b' || g[0] != 'g' + 3 || h[0] != 'd') - l += 8; - } - if (l) - abort (); - if (a != 8 || b != 12 || c != 16 || d != 20) - abort (); - if (e[0] != 'a' || f[0] != 'b' || g[0] != 'c' || h[0] != 'd') - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr29947-1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr29947-1.c deleted file mode 100644 index 78b40ac5a..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr29947-1.c +++ /dev/null @@ -1,328 +0,0 @@ -/* PR libgomp/29947 */ -/* { dg-options "-O2 -fopenmp" } */ -/* { dg-do run } */ - -extern void abort (void); - -int cnt; - -void -test1 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel reduction (+:e,c) - { -#pragma omp for schedule (dynamic) - for (i = j1; i <= k1; ++i) - { - if (i < j2 || i > k2) - ++e; - ++c; - } -#pragma omp atomic - ++cnt; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -void -test2 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel reduction (+:e,c) - { -#pragma omp for schedule (dynamic) - for (i = k1; i >= j1; --i) - { - if (i < j2 || i > k2) - ++e; - ++c; - } -#pragma omp atomic - ++cnt; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -void -test3 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel reduction (+:e,c) - { -#pragma omp for schedule (guided) - for (i = j1; i <= k1; ++i) - { - if (i < j2 || i > k2) - ++e; - ++c; - } -#pragma omp atomic - ++cnt; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -void -test4 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel reduction (+:e,c) - { -#pragma omp for schedule (guided) - for (i = k1; i >= j1; --i) - { - if (i < j2 || i > k2) - ++e; - ++c; - } -#pragma omp atomic - ++cnt; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -void -test5 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel reduction (+:e,c) - { -#pragma omp for schedule (dynamic) ordered - for (i = j1; i <= k1; ++i) - { - if (i < j2 || i > k2) - ++e; -#pragma omp ordered - ++c; - } -#pragma omp atomic - ++cnt; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -void -test6 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel reduction (+:e,c) - { -#pragma omp for schedule (dynamic) ordered - for (i = k1; i >= j1; --i) - { - if (i < j2 || i > k2) - ++e; -#pragma omp ordered - ++c; - } -#pragma omp atomic - ++cnt; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -void -test7 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel reduction (+:e,c) - { -#pragma omp for schedule (guided) ordered - for (i = j1; i <= k1; ++i) - { - if (i < j2 || i > k2) - ++e; -#pragma omp ordered - ++c; - } -#pragma omp atomic - ++cnt; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -void -test8 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel reduction (+:e,c) - { -#pragma omp for schedule (guided) ordered - for (i = k1; i >= j1; --i) - { - if (i < j2 || i > k2) - ++e; -#pragma omp ordered - ++c; - } -#pragma omp atomic - ++cnt; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -void -test9 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel for reduction (+:e,c) schedule (dynamic) - for (i = j1; i <= k1; ++i) - { - if (i < j2 || i > k2) - ++e; - ++c; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -void -test10 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel for reduction (+:e,c) schedule (dynamic) - for (i = k1; i >= j1; --i) - { - if (i < j2 || i > k2) - ++e; - ++c; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -void -test11 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel for reduction (+:e,c) schedule (guided) - for (i = j1; i <= k1; ++i) - { - if (i < j2 || i > k2) - ++e; - ++c; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -void -test12 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel for reduction (+:e,c) schedule (guided) - for (i = k1; i >= j1; --i) - { - if (i < j2 || i > k2) - ++e; - ++c; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -void -test13 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel for reduction (+:e,c) schedule (dynamic) ordered - for (i = j1; i <= k1; ++i) - { - if (i < j2 || i > k2) - ++e; -#pragma omp ordered - ++c; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -void -test14 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel for reduction (+:e,c) schedule (dynamic) ordered - for (i = k1; i >= j1; --i) - { - if (i < j2 || i > k2) - ++e; -#pragma omp ordered - ++c; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -void -test15 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel for reduction (+:e,c) schedule (guided) ordered - for (i = j1; i <= k1; ++i) - { - if (i < j2 || i > k2) - ++e; -#pragma omp ordered - ++c; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -void -test16 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel for reduction (+:e,c) schedule (guided) ordered - for (i = k1; i >= j1; --i) - { - if (i < j2 || i > k2) - ++e; -#pragma omp ordered - ++c; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -int -__attribute__((noinline)) -test (long j1, long k1, long j2, long k2) -{ - test1 (j1, k1, j2, k2); - test2 (j1, k1, j2, k2); - test3 (j1, k1, j2, k2); - test4 (j1, k1, j2, k2); - test5 (j1, k1, j2, k2); - test6 (j1, k1, j2, k2); - test7 (j1, k1, j2, k2); - test8 (j1, k1, j2, k2); - test9 (j1, k1, j2, k2); - test10 (j1, k1, j2, k2); - test11 (j1, k1, j2, k2); - test12 (j1, k1, j2, k2); - test13 (j1, k1, j2, k2); - test14 (j1, k1, j2, k2); - test15 (j1, k1, j2, k2); - test16 (j1, k1, j2, k2); - return cnt; -} - -int -main (void) -{ - test (1, 5, 1, 5); - test (5, 5, 5, 5); - test (5, 4, 5, 4); - test (5, 1, 5, 1); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr29947-2.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr29947-2.c deleted file mode 100644 index 231cd5d27..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr29947-2.c +++ /dev/null @@ -1,328 +0,0 @@ -/* PR libgomp/29947 */ -/* { dg-options "-O2 -fopenmp" } */ -/* { dg-do run } */ - -extern void abort (void); - -int cnt; - -void -test1 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel reduction (+:e,c) - { -#pragma omp for schedule (static) - for (i = j1; i <= k1; ++i) - { - if (i < j2 || i > k2) - ++e; - ++c; - } -#pragma omp atomic - ++cnt; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -void -test2 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel reduction (+:e,c) - { -#pragma omp for schedule (static) - for (i = k1; i >= j1; --i) - { - if (i < j2 || i > k2) - ++e; - ++c; - } -#pragma omp atomic - ++cnt; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -void -test3 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel reduction (+:e,c) - { -#pragma omp for schedule (static, 1) - for (i = j1; i <= k1; ++i) - { - if (i < j2 || i > k2) - ++e; - ++c; - } -#pragma omp atomic - ++cnt; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -void -test4 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel reduction (+:e,c) - { -#pragma omp for schedule (static, 1) - for (i = k1; i >= j1; --i) - { - if (i < j2 || i > k2) - ++e; - ++c; - } -#pragma omp atomic - ++cnt; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -void -test5 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel reduction (+:e,c) - { -#pragma omp for schedule (static) ordered - for (i = j1; i <= k1; ++i) - { - if (i < j2 || i > k2) - ++e; -#pragma omp ordered - ++c; - } -#pragma omp atomic - ++cnt; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -void -test6 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel reduction (+:e,c) - { -#pragma omp for schedule (static) ordered - for (i = k1; i >= j1; --i) - { - if (i < j2 || i > k2) - ++e; -#pragma omp ordered - ++c; - } -#pragma omp atomic - ++cnt; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -void -test7 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel reduction (+:e,c) - { -#pragma omp for schedule (static, 1) ordered - for (i = j1; i <= k1; ++i) - { - if (i < j2 || i > k2) - ++e; -#pragma omp ordered - ++c; - } -#pragma omp atomic - ++cnt; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -void -test8 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel reduction (+:e,c) - { -#pragma omp for schedule (static, 1) ordered - for (i = k1; i >= j1; --i) - { - if (i < j2 || i > k2) - ++e; -#pragma omp ordered - ++c; - } -#pragma omp atomic - ++cnt; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -void -test9 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel for reduction (+:e,c) schedule (static) - for (i = j1; i <= k1; ++i) - { - if (i < j2 || i > k2) - ++e; - ++c; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -void -test10 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel for reduction (+:e,c) schedule (static) - for (i = k1; i >= j1; --i) - { - if (i < j2 || i > k2) - ++e; - ++c; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -void -test11 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel for reduction (+:e,c) schedule (static, 1) - for (i = j1; i <= k1; ++i) - { - if (i < j2 || i > k2) - ++e; - ++c; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -void -test12 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel for reduction (+:e,c) schedule (static, 1) - for (i = k1; i >= j1; --i) - { - if (i < j2 || i > k2) - ++e; - ++c; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -void -test13 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel for reduction (+:e,c) schedule (static) ordered - for (i = j1; i <= k1; ++i) - { - if (i < j2 || i > k2) - ++e; -#pragma omp ordered - ++c; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -void -test14 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel for reduction (+:e,c) schedule (static) ordered - for (i = k1; i >= j1; --i) - { - if (i < j2 || i > k2) - ++e; -#pragma omp ordered - ++c; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -void -test15 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel for reduction (+:e,c) schedule (static, 1) ordered - for (i = j1; i <= k1; ++i) - { - if (i < j2 || i > k2) - ++e; -#pragma omp ordered - ++c; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -void -test16 (long j1, long k1, long j2, long k2) -{ - long i, e = 0, c = 0; -#pragma omp parallel for reduction (+:e,c) schedule (static, 1) ordered - for (i = k1; i >= j1; --i) - { - if (i < j2 || i > k2) - ++e; -#pragma omp ordered - ++c; - } - if (e || (c != j2 > k2 ? 0 : k2 - j2 + 1)) - abort (); -} - -int -__attribute__((noinline)) -test (long j1, long k1, long j2, long k2) -{ - test1 (j1, k1, j2, k2); - test2 (j1, k1, j2, k2); - test3 (j1, k1, j2, k2); - test4 (j1, k1, j2, k2); - test5 (j1, k1, j2, k2); - test6 (j1, k1, j2, k2); - test7 (j1, k1, j2, k2); - test8 (j1, k1, j2, k2); - test9 (j1, k1, j2, k2); - test10 (j1, k1, j2, k2); - test11 (j1, k1, j2, k2); - test12 (j1, k1, j2, k2); - test13 (j1, k1, j2, k2); - test14 (j1, k1, j2, k2); - test15 (j1, k1, j2, k2); - test16 (j1, k1, j2, k2); - return cnt; -} - -int -main (void) -{ - test (1, 5, 1, 5); - test (5, 5, 5, 5); - test (5, 4, 5, 4); - test (5, 1, 5, 1); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr30494.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr30494.c deleted file mode 100644 index ec6828e44..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr30494.c +++ /dev/null @@ -1,64 +0,0 @@ -/* PR middle-end/30494 */ -/* { dg-do run } */ - -#include <omp.h> - -int errors; - -int -check (int m, int i, int *v, int *w) -{ - int j; - int n = omp_get_thread_num (); - for (j = 0; j < m; j++) - if (v[j] != j + n) - #pragma omp atomic - errors += 1; - for (j = 0; j < m * 3 + i; j++) - if (w[j] != j + 10 + n) - #pragma omp atomic - errors += 1; -} - -int -foo (int n, int m) -{ - int i; -#pragma omp for - for (i = 0; i < 6; i++) - { - int v[n], w[n * 3 + i], j; - for (j = 0; j < n; j++) - v[j] = j + omp_get_thread_num (); - for (j = 0; j < n * 3 + i; j++) - w[j] = j + 10 + omp_get_thread_num (); - check (m, i, v, w); - } - return 0; -} - -int -bar (int n, int m) -{ - int i; -#pragma omp parallel for num_threads (4) - for (i = 0; i < 6; i++) - { - int v[n], w[n * 3 + i], j; - for (j = 0; j < n; j++) - v[j] = j + omp_get_thread_num (); - for (j = 0; j < n * 3 + i; j++) - w[j] = j + 10 + omp_get_thread_num (); - check (m, i, v, w); - } - return 0; -} - -int -main (void) -{ -#pragma omp parallel num_threads (3) - foo (128, 128); - bar (256, 256); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr32362-1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr32362-1.c deleted file mode 100644 index 3c62d4bdb..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr32362-1.c +++ /dev/null @@ -1,32 +0,0 @@ -/* PR middle-end/32362 */ -/* { dg-do run } */ -/* { dg-options "-O2" } */ - -#include <omp.h> -#include <stdlib.h> - -int -main () -{ - int n[4] = { -1, -1, -1, -1 }; - static int a = 2, b = 4; - omp_set_num_threads (4); - omp_set_dynamic (0); - omp_set_nested (1); -#pragma omp parallel private(b) - { - b = omp_get_thread_num (); -#pragma omp parallel firstprivate(a) - { - a = (omp_get_thread_num () + a) + 1; - if (b == omp_get_thread_num ()) - n[omp_get_thread_num ()] = a + (b << 4); - } - } - if (n[0] != 3) - abort (); - if (n[3] != -1 - && (n[1] != 0x14 || n[2] != 0x25 || n[3] != 0x36)) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr32362-2.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr32362-2.c deleted file mode 100644 index 43f36e0e9..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr32362-2.c +++ /dev/null @@ -1,33 +0,0 @@ -/* PR middle-end/32362 */ -/* { dg-do run } */ -/* { dg-options "-O2" } */ - -#include <omp.h> -#include <stdlib.h> - -int a = 2, b = 4; - -int -main () -{ - int n[4] = { -1, -1, -1, -1 }; - omp_set_num_threads (4); - omp_set_dynamic (0); - omp_set_nested (1); -#pragma omp parallel private(b) - { - b = omp_get_thread_num (); -#pragma omp parallel firstprivate(a) - { - a = (omp_get_thread_num () + a) + 1; - if (b == omp_get_thread_num ()) - n[omp_get_thread_num ()] = a + (b << 4); - } - } - if (n[0] != 3) - abort (); - if (n[3] != -1 - && (n[1] != 0x14 || n[2] != 0x25 || n[3] != 0x36)) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr32362-3.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr32362-3.c deleted file mode 100644 index 09a88f52a..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr32362-3.c +++ /dev/null @@ -1,34 +0,0 @@ -/* PR middle-end/32362 */ -/* { dg-do run } */ -/* { dg-options "-O2" } */ - -#include <omp.h> -#include <stdlib.h> - -int a = 2; - -int -main () -{ - int n[4] = { -1, -1, -1, -1 }; - int b = 4; - omp_set_num_threads (4); - omp_set_dynamic (0); - omp_set_nested (1); -#pragma omp parallel private(b) - { - b = omp_get_thread_num (); -#pragma omp parallel firstprivate(a) - { - a = (omp_get_thread_num () + a) + 1; - if (b == omp_get_thread_num ()) - n[omp_get_thread_num ()] = a + (b << 4); - } - } - if (n[0] != 3) - abort (); - if (n[3] != -1 - && (n[1] != 0x14 || n[2] != 0x25 || n[3] != 0x36)) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr32468.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr32468.c deleted file mode 100644 index f20f660bf..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/pr32468.c +++ /dev/null @@ -1,26 +0,0 @@ -/* PR libgomp/32468 */ -/* { dg-do run } */ - -#include <omp.h> -#include <stdlib.h> - -int -main (void) -{ - int res[2] = { -1, -1 }; - omp_set_dynamic (0); - omp_set_num_threads (4); -#pragma omp parallel - { - #pragma omp sections - { - #pragma omp section - res[0] = omp_get_num_threads () != 4; - #pragma omp section - res[1] = omp_get_num_threads () != 4; - } - } - if (res[0] != 0 || res[1] != 0) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/reduction-1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/reduction-1.c deleted file mode 100644 index 665163af0..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/reduction-1.c +++ /dev/null @@ -1,36 +0,0 @@ -#include <omp.h> -#include <stdlib.h> - -int -main (void) -{ - int i = 0, j = 0, k = ~0; - double d = 1.0; -#pragma omp parallel num_threads(4) reduction(+:i) reduction(*:d) reduction(&:k) - { - if (i != 0 || d != 1.0 || k != ~0) -#pragma omp atomic - j |= 1; - - if (omp_get_num_threads () != 4) -#pragma omp atomic - j |= 2; - - i = omp_get_thread_num (); - d = i + 1; - k = ~(1 << (2 * i)); - } - - if (j & 1) - abort (); - if ((j & 2) == 0) - { - if (i != (0 + 1 + 2 + 3)) - abort (); - if (d != (1.0 * 2.0 * 3.0 * 4.0)) - abort (); - if (k != (~0 ^ 0x55)) - abort (); - } - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/reduction-2.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/reduction-2.c deleted file mode 100644 index 52b3faff7..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/reduction-2.c +++ /dev/null @@ -1,50 +0,0 @@ -#include <omp.h> -#include <stdlib.h> - -int -main (void) -{ - int i = 0, j = 0, k = ~0, l; - double d = 1.0; -#pragma omp parallel num_threads(4) - { -#pragma omp single - { - i = 16; - k ^= (1 << 16); - d += 32.0; - } - -#pragma omp for reduction(+:i) reduction(*:d) reduction(&:k) - for (l = 0; l < 4; l++) - { - if (omp_get_num_threads () == 4 && (i != 0 || d != 1.0 || k != ~0)) -#pragma omp atomic - j |= 1; - - if (l == omp_get_thread_num ()) - { - i = omp_get_thread_num (); - d = i + 1; - k = ~(1 << (2 * i)); - } - } - - if (omp_get_num_threads () == 4) - { - if (i != (16 + 0 + 1 + 2 + 3)) -#pragma omp atomic - j |= 2; - if (d != (33.0 * 1.0 * 2.0 * 3.0 * 4.0)) -#pragma omp atomic - j |= 4; - if (k != (~0 ^ 0x55 ^ (1 << 16))) -#pragma omp atomic - j |= 8; - } - } - - if (j) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/reduction-3.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/reduction-3.c deleted file mode 100644 index 4f8f2fc12..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/reduction-3.c +++ /dev/null @@ -1,51 +0,0 @@ -#include <omp.h> -#include <stdlib.h> - -int -main (void) -{ - int i = 0, j = 0, k = ~0, l; - double d = 1.0; -#pragma omp parallel num_threads(4) - { -#pragma omp single - { - i = 16; - k ^= (1 << 16); - d += 32.0; - } - -#pragma omp for reduction(+:i) reduction(*:d) reduction(&:k) nowait - for (l = 0; l < 4; l++) - { - if (omp_get_num_threads () == 4 && (i != 0 || d != 1.0 || k != ~0)) -#pragma omp atomic - j |= 1; - - if (l == omp_get_thread_num ()) - { - i = omp_get_thread_num (); - d = i + 1; - k = ~(1 << (2 * i)); - } - } - - if (omp_get_num_threads () == 4) - { -#pragma omp barrier - if (i != (16 + 0 + 1 + 2 + 3)) -#pragma omp atomic - j |= 2; - if (d != (33.0 * 1.0 * 2.0 * 3.0 * 4.0)) -#pragma omp atomic - j |= 4; - if (k != (~0 ^ 0x55 ^ (1 << 16))) -#pragma omp atomic - j |= 8; - } - } - - if (j) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/reduction-4.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/reduction-4.c deleted file mode 100644 index 23e9d6d5b..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/reduction-4.c +++ /dev/null @@ -1,36 +0,0 @@ -#include <omp.h> -#include <stdlib.h> - -int -main (void) -{ - int i = 0, j = 0, k = 0, l = 0; -#pragma omp parallel num_threads(4) reduction(-:i) reduction(|:k) \ - reduction(^:l) - { - if (i != 0 || k != 0 || l != 0) -#pragma omp atomic - j |= 1; - - if (omp_get_num_threads () != 4) -#pragma omp atomic - j |= 2; - - i = omp_get_thread_num (); - k = 1 << (2 * i); - l = 0xea << (3 * i); - } - - if (j & 1) - abort (); - if ((j & 2) == 0) - { - if (i != (0 + 1 + 2 + 3)) - abort (); - if (k != 0x55) - abort (); - if (l != 0x1e93a) - abort (); - } - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/sections-1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/sections-1.c deleted file mode 100644 index 3a6584cb7..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/sections-1.c +++ /dev/null @@ -1,85 +0,0 @@ -/* Test that all sections are touched. */ - -/* { dg-require-effective-target sync_int_long } */ - -#include <omp.h> -#include <string.h> -#include <assert.h> -#include "libgomp_g.h" - - -#define N 100 -static int data[N]; -static int NTHR; - -static void clean_data (void) -{ - memset (data, -1, sizeof (data)); -} - -static void test_data (void) -{ - int i; - - for (i = 0; i < N; ++i) - assert (data[i] != -1); -} - -static void set_data (unsigned i, int val) -{ - int old; - assert (i >= 1 && i <= N); - old = __sync_lock_test_and_set (data+i-1, val); - assert (old == -1); -} - - -static void f_1 (void *dummy) -{ - int iam = omp_get_thread_num (); - unsigned long s; - - for (s = GOMP_sections_start (N); s ; s = GOMP_sections_next ()) - set_data (s, iam); - GOMP_sections_end (); -} - -static void test_1 (void) -{ - clean_data (); - GOMP_parallel_start (f_1, NULL, NTHR); - f_1 (NULL); - GOMP_parallel_end (); - test_data (); -} - -static void f_2 (void *dummy) -{ - int iam = omp_get_thread_num (); - unsigned s; - - while ((s = GOMP_sections_next ())) - set_data (s, iam); - GOMP_sections_end_nowait (); -} - -static void test_2 (void) -{ - clean_data (); - GOMP_parallel_sections_start (f_2, NULL, NTHR, N); - f_2 (NULL); - GOMP_parallel_end (); - test_data (); -} - -int main() -{ - omp_set_dynamic (0); - - NTHR = 4; - - test_1 (); - test_2 (); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/shared-1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/shared-1.c deleted file mode 100644 index f7d4fb2d6..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/shared-1.c +++ /dev/null @@ -1,58 +0,0 @@ -extern void abort (void); - -struct Y -{ - int l[5][10]; -}; - -struct X -{ - struct Y y; - float b[10]; -}; - -void -parallel (int a, int b) -{ - int i, j; - struct X A[10][5]; - a = b = 3; - - for (i = 0; i < 10; i++) - for (j = 0; j < 5; j++) - A[i][j].y.l[3][3] = -10; - - #pragma omp parallel shared (a, b, A) num_threads (5) - { - int i, j; - - #pragma omp atomic - a += omp_get_num_threads (); - - #pragma omp atomic - b += omp_get_num_threads (); - - #pragma omp for private (j) - for (i = 0; i < 10; i++) - for (j = 0; j < 5; j++) - A[i][j].y.l[3][3] += 20; - - } - - for (i = 0; i < 10; i++) - for (j = 0; j < 5; j++) - if (A[i][j].y.l[3][3] != 10) - abort (); - - if (a != 28) - abort (); - - if (b != 28) - abort (); -} - -main() -{ - parallel (1, 2); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/shared-2.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/shared-2.c deleted file mode 100644 index 56c88ecc7..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/shared-2.c +++ /dev/null @@ -1,50 +0,0 @@ -#include <stdio.h> -#include <omp.h> - -extern void abort (void); - -void -parallel (int a, int b) -{ - int bad, LASTPRIV, LASTPRIV_SEC; - int i; - - a = b = 3; - - bad = 0; - - #pragma omp parallel firstprivate (a,b) shared (bad) num_threads (5) - { - if (a != 3 || b != 3) - bad = 1; - - #pragma omp for lastprivate (LASTPRIV) - for (i = 0; i < 10; i++) - LASTPRIV = i; - - #pragma omp sections lastprivate (LASTPRIV_SEC) - { - #pragma omp section - { LASTPRIV_SEC = 3; } - - #pragma omp section - { LASTPRIV_SEC = 42; } - } - - } - - if (LASTPRIV != 9) - abort (); - - if (LASTPRIV_SEC != 42) - abort (); - - if (bad) - abort (); -} - -int main() -{ - parallel (1, 2); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/shared-3.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/shared-3.c deleted file mode 100644 index 494a970ad..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/shared-3.c +++ /dev/null @@ -1,19 +0,0 @@ -/* { dg-do run } */ - -void abort (void); - -int main() -{ - int x; - int *p; - - p = &x; - - #pragma omp parallel - { - if (p != &x) - abort (); - } - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/single-1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/single-1.c deleted file mode 100644 index 1ce89118d..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/single-1.c +++ /dev/null @@ -1,53 +0,0 @@ -/* Trivial test of single. */ - -/* { dg-require-effective-target sync_int_long } */ - -#include <omp.h> -#include <sys/time.h> -#include <unistd.h> -#include <assert.h> -#include "libgomp_g.h" - - -static int test; - -static void f_nocopy (void *dummy) -{ - if (GOMP_single_start ()) - { - int iam = omp_get_thread_num (); - int old = __sync_lock_test_and_set (&test, iam); - assert (old == -1); - } -} - -static void f_copy (void *dummy) -{ - int *x = GOMP_single_copy_start (); - if (x == NULL) - { - int iam = omp_get_thread_num (); - int old = __sync_lock_test_and_set (&test, iam); - assert (old == -1); - GOMP_single_copy_end (&test); - } - else - assert (x == &test); -} - -int main() -{ - omp_set_dynamic (0); - - test = -1; - GOMP_parallel_start (f_nocopy, NULL, 3); - f_nocopy (NULL); - GOMP_parallel_end (); - - test = -1; - GOMP_parallel_start (f_copy, NULL, 3); - f_copy (NULL); - GOMP_parallel_end (); - - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/single-2.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/single-2.c deleted file mode 100644 index b510ce735..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/single-2.c +++ /dev/null @@ -1,15 +0,0 @@ -#include <stdlib.h> - -int -main (void) -{ - int i; - i = 4; -#pragma omp single copyprivate (i) - { - i = 6; - } - if (i != 6) - abort (); - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/vla-1.c b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/vla-1.c deleted file mode 100644 index bdacdbbe8..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.c/vla-1.c +++ /dev/null @@ -1,60 +0,0 @@ -/* { dg-do run } */ - -#include <omp.h> -#include <stdlib.h> -#include <string.h> - -int -main (int argc, char **argv[]) -{ - int n = argc < 5 ? 12 : 31, i, m, l; - char a[n + 3]; - unsigned short b[n / 2 - 1]; - int c[n * 2 + 1]; - - for (i = 0; i < n + 3; i++) - a[i] = i; - for (i = 0; i < n / 2 - 1; i++) - b[i] = (i << 8) | i; - for (i = 0; i < n * 2 + 1; i++) - c[i] = (i << 24) | i; - l = 0; - m = n; -#pragma omp parallel default (shared) num_threads (4) \ - firstprivate (a, m) private (b, i) reduction (+:l) - { - for (i = 0; i < m + 3; i++) - if (a[i] != i) - l++; - for (i = 0; i < m * 2 + 1; i++) - if (c[i] != ((i << 24) | i)) - l++; -#pragma omp barrier - memset (a, omp_get_thread_num (), m + 3); - for (i = 0; i < m / 2 - 1; i++) - b[i] = a[0] + 7; -#pragma omp master - { - for (i = 0; i < m * 2 + 1; i++) - c[i] = a[0] + 16; - } -#pragma omp barrier - if (a[0] != omp_get_thread_num ()) - l++; - for (i = 1; i < m + 3; i++) - if (a[i] != a[0]) - l++; - for (i = 0; i < m / 2 - 1; i++) - if (b[i] != a[0] + 7) - l++; - for (i = 0; i < m * 2 + 1; i++) - if (c[i] != 16) - l++; - } - if (l) - abort (); - for (i = 0; i < n * 2 + 1; i++) - if (c[i] != 16) - l++; - return 0; -} diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.15.1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.15.1.f90 deleted file mode 100644 index 3d95451ea..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.15.1.f90 +++ /dev/null @@ -1,31 +0,0 @@ -! { dg-do compile } - SUBROUTINE WORK(N) - INTEGER N - END SUBROUTINE WORK - SUBROUTINE SUB3(N) - INTEGER N - CALL WORK(N) -!$OMP BARRIER - CALL WORK(N) - END SUBROUTINE SUB3 - SUBROUTINE SUB2(K) - INTEGER K -!$OMP PARALLEL SHARED(K) - CALL SUB3(K) -!$OMP END PARALLEL - END SUBROUTINE SUB2 - SUBROUTINE SUB1(N) - INTEGER N - INTEGER I -!$OMP PARALLEL PRIVATE(I) SHARED(N) -!$OMP DO - DO I = 1, N - CALL SUB2(I) - END DO -!$OMP END PARALLEL - END SUBROUTINE SUB1 - PROGRAM A15 - CALL SUB1(2) - CALL SUB2(2) - CALL SUB3(2) - END PROGRAM A15 diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.16.1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.16.1.f90 deleted file mode 100644 index 014d4fd5a..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.16.1.f90 +++ /dev/null @@ -1,41 +0,0 @@ -! { dg-do run } - REAL FUNCTION WORK1(I) - INTEGER I - WORK1 = 1.0 * I - RETURN - END FUNCTION WORK1 - - REAL FUNCTION WORK2(I) - INTEGER I - WORK2 = 2.0 * I - RETURN - END FUNCTION WORK2 - - SUBROUTINE SUBA16(X, Y, INDEX, N) - REAL X(*), Y(*) - INTEGER INDEX(*), N - INTEGER I -!$OMP PARALLEL DO SHARED(X, Y, INDEX, N) - DO I=1,N -!$OMP ATOMIC - X(INDEX(I)) = X(INDEX(I)) + WORK1(I) - Y(I) = Y(I) + WORK2(I) - ENDDO - END SUBROUTINE SUBA16 - - PROGRAM A16 - REAL X(1000), Y(10000) - INTEGER INDEX(10000) - INTEGER I - DO I=1,10000 - INDEX(I) = MOD(I, 1000) + 1 - Y(I) = 0.0 - ENDDO - DO I = 1,1000 - X(I) = 0.0 - ENDDO - CALL SUBA16(X, Y, INDEX, 10000) - DO I = 1,10 - PRINT *, "X(", I, ") = ", X(I), ", Y(", I, ") = ", Y(I) - ENDDO - END PROGRAM A16 diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.18.1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.18.1.f90 deleted file mode 100644 index 3321485ef..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.18.1.f90 +++ /dev/null @@ -1,59 +0,0 @@ -! { dg-do run } -! { dg-options "-ffixed-form" } - REAL FUNCTION FN1(I) - INTEGER I - FN1 = I * 2.0 - RETURN - END FUNCTION FN1 - - REAL FUNCTION FN2(A, B) - REAL A, B - FN2 = A + B - RETURN - END FUNCTION FN2 - - PROGRAM A18 - INCLUDE "omp_lib.h" ! or USE OMP_LIB - INTEGER ISYNC(256) - REAL WORK(256) - REAL RESULT(256) - INTEGER IAM, NEIGHBOR -!$OMP PARALLEL PRIVATE(IAM, NEIGHBOR) SHARED(WORK, ISYNC) NUM_THREADS(4) - IAM = OMP_GET_THREAD_NUM() + 1 - ISYNC(IAM) = 0 -!$OMP BARRIER -! Do computation into my portion of work array - WORK(IAM) = FN1(IAM) -! Announce that I am done with my work. -! The first flush ensures that my work is made visible before -! synch. The second flush ensures that synch is made visible. -!$OMP FLUSH(WORK,ISYNC) - ISYNC(IAM) = 1 -!$OMP FLUSH(ISYNC) - -! Wait until neighbor is done. The first flush ensures that -! synch is read from memory, rather than from the temporary -! view of memory. The second flush ensures that work is read -! from memory, and is done so after the while loop exits. - IF (IAM .EQ. 1) THEN - NEIGHBOR = OMP_GET_NUM_THREADS() - ELSE - NEIGHBOR = IAM - 1 - ENDIF - DO WHILE (ISYNC(NEIGHBOR) .EQ. 0) -!$OMP FLUSH(ISYNC) - END DO -!$OMP FLUSH(WORK, ISYNC) - RESULT(IAM) = FN2(WORK(NEIGHBOR), WORK(IAM)) -!$OMP END PARALLEL - DO I=1,4 - IF (I .EQ. 1) THEN - NEIGHBOR = 4 - ELSE - NEIGHBOR = I - 1 - ENDIF - IF (RESULT(I) .NE. I * 2 + NEIGHBOR * 2) THEN - CALL ABORT - ENDIF - ENDDO - END PROGRAM A18 diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.19.1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.19.1.f90 deleted file mode 100644 index 1fe1c4247..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.19.1.f90 +++ /dev/null @@ -1,60 +0,0 @@ -! { dg-do run } - SUBROUTINE F1(Q) - COMMON /DATA/ P, X - INTEGER, TARGET :: X - INTEGER, POINTER :: P - INTEGER Q - Q=1 -!$OMP FLUSH - ! X, P and Q are flushed - ! because they are shared and accessible - END SUBROUTINE F1 - SUBROUTINE F2(Q) - COMMON /DATA/ P, X - INTEGER, TARGET :: X - INTEGER, POINTER :: P - INTEGER Q -!$OMP BARRIER - Q=2 -!$OMP BARRIER - ! a barrier implies a flush - ! X, P and Q are flushed - ! because they are shared and accessible - END SUBROUTINE F2 - - INTEGER FUNCTION G(N) - COMMON /DATA/ P, X - INTEGER, TARGET :: X - INTEGER, POINTER :: P - INTEGER N - INTEGER I, J, SUM - I=1 - SUM = 0 - P=1 -!$OMP PARALLEL REDUCTION(+: SUM) NUM_THREADS(2) - CALL F1(J) - ! I, N and SUM were not flushed - ! because they were not accessible in F1 - ! J was flushed because it was accessible - SUM = SUM + J - CALL F2(J) - ! I, N, and SUM were not flushed - ! because they were not accessible in f2 - ! J was flushed because it was accessible - SUM = SUM + I + J + P + N -!$OMP END PARALLEL - G = SUM - END FUNCTION G - - PROGRAM A19 - COMMON /DATA/ P, X - INTEGER, TARGET :: X - INTEGER, POINTER :: P - INTEGER RESULT, G - P => X - RESULT = G(10) - PRINT *, RESULT - IF (RESULT .NE. 30) THEN - CALL ABORT - ENDIF - END PROGRAM A19 diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.2.1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.2.1.f90 deleted file mode 100644 index 2b09f5b1f..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.2.1.f90 +++ /dev/null @@ -1,22 +0,0 @@ -! { dg-do run } -PROGRAM A2 - INCLUDE "omp_lib.h" ! or USE OMP_LIB - INTEGER X - X=2 -!$OMP PARALLEL NUM_THREADS(2) SHARED(X) - IF (OMP_GET_THREAD_NUM() .EQ. 0) THEN - X=5 - ELSE - ! PRINT 1: The following read of x has a race - PRINT *,"1: THREAD# ", OMP_GET_THREAD_NUM(), "X = ", X - ENDIF -!$OMP BARRIER - IF (OMP_GET_THREAD_NUM() .EQ. 0) THEN - ! PRINT 2 - PRINT *,"2: THREAD# ", OMP_GET_THREAD_NUM(), "X = ", X - ELSE - ! PRINT 3 - PRINT *,"3: THREAD# ", OMP_GET_THREAD_NUM(), "X = ", X - ENDIF -!$OMP END PARALLEL -END PROGRAM A2 diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.21.1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.21.1.f90 deleted file mode 100644 index c22fa1169..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.21.1.f90 +++ /dev/null @@ -1,19 +0,0 @@ -! { dg-do compile } - SUBROUTINE WORK(K) - INTEGER k -!$OMP ORDERED - WRITE(*,*) K -!$OMP END ORDERED - END SUBROUTINE WORK - SUBROUTINE SUBA21(LB, UB, STRIDE) - INTEGER LB, UB, STRIDE - INTEGER I -!$OMP PARALLEL DO ORDERED SCHEDULE(DYNAMIC) - DO I=LB,UB,STRIDE - CALL WORK(I) - END DO -!$OMP END PARALLEL DO - END SUBROUTINE SUBA21 - PROGRAM A21 - CALL SUBA21(1,100,5) - END PROGRAM A21 diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.22.7.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.22.7.f90 deleted file mode 100644 index fff4e6d49..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.22.7.f90 +++ /dev/null @@ -1,33 +0,0 @@ -! { dg-do run } -! { dg-require-effective-target tls_runtime } - - PROGRAM A22_7_GOOD - INTEGER, ALLOCATABLE, SAVE :: A(:) - INTEGER, POINTER, SAVE :: PTR - INTEGER, SAVE :: I - INTEGER, TARGET :: TARG - LOGICAL :: FIRSTIN = .TRUE. -!$OMP THREADPRIVATE(A, I, PTR) - ALLOCATE (A(3)) - A = (/1,2,3/) - PTR => TARG - I=5 -!$OMP PARALLEL COPYIN(I, PTR) -!$OMP CRITICAL - IF (FIRSTIN) THEN - TARG = 4 ! Update target of ptr - I = I + 10 - IF (ALLOCATED(A)) A = A + 10 - FIRSTIN = .FALSE. - END IF - IF (ALLOCATED(A)) THEN - PRINT *, "a = ", A - ELSE - PRINT *, "A is not allocated" - END IF - PRINT *, "ptr = ", PTR - PRINT *, "i = ", I - PRINT * -!$OMP END CRITICAL -!$OMP END PARALLEL - END PROGRAM A22_7_GOOD diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.22.8.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.22.8.f90 deleted file mode 100644 index cf6d90ee8..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.22.8.f90 +++ /dev/null @@ -1,25 +0,0 @@ -! { dg-do run } -! { dg-require-effective-target tls_runtime } - MODULE A22_MODULE8 - REAL, POINTER :: WORK(:) - SAVE WORK -!$OMP THREADPRIVATE(WORK) - END MODULE A22_MODULE8 - SUBROUTINE SUB1(N) - USE A22_MODULE8 -!$OMP PARALLEL PRIVATE(THE_SUM) - ALLOCATE(WORK(N)) - CALL SUB2(THE_SUM) - WRITE(*,*)THE_SUM -!$OMP END PARALLEL - END SUBROUTINE SUB1 - SUBROUTINE SUB2(THE_SUM) - USE A22_MODULE8 - WORK(:) = 10 - THE_SUM=SUM(WORK) - END SUBROUTINE SUB2 - PROGRAM A22_8_GOOD - N = 10 - CALL SUB1(N) - END PROGRAM A22_8_GOOD - diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.26.1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.26.1.f90 deleted file mode 100644 index e9ebf87af..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.26.1.f90 +++ /dev/null @@ -1,11 +0,0 @@ -! { dg-do run } - PROGRAM A26 - INTEGER I, J - I=1 - J=2 -!$OMP PARALLEL PRIVATE(I) FIRSTPRIVATE(J) - I=3 - J=J+2 -!$OMP END PARALLEL - PRINT *, I, J ! I and J are undefined - END PROGRAM A26 diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.28.1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.28.1.f90 deleted file mode 100644 index c271333a8..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.28.1.f90 +++ /dev/null @@ -1,14 +0,0 @@ -! { dg-do run } - - SUBROUTINE SUB() - COMMON /BLOCK/ X - PRINT *,X ! X is undefined - END SUBROUTINE SUB - PROGRAM A28_1 - COMMON /BLOCK/ X - X = 1.0 -!$OMP PARALLEL PRIVATE (X) - X = 2.0 - CALL SUB() -!$OMP END PARALLEL - END PROGRAM A28_1 diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.28.2.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.28.2.f90 deleted file mode 100644 index 1145e5410..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.28.2.f90 +++ /dev/null @@ -1,16 +0,0 @@ -! { dg-do run } - - PROGRAM A28_2 - COMMON /BLOCK2/ X - X = 1.0 -!$OMP PARALLEL PRIVATE (X) - X = 2.0 - CALL SUB() -!$OMP END PARALLEL - CONTAINS - SUBROUTINE SUB() - COMMON /BLOCK2/ Y - PRINT *,X ! X is undefined - PRINT *,Y ! Y is undefined - END SUBROUTINE SUB - END PROGRAM A28_2 diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.28.3.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.28.3.f90 deleted file mode 100644 index a337f3bc7..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.28.3.f90 +++ /dev/null @@ -1,11 +0,0 @@ -! { dg-do run } - - PROGRAM A28_3 - EQUIVALENCE (X,Y) - X = 1.0 -!$OMP PARALLEL PRIVATE(X) - PRINT *,Y ! Y is undefined - Y = 10 - PRINT *,X ! X is undefined -!$OMP END PARALLEL - END PROGRAM A28_3 diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.28.4.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.28.4.f90 deleted file mode 100644 index c5a5cd74c..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.28.4.f90 +++ /dev/null @@ -1,24 +0,0 @@ -! { dg-do run } - - PROGRAM A28_4 - INTEGER I, J - INTEGER A(100), B(100) - EQUIVALENCE (A(51), B(1)) -!$OMP PARALLEL DO DEFAULT(PRIVATE) PRIVATE(I,J) LASTPRIVATE(A) - DO I=1,100 - DO J=1,100 - B(J) = J - 1 - ENDDO - DO J=1,100 - A(J) = J ! B becomes undefined at this point - ENDDO - DO J=1,50 - B(J) = B(J) + 1 ! B is undefined - ! A becomes undefined at this point - ENDDO - ENDDO -!$OMP END PARALLEL DO ! The LASTPRIVATE write for A has - ! undefined results - PRINT *, B ! B is undefined since the LASTPRIVATE - ! write of A was not defined - END PROGRAM A28_4 diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.28.5.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.28.5.f90 deleted file mode 100644 index e3775822f..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.28.5.f90 +++ /dev/null @@ -1,29 +0,0 @@ -! { dg-do compile } - - SUBROUTINE SUB1(X) - DIMENSION X(10) - ! This use of X does not conform to the - ! specification. It would be legal Fortran 90, - ! but the OpenMP private directive allows the - ! compiler to break the sequence association that - ! A had with the rest of the common block. - FORALL (I = 1:10) X(I) = I - END SUBROUTINE SUB1 - PROGRAM A28_5 - COMMON /BLOCK5/ A - DIMENSION B(10) - EQUIVALENCE (A,B(1)) - ! the common block has to be at least 10 words - A=0 -!$OMP PARALLEL PRIVATE(/BLOCK5/) - ! Without the private clause, - ! we would be passing a member of a sequence - ! that is at least ten elements long. - ! With the private clause, A may no longer be - ! sequence-associated. - CALL SUB1(A) -!$OMP MASTER - PRINT *, A -!$OMP END MASTER -!$OMP END PARALLEL - END PROGRAM A28_5 diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.3.1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.3.1.f90 deleted file mode 100644 index 0a1757272..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.3.1.f90 +++ /dev/null @@ -1,6 +0,0 @@ -! { dg-do run } -! { dg-options "-ffixed-form" } - PROGRAM A3 -!234567890 -!$ PRINT *, "Compiled by an OpenMP-compliant implementation." - END PROGRAM A3 diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.31.4.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.31.4.f90 deleted file mode 100644 index 69882c1e6..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.31.4.f90 +++ /dev/null @@ -1,12 +0,0 @@ -! { dg-do run } - MODULE M - INTRINSIC MAX - END MODULE M - PROGRAM A31_4 - USE M, REN => MAX - N=0 -!$OMP PARALLEL DO REDUCTION(REN: N) ! still does MAX - DO I = 1, 100 - N = MAX(N,I) - END DO - END PROGRAM A31_4 diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.31.5.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.31.5.f90 deleted file mode 100644 index 91a97cd82..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.31.5.f90 +++ /dev/null @@ -1,14 +0,0 @@ -! { dg-do run } - MODULE MOD - INTRINSIC MAX, MIN - END MODULE MOD - PROGRAM A31_5 - USE MOD, MIN=>MAX, MAX=>MIN - REAL :: R - R = -HUGE(0.0) - !$OMP PARALLEL DO REDUCTION(MIN: R) ! still does MAX - DO I = 1, 1000 - R = MIN(R, SIN(REAL(I))) - END DO - PRINT *, R - END PROGRAM A31_5 diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.33.3.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.33.3.f90 deleted file mode 100644 index adc493fcf..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.33.3.f90 +++ /dev/null @@ -1,10 +0,0 @@ -! { dg-do compile } - - FUNCTION NEW_LOCK() - USE OMP_LIB ! or INCLUDE "omp_lib.h" - INTEGER(OMP_LOCK_KIND), POINTER :: NEW_LOCK -!$OMP SINGLE - ALLOCATE(NEW_LOCK) - CALL OMP_INIT_LOCK(NEW_LOCK) -!$OMP END SINGLE COPYPRIVATE(NEW_LOCK) - END FUNCTION NEW_LOCK diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.38.1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.38.1.f90 deleted file mode 100644 index 55541303c..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.38.1.f90 +++ /dev/null @@ -1,12 +0,0 @@ -! { dg-do compile } - - FUNCTION NEW_LOCKS() - USE OMP_LIB ! or INCLUDE "omp_lib.h" - INTEGER(OMP_LOCK_KIND), DIMENSION(1000) :: NEW_LOCKS - INTEGER I -!$OMP PARALLEL DO PRIVATE(I) - DO I=1,1000 - CALL OMP_INIT_LOCK(NEW_LOCKS(I)) - END DO -!$OMP END PARALLEL DO - END FUNCTION NEW_LOCKS diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.39.1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.39.1.f90 deleted file mode 100644 index 540d17f5b..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.39.1.f90 +++ /dev/null @@ -1,26 +0,0 @@ -! { dg-do run } - - SUBROUTINE SKIP(ID) - END SUBROUTINE SKIP - SUBROUTINE WORK(ID) - END SUBROUTINE WORK - PROGRAM A39 - INCLUDE "omp_lib.h" ! or USE OMP_LIB - INTEGER(OMP_LOCK_KIND) LCK - INTEGER ID - CALL OMP_INIT_LOCK(LCK) -!$OMP PARALLEL SHARED(LCK) PRIVATE(ID) - ID = OMP_GET_THREAD_NUM() - CALL OMP_SET_LOCK(LCK) - PRINT *, "My thread id is ", ID - CALL OMP_UNSET_LOCK(LCK) - DO WHILE (.NOT. OMP_TEST_LOCK(LCK)) - CALL SKIP(ID) ! We do not yet have the lock - ! so we must do something else - END DO - CALL WORK(ID) ! We now have the lock - ! and can do the work - CALL OMP_UNSET_LOCK( LCK ) -!$OMP END PARALLEL - CALL OMP_DESTROY_LOCK( LCK ) - END PROGRAM A39 diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.4.1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.4.1.f90 deleted file mode 100644 index 3c2a74a4f..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.4.1.f90 +++ /dev/null @@ -1,29 +0,0 @@ -! { dg-do run } - SUBROUTINE SUBDOMAIN(X, ISTART, IPOINTS) - INTEGER ISTART, IPOINTS - REAL X(*) - INTEGER I - DO 100 I=1,IPOINTS - X(ISTART+I) = 123.456 - 100 CONTINUE - END SUBROUTINE SUBDOMAIN - SUBROUTINE SUB(X, NPOINTS) - INCLUDE "omp_lib.h" ! or USE OMP_LIB - REAL X(*) - INTEGER NPOINTS - INTEGER IAM, NT, IPOINTS, ISTART -!$OMP PARALLEL DEFAULT(PRIVATE) SHARED(X,NPOINTS) - IAM = OMP_GET_THREAD_NUM() - NT = OMP_GET_NUM_THREADS() - IPOINTS = NPOINTS/NT - ISTART = IAM * IPOINTS - IF (IAM .EQ. NT-1) THEN - IPOINTS = NPOINTS - ISTART - ENDIF - CALL SUBDOMAIN(X,ISTART,IPOINTS) -!$OMP END PARALLEL - END SUBROUTINE SUB - PROGRAM A4 - REAL ARRAY(10000) - CALL SUB(ARRAY, 10000) - END PROGRAM A4 diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.40.1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.40.1.f90 deleted file mode 100644 index 38fbca3fc..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.40.1.f90 +++ /dev/null @@ -1,52 +0,0 @@ -! { dg-do compile } -! { dg-options "-ffixed-form" } - MODULE DATA - USE OMP_LIB, ONLY: OMP_NEST_LOCK_KIND - TYPE LOCKED_PAIR - INTEGER A - INTEGER B - INTEGER (OMP_NEST_LOCK_KIND) LCK - END TYPE - END MODULE DATA - SUBROUTINE INCR_A(P, A) - ! called only from INCR_PAIR, no need to lock - USE DATA - TYPE(LOCKED_PAIR) :: P - INTEGER A - P%A = P%A + A - END SUBROUTINE INCR_A - SUBROUTINE INCR_B(P, B) - ! called from both INCR_PAIR and elsewhere, - ! so we need a nestable lock - USE OMP_LIB ! or INCLUDE "omp_lib.h" - USE DATA - TYPE(LOCKED_PAIR) :: P - INTEGER B - CALL OMP_SET_NEST_LOCK(P%LCK) - P%B = P%B + B - CALL OMP_UNSET_NEST_LOCK(P%LCK) - END SUBROUTINE INCR_B - SUBROUTINE INCR_PAIR(P, A, B) - USE OMP_LIB ! or INCLUDE "omp_lib.h" - USE DATA - TYPE(LOCKED_PAIR) :: P - INTEGER A - INTEGER B - CALL OMP_SET_NEST_LOCK(P%LCK) - CALL INCR_A(P, A) - CALL INCR_B(P, B) - CALL OMP_UNSET_NEST_LOCK(P%LCK) - END SUBROUTINE INCR_PAIR - SUBROUTINE A40(P) - USE OMP_LIB ! or INCLUDE "omp_lib.h" - USE DATA - TYPE(LOCKED_PAIR) :: P - INTEGER WORK1, WORK2, WORK3 - EXTERNAL WORK1, WORK2, WORK3 -!$OMP PARALLEL SECTIONS -!$OMP SECTION - CALL INCR_PAIR(P, WORK1(), WORK2()) -!$OMP SECTION - CALL INCR_B(P, WORK3()) -!$OMP END PARALLEL SECTIONS - END SUBROUTINE A40 diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.5.1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.5.1.f90 deleted file mode 100644 index 13e451e50..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a.5.1.f90 +++ /dev/null @@ -1,8 +0,0 @@ -! { dg-do run } - PROGRAM A5 - INCLUDE "omp_lib.h" ! or USE OMP_LIB - CALL OMP_SET_DYNAMIC(.TRUE.) -!$OMP PARALLEL NUM_THREADS(10) - ! do work here -!$OMP END PARALLEL - END PROGRAM A5 diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a10.1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a10.1.f90 deleted file mode 100644 index c1564bf4b..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/appendix-a/a10.1.f90 +++ /dev/null @@ -1,20 +0,0 @@ -! { dg-do run } - SUBROUTINE WORK1() - END SUBROUTINE WORK1 - SUBROUTINE WORK2() - END SUBROUTINE WORK2 - PROGRAM A10 -!$OMP PARALLEL -!$OMP SINGLE - print *, "Beginning work1." -!$OMP END SINGLE - CALL WORK1() -!$OMP SINGLE - print *, "Finishing work1." -!$OMP END SINGLE -!$OMP SINGLE - print *, "Finished work1 and beginning work2." -!$OMP END SINGLE NOWAIT - CALL WORK2() -!$OMP END PARALLEL - END PROGRAM A10 diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/character1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/character1.f90 deleted file mode 100644 index f75ae27e8..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/character1.f90 +++ /dev/null @@ -1,72 +0,0 @@ -! { dg-do run } -!$ use omp_lib - - character (len = 8) :: h, i - character (len = 4) :: j, k - h = '01234567' - i = 'ABCDEFGH' - j = 'IJKL' - k = 'MN' - call test (h, j) -contains - subroutine test (p, q) - character (len = 8) :: p - character (len = 4) :: q, r - character (len = 16) :: f - character (len = 32) :: g - integer, dimension (18) :: s - logical :: l - integer :: m - f = 'test16' - g = 'abcdefghijklmnopqrstuvwxyz' - r = '' - l = .false. - s = -6 -!$omp parallel firstprivate (f, p, s) private (r, m) reduction (.or.:l) & -!$omp & num_threads (4) - m = omp_get_thread_num () - if (any (s .ne. -6)) l = .true. - l = l .or. f .ne. 'test16' .or. p .ne. '01234567' - l = l .or. g .ne. 'abcdefghijklmnopqrstuvwxyz' - l = l .or. i .ne. 'ABCDEFGH' .or. q .ne. 'IJKL' - l = l .or. k .ne. 'MN' -!$omp barrier - if (m .eq. 0) then - f = 'ffffffff0' - g = 'xyz' - i = '123' - k = '9876' - p = '_abc' - q = '_def' - r = '1_23' - else if (m .eq. 1) then - f = '__' - p = 'xxx' - r = '7575' - else if (m .eq. 2) then - f = 'ZZ' - p = 'm2' - r = 'M2' - else if (m .eq. 3) then - f = 'YY' - p = 'm3' - r = 'M3' - end if - s = m -!$omp barrier - l = l .or. g .ne. 'xyz' .or. i .ne. '123' .or. k .ne. '9876' - l = l .or. q .ne. '_def' - if (any (s .ne. m)) l = .true. - if (m .eq. 0) then - l = l .or. f .ne. 'ffffffff0' .or. p .ne. '_abc' .or. r .ne. '1_23' - else if (m .eq. 1) then - l = l .or. f .ne. '__' .or. p .ne. 'xxx' .or. r .ne. '7575' - else if (m .eq. 2) then - l = l .or. f .ne. 'ZZ' .or. p .ne. 'm2' .or. r .ne. 'M2' - else if (m .eq. 3) then - l = l .or. f .ne. 'YY' .or. p .ne. 'm3' .or. r .ne. 'M3' - end if -!$omp end parallel - if (l) call abort - end subroutine test -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/character2.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/character2.f90 deleted file mode 100644 index d59032b57..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/character2.f90 +++ /dev/null @@ -1,61 +0,0 @@ -! { dg-do run } -!$ use omp_lib - - character (len = 8) :: h - character (len = 9) :: i - h = '01234567' - i = 'ABCDEFGHI' - call test (h, i, 9) -contains - subroutine test (p, q, n) - character (len = *) :: p - character (len = n) :: q - character (len = n) :: r - character (len = n) :: t - character (len = n) :: u - integer, dimension (n + 4) :: s - logical :: l - integer :: m - r = '' - if (n .gt. 8) r = 'jklmnopqr' - do m = 1, n + 4 - s(m) = m - end do - u = 'abc' - l = .false. -!$omp parallel firstprivate (p, q, r) private (t, m) reduction (.or.:l) & -!$omp & num_threads (2) - do m = 1, 13 - if (s(m) .ne. m) l = .true. - end do - m = omp_get_thread_num () - l = l .or. p .ne. '01234567' .or. q .ne. 'ABCDEFGHI' - l = l .or. r .ne. 'jklmnopqr' .or. u .ne. 'abc' -!$omp barrier - if (m .eq. 0) then - p = 'A' - q = 'B' - r = 'C' - t = '123' - u = '987654321' - else if (m .eq. 1) then - p = 'D' - q = 'E' - r = 'F' - t = '456' - s = m - end if -!$omp barrier - l = l .or. u .ne. '987654321' - if (any (s .ne. 1)) l = .true. - if (m .eq. 0) then - l = l .or. p .ne. 'A' .or. q .ne. 'B' .or. r .ne. 'C' - l = l .or. t .ne. '123' - else - l = l .or. p .ne. 'D' .or. q .ne. 'E' .or. r .ne. 'F' - l = l .or. t .ne. '456' - end if -!$omp end parallel - if (l) call abort - end subroutine test -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/condinc1.f b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/condinc1.f deleted file mode 100644 index d94fe8d0f..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/condinc1.f +++ /dev/null @@ -1,7 +0,0 @@ -! { dg-options "-fopenmp" } - program condinc1 - logical l - l = .false. -!$ include 'condinc1.inc' - stop 2 - end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/condinc1.inc b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/condinc1.inc deleted file mode 100644 index 4624db7c4..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/condinc1.inc +++ /dev/null @@ -1,2 +0,0 @@ - if (l) stop 3 - return diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/condinc2.f b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/condinc2.f deleted file mode 100644 index 8123be455..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/condinc2.f +++ /dev/null @@ -1,7 +0,0 @@ -! { dg-options "-fno-openmp" } - program condinc2 - logical l - l = .true. -C$ include 'condinc1.inc' - return - end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/condinc3.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/condinc3.f90 deleted file mode 100644 index 16b937a0a..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/condinc3.f90 +++ /dev/null @@ -1,7 +0,0 @@ - ! { dg-options "-fopenmp" } -program condinc3 - logical l - l = .false. - !$ include 'condinc1.inc' - stop 2 -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/condinc4.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/condinc4.f90 deleted file mode 100644 index 33250256b..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/condinc4.f90 +++ /dev/null @@ -1,7 +0,0 @@ -! { dg-options "-fno-openmp" } - program condinc4 - logical l - l = .true. -!$ include 'condinc1.inc' - return - end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/crayptr1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/crayptr1.f90 deleted file mode 100644 index 57c59f71f..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/crayptr1.f90 +++ /dev/null @@ -1,46 +0,0 @@ -! { dg-do run } -! { dg-options "-fopenmp -fcray-pointer" } - - use omp_lib - integer :: a, b, c, p - logical :: l - pointer (ip, p) - a = 1 - b = 2 - c = 3 - l = .false. - ip = loc (a) - -!$omp parallel num_threads (2) reduction (.or.:l) - l = p .ne. 1 -!$omp barrier -!$omp master - ip = loc (b) -!$omp end master -!$omp barrier - l = l .or. p .ne. 2 -!$omp barrier - if (omp_get_thread_num () .eq. 1 .or. omp_get_num_threads () .lt. 2) & - ip = loc (c) -!$omp barrier - l = l .or. p .ne. 3 -!$omp end parallel - - if (l) call abort - - l = .false. -!$omp parallel num_threads (2) reduction (.or.:l) default (private) - ip = loc (a) - a = 3 * omp_get_thread_num () + 4 - b = a + 1 - c = a + 2 - l = p .ne. 3 * omp_get_thread_num () + 4 - ip = loc (c) - l = l .or. p .ne. 3 * omp_get_thread_num () + 6 - ip = loc (b) - l = l .or. p .ne. 3 * omp_get_thread_num () + 5 -!$omp end parallel - - if (l) call abort - -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/do1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/do1.f90 deleted file mode 100644 index 2a48c7345..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/do1.f90 +++ /dev/null @@ -1,179 +0,0 @@ -! { dg-do run } - - integer, dimension (128) :: a, b - integer :: i - a = -1 - b = -1 - do i = 1, 128 - if (i .ge. 8 .and. i .le. 15) then - b(i) = 1 * 256 + i - else if (i .ge. 19 .and. i .le. 23) then - b(i) = 2 * 256 + i - else if (i .ge. 28 .and. i .le. 38) then - if (iand (i, 1) .eq. 0) b(i) = 3 * 256 + i - else if (i .ge. 59 .and. i .le. 79) then - if (iand (i - 59, 3) .eq. 0) b(i) = 4 * 256 + i - else if (i .ge. 101 .and. i .le. 125) then - if (mod (i - 101, 12) .eq. 0) b(i) = 5 * 256 + i - end if - end do - -!$omp parallel num_threads (4) - -!$omp do - do i = 8, 15 - a(i) = 1 * 256 + i - end do - -!$omp do - do i = 23, 19, -1 - a(i) = 2 * 256 + i - end do - -!$omp do - do i = 28, 39, 2 - a(i) = 3 * 256 + i - end do - -!$omp do - do i = 79, 59, -4 - a(i) = 4 * 256 + i - end do - -!$omp do - do i = 125, 90, -12 - a(i) = 5 * 256 + i - end do - -!$omp end parallel - - if (any (a .ne. b)) call abort - a = -1 - -!$omp parallel num_threads (4) - -!$omp do schedule (static) - do i = 8, 15 - a(i) = 1 * 256 + i - end do - -!$omp do schedule (static, 1) - do i = 23, 19, -1 - a(i) = 2 * 256 + i - end do - -!$omp do schedule (static, 3) - do i = 28, 39, 2 - a(i) = 3 * 256 + i - end do - -!$omp do schedule (static, 6) - do i = 79, 59, -4 - a(i) = 4 * 256 + i - end do - -!$omp do schedule (static, 2) - do i = 125, 90, -12 - a(i) = 5 * 256 + i - end do - -!$omp end parallel - - if (any (a .ne. b)) call abort - a = -1 - -!$omp parallel num_threads (4) - -!$omp do schedule (dynamic) - do i = 8, 15 - a(i) = 1 * 256 + i - end do - -!$omp do schedule (dynamic, 4) - do i = 23, 19, -1 - a(i) = 2 * 256 + i - end do - -!$omp do schedule (dynamic, 1) - do i = 28, 39, 2 - a(i) = 3 * 256 + i - end do - -!$omp do schedule (dynamic, 2) - do i = 79, 59, -4 - a(i) = 4 * 256 + i - end do - -!$omp do schedule (dynamic, 3) - do i = 125, 90, -12 - a(i) = 5 * 256 + i - end do - -!$omp end parallel - - if (any (a .ne. b)) call abort - a = -1 - -!$omp parallel num_threads (4) - -!$omp do schedule (guided) - do i = 8, 15 - a(i) = 1 * 256 + i - end do - -!$omp do schedule (guided, 4) - do i = 23, 19, -1 - a(i) = 2 * 256 + i - end do - -!$omp do schedule (guided, 1) - do i = 28, 39, 2 - a(i) = 3 * 256 + i - end do - -!$omp do schedule (guided, 2) - do i = 79, 59, -4 - a(i) = 4 * 256 + i - end do - -!$omp do schedule (guided, 3) - do i = 125, 90, -12 - a(i) = 5 * 256 + i - end do - -!$omp end parallel - - if (any (a .ne. b)) call abort - a = -1 - -!$omp parallel num_threads (4) - -!$omp do schedule (runtime) - do i = 8, 15 - a(i) = 1 * 256 + i - end do - -!$omp do schedule (runtime) - do i = 23, 19, -1 - a(i) = 2 * 256 + i - end do - -!$omp do schedule (runtime) - do i = 28, 39, 2 - a(i) = 3 * 256 + i - end do - -!$omp do schedule (runtime) - do i = 79, 59, -4 - a(i) = 4 * 256 + i - end do - -!$omp do schedule (runtime) - do i = 125, 90, -12 - a(i) = 5 * 256 + i - end do - -!$omp end parallel - - if (any (a .ne. b)) call abort -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/do2.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/do2.f90 deleted file mode 100644 index b90ccddd8..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/do2.f90 +++ /dev/null @@ -1,366 +0,0 @@ -! { dg-do run } - - integer, dimension (128) :: a, b - integer :: i, j - logical :: k - a = -1 - b = -1 - do i = 1, 128 - if (i .ge. 8 .and. i .le. 15) then - b(i) = 1 * 256 + i - else if (i .ge. 19 .and. i .le. 23) then - b(i) = 2 * 256 + i - else if (i .ge. 28 .and. i .le. 38) then - if (iand (i, 1) .eq. 0) b(i) = 3 * 256 + i - else if (i .ge. 59 .and. i .le. 79) then - if (iand (i - 59, 3) .eq. 0) b(i) = 4 * 256 + i - else if (i .ge. 101 .and. i .le. 125) then - if (mod (i - 101, 12) .eq. 0) b(i) = 5 * 256 + i - end if - end do - - k = .false. - j = 8 -!$omp parallel num_threads (4) - -!$omp do ordered - do i = 8, 15 - a(i) = 1 * 256 + i -!$omp ordered - if (i .ne. j) k = .true. - j = j + 1 -!$omp end ordered - end do - -!$omp single - j = 23 -!$omp end single - -!$omp do ordered - do i = 23, 19, -1 - a(i) = 2 * 256 + i -!$omp ordered - if (i .ne. j) k = .true. - j = j - 1 -!$omp end ordered - end do - -!$omp single - j = 28 -!$omp end single - -!$omp do ordered - do i = 28, 39, 2 - a(i) = 3 * 256 + i -!$omp ordered - if (i .ne. j) k = .true. - j = j + 2 -!$omp end ordered - end do - -!$omp single - j = 79 -!$omp end single - -!$omp do ordered - do i = 79, 59, -4 - a(i) = 4 * 256 + i -!$omp ordered - if (i .ne. j) k = .true. - j = j - 4 -!$omp end ordered - end do - -!$omp single - j = 125 -!$omp end single - -!$omp do ordered - do i = 125, 90, -12 - a(i) = 5 * 256 + i -!$omp ordered - if (i .ne. j) k = .true. - j = j - 12 -!$omp end ordered - end do - -!$omp end parallel - - if (any (a .ne. b) .or. k) call abort - a = -1 - k = .false. - j = 8 -!$omp parallel num_threads (4) - -!$omp do ordered schedule (static) - do i = 8, 15 - a(i) = 1 * 256 + i -!$omp ordered - if (i .ne. j) k = .true. - j = j + 1 -!$omp end ordered - end do - -!$omp single - j = 23 -!$omp end single - -!$omp do ordered schedule (static, 1) - do i = 23, 19, -1 - a(i) = 2 * 256 + i -!$omp ordered - if (i .ne. j) k = .true. - j = j - 1 -!$omp end ordered - end do - -!$omp single - j = 28 -!$omp end single - -!$omp do ordered schedule (static, 3) - do i = 28, 39, 2 - a(i) = 3 * 256 + i -!$omp ordered - if (i .ne. j) k = .true. - j = j + 2 -!$omp end ordered - end do - -!$omp single - j = 79 -!$omp end single - -!$omp do ordered schedule (static, 6) - do i = 79, 59, -4 - a(i) = 4 * 256 + i -!$omp ordered - if (i .ne. j) k = .true. - j = j - 4 -!$omp end ordered - end do - -!$omp single - j = 125 -!$omp end single - -!$omp do ordered schedule (static, 2) - do i = 125, 90, -12 - a(i) = 5 * 256 + i -!$omp ordered - if (i .ne. j) k = .true. - j = j - 12 -!$omp end ordered - end do - -!$omp end parallel - - if (any (a .ne. b) .or. k) call abort - a = -1 - k = .false. - j = 8 -!$omp parallel num_threads (4) - -!$omp do ordered schedule (dynamic) - do i = 8, 15 - a(i) = 1 * 256 + i -!$omp ordered - if (i .ne. j) k = .true. - j = j + 1 -!$omp end ordered - end do - -!$omp single - j = 23 -!$omp end single - -!$omp do ordered schedule (dynamic, 4) - do i = 23, 19, -1 - a(i) = 2 * 256 + i -!$omp ordered - if (i .ne. j) k = .true. - j = j - 1 -!$omp end ordered - end do - -!$omp single - j = 28 -!$omp end single - -!$omp do ordered schedule (dynamic, 1) - do i = 28, 39, 2 - a(i) = 3 * 256 + i -!$omp ordered - if (i .ne. j) k = .true. - j = j + 2 -!$omp end ordered - end do - -!$omp single - j = 79 -!$omp end single - -!$omp do ordered schedule (dynamic, 2) - do i = 79, 59, -4 - a(i) = 4 * 256 + i -!$omp ordered - if (i .ne. j) k = .true. - j = j - 4 -!$omp end ordered - end do - -!$omp single - j = 125 -!$omp end single - -!$omp do ordered schedule (dynamic, 3) - do i = 125, 90, -12 - a(i) = 5 * 256 + i -!$omp ordered - if (i .ne. j) k = .true. - j = j - 12 -!$omp end ordered - end do - -!$omp end parallel - - if (any (a .ne. b) .or. k) call abort - a = -1 - k = .false. - j = 8 -!$omp parallel num_threads (4) - -!$omp do ordered schedule (guided) - do i = 8, 15 - a(i) = 1 * 256 + i -!$omp ordered - if (i .ne. j) k = .true. - j = j + 1 -!$omp end ordered - end do - -!$omp single - j = 23 -!$omp end single - -!$omp do ordered schedule (guided, 4) - do i = 23, 19, -1 - a(i) = 2 * 256 + i -!$omp ordered - if (i .ne. j) k = .true. - j = j - 1 -!$omp end ordered - end do - -!$omp single - j = 28 -!$omp end single - -!$omp do ordered schedule (guided, 1) - do i = 28, 39, 2 - a(i) = 3 * 256 + i -!$omp ordered - if (i .ne. j) k = .true. - j = j + 2 -!$omp end ordered - end do - -!$omp single - j = 79 -!$omp end single - -!$omp do ordered schedule (guided, 2) - do i = 79, 59, -4 - a(i) = 4 * 256 + i -!$omp ordered - if (i .ne. j) k = .true. - j = j - 4 -!$omp end ordered - end do - -!$omp single - j = 125 -!$omp end single - -!$omp do ordered schedule (guided, 3) - do i = 125, 90, -12 - a(i) = 5 * 256 + i -!$omp ordered - if (i .ne. j) k = .true. - j = j - 12 -!$omp end ordered - end do - -!$omp end parallel - - if (any (a .ne. b) .or. k) call abort - a = -1 - k = .false. - j = 8 -!$omp parallel num_threads (4) - -!$omp do ordered schedule (runtime) - do i = 8, 15 - a(i) = 1 * 256 + i -!$omp ordered - if (i .ne. j) k = .true. - j = j + 1 -!$omp end ordered - end do - -!$omp single - j = 23 -!$omp end single - -!$omp do ordered schedule (runtime) - do i = 23, 19, -1 - a(i) = 2 * 256 + i -!$omp ordered - if (i .ne. j) k = .true. - j = j - 1 -!$omp end ordered - end do - -!$omp single - j = 28 -!$omp end single - -!$omp do ordered schedule (runtime) - do i = 28, 39, 2 - a(i) = 3 * 256 + i -!$omp ordered - if (i .ne. j) k = .true. - j = j + 2 -!$omp end ordered - end do - -!$omp single - j = 79 -!$omp end single - -!$omp do ordered schedule (runtime) - do i = 79, 59, -4 - a(i) = 4 * 256 + i -!$omp ordered - if (i .ne. j) k = .true. - j = j - 4 -!$omp end ordered - end do - -!$omp single - j = 125 -!$omp end single - -!$omp do ordered schedule (runtime) - do i = 125, 90, -12 - a(i) = 5 * 256 + i -!$omp ordered - if (i .ne. j) k = .true. - j = j - 12 -!$omp end ordered - end do - -!$omp end parallel - - if (any (a .ne. b) .or. k) call abort -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/fortran.exp b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/fortran.exp deleted file mode 100644 index bf95aab00..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/fortran.exp +++ /dev/null @@ -1,20 +0,0 @@ -set lang_library_path "../libgfortran/.libs" -set lang_test_file "${lang_library_path}/libgfortranbegin.a" -set lang_link_flags "-lgfortranbegin -lgfortran" - -load_lib libgomp-dg.exp - -# Initialize dg. -dg-init - -if [file exists "${blddir}/${lang_test_file}"] { - - # Gather a list of all tests. - set tests [lsort [find $srcdir/$subdir *.\[fF\]{,90,95,03}]] - - # Main loop. - gfortran-dg-runtest $tests "" -} - -# All done. -dg-finish diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/jacobi.f b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/jacobi.f deleted file mode 100644 index b27e20f27..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/jacobi.f +++ /dev/null @@ -1,261 +0,0 @@ -* { dg-do run } - - program main -************************************************************ -* program to solve a finite difference -* discretization of Helmholtz equation : -* (d2/dx2)u + (d2/dy2)u - alpha u = f -* using Jacobi iterative method. -* -* Modified: Sanjiv Shah, Kuck and Associates, Inc. (KAI), 1998 -* Author: Joseph Robicheaux, Kuck and Associates, Inc. (KAI), 1998 -* -* Directives are used in this code to achieve paralleism. -* All do loops are parallized with default 'static' scheduling. -* -* Input : n - grid dimension in x direction -* m - grid dimension in y direction -* alpha - Helmholtz constant (always greater than 0.0) -* tol - error tolerance for iterative solver -* relax - Successice over relaxation parameter -* mits - Maximum iterations for iterative solver -* -* On output -* : u(n,m) - Dependent variable (solutions) -* : f(n,m) - Right hand side function -************************************************************* - implicit none - - integer n,m,mits,mtemp - include "omp_lib.h" - double precision tol,relax,alpha - - common /idat/ n,m,mits,mtemp - common /fdat/tol,alpha,relax -* -* Read info -* - write(*,*) "Input n,m - grid dimension in x,y direction " - n = 64 - m = 64 -* read(5,*) n,m - write(*,*) n, m - write(*,*) "Input alpha - Helmholts constant " - alpha = 0.5 -* read(5,*) alpha - write(*,*) alpha - write(*,*) "Input relax - Successive over-relaxation parameter" - relax = 0.9 -* read(5,*) relax - write(*,*) relax - write(*,*) "Input tol - error tolerance for iterative solver" - tol = 1.0E-12 -* read(5,*) tol - write(*,*) tol - write(*,*) "Input mits - Maximum iterations for solver" - mits = 100 -* read(5,*) mits - write(*,*) mits - - call omp_set_num_threads (2) - -* -* Calls a driver routine -* - call driver () - - stop - end - - subroutine driver ( ) -************************************************************* -* Subroutine driver () -* This is where the arrays are allocated and initialzed. -* -* Working varaibles/arrays -* dx - grid spacing in x direction -* dy - grid spacing in y direction -************************************************************* - implicit none - - integer n,m,mits,mtemp - double precision tol,relax,alpha - - common /idat/ n,m,mits,mtemp - common /fdat/tol,alpha,relax - - double precision u(n,m),f(n,m),dx,dy - -* Initialize data - - call initialize (n,m,alpha,dx,dy,u,f) - -* Solve Helmholtz equation - - call jacobi (n,m,dx,dy,alpha,relax,u,f,tol,mits) - -* Check error between exact solution - - call error_check (n,m,alpha,dx,dy,u,f) - - return - end - - subroutine initialize (n,m,alpha,dx,dy,u,f) -****************************************************** -* Initializes data -* Assumes exact solution is u(x,y) = (1-x^2)*(1-y^2) -* -****************************************************** - implicit none - - integer n,m - double precision u(n,m),f(n,m),dx,dy,alpha - - integer i,j, xx,yy - double precision PI - parameter (PI=3.1415926) - - dx = 2.0 / (n-1) - dy = 2.0 / (m-1) - -* Initilize initial condition and RHS - -!$omp parallel do private(xx,yy) - do j = 1,m - do i = 1,n - xx = -1.0 + dx * dble(i-1) ! -1 < x < 1 - yy = -1.0 + dy * dble(j-1) ! -1 < y < 1 - u(i,j) = 0.0 - f(i,j) = -alpha *(1.0-xx*xx)*(1.0-yy*yy) - & - 2.0*(1.0-xx*xx)-2.0*(1.0-yy*yy) - enddo - enddo -!$omp end parallel do - - return - end - - subroutine jacobi (n,m,dx,dy,alpha,omega,u,f,tol,maxit) -****************************************************************** -* Subroutine HelmholtzJ -* Solves poisson equation on rectangular grid assuming : -* (1) Uniform discretization in each direction, and -* (2) Dirichlect boundary conditions -* -* Jacobi method is used in this routine -* -* Input : n,m Number of grid points in the X/Y directions -* dx,dy Grid spacing in the X/Y directions -* alpha Helmholtz eqn. coefficient -* omega Relaxation factor -* f(n,m) Right hand side function -* u(n,m) Dependent variable/Solution -* tol Tolerance for iterative solver -* maxit Maximum number of iterations -* -* Output : u(n,m) - Solution -***************************************************************** - implicit none - integer n,m,maxit - double precision dx,dy,f(n,m),u(n,m),alpha, tol,omega -* -* Local variables -* - integer i,j,k,k_local - double precision error,resid,rsum,ax,ay,b - double precision error_local, uold(n,m) - - real ta,tb,tc,td,te,ta1,ta2,tb1,tb2,tc1,tc2,td1,td2 - real te1,te2 - real second - external second -* -* Initialize coefficients - ax = 1.0/(dx*dx) ! X-direction coef - ay = 1.0/(dy*dy) ! Y-direction coef - b = -2.0/(dx*dx)-2.0/(dy*dy) - alpha ! Central coeff - - error = 10.0 * tol - k = 1 - - do while (k.le.maxit .and. error.gt. tol) - - error = 0.0 - -* Copy new solution into old -!$omp parallel - -!$omp do - do j=1,m - do i=1,n - uold(i,j) = u(i,j) - enddo - enddo - -* Compute stencil, residual, & update - -!$omp do private(resid) reduction(+:error) - do j = 2,m-1 - do i = 2,n-1 -* Evaluate residual - resid = (ax*(uold(i-1,j) + uold(i+1,j)) - & + ay*(uold(i,j-1) + uold(i,j+1)) - & + b * uold(i,j) - f(i,j))/b -* Update solution - u(i,j) = uold(i,j) - omega * resid -* Accumulate residual error - error = error + resid*resid - end do - enddo -!$omp enddo nowait - -!$omp end parallel - -* Error check - - k = k + 1 - - error = sqrt(error)/dble(n*m) -* - enddo ! End iteration loop -* - print *, 'Total Number of Iterations ', k - print *, 'Residual ', error - - return - end - - subroutine error_check (n,m,alpha,dx,dy,u,f) - implicit none -************************************************************ -* Checks error between numerical and exact solution -* -************************************************************ - - integer n,m - double precision u(n,m),f(n,m),dx,dy,alpha - - integer i,j - double precision xx,yy,temp,error - - dx = 2.0 / (n-1) - dy = 2.0 / (m-1) - error = 0.0 - -!$omp parallel do private(xx,yy,temp) reduction(+:error) - do j = 1,m - do i = 1,n - xx = -1.0d0 + dx * dble(i-1) - yy = -1.0d0 + dy * dble(j-1) - temp = u(i,j) - (1.0-xx*xx)*(1.0-yy*yy) - error = error + temp*temp - enddo - enddo - - error = sqrt(error)/dble(n*m) - - print *, 'Solution Error : ',error - - return - end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/lib1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/lib1.f90 deleted file mode 100644 index 884001867..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/lib1.f90 +++ /dev/null @@ -1,76 +0,0 @@ -! { dg-do run } - - use omp_lib - - double precision :: d, e - logical :: l - integer (kind = omp_lock_kind) :: lck - integer (kind = omp_nest_lock_kind) :: nlck - - d = omp_get_wtime () - - call omp_init_lock (lck) - call omp_set_lock (lck) - if (omp_test_lock (lck)) call abort - call omp_unset_lock (lck) - if (.not. omp_test_lock (lck)) call abort - if (omp_test_lock (lck)) call abort - call omp_unset_lock (lck) - call omp_destroy_lock (lck) - - call omp_init_nest_lock (nlck) - if (omp_test_nest_lock (nlck) .ne. 1) call abort - call omp_set_nest_lock (nlck) - if (omp_test_nest_lock (nlck) .ne. 3) call abort - call omp_unset_nest_lock (nlck) - call omp_unset_nest_lock (nlck) - if (omp_test_nest_lock (nlck) .ne. 2) call abort - call omp_unset_nest_lock (nlck) - call omp_unset_nest_lock (nlck) - call omp_destroy_nest_lock (nlck) - - call omp_set_dynamic (.true.) - if (.not. omp_get_dynamic ()) call abort - call omp_set_dynamic (.false.) - if (omp_get_dynamic ()) call abort - - call omp_set_nested (.true.) - if (.not. omp_get_nested ()) call abort - call omp_set_nested (.false.) - if (omp_get_nested ()) call abort - - call omp_set_num_threads (5) - if (omp_get_num_threads () .ne. 1) call abort - if (omp_get_max_threads () .ne. 5) call abort - if (omp_get_thread_num () .ne. 0) call abort - call omp_set_num_threads (3) - if (omp_get_num_threads () .ne. 1) call abort - if (omp_get_max_threads () .ne. 3) call abort - if (omp_get_thread_num () .ne. 0) call abort - l = .false. -!$omp parallel reduction (.or.:l) - l = omp_get_num_threads () .ne. 3 - l = l .or. (omp_get_thread_num () .lt. 0) - l = l .or. (omp_get_thread_num () .ge. 3) -!$omp master - l = l .or. (omp_get_thread_num () .ne. 0) -!$omp end master -!$omp end parallel - if (l) call abort - - if (omp_get_num_procs () .le. 0) call abort - if (omp_in_parallel ()) call abort -!$omp parallel reduction (.or.:l) - l = .not. omp_in_parallel () -!$omp end parallel -!$omp parallel reduction (.or.:l) if (.true.) - l = .not. omp_in_parallel () -!$omp end parallel - - e = omp_get_wtime () - if (d .gt. e) call abort - d = omp_get_wtick () - ! Negative precision is definitely wrong, - ! bigger than 1s clock resolution is also strange - if (d .le. 0 .or. d .gt. 1.) call abort -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/lib2.f b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/lib2.f deleted file mode 100644 index 755108270..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/lib2.f +++ /dev/null @@ -1,76 +0,0 @@ -C { dg-do run } - - USE OMP_LIB - - DOUBLE PRECISION :: D, E - LOGICAL :: L - INTEGER (KIND = OMP_LOCK_KIND) :: LCK - INTEGER (KIND = OMP_NEST_LOCK_KIND) :: NLCK - - D = OMP_GET_WTIME () - - CALL OMP_INIT_LOCK (LCK) - CALL OMP_SET_LOCK (LCK) - IF (OMP_TEST_LOCK (LCK)) CALL ABORT - CALL OMP_UNSET_LOCK (LCK) - IF (.NOT. OMP_TEST_LOCK (LCK)) CALL ABORT - IF (OMP_TEST_LOCK (LCK)) CALL ABORT - CALL OMP_UNSET_LOCK (LCK) - CALL OMP_DESTROY_LOCK (LCK) - - CALL OMP_INIT_NEST_LOCK (NLCK) - IF (OMP_TEST_NEST_LOCK (NLCK) .NE. 1) CALL ABORT - CALL OMP_SET_NEST_LOCK (NLCK) - IF (OMP_TEST_NEST_LOCK (NLCK) .NE. 3) CALL ABORT - CALL OMP_UNSET_NEST_LOCK (NLCK) - CALL OMP_UNSET_NEST_LOCK (NLCK) - IF (OMP_TEST_NEST_LOCK (NLCK) .NE. 2) CALL ABORT - CALL OMP_UNSET_NEST_LOCK (NLCK) - CALL OMP_UNSET_NEST_LOCK (NLCK) - CALL OMP_DESTROY_NEST_LOCK (NLCK) - - CALL OMP_SET_DYNAMIC (.TRUE.) - IF (.NOT. OMP_GET_DYNAMIC ()) CALL ABORT - CALL OMP_SET_DYNAMIC (.FALSE.) - IF (OMP_GET_DYNAMIC ()) CALL ABORT - - CALL OMP_SET_NESTED (.TRUE.) - IF (.NOT. OMP_GET_NESTED ()) CALL ABORT - CALL OMP_SET_NESTED (.FALSE.) - IF (OMP_GET_NESTED ()) CALL ABORT - - CALL OMP_SET_NUM_THREADS (5) - IF (OMP_GET_NUM_THREADS () .NE. 1) CALL ABORT - IF (OMP_GET_MAX_THREADS () .NE. 5) CALL ABORT - IF (OMP_GET_THREAD_NUM () .NE. 0) CALL ABORT - CALL OMP_SET_NUM_THREADS (3) - IF (OMP_GET_NUM_THREADS () .NE. 1) CALL ABORT - IF (OMP_GET_MAX_THREADS () .NE. 3) CALL ABORT - IF (OMP_GET_THREAD_NUM () .NE. 0) CALL ABORT - L = .FALSE. -C$OMP PARALLEL REDUCTION (.OR.:L) - L = OMP_GET_NUM_THREADS () .NE. 3 - L = L .OR. (OMP_GET_THREAD_NUM () .LT. 0) - L = L .OR. (OMP_GET_THREAD_NUM () .GE. 3) -C$OMP MASTER - L = L .OR. (OMP_GET_THREAD_NUM () .NE. 0) -C$OMP END MASTER -C$OMP END PARALLEL - IF (L) CALL ABORT - - IF (OMP_GET_NUM_PROCS () .LE. 0) CALL ABORT - IF (OMP_IN_PARALLEL ()) CALL ABORT -C$OMP PARALLEL REDUCTION (.OR.:L) - L = .NOT. OMP_IN_PARALLEL () -C$OMP END PARALLEL -C$OMP PARALLEL REDUCTION (.OR.:L) IF (.TRUE.) - L = .NOT. OMP_IN_PARALLEL () -C$OMP END PARALLEL - - E = OMP_GET_WTIME () - IF (D .GT. E) CALL ABORT - D = OMP_GET_WTICK () -C Negative precision is definitely wrong, -C bigger than 1s clock resolution is also strange - IF (D .LE. 0 .OR. D .GT. 1.) CALL ABORT - END diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/lib3.f b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/lib3.f deleted file mode 100644 index fa7b227c0..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/lib3.f +++ /dev/null @@ -1,76 +0,0 @@ -C { dg-do run } - - INCLUDE "omp_lib.h" - - DOUBLE PRECISION :: D, E - LOGICAL :: L - INTEGER (KIND = OMP_LOCK_KIND) :: LCK - INTEGER (KIND = OMP_NEST_LOCK_KIND) :: NLCK - - D = OMP_GET_WTIME () - - CALL OMP_INIT_LOCK (LCK) - CALL OMP_SET_LOCK (LCK) - IF (OMP_TEST_LOCK (LCK)) CALL ABORT - CALL OMP_UNSET_LOCK (LCK) - IF (.NOT. OMP_TEST_LOCK (LCK)) CALL ABORT - IF (OMP_TEST_LOCK (LCK)) CALL ABORT - CALL OMP_UNSET_LOCK (LCK) - CALL OMP_DESTROY_LOCK (LCK) - - CALL OMP_INIT_NEST_LOCK (NLCK) - IF (OMP_TEST_NEST_LOCK (NLCK) .NE. 1) CALL ABORT - CALL OMP_SET_NEST_LOCK (NLCK) - IF (OMP_TEST_NEST_LOCK (NLCK) .NE. 3) CALL ABORT - CALL OMP_UNSET_NEST_LOCK (NLCK) - CALL OMP_UNSET_NEST_LOCK (NLCK) - IF (OMP_TEST_NEST_LOCK (NLCK) .NE. 2) CALL ABORT - CALL OMP_UNSET_NEST_LOCK (NLCK) - CALL OMP_UNSET_NEST_LOCK (NLCK) - CALL OMP_DESTROY_NEST_LOCK (NLCK) - - CALL OMP_SET_DYNAMIC (.TRUE.) - IF (.NOT. OMP_GET_DYNAMIC ()) CALL ABORT - CALL OMP_SET_DYNAMIC (.FALSE.) - IF (OMP_GET_DYNAMIC ()) CALL ABORT - - CALL OMP_SET_NESTED (.TRUE.) - IF (.NOT. OMP_GET_NESTED ()) CALL ABORT - CALL OMP_SET_NESTED (.FALSE.) - IF (OMP_GET_NESTED ()) CALL ABORT - - CALL OMP_SET_NUM_THREADS (5) - IF (OMP_GET_NUM_THREADS () .NE. 1) CALL ABORT - IF (OMP_GET_MAX_THREADS () .NE. 5) CALL ABORT - IF (OMP_GET_THREAD_NUM () .NE. 0) CALL ABORT - CALL OMP_SET_NUM_THREADS (3) - IF (OMP_GET_NUM_THREADS () .NE. 1) CALL ABORT - IF (OMP_GET_MAX_THREADS () .NE. 3) CALL ABORT - IF (OMP_GET_THREAD_NUM () .NE. 0) CALL ABORT - L = .FALSE. -C$OMP PARALLEL REDUCTION (.OR.:L) - L = OMP_GET_NUM_THREADS () .NE. 3 - L = L .OR. (OMP_GET_THREAD_NUM () .LT. 0) - L = L .OR. (OMP_GET_THREAD_NUM () .GE. 3) -C$OMP MASTER - L = L .OR. (OMP_GET_THREAD_NUM () .NE. 0) -C$OMP END MASTER -C$OMP END PARALLEL - IF (L) CALL ABORT - - IF (OMP_GET_NUM_PROCS () .LE. 0) CALL ABORT - IF (OMP_IN_PARALLEL ()) CALL ABORT -C$OMP PARALLEL REDUCTION (.OR.:L) - L = .NOT. OMP_IN_PARALLEL () -C$OMP END PARALLEL -C$OMP PARALLEL REDUCTION (.OR.:L) IF (.TRUE.) - L = .NOT. OMP_IN_PARALLEL () -C$OMP END PARALLEL - - E = OMP_GET_WTIME () - IF (D .GT. E) CALL ABORT - D = OMP_GET_WTICK () -C Negative precision is definitely wrong, -C bigger than 1s clock resolution is also strange - IF (D .LE. 0 .OR. D .GT. 1.) CALL ABORT - END diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/nestedfn1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/nestedfn1.f90 deleted file mode 100644 index 67dadd6df..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/nestedfn1.f90 +++ /dev/null @@ -1,43 +0,0 @@ -! { dg-do run } - - integer :: a, b, c - a = 1 - b = 2 - c = 3 - call foo - if (a .ne. 7) call abort -contains - subroutine foo - use omp_lib - logical :: l - l = .false. -!$omp parallel shared (a) private (b) firstprivate (c) & -!$omp num_threads (2) reduction (.or.:l) - if (a .ne. 1 .or. c .ne. 3) l = .true. -!$omp barrier - if (omp_get_thread_num () .eq. 0) then - a = 4 - b = 5 - c = 6 - end if -!$omp barrier - if (omp_get_thread_num () .eq. 1) then - if (a .ne. 4 .or. c .ne. 3) l = .true. - a = 7 - b = 8 - c = 9 - else if (omp_get_num_threads () .eq. 1) then - a = 7 - end if -!$omp barrier - if (omp_get_thread_num () .eq. 0) then - if (a .ne. 7 .or. b .ne. 5 .or. c .ne. 6) l = .true. - end if -!$omp barrier - if (omp_get_thread_num () .eq. 1) then - if (a .ne. 7 .or. b .ne. 8 .or. c .ne. 9) l = .true. - end if -!$omp end parallel - if (l) call abort - end subroutine foo -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/nestedfn2.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/nestedfn2.f90 deleted file mode 100644 index dfb12ae66..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/nestedfn2.f90 +++ /dev/null @@ -1,34 +0,0 @@ -! { dg-do run } - - integer :: i - common /c/ i - i = -1 -!$omp parallel shared (i) num_threads (4) - call test1 -!$omp end parallel -end -subroutine test1 - integer :: vari - call test2 - call test3 -contains - subroutine test2 - use omp_lib - integer :: i - common /c/ i -!$omp single - i = omp_get_thread_num () - call test4 -!$omp end single copyprivate (vari) - end subroutine test2 - subroutine test3 - integer :: i - common /c/ i - if (i .lt. 0 .or. i .ge. 4) call abort - if (i + 10 .ne. vari) call abort - end subroutine test3 - subroutine test4 - use omp_lib - vari = omp_get_thread_num () + 10 - end subroutine test4 -end subroutine test1 diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/nestedfn3.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/nestedfn3.f90 deleted file mode 100644 index 454749c54..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/nestedfn3.f90 +++ /dev/null @@ -1,24 +0,0 @@ -! PR middle-end/28790 -! { dg-do run } - -program nestomp - integer :: j - j = 8 - call bar - if (j.ne.10) call abort -contains - subroutine foo (i) - integer :: i - !$omp atomic - j = j + i - 5 - end subroutine - subroutine bar - use omp_lib - integer :: i - i = 6 - call omp_set_dynamic (.false.) - !$omp parallel num_threads (2) - call foo(i) - !$omp end parallel - end subroutine -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_atomic1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_atomic1.f90 deleted file mode 100644 index f9ce94b9a..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_atomic1.f90 +++ /dev/null @@ -1,39 +0,0 @@ -! { dg-do run } - integer (kind = 4) :: a - integer (kind = 2) :: b - real :: c, f - double precision :: d - integer, dimension (10) :: e - a = 1 - b = 2 - c = 3 - d = 4 - e = 5 - f = 6 -!$omp atomic - a = a + 4 -!$omp atomic - b = 4 - b -!$omp atomic - c = c * 2 -!$omp atomic - d = 2 / d - if (a .ne. 5 .or. b .ne. 2 .or. c .ne. 6 .or. d .ne. 0.5) call abort - d = 1.2 -!$omp atomic - a = a + c + d -!$omp atomic - b = b - (a + c + d) - if (a .ne. 12 .or. b .ne. -17) call abort -!$omp atomic - a = c + d + a -!$omp atomic - b = a + c + d - b - if (a .ne. 19 .or. b .ne. 43) call abort -!$omp atomic - b = (a + c + d) - b - a = 32 -!$omp atomic - a = a / 3.4 - if (a .ne. 9 .or. b .ne. -16) call abort -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_atomic2.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_atomic2.f90 deleted file mode 100644 index 1dea2c8eb..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_atomic2.f90 +++ /dev/null @@ -1,54 +0,0 @@ -! { dg-do run } - real, dimension (20) :: r - integer, dimension (20) :: d - integer :: i, j, k, n - integer (kind = 2) :: a, b, c - - do 10 i = 1, 20 - r(i) = i -10 d(i) = 21 - i - - n = 20 - call foo (r, d, n) - - if (n .ne. 22) call abort - if (any (r .ne. 33)) call abort - - i = 1 - j = 18 - k = 23 -!$omp atomic - i = min (i, j, k, n) - if (i .ne. 1) call abort -!$omp atomic - i = max (j, n, k, i) - if (i .ne. 23) call abort - - a = 1 - b = 18 - c = 23 -!$omp atomic - a = min (a, b, c) - if (a .ne. 1) call abort -!$omp atomic - a = max (a, b, c) - if (a .ne. 23) call abort - -contains - function bar (i) - real bar - integer i - bar = 12.0 + i - end function bar - - subroutine foo (x, y, n) - integer i, y (*), n - real x (*) - do i = 1, n -!$omp atomic - x(y(i)) = x(y(i)) + bar (i) - end do -!$omp atomic - n = n + 2 - end subroutine foo -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_cond1.f b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_cond1.f deleted file mode 100644 index b557d9080..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_cond1.f +++ /dev/null @@ -1,22 +0,0 @@ -C Test conditional compilation in fixed form if -fopenmp -! { dg-options "-fopenmp" } - 10 foo = 2 - &56 - if (foo.ne.256) call abort - bar = 26 -!$2 0 ba -c$ +r = 42 - !$ bar = 62 -!$ bar = bar + 1 - if (bar.ne.43) call abort - baz = bar -*$ 0baz = 5 -C$ +12! Comment -c$ !4 -!$ +!Another comment -*$ &2 -!$ X baz = 0 ! Not valid OpenMP conditional compilation lines -! $ baz = 1 -c$ 10&baz = 2 - if (baz.ne.51242) call abort - end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_cond2.f b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_cond2.f deleted file mode 100644 index 6df891c6c..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_cond2.f +++ /dev/null @@ -1,22 +0,0 @@ -c Test conditional compilation in fixed form if -fno-openmp -! { dg-options "-fno-openmp" } - 10 foo = 2 - &56 - if (foo.ne.256) call abort - bar = 26 -!$2 0 ba -c$ +r = 42 - !$ bar = 62 -!$ bar = bar + 1 - if (bar.ne.26) call abort - baz = bar -*$ 0baz = 5 -C$ +12! Comment -c$ !4 -!$ +!Another comment -*$ &2 -!$ X baz = 0 ! Not valid OpenMP conditional compilation lines -! $ baz = 1 -c$ 10&baz = 2 - if (baz.ne.26) call abort - end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_cond3.F90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_cond3.F90 deleted file mode 100644 index 6c4e36e22..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_cond3.F90 +++ /dev/null @@ -1,24 +0,0 @@ -! Test conditional compilation in free form if -fopenmp -! { dg-options "-fopenmp" } - 10 foo = 2& - &56 - if (foo.ne.256) call abort - bar = 26 - !$ 20 ba& -!$ &r = 4& - !$2 - !$bar = 62 - !$ bar = bar + 2 -#ifdef _OPENMP -bar = bar - 1 -#endif - if (bar.ne.43) call abort - baz = bar -!$ 30 baz = 5& ! Comment -!$12 & - !$ + 2 -!$X baz = 0 ! Not valid OpenMP conditional compilation lines -! $ baz = 1 -baz = baz + 1 !$ baz = 2 - if (baz.ne.515) call abort - end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_cond4.F90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_cond4.F90 deleted file mode 100644 index aa4c5cb76..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_cond4.F90 +++ /dev/null @@ -1,24 +0,0 @@ -! Test conditional compilation in free form if -fno-openmp -! { dg-options "-fno-openmp" } - 10 foo = 2& - &56 - if (foo.ne.256) call abort - bar = 26 - !$ 20 ba& -!$ &r = 4& - !$2 - !$bar = 62 - !$ bar = bar + 2 -#ifdef _OPENMP -bar = bar - 1 -#endif - if (bar.ne.26) call abort - baz = bar -!$ 30 baz = 5& ! Comment -!$12 & - !$ + 2 -!$X baz = 0 ! Not valid OpenMP conditional compilation lines -! $ baz = 1 -baz = baz + 1 !$ baz = 2 - if (baz.ne.27) call abort - end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_hello.f b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_hello.f deleted file mode 100644 index ba4453126..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_hello.f +++ /dev/null @@ -1,36 +0,0 @@ -C****************************************************************************** -C FILE: omp_hello.f -C DESCRIPTION: -C OpenMP Example - Hello World - Fortran Version -C In this simple example, the master thread forks a parallel region. -C All threads in the team obtain their unique thread number and print it. -C The master thread only prints the total number of threads. Two OpenMP -C library routines are used to obtain the number of threads and each -C thread's number. -C AUTHOR: Blaise Barney 5/99 -C LAST REVISED: -C****************************************************************************** - - PROGRAM HELLO - - INTEGER NTHREADS, TID, OMP_GET_NUM_THREADS, - + OMP_GET_THREAD_NUM - -C Fork a team of threads giving them their own copies of variables -!$OMP PARALLEL PRIVATE(NTHREADS, TID) - - -C Obtain thread number - TID = OMP_GET_THREAD_NUM() - PRINT *, 'Hello World from thread = ', TID - -C Only master thread does this - IF (TID .EQ. 0) THEN - NTHREADS = OMP_GET_NUM_THREADS() - PRINT *, 'Number of threads = ', NTHREADS - END IF - -C All threads join master thread and disband -!$OMP END PARALLEL - - END diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_orphan.f b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_orphan.f deleted file mode 100644 index 7653c78d2..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_orphan.f +++ /dev/null @@ -1,44 +0,0 @@ -C****************************************************************************** -C FILE: omp_orphan.f -C DESCRIPTION: -C OpenMP Example - Parallel region with an orphaned directive - Fortran -C Version -C This example demonstrates a dot product being performed by an orphaned -C loop reduction construct. Scoping of the reduction variable is critical. -C AUTHOR: Blaise Barney 5/99 -C LAST REVISED: -C****************************************************************************** - - PROGRAM ORPHAN - COMMON /DOTDATA/ A, B, SUM - INTEGER I, VECLEN - PARAMETER (VECLEN = 100) - REAL*8 A(VECLEN), B(VECLEN), SUM - - DO I=1, VECLEN - A(I) = 1.0 * I - B(I) = A(I) - ENDDO - SUM = 0.0 -!$OMP PARALLEL - CALL DOTPROD -!$OMP END PARALLEL - WRITE(*,*) "Sum = ", SUM - END - - - - SUBROUTINE DOTPROD - COMMON /DOTDATA/ A, B, SUM - INTEGER I, TID, OMP_GET_THREAD_NUM, VECLEN - PARAMETER (VECLEN = 100) - REAL*8 A(VECLEN), B(VECLEN), SUM - - TID = OMP_GET_THREAD_NUM() -!$OMP DO REDUCTION(+:SUM) - DO I=1, VECLEN - SUM = SUM + (A(I)*B(I)) - PRINT *, ' TID= ',TID,'I= ',I - ENDDO - RETURN - END diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_parse1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_parse1.f90 deleted file mode 100644 index 9cd8cc2ba..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_parse1.f90 +++ /dev/null @@ -1,185 +0,0 @@ -! { dg-do run } -use omp_lib - call test_parallel - call test_do - call test_sections - call test_single - -contains - subroutine test_parallel - integer :: a, b, c, e, f, g, i, j - integer, dimension (20) :: d - logical :: h - a = 6 - b = 8 - c = 11 - d(:) = -1 - e = 13 - f = 24 - g = 27 - h = .false. - i = 1 - j = 16 -!$omp para& -!$omp&llel & -!$omp if (a .eq. 6) private (b, c) shared (d) private (e) & - !$omp firstprivate(f) num_threads (a - 1) first& -!$ompprivate(g)default (shared) reduction (.or. : h) & -!$omp reduction(*:i) - if (i .ne. 1) h = .true. - i = 2 - if (f .ne. 24) h = .true. - if (g .ne. 27) h = .true. - e = 7 - b = omp_get_thread_num () - if (b .eq. 0) j = 24 - f = b - g = f - c = omp_get_num_threads () - if (c .gt. a - 1 .or. c .le. 0) h = .true. - if (b .ge. c) h = .true. - d(b + 1) = c - if (f .ne. g .or. f .ne. b) h = .true. -!$omp endparallel - if (h) call abort - if (a .ne. 6) call abort - if (j .ne. 24) call abort - if (d(1) .eq. -1) call abort - e = 1 - do g = 1, d(1) - if (d(g) .ne. d(1)) call abort - e = e * 2 - end do - if (e .ne. i) call abort - end subroutine test_parallel - - subroutine test_do_orphan - integer :: k, l -!$omp parallel do private (l) - do 600 k = 1, 16, 2 -600 l = k - end subroutine test_do_orphan - - subroutine test_do - integer :: i, j, k, l, n - integer, dimension (64) :: d - logical :: m - - j = 16 - d(:) = -1 - m = .true. - n = 24 -!$omp parallel num_threads (4) shared (i, k, d) private (l) & -!$omp&reduction (.and. : m) - if (omp_get_thread_num () .eq. 0) then - k = omp_get_num_threads () - end if - call test_do_orphan -!$omp do schedule (static) firstprivate (n) - do 200 i = 1, j - if (i .eq. 1 .and. n .ne. 24) call abort - n = i -200 d(n) = omp_get_thread_num () -!$omp enddo nowait - -!$omp do lastprivate (i) schedule (static, 5) - do 201 i = j + 1, 2 * j -201 d(i) = omp_get_thread_num () + 1024 - ! Implied omp end do here - - if (i .ne. 33) m = .false. - -!$omp do private (j) schedule (dynamic) - do i = 33, 48 - d(i) = omp_get_thread_num () + 2048 - end do -!$omp end do nowait - -!$omp do schedule (runtime) - do i = 49, 4 * j - d(i) = omp_get_thread_num () + 4096 - end do - ! Implied omp end do here -!$omp end parallel - if (.not. m) call abort - - j = 0 - do i = 1, 64 - if (d(i) .lt. j .or. d(i) .ge. j + k) call abort - if (i .eq. 16) j = 1024 - if (i .eq. 32) j = 2048 - if (i .eq. 48) j = 4096 - end do - end subroutine test_do - - subroutine test_sections - integer :: i, j, k, l, m, n - i = 9 - j = 10 - k = 11 - l = 0 - m = 0 - n = 30 - call omp_set_dynamic (.false.) - call omp_set_num_threads (4) -!$omp parallel num_threads (4) -!$omp sections private (i) firstprivate (j, k) lastprivate (j) & -!$omp& reduction (+ : l, m) -!$omp section - i = 24 - if (j .ne. 10 .or. k .ne. 11 .or. m .ne. 0) l = 1 - m = m + 4 -!$omp section - i = 25 - if (j .ne. 10 .or. k .ne. 11) l = 1 - m = m + 6 -!$omp section - i = 26 - if (j .ne. 10 .or. k .ne. 11) l = 1 - m = m + 8 -!$omp section - i = 27 - if (j .ne. 10 .or. k .ne. 11) l = 1 - m = m + 10 - j = 271 -!$omp end sections nowait -!$omp sections lastprivate (n) -!$omp section - n = 6 -!$omp section - n = 7 -!$omp endsections -!$omp end parallel - if (j .ne. 271 .or. l .ne. 0) call abort - if (m .ne. 4 + 6 + 8 + 10) call abort - if (n .ne. 7) call abort - end subroutine test_sections - - subroutine test_single - integer :: i, j, k, l - logical :: m - i = 200 - j = 300 - k = 400 - l = 500 - m = .false. -!$omp parallel num_threads (4), private (i, j), reduction (.or. : m) - i = omp_get_thread_num () - j = omp_get_thread_num () -!$omp single private (k) - k = 64 -!$omp end single nowait -!$omp single private (k) firstprivate (l) - if (i .ne. omp_get_thread_num () .or. i .ne. j) then - j = -1 - else - j = -2 - end if - if (l .ne. 500) j = -1 - l = 265 -!$omp end single copyprivate (j) - if (i .ne. omp_get_thread_num () .or. j .ne. -2) m = .true. -!$omp endparallel - if (m) call abort - end subroutine test_single -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_parse2.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_parse2.f90 deleted file mode 100644 index da54a9872..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_parse2.f90 +++ /dev/null @@ -1,102 +0,0 @@ -! { dg-do run } -use omp_lib - call test_master - call test_critical - call test_barrier - call test_atomic - -contains - subroutine test_master - logical :: i, j - i = .false. - j = .false. -!$omp parallel num_threads (4) -!$omp master - i = .true. - j = omp_get_thread_num () .eq. 0 -!$omp endmaster -!$omp end parallel - if (.not. (i .or. j)) call abort - end subroutine test_master - - subroutine test_critical_1 (i, j) - integer :: i, j -!$omp critical(critical_foo) - i = i + 1 -!$omp end critical (critical_foo) -!$omp critical - j = j + 1 -!$omp end critical - end subroutine test_critical_1 - - subroutine test_critical - integer :: i, j, n - n = -1 - i = 0 - j = 0 -!$omp parallel num_threads (4) - if (omp_get_thread_num () .eq. 0) n = omp_get_num_threads () - call test_critical_1 (i, j) - call test_critical_1 (i, j) -!$omp critical - j = j + 1 -!$omp end critical -!$omp critical (critical_foo) - i = i + 1 -!$omp endcritical (critical_foo) -!$omp end parallel - if (n .lt. 1 .or. i .ne. n * 3 .or. j .ne. n * 3) call abort - end subroutine test_critical - - subroutine test_barrier - integer :: i - logical :: j - i = 23 - j = .false. -!$omp parallel num_threads (4) - if (omp_get_thread_num () .eq. 0) i = 5 -!$omp flush (i) -!$omp barrier - if (i .ne. 5) then -!$omp atomic - j = j .or. .true. - end if -!$omp end parallel - if (i .ne. 5 .or. j) call abort - end subroutine test_barrier - - subroutine test_atomic - integer :: a, b, c, d, e, f, g - a = 0 - b = 1 - c = 0 - d = 1024 - e = 1024 - f = -1 - g = -1 -!$omp parallel num_threads (8) -!$omp atomic - a = a + 2 + 4 -!$omp atomic - b = 3 * b -!$omp atomic - c = 8 - c -!$omp atomic - d = d / 2 -!$omp atomic - e = min (e, omp_get_thread_num ()) -!$omp atomic - f = max (omp_get_thread_num (), f) - if (omp_get_thread_num () .eq. 0) g = omp_get_num_threads () -!$omp end parallel - if (g .le. 0 .or. g .gt. 8) call abort - if (a .ne. 6 * g .or. b .ne. 3 ** g) call abort - if (iand (g, 1) .eq. 1) then - if (c .ne. 8) call abort - else if (c .ne. 0) then - call abort - end if - if (d .ne. 1024 / (2 ** g)) call abort - if (e .ne. 0 .or. f .ne. g - 1) call abort - end subroutine test_atomic -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_parse3.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_parse3.f90 deleted file mode 100644 index 98c94b93b..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_parse3.f90 +++ /dev/null @@ -1,95 +0,0 @@ -! { dg-do run } -! { dg-require-effective-target tls_runtime } -use omp_lib - common /tlsblock/ x, y - integer :: x, y, z - save z -!$omp threadprivate (/tlsblock/, z) - - call test_flush - call test_ordered - call test_threadprivate - -contains - subroutine test_flush - integer :: i, j - i = 0 - j = 0 -!$omp parallel num_threads (4) - if (omp_get_thread_num () .eq. 0) i = omp_get_num_threads () - if (omp_get_thread_num () .eq. 0) j = j + 1 -!$omp flush (i, j) -!$omp barrier - if (omp_get_thread_num () .eq. 1) j = j + 2 -!$omp flush -!$omp barrier - if (omp_get_thread_num () .eq. 2) j = j + 3 -!$omp flush (i) -!$omp flush (j) -!$omp barrier - if (omp_get_thread_num () .eq. 3) j = j + 4 -!$omp end parallel - end subroutine test_flush - - subroutine test_ordered - integer :: i, j - integer, dimension (100) :: d - d(:) = -1 -!$omp parallel do ordered schedule (dynamic) num_threads (4) - do i = 1, 100, 5 -!$omp ordered - d(i) = i -!$omp end ordered - end do - j = 1 - do 100 i = 1, 100 - if (i .eq. j) then - if (d(i) .ne. i) call abort - j = i + 5 - else - if (d(i) .ne. -1) call abort - end if -100 d(i) = -1 - end subroutine test_ordered - - subroutine test_threadprivate - common /tlsblock/ x, y -!$omp threadprivate (/tlsblock/) - integer :: i, j - logical :: m, n - call omp_set_num_threads (4) - call omp_set_dynamic (.false.) - i = -1 - x = 6 - y = 7 - z = 8 - n = .false. - m = .false. -!$omp parallel copyin (/tlsblock/, z) reduction (.or.:m) & -!$omp& num_threads (4) - if (omp_get_thread_num () .eq. 0) i = omp_get_num_threads () - if (x .ne. 6 .or. y .ne. 7 .or. z .ne. 8) call abort - x = omp_get_thread_num () - y = omp_get_thread_num () + 1024 - z = omp_get_thread_num () + 4096 -!$omp end parallel - if (x .ne. 0 .or. y .ne. 1024 .or. z .ne. 4096) call abort -!$omp parallel num_threads (4), private (j) reduction (.or.:n) - if (omp_get_num_threads () .eq. i) then - j = omp_get_thread_num () - if (x .ne. j .or. y .ne. j + 1024 .or. z .ne. j + 4096) & -& call abort - end if -!$omp end parallel - m = m .or. n - n = .false. -!$omp parallel num_threads (4), copyin (z) reduction (.or. : n) - if (z .ne. 4096) n = .true. - if (omp_get_num_threads () .eq. i) then - j = omp_get_thread_num () - if (x .ne. j .or. y .ne. j + 1024) call abort - end if -!$omp end parallel - if (m .or. n) call abort - end subroutine test_threadprivate -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_parse4.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_parse4.f90 deleted file mode 100644 index ba35bcb2a..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_parse4.f90 +++ /dev/null @@ -1,72 +0,0 @@ -! { dg-do run } -!$ use omp_lib - call test_workshare - -contains - subroutine test_workshare - integer :: i, j, k, l, m - double precision, dimension (64) :: d, e - integer, dimension (10) :: f, g - integer, dimension (16, 16) :: a, b, c - integer, dimension (16) :: n - d(:) = 1 - e = 7 - f = 10 - l = 256 - m = 512 - g(1:3) = -1 - g(4:6) = 0 - g(7:8) = 5 - g(9:10) = 10 - forall (i = 1:16, j = 1:16) a (i, j) = i * 16 + j - forall (j = 1:16) n (j) = j -!$omp parallel num_threads (4) private (j, k) -!$omp barrier -!$omp workshare - i = 6 - e(:) = d(:) - where (g .lt. 0) - f = 100 - elsewhere (g .eq. 0) - f = 200 + f - elsewhere - where (g .gt. 6) f = f + sum (g) - f = 300 + f - end where - where (f .gt. 210) g = 0 -!$omp end workshare nowait -!$omp workshare - forall (j = 1:16, k = 1:16) b (k, j) = a (j, k) - forall (k = 1:16) c (k, 1:16) = a (1:16, k) - forall (j = 2:16, n (17 - j) / 4 * 4 .ne. n (17 - j)) - n (j) = n (j - 1) * n (j) - end forall -!$omp endworkshare -!$omp workshare -!$omp atomic - i = i + 8 + 6 -!$omp critical -!$omp critical (critical_foox) - l = 128 -!$omp end critical (critical_foox) -!$omp endcritical -!$omp parallel num_threads (2) -!$ if (omp_get_thread_num () .eq. 0) m = omp_get_num_threads () -!$omp atomic - l = 1 + l -!$omp end parallel -!$omp end workshare -!$omp end parallel - - if (any (f .ne. (/100, 100, 100, 210, 210, 210, 310, 310, 337, 337/))) & -& call abort - if (any (g .ne. (/-1, -1, -1, 0, 0, 0, 0, 0, 0, 0/))) call abort - if (i .ne. 20) call abort -!$ if (l .ne. 128 + m) call abort - if (any (d .ne. 1 .or. e .ne. 1)) call abort - if (any (b .ne. transpose (a))) call abort - if (any (c .ne. b)) call abort - if (any (n .ne. (/1, 2, 6, 12, 5, 30, 42, 56, 9, 90, & -& 110, 132, 13, 182, 210, 240/))) call abort - end subroutine test_workshare -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_reduction.f b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_reduction.f deleted file mode 100644 index 0560bd896..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_reduction.f +++ /dev/null @@ -1,33 +0,0 @@ -C****************************************************************************** -C FILE: omp_reduction.f -C DESCRIPTION: -C OpenMP Example - Combined Parallel Loop Reduction - Fortran Version -C This example demonstrates a sum reduction within a combined parallel loop -C construct. Notice that default data element scoping is assumed - there -C are no clauses specifying shared or private variables. OpenMP will -C automatically make loop index variables private within team threads, and -C global variables shared. -C AUTHOR: Blaise Barney 5/99 -C LAST REVISED: -C****************************************************************************** - - PROGRAM REDUCTION - - INTEGER I, N - REAL A(100), B(100), SUM - -! Some initializations - N = 100 - DO I = 1, N - A(I) = I *1.0 - B(I) = A(I) - ENDDO - SUM = 0.0 - -!$OMP PARALLEL DO REDUCTION(+:SUM) - DO I = 1, N - SUM = SUM + (A(I) * B(I)) - ENDDO - - PRINT *, ' Sum = ', SUM - END diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_workshare1.f b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_workshare1.f deleted file mode 100644 index 8aef69406..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_workshare1.f +++ /dev/null @@ -1,48 +0,0 @@ -C****************************************************************************** -C FILE: omp_workshare1.f -C DESCRIPTION: -C OpenMP Example - Loop Work-sharing - Fortran Version -C In this example, the iterations of a loop are scheduled dynamically -C across the team of threads. A thread will perform CHUNK iterations -C at a time before being scheduled for the next CHUNK of work. -C AUTHOR: Blaise Barney 5/99 -C LAST REVISED: 01/09/04 -C****************************************************************************** - - PROGRAM WORKSHARE1 - - INTEGER NTHREADS, TID, OMP_GET_NUM_THREADS, - + OMP_GET_THREAD_NUM, N, CHUNKSIZE, CHUNK, I - PARAMETER (N=100) - PARAMETER (CHUNKSIZE=10) - REAL A(N), B(N), C(N) - -! Some initializations - DO I = 1, N - A(I) = I * 1.0 - B(I) = A(I) - ENDDO - CHUNK = CHUNKSIZE - -!$OMP PARALLEL SHARED(A,B,C,NTHREADS,CHUNK) PRIVATE(I,TID) - - TID = OMP_GET_THREAD_NUM() - IF (TID .EQ. 0) THEN - NTHREADS = OMP_GET_NUM_THREADS() - PRINT *, 'Number of threads =', NTHREADS - END IF - PRINT *, 'Thread',TID,' starting...' - -!$OMP DO SCHEDULE(DYNAMIC,CHUNK) - DO I = 1, N - C(I) = A(I) + B(I) - WRITE(*,100) TID,I,C(I) - 100 FORMAT(' Thread',I2,': C(',I3,')=',F8.2) - ENDDO -!$OMP END DO NOWAIT - - PRINT *, 'Thread',TID,' done.' - -!$OMP END PARALLEL - - END diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_workshare2.f b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_workshare2.f deleted file mode 100644 index 9e61da91e..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/omp_workshare2.f +++ /dev/null @@ -1,56 +0,0 @@ -C****************************************************************************** -C FILE: omp_workshare2.f -C DESCRIPTION: -C OpenMP Example - Sections Work-sharing - Fortran Version -C In this example, the OpenMP SECTION directive is used to assign -C different array operations to threads that execute a SECTION. Each -C thread receives its own copy of the result array to work with. -C AUTHOR: Blaise Barney 5/99 -C LAST REVISED: 01/09/04 -C****************************************************************************** - - PROGRAM WORKSHARE2 - - INTEGER N, I, NTHREADS, TID, OMP_GET_NUM_THREADS, - + OMP_GET_THREAD_NUM - PARAMETER (N=50) - REAL A(N), B(N), C(N) - -! Some initializations - DO I = 1, N - A(I) = I * 1.0 - B(I) = A(I) - ENDDO - -!$OMP PARALLEL SHARED(A,B,NTHREADS), PRIVATE(C,I,TID) - TID = OMP_GET_THREAD_NUM() - IF (TID .EQ. 0) THEN - NTHREADS = OMP_GET_NUM_THREADS() - PRINT *, 'Number of threads =', NTHREADS - END IF - PRINT *, 'Thread',TID,' starting...' - -!$OMP SECTIONS - -!$OMP SECTION - PRINT *, 'Thread',TID,' doing section 1' - DO I = 1, N - C(I) = A(I) + B(I) - WRITE(*,100) TID,I,C(I) - 100 FORMAT(' Thread',I2,': C(',I2,')=',F8.2) - ENDDO - -!$OMP SECTION - PRINT *, 'Thread',TID,' doing section 2' - DO I = 1+N/2, N - C(I) = A(I) * B(I) - WRITE(*,100) TID,I,C(I) - ENDDO - -!$OMP END SECTIONS NOWAIT - - PRINT *, 'Thread',TID,' done.' - -!$OMP END PARALLEL - - END diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/pr25162.f b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/pr25162.f deleted file mode 100644 index a868ea4c9..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/pr25162.f +++ /dev/null @@ -1,40 +0,0 @@ -C PR fortran/25162 -C { dg-do run } -C { dg-require-effective-target tls_runtime } - PROGRAM PR25162 - CALL TEST1 - CALL TEST2 - END - SUBROUTINE TEST1 - DOUBLE PRECISION BPRIM - COMMON /TESTCOM/ BPRIM(100) -C$OMP THREADPRIVATE(/TESTCOM/) - INTEGER I - DO I = 1, 100 - BPRIM( I ) = DBLE( I ) - END DO - RETURN - END - SUBROUTINE TEST2 - DOUBLE PRECISION BPRIM - COMMON /TESTCOM/ BPRIM(100) -C$OMP THREADPRIVATE(/TESTCOM/) - INTEGER I, IDUM(50) - DO I = 1, 50 - IDUM(I) = I - END DO -C$OMP PARALLEL COPYIN(/TESTCOM/) NUM_THREADS(4) - CALL TEST3 -C$OMP END PARALLEL - RETURN - END - SUBROUTINE TEST3 - DOUBLE PRECISION BPRIM - COMMON /TESTCOM/ BPRIM(100) -C$OMP THREADPRIVATE(/TESTCOM/) - INTEGER K - DO K = 1, 10 - IF (K.NE.BPRIM(K)) CALL ABORT - END DO - RETURN - END diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/pr25219.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/pr25219.f90 deleted file mode 100644 index 7fe1a53aa..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/pr25219.f90 +++ /dev/null @@ -1,15 +0,0 @@ -! PR fortran/25219 - - implicit none - save - integer :: i, k - k = 3 -!$omp parallel -!$omp do lastprivate (k) - do i = 1, 100 - k = i - end do -!$omp end do -!$omp end parallel - if (k .ne. 100) call abort -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/pr27395-1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/pr27395-1.f90 deleted file mode 100644 index 380a10776..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/pr27395-1.f90 +++ /dev/null @@ -1,31 +0,0 @@ -! PR fortran/27395 -! { dg-do run } - -program pr27395_1 - implicit none - integer, parameter :: n=10,m=1001 - integer :: i - integer, dimension(n) :: sumarray - call foo(n,m,sumarray) - do i=1,n - if (sumarray(i).ne.m*i) call abort - end do -end program pr27395_1 - -subroutine foo(n,m,sumarray) - use omp_lib, only : omp_get_thread_num - implicit none - integer, intent(in) :: n,m - integer, dimension(n), intent(out) :: sumarray - integer :: i,j - sumarray(:)=0 -!$OMP PARALLEL DEFAULT(shared) NUM_THREADS(4) -!$OMP DO PRIVATE(j,i), REDUCTION(+:sumarray) - do j=1,m - do i=1,n - sumarray(i)=sumarray(i)+i - end do - end do -!$OMP END DO -!$OMP END PARALLEL -end subroutine foo diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/pr27395-2.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/pr27395-2.f90 deleted file mode 100644 index b3cb255f6..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/pr27395-2.f90 +++ /dev/null @@ -1,30 +0,0 @@ -! PR fortran/27395 -! { dg-do run } - -program pr27395_2 - implicit none - integer, parameter :: n=10,m=1001 - integer :: i - call foo(n,m) -end program pr27395_2 - -subroutine foo(n,m) - use omp_lib, only : omp_get_thread_num - implicit none - integer, intent(in) :: n,m - integer :: i,j - integer, dimension(n) :: sumarray - sumarray(:)=0 -!$OMP PARALLEL DEFAULT(shared) NUM_THREADS(4) -!$OMP DO PRIVATE(j,i), REDUCTION(+:sumarray) - do j=1,m - do i=1,n - sumarray(i)=sumarray(i)+i - end do - end do -!$OMP END DO -!$OMP END PARALLEL - do i=1,n - if (sumarray(i).ne.m*i) call abort - end do -end subroutine foo diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/pr27416-1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/pr27416-1.f90 deleted file mode 100644 index d42e1ef19..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/pr27416-1.f90 +++ /dev/null @@ -1,19 +0,0 @@ -! PR middle-end/27416 -! { dg-do run } - - integer :: j - j = 6 -!$omp parallel num_threads (4) - call foo (j) -!$omp end parallel - if (j.ne.6+16) call abort -end - -subroutine foo (j) - integer :: i, j - -!$omp do firstprivate (j) lastprivate (j) - do i = 1, 16 - if (i.eq.16) j = j + i - end do -end subroutine foo diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/pr27916-1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/pr27916-1.f90 deleted file mode 100644 index 7f6b51d08..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/pr27916-1.f90 +++ /dev/null @@ -1,26 +0,0 @@ -! PR fortran/27916 -! Test whether allocatable privatized arrays has "not currently allocated" -! status at the start of OpenMP constructs. -! { dg-do run } - -program pr27916 - integer :: n, i - logical :: r - integer, dimension(:), allocatable :: a - - r = .false. -!$omp parallel do num_threads (4) private (n, a, i) & -!$omp & reduction (.or.: r) schedule (static) - do n = 1, 16 - r = r .or. allocated (a) - allocate (a (16)) - r = r .or. .not. allocated (a) - do i = 1, 16 - a (i) = i - end do - deallocate (a) - r = r .or. allocated (a) - end do - !$omp end parallel do - if (r) call abort -end program pr27916 diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/pr27916-2.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/pr27916-2.f90 deleted file mode 100644 index aa8bb0aec..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/pr27916-2.f90 +++ /dev/null @@ -1,26 +0,0 @@ -! PR fortran/27916 -! Test whether allocatable privatized arrays has "not currently allocated" -! status at the start of OpenMP constructs. -! { dg-do run } - -program pr27916 - integer :: n, i - logical :: r - integer, dimension(:), allocatable :: a - - r = .false. -!$omp parallel do num_threads (4) default (private) & -!$omp & reduction (.or.: r) schedule (static) - do n = 1, 16 - r = r .or. allocated (a) - allocate (a (16)) - r = r .or. .not. allocated (a) - do i = 1, 16 - a (i) = i - end do - deallocate (a) - r = r .or. allocated (a) - end do - !$omp end parallel do - if (r) call abort -end program pr27916 diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/pr28390.f b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/pr28390.f deleted file mode 100644 index 68fc32b6f..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/pr28390.f +++ /dev/null @@ -1,8 +0,0 @@ -! PR fortran/28390 - program pr28390 - integer i -!$omp parallel do lastprivate(i) - do i=1,100 - end do - if (i.ne.101) call abort - end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/pr29629.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/pr29629.f90 deleted file mode 100644 index 9ccddffb0..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/pr29629.f90 +++ /dev/null @@ -1,20 +0,0 @@ -! PR fortran/29629 -! { dg-do run } - -program pr29629 - integer :: n - n = 10000 - if (any (func(n).ne.10000)) call abort - contains - function func(n) - integer, intent(in) :: n - integer, dimension(n) :: func - integer :: k - func = 0 -!$omp parallel do private(k), reduction(+:func), num_threads(4) - do k = 1, n - func = func + 1 - end do -!$omp end parallel do - end function -end program diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/reduction1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/reduction1.f90 deleted file mode 100644 index d6ceb0814..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/reduction1.f90 +++ /dev/null @@ -1,181 +0,0 @@ -! { dg-do run } -!$ use omp_lib - - integer :: i, ia (6), n, cnt - real :: r, ra (4) - double precision :: d, da (5) - complex :: c, ca (3) - logical :: v - - i = 1 - ia = 2 - r = 3 - ra = 4 - d = 5.5 - da = 6.5 - c = cmplx (7.5, 1.5) - ca = cmplx (8.5, -3.0) - v = .false. - cnt = -1 - -!$omp parallel num_threads (3) private (n) reduction (.or.:v) & -!$omp & reduction (+:i, ia, r, ra, d, da, c, ca) -!$ if (i .ne. 0 .or. any (ia .ne. 0)) v = .true. -!$ if (r .ne. 0 .or. any (ra .ne. 0)) v = .true. -!$ if (d .ne. 0 .or. any (da .ne. 0)) v = .true. -!$ if (c .ne. cmplx (0) .or. any (ca .ne. cmplx (0))) v = .true. - n = omp_get_thread_num () - if (n .eq. 0) then - cnt = omp_get_num_threads () - i = 4 - ia(3:5) = -2 - r = 5 - ra(1:2) = 6.5 - d = -2.5 - da(2:4) = 8.5 - c = cmplx (2.5, -3.5) - ca(1) = cmplx (4.5, 5) - else if (n .eq. 1) then - i = 2 - ia(4:6) = 5 - r = 1 - ra(2:4) = -1.5 - d = 8.5 - da(1:3) = 2.5 - c = cmplx (0.5, -3) - ca(2:3) = cmplx (-1, 6) - else - i = 1 - ia = 1 - r = -1 - ra = -1 - d = 1 - da = -1 - c = 1 - ca = cmplx (-1, 0) - end if -!$omp end parallel - if (v) call abort - if (cnt .eq. 3) then - if (i .ne. 8 .or. any (ia .ne. (/3, 3, 1, 6, 6, 8/))) call abort - if (r .ne. 8 .or. any (ra .ne. (/9.5, 8.0, 1.5, 1.5/))) call abort - if (d .ne. 12.5 .or. any (da .ne. (/8.0, 16.5, 16.5, 14.0, 5.5/))) call abort - if (c .ne. cmplx (11.5, -5)) call abort - if (ca(1) .ne. cmplx (12, 2)) call abort - if (ca(2) .ne. cmplx (6.5, 3) .or. ca(2) .ne. ca(3)) call abort - end if - - i = 1 - ia = 2 - r = 3 - ra = 4 - d = 5.5 - da = 6.5 - c = cmplx (7.5, 1.5) - ca = cmplx (8.5, -3.0) - v = .false. - cnt = -1 - -!$omp parallel num_threads (3) private (n) reduction (.or.:v) & -!$omp & reduction (-:i, ia, r, ra, d, da, c, ca) -!$ if (i .ne. 0 .or. any (ia .ne. 0)) v = .true. -!$ if (r .ne. 0 .or. any (ra .ne. 0)) v = .true. -!$ if (d .ne. 0 .or. any (da .ne. 0)) v = .true. -!$ if (c .ne. cmplx (0) .or. any (ca .ne. cmplx (0))) v = .true. - n = omp_get_thread_num () - if (n .eq. 0) then - cnt = omp_get_num_threads () - i = 4 - ia(3:5) = -2 - r = 5 - ra(1:2) = 6.5 - d = -2.5 - da(2:4) = 8.5 - c = cmplx (2.5, -3.5) - ca(1) = cmplx (4.5, 5) - else if (n .eq. 1) then - i = 2 - ia(4:6) = 5 - r = 1 - ra(2:4) = -1.5 - d = 8.5 - da(1:3) = 2.5 - c = cmplx (0.5, -3) - ca(2:3) = cmplx (-1, 6) - else - i = 1 - ia = 1 - r = -1 - ra = -1 - d = 1 - da = -1 - c = 1 - ca = cmplx (-1, 0) - end if -!$omp end parallel - if (v) call abort - if (cnt .eq. 3) then - if (i .ne. 8 .or. any (ia .ne. (/3, 3, 1, 6, 6, 8/))) call abort - if (r .ne. 8 .or. any (ra .ne. (/9.5, 8.0, 1.5, 1.5/))) call abort - if (d .ne. 12.5 .or. any (da .ne. (/8.0, 16.5, 16.5, 14.0, 5.5/))) call abort - if (c .ne. cmplx (11.5, -5)) call abort - if (ca(1) .ne. cmplx (12, 2)) call abort - if (ca(2) .ne. cmplx (6.5, 3) .or. ca(2) .ne. ca(3)) call abort - end if - - i = 1 - ia = 2 - r = 4 - ra = 8 - d = 16 - da = 32 - c = 2 - ca = cmplx (0, 2) - v = .false. - cnt = -1 - -!$omp parallel num_threads (3) private (n) reduction (.or.:v) & -!$omp & reduction (*:i, ia, r, ra, d, da, c, ca) -!$ if (i .ne. 1 .or. any (ia .ne. 1)) v = .true. -!$ if (r .ne. 1 .or. any (ra .ne. 1)) v = .true. -!$ if (d .ne. 1 .or. any (da .ne. 1)) v = .true. -!$ if (c .ne. cmplx (1) .or. any (ca .ne. cmplx (1))) v = .true. - n = omp_get_thread_num () - if (n .eq. 0) then - cnt = omp_get_num_threads () - i = 3 - ia(3:5) = 2 - r = 0.5 - ra(1:2) = 2 - d = -1 - da(2:4) = -2 - c = 2.5 - ca(1) = cmplx (-5, 0) - else if (n .eq. 1) then - i = 2 - ia(4:6) = -2 - r = 8 - ra(2:4) = -0.5 - da(1:3) = -1 - c = -3 - ca(2:3) = cmplx (0, -1) - else - ia = 2 - r = 0.5 - ra = 0.25 - d = 2.5 - da = -1 - c = cmplx (0, -1) - ca = cmplx (-1, 0) - end if -!$omp end parallel - if (v) call abort - if (cnt .eq. 3) then - if (i .ne. 6 .or. any (ia .ne. (/4, 4, 8, -16, -16, -8/))) call abort - if (r .ne. 8 .or. any (ra .ne. (/4., -2., -1., -1./))) call abort - if (d .ne. -40 .or. any (da .ne. (/32., -64., -64., 64., -32./))) call abort - if (c .ne. cmplx (0, 15)) call abort - if (ca(1) .ne. cmplx (0, 10)) call abort - if (ca(2) .ne. cmplx (-2, 0) .or. ca(2) .ne. ca(3)) call abort - end if -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/reduction2.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/reduction2.f90 deleted file mode 100644 index 9bdeb77de..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/reduction2.f90 +++ /dev/null @@ -1,73 +0,0 @@ -! { dg-do run } -!$ use omp_lib - - logical :: l, la (4), m, ma (4), v - integer :: n, cnt - - l = .true. - la = (/.true., .false., .true., .true./) - m = .false. - ma = (/.false., .false., .false., .true./) - v = .false. - cnt = -1 - -!$omp parallel num_threads (3) private (n) reduction (.or.:v) & -!$omp & reduction (.and.:l, la) reduction (.or.:m, ma) -!$ if (.not. l .or. any (.not. la)) v = .true. -!$ if (m .or. any (ma)) v = .true. - n = omp_get_thread_num () - if (n .eq. 0) then - cnt = omp_get_num_threads () - l = .false. - la(3) = .false. - ma(2) = .true. - else if (n .eq. 1) then - l = .false. - la(4) = .false. - ma(1) = .true. - else - la(3) = .false. - m = .true. - ma(1) = .true. - end if -!$omp end parallel - if (v) call abort - if (cnt .eq. 3) then - if (l .or. any (la .neqv. (/.true., .false., .false., .false./))) call abort - if (.not. m .or. any (ma .neqv. (/.true., .true., .false., .true./))) call abort - end if - - l = .true. - la = (/.true., .false., .true., .true./) - m = .false. - ma = (/.false., .false., .false., .true./) - v = .false. - cnt = -1 - -!$omp parallel num_threads (3) private (n) reduction (.or.:v) & -!$omp & reduction (.eqv.:l, la) reduction (.neqv.:m, ma) -!$ if (.not. l .or. any (.not. la)) v = .true. -!$ if (m .or. any (ma)) v = .true. - n = omp_get_thread_num () - if (n .eq. 0) then - cnt = omp_get_num_threads () - l = .false. - la(3) = .false. - ma(2) = .true. - else if (n .eq. 1) then - l = .false. - la(4) = .false. - ma(1) = .true. - else - la(3) = .false. - m = .true. - ma(1) = .true. - end if -!$omp end parallel - if (v) call abort - if (cnt .eq. 3) then - if (.not. l .or. any (la .neqv. (/.true., .false., .true., .false./))) call abort - if (.not. m .or. any (ma .neqv. (/.false., .true., .false., .true./))) call abort - end if - -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/reduction3.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/reduction3.f90 deleted file mode 100644 index 89b9d1af6..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/reduction3.f90 +++ /dev/null @@ -1,103 +0,0 @@ -! { dg-do run } -!$ use omp_lib - - integer (kind = 4) :: i, ia (6), n, cnt - real :: r, ra (4) - double precision :: d, da (5) - logical :: v - - i = 1 - ia = 2 - r = 3 - ra = 4 - d = 5.5 - da = 6.5 - v = .false. - cnt = -1 - -!$omp parallel num_threads (3) private (n) reduction (.or.:v) & -!$omp & reduction (max:i, ia, r, ra, d, da) -!$ if (i .ne. -huge(i)-1 .or. any (ia .ne. -huge(ia)-1)) v = .true. -!$ if (r .ge. -1.0d38 .or. any (ra .ge. -1.0d38)) v = .true. -!$ if (d .ge. -1.0d300 .or. any (da .ge. -1.0d300)) v = .true. - n = omp_get_thread_num () - if (n .eq. 0) then - cnt = omp_get_num_threads () - i = 4 - ia(3:5) = -2 - ia(1) = 7 - r = 5 - ra(1:2) = 6.5 - d = -2.5 - da(2:4) = 8.5 - else if (n .eq. 1) then - i = 2 - ia(4:6) = 5 - r = 1 - ra(2:4) = -1.5 - d = 8.5 - da(1:3) = 2.5 - else - i = 1 - ia = 1 - r = -1 - ra = -1 - d = 1 - da = -1 - end if -!$omp end parallel - if (v) call abort - if (cnt .eq. 3) then - if (i .ne. 4 .or. any (ia .ne. (/7, 2, 2, 5, 5, 5/))) call abort - if (r .ne. 5 .or. any (ra .ne. (/6.5, 6.5, 4., 4./))) call abort - if (d .ne. 8.5 .or. any (da .ne. (/6.5, 8.5, 8.5, 8.5, 6.5/))) call abort - end if - - i = 1 - ia = 2 - r = 3 - ra = 4 - d = 5.5 - da = 6.5 - v = .false. - cnt = -1 - -!$omp parallel num_threads (3) private (n) reduction (.or.:v) & -!$omp & reduction (min:i, ia, r, ra, d, da) -!$ if (i .ne. 2147483647 .or. any (ia .ne. 2147483647)) v = .true. -!$ if (r .le. 1.0d38 .or. any (ra .le. 1.0d38)) v = .true. -!$ if (d .le. 1.0d300 .or. any (da .le. 1.0d300)) v = .true. - n = omp_get_thread_num () - if (n .eq. 0) then - cnt = omp_get_num_threads () - i = 4 - ia(3:5) = -2 - ia(1) = 7 - r = 5 - ra(1:2) = 6.5 - d = -2.5 - da(2:4) = 8.5 - else if (n .eq. 1) then - i = 2 - ia(4:6) = 5 - r = 1 - ra(2:4) = -1.5 - d = 8.5 - da(1:3) = 2.5 - else - i = 1 - ia = 1 - r = -1 - ra = 7 - ra(3) = -8.5 - d = 1 - da(1:4) = 6 - end if -!$omp end parallel - if (v) call abort - if (cnt .eq. 3) then - if (i .ne. 1 .or. any (ia .ne. (/1, 1, -2, -2, -2, 1/))) call abort - if (r .ne. -1 .or. any (ra .ne. (/4., -1.5, -8.5, -1.5/))) call abort - if (d .ne. -2.5 .or. any (da .ne. (/2.5, 2.5, 2.5, 6., 6.5/))) call abort - end if -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/reduction4.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/reduction4.f90 deleted file mode 100644 index bb1ed0e20..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/reduction4.f90 +++ /dev/null @@ -1,56 +0,0 @@ -! { dg-do run } -!$ use omp_lib - - integer (kind = 4) :: i, ia (6), j, ja (6), k, ka (6), ta (6), n, cnt, x - logical :: v - - i = Z'ffff0f' - ia = Z'f0ff0f' - j = Z'0f0000' - ja = Z'0f5a00' - k = Z'055aa0' - ka = Z'05a5a5' - v = .false. - cnt = -1 - x = not(0) - -!$omp parallel num_threads (3) private (n) reduction (.or.:v) & -!$omp & reduction (iand:i, ia) reduction (ior:j, ja) reduction (ieor:k, ka) -!$ if (i .ne. x .or. any (ia .ne. x)) v = .true. -!$ if (j .ne. 0 .or. any (ja .ne. 0)) v = .true. -!$ if (k .ne. 0 .or. any (ka .ne. 0)) v = .true. - n = omp_get_thread_num () - if (n .eq. 0) then - cnt = omp_get_num_threads () - i = Z'ff7fff' - ia(3:5) = Z'fffff1' - j = Z'078000' - ja(1:3) = 1 - k = Z'78' - ka(3:6) = Z'f0f' - else if (n .eq. 1) then - i = Z'ffff77' - ia(2:5) = Z'ffafff' - j = Z'007800' - ja(2:5) = 8 - k = Z'57' - ka(3:4) = Z'f0108' - else - i = Z'777fff' - ia(1:2) = Z'fffff3' - j = Z'000780' - ja(5:6) = Z'f00' - k = Z'1000' - ka(6:6) = Z'777' - end if -!$omp end parallel - if (v) call abort - if (cnt .eq. 3) then - ta = (/Z'f0ff03', Z'f0af03', Z'f0af01', Z'f0af01', Z'f0af01', Z'f0ff0f'/) - if (i .ne. Z'777f07' .or. any (ia .ne. ta)) call abort - ta = (/Z'f5a01', Z'f5a09', Z'f5a09', Z'f5a08', Z'f5f08', Z'f5f00'/) - if (j .ne. Z'fff80' .or. any (ja .ne. ta)) call abort - ta = (/Z'5a5a5', Z'5a5a5', Z'aaba2', Z'aaba2', Z'5aaaa', Z'5addd'/) - if (k .ne. Z'54a8f' .or. any (ka .ne. ta)) call abort - end if -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/reduction5.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/reduction5.f90 deleted file mode 100644 index bfdd43a93..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/reduction5.f90 +++ /dev/null @@ -1,41 +0,0 @@ -! { dg-do run } - -module reduction5 - intrinsic ior, min, max -end module reduction5 - - call test1 - call test2 -contains - subroutine test1 - use reduction5, bitwise_or => ior - integer :: n - n = Z'f' -!$omp parallel sections num_threads (3) reduction (bitwise_or: n) - n = ior (n, Z'20') -!$omp section - n = bitwise_or (Z'410', n) -!$omp section - n = bitwise_or (n, Z'2000') -!$omp end parallel sections - if (n .ne. Z'243f') call abort - end subroutine - subroutine test2 - use reduction5, min => max, max => min - integer :: m, n - m = 8 - n = 4 -!$omp parallel sections num_threads (3) reduction (min: n) & -!$omp & reduction (max: m) - if (m .gt. 13) m = 13 - if (n .lt. 11) n = 11 -!$omp section - if (m .gt. 5) m = 5 - if (n .lt. 15) n = 15 -!$omp section - if (m .gt. 3) m = 3 - if (n .lt. -1) n = -1 -!$omp end parallel sections - if (m .ne. 3 .or. n .ne. 15) call abort - end subroutine test2 -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/reduction6.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/reduction6.f90 deleted file mode 100644 index 9f3ec6ca8..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/reduction6.f90 +++ /dev/null @@ -1,32 +0,0 @@ -! { dg-do run } - - integer, dimension (6, 6) :: a - character (36) :: c - integer nthreads - a = 9 - nthreads = -1 - call foo (a (2:4, 3:5), nthreads) - if (nthreads .eq. 3) then - write (c, '(36i1)') a - if (c .ne. '999999999999966699966699966699999999') call abort - end if -contains - subroutine foo (b, nthreads) - use omp_lib - integer, dimension (3:, 5:) :: b - integer :: err, nthreads - b = 0 - err = 0 -!$omp parallel num_threads (3) reduction (+:b) - if (any (b .ne. 0)) then -!$omp atomic - err = err + 1 - end if -!$omp master - nthreads = omp_get_num_threads () -!$omp end master - b = 2 -!$omp end parallel - if (err .gt. 0) call abort - end subroutine foo -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/reference1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/reference1.f90 deleted file mode 100644 index b959e2716..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/reference1.f90 +++ /dev/null @@ -1,34 +0,0 @@ -! { dg-do run } -!$ use omp_lib - - integer :: i, j, k - double precision :: d - i = 6 - j = 19 - k = 0 - d = 24.5 - call test (i, j, k, d) - if (i .ne. 38) call abort - if (iand (k, 255) .ne. 0) call abort - if (iand (k, 65280) .eq. 0) then - if (k .ne. 65536 * 4) call abort - end if -contains - subroutine test (i, j, k, d) - integer :: i, j, k - double precision :: d - -!$omp parallel firstprivate (d) private (j) num_threads (4) reduction (+:k) - if (i .ne. 6 .or. d .ne. 24.5 .or. k .ne. 0) k = k + 1 - if (omp_get_num_threads () .ne. 4) k = k + 256 - d = d / 2 - j = 8 - k = k + 65536 -!$omp barrier - if (d .ne. 12.25 .or. j .ne. 8) k = k + 1 -!$omp single - i = i + 32 -!$omp end single nowait -!$omp end parallel - end subroutine test -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/reference2.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/reference2.f90 deleted file mode 100644 index 1232b6926..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/reference2.f90 +++ /dev/null @@ -1,21 +0,0 @@ -! { dg-do run } - real, dimension (5) :: b - b = 5 - call foo (b) -contains - subroutine foo (a) - real, dimension (5) :: a - logical :: l - l = .false. -!$omp parallel private (a) reduction (.or.:l) - a = 15 - l = bar (a) -!$omp end parallel - if (l) call abort - end subroutine - function bar (a) - real, dimension (5) :: a - logical :: bar - bar = any (a .ne. 15) - end function -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/retval1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/retval1.f90 deleted file mode 100644 index 8bb07f8fc..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/retval1.f90 +++ /dev/null @@ -1,120 +0,0 @@ -! { dg-do run } - -function f1 () - use omp_lib - real :: f1 - logical :: l - f1 = 6.5 - l = .false. -!$omp parallel firstprivate (f1) num_threads (2) reduction (.or.:l) - l = f1 .ne. 6.5 - if (omp_get_thread_num () .eq. 0) f1 = 8.5 - if (omp_get_thread_num () .eq. 1) f1 = 14.5 -!$omp barrier - l = l .or. (omp_get_thread_num () .eq. 0 .and. f1 .ne. 8.5) - l = l .or. (omp_get_thread_num () .eq. 1 .and. f1 .ne. 14.5) -!$omp end parallel - if (l) call abort - f1 = -2.5 -end function f1 -function f2 () - use omp_lib - real :: f2, e2 - logical :: l -entry e2 () - f2 = 6.5 - l = .false. -!$omp parallel firstprivate (e2) num_threads (2) reduction (.or.:l) - l = e2 .ne. 6.5 - if (omp_get_thread_num () .eq. 0) e2 = 8.5 - if (omp_get_thread_num () .eq. 1) e2 = 14.5 -!$omp barrier - l = l .or. (omp_get_thread_num () .eq. 0 .and. e2 .ne. 8.5) - l = l .or. (omp_get_thread_num () .eq. 1 .and. e2 .ne. 14.5) -!$omp end parallel - if (l) call abort - e2 = 7.5 -end function f2 -function f3 () - use omp_lib - real :: f3, e3 - logical :: l -entry e3 () - f3 = 6.5 - l = .false. -!$omp parallel firstprivate (f3, e3) num_threads (2) reduction (.or.:l) - l = e3 .ne. 6.5 - l = l .or. f3 .ne. 6.5 - if (omp_get_thread_num () .eq. 0) e3 = 8.5 - if (omp_get_thread_num () .eq. 1) e3 = 14.5 - f3 = e3 - 4.5 -!$omp barrier - l = l .or. (omp_get_thread_num () .eq. 0 .and. e3 .ne. 8.5) - l = l .or. (omp_get_thread_num () .eq. 1 .and. e3 .ne. 14.5) - l = l .or. f3 .ne. e3 - 4.5 -!$omp end parallel - if (l) call abort - e3 = 0.5 -end function f3 -function f4 () result (r4) - use omp_lib - real :: r4, s4 - logical :: l -entry e4 () result (s4) - r4 = 6.5 - l = .false. -!$omp parallel firstprivate (r4, s4) num_threads (2) reduction (.or.:l) - l = s4 .ne. 6.5 - l = l .or. r4 .ne. 6.5 - if (omp_get_thread_num () .eq. 0) s4 = 8.5 - if (omp_get_thread_num () .eq. 1) s4 = 14.5 - r4 = s4 - 4.5 -!$omp barrier - l = l .or. (omp_get_thread_num () .eq. 0 .and. s4 .ne. 8.5) - l = l .or. (omp_get_thread_num () .eq. 1 .and. s4 .ne. 14.5) - l = l .or. r4 .ne. s4 - 4.5 -!$omp end parallel - if (l) call abort - s4 = -0.5 -end function f4 -function f5 (is_f5) - use omp_lib - real :: f5 - integer :: e5 - logical :: l, is_f5 -entry e5 (is_f5) - if (is_f5) then - f5 = 6.5 - else - e5 = 8 - end if - l = .false. -!$omp parallel firstprivate (f5, e5) shared (is_f5) num_threads (2) & -!$omp reduction (.or.:l) - l = .not. is_f5 .and. e5 .ne. 8 - l = l .or. (is_f5 .and. f5 .ne. 6.5) - if (omp_get_thread_num () .eq. 0) e5 = 8 - if (omp_get_thread_num () .eq. 1) e5 = 14 - f5 = e5 - 4.5 -!$omp barrier - l = l .or. (omp_get_thread_num () .eq. 0 .and. e5 .ne. 8) - l = l .or. (omp_get_thread_num () .eq. 1 .and. e5 .ne. 14) - l = l .or. f5 .ne. e5 - 4.5 -!$omp end parallel - if (l) call abort - if (is_f5) f5 = -2.5 - if (.not. is_f5) e5 = 8 -end function f5 - - real :: f1, f2, e2, f3, e3, f4, e4, f5 - integer :: e5 - if (f1 () .ne. -2.5) call abort - if (f2 () .ne. 7.5) call abort - if (e2 () .ne. 7.5) call abort - if (f3 () .ne. 0.5) call abort - if (e3 () .ne. 0.5) call abort - if (f4 () .ne. -0.5) call abort - if (e4 () .ne. -0.5) call abort - if (f5 (.true.) .ne. -2.5) call abort - if (e5 (.false.) .ne. 8) call abort -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/retval2.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/retval2.f90 deleted file mode 100644 index 92da15f58..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/retval2.f90 +++ /dev/null @@ -1,27 +0,0 @@ -! { dg-do run } - -function f1 () - real :: f1 - f1 = 6.5 - call sub1 -contains - subroutine sub1 - use omp_lib - logical :: l - l = .false. -!$omp parallel firstprivate (f1) num_threads (2) reduction (.or.:l) - l = f1 .ne. 6.5 - if (omp_get_thread_num () .eq. 0) f1 = 8.5 - if (omp_get_thread_num () .eq. 1) f1 = 14.5 -!$omp barrier - l = l .or. (omp_get_thread_num () .eq. 0 .and. f1 .ne. 8.5) - l = l .or. (omp_get_thread_num () .eq. 1 .and. f1 .ne. 14.5) -!$omp end parallel - if (l) call abort - f1 = -2.5 - end subroutine sub1 -end function f1 - - real :: f1 - if (f1 () .ne. -2.5) call abort -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/sharing1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/sharing1.f90 deleted file mode 100644 index 063e7db83..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/sharing1.f90 +++ /dev/null @@ -1,29 +0,0 @@ -! { dg-do run } - - use omp_lib - integer :: i, j, k - logical :: l - common /b/ i, j - i = 4 - j = 8 - l = .false. -!$omp parallel private (k) firstprivate (i) shared (j) num_threads (2) & -!$omp& reduction (.or.:l) - if (i .ne. 4 .or. j .ne. 8) l = .true. -!$omp barrier - k = omp_get_thread_num () - if (k .eq. 0) then - i = 14 - j = 15 - end if -!$omp barrier - if (k .eq. 1) then - if (i .ne. 4 .or. j .ne. 15) l = .true. - i = 24 - j = 25 - end if -!$omp barrier - if (j .ne. 25 .or. i .ne. (k * 10 + 14)) l = .true. -!$omp end parallel - if (l .or. j .ne. 25) call abort -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/sharing2.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/sharing2.f90 deleted file mode 100644 index 266dd46fa..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/sharing2.f90 +++ /dev/null @@ -1,32 +0,0 @@ -! { dg-do run } - - use omp_lib - integer :: i, j, k, m, n - logical :: l - equivalence (i, m) - equivalence (j, n) - i = 4 - j = 8 - l = .false. -!$omp parallel private (k) firstprivate (i) shared (j) num_threads (2) & -!$omp& reduction (.or.:l) - l = l .or. i .ne. 4 - l = l .or. j .ne. 8 -!$omp barrier - k = omp_get_thread_num () - if (k .eq. 0) then - i = 14 - j = 15 - end if -!$omp barrier - if (k .eq. 1) then - if (i .ne. 4 .or. j .ne. 15) l = .true. - i = 24 - j = 25 - end if -!$omp barrier - if (j .ne. 25 .or. i .ne. (k * 10 + 14)) l = .true. -!$omp end parallel - if (l) call abort - if (j .ne. 25) call abort -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/threadprivate1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/threadprivate1.f90 deleted file mode 100644 index 99a201855..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/threadprivate1.f90 +++ /dev/null @@ -1,19 +0,0 @@ -! { dg-do run } -! { dg-require-effective-target tls_runtime } - -module threadprivate1 - double precision :: d -!$omp threadprivate (d) -end module threadprivate1 - -!$ use omp_lib - use threadprivate1 - logical :: l - l = .false. -!$omp parallel num_threads (4) reduction (.or.:l) - d = omp_get_thread_num () + 6.5 -!$omp barrier - if (d .ne. omp_get_thread_num () + 6.5) l = .true. -!$omp end parallel - if (l) call abort () -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/threadprivate2.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/threadprivate2.f90 deleted file mode 100644 index f3a4af0fc..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/threadprivate2.f90 +++ /dev/null @@ -1,94 +0,0 @@ -! { dg-do run } -! { dg-require-effective-target tls_runtime } - -module threadprivate2 - integer, dimension(:,:), allocatable :: foo -!$omp threadprivate (foo) -end module threadprivate2 - - use omp_lib - use threadprivate2 - - integer, dimension(:), pointer :: bar1 - integer, dimension(2), target :: bar2 - common /thrc/ bar1, bar2 -!$omp threadprivate (/thrc/) - - integer, dimension(:), pointer, save :: bar3 => NULL() -!$omp threadprivate (bar3) - - logical :: l - type tt - integer :: a - integer :: b = 32 - end type tt - type (tt), save :: baz -!$omp threadprivate (baz) - - l = .false. - call omp_set_dynamic (.false.) - call omp_set_num_threads (4) - -!$omp parallel num_threads (4) reduction (.or.:l) - l = allocated (foo) - allocate (foo (6 + omp_get_thread_num (), 3)) - l = l.or..not.allocated (foo) - l = l.or.size (foo).ne.(18 + 3 * omp_get_thread_num ()) - foo = omp_get_thread_num () + 1 - - bar2 = omp_get_thread_num () - l = l.or.associated (bar3) - bar1 => bar2 - l = l.or..not.associated (bar1) - l = l.or..not.associated (bar1, bar2) - l = l.or.any (bar1.ne.omp_get_thread_num ()) - nullify (bar1) - l = l.or.associated (bar1) - allocate (bar3 (4)) - l = l.or..not.associated (bar3) - bar3 = omp_get_thread_num () - 2 - - l = l.or.(baz%b.ne.32) - baz%a = omp_get_thread_num () * 2 - baz%b = omp_get_thread_num () * 2 + 1 -!$omp end parallel - - if (l) call abort - if (.not.allocated (foo)) call abort - if (size (foo).ne.18) call abort - if (any (foo.ne.1)) call abort - - if (associated (bar1)) call abort - if (.not.associated (bar3)) call abort - if (any (bar3 .ne. -2)) call abort - deallocate (bar3) - if (associated (bar3)) call abort - -!$omp parallel num_threads (4) reduction (.or.:l) - l = l.or..not.allocated (foo) - l = l.or.size (foo).ne.(18 + 3 * omp_get_thread_num ()) - l = l.or.any (foo.ne.(omp_get_thread_num () + 1)) - if (omp_get_thread_num () .ne. 0) then - deallocate (foo) - l = l.or.allocated (foo) - end if - - l = l.or.associated (bar1) - if (omp_get_thread_num () .ne. 0) then - l = l.or..not.associated (bar3) - l = l.or.any (bar3 .ne. omp_get_thread_num () - 2) - deallocate (bar3) - end if - l = l.or.associated (bar3) - - l = l.or.(baz%a.ne.(omp_get_thread_num () * 2)) - l = l.or.(baz%b.ne.(omp_get_thread_num () * 2 + 1)) -!$omp end parallel - - if (l) call abort - if (.not.allocated (foo)) call abort - if (size (foo).ne.18) call abort - if (any (foo.ne.1)) call abort - deallocate (foo) - if (allocated (foo)) call abort -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/threadprivate3.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/threadprivate3.f90 deleted file mode 100644 index d20a6520a..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/threadprivate3.f90 +++ /dev/null @@ -1,106 +0,0 @@ -! { dg-do run } -! { dg-require-effective-target tls_runtime } - -module threadprivate3 - integer, dimension(:,:), pointer :: foo => NULL() -!$omp threadprivate (foo) -end module threadprivate3 - - use omp_lib - use threadprivate3 - - integer, dimension(:), pointer :: bar1 - integer, dimension(2), target :: bar2, var - common /thrc/ bar1, bar2 -!$omp threadprivate (/thrc/) - - integer, dimension(:), pointer, save :: bar3 => NULL() -!$omp threadprivate (bar3) - - logical :: l - type tt - integer :: a - integer :: b = 32 - end type tt - type (tt), save :: baz -!$omp threadprivate (baz) - - l = .false. - call omp_set_dynamic (.false.) - call omp_set_num_threads (4) - var = 6 - -!$omp parallel num_threads (4) reduction (.or.:l) - bar2 = omp_get_thread_num () - l = associated (bar3) - bar1 => bar2 - l = l.or..not.associated (bar1) - l = l.or..not.associated (bar1, bar2) - l = l.or.any (bar1.ne.omp_get_thread_num ()) - nullify (bar1) - l = l.or.associated (bar1) - allocate (bar3 (4)) - l = l.or..not.associated (bar3) - bar3 = omp_get_thread_num () - 2 - if (omp_get_thread_num () .ne. 0) then - deallocate (bar3) - if (associated (bar3)) call abort - else - bar1 => var - end if - bar2 = omp_get_thread_num () * 6 + 130 - - l = l.or.(baz%b.ne.32) - baz%a = omp_get_thread_num () * 2 - baz%b = omp_get_thread_num () * 2 + 1 -!$omp end parallel - - if (l) call abort - if (.not.associated (bar1)) call abort - if (any (bar1.ne.6)) call abort - if (.not.associated (bar3)) call abort - if (any (bar3 .ne. -2)) call abort - deallocate (bar3) - if (associated (bar3)) call abort - - allocate (bar3 (10)) - bar3 = 17 - -!$omp parallel copyin (bar1, bar2, bar3, baz) num_threads (4) & -!$omp& reduction (.or.:l) - l = l.or..not.associated (bar1) - l = l.or.any (bar1.ne.6) - l = l.or.any (bar2.ne.130) - l = l.or..not.associated (bar3) - l = l.or.size (bar3).ne.10 - l = l.or.any (bar3.ne.17) - allocate (bar1 (4)) - bar1 = omp_get_thread_num () - bar2 = omp_get_thread_num () + 8 - - l = l.or.(baz%a.ne.0) - l = l.or.(baz%b.ne.1) - baz%a = omp_get_thread_num () * 3 + 4 - baz%b = omp_get_thread_num () * 3 + 5 - -!$omp barrier - if (omp_get_thread_num () .eq. 0) then - deallocate (bar3) - end if - bar3 => bar2 -!$omp barrier - - l = l.or..not.associated (bar1) - l = l.or..not.associated (bar3) - l = l.or.any (bar1.ne.omp_get_thread_num ()) - l = l.or.size (bar1).ne.4 - l = l.or.any (bar2.ne.omp_get_thread_num () + 8) - l = l.or.any (bar3.ne.omp_get_thread_num () + 8) - l = l.or.size (bar3).ne.2 - - l = l.or.(baz%a .ne. omp_get_thread_num () * 3 + 4) - l = l.or.(baz%b .ne. omp_get_thread_num () * 3 + 5) -!$omp end parallel - - if (l) call abort -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/vla1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/vla1.f90 deleted file mode 100644 index c22165ee0..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/vla1.f90 +++ /dev/null @@ -1,185 +0,0 @@ -! { dg-do run } - - call test -contains - subroutine check (x, y, l) - integer :: x, y - logical :: l - l = l .or. x .ne. y - end subroutine check - - subroutine foo (c, d, e, f, g, h, i, j, k, n) - use omp_lib - integer :: n - character (len = *) :: c - character (len = n) :: d - integer, dimension (2, 3:5, n) :: e - integer, dimension (2, 3:n, n) :: f - character (len = *), dimension (5, 3:n) :: g - character (len = n), dimension (5, 3:n) :: h - real, dimension (:, :, :) :: i - double precision, dimension (3:, 5:, 7:) :: j - integer, dimension (:, :, :) :: k - logical :: l - integer :: p, q, r - character (len = n) :: s - integer, dimension (2, 3:5, n) :: t - integer, dimension (2, 3:n, n) :: u - character (len = n), dimension (5, 3:n) :: v - character (len = 2 * n + 24) :: w - integer :: x - character (len = 1) :: y - s = 'PQRSTUV' - forall (p = 1:2, q = 3:5, r = 1:7) t(p, q, r) = -10 + p - q + 2 * r - forall (p = 1:2, q = 3:7, r = 1:7) u(p, q, r) = 30 - p + q - 2 * r - forall (p = 1:5, q = 3:7, p + q .le. 8) v(p, q) = '_+|/Oo_' - forall (p = 1:5, q = 3:7, p + q .gt. 8) v(p, q) = '///|||!' - l = .false. -!$omp parallel default (none) firstprivate (c, d, e, f, g, h, i, j, k) & -!$omp & firstprivate (s, t, u, v) reduction (.or.:l) num_threads (6) & -!$omp private (p, q, r, w, x, y) - l = l .or. c .ne. 'abcdefghijkl' - l = l .or. d .ne. 'ABCDEFG' - l = l .or. s .ne. 'PQRSTUV' - do 100, p = 1, 2 - do 100, q = 3, 7 - do 100, r = 1, 7 - if (q .lt. 6) l = l .or. e(p, q, r) .ne. 5 + p + q + 2 * r - l = l .or. f(p, q, r) .ne. 25 + p + q + 2 * r - if (r .lt. 6 .and. q + r .le. 8) l = l .or. g(r, q) .ne. '0123456789AB' - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. g(r, q) .ne. '9876543210ZY' - if (r .lt. 6 .and. q + r .le. 8) l = l .or. h(r, q) .ne. '0123456' - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. h(r, q) .ne. '9876543' - if (q .lt. 6) l = l .or. t(p, q, r) .ne. -10 + p - q + 2 * r - l = l .or. u(p, q, r) .ne. 30 - p + q - 2 * r - if (r .lt. 6 .and. q + r .le. 8) l = l .or. v(r, q) .ne. '_+|/Oo_' - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. v(r, q) .ne. '///|||!' -100 continue - do 101, p = 3, 5 - do 101, q = 2, 6 - do 101, r = 1, 7 - l = l .or. i(p - 2, q - 1, r) .ne. 7.5 * p * q * r - l = l .or. j(p, q + 3, r + 6) .ne. 9.5 * p * q * r -101 continue - do 102, p = 1, 5 - do 102, q = 4, 6 - l = l .or. k(p, 1, q - 3) .ne. 19 + p + 7 + 3 * q -102 continue - x = omp_get_thread_num () - w = '' - if (x .eq. 0) w = 'thread0thr_number_0THREAD0THR_NUMBER_0' - if (x .eq. 1) w = 'thread1thr_number_1THREAD1THR_NUMBER_1' - if (x .eq. 2) w = 'thread2thr_number_2THREAD2THR_NUMBER_2' - if (x .eq. 3) w = 'thread3thr_number_3THREAD3THR_NUMBER_3' - if (x .eq. 4) w = 'thread4thr_number_4THREAD4THR_NUMBER_4' - if (x .eq. 5) w = 'thread5thr_number_5THREAD5THR_NUMBER_5' - c = w(8:19) - d = w(1:7) - forall (p = 1:2, q = 3:5, r = 1:7) e(p, q, r) = 5 * x + p + q + 2 * r - forall (p = 1:2, q = 3:7, r = 1:7) f(p, q, r) = 25 * x + p + q + 2 * r - forall (p = 1:5, q = 3:7, p + q .le. 8) g(p, q) = w(8:19) - forall (p = 1:5, q = 3:7, p + q .gt. 8) g(p, q) = w(27:38) - forall (p = 1:5, q = 3:7, p + q .le. 8) h(p, q) = w(1:7) - forall (p = 1:5, q = 3:7, p + q .gt. 8) h(p, q) = w(20:26) - forall (p = 3:5, q = 2:6, r = 1:7) i(p - 2, q - 1, r) = (7.5 + x) * p * q * r - forall (p = 3:5, q = 2:6, r = 1:7) j(p, q + 3, r + 6) = (9.5 + x) * p * q * r - forall (p = 1:5, q = 7:7, r = 4:6) k(p, q - 6, r - 3) = 19 + x + p + q + 3 * r - s = w(20:26) - forall (p = 1:2, q = 3:5, r = 1:7) t(p, q, r) = -10 + x + p - q + 2 * r - forall (p = 1:2, q = 3:7, r = 1:7) u(p, q, r) = 30 - x - p + q - 2 * r - forall (p = 1:5, q = 3:7, p + q .le. 8) v(p, q) = w(1:7) - forall (p = 1:5, q = 3:7, p + q .gt. 8) v(p, q) = w(20:26) -!$omp barrier - y = '' - if (x .eq. 0) y = '0' - if (x .eq. 1) y = '1' - if (x .eq. 2) y = '2' - if (x .eq. 3) y = '3' - if (x .eq. 4) y = '4' - if (x .eq. 5) y = '5' - l = l .or. w(7:7) .ne. y - l = l .or. w(19:19) .ne. y - l = l .or. w(26:26) .ne. y - l = l .or. w(38:38) .ne. y - l = l .or. c .ne. w(8:19) - l = l .or. d .ne. w(1:7) - l = l .or. s .ne. w(20:26) - do 103, p = 1, 2 - do 103, q = 3, 7 - do 103, r = 1, 7 - if (q .lt. 6) l = l .or. e(p, q, r) .ne. 5 * x + p + q + 2 * r - l = l .or. f(p, q, r) .ne. 25 * x + p + q + 2 * r - if (r .lt. 6 .and. q + r .le. 8) l = l .or. g(r, q) .ne. w(8:19) - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. g(r, q) .ne. w(27:38) - if (r .lt. 6 .and. q + r .le. 8) l = l .or. h(r, q) .ne. w(1:7) - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. h(r, q) .ne. w(20:26) - if (q .lt. 6) l = l .or. t(p, q, r) .ne. -10 + x + p - q + 2 * r - l = l .or. u(p, q, r) .ne. 30 - x - p + q - 2 * r - if (r .lt. 6 .and. q + r .le. 8) l = l .or. v(r, q) .ne. w(1:7) - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. v(r, q) .ne. w(20:26) -103 continue - do 104, p = 3, 5 - do 104, q = 2, 6 - do 104, r = 1, 7 - l = l .or. i(p - 2, q - 1, r) .ne. (7.5 + x) * p * q * r - l = l .or. j(p, q + 3, r + 6) .ne. (9.5 + x) * p * q * r -104 continue - do 105, p = 1, 5 - do 105, q = 4, 6 - l = l .or. k(p, 1, q - 3) .ne. 19 + x + p + 7 + 3 * q -105 continue - call check (size (e, 1), 2, l) - call check (size (e, 2), 3, l) - call check (size (e, 3), 7, l) - call check (size (e), 42, l) - call check (size (f, 1), 2, l) - call check (size (f, 2), 5, l) - call check (size (f, 3), 7, l) - call check (size (f), 70, l) - call check (size (g, 1), 5, l) - call check (size (g, 2), 5, l) - call check (size (g), 25, l) - call check (size (h, 1), 5, l) - call check (size (h, 2), 5, l) - call check (size (h), 25, l) - call check (size (i, 1), 3, l) - call check (size (i, 2), 5, l) - call check (size (i, 3), 7, l) - call check (size (i), 105, l) - call check (size (j, 1), 4, l) - call check (size (j, 2), 5, l) - call check (size (j, 3), 7, l) - call check (size (j), 140, l) - call check (size (k, 1), 5, l) - call check (size (k, 2), 1, l) - call check (size (k, 3), 3, l) - call check (size (k), 15, l) -!$omp end parallel - if (l) call abort - end subroutine foo - - subroutine test - character (len = 12) :: c - character (len = 7) :: d - integer, dimension (2, 3:5, 7) :: e - integer, dimension (2, 3:7, 7) :: f - character (len = 12), dimension (5, 3:7) :: g - character (len = 7), dimension (5, 3:7) :: h - real, dimension (3:5, 2:6, 1:7) :: i - double precision, dimension (3:6, 2:6, 1:7) :: j - integer, dimension (1:5, 7:7, 4:6) :: k - integer :: p, q, r - c = 'abcdefghijkl' - d = 'ABCDEFG' - forall (p = 1:2, q = 3:5, r = 1:7) e(p, q, r) = 5 + p + q + 2 * r - forall (p = 1:2, q = 3:7, r = 1:7) f(p, q, r) = 25 + p + q + 2 * r - forall (p = 1:5, q = 3:7, p + q .le. 8) g(p, q) = '0123456789AB' - forall (p = 1:5, q = 3:7, p + q .gt. 8) g(p, q) = '9876543210ZY' - forall (p = 1:5, q = 3:7, p + q .le. 8) h(p, q) = '0123456' - forall (p = 1:5, q = 3:7, p + q .gt. 8) h(p, q) = '9876543' - forall (p = 3:5, q = 2:6, r = 1:7) i(p, q, r) = 7.5 * p * q * r - forall (p = 3:6, q = 2:6, r = 1:7) j(p, q, r) = 9.5 * p * q * r - forall (p = 1:5, q = 7:7, r = 4:6) k(p, q, r) = 19 + p + q + 3 * r - call foo (c, d, e, f, g, h, i, j, k, 7) - end subroutine test -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/vla2.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/vla2.f90 deleted file mode 100644 index a9510fd38..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/vla2.f90 +++ /dev/null @@ -1,142 +0,0 @@ -! { dg-do run } - - call test -contains - subroutine check (x, y, l) - integer :: x, y - logical :: l - l = l .or. x .ne. y - end subroutine check - - subroutine foo (c, d, e, f, g, h, i, j, k, n) - use omp_lib - integer :: n - character (len = *) :: c - character (len = n) :: d - integer, dimension (2, 3:5, n) :: e - integer, dimension (2, 3:n, n) :: f - character (len = *), dimension (5, 3:n) :: g - character (len = n), dimension (5, 3:n) :: h - real, dimension (:, :, :) :: i - double precision, dimension (3:, 5:, 7:) :: j - integer, dimension (:, :, :) :: k - logical :: l - integer :: p, q, r - character (len = n) :: s - integer, dimension (2, 3:5, n) :: t - integer, dimension (2, 3:n, n) :: u - character (len = n), dimension (5, 3:n) :: v - character (len = 2 * n + 24) :: w - integer :: x - character (len = 1) :: y - l = .false. -!$omp parallel default (none) private (c, d, e, f, g, h, i, j, k) & -!$omp & private (s, t, u, v) reduction (.or.:l) num_threads (6) & -!$omp private (p, q, r, w, x, y) - x = omp_get_thread_num () - w = '' - if (x .eq. 0) w = 'thread0thr_number_0THREAD0THR_NUMBER_0' - if (x .eq. 1) w = 'thread1thr_number_1THREAD1THR_NUMBER_1' - if (x .eq. 2) w = 'thread2thr_number_2THREAD2THR_NUMBER_2' - if (x .eq. 3) w = 'thread3thr_number_3THREAD3THR_NUMBER_3' - if (x .eq. 4) w = 'thread4thr_number_4THREAD4THR_NUMBER_4' - if (x .eq. 5) w = 'thread5thr_number_5THREAD5THR_NUMBER_5' - c = w(8:19) - d = w(1:7) - forall (p = 1:2, q = 3:5, r = 1:7) e(p, q, r) = 5 * x + p + q + 2 * r - forall (p = 1:2, q = 3:7, r = 1:7) f(p, q, r) = 25 * x + p + q + 2 * r - forall (p = 1:5, q = 3:7, p + q .le. 8) g(p, q) = w(8:19) - forall (p = 1:5, q = 3:7, p + q .gt. 8) g(p, q) = w(27:38) - forall (p = 1:5, q = 3:7, p + q .le. 8) h(p, q) = w(1:7) - forall (p = 1:5, q = 3:7, p + q .gt. 8) h(p, q) = w(20:26) - forall (p = 3:5, q = 2:6, r = 1:7) i(p - 2, q - 1, r) = (7.5 + x) * p * q * r - forall (p = 3:5, q = 2:6, r = 1:7) j(p, q + 3, r + 6) = (9.5 + x) * p * q * r - forall (p = 1:5, q = 7:7, r = 4:6) k(p, q - 6, r - 3) = 19 + x + p + q + 3 * r - s = w(20:26) - forall (p = 1:2, q = 3:5, r = 1:7) t(p, q, r) = -10 + x + p - q + 2 * r - forall (p = 1:2, q = 3:7, r = 1:7) u(p, q, r) = 30 - x - p + q - 2 * r - forall (p = 1:5, q = 3:7, p + q .le. 8) v(p, q) = w(1:7) - forall (p = 1:5, q = 3:7, p + q .gt. 8) v(p, q) = w(20:26) -!$omp barrier - y = '' - if (x .eq. 0) y = '0' - if (x .eq. 1) y = '1' - if (x .eq. 2) y = '2' - if (x .eq. 3) y = '3' - if (x .eq. 4) y = '4' - if (x .eq. 5) y = '5' - l = l .or. w(7:7) .ne. y - l = l .or. w(19:19) .ne. y - l = l .or. w(26:26) .ne. y - l = l .or. w(38:38) .ne. y - l = l .or. c .ne. w(8:19) - l = l .or. d .ne. w(1:7) - l = l .or. s .ne. w(20:26) - do 103, p = 1, 2 - do 103, q = 3, 7 - do 103, r = 1, 7 - if (q .lt. 6) l = l .or. e(p, q, r) .ne. 5 * x + p + q + 2 * r - l = l .or. f(p, q, r) .ne. 25 * x + p + q + 2 * r - if (r .lt. 6 .and. q + r .le. 8) l = l .or. g(r, q) .ne. w(8:19) - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. g(r, q) .ne. w(27:38) - if (r .lt. 6 .and. q + r .le. 8) l = l .or. h(r, q) .ne. w(1:7) - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. h(r, q) .ne. w(20:26) - if (q .lt. 6) l = l .or. t(p, q, r) .ne. -10 + x + p - q + 2 * r - l = l .or. u(p, q, r) .ne. 30 - x - p + q - 2 * r - if (r .lt. 6 .and. q + r .le. 8) l = l .or. v(r, q) .ne. w(1:7) - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. v(r, q) .ne. w(20:26) -103 continue - do 104, p = 3, 5 - do 104, q = 2, 6 - do 104, r = 1, 7 - l = l .or. i(p - 2, q - 1, r) .ne. (7.5 + x) * p * q * r - l = l .or. j(p, q + 3, r + 6) .ne. (9.5 + x) * p * q * r -104 continue - do 105, p = 1, 5 - do 105, q = 4, 6 - l = l .or. k(p, 1, q - 3) .ne. 19 + x + p + 7 + 3 * q -105 continue - call check (size (e, 1), 2, l) - call check (size (e, 2), 3, l) - call check (size (e, 3), 7, l) - call check (size (e), 42, l) - call check (size (f, 1), 2, l) - call check (size (f, 2), 5, l) - call check (size (f, 3), 7, l) - call check (size (f), 70, l) - call check (size (g, 1), 5, l) - call check (size (g, 2), 5, l) - call check (size (g), 25, l) - call check (size (h, 1), 5, l) - call check (size (h, 2), 5, l) - call check (size (h), 25, l) - call check (size (i, 1), 3, l) - call check (size (i, 2), 5, l) - call check (size (i, 3), 7, l) - call check (size (i), 105, l) - call check (size (j, 1), 4, l) - call check (size (j, 2), 5, l) - call check (size (j, 3), 7, l) - call check (size (j), 140, l) - call check (size (k, 1), 5, l) - call check (size (k, 2), 1, l) - call check (size (k, 3), 3, l) - call check (size (k), 15, l) -!$omp end parallel - if (l) call abort - end subroutine foo - - subroutine test - character (len = 12) :: c - character (len = 7) :: d - integer, dimension (2, 3:5, 7) :: e - integer, dimension (2, 3:7, 7) :: f - character (len = 12), dimension (5, 3:7) :: g - character (len = 7), dimension (5, 3:7) :: h - real, dimension (3:5, 2:6, 1:7) :: i - double precision, dimension (3:6, 2:6, 1:7) :: j - integer, dimension (1:5, 7:7, 4:6) :: k - integer :: p, q, r - call foo (c, d, e, f, g, h, i, j, k, 7) - end subroutine test -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/vla3.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/vla3.f90 deleted file mode 100644 index bfafc4f7d..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/vla3.f90 +++ /dev/null @@ -1,191 +0,0 @@ -! { dg-do run } - - call test -contains - subroutine check (x, y, l) - integer :: x, y - logical :: l - l = l .or. x .ne. y - end subroutine check - - subroutine foo (c, d, e, f, g, h, i, j, k, n) - use omp_lib - integer :: n - character (len = *) :: c - character (len = n) :: d - integer, dimension (2, 3:5, n) :: e - integer, dimension (2, 3:n, n) :: f - character (len = *), dimension (5, 3:n) :: g - character (len = n), dimension (5, 3:n) :: h - real, dimension (:, :, :) :: i - double precision, dimension (3:, 5:, 7:) :: j - integer, dimension (:, :, :) :: k - logical :: l - integer :: p, q, r - character (len = n) :: s - integer, dimension (2, 3:5, n) :: t - integer, dimension (2, 3:n, n) :: u - character (len = n), dimension (5, 3:n) :: v - character (len = 2 * n + 24) :: w - integer :: x, z - character (len = 1) :: y - s = 'PQRSTUV' - forall (p = 1:2, q = 3:5, r = 1:7) t(p, q, r) = -10 + p - q + 2 * r - forall (p = 1:2, q = 3:7, r = 1:7) u(p, q, r) = 30 - p + q - 2 * r - forall (p = 1:5, q = 3:7, p + q .le. 8) v(p, q) = '_+|/Oo_' - forall (p = 1:5, q = 3:7, p + q .gt. 8) v(p, q) = '///|||!' - l = .false. -!$omp parallel default (none) shared (c, d, e, f, g, h, i, j, k) & -!$omp & shared (s, t, u, v) reduction (.or.:l) num_threads (6) & -!$omp private (p, q, r, w, x, y) - l = l .or. c .ne. 'abcdefghijkl' - l = l .or. d .ne. 'ABCDEFG' - l = l .or. s .ne. 'PQRSTUV' - do 100, p = 1, 2 - do 100, q = 3, 7 - do 100, r = 1, 7 - if (q .lt. 6) l = l .or. e(p, q, r) .ne. 5 + p + q + 2 * r - l = l .or. f(p, q, r) .ne. 25 + p + q + 2 * r - if (r .lt. 6 .and. q + r .le. 8) l = l .or. g(r, q) .ne. '0123456789AB' - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. g(r, q) .ne. '9876543210ZY' - if (r .lt. 6 .and. q + r .le. 8) l = l .or. h(r, q) .ne. '0123456' - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. h(r, q) .ne. '9876543' - if (q .lt. 6) l = l .or. t(p, q, r) .ne. -10 + p - q + 2 * r - l = l .or. u(p, q, r) .ne. 30 - p + q - 2 * r - if (r .lt. 6 .and. q + r .le. 8) l = l .or. v(r, q) .ne. '_+|/Oo_' - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. v(r, q) .ne. '///|||!' -100 continue - do 101, p = 3, 5 - do 101, q = 2, 6 - do 101, r = 1, 7 - l = l .or. i(p - 2, q - 1, r) .ne. 7.5 * p * q * r - l = l .or. j(p, q + 3, r + 6) .ne. 9.5 * p * q * r -101 continue - do 102, p = 1, 5 - do 102, q = 4, 6 - l = l .or. k(p, 1, q - 3) .ne. 19 + p + 7 + 3 * q -102 continue - do 110 z = 0, omp_get_num_threads () - 1 -!$omp barrier - x = omp_get_thread_num () - w = '' - if (z .eq. 0) w = 'thread0thr_number_0THREAD0THR_NUMBER_0' - if (z .eq. 1) w = 'thread1thr_number_1THREAD1THR_NUMBER_1' - if (z .eq. 2) w = 'thread2thr_number_2THREAD2THR_NUMBER_2' - if (z .eq. 3) w = 'thread3thr_number_3THREAD3THR_NUMBER_3' - if (z .eq. 4) w = 'thread4thr_number_4THREAD4THR_NUMBER_4' - if (z .eq. 5) w = 'thread5thr_number_5THREAD5THR_NUMBER_5' - if (x .eq. z) then - c = w(8:19) - d = w(1:7) - forall (p = 1:2, q = 3:5, r = 1:7) e(p, q, r) = 5 * x + p + q + 2 * r - forall (p = 1:2, q = 3:7, r = 1:7) f(p, q, r) = 25 * x + p + q + 2 * r - forall (p = 1:5, q = 3:7, p + q .le. 8) g(p, q) = w(8:19) - forall (p = 1:5, q = 3:7, p + q .gt. 8) g(p, q) = w(27:38) - forall (p = 1:5, q = 3:7, p + q .le. 8) h(p, q) = w(1:7) - forall (p = 1:5, q = 3:7, p + q .gt. 8) h(p, q) = w(20:26) - forall (p = 3:5, q = 2:6, r = 1:7) i(p - 2, q - 1, r) = (7.5 + x) * p * q * r - forall (p = 3:5, q = 2:6, r = 1:7) j(p, q + 3, r + 6) = (9.5 + x) * p * q * r - forall (p = 1:5, q = 7:7, r = 4:6) k(p, q - 6, r - 3) = 19 + x + p + q + 3 * r - s = w(20:26) - forall (p = 1:2, q = 3:5, r = 1:7) t(p, q, r) = -10 + x + p - q + 2 * r - forall (p = 1:2, q = 3:7, r = 1:7) u(p, q, r) = 30 - x - p + q - 2 * r - forall (p = 1:5, q = 3:7, p + q .le. 8) v(p, q) = w(1:7) - forall (p = 1:5, q = 3:7, p + q .gt. 8) v(p, q) = w(20:26) - end if -!$omp barrier - x = z - y = '' - if (x .eq. 0) y = '0' - if (x .eq. 1) y = '1' - if (x .eq. 2) y = '2' - if (x .eq. 3) y = '3' - if (x .eq. 4) y = '4' - if (x .eq. 5) y = '5' - l = l .or. w(7:7) .ne. y - l = l .or. w(19:19) .ne. y - l = l .or. w(26:26) .ne. y - l = l .or. w(38:38) .ne. y - l = l .or. c .ne. w(8:19) - l = l .or. d .ne. w(1:7) - l = l .or. s .ne. w(20:26) - do 103, p = 1, 2 - do 103, q = 3, 7 - do 103, r = 1, 7 - if (q .lt. 6) l = l .or. e(p, q, r) .ne. 5 * x + p + q + 2 * r - l = l .or. f(p, q, r) .ne. 25 * x + p + q + 2 * r - if (r .lt. 6 .and. q + r .le. 8) l = l .or. g(r, q) .ne. w(8:19) - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. g(r, q) .ne. w(27:38) - if (r .lt. 6 .and. q + r .le. 8) l = l .or. h(r, q) .ne. w(1:7) - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. h(r, q) .ne. w(20:26) - if (q .lt. 6) l = l .or. t(p, q, r) .ne. -10 + x + p - q + 2 * r - l = l .or. u(p, q, r) .ne. 30 - x - p + q - 2 * r - if (r .lt. 6 .and. q + r .le. 8) l = l .or. v(r, q) .ne. w(1:7) - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. v(r, q) .ne. w(20:26) -103 continue - do 104, p = 3, 5 - do 104, q = 2, 6 - do 104, r = 1, 7 - l = l .or. i(p - 2, q - 1, r) .ne. (7.5 + x) * p * q * r - l = l .or. j(p, q + 3, r + 6) .ne. (9.5 + x) * p * q * r -104 continue - do 105, p = 1, 5 - do 105, q = 4, 6 - l = l .or. k(p, 1, q - 3) .ne. 19 + x + p + 7 + 3 * q -105 continue -110 continue - call check (size (e, 1), 2, l) - call check (size (e, 2), 3, l) - call check (size (e, 3), 7, l) - call check (size (e), 42, l) - call check (size (f, 1), 2, l) - call check (size (f, 2), 5, l) - call check (size (f, 3), 7, l) - call check (size (f), 70, l) - call check (size (g, 1), 5, l) - call check (size (g, 2), 5, l) - call check (size (g), 25, l) - call check (size (h, 1), 5, l) - call check (size (h, 2), 5, l) - call check (size (h), 25, l) - call check (size (i, 1), 3, l) - call check (size (i, 2), 5, l) - call check (size (i, 3), 7, l) - call check (size (i), 105, l) - call check (size (j, 1), 4, l) - call check (size (j, 2), 5, l) - call check (size (j, 3), 7, l) - call check (size (j), 140, l) - call check (size (k, 1), 5, l) - call check (size (k, 2), 1, l) - call check (size (k, 3), 3, l) - call check (size (k), 15, l) -!$omp end parallel - if (l) call abort - end subroutine foo - - subroutine test - character (len = 12) :: c - character (len = 7) :: d - integer, dimension (2, 3:5, 7) :: e - integer, dimension (2, 3:7, 7) :: f - character (len = 12), dimension (5, 3:7) :: g - character (len = 7), dimension (5, 3:7) :: h - real, dimension (3:5, 2:6, 1:7) :: i - double precision, dimension (3:6, 2:6, 1:7) :: j - integer, dimension (1:5, 7:7, 4:6) :: k - integer :: p, q, r - c = 'abcdefghijkl' - d = 'ABCDEFG' - forall (p = 1:2, q = 3:5, r = 1:7) e(p, q, r) = 5 + p + q + 2 * r - forall (p = 1:2, q = 3:7, r = 1:7) f(p, q, r) = 25 + p + q + 2 * r - forall (p = 1:5, q = 3:7, p + q .le. 8) g(p, q) = '0123456789AB' - forall (p = 1:5, q = 3:7, p + q .gt. 8) g(p, q) = '9876543210ZY' - forall (p = 1:5, q = 3:7, p + q .le. 8) h(p, q) = '0123456' - forall (p = 1:5, q = 3:7, p + q .gt. 8) h(p, q) = '9876543' - forall (p = 3:5, q = 2:6, r = 1:7) i(p, q, r) = 7.5 * p * q * r - forall (p = 3:6, q = 2:6, r = 1:7) j(p, q, r) = 9.5 * p * q * r - forall (p = 1:5, q = 7:7, r = 4:6) k(p, q, r) = 19 + p + q + 3 * r - call foo (c, d, e, f, g, h, i, j, k, 7) - end subroutine test -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/vla4.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/vla4.f90 deleted file mode 100644 index 58caabc62..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/vla4.f90 +++ /dev/null @@ -1,228 +0,0 @@ -! { dg-do run } - - call test -contains - subroutine check (x, y, l) - integer :: x, y - logical :: l - l = l .or. x .ne. y - end subroutine check - - subroutine foo (c, d, e, f, g, h, i, j, k, n) - use omp_lib - integer :: n - character (len = *) :: c - character (len = n) :: d - integer, dimension (2, 3:5, n) :: e - integer, dimension (2, 3:n, n) :: f - character (len = *), dimension (5, 3:n) :: g - character (len = n), dimension (5, 3:n) :: h - real, dimension (:, :, :) :: i - double precision, dimension (3:, 5:, 7:) :: j - integer, dimension (:, :, :) :: k - logical :: l - integer :: p, q, r - character (len = n) :: s - integer, dimension (2, 3:5, n) :: t - integer, dimension (2, 3:n, n) :: u - character (len = n), dimension (5, 3:n) :: v - character (len = 2 * n + 24) :: w - integer :: x, z, z2 - character (len = 1) :: y - s = 'PQRSTUV' - forall (p = 1:2, q = 3:5, r = 1:7) t(p, q, r) = -10 + p - q + 2 * r - forall (p = 1:2, q = 3:7, r = 1:7) u(p, q, r) = 30 - p + q - 2 * r - forall (p = 1:5, q = 3:7, p + q .le. 8) v(p, q) = '_+|/Oo_' - forall (p = 1:5, q = 3:7, p + q .gt. 8) v(p, q) = '///|||!' - l = .false. - call omp_set_dynamic (.false.) - call omp_set_num_threads (6) -!$omp parallel do default (none) firstprivate (c, d, e, f, g, h, i, j, k) & -!$omp & firstprivate (s, t, u, v) reduction (.or.:l) num_threads (6) & -!$omp private (p, q, r, w, x, y) schedule (static) shared (z2) & -!$omp lastprivate (c, d, e, f, g, h, i, j, k, s, t, u, v) - do 110 z = 0, omp_get_num_threads () - 1 - if (omp_get_thread_num () .eq. 0) z2 = omp_get_num_threads () - l = l .or. c .ne. 'abcdefghijkl' - l = l .or. d .ne. 'ABCDEFG' - l = l .or. s .ne. 'PQRSTUV' - do 100, p = 1, 2 - do 100, q = 3, 7 - do 100, r = 1, 7 - if (q .lt. 6) l = l .or. e(p, q, r) .ne. 5 + p + q + 2 * r - l = l .or. f(p, q, r) .ne. 25 + p + q + 2 * r - if (r .lt. 6 .and. q + r .le. 8) l = l .or. g(r, q) .ne. '0123456789AB' - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. g(r, q) .ne. '9876543210ZY' - if (r .lt. 6 .and. q + r .le. 8) l = l .or. h(r, q) .ne. '0123456' - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. h(r, q) .ne. '9876543' - if (q .lt. 6) l = l .or. t(p, q, r) .ne. -10 + p - q + 2 * r - l = l .or. u(p, q, r) .ne. 30 - p + q - 2 * r - if (r .lt. 6 .and. q + r .le. 8) l = l .or. v(r, q) .ne. '_+|/Oo_' - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. v(r, q) .ne. '///|||!' -100 continue - do 101, p = 3, 5 - do 101, q = 2, 6 - do 101, r = 1, 7 - l = l .or. i(p - 2, q - 1, r) .ne. 7.5 * p * q * r - l = l .or. j(p, q + 3, r + 6) .ne. 9.5 * p * q * r -101 continue - do 102, p = 1, 5 - do 102, q = 4, 6 - l = l .or. k(p, 1, q - 3) .ne. 19 + p + 7 + 3 * q -102 continue - x = omp_get_thread_num () - w = '' - if (x .eq. 0) w = 'thread0thr_number_0THREAD0THR_NUMBER_0' - if (x .eq. 1) w = 'thread1thr_number_1THREAD1THR_NUMBER_1' - if (x .eq. 2) w = 'thread2thr_number_2THREAD2THR_NUMBER_2' - if (x .eq. 3) w = 'thread3thr_number_3THREAD3THR_NUMBER_3' - if (x .eq. 4) w = 'thread4thr_number_4THREAD4THR_NUMBER_4' - if (x .eq. 5) w = 'thread5thr_number_5THREAD5THR_NUMBER_5' - c = w(8:19) - d = w(1:7) - forall (p = 1:2, q = 3:5, r = 1:7) e(p, q, r) = 5 * x + p + q + 2 * r - forall (p = 1:2, q = 3:7, r = 1:7) f(p, q, r) = 25 * x + p + q + 2 * r - forall (p = 1:5, q = 3:7, p + q .le. 8) g(p, q) = w(8:19) - forall (p = 1:5, q = 3:7, p + q .gt. 8) g(p, q) = w(27:38) - forall (p = 1:5, q = 3:7, p + q .le. 8) h(p, q) = w(1:7) - forall (p = 1:5, q = 3:7, p + q .gt. 8) h(p, q) = w(20:26) - forall (p = 3:5, q = 2:6, r = 1:7) i(p - 2, q - 1, r) = (7.5 + x) * p * q * r - forall (p = 3:5, q = 2:6, r = 1:7) j(p, q + 3, r + 6) = (9.5 + x) * p * q * r - forall (p = 1:5, q = 7:7, r = 4:6) k(p, q - 6, r - 3) = 19 + x + p + q + 3 * r - s = w(20:26) - forall (p = 1:2, q = 3:5, r = 1:7) t(p, q, r) = -10 + x + p - q + 2 * r - forall (p = 1:2, q = 3:7, r = 1:7) u(p, q, r) = 30 - x - p + q - 2 * r - forall (p = 1:5, q = 3:7, p + q .le. 8) v(p, q) = w(1:7) - forall (p = 1:5, q = 3:7, p + q .gt. 8) v(p, q) = w(20:26) -!$omp barrier - y = '' - if (x .eq. 0) y = '0' - if (x .eq. 1) y = '1' - if (x .eq. 2) y = '2' - if (x .eq. 3) y = '3' - if (x .eq. 4) y = '4' - if (x .eq. 5) y = '5' - l = l .or. w(7:7) .ne. y - l = l .or. w(19:19) .ne. y - l = l .or. w(26:26) .ne. y - l = l .or. w(38:38) .ne. y - l = l .or. c .ne. w(8:19) - l = l .or. d .ne. w(1:7) - l = l .or. s .ne. w(20:26) - do 103, p = 1, 2 - do 103, q = 3, 7 - do 103, r = 1, 7 - if (q .lt. 6) l = l .or. e(p, q, r) .ne. 5 * x + p + q + 2 * r - l = l .or. f(p, q, r) .ne. 25 * x + p + q + 2 * r - if (r .lt. 6 .and. q + r .le. 8) l = l .or. g(r, q) .ne. w(8:19) - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. g(r, q) .ne. w(27:38) - if (r .lt. 6 .and. q + r .le. 8) l = l .or. h(r, q) .ne. w(1:7) - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. h(r, q) .ne. w(20:26) - if (q .lt. 6) l = l .or. t(p, q, r) .ne. -10 + x + p - q + 2 * r - l = l .or. u(p, q, r) .ne. 30 - x - p + q - 2 * r - if (r .lt. 6 .and. q + r .le. 8) l = l .or. v(r, q) .ne. w(1:7) - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. v(r, q) .ne. w(20:26) -103 continue - do 104, p = 3, 5 - do 104, q = 2, 6 - do 104, r = 1, 7 - l = l .or. i(p - 2, q - 1, r) .ne. (7.5 + x) * p * q * r - l = l .or. j(p, q + 3, r + 6) .ne. (9.5 + x) * p * q * r -104 continue - do 105, p = 1, 5 - do 105, q = 4, 6 - l = l .or. k(p, 1, q - 3) .ne. 19 + x + p + 7 + 3 * q -105 continue - call check (size (e, 1), 2, l) - call check (size (e, 2), 3, l) - call check (size (e, 3), 7, l) - call check (size (e), 42, l) - call check (size (f, 1), 2, l) - call check (size (f, 2), 5, l) - call check (size (f, 3), 7, l) - call check (size (f), 70, l) - call check (size (g, 1), 5, l) - call check (size (g, 2), 5, l) - call check (size (g), 25, l) - call check (size (h, 1), 5, l) - call check (size (h, 2), 5, l) - call check (size (h), 25, l) - call check (size (i, 1), 3, l) - call check (size (i, 2), 5, l) - call check (size (i, 3), 7, l) - call check (size (i), 105, l) - call check (size (j, 1), 4, l) - call check (size (j, 2), 5, l) - call check (size (j, 3), 7, l) - call check (size (j), 140, l) - call check (size (k, 1), 5, l) - call check (size (k, 2), 1, l) - call check (size (k, 3), 3, l) - call check (size (k), 15, l) -110 continue -!$omp end parallel do - if (l) call abort - if (z2 == 6) then - x = 5 - w = 'thread5thr_number_5THREAD5THR_NUMBER_5' - y = '5' - l = l .or. w(7:7) .ne. y - l = l .or. w(19:19) .ne. y - l = l .or. w(26:26) .ne. y - l = l .or. w(38:38) .ne. y - l = l .or. c .ne. w(8:19) - l = l .or. d .ne. w(1:7) - l = l .or. s .ne. w(20:26) - do 113, p = 1, 2 - do 113, q = 3, 7 - do 113, r = 1, 7 - if (q .lt. 6) l = l .or. e(p, q, r) .ne. 5 * x + p + q + 2 * r - l = l .or. f(p, q, r) .ne. 25 * x + p + q + 2 * r - if (r .lt. 6 .and. q + r .le. 8) l = l .or. g(r, q) .ne. w(8:19) - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. g(r, q) .ne. w(27:38) - if (r .lt. 6 .and. q + r .le. 8) l = l .or. h(r, q) .ne. w(1:7) - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. h(r, q) .ne. w(20:26) - if (q .lt. 6) l = l .or. t(p, q, r) .ne. -10 + x + p - q + 2 * r - l = l .or. u(p, q, r) .ne. 30 - x - p + q - 2 * r - if (r .lt. 6 .and. q + r .le. 8) l = l .or. v(r, q) .ne. w(1:7) - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. v(r, q) .ne. w(20:26) -113 continue - do 114, p = 3, 5 - do 114, q = 2, 6 - do 114, r = 1, 7 - l = l .or. i(p - 2, q - 1, r) .ne. (7.5 + x) * p * q * r - l = l .or. j(p, q + 3, r + 6) .ne. (9.5 + x) * p * q * r -114 continue - do 115, p = 1, 5 - do 115, q = 4, 6 - l = l .or. k(p, 1, q - 3) .ne. 19 + x + p + 7 + 3 * q -115 continue - if (l) call abort - end if - end subroutine foo - - subroutine test - character (len = 12) :: c - character (len = 7) :: d - integer, dimension (2, 3:5, 7) :: e - integer, dimension (2, 3:7, 7) :: f - character (len = 12), dimension (5, 3:7) :: g - character (len = 7), dimension (5, 3:7) :: h - real, dimension (3:5, 2:6, 1:7) :: i - double precision, dimension (3:6, 2:6, 1:7) :: j - integer, dimension (1:5, 7:7, 4:6) :: k - integer :: p, q, r - c = 'abcdefghijkl' - d = 'ABCDEFG' - forall (p = 1:2, q = 3:5, r = 1:7) e(p, q, r) = 5 + p + q + 2 * r - forall (p = 1:2, q = 3:7, r = 1:7) f(p, q, r) = 25 + p + q + 2 * r - forall (p = 1:5, q = 3:7, p + q .le. 8) g(p, q) = '0123456789AB' - forall (p = 1:5, q = 3:7, p + q .gt. 8) g(p, q) = '9876543210ZY' - forall (p = 1:5, q = 3:7, p + q .le. 8) h(p, q) = '0123456' - forall (p = 1:5, q = 3:7, p + q .gt. 8) h(p, q) = '9876543' - forall (p = 3:5, q = 2:6, r = 1:7) i(p, q, r) = 7.5 * p * q * r - forall (p = 3:6, q = 2:6, r = 1:7) j(p, q, r) = 9.5 * p * q * r - forall (p = 1:5, q = 7:7, r = 4:6) k(p, q, r) = 19 + p + q + 3 * r - call foo (c, d, e, f, g, h, i, j, k, 7) - end subroutine test -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/vla5.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/vla5.f90 deleted file mode 100644 index 5c889f992..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/vla5.f90 +++ /dev/null @@ -1,200 +0,0 @@ -! { dg-do run } - - call test -contains - subroutine check (x, y, l) - integer :: x, y - logical :: l - l = l .or. x .ne. y - end subroutine check - - subroutine foo (c, d, e, f, g, h, i, j, k, n) - use omp_lib - integer :: n - character (len = *) :: c - character (len = n) :: d - integer, dimension (2, 3:5, n) :: e - integer, dimension (2, 3:n, n) :: f - character (len = *), dimension (5, 3:n) :: g - character (len = n), dimension (5, 3:n) :: h - real, dimension (:, :, :) :: i - double precision, dimension (3:, 5:, 7:) :: j - integer, dimension (:, :, :) :: k - logical :: l - integer :: p, q, r - character (len = n) :: s - integer, dimension (2, 3:5, n) :: t - integer, dimension (2, 3:n, n) :: u - character (len = n), dimension (5, 3:n) :: v - character (len = 2 * n + 24) :: w - integer :: x, z, z2 - character (len = 1) :: y - s = 'PQRSTUV' - forall (p = 1:2, q = 3:5, r = 1:7) t(p, q, r) = -10 + p - q + 2 * r - forall (p = 1:2, q = 3:7, r = 1:7) u(p, q, r) = 30 - p + q - 2 * r - forall (p = 1:5, q = 3:7, p + q .le. 8) v(p, q) = '_+|/Oo_' - forall (p = 1:5, q = 3:7, p + q .gt. 8) v(p, q) = '///|||!' - l = .false. - call omp_set_dynamic (.false.) - call omp_set_num_threads (6) -!$omp parallel do default (none) lastprivate (c, d, e, f, g, h, i, j, k) & -!$omp & lastprivate (s, t, u, v) reduction (.or.:l) num_threads (6) & -!$omp private (p, q, r, w, x, y) schedule (static) shared (z2) - do 110 z = 0, omp_get_num_threads () - 1 - if (omp_get_thread_num () .eq. 0) z2 = omp_get_num_threads () - x = omp_get_thread_num () - w = '' - if (x .eq. 0) w = 'thread0thr_number_0THREAD0THR_NUMBER_0' - if (x .eq. 1) w = 'thread1thr_number_1THREAD1THR_NUMBER_1' - if (x .eq. 2) w = 'thread2thr_number_2THREAD2THR_NUMBER_2' - if (x .eq. 3) w = 'thread3thr_number_3THREAD3THR_NUMBER_3' - if (x .eq. 4) w = 'thread4thr_number_4THREAD4THR_NUMBER_4' - if (x .eq. 5) w = 'thread5thr_number_5THREAD5THR_NUMBER_5' - c = w(8:19) - d = w(1:7) - forall (p = 1:2, q = 3:5, r = 1:7) e(p, q, r) = 5 * x + p + q + 2 * r - forall (p = 1:2, q = 3:7, r = 1:7) f(p, q, r) = 25 * x + p + q + 2 * r - forall (p = 1:5, q = 3:7, p + q .le. 8) g(p, q) = w(8:19) - forall (p = 1:5, q = 3:7, p + q .gt. 8) g(p, q) = w(27:38) - forall (p = 1:5, q = 3:7, p + q .le. 8) h(p, q) = w(1:7) - forall (p = 1:5, q = 3:7, p + q .gt. 8) h(p, q) = w(20:26) - forall (p = 3:5, q = 2:6, r = 1:7) i(p - 2, q - 1, r) = (7.5 + x) * p * q * r - forall (p = 3:5, q = 2:6, r = 1:7) j(p, q + 3, r + 6) = (9.5 + x) * p * q * r - forall (p = 1:5, q = 7:7, r = 4:6) k(p, q - 6, r - 3) = 19 + x + p + q + 3 * r - s = w(20:26) - forall (p = 1:2, q = 3:5, r = 1:7) t(p, q, r) = -10 + x + p - q + 2 * r - forall (p = 1:2, q = 3:7, r = 1:7) u(p, q, r) = 30 - x - p + q - 2 * r - forall (p = 1:5, q = 3:7, p + q .le. 8) v(p, q) = w(1:7) - forall (p = 1:5, q = 3:7, p + q .gt. 8) v(p, q) = w(20:26) -!$omp barrier - y = '' - if (x .eq. 0) y = '0' - if (x .eq. 1) y = '1' - if (x .eq. 2) y = '2' - if (x .eq. 3) y = '3' - if (x .eq. 4) y = '4' - if (x .eq. 5) y = '5' - l = l .or. w(7:7) .ne. y - l = l .or. w(19:19) .ne. y - l = l .or. w(26:26) .ne. y - l = l .or. w(38:38) .ne. y - l = l .or. c .ne. w(8:19) - l = l .or. d .ne. w(1:7) - l = l .or. s .ne. w(20:26) - do 103, p = 1, 2 - do 103, q = 3, 7 - do 103, r = 1, 7 - if (q .lt. 6) l = l .or. e(p, q, r) .ne. 5 * x + p + q + 2 * r - l = l .or. f(p, q, r) .ne. 25 * x + p + q + 2 * r - if (r .lt. 6 .and. q + r .le. 8) l = l .or. g(r, q) .ne. w(8:19) - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. g(r, q) .ne. w(27:38) - if (r .lt. 6 .and. q + r .le. 8) l = l .or. h(r, q) .ne. w(1:7) - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. h(r, q) .ne. w(20:26) - if (q .lt. 6) l = l .or. t(p, q, r) .ne. -10 + x + p - q + 2 * r - l = l .or. u(p, q, r) .ne. 30 - x - p + q - 2 * r - if (r .lt. 6 .and. q + r .le. 8) l = l .or. v(r, q) .ne. w(1:7) - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. v(r, q) .ne. w(20:26) -103 continue - do 104, p = 3, 5 - do 104, q = 2, 6 - do 104, r = 1, 7 - l = l .or. i(p - 2, q - 1, r) .ne. (7.5 + x) * p * q * r - l = l .or. j(p, q + 3, r + 6) .ne. (9.5 + x) * p * q * r -104 continue - do 105, p = 1, 5 - do 105, q = 4, 6 - l = l .or. k(p, 1, q - 3) .ne. 19 + x + p + 7 + 3 * q -105 continue - call check (size (e, 1), 2, l) - call check (size (e, 2), 3, l) - call check (size (e, 3), 7, l) - call check (size (e), 42, l) - call check (size (f, 1), 2, l) - call check (size (f, 2), 5, l) - call check (size (f, 3), 7, l) - call check (size (f), 70, l) - call check (size (g, 1), 5, l) - call check (size (g, 2), 5, l) - call check (size (g), 25, l) - call check (size (h, 1), 5, l) - call check (size (h, 2), 5, l) - call check (size (h), 25, l) - call check (size (i, 1), 3, l) - call check (size (i, 2), 5, l) - call check (size (i, 3), 7, l) - call check (size (i), 105, l) - call check (size (j, 1), 4, l) - call check (size (j, 2), 5, l) - call check (size (j, 3), 7, l) - call check (size (j), 140, l) - call check (size (k, 1), 5, l) - call check (size (k, 2), 1, l) - call check (size (k, 3), 3, l) - call check (size (k), 15, l) -110 continue -!$omp end parallel do - if (l) call abort - if (z2 == 6) then - x = 5 - w = 'thread5thr_number_5THREAD5THR_NUMBER_5' - y = '5' - l = l .or. w(7:7) .ne. y - l = l .or. w(19:19) .ne. y - l = l .or. w(26:26) .ne. y - l = l .or. w(38:38) .ne. y - l = l .or. c .ne. w(8:19) - l = l .or. d .ne. w(1:7) - l = l .or. s .ne. w(20:26) - do 113, p = 1, 2 - do 113, q = 3, 7 - do 113, r = 1, 7 - if (q .lt. 6) l = l .or. e(p, q, r) .ne. 5 * x + p + q + 2 * r - l = l .or. f(p, q, r) .ne. 25 * x + p + q + 2 * r - if (r .lt. 6 .and. q + r .le. 8) l = l .or. g(r, q) .ne. w(8:19) - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. g(r, q) .ne. w(27:38) - if (r .lt. 6 .and. q + r .le. 8) l = l .or. h(r, q) .ne. w(1:7) - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. h(r, q) .ne. w(20:26) - if (q .lt. 6) l = l .or. t(p, q, r) .ne. -10 + x + p - q + 2 * r - l = l .or. u(p, q, r) .ne. 30 - x - p + q - 2 * r - if (r .lt. 6 .and. q + r .le. 8) l = l .or. v(r, q) .ne. w(1:7) - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. v(r, q) .ne. w(20:26) -113 continue - do 114, p = 3, 5 - do 114, q = 2, 6 - do 114, r = 1, 7 - l = l .or. i(p - 2, q - 1, r) .ne. (7.5 + x) * p * q * r - l = l .or. j(p, q + 3, r + 6) .ne. (9.5 + x) * p * q * r -114 continue - do 115, p = 1, 5 - do 115, q = 4, 6 - l = l .or. k(p, 1, q - 3) .ne. 19 + x + p + 7 + 3 * q -115 continue - if (l) call abort - end if - end subroutine foo - - subroutine test - character (len = 12) :: c - character (len = 7) :: d - integer, dimension (2, 3:5, 7) :: e - integer, dimension (2, 3:7, 7) :: f - character (len = 12), dimension (5, 3:7) :: g - character (len = 7), dimension (5, 3:7) :: h - real, dimension (3:5, 2:6, 1:7) :: i - double precision, dimension (3:6, 2:6, 1:7) :: j - integer, dimension (1:5, 7:7, 4:6) :: k - integer :: p, q, r - c = 'abcdefghijkl' - d = 'ABCDEFG' - forall (p = 1:2, q = 3:5, r = 1:7) e(p, q, r) = 5 + p + q + 2 * r - forall (p = 1:2, q = 3:7, r = 1:7) f(p, q, r) = 25 + p + q + 2 * r - forall (p = 1:5, q = 3:7, p + q .le. 8) g(p, q) = '0123456789AB' - forall (p = 1:5, q = 3:7, p + q .gt. 8) g(p, q) = '9876543210ZY' - forall (p = 1:5, q = 3:7, p + q .le. 8) h(p, q) = '0123456' - forall (p = 1:5, q = 3:7, p + q .gt. 8) h(p, q) = '9876543' - forall (p = 3:5, q = 2:6, r = 1:7) i(p, q, r) = 7.5 * p * q * r - forall (p = 3:6, q = 2:6, r = 1:7) j(p, q, r) = 9.5 * p * q * r - forall (p = 1:5, q = 7:7, r = 4:6) k(p, q, r) = 19 + p + q + 3 * r - call foo (c, d, e, f, g, h, i, j, k, 7) - end subroutine test -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/vla6.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/vla6.f90 deleted file mode 100644 index bb9c4916d..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/vla6.f90 +++ /dev/null @@ -1,191 +0,0 @@ -! { dg-do run } - - call test -contains - subroutine check (x, y, l) - integer :: x, y - logical :: l - l = l .or. x .ne. y - end subroutine check - - subroutine foo (c, d, e, f, g, h, i, j, k, n) - use omp_lib - integer :: n - character (len = *) :: c - character (len = n) :: d - integer, dimension (2, 3:5, n) :: e - integer, dimension (2, 3:n, n) :: f - character (len = *), dimension (5, 3:n) :: g - character (len = n), dimension (5, 3:n) :: h - real, dimension (:, :, :) :: i - double precision, dimension (3:, 5:, 7:) :: j - integer, dimension (:, :, :) :: k - logical :: l - integer :: p, q, r - character (len = n) :: s - integer, dimension (2, 3:5, n) :: t - integer, dimension (2, 3:n, n) :: u - character (len = n), dimension (5, 3:n) :: v - character (len = 2 * n + 24) :: w - integer :: x, z - character (len = 1) :: y - l = .false. -!$omp parallel default (none) private (c, d, e, f, g, h, i, j, k) & -!$omp & private (s, t, u, v) reduction (.or.:l) num_threads (6) & -!$omp private (p, q, r, w, x, y) shared (z) - x = omp_get_thread_num () - w = '' - if (x .eq. 0) w = 'thread0thr_number_0THREAD0THR_NUMBER_0' - if (x .eq. 1) w = 'thread1thr_number_1THREAD1THR_NUMBER_1' - if (x .eq. 2) w = 'thread2thr_number_2THREAD2THR_NUMBER_2' - if (x .eq. 3) w = 'thread3thr_number_3THREAD3THR_NUMBER_3' - if (x .eq. 4) w = 'thread4thr_number_4THREAD4THR_NUMBER_4' - if (x .eq. 5) w = 'thread5thr_number_5THREAD5THR_NUMBER_5' - c = w(8:19) - d = w(1:7) - forall (p = 1:2, q = 3:5, r = 1:7) e(p, q, r) = 5 * x + p + q + 2 * r - forall (p = 1:2, q = 3:7, r = 1:7) f(p, q, r) = 25 * x + p + q + 2 * r - forall (p = 1:5, q = 3:7, p + q .le. 8) g(p, q) = w(8:19) - forall (p = 1:5, q = 3:7, p + q .gt. 8) g(p, q) = w(27:38) - forall (p = 1:5, q = 3:7, p + q .le. 8) h(p, q) = w(1:7) - forall (p = 1:5, q = 3:7, p + q .gt. 8) h(p, q) = w(20:26) - forall (p = 3:5, q = 2:6, r = 1:7) i(p - 2, q - 1, r) = (7.5 + x) * p * q * r - forall (p = 3:5, q = 2:6, r = 1:7) j(p, q + 3, r + 6) = (9.5 + x) * p * q * r - forall (p = 1:5, q = 7:7, r = 4:6) k(p, q - 6, r - 3) = 19 + x + p + q + 3 * r - s = w(20:26) - forall (p = 1:2, q = 3:5, r = 1:7) t(p, q, r) = -10 + x + p - q + 2 * r - forall (p = 1:2, q = 3:7, r = 1:7) u(p, q, r) = 30 - x - p + q - 2 * r - forall (p = 1:5, q = 3:7, p + q .le. 8) v(p, q) = w(1:7) - forall (p = 1:5, q = 3:7, p + q .gt. 8) v(p, q) = w(20:26) -!$omp barrier - y = '' - if (x .eq. 0) y = '0' - if (x .eq. 1) y = '1' - if (x .eq. 2) y = '2' - if (x .eq. 3) y = '3' - if (x .eq. 4) y = '4' - if (x .eq. 5) y = '5' - l = l .or. w(7:7) .ne. y - l = l .or. w(19:19) .ne. y - l = l .or. w(26:26) .ne. y - l = l .or. w(38:38) .ne. y - l = l .or. c .ne. w(8:19) - l = l .or. d .ne. w(1:7) - l = l .or. s .ne. w(20:26) - do 103, p = 1, 2 - do 103, q = 3, 7 - do 103, r = 1, 7 - if (q .lt. 6) l = l .or. e(p, q, r) .ne. 5 * x + p + q + 2 * r - l = l .or. f(p, q, r) .ne. 25 * x + p + q + 2 * r - if (r .lt. 6 .and. q + r .le. 8) l = l .or. g(r, q) .ne. w(8:19) - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. g(r, q) .ne. w(27:38) - if (r .lt. 6 .and. q + r .le. 8) l = l .or. h(r, q) .ne. w(1:7) - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. h(r, q) .ne. w(20:26) - if (q .lt. 6) l = l .or. t(p, q, r) .ne. -10 + x + p - q + 2 * r - l = l .or. u(p, q, r) .ne. 30 - x - p + q - 2 * r - if (r .lt. 6 .and. q + r .le. 8) l = l .or. v(r, q) .ne. w(1:7) - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. v(r, q) .ne. w(20:26) -103 continue - do 104, p = 3, 5 - do 104, q = 2, 6 - do 104, r = 1, 7 - l = l .or. i(p - 2, q - 1, r) .ne. (7.5 + x) * p * q * r - l = l .or. j(p, q + 3, r + 6) .ne. (9.5 + x) * p * q * r -104 continue - do 105, p = 1, 5 - do 105, q = 4, 6 - l = l .or. k(p, 1, q - 3) .ne. 19 + x + p + 7 + 3 * q -105 continue - call check (size (e, 1), 2, l) - call check (size (e, 2), 3, l) - call check (size (e, 3), 7, l) - call check (size (e), 42, l) - call check (size (f, 1), 2, l) - call check (size (f, 2), 5, l) - call check (size (f, 3), 7, l) - call check (size (f), 70, l) - call check (size (g, 1), 5, l) - call check (size (g, 2), 5, l) - call check (size (g), 25, l) - call check (size (h, 1), 5, l) - call check (size (h, 2), 5, l) - call check (size (h), 25, l) - call check (size (i, 1), 3, l) - call check (size (i, 2), 5, l) - call check (size (i, 3), 7, l) - call check (size (i), 105, l) - call check (size (j, 1), 4, l) - call check (size (j, 2), 5, l) - call check (size (j, 3), 7, l) - call check (size (j), 140, l) - call check (size (k, 1), 5, l) - call check (size (k, 2), 1, l) - call check (size (k, 3), 3, l) - call check (size (k), 15, l) -!$omp single - z = omp_get_thread_num () -!$omp end single copyprivate (c, d, e, f, g, h, i, j, k, s, t, u, v) - w = '' - x = z - if (x .eq. 0) w = 'thread0thr_number_0THREAD0THR_NUMBER_0' - if (x .eq. 1) w = 'thread1thr_number_1THREAD1THR_NUMBER_1' - if (x .eq. 2) w = 'thread2thr_number_2THREAD2THR_NUMBER_2' - if (x .eq. 3) w = 'thread3thr_number_3THREAD3THR_NUMBER_3' - if (x .eq. 4) w = 'thread4thr_number_4THREAD4THR_NUMBER_4' - if (x .eq. 5) w = 'thread5thr_number_5THREAD5THR_NUMBER_5' - y = '' - if (x .eq. 0) y = '0' - if (x .eq. 1) y = '1' - if (x .eq. 2) y = '2' - if (x .eq. 3) y = '3' - if (x .eq. 4) y = '4' - if (x .eq. 5) y = '5' - l = l .or. w(7:7) .ne. y - l = l .or. w(19:19) .ne. y - l = l .or. w(26:26) .ne. y - l = l .or. w(38:38) .ne. y - l = l .or. c .ne. w(8:19) - l = l .or. d .ne. w(1:7) - l = l .or. s .ne. w(20:26) - do 113, p = 1, 2 - do 113, q = 3, 7 - do 113, r = 1, 7 - if (q .lt. 6) l = l .or. e(p, q, r) .ne. 5 * x + p + q + 2 * r - l = l .or. f(p, q, r) .ne. 25 * x + p + q + 2 * r - if (r .lt. 6 .and. q + r .le. 8) l = l .or. g(r, q) .ne. w(8:19) - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. g(r, q) .ne. w(27:38) - if (r .lt. 6 .and. q + r .le. 8) l = l .or. h(r, q) .ne. w(1:7) - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. h(r, q) .ne. w(20:26) - if (q .lt. 6) l = l .or. t(p, q, r) .ne. -10 + x + p - q + 2 * r - l = l .or. u(p, q, r) .ne. 30 - x - p + q - 2 * r - if (r .lt. 6 .and. q + r .le. 8) l = l .or. v(r, q) .ne. w(1:7) - if (r .lt. 6 .and. q + r .gt. 8) l = l .or. v(r, q) .ne. w(20:26) -113 continue - do 114, p = 3, 5 - do 114, q = 2, 6 - do 114, r = 1, 7 - l = l .or. i(p - 2, q - 1, r) .ne. (7.5 + x) * p * q * r - l = l .or. j(p, q + 3, r + 6) .ne. (9.5 + x) * p * q * r -114 continue - do 115, p = 1, 5 - do 115, q = 4, 6 - l = l .or. k(p, 1, q - 3) .ne. 19 + x + p + 7 + 3 * q -115 continue -!$omp end parallel - if (l) call abort - end subroutine foo - - subroutine test - character (len = 12) :: c - character (len = 7) :: d - integer, dimension (2, 3:5, 7) :: e - integer, dimension (2, 3:7, 7) :: f - character (len = 12), dimension (5, 3:7) :: g - character (len = 7), dimension (5, 3:7) :: h - real, dimension (3:5, 2:6, 1:7) :: i - double precision, dimension (3:6, 2:6, 1:7) :: j - integer, dimension (1:5, 7:7, 4:6) :: k - integer :: p, q, r - call foo (c, d, e, f, g, h, i, j, k, 7) - end subroutine test -end diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/vla7.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/vla7.f90 deleted file mode 100644 index 29a669644..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/vla7.f90 +++ /dev/null @@ -1,143 +0,0 @@ -! { dg-do run } -! { dg-options "-w" } - - character (6) :: c, f2 - character (6) :: d(2) - c = f1 (6) - if (c .ne. 'opqrst') call abort - c = f2 (6) - if (c .ne. '_/!!/_') call abort - d = f3 (6) - if (d(1) .ne. 'opqrst' .or. d(2) .ne. 'a') call abort - d = f4 (6) - if (d(1) .ne. 'Opqrst' .or. d(2) .ne. 'A') call abort -contains - function f1 (n) - use omp_lib - character (n) :: f1 - logical :: l - f1 = 'abcdef' - l = .false. -!$omp parallel firstprivate (f1) reduction (.or.:l) num_threads (2) - l = f1 .ne. 'abcdef' - if (omp_get_thread_num () .eq. 0) f1 = 'ijklmn' - if (omp_get_thread_num () .eq. 1) f1 = 'IJKLMN' -!$omp barrier - l = l .or. (omp_get_thread_num () .eq. 0 .and. f1 .ne. 'ijklmn') - l = l .or. (omp_get_thread_num () .eq. 1 .and. f1 .ne. 'IJKLMN') -!$omp end parallel - f1 = 'zZzz_z' -!$omp parallel shared (f1) reduction (.or.:l) num_threads (2) - l = l .or. f1 .ne. 'zZzz_z' -!$omp barrier -!$omp master - f1 = 'abc' -!$omp end master -!$omp barrier - l = l .or. f1 .ne. 'abc' -!$omp barrier - if (omp_get_thread_num () .eq. 1) f1 = 'def' -!$omp barrier - l = l .or. f1 .ne. 'def' -!$omp end parallel - if (l) call abort - f1 = 'opqrst' - end function f1 - function f3 (n) - use omp_lib - character (n), dimension (2) :: f3 - logical :: l - f3 = 'abcdef' - l = .false. -!$omp parallel firstprivate (f3) reduction (.or.:l) num_threads (2) - l = any (f3 .ne. 'abcdef') - if (omp_get_thread_num () .eq. 0) f3 = 'ijklmn' - if (omp_get_thread_num () .eq. 1) f3 = 'IJKLMN' -!$omp barrier - l = l .or. (omp_get_thread_num () .eq. 0 .and. any (f3 .ne. 'ijklmn')) - l = l .or. (omp_get_thread_num () .eq. 1 .and. any (f3 .ne. 'IJKLMN')) -!$omp end parallel - f3 = 'zZzz_z' -!$omp parallel shared (f3) reduction (.or.:l) num_threads (2) - l = l .or. any (f3 .ne. 'zZzz_z') -!$omp barrier -!$omp master - f3 = 'abc' -!$omp end master -!$omp barrier - l = l .or. any (f3 .ne. 'abc') -!$omp barrier - if (omp_get_thread_num () .eq. 1) f3 = 'def' -!$omp barrier - l = l .or. any (f3 .ne. 'def') -!$omp end parallel - if (l) call abort - f3(1) = 'opqrst' - f3(2) = 'a' - end function f3 - function f4 (n) - use omp_lib - character (n), dimension (n - 4) :: f4 - logical :: l - f4 = 'abcdef' - l = .false. -!$omp parallel firstprivate (f4) reduction (.or.:l) num_threads (2) - l = any (f4 .ne. 'abcdef') - if (omp_get_thread_num () .eq. 0) f4 = 'ijklmn' - if (omp_get_thread_num () .eq. 1) f4 = 'IJKLMN' -!$omp barrier - l = l .or. (omp_get_thread_num () .eq. 0 .and. any (f4 .ne. 'ijklmn')) - l = l .or. (omp_get_thread_num () .eq. 1 .and. any (f4 .ne. 'IJKLMN')) - l = l .or. size (f4) .ne. 2 -!$omp end parallel - f4 = 'zZzz_z' -!$omp parallel shared (f4) reduction (.or.:l) num_threads (2) - l = l .or. any (f4 .ne. 'zZzz_z') -!$omp barrier -!$omp master - f4 = 'abc' -!$omp end master -!$omp barrier - l = l .or. any (f4 .ne. 'abc') -!$omp barrier - if (omp_get_thread_num () .eq. 1) f4 = 'def' -!$omp barrier - l = l .or. any (f4 .ne. 'def') - l = l .or. size (f4) .ne. 2 -!$omp end parallel - if (l) call abort - f4(1) = 'Opqrst' - f4(2) = 'A' - end function f4 -end -function f2 (n) - use omp_lib - character (*) :: f2 - logical :: l - f2 = 'abcdef' - l = .false. -!$omp parallel firstprivate (f2) reduction (.or.:l) num_threads (2) - l = f2 .ne. 'abcdef' - if (omp_get_thread_num () .eq. 0) f2 = 'ijklmn' - if (omp_get_thread_num () .eq. 1) f2 = 'IJKLMN' -!$omp barrier - l = l .or. (omp_get_thread_num () .eq. 0 .and. f2 .ne. 'ijklmn') - l = l .or. (omp_get_thread_num () .eq. 1 .and. f2 .ne. 'IJKLMN') -!$omp end parallel - f2 = 'zZzz_z' -!$omp parallel shared (f2) reduction (.or.:l) num_threads (2) - l = l .or. f2 .ne. 'zZzz_z' -!$omp barrier -!$omp master - f2 = 'abc' -!$omp end master -!$omp barrier - l = l .or. f2 .ne. 'abc' -!$omp barrier - if (omp_get_thread_num () .eq. 1) f2 = 'def' -!$omp barrier - l = l .or. f2 .ne. 'def' -!$omp end parallel - if (l) call abort - f2 = '_/!!/_' -end function f2 diff --git a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/workshare1.f90 b/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/workshare1.f90 deleted file mode 100644 index a0e6ff919..000000000 --- a/gcc-4.2.1-5666.3/libgomp/testsuite/libgomp.fortran/workshare1.f90 +++ /dev/null @@ -1,30 +0,0 @@ -function foo () - integer :: foo - logical :: foo_seen - common /foo_seen/ foo_seen - foo_seen = .true. - foo = 3 -end -function bar () - integer :: bar - logical :: bar_seen - common /bar_seen/ bar_seen - bar_seen = .true. - bar = 3 -end - integer :: a (10), b (10), foo, bar - logical :: foo_seen, bar_seen - common /foo_seen/ foo_seen - common /bar_seen/ bar_seen - - foo_seen = .false. - bar_seen = .false. -!$omp parallel workshare if (foo () .gt. 2) num_threads (bar () + 1) - a = 10 - b = 20 - a(1:5) = max (a(1:5), b(1:5)) -!$omp end parallel workshare - if (any (a(1:5) .ne. 20)) call abort - if (any (a(6:10) .ne. 10)) call abort - if (.not. foo_seen .or. .not. bar_seen) call abort -end diff --git a/gcc-4.2.1-5666.3/libgomp/work.c b/gcc-4.2.1-5666.3/libgomp/work.c deleted file mode 100644 index cd20c9dbe..000000000 --- a/gcc-4.2.1-5666.3/libgomp/work.c +++ /dev/null @@ -1,223 +0,0 @@ -/* Copyright (C) 2005 Free Software Foundation, Inc. - Contributed by Richard Henderson <rth@redhat.com>. - - This file is part of the GNU OpenMP Library (libgomp). - - Libgomp is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published by - the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for - more details. - - You should have received a copy of the GNU Lesser General Public License - along with libgomp; see the file COPYING.LIB. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, - MA 02110-1301, USA. */ - -/* As a special exception, if you link this library with other files, some - of which are compiled with GCC, to produce an executable, this library - does not by itself cause the resulting executable to be covered by the - GNU General Public License. This exception does not however invalidate - any other reasons why the executable file might be covered by the GNU - General Public License. */ - -/* This file contains routines to manage the work-share queue for a team - of threads. */ - -#include "libgomp.h" -#include <stdlib.h> -#include <string.h> - - -/* Create a new work share structure. */ - -struct gomp_work_share * -gomp_new_work_share (bool ordered, unsigned nthreads) -{ - struct gomp_work_share *ws; - size_t size; - - size = sizeof (*ws); - if (ordered) - size += nthreads * sizeof (ws->ordered_team_ids[0]); - - ws = gomp_malloc_cleared (size); - gomp_mutex_init (&ws->lock); - ws->ordered_owner = -1; - - return ws; -} - - -/* Free a work share structure. */ - -static void -free_work_share (struct gomp_work_share *ws) -{ - gomp_mutex_destroy (&ws->lock); - free (ws); -} - - -/* The current thread is ready to begin the next work sharing construct. - In all cases, thr->ts.work_share is updated to point to the new - structure. In all cases the work_share lock is locked. Return true - if this was the first thread to reach this point. */ - -bool -gomp_work_share_start (bool ordered) -{ - struct gomp_thread *thr = gomp_thread (); - struct gomp_team *team = thr->ts.team; - struct gomp_work_share *ws; - unsigned ws_index, ws_gen; - - /* Work sharing constructs can be orphaned. */ - if (team == NULL) - { - ws = gomp_new_work_share (ordered, 1); - thr->ts.work_share = ws; - thr->ts.static_trip = 0; - gomp_mutex_lock (&ws->lock); - return true; - } - - gomp_mutex_lock (&team->work_share_lock); - - /* This thread is beginning its next generation. */ - ws_gen = ++thr->ts.work_share_generation; - - /* If this next generation is not newer than any other generation in - the team, then simply reference the existing construct. */ - if (ws_gen - team->oldest_live_gen < team->num_live_gen) - { - ws_index = ws_gen & team->generation_mask; - ws = team->work_shares[ws_index]; - thr->ts.work_share = ws; - thr->ts.static_trip = 0; - - gomp_mutex_lock (&ws->lock); - gomp_mutex_unlock (&team->work_share_lock); - - return false; - } - - /* Resize the work shares queue if we've run out of space. */ - if (team->num_live_gen++ == team->generation_mask) - { - team->work_shares = gomp_realloc (team->work_shares, - 2 * team->num_live_gen - * sizeof (*team->work_shares)); - - /* Unless oldest_live_gen is zero, the sequence of live elements - wraps around the end of the array. If we do nothing, we break - lookup of the existing elements. Fix that by unwrapping the - data from the front to the end. */ - if (team->oldest_live_gen > 0) - memcpy (team->work_shares + team->num_live_gen, - team->work_shares, - (team->oldest_live_gen & team->generation_mask) - * sizeof (*team->work_shares)); - - team->generation_mask = team->generation_mask * 2 + 1; - } - - ws_index = ws_gen & team->generation_mask; - ws = gomp_new_work_share (ordered, team->nthreads); - thr->ts.work_share = ws; - thr->ts.static_trip = 0; - team->work_shares[ws_index] = ws; - - gomp_mutex_lock (&ws->lock); - gomp_mutex_unlock (&team->work_share_lock); - - return true; -} - - -/* The current thread is done with its current work sharing construct. - This version does imply a barrier at the end of the work-share. */ - -void -gomp_work_share_end (void) -{ - struct gomp_thread *thr = gomp_thread (); - struct gomp_team *team = thr->ts.team; - struct gomp_work_share *ws = thr->ts.work_share; - bool last; - - thr->ts.work_share = NULL; - - /* Work sharing constructs can be orphaned. */ - if (team == NULL) - { - free_work_share (ws); - return; - } - - last = gomp_barrier_wait_start (&team->barrier); - - if (last) - { - unsigned ws_index; - - ws_index = thr->ts.work_share_generation & team->generation_mask; - team->work_shares[ws_index] = NULL; - team->oldest_live_gen++; - team->num_live_gen = 0; - - free_work_share (ws); - } - - gomp_barrier_wait_end (&team->barrier, last); -} - - -/* The current thread is done with its current work sharing construct. - This version does NOT imply a barrier at the end of the work-share. */ - -void -gomp_work_share_end_nowait (void) -{ - struct gomp_thread *thr = gomp_thread (); - struct gomp_team *team = thr->ts.team; - struct gomp_work_share *ws = thr->ts.work_share; - unsigned completed; - - thr->ts.work_share = NULL; - - /* Work sharing constructs can be orphaned. */ - if (team == NULL) - { - free_work_share (ws); - return; - } - -#ifdef HAVE_SYNC_BUILTINS - completed = __sync_add_and_fetch (&ws->threads_completed, 1); -#else - gomp_mutex_lock (&ws->lock); - completed = ++ws->threads_completed; - gomp_mutex_unlock (&ws->lock); -#endif - - if (completed == team->nthreads) - { - unsigned ws_index; - - gomp_mutex_lock (&team->work_share_lock); - - ws_index = thr->ts.work_share_generation & team->generation_mask; - team->work_shares[ws_index] = NULL; - team->oldest_live_gen++; - team->num_live_gen--; - - gomp_mutex_unlock (&team->work_share_lock); - - free_work_share (ws); - } -} |