diff --git a/build-devkit.sh b/build-devkit.sh index a621b28..1569e8e 100644 --- a/build-devkit.sh +++ b/build-devkit.sh @@ -7,11 +7,11 @@ # specify some urls to download the source packages from #--------------------------------------------------------------------------------- BINUTILS_VER=2.16.1 -GCC_VER=3.4.4 +GCC_VER=4.0.1 NEWLIB_VER=1.13.0 LIBOGC_VER=20050521 LIBGBA_VER=20050615 -LIBNDS_VER=20050615 +LIBNDS_VER=20050714 PSPSDK_VER=1.0+beta BINUTILS="binutils-$BINUTILS_VER.tar.bz2" @@ -55,7 +55,7 @@ done if [ $VERSION -eq 1 ] then - scriptdir='./dkarm/scripts' + basedir='dkarm' package=devkitARM builddir=arm-elf target=arm-elf @@ -64,7 +64,7 @@ fi if [ $VERSION -eq 2 ] then - scriptdir='./dkppc/scripts' + basedir='dkppc' package=devkitPPC builddir=powerpc-gekko target=powerpc-gekko @@ -73,7 +73,7 @@ fi if [ $VERSION -eq 3 ] then - scriptdir='./dkpsp/scripts' + basedir='dkpsp' package=devkitPSP builddir=psp target=psp @@ -261,6 +261,9 @@ fi echo use $MAKE as make export MAKE +if [ 0 ] +then + #--------------------------------------------------------------------------------- # Extract source packages #--------------------------------------------------------------------------------- @@ -302,13 +305,17 @@ then bzip2 -cd $SRCDIR/$LIBGBA | tar -xv -C $LIBGBA_SRCDIR || { echo "Error extracting "$LIBGBA; exit; } fi +fi + +patchdir=$(pwd)/$basedir/patches +scriptdir=$(pwd)/$basedir/scripts #--------------------------------------------------------------------------------- # apply patches #--------------------------------------------------------------------------------- -patch -p1 -d $BINUTILS_SRCDIR -i $(pwd)/patches/devkit-binutils-$BINUTILS_VER.patch || { echo "Error patching binutils"; exit; } -patch -p1 -d $GCC_SRCDIR -i $(pwd)/patches/devkit-gcc-$GCC_VER.patch || { echo "Error patching gcc"; exit; } -patch -p1 -d $NEWLIB_SRCDIR -i $(pwd)/patches/devkit-newlib-$NEWLIB_VER.patch || { echo "Error patching newlib"; exit; } +patch -p1 -d $BINUTILS_SRCDIR -i $patchdir/binutils-$BINUTILS_VER.patch || { echo "Error patching binutils"; exit; } +patch -p1 -d $GCC_SRCDIR -i $patchdir/gcc-$GCC_VER.patch || { echo "Error patching gcc"; exit; } +patch -p1 -d $NEWLIB_SRCDIR -i $patchdir/newlib-$NEWLIB_VER.patch || { echo "Error patching newlib"; exit; } if [ $VERSION -eq 3 ] then diff --git a/dkarm/patches/binutils-2.16.1.patch b/dkarm/patches/binutils-2.16.1.patch new file mode 100644 index 0000000..a24d96c --- /dev/null +++ b/dkarm/patches/binutils-2.16.1.patch @@ -0,0 +1,16 @@ +diff -Nbaur --exclude=*.info* binutils-2.16.1/bfd/doc/chew.c binutils-2.16.1-new/bfd/doc/chew.c +--- binutils-2.16.1/bfd/doc/chew.c Thu Mar 3 11:41:02 2005 ++++ binutils-2.16.1-new/bfd/doc/chew.c Mon Jun 20 00:14:07 2005 +@@ -91,6 +91,12 @@ + #define DEF_SIZE 5000 + #define STACK 50 + ++#ifdef __MINGW32__ ++/* Prevent \r\n\ line endings */ ++#include ++unsigned int _CRT_fmode = _O_BINARY; ++#endif ++ + int internal_wanted; + int internal_mode; + diff --git a/dkarm/patches/gcc-4.0.1.patch b/dkarm/patches/gcc-4.0.1.patch new file mode 100644 index 0000000..0e1cbe1 --- /dev/null +++ b/dkarm/patches/gcc-4.0.1.patch @@ -0,0 +1,64 @@ +diff -Naurb gcc-4.0.1/gcc/c-incpath.c gcc-4.0.1-new/gcc/c-incpath.c +--- gcc-4.0.1/gcc/c-incpath.c Sun Jan 23 15:05:27 2005 ++++ gcc-4.0.1-new/gcc/c-incpath.c Fri Jul 8 11:32:20 2005 +@@ -331,13 +331,18 @@ + cpp_dir *p; + + #if defined (HAVE_DOS_BASED_FILE_SYSTEM) +- /* Convert all backslashes to slashes. The native CRT stat() +- function does not recognize a directory that ends in a backslash +- (unless it is a drive root dir, such "c:\"). Forward slashes, +- trailing or otherwise, cause no problems for stat(). */ +- char* c; +- for (c = path; *c; c++) +- if (*c == '\\') *c = '/'; ++ /* Remove unnecessary trailing slashes. On some versions of MS ++ Windows, trailing _forward_ slashes cause no problems for stat(). ++ On newer versions, stat() does not recognise a directory that ends ++ in a '\\' or '/', unless it is a drive root dir, such as "c:/", ++ where it is obligatory. */ ++ int pathlen = strlen (path); ++ char* end = path + pathlen - 1; ++ /* Preserve the lead '/' or lead "c:/". */ ++ char* start = path + (pathlen > 2 && path[1] == ':' ? 3 : 1); ++ ++ for (; end > start && IS_DIR_SEPARATOR (*end); end--) ++ *end = 0; + #endif + + p = xmalloc (sizeof (cpp_dir)); +diff -Naurb gcc-4.0.1/gcc/version.c gcc-4.0.1-arm/gcc/version.c +--- gcc-4.0.1/gcc/version.c Thu Jul 7 19:41:54 2005 ++++ gcc-4.0.1-arm/gcc/version.c Tue Jul 26 22:31:02 2005 +@@ -14,4 +14,4 @@ + forward us bugs reported to you, if you determine that they are + not bugs in your modifications.) */ + +-const char bug_report_url[] = ""; ++const char bug_report_url[] = ""; +diff -Naurb gcc-4.0.1/gcc/config/arm/t-arm-elf gcc-4.0.1-new/gcc/config/arm/t-arm-elf +--- gcc-4.0.1/gcc/config/arm/t-arm-elf Wed Sep 1 12:14:21 2004 ++++ gcc-4.0.1-new/gcc/config/arm/t-arm-elf Wed Jul 20 23:25:14 2005 +@@ -23,8 +23,8 @@ + # MULTILIB_DIRNAMES += fpu soft + # MULTILIB_EXCEPTIONS += *mthumb/*mhard-float* + # +-# MULTILIB_OPTIONS += mno-thumb-interwork/mthumb-interwork +-# MULTILIB_DIRNAMES += normal interwork ++MULTILIB_OPTIONS += mno-thumb-interwork/mthumb-interwork ++MULTILIB_DIRNAMES += normal interwork + # + # MULTILIB_OPTIONS += fno-leading-underscore/fleading-underscore + # MULTILIB_DIRNAMES += elf under +diff -Naurb gcc-4.0.1/gcc/hwint.h gcc-4.0.1-new/gcc/hwint.h +--- gcc-4.0.1/gcc/hwint.h Wed Nov 24 04:31:57 2004 ++++ gcc-4.0.1-new/gcc/hwint.h Thu Jul 21 14:37:06 2005 +@@ -80,7 +80,7 @@ + # define HOST_WIDE_INT_PRINT_DOUBLE_HEX "0x%lx%08lx" + # endif + #else +-# define HOST_WIDE_INT_PRINT "ll" ++# define HOST_WIDE_INT_PRINT HOST_LONG_LONG_FORMAT + # define HOST_WIDE_INT_PRINT_C "LL" + /* We can assume that 'long long' is at least 64 bits. */ + # define HOST_WIDE_INT_PRINT_DOUBLE_HEX \ diff --git a/dkarm/patches/newlib-1.13.0.patch b/dkarm/patches/newlib-1.13.0.patch new file mode 100644 index 0000000..6815765 --- /dev/null +++ b/dkarm/patches/newlib-1.13.0.patch @@ -0,0 +1,64 @@ +diff -NBaur newlib-1.13.0/newlib/libc/sys/arm/Makefile.in newlib-1.13.0-new/newlib/libc/sys/arm/Makefile.in +--- newlib-1.13.0/newlib/libc/sys/arm/Makefile.in Wed Jun 9 20:05:09 2004 ++++ newlib-1.13.0-new/newlib/libc/sys/arm/Makefile.in Wed Jul 6 09:09:25 2005 +@@ -88,7 +88,7 @@ + INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) + + noinst_LIBRARIES = lib.a +-@MAY_SUPPLY_SYSCALLS_TRUE@extra_objs = syscalls.o ++@MAY_SUPPLY_SYSCALLS_TRUE@extra_objs = syscalls.o malloc_vars.o + @MAY_SUPPLY_SYSCALLS_FALSE@extra_objs = + + lib_a_SOURCES = libcfunc.c trap.S +diff -NBaur newlib-1.13.0/newlib/libc/sys/arm/malloc_vars.c newlib-1.13.0-new/newlib/libc/sys/arm/malloc_vars.c +--- newlib-1.13.0/newlib/libc/sys/arm/malloc_vars.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.13.0-new/newlib/libc/sys/arm/malloc_vars.c Wed Jul 6 09:09:25 2005 +@@ -0,0 +1,2 @@ ++char *fake_heap_end = (char*)0; ++char *fake_heap_start = (char*)0; +diff -NBaur newlib-1.13.0/newlib/libc/sys/arm/syscalls.c newlib-1.13.0-new/newlib/libc/sys/arm/syscalls.c +--- newlib-1.13.0/newlib/libc/sys/arm/syscalls.c Tue Jan 6 19:27:21 2004 ++++ newlib-1.13.0-new/newlib/libc/sys/arm/syscalls.c Wed Jul 6 09:09:25 2005 +@@ -474,19 +474,41 @@ + n = n; + } + ++extern char *fake_heap_end; ++extern char *fake_heap_start; ++ + caddr_t + _sbrk (int incr) + { + extern char end asm ("end"); /* Defined by the linker. */ + static char * heap_end; + char * prev_heap_end; ++ char * our_heap_end; + + if (heap_end == NULL) ++ { ++ if (fake_heap_start == NULL) ++ { + heap_end = & end; ++ } ++ else ++ { ++ heap_end = fake_heap_start; ++ } ++ } + + prev_heap_end = heap_end; + +- if (heap_end + incr > stack_ptr) ++ if (fake_heap_end == NULL) ++ { ++ our_heap_end = stack_ptr; ++ } ++ else ++ { ++ our_heap_end = fake_heap_end; ++ } ++ ++ if (heap_end + incr > our_heap_end) + { + /* Some of the libstdc++-v3 tests rely upon detecting + out of memory errors, so do not abort here. */ diff --git a/patches/devkit-binutils-2.15.patch b/dkppc/patches/binutils-2.16.1.patch similarity index 82% rename from patches/devkit-binutils-2.15.patch rename to dkppc/patches/binutils-2.16.1.patch index 3b62448..77248cb 100644 --- a/patches/devkit-binutils-2.15.patch +++ b/dkppc/patches/binutils-2.16.1.patch @@ -1,20 +1,6 @@ -diff -Nbaur binutils-2.15/config.sub binutils-2.15-gekko/config.sub ---- binutils-2.15/config.sub Mon Jun 2 21:35:44 2003 -+++ binutils-2.15-gekko/config.sub Thu Jan 20 09:03:26 2005 -@@ -218,6 +218,10 @@ - basic_machine=m68k-atari - os=-mint - ;; -+ -gekko) -+ basic_machine=powerpc-eabi -+ os=-elf -+ ;; - esac - - # Decode aliases for certain CPU-COMPANY combinations. -diff -Nbaur binutils-2.15/bfd/doc/chew.c binutils-2.15-new/bfd/doc/chew.c ---- binutils-2.15/bfd/doc/chew.c Sun Jun 29 11:06:40 2003 -+++ binutils-2.15-new/bfd/doc/chew.c Thu Jan 20 20:16:18 2005 +diff -Nbaur --exclude=*.info* binutils-2.16.1/bfd/doc/chew.c binutils-2.16.1-new/bfd/doc/chew.c +--- binutils-2.16.1/bfd/doc/chew.c Thu Mar 3 11:41:02 2005 ++++ binutils-2.16.1-new/bfd/doc/chew.c Mon Jun 20 00:14:07 2005 @@ -91,6 +91,12 @@ #define DEF_SIZE 5000 #define STACK 50 @@ -28,9 +14,35 @@ diff -Nbaur binutils-2.15/bfd/doc/chew.c binutils-2.15-new/bfd/doc/chew.c int internal_wanted; int internal_mode; -diff -Nbaur binutils-2.15/gas/config/tc-ppc.c binutils-2.15-new/gas/config/tc-ppc.c ---- binutils-2.15/gas/config/tc-ppc.c Mon May 17 20:36:12 2004 -+++ binutils-2.15-new/gas/config/tc-ppc.c Fri Jan 21 00:28:36 2005 +diff -Nbaur --exclude=*.info* binutils-2.16.1/config.sub binutils-2.16.1-new/config.sub +--- binutils-2.16.1/config.sub Wed Jan 19 00:34:56 2005 ++++ binutils-2.16.1-new/config.sub Mon Jun 20 00:14:07 2005 +@@ -219,6 +219,10 @@ + basic_machine=m68k-atari + os=-mint + ;; ++ -gekko) ++ basic_machine=powerpc-eabi ++ os=-elf ++ ;; + esac + + # Decode aliases for certain CPU-COMPANY combinations. +diff -Nbaur --exclude=*.info* binutils-2.16.1/configure.in binutils-2.16.1-new/configure.in +--- binutils-2.16.1/configure.in Sun Jun 12 20:33:06 2005 ++++ binutils-2.16.1-new/configure.in Mon Jun 20 00:53:42 2005 +@@ -242,7 +242,7 @@ + + # Some tools are only suitable for building in a "native" situation. + # Remove these if host!=target. +-native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff gprof target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf" ++native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf" + + # Similarly, some are only suitable for cross toolchains. + # Remove these if host=target. +diff -Nbaur --exclude=*.info* binutils-2.16.1/gas/config/tc-ppc.c binutils-2.16.1-new/gas/config/tc-ppc.c +--- binutils-2.16.1/gas/config/tc-ppc.c Wed Mar 2 13:24:01 2005 ++++ binutils-2.16.1-new/gas/config/tc-ppc.c Mon Jun 20 00:14:07 2005 @@ -310,6 +310,7 @@ sdr1 has the value 25 srr0 has the value 26 @@ -121,9 +133,9 @@ diff -Nbaur binutils-2.15/gas/config/tc-ppc.c binutils-2.15-new/gas/config/tc-pp if (*str != '\0') ++str; } -diff -Nbaur binutils-2.15/include/opcode/ppc.h binutils-2.15-new/include/opcode/ppc.h ---- binutils-2.15/include/opcode/ppc.h Mon May 17 20:36:06 2004 -+++ binutils-2.15-new/include/opcode/ppc.h Thu Jan 20 19:54:34 2005 +diff -Nbaur --exclude=*.info* binutils-2.16.1/include/opcode/ppc.h binutils-2.16.1-new/include/opcode/ppc.h +--- binutils-2.16.1/include/opcode/ppc.h Thu Sep 9 13:42:37 2004 ++++ binutils-2.16.1-new/include/opcode/ppc.h Mon Jun 20 00:14:07 2005 @@ -134,6 +134,9 @@ /* Opcode is supported by machine check APU. */ #define PPC_OPCODE_RFMCI 0x800000 @@ -145,12 +157,12 @@ diff -Nbaur binutils-2.15/include/opcode/ppc.h binutils-2.15-new/include/opcode/ /* The POWER and PowerPC assemblers use a few macros. We keep them with the operands table for simplicity. The macro table is an array of struct powerpc_macro. */ -diff -Nbaur binutils-2.15/opcodes/ppc-dis.c binutils-2.15-new/opcodes/ppc-dis.c ---- binutils-2.15/opcodes/ppc-dis.c Mon May 17 20:35:56 2004 -+++ binutils-2.15-new/opcodes/ppc-dis.c Thu Jan 20 19:54:34 2005 -@@ -72,6 +72,13 @@ - dialect &= ~PPC_OPCODE_ALTIVEC; - } +diff -Nbaur --exclude=*.info* binutils-2.16.1/opcodes/ppc-dis.c binutils-2.16.1-new/opcodes/ppc-dis.c +--- binutils-2.16.1/opcodes/ppc-dis.c Tue Mar 22 15:31:19 2005 ++++ binutils-2.16.1-new/opcodes/ppc-dis.c Mon Jun 20 00:14:07 2005 +@@ -64,6 +64,13 @@ + && strstr (info->disassembler_options, "efs") != NULL) + dialect |= PPC_OPCODE_EFS; else + if (info->disassembler_options + && (strstr (info->disassembler_options, "gekko") == 0)) @@ -160,9 +172,9 @@ diff -Nbaur binutils-2.15/opcodes/ppc-dis.c binutils-2.15-new/opcodes/ppc-dis.c + } + else dialect |= (PPC_OPCODE_403 | PPC_OPCODE_601 | PPC_OPCODE_CLASSIC - | PPC_OPCODE_COMMON); + | PPC_OPCODE_COMMON | PPC_OPCODE_ALTIVEC); -@@ -247,6 +254,8 @@ +@@ -239,6 +246,8 @@ (*info->print_address_func) (memaddr + value, info); else if ((operand->flags & PPC_OPERAND_ABSOLUTE) != 0) (*info->print_address_func) ((bfd_vma) value & 0xffffffff, info); @@ -171,15 +183,15 @@ diff -Nbaur binutils-2.15/opcodes/ppc-dis.c binutils-2.15-new/opcodes/ppc-dis.c else if ((operand->flags & PPC_OPERAND_CR) == 0 || (dialect & PPC_OPCODE_PPC) == 0) (*info->fprintf_func) (info->stream, "%ld", value); -@@ -312,4 +321,5 @@ +@@ -304,4 +313,5 @@ fprintf (stream, " power4 Disassemble the Power4 instructions\n"); fprintf (stream, " 32 Do not disassemble 64-bit instructions\n"); fprintf (stream, " 64 Allow disassembly of 64-bit instructions\n"); + fprintf (stream, " gekko Disassemble the Gamecube Gekko instructions\n"); } -diff -Nbaur binutils-2.15/opcodes/ppc-opc.c binutils-2.15-new/opcodes/ppc-opc.c ---- binutils-2.15/opcodes/ppc-opc.c Mon May 17 20:35:56 2004 -+++ binutils-2.15-new/opcodes/ppc-opc.c Fri Jan 21 00:29:46 2005 +diff -Nbaur --exclude=*.info* binutils-2.16.1/opcodes/ppc-opc.c binutils-2.16.1-new/opcodes/ppc-opc.c +--- binutils-2.16.1/opcodes/ppc-opc.c Tue Apr 19 18:09:56 2005 ++++ binutils-2.16.1-new/opcodes/ppc-opc.c Mon Jun 20 00:14:07 2005 @@ -93,6 +93,13 @@ static unsigned long insert_ev8 (unsigned long, long, int, const char **); static long extract_ev8 (unsigned long, int, int *); @@ -194,9 +206,9 @@ diff -Nbaur binutils-2.15/opcodes/ppc-opc.c binutils-2.15-new/opcodes/ppc-opc.c /* The operands table. The fields are bits, shift, insert, extract, flags. -@@ -554,6 +561,25 @@ +@@ -558,6 +565,25 @@ #define MTMSRD_L WS + 1 - { 1, 16, 0, 0, PPC_OPERAND_OPTIONAL }, + { 1, 16, NULL, NULL, PPC_OPERAND_OPTIONAL }, + /* I Field in psq_ instructions */ +#define PSQ_DD MTMSRD_L + 1 @@ -220,7 +232,7 @@ diff -Nbaur binutils-2.15/opcodes/ppc-opc.c binutils-2.15-new/opcodes/ppc-opc.c }; /* The functions used to insert and extract complicated operands. */ -@@ -1417,6 +1443,48 @@ +@@ -1432,6 +1458,48 @@ return ret; } @@ -269,7 +281,7 @@ diff -Nbaur binutils-2.15/opcodes/ppc-opc.c binutils-2.15-new/opcodes/ppc-opc.c /* Macros used to form opcodes. */ /* The main opcode. */ -@@ -1696,6 +1764,10 @@ +@@ -1715,6 +1783,10 @@ #define XUC(op, xop) (OP (op) | (((unsigned long)(xop)) & 0x1f)) #define XUC_MASK XUC(0x3f, 0x1f) @@ -280,7 +292,7 @@ diff -Nbaur binutils-2.15/opcodes/ppc-opc.c binutils-2.15-new/opcodes/ppc-opc.c /* The BO encodings used in extended conditional branch mnemonics. */ #define BODNZF (0x0) #define BODNZFP (0x1) -@@ -1786,6 +1858,7 @@ +@@ -1805,6 +1877,7 @@ #define PPCCHLK PPC_OPCODE_CACHELCK #define PPCCHLK64 PPC_OPCODE_CACHELCK | PPC_OPCODE_BOOKE64 #define PPCRFMCI PPC_OPCODE_RFMCI @@ -288,7 +300,7 @@ diff -Nbaur binutils-2.15/opcodes/ppc-opc.c binutils-2.15-new/opcodes/ppc-opc.c /* The opcode table. -@@ -4558,6 +4631,99 @@ +@@ -4612,6 +4685,99 @@ { "fcfid", XRC(63,846,0), XRA_MASK, PPC64, { FRT, FRB } }, { "fcfid.", XRC(63,846,1), XRA_MASK, PPC64, { FRT, FRB } }, diff --git a/dkppc/patches/gcc-4.0.1.patch b/dkppc/patches/gcc-4.0.1.patch new file mode 100644 index 0000000..bc7109d --- /dev/null +++ b/dkppc/patches/gcc-4.0.1.patch @@ -0,0 +1,64 @@ +diff -Naurb gcc-4.0.1/config.sub gcc-4.0.1-ppc/config.sub +--- gcc-4.0.1/config.sub Mon Apr 25 11:36:56 2005 ++++ gcc-4.0.1-ppc/config.sub Tue Jul 26 22:32:27 2005 +@@ -219,6 +219,10 @@ + basic_machine=m68k-atari + os=-mint + ;; ++ -gekko) ++ basic_machine=powerpc-eabi ++ os=-elf ++ ;; + esac + + # Decode aliases for certain CPU-COMPANY combinations. +diff -Naurb gcc-4.0.1/gcc/c-incpath.c gcc-4.0.1-new/gcc/c-incpath.c +--- gcc-4.0.1/gcc/c-incpath.c Sun Jan 23 15:05:27 2005 ++++ gcc-4.0.1-new/gcc/c-incpath.c Fri Jul 8 11:32:20 2005 +@@ -331,13 +331,18 @@ + cpp_dir *p; + + #if defined (HAVE_DOS_BASED_FILE_SYSTEM) +- /* Convert all backslashes to slashes. The native CRT stat() +- function does not recognize a directory that ends in a backslash +- (unless it is a drive root dir, such "c:\"). Forward slashes, +- trailing or otherwise, cause no problems for stat(). */ +- char* c; +- for (c = path; *c; c++) +- if (*c == '\\') *c = '/'; ++ /* Remove unnecessary trailing slashes. On some versions of MS ++ Windows, trailing _forward_ slashes cause no problems for stat(). ++ On newer versions, stat() does not recognise a directory that ends ++ in a '\\' or '/', unless it is a drive root dir, such as "c:/", ++ where it is obligatory. */ ++ int pathlen = strlen (path); ++ char* end = path + pathlen - 1; ++ /* Preserve the lead '/' or lead "c:/". */ ++ char* start = path + (pathlen > 2 && path[1] == ':' ? 3 : 1); ++ ++ for (; end > start && IS_DIR_SEPARATOR (*end); end--) ++ *end = 0; + #endif + + p = xmalloc (sizeof (cpp_dir)); +diff -Naurb gcc-4.0.1/gcc/version.c gcc-4.0.1-ppc/gcc/version.c +--- gcc-4.0.1/gcc/version.c Thu Jul 7 19:41:54 2005 ++++ gcc-4.0.1-ppc/gcc/version.c Tue Jul 26 22:31:02 2005 +@@ -14,4 +14,4 @@ + forward us bugs reported to you, if you determine that they are + not bugs in your modifications.) */ + +-const char bug_report_url[] = ""; ++const char bug_report_url[] = ""; +diff -Naurb gcc-4.0.1/gcc/hwint.h gcc-4.0.1-new/gcc/hwint.h +--- gcc-4.0.1/gcc/hwint.h Wed Nov 24 04:31:57 2004 ++++ gcc-4.0.1-new/gcc/hwint.h Thu Jul 21 14:37:06 2005 +@@ -80,7 +80,7 @@ + # define HOST_WIDE_INT_PRINT_DOUBLE_HEX "0x%lx%08lx" + # endif + #else +-# define HOST_WIDE_INT_PRINT "ll" ++# define HOST_WIDE_INT_PRINT HOST_LONG_LONG_FORMAT + # define HOST_WIDE_INT_PRINT_C "LL" + /* We can assume that 'long long' is at least 64 bits. */ + # define HOST_WIDE_INT_PRINT_DOUBLE_HEX \ diff --git a/dkppc/patches/newlib-1.13.0.patch b/dkppc/patches/newlib-1.13.0.patch new file mode 100644 index 0000000..7902ed6 --- /dev/null +++ b/dkppc/patches/newlib-1.13.0.patch @@ -0,0 +1,2830 @@ +diff -NBaur newlib-1.13.0/config.sub newlib-1.13.0-new/config.sub +--- newlib-1.13.0/config.sub Tue Nov 16 01:18:39 2004 ++++ newlib-1.13.0-new/config.sub Sun Feb 27 12:17:44 2005 +@@ -219,6 +219,9 @@ + basic_machine=m68k-atari + os=-mint + ;; ++ -gekko) ++ basic_machine=powerpc-eabi ++ os=-elf-gekko + esac + + # Decode aliases for certain CPU-COMPANY combinations. +diff -NBaur newlib-1.13.0/newlib/configure.host newlib-1.13.0-new/newlib/configure.host +--- newlib-1.13.0/newlib/configure.host Tue Oct 5 20:44:24 2004 ++++ newlib-1.13.0-new/newlib/configure.host Sun Feb 27 12:17:44 2005 +@@ -389,6 +389,9 @@ + powerpcle-*-pe) + posix_dir=posix + ;; ++ powerpc-eabi-elf-gekko) ++ sys_dir=ppcgekko ++ ;; + sh*-*) + sys_dir=sh + ;; +diff -NBaur newlib-1.13.0/newlib/libc/sys/ppcgekko/Makefile.am newlib-1.13.0-new/newlib/libc/sys/ppcgekko/Makefile.am +--- newlib-1.13.0/newlib/libc/sys/ppcgekko/Makefile.am Thu Jan 1 00:00:00 1970 ++++ newlib-1.13.0-new/newlib/libc/sys/ppcgekko/Makefile.am Sun Feb 27 12:17:44 2005 +@@ -0,0 +1,19 @@ ++## Process this file with automake to generate Makefile.in ++ ++AUTOMAKE_OPTIONS = cygnus ++ ++INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) ++ ++noinst_LIBRARIES = lib.a ++ ++lib_a_SOURCES = ++ ++# This is a hack to force automake to include a definition for ++# COMPILE. ++EXTRA_LIBRARIES = libfoo.a ++libfoo_a_SOURCES = crt0.c ++ ++all: crt0.o ++ ++ACLOCAL_AMFLAGS = -I ../../.. ++CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host +diff -NBaur newlib-1.13.0/newlib/libc/sys/ppcgekko/Makefile.in newlib-1.13.0-new/newlib/libc/sys/ppcgekko/Makefile.in +--- newlib-1.13.0/newlib/libc/sys/ppcgekko/Makefile.in Thu Jan 1 00:00:00 1970 ++++ newlib-1.13.0-new/newlib/libc/sys/ppcgekko/Makefile.in Sun Feb 27 12:17:44 2005 +@@ -0,0 +1,341 @@ ++# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am ++ ++# Copyright (C) 1994, 1995-8, 1999, 2001 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. ++ ++ ++SHELL = @SHELL@ ++ ++srcdir = @srcdir@ ++top_srcdir = @top_srcdir@ ++VPATH = @srcdir@ ++prefix = @prefix@ ++exec_prefix = @exec_prefix@ ++ ++bindir = @bindir@ ++sbindir = @sbindir@ ++libexecdir = @libexecdir@ ++datadir = @datadir@ ++sysconfdir = @sysconfdir@ ++sharedstatedir = @sharedstatedir@ ++localstatedir = @localstatedir@ ++libdir = @libdir@ ++infodir = @infodir@ ++mandir = @mandir@ ++includedir = @includedir@ ++oldincludedir = /usr/include ++ ++DESTDIR = ++ ++pkgdatadir = $(datadir)/@PACKAGE@ ++pkglibdir = $(libdir)/@PACKAGE@ ++pkgincludedir = $(includedir)/@PACKAGE@ ++ ++top_builddir = . ++ ++ACLOCAL = @ACLOCAL@ ++AUTOCONF = @AUTOCONF@ ++AUTOMAKE = @AUTOMAKE@ ++AUTOHEADER = @AUTOHEADER@ ++ ++INSTALL = @INSTALL@ ++INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) ++INSTALL_DATA = @INSTALL_DATA@ ++INSTALL_SCRIPT = @INSTALL_SCRIPT@ ++transform = @program_transform_name@ ++ ++NORMAL_INSTALL = : ++PRE_INSTALL = : ++POST_INSTALL = : ++NORMAL_UNINSTALL = : ++PRE_UNINSTALL = : ++POST_UNINSTALL = : ++build_alias = @build_alias@ ++build_triplet = @build@ ++host_alias = @host_alias@ ++host_triplet = @host@ ++target_alias = @target_alias@ ++target_triplet = @target@ ++AR = @AR@ ++AS = @AS@ ++CC = @CC@ ++CPP = @CPP@ ++EXEEXT = @EXEEXT@ ++LDFLAGS = @LDFLAGS@ ++MAINT = @MAINT@ ++MAKEINFO = @MAKEINFO@ ++NEWLIB_CFLAGS = @NEWLIB_CFLAGS@ ++OBJEXT = @OBJEXT@ ++PACKAGE = @PACKAGE@ ++RANLIB = @RANLIB@ ++VERSION = @VERSION@ ++aext = @aext@ ++libm_machine_dir = @libm_machine_dir@ ++machine_dir = @machine_dir@ ++newlib_basedir = @newlib_basedir@ ++oext = @oext@ ++sys_dir = @sys_dir@ ++ ++AUTOMAKE_OPTIONS = cygnus ++ ++INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) ++ ++noinst_LIBRARIES = lib.a ++ ++lib_a_SOURCES = ++ ++# This is a hack to force automake to include a definition for ++# COMPILE. ++EXTRA_LIBRARIES = libfoo.a ++libfoo_a_SOURCES = crt0.c ++ ++ACLOCAL_AMFLAGS = -I ../../.. ++CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host ++ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 ++mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../mkinstalldirs ++CONFIG_CLEAN_FILES = ++LIBRARIES = $(noinst_LIBRARIES) ++ ++ ++DEFS = @DEFS@ -I. -I$(srcdir) ++CPPFLAGS = @CPPFLAGS@ ++LIBS = @LIBS@ ++libfoo_a_LIBADD = ++libfoo_a_OBJECTS = crt0.o ++lib_a_LIBADD = ++lib_a_OBJECTS = ++CFLAGS = @CFLAGS@ ++COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) ++CCLD = $(CC) ++LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ ++DIST_COMMON = Makefile.am Makefile.in aclocal.m4 configure configure.in ++ ++ ++DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) ++ ++TAR = gtar ++GZIP_ENV = --best ++SOURCES = $(libfoo_a_SOURCES) $(lib_a_SOURCES) ++OBJECTS = $(libfoo_a_OBJECTS) $(lib_a_OBJECTS) ++ ++all: all-redirect ++.SUFFIXES: ++.SUFFIXES: .S .c .o .s ++$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) ++ cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile ++ ++Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status ++ cd $(top_builddir) \ ++ && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status ++ ++$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in \ ++ ../../../acinclude.m4 ../../../aclocal.m4 \ ++ ../../../libtool.m4 ++ cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) ++ ++config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) ++ $(SHELL) ./config.status --recheck ++$(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) ++ cd $(srcdir) && $(AUTOCONF) ++ ++mostlyclean-noinstLIBRARIES: ++ ++clean-noinstLIBRARIES: ++ -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) ++ ++distclean-noinstLIBRARIES: ++ ++maintainer-clean-noinstLIBRARIES: ++ ++.c.o: ++ $(COMPILE) -c $< ++ ++.s.o: ++ $(COMPILE) -c $< ++ ++.S.o: ++ $(COMPILE) -c $< ++ ++mostlyclean-compile: ++ -rm -f *.o core *.core ++ ++clean-compile: ++ ++distclean-compile: ++ -rm -f *.tab.c ++ ++maintainer-clean-compile: ++ ++libfoo.a: $(libfoo_a_OBJECTS) $(libfoo_a_DEPENDENCIES) ++ -rm -f libfoo.a ++ $(AR) cru libfoo.a $(libfoo_a_OBJECTS) $(libfoo_a_LIBADD) ++ $(RANLIB) libfoo.a ++ ++lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES) ++ -rm -f lib.a ++ $(AR) cru lib.a $(lib_a_OBJECTS) $(lib_a_LIBADD) ++ $(RANLIB) lib.a ++ ++tags: TAGS ++ ++ID: $(HEADERS) $(SOURCES) $(LISP) ++ list='$(SOURCES) $(HEADERS)'; \ ++ unique=`for i in $$list; do echo $$i; done | \ ++ awk ' { files[$$0] = 1; } \ ++ END { for (i in files) print i; }'`; \ ++ here=`pwd` && cd $(srcdir) \ ++ && mkid -f$$here/ID $$unique $(LISP) ++ ++TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) ++ tags=; \ ++ here=`pwd`; \ ++ list='$(SOURCES) $(HEADERS)'; \ ++ unique=`for i in $$list; do echo $$i; done | \ ++ awk ' { files[$$0] = 1; } \ ++ END { for (i in files) print i; }'`; \ ++ test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ ++ || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) ++ ++mostlyclean-tags: ++ ++clean-tags: ++ ++distclean-tags: ++ -rm -f TAGS ID ++ ++maintainer-clean-tags: ++ ++distdir = $(PACKAGE)-$(VERSION) ++top_distdir = $(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 ++ -rm -rf $(distdir) ++ GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz ++ mkdir $(distdir)/=build ++ mkdir $(distdir)/=inst ++ dc_install_base=`cd $(distdir)/=inst && pwd`; \ ++ cd $(distdir)/=build \ ++ && ../configure --srcdir=.. --prefix=$$dc_install_base \ ++ && $(MAKE) $(AM_MAKEFLAGS) \ ++ && $(MAKE) $(AM_MAKEFLAGS) dvi \ ++ && $(MAKE) $(AM_MAKEFLAGS) check \ ++ && $(MAKE) $(AM_MAKEFLAGS) install \ ++ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ ++ && $(MAKE) $(AM_MAKEFLAGS) dist ++ -rm -rf $(distdir) ++ @banner="$(distdir).tar.gz is ready for distribution"; \ ++ dashes=`echo "$$banner" | sed s/./=/g`; \ ++ echo "$$dashes"; \ ++ echo "$$banner"; \ ++ echo "$$dashes" ++dist: distdir ++ -chmod -R a+r $(distdir) ++ GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) ++ -rm -rf $(distdir) ++dist-all: distdir ++ -chmod -R a+r $(distdir) ++ GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) ++ -rm -rf $(distdir) ++distdir: $(DISTFILES) ++ -rm -rf $(distdir) ++ mkdir $(distdir) ++ -chmod 777 $(distdir) ++ @for file in $(DISTFILES); do \ ++ if test -f $$file; then d=.; else d=$(srcdir); fi; \ ++ if test -d $$d/$$file; then \ ++ cp -pr $$d/$$file $(distdir)/$$file; \ ++ else \ ++ test -f $(distdir)/$$file \ ++ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ ++ || cp -p $$d/$$file $(distdir)/$$file || :; \ ++ fi; \ ++ done ++info-am: ++info: info-am ++dvi-am: ++dvi: dvi-am ++check-am: ++check: check-am ++installcheck-am: ++installcheck: installcheck-am ++install-info-am: ++install-info: install-info-am ++install-exec-am: ++install-exec: install-exec-am ++ ++install-data-am: ++install-data: install-data-am ++ ++install-am: all-am ++ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am ++install: install-am ++uninstall-am: ++uninstall: uninstall-am ++all-am: Makefile $(LIBRARIES) ++all-redirect: all-am ++install-strip: ++ $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install ++installdirs: ++ ++ ++mostlyclean-generic: ++ ++clean-generic: ++ ++distclean-generic: ++ -rm -f Makefile $(CONFIG_CLEAN_FILES) ++ -rm -f config.cache config.log stamp-h stamp-h[0-9]* ++ ++maintainer-clean-generic: ++mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \ ++ mostlyclean-tags mostlyclean-generic ++ ++mostlyclean: mostlyclean-am ++ ++clean-am: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \ ++ mostlyclean-am ++ ++clean: clean-am ++ ++distclean-am: distclean-noinstLIBRARIES distclean-compile \ ++ distclean-tags distclean-generic clean-am ++ ++distclean: distclean-am ++ -rm -f config.status ++ ++maintainer-clean-am: maintainer-clean-noinstLIBRARIES \ ++ maintainer-clean-compile maintainer-clean-tags \ ++ maintainer-clean-generic distclean-am ++ @echo "This command is intended for maintainers to use;" ++ @echo "it deletes files that may require special tools to rebuild." ++ ++maintainer-clean: maintainer-clean-am ++ -rm -f config.status ++ ++.PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \ ++clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \ ++mostlyclean-compile distclean-compile clean-compile \ ++maintainer-clean-compile tags mostlyclean-tags distclean-tags \ ++clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \ ++check-am installcheck-am installcheck install-info-am install-info \ ++install-exec-am install-exec install-data-am install-data install-am \ ++install uninstall-am uninstall all-redirect all-am all installdirs \ ++mostlyclean-generic distclean-generic clean-generic \ ++maintainer-clean-generic clean mostlyclean distclean maintainer-clean ++ ++ ++all: crt0.o ++ ++# 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 -NBaur newlib-1.13.0/newlib/libc/sys/ppcgekko/aclocal.m4 newlib-1.13.0-new/newlib/libc/sys/ppcgekko/aclocal.m4 +--- newlib-1.13.0/newlib/libc/sys/ppcgekko/aclocal.m4 Thu Jan 1 00:00:00 1970 ++++ newlib-1.13.0-new/newlib/libc/sys/ppcgekko/aclocal.m4 Sun Feb 27 12:17:44 2005 +@@ -0,0 +1,382 @@ ++dnl aclocal.m4 generated automatically by aclocal 1.4-p6 ++ ++dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. ++dnl This file is free software; the Free Software Foundation ++dnl gives unlimited permission to copy and/or distribute it, ++dnl with or without modifications, as long as this notice is preserved. ++ ++dnl This program is distributed in the hope that it will be useful, ++dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without ++dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A ++dnl PARTICULAR PURPOSE. ++ ++dnl This provides configure definitions used by all the newlib ++dnl configure.in files. ++ ++dnl Basic newlib configury. This calls basic introductory stuff, ++dnl including AM_INIT_AUTOMAKE and AC_CANONICAL_HOST. It also runs ++dnl configure.host. The only argument is the relative path to the top ++dnl newlib directory. ++ ++AC_DEFUN(NEWLIB_CONFIGURE, ++[ ++dnl Default to --enable-multilib ++AC_ARG_ENABLE(multilib, ++[ --enable-multilib build many library versions (default)], ++[case "${enableval}" in ++ yes) multilib=yes ;; ++ no) multilib=no ;; ++ *) AC_MSG_ERROR(bad value ${enableval} for multilib option) ;; ++ esac], [multilib=yes])dnl ++ ++dnl Support --enable-target-optspace ++AC_ARG_ENABLE(target-optspace, ++[ --enable-target-optspace optimize for space], ++[case "${enableval}" in ++ yes) target_optspace=yes ;; ++ no) target_optspace=no ;; ++ *) AC_MSG_ERROR(bad value ${enableval} for target-optspace option) ;; ++ esac], [target_optspace=])dnl ++ ++dnl Support --enable-malloc-debugging - currently only supported for Cygwin ++AC_ARG_ENABLE(malloc-debugging, ++[ --enable-malloc-debugging indicate malloc debugging requested], ++[case "${enableval}" in ++ yes) malloc_debugging=yes ;; ++ no) malloc_debugging=no ;; ++ *) AC_MSG_ERROR(bad value ${enableval} for malloc-debugging option) ;; ++ esac], [malloc_debugging=])dnl ++ ++dnl Support --enable-newlib-mb ++AC_ARG_ENABLE(newlib-mb, ++[ --enable-newlib-mb enable multibyte support], ++[case "${enableval}" in ++ yes) newlib_mb=yes ;; ++ no) newlib_mb=no ;; ++ *) AC_MSG_ERROR(bad value ${enableval} for newlib-mb option) ;; ++ esac], [newlib_mb=])dnl ++ ++dnl Support --enable-newlib-iconv ++AC_ARG_ENABLE(newlib-iconv, ++[ --enable-newlib-iconv enable iconv library support], ++[case "${enableval}" in ++ yes) newlib_iconv=yes ;; ++ no) newlib_iconv=no ;; ++ *) AC_MSG_ERROR(bad value ${enableval} for newlib-iconv option) ;; ++ esac], [newlib_iconv=])dnl ++ ++dnl Support --enable-newlib-builtin-converters ++AC_ARG_ENABLE(newlib-builtin-converters, ++[ --enable-newlib-builtin-converters enable specific comma-separated list of iconv converters to be built-in], ++[if test x${enableval} = x; then ++ AC_MSG_ERROR(bad value ${enableval} for newlib-builtin-converters option - use comma-separated list) ++ fi ++ builtin_converters=${enableval} ++ ], [builtin_converters=])dnl ++ ++dnl Support --enable-newlib-multithread ++AC_ARG_ENABLE(newlib-multithread, ++[ --enable-newlib-multithread enable support for multiple threads], ++[case "${enableval}" in ++ yes) newlib_multithread=yes ;; ++ no) newlib_multithread=no ;; ++ *) AC_MSG_ERROR(bad value ${enableval} for newlib-multithread option) ;; ++ esac], [newlib_multithread=yes])dnl ++ ++dnl Support --enable-newlib-elix-level ++AC_ARG_ENABLE(newlib-elix-level, ++[ --enable-newlib-elix-level supply desired elix library level (1-4)], ++[case "${enableval}" in ++ 0) newlib_elix_level=0 ;; ++ 1) newlib_elix_level=1 ;; ++ 2) newlib_elix_level=2 ;; ++ 3) newlib_elix_level=3 ;; ++ 4) newlib_elix_level=4 ;; ++ *) AC_MSG_ERROR(bad value ${enableval} for newlib-elix-level option) ;; ++ esac], [newlib_elix_level=0])dnl ++ ++dnl Support --disable-newlib-io-float ++AC_ARG_ENABLE(newlib-io-float, ++[ --disable-newlib-io-float disable printf/scanf family float support], ++[case "${enableval}" in ++ yes) newlib_io_float=yes ;; ++ no) newlib_io_float=no ;; ++ *) AC_MSG_ERROR(bad value ${enableval} for newlib-io-float option) ;; ++ esac], [newlib_io_float=yes])dnl ++ ++dnl Support --disable-newlib-supplied-syscalls ++AC_ARG_ENABLE(newlib-supplied-syscalls, ++[ --disable-newlib-supplied-syscalls disable newlib from supplying syscalls], ++[case "${enableval}" in ++ yes) newlib_may_supply_syscalls=yes ;; ++ no) newlib_may_supply_syscalls=no ;; ++ *) AC_MSG_ERROR(bad value ${enableval} for newlib-supplied-syscalls option) ;; ++ esac], [newlib_may_supply_syscalls=yes])dnl ++ ++AM_CONDITIONAL(MAY_SUPPLY_SYSCALLS, test x[$]{newlib_may_supply_syscalls} = xyes) ++ ++dnl We may get other options which we don't document: ++dnl --with-target-subdir, --with-multisrctop, --with-multisubdir ++ ++test -z "[$]{with_target_subdir}" && with_target_subdir=. ++ ++if test "[$]{srcdir}" = "."; then ++ if test "[$]{with_target_subdir}" != "."; then ++ newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}../$1" ++ else ++ newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}$1" ++ fi ++else ++ newlib_basedir="[$]{srcdir}/$1" ++fi ++AC_SUBST(newlib_basedir) ++ ++AC_CANONICAL_SYSTEM ++ ++AM_INIT_AUTOMAKE(newlib, 1.13.0) ++ ++# FIXME: We temporarily define our own version of AC_PROG_CC. This is ++# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We ++# are probably using a cross compiler, which will not be able to fully ++# link an executable. This should really be fixed in autoconf ++# itself. ++ ++AC_DEFUN(LIB_AC_PROG_CC, ++[AC_BEFORE([$0], [AC_PROG_CPP])dnl ++AC_CHECK_PROG(CC, gcc, gcc) ++if test -z "$CC"; then ++ AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) ++ test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) ++fi ++ ++AC_PROG_CC_GNU ++ ++if test $ac_cv_prog_gcc = yes; then ++ GCC=yes ++dnl Check whether -g works, even if CFLAGS is set, in case the package ++dnl plays around with CFLAGS (such as to build both debugging and ++dnl normal versions of a library), tasteless as that idea is. ++ ac_test_CFLAGS="${CFLAGS+set}" ++ ac_save_CFLAGS="$CFLAGS" ++ CFLAGS= ++ AC_PROG_CC_G ++ if test "$ac_test_CFLAGS" = set; then ++ CFLAGS="$ac_save_CFLAGS" ++ elif test $ac_cv_prog_cc_g = yes; then ++ CFLAGS="-g -O2" ++ else ++ CFLAGS="-O2" ++ fi ++else ++ GCC= ++ test "${CFLAGS+set}" = set || CFLAGS="-g" ++fi ++]) ++ ++LIB_AC_PROG_CC ++ ++AC_CHECK_TOOL(AS, as) ++AC_CHECK_TOOL(AR, ar) ++AC_CHECK_TOOL(RANLIB, ranlib, :) ++ ++AC_PROG_INSTALL ++ ++AM_MAINTAINER_MODE ++ ++# We need AC_EXEEXT to keep automake happy in cygnus mode. However, ++# at least currently, we never actually build a program, so we never ++# need to use $(EXEEXT). Moreover, the test for EXEEXT normally ++# fails, because we are probably configuring with a cross compiler ++# which can't create executables. So we include AC_EXEEXT to keep ++# automake happy, but we don't execute it, since we don't care about ++# the result. ++if false; then ++ AC_EXEEXT ++fi ++ ++. [$]{newlib_basedir}/configure.host ++ ++newlib_cflags="[$]{newlib_cflags} -fno-builtin" ++ ++NEWLIB_CFLAGS=${newlib_cflags} ++AC_SUBST(NEWLIB_CFLAGS) ++ ++LDFLAGS=${ldflags} ++AC_SUBST(LDFLAGS) ++ ++AM_CONDITIONAL(ELIX_LEVEL_0, test x[$]{newlib_elix_level} = x0) ++AM_CONDITIONAL(ELIX_LEVEL_1, test x[$]{newlib_elix_level} = x1) ++AM_CONDITIONAL(ELIX_LEVEL_2, test x[$]{newlib_elix_level} = x2) ++AM_CONDITIONAL(ELIX_LEVEL_3, test x[$]{newlib_elix_level} = x3) ++AM_CONDITIONAL(ELIX_LEVEL_4, test x[$]{newlib_elix_level} = x4) ++ ++AM_CONDITIONAL(USE_LIBTOOL, test x[$]{use_libtool} = xyes) ++ ++# Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we ++# use oext, which is set in configure.host based on the target platform. ++OBJEXT=${oext} ++ ++AC_SUBST(OBJEXT) ++AC_SUBST(oext) ++AC_SUBST(aext) ++ ++AC_SUBST(libm_machine_dir) ++AC_SUBST(machine_dir) ++AC_SUBST(sys_dir) ++]) ++ ++# Do all the work for Automake. 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. ++ ++# serial 1 ++ ++dnl Usage: ++dnl AM_INIT_AUTOMAKE(package,version, [no-define]) ++ ++AC_DEFUN([AM_INIT_AUTOMAKE], ++[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl ++AC_REQUIRE([AC_PROG_INSTALL]) ++PACKAGE=[$1] ++AC_SUBST(PACKAGE) ++VERSION=[$2] ++AC_SUBST(VERSION) ++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 ++ifelse([$3],, ++AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) ++AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])) ++AC_REQUIRE([AM_SANITY_CHECK]) ++AC_REQUIRE([AC_ARG_PROGRAM]) ++dnl FIXME This is truly gross. ++missing_dir=`cd $ac_aux_dir && pwd` ++AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir) ++AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) ++AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir) ++AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) ++AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) ++AC_REQUIRE([AC_PROG_MAKE_SET])]) ++ ++# Copyright 2002 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, 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., 59 Temple Place - Suite 330, Boston, MA ++ ++# 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.4"]) ++ ++# 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.4-p6])]) ++ ++# ++# Check to make sure that the build environment is sane. ++# ++ ++AC_DEFUN([AM_SANITY_CHECK], ++[AC_MSG_CHECKING([whether build environment is sane]) ++# Just in case ++sleep 1 ++echo timestamp > conftestfile ++# 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 conftestfile 2> /dev/null` ++ if test "[$]*" = "X"; then ++ # -L didn't work. ++ set X `ls -t $srcdir/configure conftestfile` ++ fi ++ if test "[$]*" != "X $srcdir/configure conftestfile" \ ++ && test "[$]*" != "X conftestfile $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" = conftestfile ++ ) ++then ++ # Ok. ++ : ++else ++ AC_MSG_ERROR([newly created file is older than distributed files! ++Check your system clock]) ++fi ++rm -f conftest* ++AC_MSG_RESULT(yes)]) ++ ++dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) ++dnl The program must properly implement --version. ++AC_DEFUN([AM_MISSING_PROG], ++[AC_MSG_CHECKING(for working $2) ++# Run test in a subshell; some versions of sh will print an error if ++# an executable is not found, even if stderr is redirected. ++# Redirect stdin to placate older versions of autoconf. Sigh. ++if ($2 --version) < /dev/null > /dev/null 2>&1; then ++ $1=$2 ++ AC_MSG_RESULT(found) ++else ++ $1="$3/missing $2" ++ AC_MSG_RESULT(missing) ++fi ++AC_SUBST($1)]) ++ ++# Define a conditional. ++ ++AC_DEFUN([AM_CONDITIONAL], ++[AC_SUBST($1_TRUE) ++AC_SUBST($1_FALSE) ++if $2; then ++ $1_TRUE= ++ $1_FALSE='#' ++else ++ $1_TRUE='#' ++ $1_FALSE= ++fi]) ++ ++# Add --enable-maintainer-mode option to configure. ++# From Jim Meyering ++ ++# serial 1 ++ ++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 ++] ++) ++ +diff -NBaur newlib-1.13.0/newlib/libc/sys/ppcgekko/configure newlib-1.13.0-new/newlib/libc/sys/ppcgekko/configure +--- newlib-1.13.0/newlib/libc/sys/ppcgekko/configure Thu Jan 1 00:00:00 1970 ++++ newlib-1.13.0-new/newlib/libc/sys/ppcgekko/configure Sun Feb 27 12:17:44 2005 +@@ -0,0 +1,1906 @@ ++#! /bin/sh ++ ++# Guess values for system-dependent variables and create Makefiles. ++# Generated automatically using autoconf version 2.13 ++# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. ++# ++# This configure script is free software; the Free Software Foundation ++# gives unlimited permission to copy, distribute and modify it. ++ ++# Defaults: ++ac_help= ++ac_default_prefix=/usr/local ++# Any additions from configure.in: ++ac_help="$ac_help ++ --enable-multilib build many library versions (default)" ++ac_help="$ac_help ++ --enable-target-optspace optimize for space" ++ac_help="$ac_help ++ --enable-malloc-debugging indicate malloc debugging requested" ++ac_help="$ac_help ++ --enable-newlib-mb enable multibyte support" ++ac_help="$ac_help ++ --enable-newlib-iconv enable iconv library support" ++ac_help="$ac_help ++ --enable-newlib-builtin-converters enable specific comma-separated list of iconv converters to be built-in" ++ac_help="$ac_help ++ --enable-newlib-multithread enable support for multiple threads" ++ac_help="$ac_help ++ --enable-newlib-elix-level supply desired elix library level (1-4)" ++ac_help="$ac_help ++ --disable-newlib-io-float disable printf/scanf family float support" ++ac_help="$ac_help ++ --disable-newlib-supplied-syscalls disable newlib from supplying syscalls" ++ac_help="$ac_help ++ --enable-maintainer-mode enable make rules and dependencies not useful ++ (and sometimes confusing) to the casual installer" ++ ++# Initialize some variables set by options. ++# The variables have the same names as the options, with ++# dashes changed to underlines. ++build=NONE ++cache_file=./config.cache ++exec_prefix=NONE ++host=NONE ++no_create= ++nonopt=NONE ++no_recursion= ++prefix=NONE ++program_prefix=NONE ++program_suffix=NONE ++program_transform_name=s,x,x, ++silent= ++site= ++srcdir= ++target=NONE ++verbose= ++x_includes=NONE ++x_libraries=NONE ++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' ++ ++# Initialize some other variables. ++subdirs= ++MFLAGS= MAKEFLAGS= ++SHELL=${CONFIG_SHELL-/bin/sh} ++# Maximum number of lines to put in a shell here document. ++ac_max_here_lines=12 ++ ++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 ++ ++ case "$ac_option" in ++ -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; ++ *) ac_optarg= ;; ++ esac ++ ++ # 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 ;; ++ -build=* | --build=* | --buil=* | --bui=* | --bu=*) ++ build="$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" ;; ++ ++ -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ++ ac_prev=datadir ;; ++ -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ ++ | --da=*) ++ datadir="$ac_optarg" ;; ++ ++ -disable-* | --disable-*) ++ ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` ++ # Reject names that are not valid shell variable names. ++ if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then ++ { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } ++ fi ++ ac_feature=`echo $ac_feature| sed 's/-/_/g'` ++ eval "enable_${ac_feature}=no" ;; ++ ++ -enable-* | --enable-*) ++ ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` ++ # Reject names that are not valid shell variable names. ++ if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then ++ { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } ++ fi ++ ac_feature=`echo $ac_feature| sed 's/-/_/g'` ++ case "$ac_option" in ++ *=*) ;; ++ *) 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) ++ # 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 << EOF ++Usage: configure [options] [host] ++Options: [defaults in brackets after descriptions] ++Configuration: ++ --cache-file=FILE cache test results in FILE ++ --help print this message ++ --no-create do not create output files ++ --quiet, --silent do not print \`checking...' messages ++ --version print the version of autoconf that created configure ++Directory and file names: ++ --prefix=PREFIX install architecture-independent files in PREFIX ++ [$ac_default_prefix] ++ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX ++ [same as prefix] ++ --bindir=DIR user executables in DIR [EPREFIX/bin] ++ --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] ++ --libexecdir=DIR program executables in DIR [EPREFIX/libexec] ++ --datadir=DIR read-only architecture-independent data in DIR ++ [PREFIX/share] ++ --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] ++ --sharedstatedir=DIR modifiable architecture-independent data in DIR ++ [PREFIX/com] ++ --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] ++ --libdir=DIR object code libraries in DIR [EPREFIX/lib] ++ --includedir=DIR C header files in DIR [PREFIX/include] ++ --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] ++ --infodir=DIR info documentation in DIR [PREFIX/info] ++ --mandir=DIR man documentation in DIR [PREFIX/man] ++ --srcdir=DIR find the sources in DIR [configure dir or ..] ++ --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 ++EOF ++ cat << EOF ++Host type: ++ --build=BUILD configure for building on BUILD [BUILD=HOST] ++ --host=HOST configure for HOST [guessed] ++ --target=TARGET configure for TARGET [TARGET=HOST] ++Features and packages: ++ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) ++ --enable-FEATURE[=ARG] include FEATURE [ARG=yes] ++ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] ++ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) ++ --x-includes=DIR X include files are in DIR ++ --x-libraries=DIR X library files are in DIR ++EOF ++ if test -n "$ac_help"; then ++ echo "--enable and --with options recognized:$ac_help" ++ fi ++ exit 0 ;; ++ ++ -host | --host | --hos | --ho) ++ ac_prev=host ;; ++ -host=* | --host=* | --hos=* | --ho=*) ++ host="$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) ++ 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 ;; ++ -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) ++ target="$ac_optarg" ;; ++ ++ -v | -verbose | --verbose | --verbos | --verbo | --verb) ++ verbose=yes ;; ++ ++ -version | --version | --versio | --versi | --vers) ++ echo "configure generated by autoconf version 2.13" ++ exit 0 ;; ++ ++ -with-* | --with-*) ++ ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` ++ # Reject names that are not valid shell variable names. ++ if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then ++ { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } ++ fi ++ ac_package=`echo $ac_package| sed 's/-/_/g'` ++ case "$ac_option" in ++ *=*) ;; ++ *) ac_optarg=yes ;; ++ esac ++ eval "with_${ac_package}='$ac_optarg'" ;; ++ ++ -without-* | --without-*) ++ ac_package=`echo $ac_option|sed -e 's/-*without-//'` ++ # Reject names that are not valid shell variable names. ++ if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then ++ { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } ++ fi ++ 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 "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } ++ ;; ++ ++ *) ++ if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then ++ echo "configure: warning: $ac_option: invalid host type" 1>&2 ++ fi ++ if test "x$nonopt" != xNONE; then ++ { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ++ fi ++ nonopt="$ac_option" ++ ;; ++ ++ esac ++done ++ ++if test -n "$ac_prev"; then ++ { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } ++fi ++ ++trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 ++ ++# File descriptor usage: ++# 0 standard input ++# 1 file creation ++# 2 errors and warnings ++# 3 some systems may open it to /dev/tty ++# 4 used on the Kubota Titan ++# 6 checking for... messages and results ++# 5 compiler messages saved in config.log ++if test "$silent" = yes; then ++ exec 6>/dev/null ++else ++ exec 6>&1 ++fi ++exec 5>./config.log ++ ++echo "\ ++This file contains any messages produced by compilers while ++running configure, to aid debugging if configure makes a mistake. ++" 1>&5 ++ ++# Strip out --no-create and --no-recursion so they do not pile up. ++# Also quote any args containing shell metacharacters. ++ac_configure_args= ++for ac_arg ++do ++ case "$ac_arg" in ++ -no-create | --no-create | --no-creat | --no-crea | --no-cre \ ++ | --no-cr | --no-c) ;; ++ -no-recursion | --no-recursion | --no-recursio | --no-recursi \ ++ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; ++ *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) ++ ac_configure_args="$ac_configure_args '$ac_arg'" ;; ++ *) ac_configure_args="$ac_configure_args $ac_arg" ;; ++ esac ++done ++ ++# NLS nuisances. ++# Only set these to C if already set. These must not be set unconditionally ++# because not all systems understand e.g. LANG=C (notably SCO). ++# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! ++# Non-C LC_CTYPE values break the ctype check. ++if test "${LANG+set}" = set; then LANG=C; export LANG; fi ++if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi ++if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi ++if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi ++ ++# 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 ++ ++# A filename unique to this package, relative to the directory that ++# configure is in, which we can look for to find out if srcdir is correct. ++ac_unique_file=crt0.c ++ ++# 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_prog=$0 ++ ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` ++ test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. ++ 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 "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } ++ else ++ { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } ++ fi ++fi ++srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` ++ ++# 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 "loading site script $ac_site_file" ++ . "$ac_site_file" ++ fi ++done ++ ++if test -r "$cache_file"; then ++ echo "loading cache $cache_file" ++ . $cache_file ++else ++ echo "creating cache $cache_file" ++ > $cache_file ++fi ++ ++ac_ext=c ++# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ++ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' ++cross_compiling=$ac_cv_prog_cc_cross ++ ++ac_exeext= ++ac_objext=o ++if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then ++ # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. ++ if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then ++ ac_n= ac_c=' ++' ac_t=' ' ++ else ++ ac_n=-n ac_c= ac_t= ++ fi ++else ++ ac_n= ac_c='\c' ac_t= ++fi ++ ++ ++ ++ac_aux_dir= ++for ac_dir in ../../../.. $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 ++ fi ++done ++if test -z "$ac_aux_dir"; then ++ { echo "configure: error: can not find install-sh or install.sh in ../../../.. $srcdir/../../../.." 1>&2; exit 1; } ++fi ++ac_config_guess=$ac_aux_dir/config.guess ++ac_config_sub=$ac_aux_dir/config.sub ++ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. ++ ++ ++am__api_version="1.4" ++# 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 ++# 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" ++# ./install, which can be erroneously created by make from ./install.sh. ++echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 ++echo "configure:582: checking for a BSD compatible install" >&5 ++if test -z "$INSTALL"; then ++if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" ++ for ac_dir in $PATH; do ++ # Account for people who put trailing slashes in PATH elements. ++ case "$ac_dir/" in ++ /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/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 ++ if test -f $ac_dir/$ac_prog; then ++ if test $ac_prog = install && ++ grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then ++ # AIX install. It has an incompatible calling convention. ++ : ++ else ++ ac_cv_path_install="$ac_dir/$ac_prog -c" ++ break 2 ++ fi ++ fi ++ done ++ ;; ++ esac ++ done ++ IFS="$ac_save_IFS" ++ ++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 "$ac_t""$INSTALL" 1>&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_PROGRAM}' ++ ++test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' ++ ++echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 ++echo "configure:635: checking whether build environment is sane" >&5 ++# Just in case ++sleep 1 ++echo timestamp > conftestfile ++# 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 conftestfile 2> /dev/null` ++ if test "$*" = "X"; then ++ # -L didn't work. ++ set X `ls -t $srcdir/configure conftestfile` ++ fi ++ if test "$*" != "X $srcdir/configure conftestfile" \ ++ && test "$*" != "X conftestfile $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 "configure: error: ls -t appears to fail. Make sure there is not a broken ++alias in your environment" 1>&2; exit 1; } ++ fi ++ ++ test "$2" = conftestfile ++ ) ++then ++ # Ok. ++ : ++else ++ { echo "configure: error: newly created file is older than distributed files! ++Check your system clock" 1>&2; exit 1; } ++fi ++rm -f conftest* ++echo "$ac_t""yes" 1>&6 ++if test "$program_transform_name" = s,x,x,; then ++ program_transform_name= ++else ++ # Double any \ or $. echo might interpret backslashes. ++ cat <<\EOF_SED > conftestsed ++s,\\,\\\\,g; s,\$,$$,g ++EOF_SED ++ program_transform_name="`echo $program_transform_name|sed -f conftestsed`" ++ rm -f conftestsed ++fi ++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" ++ ++# sed with no file args requires a program. ++test "$program_transform_name" = "" && program_transform_name="s,x,x," ++ ++echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 ++echo "configure:692: checking whether ${MAKE-make} sets \${MAKE}" >&5 ++set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` ++if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ cat > conftestmake <<\EOF ++all: ++ @echo 'ac_maketemp="${MAKE}"' ++EOF ++# GNU make sometimes prints "make[1]: Entering...", which would confuse us. ++eval `${MAKE-make} -f conftestmake 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 conftestmake ++fi ++if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then ++ echo "$ac_t""yes" 1>&6 ++ SET_MAKE= ++else ++ echo "$ac_t""no" 1>&6 ++ SET_MAKE="MAKE=${MAKE-make}" ++fi ++ ++if test $host != $build; then ++ ac_tool_prefix=${host_alias}- ++else ++ ac_tool_prefix= ++fi ++ ++echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 ++echo "configure:725: checking for Cygwin environment" >&5 ++if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then ++ rm -rf conftest* ++ ac_cv_cygwin=yes ++else ++ echo "configure: failed program was:" >&5 ++ cat conftest.$ac_ext >&5 ++ rm -rf conftest* ++ ac_cv_cygwin=no ++fi ++rm -f conftest* ++rm -f conftest* ++fi ++ ++echo "$ac_t""$ac_cv_cygwin" 1>&6 ++CYGWIN= ++test "$ac_cv_cygwin" = yes && CYGWIN=yes ++echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 ++echo "configure:758: checking for mingw32 environment" >&5 ++if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then ++ rm -rf conftest* ++ ac_cv_mingw32=yes ++else ++ echo "configure: failed program was:" >&5 ++ cat conftest.$ac_ext >&5 ++ rm -rf conftest* ++ ac_cv_mingw32=no ++fi ++rm -f conftest* ++rm -f conftest* ++fi ++ ++echo "$ac_t""$ac_cv_mingw32" 1>&6 ++MINGW32= ++test "$ac_cv_mingw32" = yes && MINGW32=yes ++ ++# 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 "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;; ++ esac ++else ++ multilib=yes ++fi ++ ++# Check whether --enable-target-optspace or --disable-target-optspace was given. ++if test "${enable_target_optspace+set}" = set; then ++ enableval="$enable_target_optspace" ++ case "${enableval}" in ++ yes) target_optspace=yes ;; ++ no) target_optspace=no ;; ++ *) { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;; ++ esac ++else ++ target_optspace= ++fi ++ ++# Check whether --enable-malloc-debugging or --disable-malloc-debugging was given. ++if test "${enable_malloc_debugging+set}" = set; then ++ enableval="$enable_malloc_debugging" ++ case "${enableval}" in ++ yes) malloc_debugging=yes ;; ++ no) malloc_debugging=no ;; ++ *) { echo "configure: error: bad value ${enableval} for malloc-debugging option" 1>&2; exit 1; } ;; ++ esac ++else ++ malloc_debugging= ++fi ++ ++# Check whether --enable-newlib-mb or --disable-newlib-mb was given. ++if test "${enable_newlib_mb+set}" = set; then ++ enableval="$enable_newlib_mb" ++ case "${enableval}" in ++ yes) newlib_mb=yes ;; ++ no) newlib_mb=no ;; ++ *) { echo "configure: error: bad value ${enableval} for newlib-mb option" 1>&2; exit 1; } ;; ++ esac ++else ++ newlib_mb= ++fi ++ ++# Check whether --enable-newlib-iconv or --disable-newlib-iconv was given. ++if test "${enable_newlib_iconv+set}" = set; then ++ enableval="$enable_newlib_iconv" ++ case "${enableval}" in ++ yes) newlib_iconv=yes ;; ++ no) newlib_iconv=no ;; ++ *) { echo "configure: error: bad value ${enableval} for newlib-iconv option" 1>&2; exit 1; } ;; ++ esac ++else ++ newlib_iconv= ++fi ++ ++# Check whether --enable-newlib-builtin-converters or --disable-newlib-builtin-converters was given. ++if test "${enable_newlib_builtin_converters+set}" = set; then ++ enableval="$enable_newlib_builtin_converters" ++ if test x${enableval} = x; then ++ { echo "configure: error: bad value ${enableval} for newlib-builtin-converters option - use comma-separated list" 1>&2; exit 1; } ++ fi ++ builtin_converters=${enableval} ++ ++else ++ builtin_converters= ++fi ++ ++# Check whether --enable-newlib-multithread or --disable-newlib-multithread was given. ++if test "${enable_newlib_multithread+set}" = set; then ++ enableval="$enable_newlib_multithread" ++ case "${enableval}" in ++ yes) newlib_multithread=yes ;; ++ no) newlib_multithread=no ;; ++ *) { echo "configure: error: bad value ${enableval} for newlib-multithread option" 1>&2; exit 1; } ;; ++ esac ++else ++ newlib_multithread=yes ++fi ++ ++# Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given. ++if test "${enable_newlib_elix_level+set}" = set; then ++ enableval="$enable_newlib_elix_level" ++ case "${enableval}" in ++ 0) newlib_elix_level=0 ;; ++ 1) newlib_elix_level=1 ;; ++ 2) newlib_elix_level=2 ;; ++ 3) newlib_elix_level=3 ;; ++ 4) newlib_elix_level=4 ;; ++ *) { echo "configure: error: bad value ${enableval} for newlib-elix-level option" 1>&2; exit 1; } ;; ++ esac ++else ++ newlib_elix_level=0 ++fi ++ ++# Check whether --enable-newlib-io-float or --disable-newlib-io-float was given. ++if test "${enable_newlib_io_float+set}" = set; then ++ enableval="$enable_newlib_io_float" ++ case "${enableval}" in ++ yes) newlib_io_float=yes ;; ++ no) newlib_io_float=no ;; ++ *) { echo "configure: error: bad value ${enableval} for newlib-io-float option" 1>&2; exit 1; } ;; ++ esac ++else ++ newlib_io_float=yes ++fi ++ ++# Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given. ++if test "${enable_newlib_supplied_syscalls+set}" = set; then ++ enableval="$enable_newlib_supplied_syscalls" ++ case "${enableval}" in ++ yes) newlib_may_supply_syscalls=yes ;; ++ no) newlib_may_supply_syscalls=no ;; ++ *) { echo "configure: error: bad value ${enableval} for newlib-supplied-syscalls option" 1>&2; exit 1; } ;; ++ esac ++else ++ newlib_may_supply_syscalls=yes ++fi ++ ++ ++ ++if test x${newlib_may_supply_syscalls} = xyes; then ++ MAY_SUPPLY_SYSCALLS_TRUE= ++ MAY_SUPPLY_SYSCALLS_FALSE='#' ++else ++ MAY_SUPPLY_SYSCALLS_TRUE='#' ++ MAY_SUPPLY_SYSCALLS_FALSE= ++fi ++ ++ ++test -z "${with_target_subdir}" && with_target_subdir=. ++ ++if test "${srcdir}" = "."; then ++ if test "${with_target_subdir}" != "."; then ++ newlib_basedir="${srcdir}/${with_multisrctop}../../../.." ++ else ++ newlib_basedir="${srcdir}/${with_multisrctop}../../.." ++ fi ++else ++ newlib_basedir="${srcdir}/../../.." ++fi ++ ++ ++ ++# Do some error checking and defaulting for the host and target type. ++# The inputs are: ++# configure --host=HOST --target=TARGET --build=BUILD NONOPT ++# ++# The rules are: ++# 1. You are not allowed to specify --host, --target, and nonopt at the ++# same time. ++# 2. Host defaults to nonopt. ++# 3. If nonopt is not specified, then host defaults to the current host, ++# as determined by config.guess. ++# 4. Target and build default to nonopt. ++# 5. If nonopt is not specified, then target and build default to host. ++ ++# The aliases save the names the user supplied, while $host etc. ++# will get canonicalized. ++case $host---$target---$nonopt in ++NONE---*---* | *---NONE---* | *---*---NONE) ;; ++*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; ++esac ++ ++ ++# Make sure we can run config.sub. ++if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : ++else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } ++fi ++ ++echo $ac_n "checking host system type""... $ac_c" 1>&6 ++echo "configure:962: checking host system type" >&5 ++ ++host_alias=$host ++case "$host_alias" in ++NONE) ++ case $nonopt in ++ NONE) ++ if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : ++ else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } ++ fi ;; ++ *) host_alias=$nonopt ;; ++ esac ;; ++esac ++ ++host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` ++host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` ++host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` ++host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` ++echo "$ac_t""$host" 1>&6 ++ ++echo $ac_n "checking target system type""... $ac_c" 1>&6 ++echo "configure:983: checking target system type" >&5 ++ ++target_alias=$target ++case "$target_alias" in ++NONE) ++ case $nonopt in ++ NONE) target_alias=$host_alias ;; ++ *) target_alias=$nonopt ;; ++ esac ;; ++esac ++ ++target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` ++target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` ++target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` ++target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` ++echo "$ac_t""$target" 1>&6 ++ ++echo $ac_n "checking build system type""... $ac_c" 1>&6 ++echo "configure:1001: checking build system type" >&5 ++ ++build_alias=$build ++case "$build_alias" in ++NONE) ++ case $nonopt in ++ NONE) build_alias=$host_alias ;; ++ *) build_alias=$nonopt ;; ++ esac ;; ++esac ++ ++build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` ++build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` ++build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` ++build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` ++echo "$ac_t""$build" 1>&6 ++ ++test "$host_alias" != "$target_alias" && ++ test "$program_prefix$program_suffix$program_transform_name" = \ ++ NONENONEs,x,x, && ++ program_prefix=${target_alias}- ++ ++ ++ ++PACKAGE=newlib ++ ++VERSION=1.13.0 ++ ++if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then ++ { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } ++fi ++cat >> confdefs.h <> confdefs.h <&6 ++echo "configure:1044: checking for working aclocal-${am__api_version}" >&5 ++# Run test in a subshell; some versions of sh will print an error if ++# an executable is not found, even if stderr is redirected. ++# Redirect stdin to placate older versions of autoconf. Sigh. ++if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then ++ ACLOCAL=aclocal-${am__api_version} ++ echo "$ac_t""found" 1>&6 ++else ++ ACLOCAL="$missing_dir/missing aclocal-${am__api_version}" ++ echo "$ac_t""missing" 1>&6 ++fi ++ ++echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 ++echo "configure:1057: checking for working autoconf" >&5 ++# Run test in a subshell; some versions of sh will print an error if ++# an executable is not found, even if stderr is redirected. ++# Redirect stdin to placate older versions of autoconf. Sigh. ++if (autoconf --version) < /dev/null > /dev/null 2>&1; then ++ AUTOCONF=autoconf ++ echo "$ac_t""found" 1>&6 ++else ++ AUTOCONF="$missing_dir/missing autoconf" ++ echo "$ac_t""missing" 1>&6 ++fi ++ ++echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6 ++echo "configure:1070: checking for working automake-${am__api_version}" >&5 ++# Run test in a subshell; some versions of sh will print an error if ++# an executable is not found, even if stderr is redirected. ++# Redirect stdin to placate older versions of autoconf. Sigh. ++if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then ++ AUTOMAKE=automake-${am__api_version} ++ echo "$ac_t""found" 1>&6 ++else ++ AUTOMAKE="$missing_dir/missing automake-${am__api_version}" ++ echo "$ac_t""missing" 1>&6 ++fi ++ ++echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 ++echo "configure:1083: checking for working autoheader" >&5 ++# Run test in a subshell; some versions of sh will print an error if ++# an executable is not found, even if stderr is redirected. ++# Redirect stdin to placate older versions of autoconf. Sigh. ++if (autoheader --version) < /dev/null > /dev/null 2>&1; then ++ AUTOHEADER=autoheader ++ echo "$ac_t""found" 1>&6 ++else ++ AUTOHEADER="$missing_dir/missing autoheader" ++ echo "$ac_t""missing" 1>&6 ++fi ++ ++echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 ++echo "configure:1096: checking for working makeinfo" >&5 ++# Run test in a subshell; some versions of sh will print an error if ++# an executable is not found, even if stderr is redirected. ++# Redirect stdin to placate older versions of autoconf. Sigh. ++if (makeinfo --version) < /dev/null > /dev/null 2>&1; then ++ MAKEINFO=makeinfo ++ echo "$ac_t""found" 1>&6 ++else ++ MAKEINFO="$missing_dir/missing makeinfo" ++ echo "$ac_t""missing" 1>&6 ++fi ++ ++ ++ ++# FIXME: We temporarily define our own version of AC_PROG_CC. This is ++# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We ++# are probably using a cross compiler, which will not be able to fully ++# link an executable. This should really be fixed in autoconf ++# itself. ++ ++ ++ ++# Extract the first word of "gcc", so it can be a program name with args. ++set dummy gcc; ac_word=$2 ++echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ++echo "configure:1121: checking for $ac_word" >&5 ++if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ if test -n "$CC"; then ++ ac_cv_prog_CC="$CC" # Let the user override the test. ++else ++ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ++ ac_dummy="$PATH" ++ for ac_dir in $ac_dummy; do ++ test -z "$ac_dir" && ac_dir=. ++ if test -f $ac_dir/$ac_word; then ++ ac_cv_prog_CC="gcc" ++ break ++ fi ++ done ++ IFS="$ac_save_ifs" ++fi ++fi ++CC="$ac_cv_prog_CC" ++if test -n "$CC"; then ++ echo "$ac_t""$CC" 1>&6 ++else ++ echo "$ac_t""no" 1>&6 ++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 $ac_n "checking for $ac_word""... $ac_c" 1>&6 ++echo "configure:1151: checking for $ac_word" >&5 ++if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ if test -n "$CC"; then ++ ac_cv_prog_CC="$CC" # Let the user override the test. ++else ++ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ++ ac_prog_rejected=no ++ ac_dummy="$PATH" ++ for ac_dir in $ac_dummy; do ++ test -z "$ac_dir" && ac_dir=. ++ if test -f $ac_dir/$ac_word; then ++ if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then ++ ac_prog_rejected=yes ++ continue ++ fi ++ ac_cv_prog_CC="cc" ++ break ++ fi ++ done ++ IFS="$ac_save_ifs" ++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 $# -gt 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 ++ set dummy "$ac_dir/$ac_word" "$@" ++ shift ++ ac_cv_prog_CC="$@" ++ fi ++fi ++fi ++fi ++CC="$ac_cv_prog_CC" ++if test -n "$CC"; then ++ echo "$ac_t""$CC" 1>&6 ++else ++ echo "$ac_t""no" 1>&6 ++fi ++ ++ test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } ++fi ++ ++echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 ++echo "configure:1200: checking whether we are using GNU C" >&5 ++if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ++ ac_cv_prog_gcc=yes ++else ++ ac_cv_prog_gcc=no ++fi ++fi ++ ++echo "$ac_t""$ac_cv_prog_gcc" 1>&6 ++ ++if test $ac_cv_prog_gcc = yes; then ++ GCC=yes ++ ac_test_CFLAGS="${CFLAGS+set}" ++ ac_save_CFLAGS="$CFLAGS" ++ CFLAGS= ++ echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 ++echo "configure:1224: checking whether ${CC-cc} accepts -g" >&5 ++if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ echo 'void f(){}' > conftest.c ++if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then ++ ac_cv_prog_cc_g=yes ++else ++ ac_cv_prog_cc_g=no ++fi ++rm -f conftest* ++ ++fi ++ ++echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 ++ if test "$ac_test_CFLAGS" = set; then ++ CFLAGS="$ac_save_CFLAGS" ++ elif test $ac_cv_prog_cc_g = yes; then ++ CFLAGS="-g -O2" ++ else ++ CFLAGS="-O2" ++ fi ++else ++ GCC= ++ test "${CFLAGS+set}" = set || CFLAGS="-g" ++fi ++ ++ ++# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. ++set dummy ${ac_tool_prefix}as; ac_word=$2 ++echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ++echo "configure:1255: checking for $ac_word" >&5 ++if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ if test -n "$AS"; then ++ ac_cv_prog_AS="$AS" # Let the user override the test. ++else ++ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ++ ac_dummy="$PATH" ++ for ac_dir in $ac_dummy; do ++ test -z "$ac_dir" && ac_dir=. ++ if test -f $ac_dir/$ac_word; then ++ ac_cv_prog_AS="${ac_tool_prefix}as" ++ break ++ fi ++ done ++ IFS="$ac_save_ifs" ++ test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as" ++fi ++fi ++AS="$ac_cv_prog_AS" ++if test -n "$AS"; then ++ echo "$ac_t""$AS" 1>&6 ++else ++ echo "$ac_t""no" 1>&6 ++fi ++ ++ ++ ++# 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 $ac_n "checking for $ac_word""... $ac_c" 1>&6 ++echo "configure:1287: checking for $ac_word" >&5 ++if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ if test -n "$AR"; then ++ ac_cv_prog_AR="$AR" # Let the user override the test. ++else ++ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ++ ac_dummy="$PATH" ++ for ac_dir in $ac_dummy; do ++ test -z "$ac_dir" && ac_dir=. ++ if test -f $ac_dir/$ac_word; then ++ ac_cv_prog_AR="${ac_tool_prefix}ar" ++ break ++ fi ++ done ++ IFS="$ac_save_ifs" ++ test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" ++fi ++fi ++AR="$ac_cv_prog_AR" ++if test -n "$AR"; then ++ echo "$ac_t""$AR" 1>&6 ++else ++ echo "$ac_t""no" 1>&6 ++fi ++ ++ ++ ++# 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 $ac_n "checking for $ac_word""... $ac_c" 1>&6 ++echo "configure:1319: checking for $ac_word" >&5 ++if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ if test -n "$RANLIB"; then ++ ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. ++else ++ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ++ ac_dummy="$PATH" ++ for ac_dir in $ac_dummy; do ++ test -z "$ac_dir" && ac_dir=. ++ if test -f $ac_dir/$ac_word; then ++ ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" ++ break ++ fi ++ done ++ IFS="$ac_save_ifs" ++fi ++fi ++RANLIB="$ac_cv_prog_RANLIB" ++if test -n "$RANLIB"; then ++ echo "$ac_t""$RANLIB" 1>&6 ++else ++ echo "$ac_t""no" 1>&6 ++fi ++ ++ ++if test -z "$ac_cv_prog_RANLIB"; then ++if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "ranlib", so it can be a program name with args. ++set dummy ranlib; ac_word=$2 ++echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ++echo "configure:1351: checking for $ac_word" >&5 ++if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ if test -n "$RANLIB"; then ++ ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. ++else ++ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ++ ac_dummy="$PATH" ++ for ac_dir in $ac_dummy; do ++ test -z "$ac_dir" && ac_dir=. ++ if test -f $ac_dir/$ac_word; then ++ ac_cv_prog_RANLIB="ranlib" ++ break ++ fi ++ done ++ IFS="$ac_save_ifs" ++ test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" ++fi ++fi ++RANLIB="$ac_cv_prog_RANLIB" ++if test -n "$RANLIB"; then ++ echo "$ac_t""$RANLIB" 1>&6 ++else ++ echo "$ac_t""no" 1>&6 ++fi ++ ++else ++ RANLIB=":" ++fi ++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 ++# 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" ++# ./install, which can be erroneously created by make from ./install.sh. ++echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 ++echo "configure:1396: checking for a BSD compatible install" >&5 ++if test -z "$INSTALL"; then ++if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" ++ for ac_dir in $PATH; do ++ # Account for people who put trailing slashes in PATH elements. ++ case "$ac_dir/" in ++ /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/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 ++ if test -f $ac_dir/$ac_prog; then ++ if test $ac_prog = install && ++ grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then ++ # AIX install. It has an incompatible calling convention. ++ : ++ else ++ ac_cv_path_install="$ac_dir/$ac_prog -c" ++ break 2 ++ fi ++ fi ++ done ++ ;; ++ esac ++ done ++ IFS="$ac_save_IFS" ++ ++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 "$ac_t""$INSTALL" 1>&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_PROGRAM}' ++ ++test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' ++ ++ ++echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 ++echo "configure:1450: checking whether to enable maintainer-specific portions of Makefiles" >&5 ++ # 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 "$ac_t""$USE_MAINTAINER_MODE" 1>&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 AC_EXEEXT to keep automake happy in cygnus mode. However, ++# at least currently, we never actually build a program, so we never ++# need to use $(EXEEXT). Moreover, the test for EXEEXT normally ++# fails, because we are probably configuring with a cross compiler ++# which can't create executables. So we include AC_EXEEXT to keep ++# automake happy, but we don't execute it, since we don't care about ++# the result. ++if false; then ++ ++ ++echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 ++echo "configure:1484: checking for executable suffix" >&5 ++if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ if test "$CYGWIN" = yes || test "$MINGW32" = yes; then ++ ac_cv_exeext=.exe ++else ++ rm -f conftest* ++ echo 'int main () { return 0; }' > conftest.$ac_ext ++ ac_cv_exeext= ++ if { (eval echo configure:1494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then ++ for file in conftest.*; do ++ case $file in ++ *.c | *.o | *.obj) ;; ++ *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; ++ esac ++ done ++ else ++ { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } ++ fi ++ rm -f conftest* ++ test x"${ac_cv_exeext}" = x && ac_cv_exeext=no ++fi ++fi ++ ++EXEEXT="" ++test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} ++echo "$ac_t""${ac_cv_exeext}" 1>&6 ++ac_exeext=$EXEEXT ++ ++fi ++ ++. ${newlib_basedir}/configure.host ++ ++newlib_cflags="${newlib_cflags} -fno-builtin" ++ ++NEWLIB_CFLAGS=${newlib_cflags} ++ ++ ++LDFLAGS=${ldflags} ++ ++ ++ ++ ++if test x${newlib_elix_level} = x0; then ++ ELIX_LEVEL_0_TRUE= ++ ELIX_LEVEL_0_FALSE='#' ++else ++ ELIX_LEVEL_0_TRUE='#' ++ ELIX_LEVEL_0_FALSE= ++fi ++ ++ ++if test x${newlib_elix_level} = x1; then ++ ELIX_LEVEL_1_TRUE= ++ ELIX_LEVEL_1_FALSE='#' ++else ++ ELIX_LEVEL_1_TRUE='#' ++ ELIX_LEVEL_1_FALSE= ++fi ++ ++ ++if test x${newlib_elix_level} = x2; then ++ ELIX_LEVEL_2_TRUE= ++ ELIX_LEVEL_2_FALSE='#' ++else ++ ELIX_LEVEL_2_TRUE='#' ++ ELIX_LEVEL_2_FALSE= ++fi ++ ++ ++if test x${newlib_elix_level} = x3; then ++ ELIX_LEVEL_3_TRUE= ++ ELIX_LEVEL_3_FALSE='#' ++else ++ ELIX_LEVEL_3_TRUE='#' ++ ELIX_LEVEL_3_FALSE= ++fi ++ ++ ++if test x${newlib_elix_level} = x4; then ++ ELIX_LEVEL_4_TRUE= ++ ELIX_LEVEL_4_FALSE='#' ++else ++ ELIX_LEVEL_4_TRUE='#' ++ ELIX_LEVEL_4_FALSE= ++fi ++ ++ ++ ++if test x${use_libtool} = xyes; then ++ USE_LIBTOOL_TRUE= ++ USE_LIBTOOL_FALSE='#' ++else ++ USE_LIBTOOL_TRUE='#' ++ USE_LIBTOOL_FALSE= ++fi ++ ++# Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we ++# use oext, which is set in configure.host based on the target platform. ++OBJEXT=${oext} ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++trap '' 1 2 15 ++cat > confcache <<\EOF ++# 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. It is not useful on other systems. ++# If it contains results you don't want to keep, you may remove or edit it. ++# ++# By default, configure uses ./config.cache as the cache file, ++# creating it if it does not exist already. You can give configure ++# the --cache-file=FILE option to use a different cache file; that is ++# what configure does when it calls configure scripts in ++# subdirectories, so they share the cache. ++# Giving --cache-file=/dev/null disables caching, for debugging configure. ++# config.status only pays attention to the cache file if you give it the ++# --recheck option to rerun configure. ++# ++EOF ++# 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 \ ++ -e "s/'/'\\\\''/g" \ ++ -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" ++ ;; ++ *) ++ # `set' quotes correctly as required by POSIX, so do not add quotes. ++ sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' ++ ;; ++ esac >> confcache ++if cmp -s $cache_file confcache; then ++ : ++else ++ if test -w $cache_file; then ++ echo "updating cache $cache_file" ++ cat confcache > $cache_file ++ else ++ echo "not updating unwritable cache $cache_file" ++ fi ++fi ++rm -f confcache ++ ++trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 ++ ++test "x$prefix" = xNONE && prefix=$ac_default_prefix ++# Let make expand exec_prefix. ++test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' ++ ++# Any assignment to VPATH causes Sun make to only execute ++# the first set of double-colon rules, so remove it if not needed. ++# If there is a colon in the path, we need to keep it. ++if test "x$srcdir" = x.; then ++ ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' ++fi ++ ++trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 ++ ++# Transform confdefs.h into DEFS. ++# Protect against shell expansion while executing Makefile rules. ++# Protect against Makefile macro expansion. ++cat > conftest.defs <<\EOF ++s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g ++s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g ++s%\[%\\&%g ++s%\]%\\&%g ++s%\$%$$%g ++EOF ++DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` ++rm -f conftest.defs ++ ++ ++# Without the "./", some shells look in PATH for config.status. ++: ${CONFIG_STATUS=./config.status} ++ ++echo creating $CONFIG_STATUS ++rm -f $CONFIG_STATUS ++cat > $CONFIG_STATUS </dev/null | sed 1q`: ++# ++# $0 $ac_configure_args ++# ++# Compiler output produced by configure, useful for debugging ++# configure, is in ./config.log if it exists. ++ ++ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" ++for ac_option ++do ++ case "\$ac_option" in ++ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ++ echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" ++ exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; ++ -version | --version | --versio | --versi | --vers | --ver | --ve | --v) ++ echo "$CONFIG_STATUS generated by autoconf version 2.13" ++ exit 0 ;; ++ -help | --help | --hel | --he | --h) ++ echo "\$ac_cs_usage"; exit 0 ;; ++ *) echo "\$ac_cs_usage"; exit 1 ;; ++ esac ++done ++ ++ac_given_srcdir=$srcdir ++ac_given_INSTALL="$INSTALL" ++ ++trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 ++EOF ++cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF ++$ac_vpsub ++$extrasub ++s%@SHELL@%$SHELL%g ++s%@CFLAGS@%$CFLAGS%g ++s%@CPPFLAGS@%$CPPFLAGS%g ++s%@CXXFLAGS@%$CXXFLAGS%g ++s%@FFLAGS@%$FFLAGS%g ++s%@DEFS@%$DEFS%g ++s%@LDFLAGS@%$LDFLAGS%g ++s%@LIBS@%$LIBS%g ++s%@exec_prefix@%$exec_prefix%g ++s%@prefix@%$prefix%g ++s%@program_transform_name@%$program_transform_name%g ++s%@bindir@%$bindir%g ++s%@sbindir@%$sbindir%g ++s%@libexecdir@%$libexecdir%g ++s%@datadir@%$datadir%g ++s%@sysconfdir@%$sysconfdir%g ++s%@sharedstatedir@%$sharedstatedir%g ++s%@localstatedir@%$localstatedir%g ++s%@libdir@%$libdir%g ++s%@includedir@%$includedir%g ++s%@oldincludedir@%$oldincludedir%g ++s%@infodir@%$infodir%g ++s%@mandir@%$mandir%g ++s%@MAY_SUPPLY_SYSCALLS_TRUE@%$MAY_SUPPLY_SYSCALLS_TRUE%g ++s%@MAY_SUPPLY_SYSCALLS_FALSE@%$MAY_SUPPLY_SYSCALLS_FALSE%g ++s%@newlib_basedir@%$newlib_basedir%g ++s%@host@%$host%g ++s%@host_alias@%$host_alias%g ++s%@host_cpu@%$host_cpu%g ++s%@host_vendor@%$host_vendor%g ++s%@host_os@%$host_os%g ++s%@target@%$target%g ++s%@target_alias@%$target_alias%g ++s%@target_cpu@%$target_cpu%g ++s%@target_vendor@%$target_vendor%g ++s%@target_os@%$target_os%g ++s%@build@%$build%g ++s%@build_alias@%$build_alias%g ++s%@build_cpu@%$build_cpu%g ++s%@build_vendor@%$build_vendor%g ++s%@build_os@%$build_os%g ++s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g ++s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g ++s%@INSTALL_DATA@%$INSTALL_DATA%g ++s%@PACKAGE@%$PACKAGE%g ++s%@VERSION@%$VERSION%g ++s%@ACLOCAL@%$ACLOCAL%g ++s%@AUTOCONF@%$AUTOCONF%g ++s%@AUTOMAKE@%$AUTOMAKE%g ++s%@AUTOHEADER@%$AUTOHEADER%g ++s%@MAKEINFO@%$MAKEINFO%g ++s%@SET_MAKE@%$SET_MAKE%g ++s%@CC@%$CC%g ++s%@AS@%$AS%g ++s%@AR@%$AR%g ++s%@RANLIB@%$RANLIB%g ++s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g ++s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g ++s%@MAINT@%$MAINT%g ++s%@EXEEXT@%$EXEEXT%g ++s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g ++s%@ELIX_LEVEL_0_TRUE@%$ELIX_LEVEL_0_TRUE%g ++s%@ELIX_LEVEL_0_FALSE@%$ELIX_LEVEL_0_FALSE%g ++s%@ELIX_LEVEL_1_TRUE@%$ELIX_LEVEL_1_TRUE%g ++s%@ELIX_LEVEL_1_FALSE@%$ELIX_LEVEL_1_FALSE%g ++s%@ELIX_LEVEL_2_TRUE@%$ELIX_LEVEL_2_TRUE%g ++s%@ELIX_LEVEL_2_FALSE@%$ELIX_LEVEL_2_FALSE%g ++s%@ELIX_LEVEL_3_TRUE@%$ELIX_LEVEL_3_TRUE%g ++s%@ELIX_LEVEL_3_FALSE@%$ELIX_LEVEL_3_FALSE%g ++s%@ELIX_LEVEL_4_TRUE@%$ELIX_LEVEL_4_TRUE%g ++s%@ELIX_LEVEL_4_FALSE@%$ELIX_LEVEL_4_FALSE%g ++s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g ++s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g ++s%@OBJEXT@%$OBJEXT%g ++s%@oext@%$oext%g ++s%@aext@%$aext%g ++s%@libm_machine_dir@%$libm_machine_dir%g ++s%@machine_dir@%$machine_dir%g ++s%@sys_dir@%$sys_dir%g ++ ++CEOF ++EOF ++ ++cat >> $CONFIG_STATUS <<\EOF ++ ++# 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_cmds=90 # Maximum number of lines to put in a sed script. ++ac_file=1 # Number of current file. ++ac_beg=1 # First line for current file. ++ac_end=$ac_max_sed_cmds # 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" conftest.subs > conftest.s$ac_file ++ else ++ sed "${ac_end}q" conftest.subs > conftest.s$ac_file ++ fi ++ if test ! -s conftest.s$ac_file; then ++ ac_more_lines=false ++ rm -f conftest.s$ac_file ++ else ++ if test -z "$ac_sed_cmds"; then ++ ac_sed_cmds="sed -f conftest.s$ac_file" ++ else ++ ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" ++ fi ++ ac_file=`expr $ac_file + 1` ++ ac_beg=$ac_end ++ ac_end=`expr $ac_end + $ac_max_sed_cmds` ++ fi ++done ++if test -z "$ac_sed_cmds"; then ++ ac_sed_cmds=cat ++fi ++EOF ++ ++cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF ++for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then ++ # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". ++ case "$ac_file" in ++ *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` ++ ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; ++ *) ac_file_in="${ac_file}.in" ;; ++ esac ++ ++ # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. ++ ++ # Remove last slash and all that follows it. Not all systems have dirname. ++ ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` ++ if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then ++ # The file is in a subdirectory. ++ test ! -d "$ac_dir" && mkdir "$ac_dir" ++ ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" ++ # A "../" for each directory in $ac_dir_suffix. ++ ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` ++ else ++ ac_dir_suffix= ac_dots= ++ fi ++ ++ case "$ac_given_srcdir" in ++ .) srcdir=. ++ if test -z "$ac_dots"; then top_srcdir=. ++ else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; ++ /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; ++ *) # Relative path. ++ srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" ++ top_srcdir="$ac_dots$ac_given_srcdir" ;; ++ esac ++ ++ case "$ac_given_INSTALL" in ++ [/$]*) INSTALL="$ac_given_INSTALL" ;; ++ *) INSTALL="$ac_dots$ac_given_INSTALL" ;; ++ esac ++ ++ echo creating "$ac_file" ++ rm -f "$ac_file" ++ configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." ++ case "$ac_file" in ++ *Makefile*) ac_comsub="1i\\ ++# $configure_input" ;; ++ *) ac_comsub= ;; ++ esac ++ ++ ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` ++ sed -e "$ac_comsub ++s%@configure_input@%$configure_input%g ++s%@srcdir@%$srcdir%g ++s%@top_srcdir@%$top_srcdir%g ++s%@INSTALL@%$INSTALL%g ++" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file ++fi; done ++rm -f conftest.s* ++ ++EOF ++cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF ++ ++exit 0 ++EOF ++chmod +x $CONFIG_STATUS ++rm -fr confdefs* $ac_clean_files ++test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 ++ +diff -NBaur newlib-1.13.0/newlib/libc/sys/ppcgekko/configure.in newlib-1.13.0-new/newlib/libc/sys/ppcgekko/configure.in +--- newlib-1.13.0/newlib/libc/sys/ppcgekko/configure.in Thu Jan 1 00:00:00 1970 ++++ newlib-1.13.0-new/newlib/libc/sys/ppcgekko/configure.in Sun Feb 27 12:17:44 2005 +@@ -0,0 +1,12 @@ ++dnl This is the newlib/libc/sys/ppcgekko configure.in file. ++dnl Process this file with autoconf to produce a configure script. ++ ++AC_PREREQ(2.5) ++AC_INIT(crt0.c) ++ ++dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. ++AC_CONFIG_AUX_DIR(../../../..) ++ ++NEWLIB_CONFIGURE(../../..) ++ ++AC_OUTPUT(Makefile) +diff -NBaur newlib-1.13.0/newlib/libc/sys/ppcgekko/crt0.c newlib-1.13.0-new/newlib/libc/sys/ppcgekko/crt0.c +--- newlib-1.13.0/newlib/libc/sys/ppcgekko/crt0.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.13.0-new/newlib/libc/sys/ppcgekko/crt0.c Sun Feb 27 12:17:44 2005 +@@ -0,0 +1,4 @@ ++/* I have a copy of something that would serve as a NetWare crt0.o, ++ but it is copyright by Novell. */ ++ ++int _dummy_crt0 = 1; +diff -NBaur newlib-1.13.0/newlib/libc/sys/ppcgekko/include/newlib.h newlib-1.13.0-new/newlib/libc/sys/ppcgekko/include/newlib.h +--- newlib-1.13.0/newlib/libc/sys/ppcgekko/include/newlib.h Thu Jan 1 00:00:00 1970 ++++ newlib-1.13.0-new/newlib/libc/sys/ppcgekko/include/newlib.h Sun Feb 27 12:17:44 2005 +@@ -0,0 +1,2 @@ ++/* dummy file for external tools to use. Real file is created by ++ newlib configuration. */ +diff -NBaur newlib-1.13.0/newlib/libc/sys/ppcgekko/machine/malloc.h newlib-1.13.0-new/newlib/libc/sys/ppcgekko/machine/malloc.h +--- newlib-1.13.0/newlib/libc/sys/ppcgekko/machine/malloc.h Thu Jan 1 00:00:00 1970 ++++ newlib-1.13.0-new/newlib/libc/sys/ppcgekko/machine/malloc.h Sun Feb 27 12:17:44 2005 +@@ -0,0 +1,8 @@ ++#ifndef _MACHMALLOC_H_ ++#define _MACHMALLOC_H_ ++ ++/* place holder so platforms may add malloc.h extensions */ ++ ++#endif /* _MACHMALLOC_H_ */ ++ ++ +diff -NBaur newlib-1.13.0/newlib/libc/sys/ppcgekko/machine/stdlib.h newlib-1.13.0-new/newlib/libc/sys/ppcgekko/machine/stdlib.h +--- newlib-1.13.0/newlib/libc/sys/ppcgekko/machine/stdlib.h Thu Jan 1 00:00:00 1970 ++++ newlib-1.13.0-new/newlib/libc/sys/ppcgekko/machine/stdlib.h Sun Feb 27 12:17:44 2005 +@@ -0,0 +1,8 @@ ++#ifndef _MACHSTDLIB_H_ ++#define _MACHSTDLIB_H_ ++ ++/* place holder so platforms may add stdlib.h extensions */ ++ ++#endif /* _MACHSTDLIB_H_ */ ++ ++ +diff -NBaur newlib-1.13.0/newlib/libc/sys/ppcgekko/sys/lock.h newlib-1.13.0-new/newlib/libc/sys/ppcgekko/sys/lock.h +--- newlib-1.13.0/newlib/libc/sys/ppcgekko/sys/lock.h Thu Jan 1 00:00:00 1970 ++++ newlib-1.13.0-new/newlib/libc/sys/ppcgekko/sys/lock.h Thu Apr 14 09:04:31 2005 +@@ -0,0 +1,53 @@ ++#ifndef __SYS_LOCK_H__ ++#define __SYS_LOCK_H__ ++ ++/* dummy lock routines for single-threaded aps */ ++ ++typedef int _LOCK_T; ++typedef int _LOCK_RECURSIVE_T; ++ ++#define __LOCK_INIT(CLASS,NAME) CLASS _LOCK_T NAME = 0 ++#define __LOCK_INIT_RECURSIVE(CLASS,NAME) CLASS _LOCK_RECURSIVE_T NAME = 0 ++ ++#define __lock_init(NAME) \ ++ __libc_lock_init(&(NAME),0) ++ ++#define __lock_init_recursive(NAME) \ ++ __libc_lock_init(&(NAME),1) ++ ++#define __lock_close(NAME) \ ++ __libc_lock_close(&(NAME)) ++ ++#define __lock_close_recursive(NAME) \ ++ __libc_lock_close(&(NAME)) ++ ++#define __lock_acquire(NAME) \ ++ if(!(NAME)) __libc_lock_init(&(NAME),0); \ ++ __libc_lock_acquire(&(NAME)) ++ ++#define __lock_acquire_recursive(NAME) \ ++ if(!(NAME)) __libc_lock_init(&(NAME),1); \ ++ __libc_lock_acquire(&(NAME)) ++ ++#define __lock_try_acquire(NAME) \ ++ if(!(NAME)) __libc_lock_init(&(NAME),0); \ ++ __libc_lock_try_acquire(&(NAME)) ++ ++#define __lock_try_acquire_recursive(NAME) \ ++ if(!(NAME)) __libc_lock_init(&(NAME),1); \ ++ __libc_lock_try_acquire(&(NAME)) ++ ++#define __lock_release(NAME) \ ++ __libc_lock_release(&(NAME)) ++ ++#define __lock_release_recursive(NAME) \ ++ __libc_lock_release(&(NAME)) ++ ++ ++extern int __libc_lock_init(int*,int); ++extern int __libc_lock_close(int*); ++extern int __libc_lock_acquire(int*); ++extern int __libc_lock_try_acquire(int*); ++extern int __libc_lock_release(int*); ++ ++#endif /* __SYS_LOCK_H__ */ +diff -NBaur newlib-1.13.0/newlib/libc/sys/ppcgekko/sys/stdio.h newlib-1.13.0-new/newlib/libc/sys/ppcgekko/sys/stdio.h +--- newlib-1.13.0/newlib/libc/sys/ppcgekko/sys/stdio.h Thu Jan 1 00:00:00 1970 ++++ newlib-1.13.0-new/newlib/libc/sys/ppcgekko/sys/stdio.h Sun Feb 27 12:17:44 2005 +@@ -0,0 +1,25 @@ ++#ifndef _NEWLIB_STDIO_H ++#define _NEWLIB_STDIO_H ++ ++/* Internal locking macros, used to protect stdio functions. In the ++ general case, expand to nothing. */ ++#if !defined(_flockfile) ++# if !defined(__SINGLE_THREAD__) ++# define _flockfile(fp) { ((fp)->_flags&__SSTR) ? 0 : __flockfile(fp); } ++ extern void __flockfile(FILE *fp); ++# else ++# define _flockfile(fp) ++# endif ++#endif /* __SINGLE_THREAD__ */ ++ ++#if !defined(_funlockfile) ++# if !defined(__SINGLE_THREAD__) ++# define _funlockfile(fp) { ((fp)->_flags&__SSTR) ? 0 : __funlockfile(fp); } ++ extern void __funlockfile(FILE *fp); ++# else ++# define _funlockfile(fp) ++# endif ++#endif /* __SINGLE_THREAD__ */ ++ ++#endif /* _NEWLIB_STDIO_H */ ++ diff --git a/dkpsp/patches/binutils-2.16.1.patch b/dkpsp/patches/binutils-2.16.1.patch new file mode 100644 index 0000000..f254555 --- /dev/null +++ b/dkpsp/patches/binutils-2.16.1.patch @@ -0,0 +1,1800 @@ +diff -NBaur binutils-2.16.1/bfd/Makefile.am binutils-2.16.1-psp/bfd/Makefile.am +--- binutils-2.16.1/bfd/Makefile.am Sun Jun 12 19:58:52 2005 ++++ binutils-2.16.1-psp/bfd/Makefile.am Mon Jul 25 20:30:03 2005 +@@ -3,7 +3,7 @@ + AUTOMAKE_OPTIONS = 1.9 cygnus + + # Uncomment the following line when doing a release. +-RELEASE=y ++#RELEASE=y + + INCDIR = $(srcdir)/../include + CSEARCH = -I. -I$(srcdir) -I$(INCDIR) +diff -NBaur binutils-2.16.1/bfd/Makefile.in binutils-2.16.1-psp/bfd/Makefile.in +--- binutils-2.16.1/bfd/Makefile.in Sun Jun 12 19:58:55 2005 ++++ binutils-2.16.1-psp/bfd/Makefile.in Mon Jul 25 20:30:03 2005 +@@ -250,7 +250,7 @@ + AUTOMAKE_OPTIONS = 1.9 cygnus + + # Uncomment the following line when doing a release. +-RELEASE=y ++#RELEASE=y + INCDIR = $(srcdir)/../include + CSEARCH = -I. -I$(srcdir) -I$(INCDIR) + MKDEP = gcc -MM +diff -NBaur binutils-2.16.1/bfd/archures.c binutils-2.16.1-psp/bfd/archures.c +--- binutils-2.16.1/bfd/archures.c Mon Jan 17 14:08:03 2005 ++++ binutils-2.16.1-psp/bfd/archures.c Mon Jul 25 20:30:03 2005 +@@ -155,6 +155,7 @@ + .#define bfd_mach_mips16 16 + .#define bfd_mach_mips5 5 + .#define bfd_mach_mips_sb1 12310201 {* octal 'SB', 01 *} ++.#define bfd_mach_mips_allegrex 10111431 {* octal 'AL', 31 *} + .#define bfd_mach_mipsisa32 32 + .#define bfd_mach_mipsisa32r2 33 + .#define bfd_mach_mipsisa64 64 +diff -NBaur binutils-2.16.1/bfd/bfd-in2.h binutils-2.16.1-psp/bfd/bfd-in2.h +--- binutils-2.16.1/bfd/bfd-in2.h Wed Mar 2 21:23:20 2005 ++++ binutils-2.16.1-psp/bfd/bfd-in2.h Mon Jul 25 20:30:03 2005 +@@ -1600,6 +1600,7 @@ + #define bfd_mach_mips16 16 + #define bfd_mach_mips5 5 + #define bfd_mach_mips_sb1 12310201 /* octal 'SB', 01 */ ++#define bfd_mach_mips_allegrex 10111431 /* octal 'AL', 31 */ + #define bfd_mach_mipsisa32 32 + #define bfd_mach_mipsisa32r2 33 + #define bfd_mach_mipsisa64 64 +diff -NBaur binutils-2.16.1/bfd/cpu-mips.c binutils-2.16.1-psp/bfd/cpu-mips.c +--- binutils-2.16.1/bfd/cpu-mips.c Thu Mar 3 11:40:58 2005 ++++ binutils-2.16.1-psp/bfd/cpu-mips.c Mon Jul 25 20:30:03 2005 +@@ -86,6 +86,7 @@ + I_mipsisa64, + I_mipsisa64r2, + I_sb1, ++ I_allegrex, + }; + + #define NN(index) (&arch_info_struct[(index) + 1]) +@@ -118,7 +119,8 @@ + N (32, 32, bfd_mach_mipsisa32r2,"mips:isa32r2", FALSE, NN(I_mipsisa32r2)), + N (64, 64, bfd_mach_mipsisa64, "mips:isa64", FALSE, NN(I_mipsisa64)), + N (64, 64, bfd_mach_mipsisa64r2,"mips:isa64r2", FALSE, NN(I_mipsisa64r2)), +- N (64, 64, bfd_mach_mips_sb1, "mips:sb1", FALSE, 0), ++ N (64, 64, bfd_mach_mips_sb1, "mips:sb1", FALSE, NN(I_sb1)), ++ N (32, 32, bfd_mach_mips_allegrex, "mips:allegrex", FALSE, 0), + }; + + /* The default architecture is mips:3000, but with a machine number of +diff -NBaur binutils-2.16.1/bfd/elfxx-mips.c binutils-2.16.1-psp/bfd/elfxx-mips.c +--- binutils-2.16.1/bfd/elfxx-mips.c Sat May 28 22:58:29 2005 ++++ binutils-2.16.1-psp/bfd/elfxx-mips.c Mon Jul 25 20:30:03 2005 +@@ -4669,6 +4669,9 @@ + case E_MIPS_MACH_SB1: + return bfd_mach_mips_sb1; + ++ case E_MIPS_MACH_ALLEGREX: ++ return bfd_mach_mips_allegrex; ++ + default: + switch (flags & EF_MIPS_ARCH) + { +@@ -7941,6 +7944,10 @@ + val = E_MIPS_ARCH_64 | E_MIPS_MACH_SB1; + break; + ++ case bfd_mach_mips_allegrex: ++ val = E_MIPS_ARCH_2 | E_MIPS_MACH_ALLEGREX; ++ break; ++ + case bfd_mach_mipsisa32: + val = E_MIPS_ARCH_32; + break; +@@ -9641,6 +9648,7 @@ + /* MIPS II extensions. */ + { bfd_mach_mips4000, bfd_mach_mips6000 }, + { bfd_mach_mipsisa32, bfd_mach_mips6000 }, ++ { bfd_mach_mips_allegrex, bfd_mach_mips6000 }, + + /* MIPS I extensions. */ + { bfd_mach_mips6000, bfd_mach_mips3000 }, +diff -NBaur binutils-2.16.1/bfd/version.h binutils-2.16.1-psp/bfd/version.h +--- binutils-2.16.1/bfd/version.h Sun Jun 12 18:37:59 2005 ++++ binutils-2.16.1-psp/bfd/version.h Mon Jul 25 20:30:55 2005 +@@ -1,3 +1,3 @@ +-#define BFD_VERSION_DATE 20050612 ++#define BFD_VERSION_DATE (PSPDEV 20050722) + #define BFD_VERSION @bfd_version@ + #define BFD_VERSION_STRING @bfd_version_string@ +diff -NBaur binutils-2.16.1/binutils/readelf.c binutils-2.16.1-psp/binutils/readelf.c +--- binutils-2.16.1/binutils/readelf.c Wed Apr 20 19:43:36 2005 ++++ binutils-2.16.1-psp/binutils/readelf.c Mon Jul 25 20:30:03 2005 +@@ -2043,6 +2043,7 @@ + case E_MIPS_MACH_5500: strcat (buf, ", 5500"); break; + case E_MIPS_MACH_SB1: strcat (buf, ", sb1"); break; + case E_MIPS_MACH_9000: strcat (buf, ", 9000"); break; ++ case E_MIPS_MACH_ALLEGREX: strcat (buf, ", allegrex"); break; + case 0: + /* We simply ignore the field in this case to avoid confusion: + MIPS ELF does not specify EF_MIPS_MACH, it is a GNU +diff -NBaur binutils-2.16.1/config.sub binutils-2.16.1-psp/config.sub +--- binutils-2.16.1/config.sub Wed Jan 19 00:34:56 2005 ++++ binutils-2.16.1-psp/config.sub Mon Jul 25 20:30:04 2005 +@@ -253,6 +253,7 @@ + | mipsisa64sb1 | mipsisa64sb1el \ + | mipsisa64sr71k | mipsisa64sr71kel \ + | mipstx39 | mipstx39el \ ++ | mipsallegrex | mipsallegrexel \ + | mn10200 | mn10300 \ + | msp430 \ + | ns16k | ns32k \ +@@ -326,6 +327,7 @@ + | mipsisa64sb1-* | mipsisa64sb1el-* \ + | mipsisa64sr71k-* | mipsisa64sr71kel-* \ + | mipstx39-* | mipstx39el-* \ ++ | mipsallegrex-* | mipsallegrexel-* \ + | mmix-* \ + | msp430-* \ + | none-* | np1-* | ns16k-* | ns32k-* \ +@@ -664,6 +666,10 @@ + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) + basic_machine=m68k-atari + os=-mint ++ ;; ++ psp) ++ basic_machine=mipsallegrexel-psp ++ os=-elf + ;; + mips3*-*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` +diff -NBaur binutils-2.16.1/gas/config/tc-mips.c binutils-2.16.1-psp/gas/config/tc-mips.c +--- binutils-2.16.1/gas/config/tc-mips.c Sun Jun 12 19:07:03 2005 ++++ binutils-2.16.1-psp/gas/config/tc-mips.c Mon Jul 25 20:30:04 2005 +@@ -365,11 +365,15 @@ + #define CPU_HAS_MDMX(cpu) (FALSE \ + ) + ++/* True if the given CPU belongs to the Allegrex family. */ ++#define CPU_IS_ALLEGREX(CPU) ((CPU) == CPU_ALLEGREX \ ++ ) ++ + /* True if CPU has a dror instruction. */ + #define CPU_HAS_DROR(CPU) ((CPU) == CPU_VR5400 || (CPU) == CPU_VR5500) + + /* True if CPU has a ror instruction. */ +-#define CPU_HAS_ROR(CPU) CPU_HAS_DROR (CPU) ++#define CPU_HAS_ROR(CPU) CPU_HAS_DROR (CPU) || CPU_IS_ALLEGREX (CPU) + + /* True if mflo and mfhi can be immediately followed by instructions + which write to the HI and LO registers. +@@ -7817,6 +7821,30 @@ + case '%': USE_BITS (OP_MASK_VECALIGN, OP_SH_VECALIGN); break; + case '[': break; + case ']': break; ++ case '?': ++ /* MRB TODO: Fix this for the VFPU extensions. */ ++ switch (c = *p++) ++ { ++ case 'f': ++ /* MRB HACK: Skip the next character. */ ++ p++; ++ break; ++ case 'd': ++ case 'm': ++ case 'n': ++ case 's': ++ case 't': ++ case 'v': ++ case 'x': ++ /* MRB HACK: Skip the next two characters. */ ++ p++; ++ p++; ++ break; ++ default: break; ++ } ++ /* MRB HACK: Set all used bits. */ ++ used_bits = 0xffffffff; ++ break; + default: + as_bad (_("internal: bad mips opcode (unknown operand type `%c'): %s %s"), + c, opc->name, opc->args); +@@ -8485,6 +8513,7 @@ + + if ((regno & 1) != 0 + && HAVE_32BIT_FPRS ++ && ! CPU_IS_ALLEGREX (mips_opts.arch) + && ! (strcmp (str, "mtc1") == 0 + || strcmp (str, "mfc1") == 0 + || strcmp (str, "lwc1") == 0 +@@ -13743,6 +13772,8 @@ + + /* MIPS II */ + { "r6000", 0, ISA_MIPS2, CPU_R6000 }, ++ /* Sony PSP "Allegrex" CPU core */ ++ { "allegrex", 0, ISA_MIPS2, CPU_ALLEGREX }, + + /* MIPS III */ + { "r4000", 0, ISA_MIPS3, CPU_R4000 }, +diff -NBaur binutils-2.16.1/gas/configure binutils-2.16.1-psp/gas/configure +--- binutils-2.16.1/gas/configure Tue Mar 1 00:43:51 2005 ++++ binutils-2.16.1-psp/gas/configure Mon Jul 25 20:30:04 2005 +@@ -4537,6 +4537,9 @@ + mips64vr | mips64vrel) + mips_cpu=vr4100 + ;; ++ mipsallegrex | mipsallegrexel) ++ mips_cpu=allegrex ++ ;; + mipsisa32r2* | mipsisa64r2*) + mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'` + ;; +diff -NBaur binutils-2.16.1/gas/configure.in binutils-2.16.1-psp/gas/configure.in +--- binutils-2.16.1/gas/configure.in Tue Mar 1 00:43:57 2005 ++++ binutils-2.16.1-psp/gas/configure.in Mon Jul 25 20:30:04 2005 +@@ -222,6 +222,9 @@ + mips64vr | mips64vrel) + mips_cpu=vr4100 + ;; ++ mipsallegrex | mipsallegrexel) ++ mips_cpu=allegrex ++ ;; + mipsisa32r2* | mipsisa64r2*) + changequote(,)dnl + mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'` +diff -NBaur binutils-2.16.1/include/bin-bugs.h binutils-2.16.1-psp/include/bin-bugs.h +--- binutils-2.16.1/include/bin-bugs.h Fri Jul 23 16:40:19 2004 ++++ binutils-2.16.1-psp/include/bin-bugs.h Mon Jul 25 20:30:04 2005 +@@ -1,3 +1,3 @@ + #ifndef REPORT_BUGS_TO +-#define REPORT_BUGS_TO "" ++#define REPORT_BUGS_TO "" + #endif +diff -NBaur binutils-2.16.1/include/elf/common.h binutils-2.16.1-psp/include/elf/common.h +--- binutils-2.16.1/include/elf/common.h Fri Oct 8 14:55:08 2004 ++++ binutils-2.16.1-psp/include/elf/common.h Mon Jul 25 20:30:04 2005 +@@ -93,6 +93,7 @@ + #define ET_HIOS 0xFEFF /* Operating system-specific */ + #define ET_LOPROC 0xFF00 /* Processor-specific */ + #define ET_HIPROC 0xFFFF /* Processor-specific */ ++#define ET_PSPEXEC 0xFFA0 /* Sony PSP executable file */ + + /* Values for e_machine, which identifies the architecture. These numbers + are officially assigned by registry@caldera.com. See below for a list of +diff -NBaur binutils-2.16.1/include/elf/mips.h binutils-2.16.1-psp/include/elf/mips.h +--- binutils-2.16.1/include/elf/mips.h Thu Mar 3 11:58:06 2005 ++++ binutils-2.16.1-psp/include/elf/mips.h Mon Jul 25 20:30:04 2005 +@@ -212,6 +212,7 @@ + #define E_MIPS_MACH_5400 0x00910000 + #define E_MIPS_MACH_5500 0x00980000 + #define E_MIPS_MACH_9000 0x00990000 ++#define E_MIPS_MACH_ALLEGREX 0x00A20000 + + /* Processor specific section indices. These sections do not actually + exist. Symbols with a st_shndx field corresponding to one of these +diff -NBaur binutils-2.16.1/include/opcode/mips.h binutils-2.16.1-psp/include/opcode/mips.h +--- binutils-2.16.1/include/opcode/mips.h Thu Mar 3 11:58:10 2005 ++++ binutils-2.16.1-psp/include/opcode/mips.h Mon Jul 25 20:30:04 2005 +@@ -148,6 +148,19 @@ + #define OP_MASK_EXTMSBD 0x1f /* "ext" MSBD. */ + #define OP_SH_EXTMSBD 11 + ++#define OP_SH_VFPU_DELTA 0 ++#define OP_MASK_VFPU_DELTA 0xfffc ++#define OP_SH_VFPU_IMM3 16 ++#define OP_MASK_VFPU_IMM3 0x7 ++#define OP_SH_VFPU_IMM5 16 ++#define OP_MASK_VFPU_IMM5 0x1f ++#define OP_SH_VFPU_IMM8 16 ++#define OP_MASK_VFPU_IMM8 0xff ++#define OP_SH_VFPU_CC 18 ++#define OP_MASK_VFPU_CC 0x7 ++#define OP_SH_VFPU_CONST 16 ++#define OP_MASK_VFPU_CONST 0x1f ++ + #define OP_OP_COP0 0x10 + #define OP_OP_COP1 0x11 + #define OP_OP_COP2 0x12 +@@ -442,6 +455,8 @@ + #define INSN_5400 0x01000000 + /* NEC VR5500 instruction. */ + #define INSN_5500 0x02000000 ++/* Sony Allegrex instruction. */ ++#define INSN_ALLEGREX 0x10000000 + + /* MIPS ISA defines, use instead of hardcoding ISA level. */ + +@@ -489,6 +504,7 @@ + #define CPU_MIPS64 64 + #define CPU_MIPS64R2 65 + #define CPU_SB1 12310201 /* octal 'SB', 01. */ ++#define CPU_ALLEGREX 10111431 /* octal 'AL', 31. */ + + /* Test for membership in an ISA including chip specific ISAs. INSN + is pointer to an element of the opcode table; ISA is the specified +@@ -510,6 +526,7 @@ + || (cpu == CPU_VR4120 && ((insn)->membership & INSN_4120) != 0) \ + || (cpu == CPU_VR5400 && ((insn)->membership & INSN_5400) != 0) \ + || (cpu == CPU_VR5500 && ((insn)->membership & INSN_5500) != 0) \ ++ || (cpu == CPU_ALLEGREX && ((insn)->membership & INSN_ALLEGREX) != 0) \ + || 0) /* Please keep this term for easier source merging. */ + + /* This is a list of macro expanded instructions. +diff -NBaur binutils-2.16.1/ld/Makefile.am binutils-2.16.1-psp/ld/Makefile.am +--- binutils-2.16.1/ld/Makefile.am Thu Jan 20 19:37:49 2005 ++++ binutils-2.16.1-psp/ld/Makefile.am Mon Jul 25 20:30:04 2005 +@@ -190,6 +190,7 @@ + eelf_i386_chaos.o \ + eelf_i386_fbsd.o \ + eelf_i386_ldso.o \ ++ eelf_mipsallegrexel_psp.o \ + eelf_s390.o \ + egld960.o \ + egld960coff.o \ +@@ -864,6 +865,9 @@ + eelf_i386_ldso.c: $(srcdir)/emulparams/elf_i386_ldso.sh \ + $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} + ${GENSCRIPTS} elf_i386_ldso "$(tdir_elf_i386_ldso)" ++eelf_mipsallegrexel_psp.c: $(srcdir)/emulparams/elf_mipsallegrexel_psp.sh \ ++ $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf_psp.sc ${GEN_DEPENDS} ++ ${GENSCRIPTS} elf_mipsallegrexel_psp "$(tdir_elf_mipsallegrexel_psp)" + eelf_s390.c: $(srcdir)/emulparams/elf_s390.sh \ + $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} + ${GENSCRIPTS} elf_s390 "$(tdir_elf_s390)" +diff -NBaur binutils-2.16.1/ld/Makefile.in binutils-2.16.1-psp/ld/Makefile.in +--- binutils-2.16.1/ld/Makefile.in Sun Jan 23 05:36:37 2005 ++++ binutils-2.16.1-psp/ld/Makefile.in Mon Jul 25 20:30:04 2005 +@@ -315,6 +315,7 @@ + eelf_i386_chaos.o \ + eelf_i386_fbsd.o \ + eelf_i386_ldso.o \ ++ eelf_mipsallegrexel_psp.o \ + eelf_s390.o \ + egld960.o \ + egld960coff.o \ +@@ -1601,6 +1602,9 @@ + eelf_i386_ldso.c: $(srcdir)/emulparams/elf_i386_ldso.sh \ + $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} + ${GENSCRIPTS} elf_i386_ldso "$(tdir_elf_i386_ldso)" ++eelf_mipsallegrexel_psp.c: $(srcdir)/emulparams/elf_mipsallegrexel_psp.sh \ ++ $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf_psp.sc ${GEN_DEPENDS} ++ ${GENSCRIPTS} elf_mipsallegrexel_psp "$(tdir_elf_mipsallegrexel_psp)" + eelf_s390.c: $(srcdir)/emulparams/elf_s390.sh \ + $(srcdir)/emultempl/elf32.em $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} + ${GENSCRIPTS} elf_s390 "$(tdir_elf_s390)" +diff -NBaur binutils-2.16.1/ld/configure.tgt binutils-2.16.1-psp/ld/configure.tgt +--- binutils-2.16.1/ld/configure.tgt Tue Feb 8 19:54:27 2005 ++++ binutils-2.16.1-psp/ld/configure.tgt Mon Jul 25 20:30:04 2005 +@@ -428,6 +428,8 @@ + mips*vr4100-*-elf*) targ_emul=elf32b4300 ;; + mips*vr5000el-*-elf*) targ_emul=elf32l4300 ;; + mips*vr5000-*-elf*) targ_emul=elf32b4300 ;; ++mips*allegrexel-psp-elf*) targ_emul=elf_mipsallegrexel_psp ++ targ_extra_emuls="elf32elmip" ;; + mips*el-*-elf*) targ_emul=elf32elmip ;; + mips*-*-elf*) targ_emul=elf32ebmip ;; + mips*el-*-rtems*) targ_emul=elf32elmip ;; +diff -NBaur binutils-2.16.1/ld/emulparams/elf_mipsallegrexel_psp.sh binutils-2.16.1-psp/ld/emulparams/elf_mipsallegrexel_psp.sh +--- binutils-2.16.1/ld/emulparams/elf_mipsallegrexel_psp.sh Thu Jan 1 00:00:00 1970 ++++ binutils-2.16.1-psp/ld/emulparams/elf_mipsallegrexel_psp.sh Mon Jul 25 20:30:04 2005 +@@ -0,0 +1,22 @@ ++# Based off of the default elf32 MIPS target. However, we use a seperate ++# script template because the PSP architecture defines sections that normally ++# cannot be overriden here and would normally get absorbed (i.e. ++# .rodata.sceModuleInfo would be absorbed into .rodata). ++ ++EMBEDDED=yes ++. ${srcdir}/emulparams/elf32lmip.sh ++unset NONPAGED_TEXT_START_ADDR ++unset SHLIB_TEXT_START_ADDR ++unset COMMONPAGESIZE ++ ++SCRIPT_NAME=elf_psp ++TEXT_START_ADDR=0x08900000 ++MAXPAGESIZE=256 ++ARCH="mips:allegrex" ++MACHINE= ++TEMPLATE_NAME=elf32 ++GENERATE_SHLIB_SCRIPT=yes ++DYNAMIC_LINK=FALSE ++ ++# Discard the .comment and .pdr sections. ++OTHER_SECTIONS="/DISCARD/ : { *(.comment) *(.pdr) }" +diff -NBaur binutils-2.16.1/ld/scripttempl/elf_psp.sc binutils-2.16.1-psp/ld/scripttempl/elf_psp.sc +--- binutils-2.16.1/ld/scripttempl/elf_psp.sc Thu Jan 1 00:00:00 1970 ++++ binutils-2.16.1-psp/ld/scripttempl/elf_psp.sc Mon Jul 25 20:30:04 2005 +@@ -0,0 +1,496 @@ ++# ++# Unusual variables checked by this code: ++# NOP - four byte opcode for no-op (defaults to 0) ++# NO_SMALL_DATA - no .sbss/.sbss2/.sdata/.sdata2 sections if not ++# empty. ++# SMALL_DATA_CTOR - .ctors contains small data. ++# SMALL_DATA_DTOR - .dtors contains small data. ++# DATA_ADDR - if end-of-text-plus-one-page isn't right for data start ++# INITIAL_READONLY_SECTIONS - at start of text segment ++# OTHER_READONLY_SECTIONS - other than .text .init .rodata ... ++# (e.g., .PARISC.milli) ++# OTHER_TEXT_SECTIONS - these get put in .text when relocating ++# OTHER_READWRITE_SECTIONS - other than .data .bss .ctors .sdata ... ++# (e.g., .PARISC.global) ++# OTHER_RELRO_SECTIONS - other than .data.rel.ro ... ++# (e.g. PPC32 .fixup, .got[12]) ++# OTHER_BSS_SECTIONS - other than .bss .sbss ... ++# OTHER_SECTIONS - at the end ++# EXECUTABLE_SYMBOLS - symbols that must be defined for an ++# executable (e.g., _DYNAMIC_LINK) ++# TEXT_START_ADDR - the first byte of the text segment, after any ++# headers. ++# TEXT_BASE_ADDRESS - the first byte of the text segment. ++# TEXT_START_SYMBOLS - symbols that appear at the start of the ++# .text section. ++# DATA_START_SYMBOLS - symbols that appear at the start of the ++# .data section. ++# OTHER_GOT_SYMBOLS - symbols defined just before .got. ++# OTHER_GOT_SECTIONS - sections just after .got. ++# OTHER_SDATA_SECTIONS - sections just after .sdata. ++# OTHER_BSS_SYMBOLS - symbols that appear at the start of the ++# .bss section besides __bss_start. ++# DATA_PLT - .plt should be in data segment, not text segment. ++# PLT_BEFORE_GOT - .plt just before .got when .plt is in data segement. ++# BSS_PLT - .plt should be in bss segment ++# TEXT_DYNAMIC - .dynamic in text segment, not data segment. ++# EMBEDDED - whether this is for an embedded system. ++# SHLIB_TEXT_START_ADDR - if set, add to SIZEOF_HEADERS to set ++# start address of shared library. ++# INPUT_FILES - INPUT command of files to always include ++# WRITABLE_RODATA - if set, the .rodata section should be writable ++# INIT_START, INIT_END - statements just before and just after ++# combination of .init sections. ++# FINI_START, FINI_END - statements just before and just after ++# combination of .fini sections. ++# STACK_ADDR - start of a .stack section. ++# OTHER_END_SYMBOLS - symbols to place right at the end of the script. ++# SEPARATE_GOTPLT - if set, .got.plt should be separate output section, ++# so that .got can be in the RELRO area. It should be set to ++# the number of bytes in the beginning of .got.plt which can be ++# in the RELRO area as well. ++# ++# When adding sections, do note that the names of some sections are used ++# when specifying the start address of the next. ++# ++ ++# Many sections come in three flavours. There is the 'real' section, ++# like ".data". Then there are the per-procedure or per-variable ++# sections, generated by -ffunction-sections and -fdata-sections in GCC, ++# and useful for --gc-sections, which for a variable "foo" might be ++# ".data.foo". Then there are the linkonce sections, for which the linker ++# eliminates duplicates, which are named like ".gnu.linkonce.d.foo". ++# The exact correspondences are: ++# ++# Section Linkonce section ++# .text .gnu.linkonce.t.foo ++# .rodata .gnu.linkonce.r.foo ++# .data .gnu.linkonce.d.foo ++# .bss .gnu.linkonce.b.foo ++# .sdata .gnu.linkonce.s.foo ++# .sbss .gnu.linkonce.sb.foo ++# .sdata2 .gnu.linkonce.s2.foo ++# .sbss2 .gnu.linkonce.sb2.foo ++# .debug_info .gnu.linkonce.wi.foo ++# .tdata .gnu.linkonce.td.foo ++# .tbss .gnu.linkonce.tb.foo ++# ++# Each of these can also have corresponding .rel.* and .rela.* sections. ++ ++test -z "$ENTRY" && ENTRY=_start ++test -z "${BIG_OUTPUT_FORMAT}" && BIG_OUTPUT_FORMAT=${OUTPUT_FORMAT} ++test -z "${LITTLE_OUTPUT_FORMAT}" && LITTLE_OUTPUT_FORMAT=${OUTPUT_FORMAT} ++if [ -z "$MACHINE" ]; then OUTPUT_ARCH=${ARCH}; else OUTPUT_ARCH=${ARCH}:${MACHINE}; fi ++test -z "${ELFSIZE}" && ELFSIZE=32 ++test -z "${ALIGNMENT}" && ALIGNMENT="${ELFSIZE} / 8" ++test "$LD_FLAG" = "N" && DATA_ADDR=. ++test -n "$CREATE_SHLIB$CREATE_PIE" && test -n "$SHLIB_DATA_ADDR" && COMMONPAGESIZE="" ++test -z "$CREATE_SHLIB$CREATE_PIE" && test -n "$DATA_ADDR" && COMMONPAGESIZE="" ++test -n "$RELRO_NOW" && unset SEPARATE_GOTPLT ++DATA_SEGMENT_ALIGN="ALIGN(${SEGMENT_SIZE}) + (. & (${MAXPAGESIZE} - 1))" ++DATA_SEGMENT_RELRO_END="" ++DATA_SEGMENT_RELRO_GOTPLT_END="" ++DATA_SEGMENT_END="" ++if test -n "${COMMONPAGESIZE}"; then ++ DATA_SEGMENT_ALIGN="ALIGN (${SEGMENT_SIZE}) - ((${MAXPAGESIZE} - .) & (${MAXPAGESIZE} - 1)); . = DATA_SEGMENT_ALIGN (${MAXPAGESIZE}, ${COMMONPAGESIZE})" ++ DATA_SEGMENT_END=". = DATA_SEGMENT_END (.);" ++ if test -n "${SEPARATE_GOTPLT}"; then ++ DATA_SEGMENT_RELRO_GOTPLT_END=". = DATA_SEGMENT_RELRO_END (${SEPARATE_GOTPLT}, .);" ++ else ++ DATA_SEGMENT_RELRO_END=". = DATA_SEGMENT_RELRO_END (0, .);" ++ fi ++fi ++INTERP=".interp ${RELOCATING-0} : { *(.interp) }" ++PLT=".plt ${RELOCATING-0} : { *(.plt) }" ++if test -z "$GOT"; then ++ if test -z "$SEPARATE_GOTPLT"; then ++ GOT=".got ${RELOCATING-0} : { *(.got.plt) *(.got) }" ++ else ++ GOT=".got ${RELOCATING-0} : { *(.got) }" ++ GOTPLT="${RELOCATING+${DATA_SEGMENT_RELRO_GOTPLT_END}} ++ .got.plt ${RELOCATING-0} : { *(.got.plt) }" ++ fi ++fi ++DYNAMIC=".dynamic ${RELOCATING-0} : { *(.dynamic) }" ++RODATA=".rodata ${RELOCATING-0} : { *(.rodata${RELOCATING+ .rodata.* .gnu.linkonce.r.*}) }" ++DATARELRO=".data.rel.ro : { *(.data.rel.ro.local) *(.data.rel.ro*) }" ++STACKNOTE="/DISCARD/ : { *(.note.GNU-stack) }" ++if test -z "${NO_SMALL_DATA}"; then ++ SBSS=".sbss ${RELOCATING-0} : ++ { ++ ${RELOCATING+PROVIDE (__sbss_start = .);} ++ ${RELOCATING+PROVIDE (___sbss_start = .);} ++ ${CREATE_SHLIB+*(.sbss2 .sbss2.* .gnu.linkonce.sb2.*)} ++ *(.dynsbss) ++ *(.sbss${RELOCATING+ .sbss.* .gnu.linkonce.sb.*}) ++ *(.scommon) ++ ${RELOCATING+PROVIDE (__sbss_end = .);} ++ ${RELOCATING+PROVIDE (___sbss_end = .);} ++ }" ++ SBSS2=".sbss2 ${RELOCATING-0} : { *(.sbss2${RELOCATING+ .sbss2.* .gnu.linkonce.sb2.*}) }" ++ SDATA="/* We want the small data sections together, so single-instruction offsets ++ can access them all, and initialized data all before uninitialized, so ++ we can shorten the on-disk segment size. */ ++ .sdata ${RELOCATING-0} : ++ { ++ ${RELOCATING+${SDATA_START_SYMBOLS}} ++ ${CREATE_SHLIB+*(.sdata2 .sdata2.* .gnu.linkonce.s2.*)} ++ *(.sdata${RELOCATING+ .sdata.* .gnu.linkonce.s.*}) ++ }" ++ SDATA2=".sdata2 ${RELOCATING-0} : { *(.sdata2${RELOCATING+ .sdata2.* .gnu.linkonce.s2.*}) }" ++ REL_SDATA=".rel.sdata ${RELOCATING-0} : { *(.rel.sdata${RELOCATING+ .rel.sdata.* .rel.gnu.linkonce.s.*}) } ++ .rela.sdata ${RELOCATING-0} : { *(.rela.sdata${RELOCATING+ .rela.sdata.* .rela.gnu.linkonce.s.*}) }" ++ REL_SBSS=".rel.sbss ${RELOCATING-0} : { *(.rel.sbss${RELOCATING+ .rel.sbss.* .rel.gnu.linkonce.sb.*}) } ++ .rela.sbss ${RELOCATING-0} : { *(.rela.sbss${RELOCATING+ .rela.sbss.* .rela.gnu.linkonce.sb.*}) }" ++ REL_SDATA2=".rel.sdata2 ${RELOCATING-0} : { *(.rel.sdata2${RELOCATING+ .rel.sdata2.* .rel.gnu.linkonce.s2.*}) } ++ .rela.sdata2 ${RELOCATING-0} : { *(.rela.sdata2${RELOCATING+ .rela.sdata2.* .rela.gnu.linkonce.s2.*}) }" ++ REL_SBSS2=".rel.sbss2 ${RELOCATING-0} : { *(.rel.sbss2${RELOCATING+ .rel.sbss2.* .rel.gnu.linkonce.sb2.*}) } ++ .rela.sbss2 ${RELOCATING-0} : { *(.rela.sbss2${RELOCATING+ .rela.sbss2.* .rela.gnu.linkonce.sb2.*}) }" ++else ++ NO_SMALL_DATA=" " ++fi ++test -n "$SEPARATE_GOTPLT" && SEPARATE_GOTPLT=" " ++CTOR=".ctors ${CONSTRUCTING-0} : ++ { ++ ${CONSTRUCTING+${CTOR_START}} ++ /* gcc uses crtbegin.o to find the start of ++ the constructors, so we make sure it is ++ first. Because this is a wildcard, it ++ doesn't matter if the user does not ++ actually link against crtbegin.o; the ++ linker won't look for a file to match a ++ wildcard. The wildcard also means that it ++ doesn't matter which directory crtbegin.o ++ is in. */ ++ ++ KEEP (*crtbegin*.o(.ctors)) ++ ++ /* We don't want to include the .ctor section from ++ from the crtend.o file until after the sorted ctors. ++ The .ctor section from the crtend file contains the ++ end of ctors marker and it must be last */ ++ ++ KEEP (*(EXCLUDE_FILE (*crtend*.o $OTHER_EXCLUDE_FILES) .ctors)) ++ KEEP (*(SORT(.ctors.*))) ++ KEEP (*(.ctors)) ++ ${CONSTRUCTING+${CTOR_END}} ++ }" ++DTOR=".dtors ${CONSTRUCTING-0} : ++ { ++ ${CONSTRUCTING+${DTOR_START}} ++ KEEP (*crtbegin*.o(.dtors)) ++ KEEP (*(EXCLUDE_FILE (*crtend*.o $OTHER_EXCLUDE_FILES) .dtors)) ++ KEEP (*(SORT(.dtors.*))) ++ KEEP (*(.dtors)) ++ ${CONSTRUCTING+${DTOR_END}} ++ }" ++STACK=" .stack ${RELOCATING-0}${RELOCATING+${STACK_ADDR}} : ++ { ++ ${RELOCATING+_stack = .;} ++ *(.stack) ++ }" ++ ++# if this is for an embedded system, don't add SIZEOF_HEADERS. ++if [ -z "$EMBEDDED" ]; then ++ test -z "${TEXT_BASE_ADDRESS}" && TEXT_BASE_ADDRESS="${TEXT_START_ADDR} + SIZEOF_HEADERS" ++else ++ test -z "${TEXT_BASE_ADDRESS}" && TEXT_BASE_ADDRESS="${TEXT_START_ADDR}" ++fi ++ ++cat <fprintf_func) (info->stream, "$v%d", + (l >> OP_SH_FT) & OP_MASK_FT); ++ break; ++ ++ case '?': ++ /* VFPU extensions. */ ++ d++; ++ switch (*d) ++ { ++ case '\0': ++ /* xgettext:c-format */ ++ (*info->fprintf_func) (info->stream, ++ _("# internal error, incomplete extension sequence (?)")); ++ return; ++ ++ case 'o': ++ delta = (l >> OP_SH_VFPU_DELTA) & OP_MASK_VFPU_DELTA; ++ if (delta & 0x8000) ++ delta |= ~0xffff; ++ (*info->fprintf_func) (info->stream, "%d", ++ delta); ++ break; ++ ++ case '0': ++ case '1': ++ case '2': ++ case '3': ++ break; ++ ++ case '4': ++ case '5': ++ case '6': ++ case '7': ++ break; ++ ++ case 'a': ++ { ++ unsigned int c = (l >> OP_SH_VFPU_CONST) & OP_MASK_VFPU_CONST; ++ if (c < vfpu_num_constants) ++ { ++ (*info->fprintf_func) (info->stream, "%s", ++ vfpu_const_names[c]); ++ } ++ break; ++ } ++ ++ case 'b': ++ /* 5-bit immediate value. */ ++ (*info->fprintf_func) (info->stream, "%d", ++ (l >> OP_SH_VFPU_IMM5) & OP_MASK_VFPU_IMM5); ++ break; ++ ++ case 'c': ++ /* VFPU condition code. */ ++ (*info->fprintf_func) (info->stream, "%d", ++ (l >> OP_SH_VFPU_CC) & OP_MASK_VFPU_CC); ++ break; ++ ++ case 'e': ++ /* 3-bit immediate value. */ ++ (*info->fprintf_func) (info->stream, "%d", ++ (l >> OP_SH_VFPU_IMM3) & OP_MASK_VFPU_IMM3); ++ break; ++ ++ case 'f': ++ /* Conditional compare. */ ++ (*info->fprintf_func) (info->stream, "%s", ++ vfpu_cond_names[l & 0x0f]); ++ /* Apparently this specifier is unused. */ ++ d++; ++ break; ++ ++ case 'i': ++ /* 8-bit immediate value. */ ++ (*info->fprintf_func) (info->stream, "0x%02x", ++ (l >> OP_SH_VFPU_IMM8) & OP_MASK_VFPU_IMM8); ++ break; ++ ++ case 'q': ++ /* VFPU control register (vmtvc). */ ++ (*info->fprintf_func) (info->stream, "$%d", ++ l & 0xff); ++ break; ++ ++ case 'r': ++ /* VFPU control register (vmfvc). */ ++ (*info->fprintf_func) (info->stream, "$%d", ++ (l >> 8) & 0xff); ++ break; ++ ++ case 'u': ++ break; ++ ++ case 'w': ++ break; ++ ++ case 'd': ++ case 'm': ++ case 'n': ++ case 's': ++ case 't': ++ case 'v': ++ case 'x': ++ break; ++ ++ case 'z': ++ (*info->fprintf_func) (info->stream, "%s", ++ vfpu_rwb_names[(l >> 1) & 0x1]); ++ break; ++ ++ default: ++ /* xgettext:c-format */ ++ (*info->fprintf_func) (info->stream, ++ _("# internal error, undefined extension sequence (?%c)"), ++ *d); ++ return; ++ } + break; + + default: +diff -NBaur binutils-2.16.1/opcodes/mips-opc.c binutils-2.16.1-psp/opcodes/mips-opc.c +--- binutils-2.16.1/opcodes/mips-opc.c Thu Mar 3 11:49:50 2005 ++++ binutils-2.16.1-psp/opcodes/mips-opc.c Mon Jul 25 20:30:04 2005 +@@ -109,6 +109,7 @@ + #define N5 (INSN_5400 | INSN_5500) + #define N54 INSN_5400 + #define N55 INSN_5500 ++#define AL INSN_ALLEGREX + + #define G1 (T3 \ + ) +@@ -271,6 +272,7 @@ + {"bnel", "s,t,p", 0x54000000, 0xfc000000, CBL|RD_s|RD_t, 0, I2|T3 }, + {"bnel", "s,I,p", 0, (int) M_BNEL_I, INSN_MACRO, 0, I2|T3 }, + {"break", "", 0x0000000d, 0xffffffff, TRAP, 0, I1 }, ++{"break", "B", 0x0000000d, 0xfc00003f, TRAP, 0, I32|AL }, + {"break", "c", 0x0000000d, 0xfc00ffff, TRAP, 0, I1 }, + {"break", "c,q", 0x0000000d, 0xfc00003f, TRAP, 0, I1 }, + {"c.f.d", "S,T", 0x46200030, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I1 }, +@@ -432,7 +434,7 @@ + {"cabs.un.d", "M,S,T", 0x46200071, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D }, + {"cabs.un.ps", "M,S,T", 0x46c00071, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D }, + {"cabs.un.s", "M,S,T", 0x46000071, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, M3D }, +-{"cache", "k,o(b)", 0xbc000000, 0xfc000000, RD_b, 0, I3|I32|T3}, ++{"cache", "k,o(b)", 0xbc000000, 0xfc000000, RD_b, 0, I3|I32|T3|AL}, + {"ceil.l.d", "D,S", 0x4620000a, 0xffff003f, WR_D|RD_S|FP_D, 0, I3 }, + {"ceil.l.s", "D,S", 0x4600000a, 0xffff003f, WR_D|RD_S|FP_S, 0, I3 }, + {"ceil.w.d", "D,S", 0x4620000e, 0xffff003f, WR_D|RD_S|FP_D, 0, I2 }, +@@ -443,7 +445,9 @@ + /* cfc2 is at the bottom of the table. */ + {"cfc3", "t,G", 0x4c400000, 0xffe007ff, LCD|WR_t|RD_C3, 0, I1 }, + {"clo", "U,s", 0x70000021, 0xfc0007ff, WR_d|WR_t|RD_s, 0, I32|N55 }, ++{"clo", "d,s", 0x00000017, 0xfc1f07ff, WR_d|RD_s, 0, AL }, + {"clz", "U,s", 0x70000020, 0xfc0007ff, WR_d|WR_t|RD_s, 0, I32|N55 }, ++{"clz", "d,s", 0x00000016, 0xfc1f07ff, WR_d|RD_s, 0, AL }, + {"ctc0", "t,G", 0x40c00000, 0xffe007ff, COD|RD_t|WR_CC, 0, I1 }, + {"ctc1", "t,G", 0x44c00000, 0xffe007ff, COD|RD_t|WR_CC|FP_S, 0, I1 }, + {"ctc1", "t,S", 0x44c00000, 0xffe007ff, COD|RD_t|WR_CC|FP_S, 0, I1 }, +@@ -465,10 +469,12 @@ + {"cvt.ps.s","D,V,T", 0x46000026, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, I5 }, + {"cvt.pw.ps", "D,S", 0x46c00024, 0xffff003f, WR_D|RD_S|FP_S|FP_D, 0, M3D }, + {"dabs", "d,v", 0, (int) M_DABS, INSN_MACRO, 0, I3 }, ++{"max", "d,v,t", 0x0000002c, 0xfc0007ff, WR_d|RD_s|RD_t, 0, AL }, + {"dadd", "d,v,t", 0x0000002c, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I3 }, + {"dadd", "t,r,I", 0, (int) M_DADD_I, INSN_MACRO, 0, I3 }, + {"daddi", "t,r,j", 0x60000000, 0xfc000000, WR_t|RD_s, 0, I3 }, + {"daddiu", "t,r,j", 0x64000000, 0xfc000000, WR_t|RD_s, 0, I3 }, ++{"min", "d,v,t", 0x0000002d, 0xfc0007ff, WR_d|RD_s|RD_t, 0, AL }, + {"daddu", "d,v,t", 0x0000002d, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I3 }, + {"daddu", "t,r,I", 0, (int) M_DADDU_I, INSN_MACRO, 0, I3 }, + {"dbreak", "", 0x7000003f, 0xffffffff, 0, 0, N5 }, +@@ -595,8 +601,8 @@ + {"dsubu", "d,v,I", 0, (int) M_DSUBU_I, INSN_MACRO, 0, I3 }, + {"ei", "", 0x41606020, 0xffffffff, WR_t|WR_C0, 0, I33 }, + {"ei", "t", 0x41606020, 0xffe0ffff, WR_t|WR_C0, 0, I33 }, +-{"eret", "", 0x42000018, 0xffffffff, 0, 0, I3|I32 }, +-{"ext", "t,r,+A,+C", 0x7c000000, 0xfc00003f, WR_t|RD_s, 0, I33 }, ++{"eret", "", 0x42000018, 0xffffffff, 0, 0, I3|I32|AL }, ++{"ext", "t,r,+A,+C", 0x7c000000, 0xfc00003f, WR_t|RD_s, 0, I33|AL }, + {"floor.l.d", "D,S", 0x4620000b, 0xffff003f, WR_D|RD_S|FP_D, 0, I3 }, + {"floor.l.s", "D,S", 0x4600000b, 0xffff003f, WR_D|RD_S|FP_S, 0, I3 }, + {"floor.w.d", "D,S", 0x4620000f, 0xffff003f, WR_D|RD_S|FP_D, 0, I2 }, +@@ -605,7 +611,7 @@ + {"flushd", "", 0xbc020000, 0xffffffff, 0, 0, L1 }, + {"flushid", "", 0xbc030000, 0xffffffff, 0, 0, L1 }, + {"hibernate","", 0x42000023, 0xffffffff, 0, 0, V1 }, +-{"ins", "t,r,+A,+B", 0x7c000004, 0xfc00003f, WR_t|RD_s, 0, I33 }, ++{"ins", "t,r,+A,+B", 0x7c000004, 0xfc00003f, WR_t|RD_s, 0, I33|AL }, + {"jr", "s", 0x00000008, 0xfc1fffff, UBD|RD_s, 0, I1 }, + {"jr.hb", "s", 0x00000408, 0xfc1fffff, UBD|RD_s, 0, I33 }, + {"j", "s", 0x00000008, 0xfc1fffff, UBD|RD_s, 0, I1 }, /* jr */ +@@ -639,18 +645,11 @@ + {"ld", "t,o(b)", 0xdc000000, 0xfc000000, WR_t|RD_b, 0, I3 }, + {"ld", "t,o(b)", 0, (int) M_LD_OB, INSN_MACRO, 0, I1 }, + {"ld", "t,A(b)", 0, (int) M_LD_AB, INSN_MACRO, 0, I1 }, +-{"ldc1", "T,o(b)", 0xd4000000, 0xfc000000, CLD|RD_b|WR_T|FP_D, 0, I2 }, +-{"ldc1", "E,o(b)", 0xd4000000, 0xfc000000, CLD|RD_b|WR_T|FP_D, 0, I2 }, +-{"ldc1", "T,A(b)", 0, (int) M_LDC1_AB, INSN_MACRO, 0, I2 }, +-{"ldc1", "E,A(b)", 0, (int) M_LDC1_AB, INSN_MACRO, 0, I2 }, +-{"l.d", "T,o(b)", 0xd4000000, 0xfc000000, CLD|RD_b|WR_T|FP_D, 0, I2 }, /* ldc1 */ +-{"l.d", "T,o(b)", 0, (int) M_L_DOB, INSN_MACRO, 0, I1 }, +-{"l.d", "T,A(b)", 0, (int) M_L_DAB, INSN_MACRO, 0, I1 }, +-{"ldc2", "E,o(b)", 0xd8000000, 0xfc000000, CLD|RD_b|WR_CC, 0, I2 }, +-{"ldc2", "E,A(b)", 0, (int) M_LDC2_AB, INSN_MACRO, 0, I2 }, ++/* ldc1 is at the bottom of the table. */ ++/* ldc2 is at the bottom of the table. */ + {"ldc3", "E,o(b)", 0xdc000000, 0xfc000000, CLD|RD_b|WR_CC, 0, I2 }, + {"ldc3", "E,A(b)", 0, (int) M_LDC3_AB, INSN_MACRO, 0, I2 }, +-{"ldl", "t,o(b)", 0x68000000, 0xfc000000, LDD|WR_t|RD_b, 0, I3 }, ++{"ldl", "t,o(b)", 0x68000000, 0xfc000000, LDD|WR_t|RD_b, 0, I3|AL }, + {"ldl", "t,A(b)", 0, (int) M_LDL_AB, INSN_MACRO, 0, I3 }, + {"ldr", "t,o(b)", 0x6c000000, 0xfc000000, LDD|WR_t|RD_b, 0, I3 }, + {"ldr", "t,A(b)", 0, (int) M_LDR_AB, INSN_MACRO, 0, I3 }, +@@ -680,8 +679,7 @@ + {"lwc1", "E,A(b)", 0, (int) M_LWC1_AB, INSN_MACRO, 0, I1 }, + {"l.s", "T,o(b)", 0xc4000000, 0xfc000000, CLD|RD_b|WR_T|FP_S, 0, I1 }, /* lwc1 */ + {"l.s", "T,A(b)", 0, (int) M_LWC1_AB, INSN_MACRO, 0, I1 }, +-{"lwc2", "E,o(b)", 0xc8000000, 0xfc000000, CLD|RD_b|WR_CC, 0, I1 }, +-{"lwc2", "E,A(b)", 0, (int) M_LWC2_AB, INSN_MACRO, 0, I1 }, ++/* lwc2 is at the bottom of the table. */ + {"lwc3", "E,o(b)", 0xcc000000, 0xfc000000, CLD|RD_b|WR_CC, 0, I1 }, + {"lwc3", "E,A(b)", 0, (int) M_LWC3_AB, INSN_MACRO, 0, I1 }, + {"lwl", "t,o(b)", 0x88000000, 0xfc000000, LDD|RD_b|WR_t, 0, I1 }, +@@ -713,10 +711,12 @@ + {"madd.s", "D,R,S,T", 0x4c000020, 0xfc00003f, RD_R|RD_S|RD_T|WR_D|FP_S, 0, I4 }, + {"madd.ps", "D,R,S,T", 0x4c000026, 0xfc00003f, RD_R|RD_S|RD_T|WR_D|FP_D, 0, I5 }, + {"madd", "s,t", 0x0000001c, 0xfc00ffff, RD_s|RD_t|WR_HILO, 0, L1 }, ++{"madd", "s,t", 0x0000001c, 0xfc00ffff, RD_s|RD_t|WR_HILO|IS_M, 0, AL }, + {"madd", "s,t", 0x70000000, 0xfc00ffff, RD_s|RD_t|MOD_HILO, 0, I32|N55}, + {"madd", "s,t", 0x70000000, 0xfc00ffff, RD_s|RD_t|WR_HILO|IS_M, 0, G1 }, + {"madd", "d,s,t", 0x70000000, 0xfc0007ff, RD_s|RD_t|WR_HILO|WR_d|IS_M, 0, G1 }, + {"maddu", "s,t", 0x0000001d, 0xfc00ffff, RD_s|RD_t|WR_HILO, 0, L1 }, ++{"maddu", "s,t", 0x0000001d, 0xfc00ffff, RD_s|RD_t|WR_HILO|IS_M, 0, AL }, + {"maddu", "s,t", 0x70000001, 0xfc00ffff, RD_s|RD_t|MOD_HILO, 0, I32|N55}, + {"maddu", "s,t", 0x70000001, 0xfc00ffff, RD_s|RD_t|WR_HILO|IS_M, 0, G1 }, + {"maddu", "d,s,t", 0x70000001, 0xfc0007ff, RD_s|RD_t|WR_HILO|WR_d|IS_M, 0, G1 }, +@@ -756,7 +756,7 @@ + {"movf.l", "X,Y,N", 0x46a00011, 0xffe3003f, WR_D|RD_S|RD_CC|FP_D, 0, MX|SB1 }, + {"movf.s", "D,S,N", 0x46000011, 0xffe3003f, WR_D|RD_S|RD_CC|FP_S, 0, I4|I32 }, + {"movf.ps", "D,S,N", 0x46c00011, 0xffe3003f, WR_D|RD_S|RD_CC|FP_D, 0, I5 }, +-{"movn", "d,v,t", 0x0000000b, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I4|I32 }, ++{"movn", "d,v,t", 0x0000000b, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I4|I32|AL }, + {"ffc", "d,v", 0x0000000b, 0xfc1f07ff, WR_d|RD_s, 0, L1 }, + {"movn.d", "D,S,t", 0x46200013, 0xffe0003f, WR_D|RD_S|RD_t|FP_D, 0, I4|I32 }, + {"movn.l", "D,S,t", 0x46a00013, 0xffe0003f, WR_D|RD_S|RD_t|FP_D, 0, MX|SB1 }, +@@ -769,7 +769,7 @@ + {"movt.l", "X,Y,N", 0x46a10011, 0xffe3003f, WR_D|RD_S|RD_CC|FP_D, 0, MX|SB1 }, + {"movt.s", "D,S,N", 0x46010011, 0xffe3003f, WR_D|RD_S|RD_CC|FP_S, 0, I4|I32 }, + {"movt.ps", "D,S,N", 0x46c10011, 0xffe3003f, WR_D|RD_S|RD_CC|FP_D, 0, I5 }, +-{"movz", "d,v,t", 0x0000000a, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I4|I32 }, ++{"movz", "d,v,t", 0x0000000a, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I4|I32|AL }, + {"ffs", "d,v", 0x0000000a, 0xfc1f07ff, WR_d|RD_s, 0, L1 }, + {"movz.d", "D,S,t", 0x46200012, 0xffe0003f, WR_D|RD_S|RD_t|FP_D, 0, I4|I32 }, + {"movz.l", "D,S,t", 0x46a00012, 0xffe0003f, WR_D|RD_S|RD_t|FP_D, 0, MX|SB1 }, +@@ -786,8 +786,10 @@ + {"msub.s", "D,R,S,T", 0x4c000028, 0xfc00003f, RD_R|RD_S|RD_T|WR_D|FP_S, 0, I4 }, + {"msub.ps", "D,R,S,T", 0x4c00002e, 0xfc00003f, RD_R|RD_S|RD_T|WR_D|FP_D, 0, I5 }, + {"msub", "s,t", 0x0000001e, 0xfc00ffff, RD_s|RD_t|WR_HILO, 0, L1 }, ++{"msub", "s,t", 0x0000002e, 0xfc00ffff, RD_s|RD_t|WR_HILO|IS_M, 0, AL }, + {"msub", "s,t", 0x70000004, 0xfc00ffff, RD_s|RD_t|MOD_HILO, 0, I32|N55 }, + {"msubu", "s,t", 0x0000001f, 0xfc00ffff, RD_s|RD_t|WR_HILO, 0, L1 }, ++{"msubu", "s,t", 0x0000002f, 0xfc00ffff, RD_s|RD_t|WR_HILO|IS_M, 0, AL }, + {"msubu", "s,t", 0x70000005, 0xfc00ffff, RD_s|RD_t|MOD_HILO, 0, I32|N55 }, + {"mtpc", "t,P", 0x4080c801, 0xffe0ffc1, COD|RD_t|WR_C0, 0, M1|N5 }, + {"mtps", "t,P", 0x4080c800, 0xffe0ffc1, COD|RD_t|WR_C0, 0, M1|N5 }, +@@ -936,13 +938,13 @@ + {"rol", "d,v,I", 0, (int) M_ROL_I, INSN_MACRO, 0, I1 }, + {"ror", "d,v,t", 0, (int) M_ROR, INSN_MACRO, 0, I1 }, + {"ror", "d,v,I", 0, (int) M_ROR_I, INSN_MACRO, 0, I1 }, +-{"ror", "d,w,<", 0x00200002, 0xffe0003f, WR_d|RD_t, 0, N5|I33 }, +-{"rorv", "d,t,s", 0x00000046, 0xfc0007ff, RD_t|RD_s|WR_d, 0, N5|I33 }, +-{"rotl", "d,v,t", 0, (int) M_ROL, INSN_MACRO, 0, I33 }, +-{"rotl", "d,v,I", 0, (int) M_ROL_I, INSN_MACRO, 0, I33 }, +-{"rotr", "d,v,t", 0, (int) M_ROR, INSN_MACRO, 0, I33 }, +-{"rotr", "d,v,I", 0, (int) M_ROR_I, INSN_MACRO, 0, I33 }, +-{"rotrv", "d,t,s", 0x00000046, 0xfc0007ff, RD_t|RD_s|WR_d, 0, I33 }, ++{"ror", "d,w,<", 0x00200002, 0xffe0003f, WR_d|RD_t, 0, N5|I33|AL }, ++{"rorv", "d,t,s", 0x00000046, 0xfc0007ff, RD_t|RD_s|WR_d, 0, N5|I33|AL }, ++{"rotl", "d,v,t", 0, (int) M_ROL, INSN_MACRO, 0, I33|AL }, ++{"rotl", "d,v,I", 0, (int) M_ROL_I, INSN_MACRO, 0, I33|AL }, ++{"rotr", "d,v,t", 0, (int) M_ROR, INSN_MACRO, 0, I33|AL }, ++{"rotr", "d,v,I", 0, (int) M_ROR_I, INSN_MACRO, 0, I33|AL }, ++{"rotrv", "d,t,s", 0x00000046, 0xfc0007ff, RD_t|RD_s|WR_d, 0, I33|AL }, + {"round.l.d", "D,S", 0x46200008, 0xffff003f, WR_D|RD_S|FP_D, 0, I3 }, + {"round.l.s", "D,S", 0x46000008, 0xffff003f, WR_D|RD_S|FP_S, 0, I3 }, + {"round.w.d", "D,S", 0x4620000c, 0xffff003f, WR_D|RD_S|FP_D, 0, I2 }, +@@ -974,24 +976,18 @@ + {"sdbbp", "c,q", 0x0000000e, 0xfc00003f, TRAP, 0, G2 }, + {"sdbbp", "", 0x7000003f, 0xffffffff, TRAP, 0, I32 }, + {"sdbbp", "B", 0x7000003f, 0xfc00003f, TRAP, 0, I32 }, +-{"sdc1", "T,o(b)", 0xf4000000, 0xfc000000, SM|RD_T|RD_b|FP_D, 0, I2 }, +-{"sdc1", "E,o(b)", 0xf4000000, 0xfc000000, SM|RD_T|RD_b|FP_D, 0, I2 }, +-{"sdc1", "T,A(b)", 0, (int) M_SDC1_AB, INSN_MACRO, 0, I2 }, +-{"sdc1", "E,A(b)", 0, (int) M_SDC1_AB, INSN_MACRO, 0, I2 }, +-{"sdc2", "E,o(b)", 0xf8000000, 0xfc000000, SM|RD_C2|RD_b, 0, I2 }, +-{"sdc2", "E,A(b)", 0, (int) M_SDC2_AB, INSN_MACRO, 0, I2 }, ++/* sdc1 is at the bottom of the table. */ ++/* sdc2 is at the bottom of the table. */ + {"sdc3", "E,o(b)", 0xfc000000, 0xfc000000, SM|RD_C3|RD_b, 0, I2 }, + {"sdc3", "E,A(b)", 0, (int) M_SDC3_AB, INSN_MACRO, 0, I2 }, +-{"s.d", "T,o(b)", 0xf4000000, 0xfc000000, SM|RD_T|RD_b|FP_D, 0, I2 }, +-{"s.d", "T,o(b)", 0, (int) M_S_DOB, INSN_MACRO, 0, I1 }, +-{"s.d", "T,A(b)", 0, (int) M_S_DAB, INSN_MACRO, 0, I1 }, +-{"sdl", "t,o(b)", 0xb0000000, 0xfc000000, SM|RD_t|RD_b, 0, I3 }, ++/* s.d (sdc1 is at the bottom of the table. */ ++{"sdl", "t,o(b)", 0xb0000000, 0xfc000000, SM|RD_t|RD_b, 0, I3|AL }, + {"sdl", "t,A(b)", 0, (int) M_SDL_AB, INSN_MACRO, 0, I3 }, + {"sdr", "t,o(b)", 0xb4000000, 0xfc000000, SM|RD_t|RD_b, 0, I3 }, + {"sdr", "t,A(b)", 0, (int) M_SDR_AB, INSN_MACRO, 0, I3 }, + {"sdxc1", "S,t(b)", 0x4c000009, 0xfc0007ff, SM|RD_S|RD_t|RD_b, 0, I4 }, +-{"seb", "d,w", 0x7c000420, 0xffe007ff, WR_d|RD_t, 0, I33 }, +-{"seh", "d,w", 0x7c000620, 0xffe007ff, WR_d|RD_t, 0, I33 }, ++{"seb", "d,w", 0x7c000420, 0xffe007ff, WR_d|RD_t, 0, I33|AL }, ++{"seh", "d,w", 0x7c000620, 0xffe007ff, WR_d|RD_t, 0, I33|AL }, + {"selsl", "d,v,t", 0x00000005, 0xfc0007ff, WR_d|RD_s|RD_t, 0, L1 }, + {"selsr", "d,v,t", 0x00000001, 0xfc0007ff, WR_d|RD_s|RD_t, 0, L1 }, + {"seq", "d,v,t", 0, (int) M_SEQ, INSN_MACRO, 0, I1 }, +@@ -1083,8 +1079,7 @@ + {"swc1", "E,A(b)", 0, (int) M_SWC1_AB, INSN_MACRO, 0, I1 }, + {"s.s", "T,o(b)", 0xe4000000, 0xfc000000, SM|RD_T|RD_b|FP_S, 0, I1 }, /* swc1 */ + {"s.s", "T,A(b)", 0, (int) M_SWC1_AB, INSN_MACRO, 0, I1 }, +-{"swc2", "E,o(b)", 0xe8000000, 0xfc000000, SM|RD_C2|RD_b, 0, I1 }, +-{"swc2", "E,A(b)", 0, (int) M_SWC2_AB, INSN_MACRO, 0, I1 }, ++/* swc2 is at the bottom of the table. */ + {"swc3", "E,o(b)", 0xec000000, 0xfc000000, SM|RD_C3|RD_b, 0, I1 }, + {"swc3", "E,A(b)", 0, (int) M_SWC3_AB, INSN_MACRO, 0, I1 }, + {"swl", "t,o(b)", 0xa8000000, 0xfc000000, SM|RD_t|RD_b, 0, I1 }, +@@ -1169,7 +1164,8 @@ + {"waiti", "", 0x42000020, 0xffffffff, TRAP, 0, L1 }, + {"wb", "o(b)", 0xbc040000, 0xfc1f0000, SM|RD_b, 0, L1 }, + {"wrpgpr", "d,w", 0x41c00000, 0xffe007ff, RD_t, 0, I33 }, +-{"wsbh", "d,w", 0x7c0000a0, 0xffe007ff, WR_d|RD_t, 0, I33 }, ++{"wsbh", "d,w", 0x7c0000a0, 0xffe007ff, WR_d|RD_t, 0, I33|AL }, ++{"wsbw", "d,t", 0x7c0000e0, 0xffe007ff, WR_d|RD_t, 0, AL }, + {"xor", "d,v,t", 0x00000026, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I1 }, + {"xor", "t,r,I", 0, (int) M_XOR_I, INSN_MACRO, 0, I1 }, + {"xor.ob", "X,Y,Q", 0x7800000d, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, MX|SB1 }, +@@ -1179,6 +1175,320 @@ + {"xor.qh", "X,Y,Q", 0x7820000d, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, MX }, + {"xori", "t,r,i", 0x38000000, 0xfc000000, WR_t|RD_s, 0, I1 }, + ++/* Sony Allegrex CPU core. */ ++{"bitrev", "d,t", 0x7c000520, 0xffe007ff, WR_d|RD_t, 0, AL }, ++ ++/* Sony Allegrex VFPU instructions. */ ++/* MRB: I don't know all of the instructions that should be using WR_C2/RD_C2 (they're just synonyms ++ for INSN_COP). It's not that important and more for reference, but someone should fill them in later. */ ++/* MRB: I don't know the real macro names either, so they are assumed from the opcode's name. */ ++{"bvf", "?c,p", 0x49000000, 0xffe30000, CBD|RD_CC, 0, AL }, ++{"bvfl", "?c,p", 0x49020000, 0xffe30000, CBL|RD_CC, 0, AL }, ++{"bvt", "?c,p", 0x49010000, 0xffe30000, CBD|RD_CC, 0, AL }, ++{"bvtl", "?c,p", 0x49030000, 0xffe30000, CBL|RD_CC, 0, AL }, ++{"lv.s", "?m0x,?o(b)", 0xc8000000, 0xfc000000, CLD|RD_s|WR_CC, 0, AL }, ++{"lv.s", "?m0x,A(b)", 0 , 0x00000073, INSN_MACRO, 0, AL }, ++{"ulv.s", "?m0x,o(b)", 0 , 0x000000da, INSN_MACRO, 0, AL }, ++{"lv.q", "?n3x,?o(b)", 0xd8000000, 0xfc000002, CLD|RD_s|WR_CC, 0, AL }, ++{"lv.q", "?n3x,A(b)", 0 , 0x00000074, INSN_MACRO, 0, AL }, ++{"ulv.q", "?n3x,?o(b)", 0 , 0x000000dc, INSN_MACRO, 0, AL }, ++{"ulv.q", "?n3x,A(b)", 0 , 0x000000dd, INSN_MACRO, 0, AL }, ++{"lvi.s", "?t0x,l?y0", 0 , 0x00000062, INSN_MACRO, 0, AL }, ++{"lvi.p", "?t1x,?[l?y0,l?y1?]", 0 , 0x00000063, INSN_MACRO, 0, AL }, ++{"lvi.t", "?t2x,?[l?y0,l?y1,l?y2?]", 0 , 0x00000064, INSN_MACRO, 0, AL }, ++{"lvi.q", "?t3x,?[l?y0,l?y1,l?y2,l?y3?]", 0 , 0x00000065, INSN_MACRO, 0, AL }, ++{"lvhi.s", "?t0x,?[?u?y0,?u?y1?]", 0 , 0x00000060, INSN_MACRO, 0, AL }, ++{"lvhi.p", "?t1x,?[?u?y0,?u?y1,?u?y2,?u?y3?]", 0 , 0x00000061, INSN_MACRO, 0, AL }, ++{"sv.s", "?m0x,?o(b)", 0xe8000000, 0xfc000000, SM|RD_s|RD_C0, 0, AL }, ++{"sv.s", "?m0x,A(b)", 0 , 0x000000bf, INSN_MACRO, 0, AL }, ++{"usv.s", "?m0x,o(b)", 0 , 0x000000e4, INSN_MACRO, 0, AL }, ++{"sv.q", "?n3x,?o(b)", 0xf8000000, 0xfc000002, SM|RD_s|RD_C0, 0, AL }, ++{"sv.q", "?n3x,?o(b),?z", 0xf8000000, 0xfc000000, SM|RD_s|RD_C0, 0, AL }, ++{"sv.q", "?n3x,A(b)", 0 , 0x000000c0, INSN_MACRO, 0, AL }, ++{"sv.q", "?n3x,A(b),?z", 0 , 0x000000c0, INSN_MACRO, 0, AL }, ++{"sv.q", "?n3x,A,?z", 0 , 0x000000c0, INSN_MACRO, 0, AL }, ++{"usv.q", "?n3x,?o(b)", 0 , 0x000000e6, INSN_MACRO, 0, AL }, ++{"usv.q", "?n3x,A(b)", 0 , 0x000000e7, INSN_MACRO, 0, AL }, ++{"vwb.q", "?n3x,?o(b)", 0xf8000002, 0xfc000002, SM|RD_s|RD_C0, 0, AL }, ++{"lvl.q", "?n3x,?o(b)", 0xd4000000, 0xfc000002, CLD|RD_s|WR_CC, 0, AL }, ++{"lvl.q", "?n3x,A(b)", 0 , 0x00000075, INSN_MACRO, 0, AL }, ++{"lvr.q", "?n3x,?o(b)", 0xd4000002, 0xfc000002, CLD|RD_s|WR_CC, 0, AL }, ++{"lvr.q", "?n3x,A(b)", 0 , 0x00000076, INSN_MACRO, 0, AL }, ++{"svl.q", "?n3x,?o(b)", 0xf4000000, 0xfc000002, SM|RD_s|RD_C0, 0, AL }, ++{"svl.q", "?n3x,A(b)", 0 , 0x000000c1, INSN_MACRO, 0, AL }, ++{"svr.q", "?n3x,?o(b)", 0xf4000002, 0xfc000002, SM|RD_s|RD_C0, 0, AL }, ++{"svr.q", "?n3x,A(b)", 0 , 0x000000c2, INSN_MACRO, 0, AL }, ++{"mtv", "t,?d0z", 0x48e00000, 0xffe0ff80, LCD|WR_t|RD_C0, 0, AL }, ++{"mfv", "t,?d0z", 0x48600000, 0xffe0ff80, COD|RD_t|WR_CC|RD_C0, 0, AL }, ++{"mtvc", "t,?q", 0x48e00000, 0xffe0ff00, LCD|WR_t|RD_C0, 0, AL }, ++{"mfvc", "t,?q", 0x48600000, 0xffe0ff00, COD|RD_t|WR_CC|RD_C0, 0, AL }, ++{"vmtvc", "?q,?s0y", 0xd0510000, 0xffff8000, RD_C0, 0, AL }, ++{"vmfvc", "?d0z,?r", 0xd0500000, 0xffff0080, RD_C0, 0, AL }, ++{"vadd.q", "?d3d,?s3s,?t3t", 0x60008080, 0xff808080, RD_C0, 0, AL }, ++{"vsub.q", "?d3d,?s3s,?t3t", 0x60808080, 0xff808080, RD_C0, 0, AL }, ++{"vdiv.q", "?x3z,?s3y,?t3x", 0x63808080, 0xff808080, RD_C0, 0, AL }, ++{"vmul.q", "?d3d,?s3s,?t3t", 0x64008080, 0xff808080, RD_C0, 0, AL }, ++{"vdot.q", "?d0d,?s3s,?t3t", 0x64808080, 0xff808080, RD_C0, 0, AL }, ++{"vscl.q", "?d3d,?s3s,?t0x", 0x65008080, 0xff808080, RD_C0, 0, AL }, ++{"vhdp.q", "?d0d,?s3y,?t3t", 0x66008080, 0xff808080, RD_C0, 0, AL }, ++{"vcmp.q", "?f2,?s3s,?t3t", 0x6c008080, 0xff8080f0, RD_C0, 0, AL }, ++{"vcmp.q", "?f1,?s3s", 0x6c008080, 0xffff80f0, RD_C0, 0, AL }, ++{"vcmp.q", "?f0", 0x6c008080, 0xfffffff0, RD_C0, 0, AL }, ++{"vmin.q", "?d3d,?s3s,?t3t", 0x6d008080, 0xff808080, RD_C0, 0, AL }, ++{"vmax.q", "?d3d,?s3s,?t3t", 0x6d808080, 0xff808080, RD_C0, 0, AL }, ++{"vsgn.q", "?d3d,?s3s", 0xd04a8080, 0xffff8080, RD_C0, 0, AL }, ++{"vcst.q", "?d3d,?a", 0xd0608080, 0xffe0ff80, RD_C0, 0, AL }, ++{"vscmp.q", "?d3d,?s3s,?t3t", 0x6e808080, 0xff808080, RD_C0, 0, AL }, ++{"vsge.q", "?d3d,?s3s,?t3t", 0x6f008080, 0xff808080, RD_C0, 0, AL }, ++{"vslt.q", "?d3d,?s3s,?t3t", 0x6f808080, 0xff808080, RD_C0, 0, AL }, ++{"vi2uc.q", "?d0m,?s3w", 0xd03c8080, 0xffff8080, RD_C0, 0, AL }, ++{"vi2c.q", "?d0m,?s3w", 0xd03d8080, 0xffff8080, RD_C0, 0, AL }, ++{"vi2us.q", "?d1m,?s3w", 0xd03e8080, 0xffff8080, RD_C0, 0, AL }, ++{"vi2s.q", "?d1m,?s3w", 0xd03f8080, 0xffff8080, RD_C0, 0, AL }, ++{"vmov.q", "?d3d,?s3s", 0xd0008080, 0xffff8080, RD_C0, 0, AL }, ++{"vabs.q", "?d3d,?s3w", 0xd0018080, 0xffff8080, RD_C0, 0, AL }, ++{"vneg.q", "?d3d,?s3w", 0xd0028080, 0xffff8080, RD_C0, 0, AL }, ++{"vidt.q", "?d3d", 0xd0038080, 0xffffff80, RD_C0, 0, AL }, ++{"vsat0.q", "?d3z,?s3s", 0xd0048080, 0xffff8080, RD_C0, 0, AL }, ++{"vsat1.q", "?d3z,?s3s", 0xd0058080, 0xffff8080, RD_C0, 0, AL }, ++{"vzero.q", "?d3d", 0xd0068080, 0xffffff80, RD_C0, 0, AL }, ++{"vone.q", "?d3d", 0xd0078080, 0xffffff80, RD_C0, 0, AL }, ++{"vrcp.q", "?x3z,?s3y", 0xd0108080, 0xffff8080, RD_C0, 0, AL }, ++{"vrsq.q", "?x3z,?s3y", 0xd0118080, 0xffff8080, RD_C0, 0, AL }, ++{"vsin.q", "?x3z,?s3y", 0xd0128080, 0xffff8080, RD_C0, 0, AL }, ++{"vcos.q", "?x3z,?s3y", 0xd0138080, 0xffff8080, RD_C0, 0, AL }, ++{"vexp2.q", "?x3z,?s3y", 0xd0148080, 0xffff8080, RD_C0, 0, AL }, ++{"vlog2.q", "?x3z,?s3y", 0xd0158080, 0xffff8080, RD_C0, 0, AL }, ++{"vsqrt.q", "?x3z,?s3y", 0xd0168080, 0xffff8080, RD_C0, 0, AL }, ++{"vasin.q", "?x3z,?s3y", 0xd0178080, 0xffff8080, RD_C0, 0, AL }, ++{"vnrcp.q", "?x3z,?s3y", 0xd0188080, 0xffff8080, RD_C0, 0, AL }, ++{"vnsin.q", "?x3z,?s3y", 0xd01a8080, 0xffff8080, RD_C0, 0, AL }, ++{"vrexp2.q", "?x3z,?s3y", 0xd01c8080, 0xffff8080, RD_C0, 0, AL }, ++{"vrndi.q", "?d3z", 0xd0218080, 0xffffff80, RD_C0, 0, AL }, ++{"vrndf1.q", "?d3z", 0xd0228080, 0xffffff80, RD_C0, 0, AL }, ++{"vrndf2.q", "?d3z", 0xd0238080, 0xffffff80, RD_C0, 0, AL }, ++{"vf2h.q", "?d1m,?s3s", 0xd0328080, 0xffff8080, RD_C0, 0, AL }, ++{"vsrt1.q", "?d3d,?s3s", 0xd0408080, 0xffff8080, RD_C0, 0, AL }, ++{"vsrt2.q", "?d3d,?s3s", 0xd0418080, 0xffff8080, RD_C0, 0, AL }, ++{"vsrt3.q", "?d3d,?s3s", 0xd0488080, 0xffff8080, RD_C0, 0, AL }, ++{"vsrt4.q", "?d3d,?s3s", 0xd0498080, 0xffff8080, RD_C0, 0, AL }, ++{"vbfy1.q", "?d3d,?s3s", 0xd0428080, 0xffff8080, RD_C0, 0, AL }, ++{"vbfy2.q", "?d3d,?s3s", 0xd0438080, 0xffff8080, RD_C0, 0, AL }, ++{"vocp.q", "?d3d,?s3y", 0xd0448080, 0xffff8080, RD_C0, 0, AL }, ++{"vfad.q", "?d0d,?s3s", 0xd0468080, 0xffff8080, RD_C0, 0, AL }, ++{"vavg.q", "?d0d,?s3s", 0xd0478080, 0xffff8080, RD_C0, 0, AL }, ++{"vf2in.q", "?d3m,?s3s,?b", 0xd2008080, 0xffe08080, RD_C0, 0, AL }, ++{"vf2iz.q", "?d3m,?s3s,?b", 0xd2208080, 0xffe08080, RD_C0, 0, AL }, ++{"vf2iu.q", "?d3m,?s3s,?b", 0xd2408080, 0xffe08080, RD_C0, 0, AL }, ++{"vf2id.q", "?d3m,?s3s,?b", 0xd2608080, 0xffe08080, RD_C0, 0, AL }, ++{"vi2f.q", "?d3d,?s3w,?b", 0xd2808080, 0xffe08080, RD_C0, 0, AL }, ++{"vcmov.q", "?d3d,?s3s,?e", 0 , 0x000000e9, INSN_MACRO, 0, AL }, ++{"vcmovt.q", "?d3d,?s3s,?e", 0xd2a08080, 0xfff88080, RD_C0, 0, AL }, ++{"vcmovf.q", "?d3d,?s3s,?e", 0xd2a88080, 0xfff88080, RD_C0, 0, AL }, ++{"vmmul.q", "?v7z,?s7y,?t7x", 0xf0008080, 0xff808080, RD_C0, 0, AL }, ++{"vtfm4.q", "?v3z,?s7y,?t3x", 0xf1808080, 0xff808080, RD_C0, 0, AL }, ++{"vhtfm4.q", "?v3z,?s7y,?t3x", 0xf1808000, 0xff808080, RD_C0, 0, AL }, ++{"vmscl.q", "?x7z,?s7y,?t0x", 0xf2008080, 0xff808080, RD_C0, 0, AL }, ++{"vqmul.q", "?v3z,?s3y,?t3x", 0xf2808080, 0xff808080, RD_C0, 0, AL }, ++{"vmmov.q", "?x7z,?s7y", 0xf3808080, 0xffff8080, RD_C0, 0, AL }, ++{"vmidt.q", "?d7z", 0xf3838080, 0xffffff80, RD_C0, 0, AL }, ++{"vmzero.q", "?d7z", 0xf3868080, 0xffffff80, RD_C0, 0, AL }, ++{"vmone.q", "?d7z", 0xf3878080, 0xffffff80, RD_C0, 0, AL }, ++{"vrot.q", "?x3z,?s0y,?w", 0xf3a08080, 0xffe08080, RD_C0, 0, AL }, ++{"vt4444.q", "?d1z,?s3w", 0xd0598080, 0xffff8080, RD_C0, 0, AL }, ++{"vt5551.q", "?d1z,?s3w", 0xd05a8080, 0xffff8080, RD_C0, 0, AL }, ++{"vt5650.q", "?d1z,?s3w", 0xd05b8080, 0xffff8080, RD_C0, 0, AL }, ++{"vadd.t", "?d2d,?s2s,?t2t", 0x60008000, 0xff808080, RD_C0, 0, AL }, ++{"vsub.t", "?d2d,?s2s,?t2t", 0x60808000, 0xff808080, RD_C0, 0, AL }, ++{"vdiv.t", "?x2z,?s2y,?t2x", 0x63808000, 0xff808080, RD_C0, 0, AL }, ++{"vmul.t", "?d2d,?s2s,?t2t", 0x64008000, 0xff808080, RD_C0, 0, AL }, ++{"vdot.t", "?d0d,?s2s,?t2t", 0x64808000, 0xff808080, RD_C0, 0, AL }, ++{"vscl.t", "?d2d,?s2s,?t0x", 0x65008000, 0xff808080, RD_C0, 0, AL }, ++{"vhdp.t", "?d0d,?s2y,?t2t", 0x66008000, 0xff808080, RD_C0, 0, AL }, ++{"vcrs.t", "?d2d,?s2y,?t2x", 0x66808000, 0xff808080, RD_C0, 0, AL }, ++{"vcmp.t", "?f2,?s2s,?t2t", 0x6c008000, 0xff8080f0, RD_C0, 0, AL }, ++{"vcmp.t", "?f1,?s2s", 0x6c008000, 0xffff80f0, RD_C0, 0, AL }, ++{"vcmp.t", "?f0", 0x6c008000, 0xfffffff0, RD_C0, 0, AL }, ++{"vmin.t", "?d2d,?s2s,?t2t", 0x6d008000, 0xff808080, RD_C0, 0, AL }, ++{"vmax.t", "?d2d,?s2s,?t2t", 0x6d808000, 0xff808080, RD_C0, 0, AL }, ++{"vsgn.t", "?d2d,?s2s", 0xd04a8000, 0xffff8080, RD_C0, 0, AL }, ++{"vcst.t", "?d2d,?a", 0xd0608000, 0xffe0ff80, RD_C0, 0, AL }, ++{"vscmp.t", "?d2d,?s2s,?t2t", 0x6e808000, 0xff808080, RD_C0, 0, AL }, ++{"vsge.t", "?d2d,?s2s,?t2t", 0x6f008000, 0xff808080, RD_C0, 0, AL }, ++{"vslt.t", "?d2d,?s2s,?t2t", 0x6f808000, 0xff808080, RD_C0, 0, AL }, ++{"vmov.t", "?d2d,?s2s", 0xd0008000, 0xffff8080, RD_C0, 0, AL }, ++{"vabs.t", "?d2d,?s2w", 0xd0018000, 0xffff8080, RD_C0, 0, AL }, ++{"vneg.t", "?d2d,?s2w", 0xd0028000, 0xffff8080, RD_C0, 0, AL }, ++{"vsat0.t", "?d2z,?s2s", 0xd0048000, 0xffff8080, RD_C0, 0, AL }, ++{"vsat1.t", "?d2z,?s2s", 0xd0058000, 0xffff8080, RD_C0, 0, AL }, ++{"vzero.t", "?d2d", 0xd0068000, 0xffffff80, RD_C0, 0, AL }, ++{"vone.t", "?d2d", 0xd0078000, 0xffffff80, RD_C0, 0, AL }, ++{"vrcp.t", "?x2z,?s2y", 0xd0108000, 0xffff8080, RD_C0, 0, AL }, ++{"vrsq.t", "?x2z,?s2y", 0xd0118000, 0xffff8080, RD_C0, 0, AL }, ++{"vsin.t", "?x2z,?s2y", 0xd0128000, 0xffff8080, RD_C0, 0, AL }, ++{"vcos.t", "?x2z,?s2y", 0xd0138000, 0xffff8080, RD_C0, 0, AL }, ++{"vexp2.t", "?x2z,?s2y", 0xd0148000, 0xffff8080, RD_C0, 0, AL }, ++{"vlog2.t", "?x2z,?s2y", 0xd0158000, 0xffff8080, RD_C0, 0, AL }, ++{"vsqrt.t", "?x2z,?s2y", 0xd0168000, 0xffff8080, RD_C0, 0, AL }, ++{"vasin.t", "?x2z,?s2y", 0xd0178000, 0xffff8080, RD_C0, 0, AL }, ++{"vnrcp.t", "?x2z,?s2y", 0xd0188000, 0xffff8080, RD_C0, 0, AL }, ++{"vnsin.t", "?x2z,?s2y", 0xd01a8000, 0xffff8080, RD_C0, 0, AL }, ++{"vrexp2.t", "?x2z,?s2y", 0xd01c8000, 0xffff8080, RD_C0, 0, AL }, ++{"vrndi.t", "?d2z", 0xd0218000, 0xffffff80, RD_C0, 0, AL }, ++{"vrndf1.t", "?d2z", 0xd0228000, 0xffffff80, RD_C0, 0, AL }, ++{"vrndf2.t", "?d2z", 0xd0238000, 0xffffff80, RD_C0, 0, AL }, ++{"vocp.t", "?d2d,?s2y", 0xd0448000, 0xffff8080, RD_C0, 0, AL }, ++{"vfad.t", "?d0d,?s2s", 0xd0468000, 0xffff8080, RD_C0, 0, AL }, ++{"vavg.t", "?d0d,?s2s", 0xd0478000, 0xffff8080, RD_C0, 0, AL }, ++{"vf2in.t", "?d2m,?s2s,?b", 0xd2008000, 0xffe08080, RD_C0, 0, AL }, ++{"vf2iz.t", "?d2m,?s2s,?b", 0xd2208000, 0xffe08080, RD_C0, 0, AL }, ++{"vf2iu.t", "?d2m,?s2s,?b", 0xd2408000, 0xffe08080, RD_C0, 0, AL }, ++{"vf2id.t", "?d2m,?s2s,?b", 0xd2608000, 0xffe08080, RD_C0, 0, AL }, ++{"vi2f.t", "?d2d,?s2w,?b", 0xd2808000, 0xffe08080, RD_C0, 0, AL }, ++{"vcmov.t", "?d2d,?s2s,?e", 0 , 0x000000eb, INSN_MACRO, 0, AL }, ++{"vcmovt.t", "?d2d,?s2s,?e", 0xd2a08000, 0xfff88080, RD_C0, 0, AL }, ++{"vcmovf.t", "?d2d,?s2s,?e", 0xd2a88000, 0xfff88080, RD_C0, 0, AL }, ++{"vmmul.t", "?v6z,?s6y,?t6x", 0xf0008000, 0xff808080, RD_C0, 0, AL }, ++{"vtfm3.t", "?v2z,?s6y,?t2x", 0xf1008000, 0xff808080, RD_C0, 0, AL }, ++{"vhtfm3.t", "?v2z,?s6y,?t2x", 0xf1000080, 0xff808080, RD_C0, 0, AL }, ++{"vmscl.t", "?x6z,?s6y,?t0x", 0xf2008000, 0xff808080, RD_C0, 0, AL }, ++{"vmmov.t", "?x6z,?s6y", 0xf3808000, 0xffff8080, RD_C0, 0, AL }, ++{"vmidt.t", "?d6z", 0xf3838000, 0xffffff80, RD_C0, 0, AL }, ++{"vmzero.t", "?d6z", 0xf3868000, 0xffffff80, RD_C0, 0, AL }, ++{"vmone.t", "?d6z", 0xf3878000, 0xffffff80, RD_C0, 0, AL }, ++{"vrot.t", "?x2z,?s0y,?w", 0xf3a08000, 0xffe08080, RD_C0, 0, AL }, ++{"vcrsp.t", "?d2z,?s2y,?t2x", 0xf2808000, 0xff808080, RD_C0, 0, AL }, ++{"vadd.p", "?d1d,?s1s,?t1t", 0x60000080, 0xff808080, RD_C0, 0, AL }, ++{"vsub.p", "?d1d,?s1s,?t1t", 0x60800080, 0xff808080, RD_C0, 0, AL }, ++{"vdiv.p", "?x1z,?s1y,?t1x", 0x63800080, 0xff808080, RD_C0, 0, AL }, ++{"vmul.p", "?d1d,?s1s,?t1t", 0x64000080, 0xff808080, RD_C0, 0, AL }, ++{"vdot.p", "?d0d,?s1s,?t1t", 0x64800080, 0xff808080, RD_C0, 0, AL }, ++{"vscl.p", "?d1d,?s1s,?t0x", 0x65000080, 0xff808080, RD_C0, 0, AL }, ++{"vhdp.p", "?d0d,?s1y,?t1t", 0x66000080, 0xff808080, RD_C0, 0, AL }, ++{"vdet.p", "?d0d,?s1s,?t1x", 0x67000080, 0xff808080, RD_C0, 0, AL }, ++{"vcmp.p", "?f2,?s1s,?t1t", 0x6c000080, 0xff8080f0, RD_C0, 0, AL }, ++{"vcmp.p", "?f1,?s1s", 0x6c000080, 0xffff80f0, RD_C0, 0, AL }, ++{"vcmp.p", "?f0", 0x6c000080, 0xfffffff0, RD_C0, 0, AL }, ++{"vmin.p", "?d1d,?s1s,?t1t", 0x6d000080, 0xff808080, RD_C0, 0, AL }, ++{"vmax.p", "?d1d,?s1s,?t1t", 0x6d800080, 0xff808080, RD_C0, 0, AL }, ++{"vsgn.p", "?d1d,?s1s", 0xd04a0080, 0xffff8080, RD_C0, 0, AL }, ++{"vcst.p", "?d1d,?a", 0xd0600080, 0xffe0ff80, RD_C0, 0, AL }, ++{"vscmp.p", "?d1d,?s1s,?t1t", 0x6e800080, 0xff808080, RD_C0, 0, AL }, ++{"vsge.p", "?d1d,?s1s,?t1t", 0x6f000080, 0xff808080, RD_C0, 0, AL }, ++{"vslt.p", "?d1d,?s1s,?t1t", 0x6f800080, 0xff808080, RD_C0, 0, AL }, ++{"vus2i.p", "?d3m,?s1y", 0xd03a0080, 0xffff8080, RD_C0, 0, AL }, ++{"vs2i.p", "?d3m,?s1y", 0xd03b0080, 0xffff8080, RD_C0, 0, AL }, ++{"vi2us.p", "?d0m,?s1w", 0xd03e0080, 0xffff8080, RD_C0, 0, AL }, ++{"vi2s.p", "?d0m,?s1w", 0xd03f0080, 0xffff8080, RD_C0, 0, AL }, ++{"vmov.p", "?d1d,?s1s", 0xd0000080, 0xffff8080, RD_C0, 0, AL }, ++{"vabs.p", "?d1d,?s1w", 0xd0010080, 0xffff8080, RD_C0, 0, AL }, ++{"vneg.p", "?d1d,?s1w", 0xd0020080, 0xffff8080, RD_C0, 0, AL }, ++{"vidt.p", "?d1d", 0xd0030080, 0xffffff80, RD_C0, 0, AL }, ++{"vsat0.p", "?d1z,?s1s", 0xd0040080, 0xffff8080, RD_C0, 0, AL }, ++{"vsat1.p", "?d1z,?s1s", 0xd0050080, 0xffff8080, RD_C0, 0, AL }, ++{"vzero.p", "?d1d", 0xd0060080, 0xffffff80, RD_C0, 0, AL }, ++{"vone.p", "?d1d", 0xd0070080, 0xffffff80, RD_C0, 0, AL }, ++{"vrcp.p", "?x1z,?s1y", 0xd0100080, 0xffff8080, RD_C0, 0, AL }, ++{"vrsq.p", "?x1z,?s1y", 0xd0110080, 0xffff8080, RD_C0, 0, AL }, ++{"vsin.p", "?x1z,?s1y", 0xd0120080, 0xffff8080, RD_C0, 0, AL }, ++{"vcos.p", "?x1z,?s1y", 0xd0130080, 0xffff8080, RD_C0, 0, AL }, ++{"vexp2.p", "?x1z,?s1y", 0xd0140080, 0xffff8080, RD_C0, 0, AL }, ++{"vlog2.p", "?x1z,?s1y", 0xd0150080, 0xffff8080, RD_C0, 0, AL }, ++{"vsqrt.p", "?x1z,?s1y", 0xd0160080, 0xffff8080, RD_C0, 0, AL }, ++{"vasin.p", "?x1z,?s1y", 0xd0170080, 0xffff8080, RD_C0, 0, AL }, ++{"vnrcp.p", "?x1z,?s1y", 0xd0180080, 0xffff8080, RD_C0, 0, AL }, ++{"vnsin.p", "?x1z,?s1y", 0xd01a0080, 0xffff8080, RD_C0, 0, AL }, ++{"vrexp2.p", "?x1z,?s1y", 0xd01c0080, 0xffff8080, RD_C0, 0, AL }, ++{"vrndi.p", "?d1z", 0xd0210080, 0xffffff80, RD_C0, 0, AL }, ++{"vrndf1.p", "?d1z", 0xd0220080, 0xffffff80, RD_C0, 0, AL }, ++{"vrndf2.p", "?d1z", 0xd0230080, 0xffffff80, RD_C0, 0, AL }, ++{"vf2h.p", "?d0m,?s1s", 0xd0320080, 0xffff8080, RD_C0, 0, AL }, ++{"vh2f.p", "?d3d,?s1y", 0xd0330080, 0xffff8080, RD_C0, 0, AL }, ++{"vbfy1.p", "?d1d,?s1s", 0xd0420080, 0xffff8080, RD_C0, 0, AL }, ++{"vocp.p", "?d1d,?s1y", 0xd0440080, 0xffff8080, RD_C0, 0, AL }, ++{"vsocp.p", "?d3z,?s1y", 0xd0450080, 0xffff8080, RD_C0, 0, AL }, ++{"vfad.p", "?d0d,?s1s", 0xd0460080, 0xffff8080, RD_C0, 0, AL }, ++{"vavg.p", "?d0d,?s1s", 0xd0470080, 0xffff8080, RD_C0, 0, AL }, ++{"vf2in.p", "?d1m,?s1s,?b", 0xd2000080, 0xffe08080, RD_C0, 0, AL }, ++{"vf2iz.p", "?d1m,?s1s,?b", 0xd2200080, 0xffe08080, RD_C0, 0, AL }, ++{"vf2iu.p", "?d1m,?s1s,?b", 0xd2400080, 0xffe08080, RD_C0, 0, AL }, ++{"vf2id.p", "?d1m,?s1s,?b", 0xd2600080, 0xffe08080, RD_C0, 0, AL }, ++{"vi2f.p", "?d1d,?s1w,?b", 0xd2800080, 0xffe08080, RD_C0, 0, AL }, ++{"vcmov.p", "?d1d,?s1s,?e", 0 , 0x000000e8, INSN_MACRO, 0, AL }, ++{"vcmovt.p", "?d1d,?s1s,?e", 0xd2a00080, 0xfff88080, RD_C0, 0, AL }, ++{"vcmovf.p", "?d1d,?s1s,?e", 0xd2a80080, 0xfff88080, RD_C0, 0, AL }, ++{"vmmul.p", "?v5z,?s5y,?t5x", 0xf0000080, 0xff808080, RD_C0, 0, AL }, ++{"vtfm2.p", "?v1z,?s5y,?t1x", 0xf0800080, 0xff808080, RD_C0, 0, AL }, ++{"vhtfm2.p", "?v1z,?s5y,?t1x", 0xf0800000, 0xff808080, RD_C0, 0, AL }, ++{"vmscl.p", "?x5z,?s5y,?t0x", 0xf2000080, 0xff808080, RD_C0, 0, AL }, ++{"vmmov.p", "?x5z,?s5y", 0xf3800080, 0xffff8080, RD_C0, 0, AL }, ++{"vmidt.p", "?d5z", 0xf3830080, 0xffffff80, RD_C0, 0, AL }, ++{"vmzero.p", "?d5z", 0xf3860080, 0xffffff80, RD_C0, 0, AL }, ++{"vmone.p", "?d5z", 0xf3870080, 0xffffff80, RD_C0, 0, AL }, ++{"vrot.p", "?x1z,?s0y,?w", 0xf3a00080, 0xffe08080, RD_C0, 0, AL }, ++{"vadd.s", "?d0d,?s0s,?t0t", 0x60000000, 0xff808080, RD_C0, 0, AL }, ++{"vsub.s", "?d0d,?s0s,?t0t", 0x60800000, 0xff808080, RD_C0, 0, AL }, ++{"vdiv.s", "?x0d,?s0s,?t0t", 0x63800000, 0xff808080, RD_C0, 0, AL }, ++{"vmul.s", "?d0d,?s0s,?t0t", 0x64000000, 0xff808080, RD_C0, 0, AL }, ++{"vcmp.s", "?f2,?s0s,?t0t", 0x6c000000, 0xff8080f0, RD_C0, 0, AL }, ++{"vcmp.s", "?f1,?s0s", 0x6c000000, 0xffff80f0, RD_C0, 0, AL }, ++{"vcmp.s", "?f0", 0x6c000000, 0xfffffff0, RD_C0, 0, AL }, ++{"vmin.s", "?d0d,?s0s,?t0t", 0x6d000000, 0xff808080, RD_C0, 0, AL }, ++{"vmax.s", "?d0d,?s0s,?t0t", 0x6d800000, 0xff808080, RD_C0, 0, AL }, ++{"vsgn.s", "?d0d,?s0s", 0xd04a0000, 0xffff8080, RD_C0, 0, AL }, ++{"vcst.s", "?d0d,?a", 0xd0600000, 0xffe0ff80, RD_C0, 0, AL }, ++{"vscmp.s", "?d0d,?s0s,?t0t", 0x6e800000, 0xff808080, RD_C0, 0, AL }, ++{"vsge.s", "?d0d,?s0s,?t0t", 0x6f000000, 0xff808080, RD_C0, 0, AL }, ++{"vslt.s", "?d0d,?s0s,?t0t", 0x6f800000, 0xff808080, RD_C0, 0, AL }, ++{"vus2i.s", "?d1m,?s0y", 0xd03a0000, 0xffff8080, RD_C0, 0, AL }, ++{"vs2i.s", "?d1m,?s0y", 0xd03b0000, 0xffff8080, RD_C0, 0, AL }, ++{"vmov.s", "?d0d,?s0s", 0xd0000000, 0xffff8080, RD_C0, 0, AL }, ++{"vabs.s", "?d0d,?s0w", 0xd0010000, 0xffff8080, RD_C0, 0, AL }, ++{"vneg.s", "?d0d,?s0w", 0xd0020000, 0xffff8080, RD_C0, 0, AL }, ++{"vsat0.s", "?d0z,?s0s", 0xd0040000, 0xffff8080, RD_C0, 0, AL }, ++{"vsat1.s", "?d0z,?s0s", 0xd0050000, 0xffff8080, RD_C0, 0, AL }, ++{"vzero.s", "?d0d", 0xd0060000, 0xffffff80, RD_C0, 0, AL }, ++{"vone.s", "?d0d", 0xd0070000, 0xffffff80, RD_C0, 0, AL }, ++{"vrcp.s", "?x0d,?s0s", 0xd0100000, 0xffff8080, RD_C0, 0, AL }, ++{"vrsq.s", "?x0d,?s0s", 0xd0110000, 0xffff8080, RD_C0, 0, AL }, ++{"vsin.s", "?x0d,?s0s", 0xd0120000, 0xffff8080, RD_C0, 0, AL }, ++{"vcos.s", "?x0d,?s0s", 0xd0130000, 0xffff8080, RD_C0, 0, AL }, ++{"vexp2.s", "?x0d,?s0s", 0xd0140000, 0xffff8080, RD_C0, 0, AL }, ++{"vlog2.s", "?x0d,?s0s", 0xd0150000, 0xffff8080, RD_C0, 0, AL }, ++{"vsqrt.s", "?x0d,?s0s", 0xd0160000, 0xffff8080, RD_C0, 0, AL }, ++{"vasin.s", "?x0d,?s0s", 0xd0170000, 0xffff8080, RD_C0, 0, AL }, ++{"vnrcp.s", "?x0d,?s0y", 0xd0180000, 0xffff8080, RD_C0, 0, AL }, ++{"vnsin.s", "?x0d,?s0y", 0xd01a0000, 0xffff8080, RD_C0, 0, AL }, ++{"vrexp2.s", "?x0d,?s0y", 0xd01c0000, 0xffff8080, RD_C0, 0, AL }, ++{"vrnds.s", "?s0y", 0xd0200000, 0xffff80ff, RD_C0, 0, AL }, ++{"vrndi.s", "?d0d", 0xd0210000, 0xffffff80, RD_C0, 0, AL }, ++{"vrndf1.s", "?d0d", 0xd0220000, 0xffffff80, RD_C0, 0, AL }, ++{"vrndf2.s", "?d0d", 0xd0230000, 0xffffff80, RD_C0, 0, AL }, ++{"vh2f.s", "?d1d,?s0y", 0xd0330000, 0xffff8080, RD_C0, 0, AL }, ++{"vsbz.s", "?d0d,?s0s", 0xd0360000, 0xffff8080, RD_C0, 0, AL }, ++{"vsbn.s", "?d0d,?s0s,?t0t", 0x61000000, 0xff808080, RD_C0, 0, AL }, ++{"vlgb.s", "?d0d,?s0s", 0xd0370000, 0xffff8080, RD_C0, 0, AL }, ++{"vocp.s", "?d0d,?s0y", 0xd0440000, 0xffff8080, RD_C0, 0, AL }, ++{"vsocp.s", "?d1z,?s0y", 0xd0450000, 0xffff8080, RD_C0, 0, AL }, ++{"vf2in.s", "?d0m,?s0s,?b", 0xd2000000, 0xffe08080, RD_C0, 0, AL }, ++{"vf2iz.s", "?d0m,?s0s,?b", 0xd2200000, 0xffe08080, RD_C0, 0, AL }, ++{"vf2iu.s", "?d0m,?s0s,?b", 0xd2400000, 0xffe08080, RD_C0, 0, AL }, ++{"vf2id.s", "?d0m,?s0s,?b", 0xd2600000, 0xffe08080, RD_C0, 0, AL }, ++{"vi2f.s", "?d0d,?s0w,?b", 0xd2800000, 0xffe08080, RD_C0, 0, AL }, ++{"vcmov.s", "?d0d,?s0s,?e", 0 , 0x000000ea, INSN_MACRO, 0, AL }, ++{"vcmovt.s", "?d0d,?s0s,?e", 0xd2a00000, 0xfff88080, RD_C0, 0, AL }, ++{"vcmovf.s", "?d0d,?s0s,?e", 0xd2a80000, 0xfff88080, RD_C0, 0, AL }, ++{"vwbn.s", "?d0d,?s0s,?i", 0xd3000000, 0xff008080, RD_C0, 0, AL }, ++{"vpfxs", "?0,?1,?2,?3", 0xdc000000, 0xff000000, RD_C0, 0, AL }, ++{"vpfxt", "?0,?1,?2,?3", 0xdd000000, 0xff000000, RD_C0, 0, AL }, ++{"vpfxd", "?4,?5,?6,?7", 0xde000000, 0xff000000, RD_C0, 0, AL }, ++{"viim.s", "?t0d,j", 0xdf000000, 0xff800000, RD_C0, 0, AL }, ++{"vfim.s", "?t0d,?u", 0xdf800000, 0xff800000, RD_C0, 0, AL }, ++{"vnop", "", 0xffff0000, 0xffffffff, RD_C0, 0, AL }, ++{"vflush", "", 0xffff040d, 0xffffffff, RD_C0, 0, AL }, ++{"vsync", "", 0xffff0320, 0xffffffff, RD_C0, 0, AL }, ++{"vsync", "i", 0xffff0000, 0xffff0000, RD_C0, 0, AL }, ++ + /* Coprocessor 2 move/branch operations overlap with VR5400 .ob format + instructions so they are here for the latters to take precedence. */ + {"bc2f", "p", 0x49000000, 0xffff0000, CBD|RD_CC, 0, I1 }, +@@ -1197,6 +1507,32 @@ + {"mtc2", "t,G", 0x48800000, 0xffe007ff, COD|RD_t|WR_C2|WR_CC, 0, I1 }, + {"mtc2", "t,G,H", 0x48800000, 0xffe007f8, COD|RD_t|WR_C2|WR_CC, 0, I32 }, + {"mthc2", "t,i", 0x48e00000, 0xffe00000, COD|RD_t|WR_C2|WR_CC, 0, I33 }, ++ ++/* Coprocessor 2 load/store operations overlap with the Allegrex VFPU ++ instructions so they are here for the latters to take precedence. */ ++/* Coprocessor 1 ldc1 and sdc1 also overlap with the VFPU. */ ++{"ldc1", "T,o(b)", 0xd4000000, 0xfc000000, CLD|RD_b|WR_T|FP_D, 0, I2 }, ++{"ldc1", "E,o(b)", 0xd4000000, 0xfc000000, CLD|RD_b|WR_T|FP_D, 0, I2 }, ++{"ldc1", "T,A(b)", 0, (int) M_LDC1_AB, INSN_MACRO, 0, I2 }, ++{"ldc1", "E,A(b)", 0, (int) M_LDC1_AB, INSN_MACRO, 0, I2 }, ++{"l.d", "T,o(b)", 0xd4000000, 0xfc000000, CLD|RD_b|WR_T|FP_D, 0, I2 }, /* ldc1 */ ++{"l.d", "T,o(b)", 0, (int) M_L_DOB, INSN_MACRO, 0, I1 }, ++{"l.d", "T,A(b)", 0, (int) M_L_DAB, INSN_MACRO, 0, I1 }, ++{"ldc2", "E,o(b)", 0xd8000000, 0xfc000000, CLD|RD_b|WR_CC, 0, I2 }, ++{"ldc2", "E,A(b)", 0, (int) M_LDC2_AB, INSN_MACRO, 0, I2 }, ++{"lwc2", "E,o(b)", 0xc8000000, 0xfc000000, CLD|RD_b|WR_CC, 0, I1 }, ++{"lwc2", "E,A(b)", 0, (int) M_LWC2_AB, INSN_MACRO, 0, I1 }, ++{"sdc1", "T,o(b)", 0xf4000000, 0xfc000000, SM|RD_T|RD_b|FP_D, 0, I2 }, ++{"sdc1", "E,o(b)", 0xf4000000, 0xfc000000, SM|RD_T|RD_b|FP_D, 0, I2 }, ++{"sdc1", "T,A(b)", 0, (int) M_SDC1_AB, INSN_MACRO, 0, I2 }, ++{"sdc1", "E,A(b)", 0, (int) M_SDC1_AB, INSN_MACRO, 0, I2 }, ++{"s.d", "T,o(b)", 0xf4000000, 0xfc000000, SM|RD_T|RD_b|FP_D, 0, I2 }, ++{"s.d", "T,o(b)", 0, (int) M_S_DOB, INSN_MACRO, 0, I1 }, ++{"s.d", "T,A(b)", 0, (int) M_S_DAB, INSN_MACRO, 0, I1 }, ++{"sdc2", "E,o(b)", 0xf8000000, 0xfc000000, SM|RD_C2|RD_b, 0, I2 }, ++{"sdc2", "E,A(b)", 0, (int) M_SDC2_AB, INSN_MACRO, 0, I2 }, ++{"swc2", "E,o(b)", 0xe8000000, 0xfc000000, SM|RD_C2|RD_b, 0, I1 }, ++{"swc2", "E,A(b)", 0, (int) M_SWC2_AB, INSN_MACRO, 0, I1 }, + + /* No hazard protection on coprocessor instructions--they shouldn't + change the state of the processor and if they do it's up to the diff --git a/patches/devkit-gcc-4.0.1.patch b/dkpsp/patches/gcc-4.0.1.patch similarity index 78% rename from patches/devkit-gcc-4.0.1.patch rename to dkpsp/patches/gcc-4.0.1.patch index d7bbf44..031bd54 100644 --- a/patches/devkit-gcc-4.0.1.patch +++ b/dkpsp/patches/gcc-4.0.1.patch @@ -1,18 +1,7 @@ -diff -Naurb gcc-4.0.1/config.sub gcc-4.0.1-new/config.sub +diff -NBaur gcc-4.0.1/config.sub gcc-4.0.1-psp/config.sub --- gcc-4.0.1/config.sub Mon Apr 25 11:36:56 2005 -+++ gcc-4.0.1-new/config.sub Thu Jul 21 17:11:26 2005 -@@ -219,6 +219,10 @@ - basic_machine=m68k-atari - os=-mint - ;; -+ -gekko) -+ basic_machine=powerpc-eabi -+ os=-elf -+ ;; - esac - - # Decode aliases for certain CPU-COMPANY combinations. -@@ -254,6 +258,7 @@ ++++ gcc-4.0.1-psp/config.sub Mon Jul 25 23:52:30 2005 +@@ -254,6 +254,7 @@ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ @@ -20,7 +9,7 @@ diff -Naurb gcc-4.0.1/config.sub gcc-4.0.1-new/config.sub | mn10200 | mn10300 \ | msp430 \ | ns16k | ns32k \ -@@ -328,6 +333,7 @@ +@@ -328,6 +329,7 @@ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ @@ -28,7 +17,7 @@ diff -Naurb gcc-4.0.1/config.sub gcc-4.0.1-new/config.sub | mmix-* \ | msp430-* \ | none-* | np1-* | ns16k-* | ns32k-* \ -@@ -667,6 +673,10 @@ +@@ -667,6 +669,10 @@ *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint @@ -39,9 +28,9 @@ diff -Naurb gcc-4.0.1/config.sub gcc-4.0.1-new/config.sub ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` -diff -Naurb gcc-4.0.1/gcc/c-incpath.c gcc-4.0.1-new/gcc/c-incpath.c +diff -NBaur gcc-4.0.1/gcc/c-incpath.c gcc-4.0.1-psp/gcc/c-incpath.c --- gcc-4.0.1/gcc/c-incpath.c Sun Jan 23 15:05:27 2005 -+++ gcc-4.0.1-new/gcc/c-incpath.c Fri Jul 8 11:32:20 2005 ++++ gcc-4.0.1-psp/gcc/c-incpath.c Mon Jul 25 23:52:30 2005 @@ -331,13 +331,18 @@ cpp_dir *p; @@ -62,29 +51,15 @@ diff -Naurb gcc-4.0.1/gcc/c-incpath.c gcc-4.0.1-new/gcc/c-incpath.c + char* end = path + pathlen - 1; + /* Preserve the lead '/' or lead "c:/". */ + char* start = path + (pathlen > 2 && path[1] == ':' ? 3 : 1); -+ ++ + for (; end > start && IS_DIR_SEPARATOR (*end); end--) + *end = 0; #endif p = xmalloc (sizeof (cpp_dir)); -diff -Naurb gcc-4.0.1/gcc/config/arm/t-arm-elf gcc-4.0.1-new/gcc/config/arm/t-arm-elf ---- gcc-4.0.1/gcc/config/arm/t-arm-elf Wed Sep 1 12:14:21 2004 -+++ gcc-4.0.1-new/gcc/config/arm/t-arm-elf Wed Jul 20 23:25:14 2005 -@@ -23,8 +23,8 @@ - # MULTILIB_DIRNAMES += fpu soft - # MULTILIB_EXCEPTIONS += *mthumb/*mhard-float* - # --# MULTILIB_OPTIONS += mno-thumb-interwork/mthumb-interwork --# MULTILIB_DIRNAMES += normal interwork -+MULTILIB_OPTIONS += mno-thumb-interwork/mthumb-interwork -+MULTILIB_DIRNAMES += normal interwork - # - # MULTILIB_OPTIONS += fno-leading-underscore/fleading-underscore - # MULTILIB_DIRNAMES += elf under -diff -Naurb gcc-4.0.1/gcc/config/mips/mips.c gcc-4.0.1-new/gcc/config/mips/mips.c +diff -NBaur gcc-4.0.1/gcc/config/mips/mips.c gcc-4.0.1-psp/gcc/config/mips/mips.c --- gcc-4.0.1/gcc/config/mips/mips.c Sun May 8 12:56:53 2005 -+++ gcc-4.0.1-new/gcc/config/mips/mips.c Fri Jul 8 10:05:36 2005 ++++ gcc-4.0.1-psp/gcc/config/mips/mips.c Mon Jul 25 23:52:30 2005 @@ -673,6 +673,7 @@ /* MIPS II */ @@ -93,9 +68,9 @@ diff -Naurb gcc-4.0.1/gcc/config/mips/mips.c gcc-4.0.1-new/gcc/config/mips/mips. /* MIPS III */ { "r4000", PROCESSOR_R4000, 3 }, -diff -Naurb gcc-4.0.1/gcc/config/mips/mips.h gcc-4.0.1-new/gcc/config/mips/mips.h +diff -NBaur gcc-4.0.1/gcc/config/mips/mips.h gcc-4.0.1-psp/gcc/config/mips/mips.h --- gcc-4.0.1/gcc/config/mips/mips.h Fri Apr 15 08:00:18 2005 -+++ gcc-4.0.1-new/gcc/config/mips/mips.h Fri Jul 8 10:05:36 2005 ++++ gcc-4.0.1-psp/gcc/config/mips/mips.h Mon Jul 25 23:52:30 2005 @@ -59,7 +59,8 @@ PROCESSOR_R8000, PROCESSOR_R9000, @@ -156,10 +131,10 @@ diff -Naurb gcc-4.0.1/gcc/config/mips/mips.h gcc-4.0.1-new/gcc/config/mips/mips. )) /* True if the result of a load is not available to the next instruction. -diff -Naurb gcc-4.0.1/gcc/config/mips/psp.h gcc-4.0.1-new/gcc/config/mips/psp.h +diff -NBaur gcc-4.0.1/gcc/config/mips/psp.h gcc-4.0.1-psp/gcc/config/mips/psp.h --- gcc-4.0.1/gcc/config/mips/psp.h Thu Jan 1 00:00:00 1970 -+++ gcc-4.0.1-new/gcc/config/mips/psp.h Fri Jul 8 10:05:36 2005 -@@ -0,0 +1,24 @@ ++++ gcc-4.0.1-psp/gcc/config/mips/psp.h Mon Jul 25 23:52:30 2005 +@@ -0,0 +1,31 @@ +/* Support for Sony's Playstation Portable (PSP). + Copyright (C) 2005 Free Software Foundation, Inc. + Contributed by Marcus R. Brown @@ -184,9 +159,16 @@ diff -Naurb gcc-4.0.1/gcc/config/mips/psp.h gcc-4.0.1-new/gcc/config/mips/psp.h +/* Override the startfile spec to include crt0.o. */ +#undef STARTFILE_SPEC +#define STARTFILE_SPEC "crt0%O%s crti%O%s crtbegin%O%s" -diff -Naurb gcc-4.0.1/gcc/config/mips/t-allegrex gcc-4.0.1-new/gcc/config/mips/t-allegrex ++ ++#undef SUBTARGET_CPP_SPEC ++#define SUBTARGET_CPP_SPEC "-DPSP=1 -D__psp__=1 -D_PSP=1" ++ ++/* Get rid of the .pdr section. */ ++#undef SUBTARGET_ASM_SPEC ++#define SUBTARGET_ASM_SPEC "-mno-pdr" +diff -NBaur gcc-4.0.1/gcc/config/mips/t-allegrex gcc-4.0.1-psp/gcc/config/mips/t-allegrex --- gcc-4.0.1/gcc/config/mips/t-allegrex Thu Jan 1 00:00:00 1970 -+++ gcc-4.0.1-new/gcc/config/mips/t-allegrex Fri Jul 8 10:05:36 2005 ++++ gcc-4.0.1-psp/gcc/config/mips/t-allegrex Mon Jul 25 23:52:30 2005 @@ -0,0 +1,29 @@ +# Suppress building libgcc1.a, since the MIPS compiler port is complete +# and does not need anything from libgcc1.a. @@ -217,9 +199,9 @@ diff -Naurb gcc-4.0.1/gcc/config/mips/t-allegrex gcc-4.0.1-new/gcc/config/mips/t + +LIBGCC = stmp-multilib +INSTALL_LIBGCC = install-multilib -diff -Naurb gcc-4.0.1/gcc/config.gcc gcc-4.0.1-new/gcc/config.gcc +diff -NBaur gcc-4.0.1/gcc/config.gcc gcc-4.0.1-psp/gcc/config.gcc --- gcc-4.0.1/gcc/config.gcc Thu May 5 21:11:50 2005 -+++ gcc-4.0.1-new/gcc/config.gcc Fri Jul 8 10:05:36 2005 ++++ gcc-4.0.1-psp/gcc/config.gcc Mon Jul 25 23:52:30 2005 @@ -1520,6 +1520,18 @@ tmake_file=mips/t-r3900 use_fixproto=yes @@ -239,9 +221,9 @@ diff -Naurb gcc-4.0.1/gcc/config.gcc gcc-4.0.1-new/gcc/config.gcc mmix-knuth-mmixware) need_64bit_hwint=yes ;; -diff -Naurb gcc-4.0.1/gcc/hwint.h gcc-4.0.1-new/gcc/hwint.h +diff -NBaur gcc-4.0.1/gcc/hwint.h gcc-4.0.1-psp/gcc/hwint.h --- gcc-4.0.1/gcc/hwint.h Wed Nov 24 04:31:57 2004 -+++ gcc-4.0.1-new/gcc/hwint.h Thu Jul 21 14:37:06 2005 ++++ gcc-4.0.1-psp/gcc/hwint.h Mon Jul 25 23:52:30 2005 @@ -80,7 +80,7 @@ # define HOST_WIDE_INT_PRINT_DOUBLE_HEX "0x%lx%08lx" # endif @@ -251,3 +233,21 @@ diff -Naurb gcc-4.0.1/gcc/hwint.h gcc-4.0.1-new/gcc/hwint.h # define HOST_WIDE_INT_PRINT_C "LL" /* We can assume that 'long long' is at least 64 bits. */ # define HOST_WIDE_INT_PRINT_DOUBLE_HEX \ +diff -NBaur gcc-4.0.1/gcc/version.c gcc-4.0.1-psp/gcc/version.c +--- gcc-4.0.1/gcc/version.c Thu Jul 7 19:41:54 2005 ++++ gcc-4.0.1-psp/gcc/version.c Mon Jul 25 23:52:30 2005 +@@ -5,7 +5,7 @@ + please modify this string to indicate that, e.g. by putting your + organization's name in parentheses at the end of the string. */ + +-const char version_string[] = "4.0.1"; ++const char version_string[] = "4.0.1 (PSPDEV 20050722)"; + + /* This is the location of the online document giving instructions for + reporting bugs. If you distribute a modified version of GCC, +@@ -14,4 +14,4 @@ + forward us bugs reported to you, if you determine that they are + not bugs in your modifications.) */ + +-const char bug_report_url[] = ""; ++const char bug_report_url[] = ""; diff --git a/dkpsp/patches/newlib-1.13.0.patch b/dkpsp/patches/newlib-1.13.0.patch new file mode 100644 index 0000000..1cdd9ac --- /dev/null +++ b/dkpsp/patches/newlib-1.13.0.patch @@ -0,0 +1,4236 @@ +diff -NBaur newlib-1.13.0/config.sub newlib-1.13.0-psp/config.sub +--- newlib-1.13.0/config.sub Tue Nov 16 01:18:39 2004 ++++ newlib-1.13.0-psp/config.sub Mon Jul 25 23:53:48 2005 +@@ -253,6 +253,7 @@ + | mipsisa64sb1 | mipsisa64sb1el \ + | mipsisa64sr71k | mipsisa64sr71kel \ + | mipstx39 | mipstx39el \ ++ | mipsallegrex | mipsallegrexel \ + | mn10200 | mn10300 \ + | msp430 \ + | ns16k | ns32k \ +@@ -326,6 +327,7 @@ + | mipsisa64sb1-* | mipsisa64sb1el-* \ + | mipsisa64sr71k-* | mipsisa64sr71kel-* \ + | mipstx39-* | mipstx39el-* \ ++ | mipsallegrex-* | mipsallegrexel-* \ + | mmix-* \ + | msp430-* \ + | none-* | np1-* | ns16k-* | ns32k-* \ +@@ -664,6 +666,10 @@ + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) + basic_machine=m68k-atari + os=-mint ++ ;; ++ psp) ++ basic_machine=mipsallegrexel-psp ++ os=-elf + ;; + mips3*-*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` +diff -NBaur newlib-1.13.0/configure newlib-1.13.0-psp/configure +--- newlib-1.13.0/configure Thu Dec 16 19:51:28 2004 ++++ newlib-1.13.0-psp/configure Mon Jul 25 23:53:48 2005 +@@ -1507,6 +1507,9 @@ + mips*-*-linux*) + noconfigdirs="$noconfigdirs target-newlib target-libgloss" + ;; ++ mipsallegrex*-*-*) ++ noconfigdirs="$noconfigdirs target-libgloss" ++ ;; + mips*-*-*) + noconfigdirs="$noconfigdirs gprof ${libgcj}" + ;; +diff -NBaur newlib-1.13.0/configure.in newlib-1.13.0-psp/configure.in +--- newlib-1.13.0/configure.in Thu Dec 16 19:51:28 2004 ++++ newlib-1.13.0-psp/configure.in Mon Jul 25 23:53:48 2005 +@@ -716,6 +716,9 @@ + mips*-*-linux*) + noconfigdirs="$noconfigdirs target-newlib target-libgloss" + ;; ++ mipsallegrex*-*-*) ++ noconfigdirs="$noconfigdirs target-libgloss" ++ ;; + mips*-*-*) + noconfigdirs="$noconfigdirs gprof ${libgcj}" + ;; +diff -NBaur newlib-1.13.0/newlib/configure.host newlib-1.13.0-psp/newlib/configure.host +--- newlib-1.13.0/newlib/configure.host Tue Oct 5 20:44:24 2004 ++++ newlib-1.13.0-psp/newlib/configure.host Mon Jul 25 23:53:49 2005 +@@ -570,7 +570,14 @@ + ;; + mips*-*-elf*) + default_newlib_io_long_long="yes" +- newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES" ++ case "${host}" in ++ mipsallegrex*-psp-*) ++ sys_dir=psp ++ syscall_dir=syscalls ++ newlib_cflags="${newlib_cflags} -G0 -DPREFER_SIZE_OVER_SPEED -DCOMPACT_CTYPE -DCLOCK_PROVIDED -I${prefix}/psp/sdk/include" ;; ++ *) ++ newlib_cflags="${newlib_cflags} -DMISSING_SYSCALL_NAMES" ;; ++ esac + ;; + mmix-*) + syscall_dir=syscalls +diff -NBaur newlib-1.13.0/newlib/libc/sys/psp/Makefile.am newlib-1.13.0-psp/newlib/libc/sys/psp/Makefile.am +--- newlib-1.13.0/newlib/libc/sys/psp/Makefile.am Thu Jan 1 00:00:00 1970 ++++ newlib-1.13.0-psp/newlib/libc/sys/psp/Makefile.am Mon Jul 25 23:53:48 2005 +@@ -0,0 +1,22 @@ ++## Process this file with automake to generate Makefile.in ++ ++AUTOMAKE_OPTIONS = cygnus ++ ++INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) ++ ++noinst_LIBRARIES = lib.a ++ ++LIBCGLUE_MULT_OBJS = _close.o _exit.o _fork.o _fstat.o _getpid.o _gettimeofday.o _kill.o _lseek.o \ ++ _open.o _read.o _sbrk.o _wait.o _write.o clock.o isatty.o time.o _link.o _unlink.o \ ++ _opendir.o _readdir.o _closedir.o getcwd.o chdir.o realpath.o ++ ++lib_a_SOURCES = libcglue.c pspcwd.c ++lib_a_LIBADD = $(LIBCGLUE_MULT_OBJS) ++ ++all: crt0.o ++ ++$(LIBCGLUE_MULT_OBJS): libcglue.c ++ $(COMPILE) -DF_$* $< -c -o $@ ++ ++ACLOCAL_AMFLAGS = -I ../../.. ++CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host +diff -NBaur newlib-1.13.0/newlib/libc/sys/psp/Makefile.in newlib-1.13.0-psp/newlib/libc/sys/psp/Makefile.in +--- newlib-1.13.0/newlib/libc/sys/psp/Makefile.in Thu Jan 1 00:00:00 1970 ++++ newlib-1.13.0-psp/newlib/libc/sys/psp/Makefile.in Mon Jul 25 23:53:48 2005 +@@ -0,0 +1,343 @@ ++# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am ++ ++# Copyright (C) 1994, 1995-8, 1999, 2001 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. ++ ++ ++SHELL = @SHELL@ ++ ++srcdir = @srcdir@ ++top_srcdir = @top_srcdir@ ++VPATH = @srcdir@ ++prefix = @prefix@ ++exec_prefix = @exec_prefix@ ++ ++bindir = @bindir@ ++sbindir = @sbindir@ ++libexecdir = @libexecdir@ ++datadir = @datadir@ ++sysconfdir = @sysconfdir@ ++sharedstatedir = @sharedstatedir@ ++localstatedir = @localstatedir@ ++libdir = @libdir@ ++infodir = @infodir@ ++mandir = @mandir@ ++includedir = @includedir@ ++oldincludedir = /usr/include ++ ++DESTDIR = ++ ++pkgdatadir = $(datadir)/@PACKAGE@ ++pkglibdir = $(libdir)/@PACKAGE@ ++pkgincludedir = $(includedir)/@PACKAGE@ ++ ++top_builddir = . ++ ++ACLOCAL = @ACLOCAL@ ++AUTOCONF = @AUTOCONF@ ++AUTOMAKE = @AUTOMAKE@ ++AUTOHEADER = @AUTOHEADER@ ++ ++INSTALL = @INSTALL@ ++INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) ++INSTALL_DATA = @INSTALL_DATA@ ++INSTALL_SCRIPT = @INSTALL_SCRIPT@ ++transform = @program_transform_name@ ++ ++NORMAL_INSTALL = : ++PRE_INSTALL = : ++POST_INSTALL = : ++NORMAL_UNINSTALL = : ++PRE_UNINSTALL = : ++POST_UNINSTALL = : ++build_alias = @build_alias@ ++build_triplet = @build@ ++host_alias = @host_alias@ ++host_triplet = @host@ ++target_alias = @target_alias@ ++target_triplet = @target@ ++AR = @AR@ ++AS = @AS@ ++CC = @CC@ ++CPP = @CPP@ ++EXEEXT = @EXEEXT@ ++HAVE_LIB = @HAVE_LIB@ ++LDFLAGS = @LDFLAGS@ ++LIB = @LIB@ ++LTLIB = @LTLIB@ ++MAINT = @MAINT@ ++MAKEINFO = @MAKEINFO@ ++NEWLIB_CFLAGS = @NEWLIB_CFLAGS@ ++OBJEXT = @OBJEXT@ ++PACKAGE = @PACKAGE@ ++RANLIB = @RANLIB@ ++VERSION = @VERSION@ ++aext = @aext@ ++libm_machine_dir = @libm_machine_dir@ ++machine_dir = @machine_dir@ ++newlib_basedir = @newlib_basedir@ ++oext = @oext@ ++sys_dir = @sys_dir@ ++ ++AUTOMAKE_OPTIONS = cygnus ++ ++INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS) ++ ++noinst_LIBRARIES = lib.a ++ ++LIBCGLUE_MULT_OBJS = _close.o _exit.o _fork.o _fstat.o _getpid.o _gettimeofday.o _kill.o _lseek.o _open.o _read.o _sbrk.o _wait.o _write.o clock.o isatty.o time.o _link.o _unlink.o _opendir.o _readdir.o _closedir.o getcwd.o chdir.o realpath.o ++ ++ ++lib_a_SOURCES = libcglue.c pspcwd.c ++lib_a_LIBADD = $(LIBCGLUE_MULT_OBJS) ++ ++ACLOCAL_AMFLAGS = -I ../../.. ++CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host ++ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 ++mkinstalldirs = $(SHELL) $(top_srcdir)/../../../../mkinstalldirs ++CONFIG_CLEAN_FILES = ++LIBRARIES = $(noinst_LIBRARIES) ++ ++ ++DEFS = @DEFS@ -I. -I$(srcdir) ++CPPFLAGS = @CPPFLAGS@ ++LIBS = @LIBS@ ++lib_a_DEPENDENCIES = _close.o _exit.o _fork.o _fstat.o _getpid.o \ ++_gettimeofday.o _kill.o _lseek.o _open.o _read.o _sbrk.o _wait.o \ ++_write.o clock.o isatty.o time.o _link.o _unlink.o _opendir.o \ ++_readdir.o _closedir.o getcwd.o chdir.o realpath.o ++lib_a_OBJECTS = libcglue.o pspcwd.o ++CFLAGS = @CFLAGS@ ++COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) ++CCLD = $(CC) ++LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ ++DIST_COMMON = README Makefile.am Makefile.in aclocal.m4 configure \ ++configure.in ++ ++ ++DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) ++ ++TAR = tar ++GZIP_ENV = --best ++SOURCES = $(lib_a_SOURCES) ++OBJECTS = $(lib_a_OBJECTS) ++ ++all: all-redirect ++.SUFFIXES: ++.SUFFIXES: .S .c .o .s ++$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) ++ cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile ++ ++Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status ++ cd $(top_builddir) \ ++ && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status ++ ++$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in \ ++ ../../../acinclude.m4 ../../../aclocal.m4 \ ++ ../../../libtool.m4 ++ cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) ++ ++config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) ++ $(SHELL) ./config.status --recheck ++$(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) ++ cd $(srcdir) && $(AUTOCONF) ++ ++mostlyclean-noinstLIBRARIES: ++ ++clean-noinstLIBRARIES: ++ -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) ++ ++distclean-noinstLIBRARIES: ++ ++maintainer-clean-noinstLIBRARIES: ++ ++.c.o: ++ $(COMPILE) -c $< ++ ++.s.o: ++ $(COMPILE) -c $< ++ ++.S.o: ++ $(COMPILE) -c $< ++ ++mostlyclean-compile: ++ -rm -f *.o core *.core ++ ++clean-compile: ++ ++distclean-compile: ++ -rm -f *.tab.c ++ ++maintainer-clean-compile: ++ ++lib.a: $(lib_a_OBJECTS) $(lib_a_DEPENDENCIES) ++ -rm -f lib.a ++ $(AR) cru lib.a $(lib_a_OBJECTS) $(lib_a_LIBADD) ++ $(RANLIB) lib.a ++ ++tags: TAGS ++ ++ID: $(HEADERS) $(SOURCES) $(LISP) ++ list='$(SOURCES) $(HEADERS)'; \ ++ unique=`for i in $$list; do echo $$i; done | \ ++ awk ' { files[$$0] = 1; } \ ++ END { for (i in files) print i; }'`; \ ++ here=`pwd` && cd $(srcdir) \ ++ && mkid -f$$here/ID $$unique $(LISP) ++ ++TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) ++ tags=; \ ++ here=`pwd`; \ ++ list='$(SOURCES) $(HEADERS)'; \ ++ unique=`for i in $$list; do echo $$i; done | \ ++ awk ' { files[$$0] = 1; } \ ++ END { for (i in files) print i; }'`; \ ++ test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ ++ || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP)) ++ ++mostlyclean-tags: ++ ++clean-tags: ++ ++distclean-tags: ++ -rm -f TAGS ID ++ ++maintainer-clean-tags: ++ ++distdir = $(PACKAGE)-$(VERSION) ++top_distdir = $(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 ++ -rm -rf $(distdir) ++ GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz ++ mkdir $(distdir)/=build ++ mkdir $(distdir)/=inst ++ dc_install_base=`cd $(distdir)/=inst && pwd`; \ ++ cd $(distdir)/=build \ ++ && ../configure --srcdir=.. --prefix=$$dc_install_base \ ++ && $(MAKE) $(AM_MAKEFLAGS) \ ++ && $(MAKE) $(AM_MAKEFLAGS) dvi \ ++ && $(MAKE) $(AM_MAKEFLAGS) check \ ++ && $(MAKE) $(AM_MAKEFLAGS) install \ ++ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ ++ && $(MAKE) $(AM_MAKEFLAGS) dist ++ -rm -rf $(distdir) ++ @banner="$(distdir).tar.gz is ready for distribution"; \ ++ dashes=`echo "$$banner" | sed s/./=/g`; \ ++ echo "$$dashes"; \ ++ echo "$$banner"; \ ++ echo "$$dashes" ++dist: distdir ++ -chmod -R a+r $(distdir) ++ GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) ++ -rm -rf $(distdir) ++dist-all: distdir ++ -chmod -R a+r $(distdir) ++ GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) ++ -rm -rf $(distdir) ++distdir: $(DISTFILES) ++ -rm -rf $(distdir) ++ mkdir $(distdir) ++ -chmod 777 $(distdir) ++ @for file in $(DISTFILES); do \ ++ if test -f $$file; then d=.; else d=$(srcdir); fi; \ ++ if test -d $$d/$$file; then \ ++ cp -pr $$d/$$file $(distdir)/$$file; \ ++ else \ ++ test -f $(distdir)/$$file \ ++ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ ++ || cp -p $$d/$$file $(distdir)/$$file || :; \ ++ fi; \ ++ done ++info-am: ++info: info-am ++dvi-am: ++dvi: dvi-am ++check-am: ++check: check-am ++installcheck-am: ++installcheck: installcheck-am ++install-info-am: ++install-info: install-info-am ++install-exec-am: ++install-exec: install-exec-am ++ ++install-data-am: ++install-data: install-data-am ++ ++install-am: all-am ++ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am ++install: install-am ++uninstall-am: ++uninstall: uninstall-am ++all-am: Makefile $(LIBRARIES) ++all-redirect: all-am ++install-strip: ++ $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install ++installdirs: ++ ++ ++mostlyclean-generic: ++ ++clean-generic: ++ ++distclean-generic: ++ -rm -f Makefile $(CONFIG_CLEAN_FILES) ++ -rm -f config.cache config.log stamp-h stamp-h[0-9]* ++ ++maintainer-clean-generic: ++mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \ ++ mostlyclean-tags mostlyclean-generic ++ ++mostlyclean: mostlyclean-am ++ ++clean-am: clean-noinstLIBRARIES clean-compile clean-tags clean-generic \ ++ mostlyclean-am ++ ++clean: clean-am ++ ++distclean-am: distclean-noinstLIBRARIES distclean-compile \ ++ distclean-tags distclean-generic clean-am ++ ++distclean: distclean-am ++ -rm -f config.status ++ ++maintainer-clean-am: maintainer-clean-noinstLIBRARIES \ ++ maintainer-clean-compile maintainer-clean-tags \ ++ maintainer-clean-generic distclean-am ++ @echo "This command is intended for maintainers to use;" ++ @echo "it deletes files that may require special tools to rebuild." ++ ++maintainer-clean: maintainer-clean-am ++ -rm -f config.status ++ ++.PHONY: mostlyclean-noinstLIBRARIES distclean-noinstLIBRARIES \ ++clean-noinstLIBRARIES maintainer-clean-noinstLIBRARIES \ ++mostlyclean-compile distclean-compile clean-compile \ ++maintainer-clean-compile tags mostlyclean-tags distclean-tags \ ++clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \ ++check-am installcheck-am installcheck install-info-am install-info \ ++install-exec-am install-exec install-data-am install-data install-am \ ++install uninstall-am uninstall all-redirect all-am all installdirs \ ++mostlyclean-generic distclean-generic clean-generic \ ++maintainer-clean-generic clean mostlyclean distclean maintainer-clean ++ ++ ++all: crt0.o ++ ++$(LIBCGLUE_MULT_OBJS): libcglue.c ++ $(COMPILE) -DF_$* $< -c -o $@ ++ ++# 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 -NBaur newlib-1.13.0/newlib/libc/sys/psp/README newlib-1.13.0-psp/newlib/libc/sys/psp/README +--- newlib-1.13.0/newlib/libc/sys/psp/README Thu Jan 1 00:00:00 1970 ++++ newlib-1.13.0-psp/newlib/libc/sys/psp/README Mon Jul 25 23:53:49 2005 +@@ -0,0 +1,16 @@ ++Newlib for PSP ++-- ++ ++This sys/psp directory depends on PSPSDK headers. It expects them to live in ++${prefix}/psp/sdk/include (see newlib/configure.host). ++ ++I used automake 1.4-p6 to generate aclocal.m4 and Makefile.in: ++ ++ aclocal -I ../../.. ++ automake --cygnus ++ ++Autoconf refused to work for me, so I copied configure from sys/sh and modified ++$ac_unique_file to point libcglue.c. ++ ++-- ++Marcus R. Brown +diff -NBaur newlib-1.13.0/newlib/libc/sys/psp/aclocal.m4 newlib-1.13.0-psp/newlib/libc/sys/psp/aclocal.m4 +--- newlib-1.13.0/newlib/libc/sys/psp/aclocal.m4 Thu Jan 1 00:00:00 1970 ++++ newlib-1.13.0-psp/newlib/libc/sys/psp/aclocal.m4 Mon Jul 25 23:53:49 2005 +@@ -0,0 +1,1185 @@ ++dnl aclocal.m4 generated automatically by aclocal 1.4-p6 ++ ++dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. ++dnl This file is free software; the Free Software Foundation ++dnl gives unlimited permission to copy and/or distribute it, ++dnl with or without modifications, as long as this notice is preserved. ++ ++dnl This program is distributed in the hope that it will be useful, ++dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without ++dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A ++dnl PARTICULAR PURPOSE. ++ ++# lib-prefix.m4 serial 4 (gettext-0.14.2) ++dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. ++dnl This file is free software; the Free Software Foundation ++dnl gives unlimited permission to copy and/or distribute it, ++dnl with or without modifications, as long as this notice is preserved. ++ ++dnl From Bruno Haible. ++ ++dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and ++dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't ++dnl require excessive bracketing. ++ifdef([AC_HELP_STRING], ++[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], ++[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) ++ ++dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed ++dnl to access previously installed libraries. The basic assumption is that ++dnl a user will want packages to use other packages he previously installed ++dnl with the same --prefix option. ++dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate ++dnl libraries, but is otherwise very convenient. ++AC_DEFUN([AC_LIB_PREFIX], ++[ ++ AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) ++ AC_REQUIRE([AC_PROG_CC]) ++ AC_REQUIRE([AC_CANONICAL_HOST]) ++ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) ++ dnl By default, look in $includedir and $libdir. ++ use_additional=yes ++ AC_LIB_WITH_FINAL_PREFIX([ ++ eval additional_includedir=\"$includedir\" ++ eval additional_libdir=\"$libdir\" ++ ]) ++ AC_LIB_ARG_WITH([lib-prefix], ++[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib ++ --without-lib-prefix don't search for libraries in includedir and libdir], ++[ ++ if test "X$withval" = "Xno"; then ++ use_additional=no ++ else ++ if test "X$withval" = "X"; then ++ AC_LIB_WITH_FINAL_PREFIX([ ++ eval additional_includedir=\"$includedir\" ++ eval additional_libdir=\"$libdir\" ++ ]) ++ else ++ additional_includedir="$withval/include" ++ additional_libdir="$withval/lib" ++ fi ++ fi ++]) ++ if test $use_additional = yes; then ++ dnl Potentially add $additional_includedir to $CPPFLAGS. ++ dnl But don't add it ++ dnl 1. if it's the standard /usr/include, ++ dnl 2. if it's already present in $CPPFLAGS, ++ dnl 3. if it's /usr/local/include and we are using GCC on Linux, ++ dnl 4. if it doesn't exist as a directory. ++ if test "X$additional_includedir" != "X/usr/include"; then ++ haveit= ++ for x in $CPPFLAGS; do ++ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) ++ if test "X$x" = "X-I$additional_includedir"; then ++ haveit=yes ++ break ++ fi ++ done ++ if test -z "$haveit"; then ++ if test "X$additional_includedir" = "X/usr/local/include"; then ++ if test -n "$GCC"; then ++ case $host_os in ++ linux* | gnu* | k*bsd*-gnu) haveit=yes;; ++ esac ++ fi ++ fi ++ if test -z "$haveit"; then ++ if test -d "$additional_includedir"; then ++ dnl Really add $additional_includedir to $CPPFLAGS. ++ CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" ++ fi ++ fi ++ fi ++ fi ++ dnl Potentially add $additional_libdir to $LDFLAGS. ++ dnl But don't add it ++ dnl 1. if it's the standard /usr/lib, ++ dnl 2. if it's already present in $LDFLAGS, ++ dnl 3. if it's /usr/local/lib and we are using GCC on Linux, ++ dnl 4. if it doesn't exist as a directory. ++ if test "X$additional_libdir" != "X/usr/lib"; then ++ haveit= ++ for x in $LDFLAGS; do ++ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) ++ if test "X$x" = "X-L$additional_libdir"; then ++ haveit=yes ++ break ++ fi ++ done ++ if test -z "$haveit"; then ++ if test "X$additional_libdir" = "X/usr/local/lib"; then ++ if test -n "$GCC"; then ++ case $host_os in ++ linux*) haveit=yes;; ++ esac ++ fi ++ fi ++ if test -z "$haveit"; then ++ if test -d "$additional_libdir"; then ++ dnl Really add $additional_libdir to $LDFLAGS. ++ LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" ++ fi ++ fi ++ fi ++ fi ++ fi ++]) ++ ++dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, ++dnl acl_final_exec_prefix, containing the values to which $prefix and ++dnl $exec_prefix will expand at the end of the configure script. ++AC_DEFUN([AC_LIB_PREPARE_PREFIX], ++[ ++ dnl Unfortunately, prefix and exec_prefix get only finally determined ++ dnl at the end of configure. ++ if test "X$prefix" = "XNONE"; then ++ acl_final_prefix="$ac_default_prefix" ++ else ++ acl_final_prefix="$prefix" ++ fi ++ if test "X$exec_prefix" = "XNONE"; then ++ acl_final_exec_prefix='${prefix}' ++ else ++ acl_final_exec_prefix="$exec_prefix" ++ fi ++ acl_save_prefix="$prefix" ++ prefix="$acl_final_prefix" ++ eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" ++ prefix="$acl_save_prefix" ++]) ++ ++dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the ++dnl variables prefix and exec_prefix bound to the values they will have ++dnl at the end of the configure script. ++AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], ++[ ++ acl_save_prefix="$prefix" ++ prefix="$acl_final_prefix" ++ acl_save_exec_prefix="$exec_prefix" ++ exec_prefix="$acl_final_exec_prefix" ++ $1 ++ exec_prefix="$acl_save_exec_prefix" ++ prefix="$acl_save_prefix" ++]) ++ ++# lib-link.m4 serial 6 (gettext-0.14.3) ++dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. ++dnl This file is free software; the Free Software Foundation ++dnl gives unlimited permission to copy and/or distribute it, ++dnl with or without modifications, as long as this notice is preserved. ++ ++dnl From Bruno Haible. ++ ++AC_PREREQ(2.50) ++ ++dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and ++dnl the libraries corresponding to explicit and implicit dependencies. ++dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and ++dnl augments the CPPFLAGS variable. ++AC_DEFUN([AC_LIB_LINKFLAGS], ++[ ++ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) ++ AC_REQUIRE([AC_LIB_RPATH]) ++ define([Name],[translit([$1],[./-], [___])]) ++ define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], ++ [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) ++ AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ ++ AC_LIB_LINKFLAGS_BODY([$1], [$2]) ++ ac_cv_lib[]Name[]_libs="$LIB[]NAME" ++ ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" ++ ac_cv_lib[]Name[]_cppflags="$INC[]NAME" ++ ]) ++ LIB[]NAME="$ac_cv_lib[]Name[]_libs" ++ LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" ++ INC[]NAME="$ac_cv_lib[]Name[]_cppflags" ++ AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) ++ AC_SUBST([LIB]NAME) ++ AC_SUBST([LTLIB]NAME) ++ dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the ++ dnl results of this search when this library appears as a dependency. ++ HAVE_LIB[]NAME=yes ++ undefine([Name]) ++ undefine([NAME]) ++]) ++ ++dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode) ++dnl searches for libname and the libraries corresponding to explicit and ++dnl implicit dependencies, together with the specified include files and ++dnl the ability to compile and link the specified testcode. If found, it ++dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and ++dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and ++dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs ++dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. ++AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], ++[ ++ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) ++ AC_REQUIRE([AC_LIB_RPATH]) ++ define([Name],[translit([$1],[./-], [___])]) ++ define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], ++ [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) ++ ++ dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME ++ dnl accordingly. ++ AC_LIB_LINKFLAGS_BODY([$1], [$2]) ++ ++ dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, ++ dnl because if the user has installed lib[]Name and not disabled its use ++ dnl via --without-lib[]Name-prefix, he wants to use it. ++ ac_save_CPPFLAGS="$CPPFLAGS" ++ AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) ++ ++ AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ ++ ac_save_LIBS="$LIBS" ++ LIBS="$LIBS $LIB[]NAME" ++ AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) ++ LIBS="$ac_save_LIBS" ++ ]) ++ if test "$ac_cv_lib[]Name" = yes; then ++ HAVE_LIB[]NAME=yes ++ AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) ++ AC_MSG_CHECKING([how to link with lib[]$1]) ++ AC_MSG_RESULT([$LIB[]NAME]) ++ else ++ HAVE_LIB[]NAME=no ++ dnl If $LIB[]NAME didn't lead to a usable library, we don't need ++ dnl $INC[]NAME either. ++ CPPFLAGS="$ac_save_CPPFLAGS" ++ LIB[]NAME= ++ LTLIB[]NAME= ++ fi ++ AC_SUBST([HAVE_LIB]NAME) ++ AC_SUBST([LIB]NAME) ++ AC_SUBST([LTLIB]NAME) ++ undefine([Name]) ++ undefine([NAME]) ++]) ++ ++dnl Determine the platform dependent parameters needed to use rpath: ++dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator, ++dnl hardcode_direct, hardcode_minus_L. ++AC_DEFUN([AC_LIB_RPATH], ++[ ++ dnl Tell automake >= 1.10 to complain if config.rpath is missing. ++ m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) ++ AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS ++ AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld ++ AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host ++ AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir ++ AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ ++ CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ++ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh ++ . ./conftest.sh ++ rm -f ./conftest.sh ++ acl_cv_rpath=done ++ ]) ++ wl="$acl_cv_wl" ++ libext="$acl_cv_libext" ++ shlibext="$acl_cv_shlibext" ++ hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" ++ hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" ++ hardcode_direct="$acl_cv_hardcode_direct" ++ hardcode_minus_L="$acl_cv_hardcode_minus_L" ++ dnl Determine whether the user wants rpath handling at all. ++ AC_ARG_ENABLE(rpath, ++ [ --disable-rpath do not hardcode runtime library paths], ++ :, enable_rpath=yes) ++]) ++ ++dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and ++dnl the libraries corresponding to explicit and implicit dependencies. ++dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. ++AC_DEFUN([AC_LIB_LINKFLAGS_BODY], ++[ ++ define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], ++ [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) ++ dnl By default, look in $includedir and $libdir. ++ use_additional=yes ++ AC_LIB_WITH_FINAL_PREFIX([ ++ eval additional_includedir=\"$includedir\" ++ eval additional_libdir=\"$libdir\" ++ ]) ++ AC_LIB_ARG_WITH([lib$1-prefix], ++[ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib ++ --without-lib$1-prefix don't search for lib$1 in includedir and libdir], ++[ ++ if test "X$withval" = "Xno"; then ++ use_additional=no ++ else ++ if test "X$withval" = "X"; then ++ AC_LIB_WITH_FINAL_PREFIX([ ++ eval additional_includedir=\"$includedir\" ++ eval additional_libdir=\"$libdir\" ++ ]) ++ else ++ additional_includedir="$withval/include" ++ additional_libdir="$withval/lib" ++ fi ++ fi ++]) ++ dnl Search the library and its dependencies in $additional_libdir and ++ dnl $LDFLAGS. Using breadth-first-seach. ++ LIB[]NAME= ++ LTLIB[]NAME= ++ INC[]NAME= ++ rpathdirs= ++ ltrpathdirs= ++ names_already_handled= ++ names_next_round='$1 $2' ++ while test -n "$names_next_round"; do ++ names_this_round="$names_next_round" ++ names_next_round= ++ for name in $names_this_round; do ++ already_handled= ++ for n in $names_already_handled; do ++ if test "$n" = "$name"; then ++ already_handled=yes ++ break ++ fi ++ done ++ if test -z "$already_handled"; then ++ names_already_handled="$names_already_handled $name" ++ dnl See if it was already located by an earlier AC_LIB_LINKFLAGS ++ dnl or AC_LIB_HAVE_LINKFLAGS call. ++ uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` ++ eval value=\"\$HAVE_LIB$uppername\" ++ if test -n "$value"; then ++ if test "$value" = yes; then ++ eval value=\"\$LIB$uppername\" ++ test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" ++ eval value=\"\$LTLIB$uppername\" ++ test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" ++ else ++ dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined ++ dnl that this library doesn't exist. So just drop it. ++ : ++ fi ++ else ++ dnl Search the library lib$name in $additional_libdir and $LDFLAGS ++ dnl and the already constructed $LIBNAME/$LTLIBNAME. ++ found_dir= ++ found_la= ++ found_so= ++ found_a= ++ if test $use_additional = yes; then ++ if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then ++ found_dir="$additional_libdir" ++ found_so="$additional_libdir/lib$name.$shlibext" ++ if test -f "$additional_libdir/lib$name.la"; then ++ found_la="$additional_libdir/lib$name.la" ++ fi ++ else ++ if test -f "$additional_libdir/lib$name.$libext"; then ++ found_dir="$additional_libdir" ++ found_a="$additional_libdir/lib$name.$libext" ++ if test -f "$additional_libdir/lib$name.la"; then ++ found_la="$additional_libdir/lib$name.la" ++ fi ++ fi ++ fi ++ fi ++ if test "X$found_dir" = "X"; then ++ for x in $LDFLAGS $LTLIB[]NAME; do ++ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) ++ case "$x" in ++ -L*) ++ dir=`echo "X$x" | sed -e 's/^X-L//'` ++ if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then ++ found_dir="$dir" ++ found_so="$dir/lib$name.$shlibext" ++ if test -f "$dir/lib$name.la"; then ++ found_la="$dir/lib$name.la" ++ fi ++ else ++ if test -f "$dir/lib$name.$libext"; then ++ found_dir="$dir" ++ found_a="$dir/lib$name.$libext" ++ if test -f "$dir/lib$name.la"; then ++ found_la="$dir/lib$name.la" ++ fi ++ fi ++ fi ++ ;; ++ esac ++ if test "X$found_dir" != "X"; then ++ break ++ fi ++ done ++ fi ++ if test "X$found_dir" != "X"; then ++ dnl Found the library. ++ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" ++ if test "X$found_so" != "X"; then ++ dnl Linking with a shared library. We attempt to hardcode its ++ dnl directory into the executable's runpath, unless it's the ++ dnl standard /usr/lib. ++ if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then ++ dnl No hardcoding is needed. ++ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" ++ else ++ dnl Use an explicit option to hardcode DIR into the resulting ++ dnl binary. ++ dnl Potentially add DIR to ltrpathdirs. ++ dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. ++ haveit= ++ for x in $ltrpathdirs; do ++ if test "X$x" = "X$found_dir"; then ++ haveit=yes ++ break ++ fi ++ done ++ if test -z "$haveit"; then ++ ltrpathdirs="$ltrpathdirs $found_dir" ++ fi ++ dnl The hardcoding into $LIBNAME is system dependent. ++ if test "$hardcode_direct" = yes; then ++ dnl Using DIR/libNAME.so during linking hardcodes DIR into the ++ dnl resulting binary. ++ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" ++ else ++ if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then ++ dnl Use an explicit option to hardcode DIR into the resulting ++ dnl binary. ++ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" ++ dnl Potentially add DIR to rpathdirs. ++ dnl The rpathdirs will be appended to $LIBNAME at the end. ++ haveit= ++ for x in $rpathdirs; do ++ if test "X$x" = "X$found_dir"; then ++ haveit=yes ++ break ++ fi ++ done ++ if test -z "$haveit"; then ++ rpathdirs="$rpathdirs $found_dir" ++ fi ++ else ++ dnl Rely on "-L$found_dir". ++ dnl But don't add it if it's already contained in the LDFLAGS ++ dnl or the already constructed $LIBNAME ++ haveit= ++ for x in $LDFLAGS $LIB[]NAME; do ++ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) ++ if test "X$x" = "X-L$found_dir"; then ++ haveit=yes ++ break ++ fi ++ done ++ if test -z "$haveit"; then ++ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" ++ fi ++ if test "$hardcode_minus_L" != no; then ++ dnl FIXME: Not sure whether we should use ++ dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" ++ dnl here. ++ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" ++ else ++ dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH ++ dnl here, because this doesn't fit in flags passed to the ++ dnl compiler. So give up. No hardcoding. This affects only ++ dnl very old systems. ++ dnl FIXME: Not sure whether we should use ++ dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" ++ dnl here. ++ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" ++ fi ++ fi ++ fi ++ fi ++ else ++ if test "X$found_a" != "X"; then ++ dnl Linking with a static library. ++ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" ++ else ++ dnl We shouldn't come here, but anyway it's good to have a ++ dnl fallback. ++ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" ++ fi ++ fi ++ dnl Assume the include files are nearby. ++ additional_includedir= ++ case "$found_dir" in ++ */lib | */lib/) ++ basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` ++ additional_includedir="$basedir/include" ++ ;; ++ esac ++ if test "X$additional_includedir" != "X"; then ++ dnl Potentially add $additional_includedir to $INCNAME. ++ dnl But don't add it ++ dnl 1. if it's the standard /usr/include, ++ dnl 2. if it's /usr/local/include and we are using GCC on Linux, ++ dnl 3. if it's already present in $CPPFLAGS or the already ++ dnl constructed $INCNAME, ++ dnl 4. if it doesn't exist as a directory. ++ if test "X$additional_includedir" != "X/usr/include"; then ++ haveit= ++ if test "X$additional_includedir" = "X/usr/local/include"; then ++ if test -n "$GCC"; then ++ case $host_os in ++ linux* | gnu* | k*bsd*-gnu) haveit=yes;; ++ esac ++ fi ++ fi ++ if test -z "$haveit"; then ++ for x in $CPPFLAGS $INC[]NAME; do ++ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) ++ if test "X$x" = "X-I$additional_includedir"; then ++ haveit=yes ++ break ++ fi ++ done ++ if test -z "$haveit"; then ++ if test -d "$additional_includedir"; then ++ dnl Really add $additional_includedir to $INCNAME. ++ INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" ++ fi ++ fi ++ fi ++ fi ++ fi ++ dnl Look for dependencies. ++ if test -n "$found_la"; then ++ dnl Read the .la file. It defines the variables ++ dnl dlname, library_names, old_library, dependency_libs, current, ++ dnl age, revision, installed, dlopen, dlpreopen, libdir. ++ save_libdir="$libdir" ++ case "$found_la" in ++ */* | *\\*) . "$found_la" ;; ++ *) . "./$found_la" ;; ++ esac ++ libdir="$save_libdir" ++ dnl We use only dependency_libs. ++ for dep in $dependency_libs; do ++ case "$dep" in ++ -L*) ++ additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` ++ dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. ++ dnl But don't add it ++ dnl 1. if it's the standard /usr/lib, ++ dnl 2. if it's /usr/local/lib and we are using GCC on Linux, ++ dnl 3. if it's already present in $LDFLAGS or the already ++ dnl constructed $LIBNAME, ++ dnl 4. if it doesn't exist as a directory. ++ if test "X$additional_libdir" != "X/usr/lib"; then ++ haveit= ++ if test "X$additional_libdir" = "X/usr/local/lib"; then ++ if test -n "$GCC"; then ++ case $host_os in ++ linux* | gnu* | k*bsd*-gnu) haveit=yes;; ++ esac ++ fi ++ fi ++ if test -z "$haveit"; then ++ haveit= ++ for x in $LDFLAGS $LIB[]NAME; do ++ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) ++ if test "X$x" = "X-L$additional_libdir"; then ++ haveit=yes ++ break ++ fi ++ done ++ if test -z "$haveit"; then ++ if test -d "$additional_libdir"; then ++ dnl Really add $additional_libdir to $LIBNAME. ++ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" ++ fi ++ fi ++ haveit= ++ for x in $LDFLAGS $LTLIB[]NAME; do ++ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) ++ if test "X$x" = "X-L$additional_libdir"; then ++ haveit=yes ++ break ++ fi ++ done ++ if test -z "$haveit"; then ++ if test -d "$additional_libdir"; then ++ dnl Really add $additional_libdir to $LTLIBNAME. ++ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" ++ fi ++ fi ++ fi ++ fi ++ ;; ++ -R*) ++ dir=`echo "X$dep" | sed -e 's/^X-R//'` ++ if test "$enable_rpath" != no; then ++ dnl Potentially add DIR to rpathdirs. ++ dnl The rpathdirs will be appended to $LIBNAME at the end. ++ haveit= ++ for x in $rpathdirs; do ++ if test "X$x" = "X$dir"; then ++ haveit=yes ++ break ++ fi ++ done ++ if test -z "$haveit"; then ++ rpathdirs="$rpathdirs $dir" ++ fi ++ dnl Potentially add DIR to ltrpathdirs. ++ dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. ++ haveit= ++ for x in $ltrpathdirs; do ++ if test "X$x" = "X$dir"; then ++ haveit=yes ++ break ++ fi ++ done ++ if test -z "$haveit"; then ++ ltrpathdirs="$ltrpathdirs $dir" ++ fi ++ fi ++ ;; ++ -l*) ++ dnl Handle this in the next round. ++ names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ++ ;; ++ *.la) ++ dnl Handle this in the next round. Throw away the .la's ++ dnl directory; it is already contained in a preceding -L ++ dnl option. ++ names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ++ ;; ++ *) ++ dnl Most likely an immediate library name. ++ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" ++ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" ++ ;; ++ esac ++ done ++ fi ++ else ++ dnl Didn't find the library; assume it is in the system directories ++ dnl known to the linker and runtime loader. (All the system ++ dnl directories known to the linker should also be known to the ++ dnl runtime loader, otherwise the system is severely misconfigured.) ++ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" ++ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" ++ fi ++ fi ++ fi ++ done ++ done ++ if test "X$rpathdirs" != "X"; then ++ if test -n "$hardcode_libdir_separator"; then ++ dnl Weird platform: only the last -rpath option counts, the user must ++ dnl pass all path elements in one option. We can arrange that for a ++ dnl single library, but not when more than one $LIBNAMEs are used. ++ alldirs= ++ for found_dir in $rpathdirs; do ++ alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" ++ done ++ dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl. ++ acl_save_libdir="$libdir" ++ libdir="$alldirs" ++ eval flag=\"$hardcode_libdir_flag_spec\" ++ libdir="$acl_save_libdir" ++ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" ++ else ++ dnl The -rpath options are cumulative. ++ for found_dir in $rpathdirs; do ++ acl_save_libdir="$libdir" ++ libdir="$found_dir" ++ eval flag=\"$hardcode_libdir_flag_spec\" ++ libdir="$acl_save_libdir" ++ LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" ++ done ++ fi ++ fi ++ if test "X$ltrpathdirs" != "X"; then ++ dnl When using libtool, the option that works for both libraries and ++ dnl executables is -R. The -R options are cumulative. ++ for found_dir in $ltrpathdirs; do ++ LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" ++ done ++ fi ++]) ++ ++dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, ++dnl unless already present in VAR. ++dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes ++dnl contains two or three consecutive elements that belong together. ++AC_DEFUN([AC_LIB_APPENDTOVAR], ++[ ++ for element in [$2]; do ++ haveit= ++ for x in $[$1]; do ++ AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) ++ if test "X$x" = "X$element"; then ++ haveit=yes ++ break ++ fi ++ done ++ if test -z "$haveit"; then ++ [$1]="${[$1]}${[$1]:+ }$element" ++ fi ++ done ++]) ++ ++# lib-ld.m4 serial 3 (gettext-0.13) ++dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. ++dnl This file is free software; the Free Software Foundation ++dnl gives unlimited permission to copy and/or distribute it, ++dnl with or without modifications, as long as this notice is preserved. ++ ++dnl Subroutines of libtool.m4, ++dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision ++dnl with libtool.m4. ++ ++dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. ++AC_DEFUN([AC_LIB_PROG_LD_GNU], ++[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, ++[# I'd rather use --version here, but apparently some GNU ld's only accept -v. ++case `$LD -v 2>&1 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 ++ac_prog=ld ++if test "$GCC" = yes; then ++ # Check if gcc -print-prog-name=ld gives a path. ++ AC_MSG_CHECKING([for ld used by GCC]) ++ 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 ++ AC_MSG_CHECKING([for GNU ld]) ++else ++ AC_MSG_CHECKING([for non-GNU ld]) ++fi ++AC_CACHE_VAL(acl_cv_path_LD, ++[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 ++ acl_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. ++ case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in ++ *GNU* | *'with BFD'*) ++ test "$with_gnu_ld" != no && break ;; ++ *) ++ test "$with_gnu_ld" != yes && break ;; ++ esac ++ fi ++ done ++ IFS="$ac_save_ifs" ++else ++ acl_cv_path_LD="$LD" # Let the user override the test with a path. ++fi]) ++LD="$acl_cv_path_LD" ++if test -n "$LD"; then ++ AC_MSG_RESULT($LD) ++else ++ AC_MSG_RESULT(no) ++fi ++test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) ++AC_LIB_PROG_LD_GNU ++]) ++ ++dnl This provides configure definitions used by all the newlib ++dnl configure.in files. ++ ++dnl Basic newlib configury. This calls basic introductory stuff, ++dnl including AM_INIT_AUTOMAKE and AC_CANONICAL_HOST. It also runs ++dnl configure.host. The only argument is the relative path to the top ++dnl newlib directory. ++ ++AC_DEFUN(NEWLIB_CONFIGURE, ++[ ++dnl Default to --enable-multilib ++AC_ARG_ENABLE(multilib, ++[ --enable-multilib build many library versions (default)], ++[case "${enableval}" in ++ yes) multilib=yes ;; ++ no) multilib=no ;; ++ *) AC_MSG_ERROR(bad value ${enableval} for multilib option) ;; ++ esac], [multilib=yes])dnl ++ ++dnl Support --enable-target-optspace ++AC_ARG_ENABLE(target-optspace, ++[ --enable-target-optspace optimize for space], ++[case "${enableval}" in ++ yes) target_optspace=yes ;; ++ no) target_optspace=no ;; ++ *) AC_MSG_ERROR(bad value ${enableval} for target-optspace option) ;; ++ esac], [target_optspace=])dnl ++ ++dnl Support --enable-malloc-debugging - currently only supported for Cygwin ++AC_ARG_ENABLE(malloc-debugging, ++[ --enable-malloc-debugging indicate malloc debugging requested], ++[case "${enableval}" in ++ yes) malloc_debugging=yes ;; ++ no) malloc_debugging=no ;; ++ *) AC_MSG_ERROR(bad value ${enableval} for malloc-debugging option) ;; ++ esac], [malloc_debugging=])dnl ++ ++dnl Support --enable-newlib-multithread ++AC_ARG_ENABLE(newlib-multithread, ++[ --enable-newlib-multithread enable support for multiple threads], ++[case "${enableval}" in ++ yes) newlib_multithread=yes ;; ++ no) newlib_multithread=no ;; ++ *) AC_MSG_ERROR(bad value ${enableval} for newlib-multithread option) ;; ++ esac], [newlib_multithread=yes])dnl ++ ++dnl Support --enable-newlib-iconv ++AC_ARG_ENABLE(newlib-iconv, ++[ --enable-newlib-iconv enable iconv library support], ++[if test "${newlib_iconv+set}" != set; then ++ case "${enableval}" in ++ yes) newlib_iconv=yes ;; ++ no) newlib_iconv=no ;; ++ *) AC_MSG_ERROR(bad value ${enableval} for newlib-iconv option) ;; ++ esac ++ fi], [newlib_iconv=${newlib_iconv}])dnl ++ ++dnl Support --enable-newlib-elix-level ++AC_ARG_ENABLE(newlib-elix-level, ++[ --enable-newlib-elix-level supply desired elix library level (1-4)], ++[case "${enableval}" in ++ 0) newlib_elix_level=0 ;; ++ 1) newlib_elix_level=1 ;; ++ 2) newlib_elix_level=2 ;; ++ 3) newlib_elix_level=3 ;; ++ 4) newlib_elix_level=4 ;; ++ *) AC_MSG_ERROR(bad value ${enableval} for newlib-elix-level option) ;; ++ esac], [newlib_elix_level=0])dnl ++ ++dnl Support --disable-newlib-io-float ++AC_ARG_ENABLE(newlib-io-float, ++[ --disable-newlib-io-float disable printf/scanf family float support], ++[case "${enableval}" in ++ yes) newlib_io_float=yes ;; ++ no) newlib_io_float=no ;; ++ *) AC_MSG_ERROR(bad value ${enableval} for newlib-io-float option) ;; ++ esac], [newlib_io_float=yes])dnl ++ ++dnl Support --disable-newlib-supplied-syscalls ++AC_ARG_ENABLE(newlib-supplied-syscalls, ++[ --disable-newlib-supplied-syscalls disable newlib from supplying syscalls], ++[case "${enableval}" in ++ yes) newlib_may_supply_syscalls=yes ;; ++ no) newlib_may_supply_syscalls=no ;; ++ *) AC_MSG_ERROR(bad value ${enableval} for newlib-supplied-syscalls option) ;; ++ esac], [newlib_may_supply_syscalls=yes])dnl ++ ++AM_CONDITIONAL(MAY_SUPPLY_SYSCALLS, test x[$]{newlib_may_supply_syscalls} = xyes) ++ ++dnl We may get other options which we don't document: ++dnl --with-target-subdir, --with-multisrctop, --with-multisubdir ++ ++test -z "[$]{with_target_subdir}" && with_target_subdir=. ++ ++if test "[$]{srcdir}" = "."; then ++ if test "[$]{with_target_subdir}" != "."; then ++ newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}../$1" ++ else ++ newlib_basedir="[$]{srcdir}/[$]{with_multisrctop}$1" ++ fi ++else ++ newlib_basedir="[$]{srcdir}/$1" ++fi ++AC_SUBST(newlib_basedir) ++ ++AC_CANONICAL_SYSTEM ++ ++AM_INIT_AUTOMAKE(newlib, 1.13.0) ++ ++# FIXME: We temporarily define our own version of AC_PROG_CC. This is ++# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We ++# are probably using a cross compiler, which will not be able to fully ++# link an executable. This should really be fixed in autoconf ++# itself. ++ ++AC_DEFUN(LIB_AC_PROG_CC, ++[AC_BEFORE([$0], [AC_PROG_CPP])dnl ++AC_CHECK_PROG(CC, gcc, gcc) ++if test -z "$CC"; then ++ AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc) ++ test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) ++fi ++ ++AC_PROG_CC_GNU ++ ++if test $ac_cv_prog_gcc = yes; then ++ GCC=yes ++dnl Check whether -g works, even if CFLAGS is set, in case the package ++dnl plays around with CFLAGS (such as to build both debugging and ++dnl normal versions of a library), tasteless as that idea is. ++ ac_test_CFLAGS="${CFLAGS+set}" ++ ac_save_CFLAGS="$CFLAGS" ++ CFLAGS= ++ AC_PROG_CC_G ++ if test "$ac_test_CFLAGS" = set; then ++ CFLAGS="$ac_save_CFLAGS" ++ elif test $ac_cv_prog_cc_g = yes; then ++ CFLAGS="-g -O2" ++ else ++ CFLAGS="-O2" ++ fi ++else ++ GCC= ++ test "${CFLAGS+set}" = set || CFLAGS="-g" ++fi ++]) ++ ++LIB_AC_PROG_CC ++ ++AC_CHECK_TOOL(AS, as) ++AC_CHECK_TOOL(AR, ar) ++AC_CHECK_TOOL(RANLIB, ranlib, :) ++ ++AC_PROG_INSTALL ++ ++AM_MAINTAINER_MODE ++ ++# We need AC_EXEEXT to keep automake happy in cygnus mode. However, ++# at least currently, we never actually build a program, so we never ++# need to use $(EXEEXT). Moreover, the test for EXEEXT normally ++# fails, because we are probably configuring with a cross compiler ++# which can't create executables. So we include AC_EXEEXT to keep ++# automake happy, but we don't execute it, since we don't care about ++# the result. ++if false; then ++ AC_EXEEXT ++fi ++ ++. [$]{newlib_basedir}/configure.host ++ ++newlib_cflags="[$]{newlib_cflags} -fno-builtin" ++ ++NEWLIB_CFLAGS=${newlib_cflags} ++AC_SUBST(NEWLIB_CFLAGS) ++ ++LDFLAGS=${ldflags} ++AC_SUBST(LDFLAGS) ++ ++AM_CONDITIONAL(ELIX_LEVEL_0, test x[$]{newlib_elix_level} = x0) ++AM_CONDITIONAL(ELIX_LEVEL_1, test x[$]{newlib_elix_level} = x1) ++AM_CONDITIONAL(ELIX_LEVEL_2, test x[$]{newlib_elix_level} = x2) ++AM_CONDITIONAL(ELIX_LEVEL_3, test x[$]{newlib_elix_level} = x3) ++AM_CONDITIONAL(ELIX_LEVEL_4, test x[$]{newlib_elix_level} = x4) ++ ++AM_CONDITIONAL(USE_LIBTOOL, test x[$]{use_libtool} = xyes) ++ ++# Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we ++# use oext, which is set in configure.host based on the target platform. ++OBJEXT=${oext} ++ ++AC_SUBST(OBJEXT) ++AC_SUBST(oext) ++AC_SUBST(aext) ++ ++AC_SUBST(libm_machine_dir) ++AC_SUBST(machine_dir) ++AC_SUBST(sys_dir) ++]) ++ ++# Do all the work for Automake. 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. ++ ++# serial 1 ++ ++dnl Usage: ++dnl AM_INIT_AUTOMAKE(package,version, [no-define]) ++ ++AC_DEFUN([AM_INIT_AUTOMAKE], ++[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl ++AC_REQUIRE([AC_PROG_INSTALL]) ++PACKAGE=[$1] ++AC_SUBST(PACKAGE) ++VERSION=[$2] ++AC_SUBST(VERSION) ++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 ++ifelse([$3],, ++AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) ++AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])) ++AC_REQUIRE([AM_SANITY_CHECK]) ++AC_REQUIRE([AC_ARG_PROGRAM]) ++dnl FIXME This is truly gross. ++missing_dir=`cd $ac_aux_dir && pwd` ++AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir) ++AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) ++AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir) ++AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) ++AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) ++AC_REQUIRE([AC_PROG_MAKE_SET])]) ++ ++# Copyright 2002 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, 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., 59 Temple Place - Suite 330, Boston, MA ++ ++# 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.4"]) ++ ++# 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.4-p6])]) ++ ++# ++# Check to make sure that the build environment is sane. ++# ++ ++AC_DEFUN([AM_SANITY_CHECK], ++[AC_MSG_CHECKING([whether build environment is sane]) ++# Just in case ++sleep 1 ++echo timestamp > conftestfile ++# 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 conftestfile 2> /dev/null` ++ if test "[$]*" = "X"; then ++ # -L didn't work. ++ set X `ls -t $srcdir/configure conftestfile` ++ fi ++ if test "[$]*" != "X $srcdir/configure conftestfile" \ ++ && test "[$]*" != "X conftestfile $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" = conftestfile ++ ) ++then ++ # Ok. ++ : ++else ++ AC_MSG_ERROR([newly created file is older than distributed files! ++Check your system clock]) ++fi ++rm -f conftest* ++AC_MSG_RESULT(yes)]) ++ ++dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) ++dnl The program must properly implement --version. ++AC_DEFUN([AM_MISSING_PROG], ++[AC_MSG_CHECKING(for working $2) ++# Run test in a subshell; some versions of sh will print an error if ++# an executable is not found, even if stderr is redirected. ++# Redirect stdin to placate older versions of autoconf. Sigh. ++if ($2 --version) < /dev/null > /dev/null 2>&1; then ++ $1=$2 ++ AC_MSG_RESULT(found) ++else ++ $1="$3/missing $2" ++ AC_MSG_RESULT(missing) ++fi ++AC_SUBST($1)]) ++ ++# Define a conditional. ++ ++AC_DEFUN([AM_CONDITIONAL], ++[AC_SUBST($1_TRUE) ++AC_SUBST($1_FALSE) ++if $2; then ++ $1_TRUE= ++ $1_FALSE='#' ++else ++ $1_TRUE='#' ++ $1_FALSE= ++fi]) ++ ++# Add --enable-maintainer-mode option to configure. ++# From Jim Meyering ++ ++# serial 1 ++ ++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 ++] ++) ++ +diff -NBaur newlib-1.13.0/newlib/libc/sys/psp/configure newlib-1.13.0-psp/newlib/libc/sys/psp/configure +--- newlib-1.13.0/newlib/libc/sys/psp/configure Thu Jan 1 00:00:00 1970 ++++ newlib-1.13.0-psp/newlib/libc/sys/psp/configure Mon Jul 25 23:53:49 2005 +@@ -0,0 +1,1880 @@ ++#! /bin/sh ++ ++# Guess values for system-dependent variables and create Makefiles. ++# Generated automatically using autoconf version 2.13 ++# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. ++# ++# This configure script is free software; the Free Software Foundation ++# gives unlimited permission to copy, distribute and modify it. ++ ++# Defaults: ++ac_help= ++ac_default_prefix=/usr/local ++# Any additions from configure.in: ++ac_help="$ac_help ++ --enable-multilib build many library versions (default)" ++ac_help="$ac_help ++ --enable-target-optspace optimize for space" ++ac_help="$ac_help ++ --enable-malloc-debugging indicate malloc debugging requested" ++ac_help="$ac_help ++ --enable-newlib-multithread enable support for multiple threads" ++ac_help="$ac_help ++ --enable-newlib-iconv enable iconv library support" ++ac_help="$ac_help ++ --enable-newlib-elix-level supply desired elix library level (1-4)" ++ac_help="$ac_help ++ --disable-newlib-io-float disable printf/scanf family float support" ++ac_help="$ac_help ++ --disable-newlib-supplied-syscalls disable newlib from supplying syscalls" ++ac_help="$ac_help ++ --enable-maintainer-mode enable make rules and dependencies not useful ++ (and sometimes confusing) to the casual installer" ++ ++# Initialize some variables set by options. ++# The variables have the same names as the options, with ++# dashes changed to underlines. ++build=NONE ++cache_file=./config.cache ++exec_prefix=NONE ++host=NONE ++no_create= ++nonopt=NONE ++no_recursion= ++prefix=NONE ++program_prefix=NONE ++program_suffix=NONE ++program_transform_name=s,x,x, ++silent= ++site= ++srcdir= ++target=NONE ++verbose= ++x_includes=NONE ++x_libraries=NONE ++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' ++ ++# Initialize some other variables. ++subdirs= ++MFLAGS= MAKEFLAGS= ++SHELL=${CONFIG_SHELL-/bin/sh} ++# Maximum number of lines to put in a shell here document. ++ac_max_here_lines=12 ++ ++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 ++ ++ case "$ac_option" in ++ -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; ++ *) ac_optarg= ;; ++ esac ++ ++ # 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 ;; ++ -build=* | --build=* | --buil=* | --bui=* | --bu=*) ++ build="$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" ;; ++ ++ -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ++ ac_prev=datadir ;; ++ -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ ++ | --da=*) ++ datadir="$ac_optarg" ;; ++ ++ -disable-* | --disable-*) ++ ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` ++ # Reject names that are not valid shell variable names. ++ if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then ++ { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } ++ fi ++ ac_feature=`echo $ac_feature| sed 's/-/_/g'` ++ eval "enable_${ac_feature}=no" ;; ++ ++ -enable-* | --enable-*) ++ ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` ++ # Reject names that are not valid shell variable names. ++ if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then ++ { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } ++ fi ++ ac_feature=`echo $ac_feature| sed 's/-/_/g'` ++ case "$ac_option" in ++ *=*) ;; ++ *) 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) ++ # 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 << EOF ++Usage: configure [options] [host] ++Options: [defaults in brackets after descriptions] ++Configuration: ++ --cache-file=FILE cache test results in FILE ++ --help print this message ++ --no-create do not create output files ++ --quiet, --silent do not print \`checking...' messages ++ --version print the version of autoconf that created configure ++Directory and file names: ++ --prefix=PREFIX install architecture-independent files in PREFIX ++ [$ac_default_prefix] ++ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX ++ [same as prefix] ++ --bindir=DIR user executables in DIR [EPREFIX/bin] ++ --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] ++ --libexecdir=DIR program executables in DIR [EPREFIX/libexec] ++ --datadir=DIR read-only architecture-independent data in DIR ++ [PREFIX/share] ++ --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] ++ --sharedstatedir=DIR modifiable architecture-independent data in DIR ++ [PREFIX/com] ++ --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] ++ --libdir=DIR object code libraries in DIR [EPREFIX/lib] ++ --includedir=DIR C header files in DIR [PREFIX/include] ++ --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] ++ --infodir=DIR info documentation in DIR [PREFIX/info] ++ --mandir=DIR man documentation in DIR [PREFIX/man] ++ --srcdir=DIR find the sources in DIR [configure dir or ..] ++ --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 ++EOF ++ cat << EOF ++Host type: ++ --build=BUILD configure for building on BUILD [BUILD=HOST] ++ --host=HOST configure for HOST [guessed] ++ --target=TARGET configure for TARGET [TARGET=HOST] ++Features and packages: ++ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) ++ --enable-FEATURE[=ARG] include FEATURE [ARG=yes] ++ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] ++ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) ++ --x-includes=DIR X include files are in DIR ++ --x-libraries=DIR X library files are in DIR ++EOF ++ if test -n "$ac_help"; then ++ echo "--enable and --with options recognized:$ac_help" ++ fi ++ exit 0 ;; ++ ++ -host | --host | --hos | --ho) ++ ac_prev=host ;; ++ -host=* | --host=* | --hos=* | --ho=*) ++ host="$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) ++ 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 ;; ++ -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) ++ target="$ac_optarg" ;; ++ ++ -v | -verbose | --verbose | --verbos | --verbo | --verb) ++ verbose=yes ;; ++ ++ -version | --version | --versio | --versi | --vers) ++ echo "configure generated by autoconf version 2.13" ++ exit 0 ;; ++ ++ -with-* | --with-*) ++ ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` ++ # Reject names that are not valid shell variable names. ++ if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then ++ { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } ++ fi ++ ac_package=`echo $ac_package| sed 's/-/_/g'` ++ case "$ac_option" in ++ *=*) ;; ++ *) ac_optarg=yes ;; ++ esac ++ eval "with_${ac_package}='$ac_optarg'" ;; ++ ++ -without-* | --without-*) ++ ac_package=`echo $ac_option|sed -e 's/-*without-//'` ++ # Reject names that are not valid shell variable names. ++ if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then ++ { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } ++ fi ++ 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 "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } ++ ;; ++ ++ *) ++ if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then ++ echo "configure: warning: $ac_option: invalid host type" 1>&2 ++ fi ++ if test "x$nonopt" != xNONE; then ++ { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ++ fi ++ nonopt="$ac_option" ++ ;; ++ ++ esac ++done ++ ++if test -n "$ac_prev"; then ++ { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } ++fi ++ ++trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 ++ ++# File descriptor usage: ++# 0 standard input ++# 1 file creation ++# 2 errors and warnings ++# 3 some systems may open it to /dev/tty ++# 4 used on the Kubota Titan ++# 6 checking for... messages and results ++# 5 compiler messages saved in config.log ++if test "$silent" = yes; then ++ exec 6>/dev/null ++else ++ exec 6>&1 ++fi ++exec 5>./config.log ++ ++echo "\ ++This file contains any messages produced by compilers while ++running configure, to aid debugging if configure makes a mistake. ++" 1>&5 ++ ++# Strip out --no-create and --no-recursion so they do not pile up. ++# Also quote any args containing shell metacharacters. ++ac_configure_args= ++for ac_arg ++do ++ case "$ac_arg" in ++ -no-create | --no-create | --no-creat | --no-crea | --no-cre \ ++ | --no-cr | --no-c) ;; ++ -no-recursion | --no-recursion | --no-recursio | --no-recursi \ ++ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; ++ *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) ++ ac_configure_args="$ac_configure_args '$ac_arg'" ;; ++ *) ac_configure_args="$ac_configure_args $ac_arg" ;; ++ esac ++done ++ ++# NLS nuisances. ++# Only set these to C if already set. These must not be set unconditionally ++# because not all systems understand e.g. LANG=C (notably SCO). ++# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! ++# Non-C LC_CTYPE values break the ctype check. ++if test "${LANG+set}" = set; then LANG=C; export LANG; fi ++if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi ++if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi ++if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi ++ ++# 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 ++ ++# A filename unique to this package, relative to the directory that ++# configure is in, which we can look for to find out if srcdir is correct. ++ac_unique_file=libcglue.c ++ ++# 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_prog=$0 ++ ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` ++ test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. ++ 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 "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } ++ else ++ { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } ++ fi ++fi ++srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` ++ ++# 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 "loading site script $ac_site_file" ++ . "$ac_site_file" ++ fi ++done ++ ++if test -r "$cache_file"; then ++ echo "loading cache $cache_file" ++ . $cache_file ++else ++ echo "creating cache $cache_file" ++ > $cache_file ++fi ++ ++ac_ext=c ++# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ++ac_cpp='$CPP $CPPFLAGS' ++ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ++ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' ++cross_compiling=$ac_cv_prog_cc_cross ++ ++ac_exeext= ++ac_objext=o ++if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then ++ # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. ++ if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then ++ ac_n= ac_c=' ++' ac_t=' ' ++ else ++ ac_n=-n ac_c= ac_t= ++ fi ++else ++ ac_n= ac_c='\c' ac_t= ++fi ++ ++ ++ ++ac_aux_dir= ++for ac_dir in ../../../.. $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 ++ fi ++done ++if test -z "$ac_aux_dir"; then ++ { echo "configure: error: can not find install-sh or install.sh in ../../../.. $srcdir/../../../.." 1>&2; exit 1; } ++fi ++ac_config_guess=$ac_aux_dir/config.guess ++ac_config_sub=$ac_aux_dir/config.sub ++ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. ++ ++ ++am__api_version="1.4" ++# 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 ++# 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" ++# ./install, which can be erroneously created by make from ./install.sh. ++echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 ++echo "configure:578: checking for a BSD compatible install" >&5 ++if test -z "$INSTALL"; then ++if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" ++ for ac_dir in $PATH; do ++ # Account for people who put trailing slashes in PATH elements. ++ case "$ac_dir/" in ++ /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/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 ++ if test -f $ac_dir/$ac_prog; then ++ if test $ac_prog = install && ++ grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then ++ # AIX install. It has an incompatible calling convention. ++ : ++ else ++ ac_cv_path_install="$ac_dir/$ac_prog -c" ++ break 2 ++ fi ++ fi ++ done ++ ;; ++ esac ++ done ++ IFS="$ac_save_IFS" ++ ++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 "$ac_t""$INSTALL" 1>&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_PROGRAM}' ++ ++test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' ++ ++echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 ++echo "configure:631: checking whether build environment is sane" >&5 ++# Just in case ++sleep 1 ++echo timestamp > conftestfile ++# 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 conftestfile 2> /dev/null` ++ if test "$*" = "X"; then ++ # -L didn't work. ++ set X `ls -t $srcdir/configure conftestfile` ++ fi ++ if test "$*" != "X $srcdir/configure conftestfile" \ ++ && test "$*" != "X conftestfile $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 "configure: error: ls -t appears to fail. Make sure there is not a broken ++alias in your environment" 1>&2; exit 1; } ++ fi ++ ++ test "$2" = conftestfile ++ ) ++then ++ # Ok. ++ : ++else ++ { echo "configure: error: newly created file is older than distributed files! ++Check your system clock" 1>&2; exit 1; } ++fi ++rm -f conftest* ++echo "$ac_t""yes" 1>&6 ++if test "$program_transform_name" = s,x,x,; then ++ program_transform_name= ++else ++ # Double any \ or $. echo might interpret backslashes. ++ cat <<\EOF_SED > conftestsed ++s,\\,\\\\,g; s,\$,$$,g ++EOF_SED ++ program_transform_name="`echo $program_transform_name|sed -f conftestsed`" ++ rm -f conftestsed ++fi ++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" ++ ++# sed with no file args requires a program. ++test "$program_transform_name" = "" && program_transform_name="s,x,x," ++ ++echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 ++echo "configure:688: checking whether ${MAKE-make} sets \${MAKE}" >&5 ++set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` ++if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ cat > conftestmake <<\EOF ++all: ++ @echo 'ac_maketemp="${MAKE}"' ++EOF ++# GNU make sometimes prints "make[1]: Entering...", which would confuse us. ++eval `${MAKE-make} -f conftestmake 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 conftestmake ++fi ++if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then ++ echo "$ac_t""yes" 1>&6 ++ SET_MAKE= ++else ++ echo "$ac_t""no" 1>&6 ++ SET_MAKE="MAKE=${MAKE-make}" ++fi ++ ++if test $host != $build; then ++ ac_tool_prefix=${host_alias}- ++else ++ ac_tool_prefix= ++fi ++ ++echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 ++echo "configure:721: checking for Cygwin environment" >&5 ++if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then ++ rm -rf conftest* ++ ac_cv_cygwin=yes ++else ++ echo "configure: failed program was:" >&5 ++ cat conftest.$ac_ext >&5 ++ rm -rf conftest* ++ ac_cv_cygwin=no ++fi ++rm -f conftest* ++rm -f conftest* ++fi ++ ++echo "$ac_t""$ac_cv_cygwin" 1>&6 ++CYGWIN= ++test "$ac_cv_cygwin" = yes && CYGWIN=yes ++echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 ++echo "configure:754: checking for mingw32 environment" >&5 ++if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then ++ rm -rf conftest* ++ ac_cv_mingw32=yes ++else ++ echo "configure: failed program was:" >&5 ++ cat conftest.$ac_ext >&5 ++ rm -rf conftest* ++ ac_cv_mingw32=no ++fi ++rm -f conftest* ++rm -f conftest* ++fi ++ ++echo "$ac_t""$ac_cv_mingw32" 1>&6 ++MINGW32= ++test "$ac_cv_mingw32" = yes && MINGW32=yes ++ ++# 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 "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;; ++ esac ++else ++ multilib=yes ++fi ++ ++# Check whether --enable-target-optspace or --disable-target-optspace was given. ++if test "${enable_target_optspace+set}" = set; then ++ enableval="$enable_target_optspace" ++ case "${enableval}" in ++ yes) target_optspace=yes ;; ++ no) target_optspace=no ;; ++ *) { echo "configure: error: bad value ${enableval} for target-optspace option" 1>&2; exit 1; } ;; ++ esac ++else ++ target_optspace= ++fi ++ ++# Check whether --enable-malloc-debugging or --disable-malloc-debugging was given. ++if test "${enable_malloc_debugging+set}" = set; then ++ enableval="$enable_malloc_debugging" ++ case "${enableval}" in ++ yes) malloc_debugging=yes ;; ++ no) malloc_debugging=no ;; ++ *) { echo "configure: error: bad value ${enableval} for malloc-debugging option" 1>&2; exit 1; } ;; ++ esac ++else ++ malloc_debugging= ++fi ++ ++# Check whether --enable-newlib-multithread or --disable-newlib-multithread was given. ++if test "${enable_newlib_multithread+set}" = set; then ++ enableval="$enable_newlib_multithread" ++ case "${enableval}" in ++ yes) newlib_multithread=yes ;; ++ no) newlib_multithread=no ;; ++ *) { echo "configure: error: bad value ${enableval} for newlib-multithread option" 1>&2; exit 1; } ;; ++ esac ++else ++ newlib_multithread=yes ++fi ++ ++# Check whether --enable-newlib-iconv or --disable-newlib-iconv was given. ++if test "${enable_newlib_iconv+set}" = set; then ++ enableval="$enable_newlib_iconv" ++ if test "${newlib_iconv+set}" != set; then ++ case "${enableval}" in ++ yes) newlib_iconv=yes ;; ++ no) newlib_iconv=no ;; ++ *) { echo "configure: error: bad value ${enableval} for newlib-iconv option" 1>&2; exit 1; } ;; ++ esac ++ fi ++else ++ newlib_iconv=${newlib_iconv} ++fi ++ ++# Check whether --enable-newlib-elix-level or --disable-newlib-elix-level was given. ++if test "${enable_newlib_elix_level+set}" = set; then ++ enableval="$enable_newlib_elix_level" ++ case "${enableval}" in ++ 0) newlib_elix_level=0 ;; ++ 1) newlib_elix_level=1 ;; ++ 2) newlib_elix_level=2 ;; ++ 3) newlib_elix_level=3 ;; ++ 4) newlib_elix_level=4 ;; ++ *) { echo "configure: error: bad value ${enableval} for newlib-elix-level option" 1>&2; exit 1; } ;; ++ esac ++else ++ newlib_elix_level=0 ++fi ++ ++# Check whether --enable-newlib-io-float or --disable-newlib-io-float was given. ++if test "${enable_newlib_io_float+set}" = set; then ++ enableval="$enable_newlib_io_float" ++ case "${enableval}" in ++ yes) newlib_io_float=yes ;; ++ no) newlib_io_float=no ;; ++ *) { echo "configure: error: bad value ${enableval} for newlib-io-float option" 1>&2; exit 1; } ;; ++ esac ++else ++ newlib_io_float=yes ++fi ++ ++# Check whether --enable-newlib-supplied-syscalls or --disable-newlib-supplied-syscalls was given. ++if test "${enable_newlib_supplied_syscalls+set}" = set; then ++ enableval="$enable_newlib_supplied_syscalls" ++ case "${enableval}" in ++ yes) newlib_may_supply_syscalls=yes ;; ++ no) newlib_may_supply_syscalls=no ;; ++ *) { echo "configure: error: bad value ${enableval} for newlib-supplied-syscalls option" 1>&2; exit 1; } ;; ++ esac ++else ++ newlib_may_supply_syscalls=yes ++fi ++ ++ ++ ++if test x${newlib_may_supply_syscalls} = xyes; then ++ MAY_SUPPLY_SYSCALLS_TRUE= ++ MAY_SUPPLY_SYSCALLS_FALSE='#' ++else ++ MAY_SUPPLY_SYSCALLS_TRUE='#' ++ MAY_SUPPLY_SYSCALLS_FALSE= ++fi ++ ++ ++test -z "${with_target_subdir}" && with_target_subdir=. ++ ++if test "${srcdir}" = "."; then ++ if test "${with_target_subdir}" != "."; then ++ newlib_basedir="${srcdir}/${with_multisrctop}../../../.." ++ else ++ newlib_basedir="${srcdir}/${with_multisrctop}../../.." ++ fi ++else ++ newlib_basedir="${srcdir}/../../.." ++fi ++ ++ ++ ++# Do some error checking and defaulting for the host and target type. ++# The inputs are: ++# configure --host=HOST --target=TARGET --build=BUILD NONOPT ++# ++# The rules are: ++# 1. You are not allowed to specify --host, --target, and nonopt at the ++# same time. ++# 2. Host defaults to nonopt. ++# 3. If nonopt is not specified, then host defaults to the current host, ++# as determined by config.guess. ++# 4. Target and build default to nonopt. ++# 5. If nonopt is not specified, then target and build default to host. ++ ++# The aliases save the names the user supplied, while $host etc. ++# will get canonicalized. ++case $host---$target---$nonopt in ++NONE---*---* | *---NONE---* | *---*---NONE) ;; ++*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; ++esac ++ ++ ++# Make sure we can run config.sub. ++if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : ++else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } ++fi ++ ++echo $ac_n "checking host system type""... $ac_c" 1>&6 ++echo "configure:936: checking host system type" >&5 ++ ++host_alias=$host ++case "$host_alias" in ++NONE) ++ case $nonopt in ++ NONE) ++ if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : ++ else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } ++ fi ;; ++ *) host_alias=$nonopt ;; ++ esac ;; ++esac ++ ++host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` ++host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` ++host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` ++host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` ++echo "$ac_t""$host" 1>&6 ++ ++echo $ac_n "checking target system type""... $ac_c" 1>&6 ++echo "configure:957: checking target system type" >&5 ++ ++target_alias=$target ++case "$target_alias" in ++NONE) ++ case $nonopt in ++ NONE) target_alias=$host_alias ;; ++ *) target_alias=$nonopt ;; ++ esac ;; ++esac ++ ++target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` ++target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` ++target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` ++target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` ++echo "$ac_t""$target" 1>&6 ++ ++echo $ac_n "checking build system type""... $ac_c" 1>&6 ++echo "configure:975: checking build system type" >&5 ++ ++build_alias=$build ++case "$build_alias" in ++NONE) ++ case $nonopt in ++ NONE) build_alias=$host_alias ;; ++ *) build_alias=$nonopt ;; ++ esac ;; ++esac ++ ++build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` ++build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` ++build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` ++build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` ++echo "$ac_t""$build" 1>&6 ++ ++test "$host_alias" != "$target_alias" && ++ test "$program_prefix$program_suffix$program_transform_name" = \ ++ NONENONEs,x,x, && ++ program_prefix=${target_alias}- ++ ++ ++ ++PACKAGE=newlib ++ ++VERSION=1.13.0 ++ ++if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then ++ { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } ++fi ++cat >> confdefs.h <> confdefs.h <&6 ++echo "configure:1018: checking for working aclocal-${am__api_version}" >&5 ++# Run test in a subshell; some versions of sh will print an error if ++# an executable is not found, even if stderr is redirected. ++# Redirect stdin to placate older versions of autoconf. Sigh. ++if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then ++ ACLOCAL=aclocal-${am__api_version} ++ echo "$ac_t""found" 1>&6 ++else ++ ACLOCAL="$missing_dir/missing aclocal-${am__api_version}" ++ echo "$ac_t""missing" 1>&6 ++fi ++ ++echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 ++echo "configure:1031: checking for working autoconf" >&5 ++# Run test in a subshell; some versions of sh will print an error if ++# an executable is not found, even if stderr is redirected. ++# Redirect stdin to placate older versions of autoconf. Sigh. ++if (autoconf --version) < /dev/null > /dev/null 2>&1; then ++ AUTOCONF=autoconf ++ echo "$ac_t""found" 1>&6 ++else ++ AUTOCONF="$missing_dir/missing autoconf" ++ echo "$ac_t""missing" 1>&6 ++fi ++ ++echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6 ++echo "configure:1044: checking for working automake-${am__api_version}" >&5 ++# Run test in a subshell; some versions of sh will print an error if ++# an executable is not found, even if stderr is redirected. ++# Redirect stdin to placate older versions of autoconf. Sigh. ++if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then ++ AUTOMAKE=automake-${am__api_version} ++ echo "$ac_t""found" 1>&6 ++else ++ AUTOMAKE="$missing_dir/missing automake-${am__api_version}" ++ echo "$ac_t""missing" 1>&6 ++fi ++ ++echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 ++echo "configure:1057: checking for working autoheader" >&5 ++# Run test in a subshell; some versions of sh will print an error if ++# an executable is not found, even if stderr is redirected. ++# Redirect stdin to placate older versions of autoconf. Sigh. ++if (autoheader --version) < /dev/null > /dev/null 2>&1; then ++ AUTOHEADER=autoheader ++ echo "$ac_t""found" 1>&6 ++else ++ AUTOHEADER="$missing_dir/missing autoheader" ++ echo "$ac_t""missing" 1>&6 ++fi ++ ++echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 ++echo "configure:1070: checking for working makeinfo" >&5 ++# Run test in a subshell; some versions of sh will print an error if ++# an executable is not found, even if stderr is redirected. ++# Redirect stdin to placate older versions of autoconf. Sigh. ++if (makeinfo --version) < /dev/null > /dev/null 2>&1; then ++ MAKEINFO=makeinfo ++ echo "$ac_t""found" 1>&6 ++else ++ MAKEINFO="$missing_dir/missing makeinfo" ++ echo "$ac_t""missing" 1>&6 ++fi ++ ++ ++ ++# FIXME: We temporarily define our own version of AC_PROG_CC. This is ++# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We ++# are probably using a cross compiler, which will not be able to fully ++# link an executable. This should really be fixed in autoconf ++# itself. ++ ++ ++ ++# Extract the first word of "gcc", so it can be a program name with args. ++set dummy gcc; ac_word=$2 ++echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ++echo "configure:1095: checking for $ac_word" >&5 ++if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ if test -n "$CC"; then ++ ac_cv_prog_CC="$CC" # Let the user override the test. ++else ++ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ++ ac_dummy="$PATH" ++ for ac_dir in $ac_dummy; do ++ test -z "$ac_dir" && ac_dir=. ++ if test -f $ac_dir/$ac_word; then ++ ac_cv_prog_CC="gcc" ++ break ++ fi ++ done ++ IFS="$ac_save_ifs" ++fi ++fi ++CC="$ac_cv_prog_CC" ++if test -n "$CC"; then ++ echo "$ac_t""$CC" 1>&6 ++else ++ echo "$ac_t""no" 1>&6 ++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 $ac_n "checking for $ac_word""... $ac_c" 1>&6 ++echo "configure:1125: checking for $ac_word" >&5 ++if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ if test -n "$CC"; then ++ ac_cv_prog_CC="$CC" # Let the user override the test. ++else ++ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ++ ac_prog_rejected=no ++ ac_dummy="$PATH" ++ for ac_dir in $ac_dummy; do ++ test -z "$ac_dir" && ac_dir=. ++ if test -f $ac_dir/$ac_word; then ++ if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then ++ ac_prog_rejected=yes ++ continue ++ fi ++ ac_cv_prog_CC="cc" ++ break ++ fi ++ done ++ IFS="$ac_save_ifs" ++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 $# -gt 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 ++ set dummy "$ac_dir/$ac_word" "$@" ++ shift ++ ac_cv_prog_CC="$@" ++ fi ++fi ++fi ++fi ++CC="$ac_cv_prog_CC" ++if test -n "$CC"; then ++ echo "$ac_t""$CC" 1>&6 ++else ++ echo "$ac_t""no" 1>&6 ++fi ++ ++ test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } ++fi ++ ++echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 ++echo "configure:1174: checking whether we are using GNU C" >&5 ++if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ++ ac_cv_prog_gcc=yes ++else ++ ac_cv_prog_gcc=no ++fi ++fi ++ ++echo "$ac_t""$ac_cv_prog_gcc" 1>&6 ++ ++if test $ac_cv_prog_gcc = yes; then ++ GCC=yes ++ ac_test_CFLAGS="${CFLAGS+set}" ++ ac_save_CFLAGS="$CFLAGS" ++ CFLAGS= ++ echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 ++echo "configure:1198: checking whether ${CC-cc} accepts -g" >&5 ++if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ echo 'void f(){}' > conftest.c ++if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then ++ ac_cv_prog_cc_g=yes ++else ++ ac_cv_prog_cc_g=no ++fi ++rm -f conftest* ++ ++fi ++ ++echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 ++ if test "$ac_test_CFLAGS" = set; then ++ CFLAGS="$ac_save_CFLAGS" ++ elif test $ac_cv_prog_cc_g = yes; then ++ CFLAGS="-g -O2" ++ else ++ CFLAGS="-O2" ++ fi ++else ++ GCC= ++ test "${CFLAGS+set}" = set || CFLAGS="-g" ++fi ++ ++ ++# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. ++set dummy ${ac_tool_prefix}as; ac_word=$2 ++echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ++echo "configure:1229: checking for $ac_word" >&5 ++if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ if test -n "$AS"; then ++ ac_cv_prog_AS="$AS" # Let the user override the test. ++else ++ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ++ ac_dummy="$PATH" ++ for ac_dir in $ac_dummy; do ++ test -z "$ac_dir" && ac_dir=. ++ if test -f $ac_dir/$ac_word; then ++ ac_cv_prog_AS="${ac_tool_prefix}as" ++ break ++ fi ++ done ++ IFS="$ac_save_ifs" ++ test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="as" ++fi ++fi ++AS="$ac_cv_prog_AS" ++if test -n "$AS"; then ++ echo "$ac_t""$AS" 1>&6 ++else ++ echo "$ac_t""no" 1>&6 ++fi ++ ++ ++ ++# 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 $ac_n "checking for $ac_word""... $ac_c" 1>&6 ++echo "configure:1261: checking for $ac_word" >&5 ++if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ if test -n "$AR"; then ++ ac_cv_prog_AR="$AR" # Let the user override the test. ++else ++ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ++ ac_dummy="$PATH" ++ for ac_dir in $ac_dummy; do ++ test -z "$ac_dir" && ac_dir=. ++ if test -f $ac_dir/$ac_word; then ++ ac_cv_prog_AR="${ac_tool_prefix}ar" ++ break ++ fi ++ done ++ IFS="$ac_save_ifs" ++ test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" ++fi ++fi ++AR="$ac_cv_prog_AR" ++if test -n "$AR"; then ++ echo "$ac_t""$AR" 1>&6 ++else ++ echo "$ac_t""no" 1>&6 ++fi ++ ++ ++ ++# 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 $ac_n "checking for $ac_word""... $ac_c" 1>&6 ++echo "configure:1293: checking for $ac_word" >&5 ++if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ if test -n "$RANLIB"; then ++ ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. ++else ++ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ++ ac_dummy="$PATH" ++ for ac_dir in $ac_dummy; do ++ test -z "$ac_dir" && ac_dir=. ++ if test -f $ac_dir/$ac_word; then ++ ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" ++ break ++ fi ++ done ++ IFS="$ac_save_ifs" ++fi ++fi ++RANLIB="$ac_cv_prog_RANLIB" ++if test -n "$RANLIB"; then ++ echo "$ac_t""$RANLIB" 1>&6 ++else ++ echo "$ac_t""no" 1>&6 ++fi ++ ++ ++if test -z "$ac_cv_prog_RANLIB"; then ++if test -n "$ac_tool_prefix"; then ++ # Extract the first word of "ranlib", so it can be a program name with args. ++set dummy ranlib; ac_word=$2 ++echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 ++echo "configure:1325: checking for $ac_word" >&5 ++if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ if test -n "$RANLIB"; then ++ ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. ++else ++ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ++ ac_dummy="$PATH" ++ for ac_dir in $ac_dummy; do ++ test -z "$ac_dir" && ac_dir=. ++ if test -f $ac_dir/$ac_word; then ++ ac_cv_prog_RANLIB="ranlib" ++ break ++ fi ++ done ++ IFS="$ac_save_ifs" ++ test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" ++fi ++fi ++RANLIB="$ac_cv_prog_RANLIB" ++if test -n "$RANLIB"; then ++ echo "$ac_t""$RANLIB" 1>&6 ++else ++ echo "$ac_t""no" 1>&6 ++fi ++ ++else ++ RANLIB=":" ++fi ++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 ++# 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" ++# ./install, which can be erroneously created by make from ./install.sh. ++echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 ++echo "configure:1370: checking for a BSD compatible install" >&5 ++if test -z "$INSTALL"; then ++if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" ++ for ac_dir in $PATH; do ++ # Account for people who put trailing slashes in PATH elements. ++ case "$ac_dir/" in ++ /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/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 ++ if test -f $ac_dir/$ac_prog; then ++ if test $ac_prog = install && ++ grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then ++ # AIX install. It has an incompatible calling convention. ++ : ++ else ++ ac_cv_path_install="$ac_dir/$ac_prog -c" ++ break 2 ++ fi ++ fi ++ done ++ ;; ++ esac ++ done ++ IFS="$ac_save_IFS" ++ ++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 "$ac_t""$INSTALL" 1>&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_PROGRAM}' ++ ++test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' ++ ++ ++echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 ++echo "configure:1424: checking whether to enable maintainer-specific portions of Makefiles" >&5 ++ # 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 "$ac_t""$USE_MAINTAINER_MODE" 1>&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 AC_EXEEXT to keep automake happy in cygnus mode. However, ++# at least currently, we never actually build a program, so we never ++# need to use $(EXEEXT). Moreover, the test for EXEEXT normally ++# fails, because we are probably configuring with a cross compiler ++# which can't create executables. So we include AC_EXEEXT to keep ++# automake happy, but we don't execute it, since we don't care about ++# the result. ++if false; then ++ ++ ++echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 ++echo "configure:1458: checking for executable suffix" >&5 ++if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ if test "$CYGWIN" = yes || test "$MINGW32" = yes; then ++ ac_cv_exeext=.exe ++else ++ rm -f conftest* ++ echo 'int main () { return 0; }' > conftest.$ac_ext ++ ac_cv_exeext= ++ if { (eval echo configure:1468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then ++ for file in conftest.*; do ++ case $file in ++ *.c | *.o | *.obj) ;; ++ *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; ++ esac ++ done ++ else ++ { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } ++ fi ++ rm -f conftest* ++ test x"${ac_cv_exeext}" = x && ac_cv_exeext=no ++fi ++fi ++ ++EXEEXT="" ++test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} ++echo "$ac_t""${ac_cv_exeext}" 1>&6 ++ac_exeext=$EXEEXT ++ ++fi ++ ++. ${newlib_basedir}/configure.host ++ ++newlib_cflags="${newlib_cflags} -fno-builtin" ++ ++NEWLIB_CFLAGS=${newlib_cflags} ++ ++ ++LDFLAGS=${ldflags} ++ ++ ++ ++ ++if test x${newlib_elix_level} = x0; then ++ ELIX_LEVEL_0_TRUE= ++ ELIX_LEVEL_0_FALSE='#' ++else ++ ELIX_LEVEL_0_TRUE='#' ++ ELIX_LEVEL_0_FALSE= ++fi ++ ++ ++if test x${newlib_elix_level} = x1; then ++ ELIX_LEVEL_1_TRUE= ++ ELIX_LEVEL_1_FALSE='#' ++else ++ ELIX_LEVEL_1_TRUE='#' ++ ELIX_LEVEL_1_FALSE= ++fi ++ ++ ++if test x${newlib_elix_level} = x2; then ++ ELIX_LEVEL_2_TRUE= ++ ELIX_LEVEL_2_FALSE='#' ++else ++ ELIX_LEVEL_2_TRUE='#' ++ ELIX_LEVEL_2_FALSE= ++fi ++ ++ ++if test x${newlib_elix_level} = x3; then ++ ELIX_LEVEL_3_TRUE= ++ ELIX_LEVEL_3_FALSE='#' ++else ++ ELIX_LEVEL_3_TRUE='#' ++ ELIX_LEVEL_3_FALSE= ++fi ++ ++ ++if test x${newlib_elix_level} = x4; then ++ ELIX_LEVEL_4_TRUE= ++ ELIX_LEVEL_4_FALSE='#' ++else ++ ELIX_LEVEL_4_TRUE='#' ++ ELIX_LEVEL_4_FALSE= ++fi ++ ++ ++ ++if test x${use_libtool} = xyes; then ++ USE_LIBTOOL_TRUE= ++ USE_LIBTOOL_FALSE='#' ++else ++ USE_LIBTOOL_TRUE='#' ++ USE_LIBTOOL_FALSE= ++fi ++ ++# Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we ++# use oext, which is set in configure.host based on the target platform. ++OBJEXT=${oext} ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++trap '' 1 2 15 ++cat > confcache <<\EOF ++# 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. It is not useful on other systems. ++# If it contains results you don't want to keep, you may remove or edit it. ++# ++# By default, configure uses ./config.cache as the cache file, ++# creating it if it does not exist already. You can give configure ++# the --cache-file=FILE option to use a different cache file; that is ++# what configure does when it calls configure scripts in ++# subdirectories, so they share the cache. ++# Giving --cache-file=/dev/null disables caching, for debugging configure. ++# config.status only pays attention to the cache file if you give it the ++# --recheck option to rerun configure. ++# ++EOF ++# 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 \ ++ -e "s/'/'\\\\''/g" \ ++ -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" ++ ;; ++ *) ++ # `set' quotes correctly as required by POSIX, so do not add quotes. ++ sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' ++ ;; ++ esac >> confcache ++if cmp -s $cache_file confcache; then ++ : ++else ++ if test -w $cache_file; then ++ echo "updating cache $cache_file" ++ cat confcache > $cache_file ++ else ++ echo "not updating unwritable cache $cache_file" ++ fi ++fi ++rm -f confcache ++ ++trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 ++ ++test "x$prefix" = xNONE && prefix=$ac_default_prefix ++# Let make expand exec_prefix. ++test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' ++ ++# Any assignment to VPATH causes Sun make to only execute ++# the first set of double-colon rules, so remove it if not needed. ++# If there is a colon in the path, we need to keep it. ++if test "x$srcdir" = x.; then ++ ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' ++fi ++ ++trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 ++ ++# Transform confdefs.h into DEFS. ++# Protect against shell expansion while executing Makefile rules. ++# Protect against Makefile macro expansion. ++cat > conftest.defs <<\EOF ++s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g ++s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g ++s%\[%\\&%g ++s%\]%\\&%g ++s%\$%$$%g ++EOF ++DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` ++rm -f conftest.defs ++ ++ ++# Without the "./", some shells look in PATH for config.status. ++: ${CONFIG_STATUS=./config.status} ++ ++echo creating $CONFIG_STATUS ++rm -f $CONFIG_STATUS ++cat > $CONFIG_STATUS </dev/null | sed 1q`: ++# ++# $0 $ac_configure_args ++# ++# Compiler output produced by configure, useful for debugging ++# configure, is in ./config.log if it exists. ++ ++ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" ++for ac_option ++do ++ case "\$ac_option" in ++ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ++ echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" ++ exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; ++ -version | --version | --versio | --versi | --vers | --ver | --ve | --v) ++ echo "$CONFIG_STATUS generated by autoconf version 2.13" ++ exit 0 ;; ++ -help | --help | --hel | --he | --h) ++ echo "\$ac_cs_usage"; exit 0 ;; ++ *) echo "\$ac_cs_usage"; exit 1 ;; ++ esac ++done ++ ++ac_given_srcdir=$srcdir ++ac_given_INSTALL="$INSTALL" ++ ++trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 ++EOF ++cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF ++$ac_vpsub ++$extrasub ++s%@SHELL@%$SHELL%g ++s%@CFLAGS@%$CFLAGS%g ++s%@CPPFLAGS@%$CPPFLAGS%g ++s%@CXXFLAGS@%$CXXFLAGS%g ++s%@FFLAGS@%$FFLAGS%g ++s%@DEFS@%$DEFS%g ++s%@LDFLAGS@%$LDFLAGS%g ++s%@LIBS@%$LIBS%g ++s%@exec_prefix@%$exec_prefix%g ++s%@prefix@%$prefix%g ++s%@program_transform_name@%$program_transform_name%g ++s%@bindir@%$bindir%g ++s%@sbindir@%$sbindir%g ++s%@libexecdir@%$libexecdir%g ++s%@datadir@%$datadir%g ++s%@sysconfdir@%$sysconfdir%g ++s%@sharedstatedir@%$sharedstatedir%g ++s%@localstatedir@%$localstatedir%g ++s%@libdir@%$libdir%g ++s%@includedir@%$includedir%g ++s%@oldincludedir@%$oldincludedir%g ++s%@infodir@%$infodir%g ++s%@mandir@%$mandir%g ++s%@MAY_SUPPLY_SYSCALLS_TRUE@%$MAY_SUPPLY_SYSCALLS_TRUE%g ++s%@MAY_SUPPLY_SYSCALLS_FALSE@%$MAY_SUPPLY_SYSCALLS_FALSE%g ++s%@newlib_basedir@%$newlib_basedir%g ++s%@host@%$host%g ++s%@host_alias@%$host_alias%g ++s%@host_cpu@%$host_cpu%g ++s%@host_vendor@%$host_vendor%g ++s%@host_os@%$host_os%g ++s%@target@%$target%g ++s%@target_alias@%$target_alias%g ++s%@target_cpu@%$target_cpu%g ++s%@target_vendor@%$target_vendor%g ++s%@target_os@%$target_os%g ++s%@build@%$build%g ++s%@build_alias@%$build_alias%g ++s%@build_cpu@%$build_cpu%g ++s%@build_vendor@%$build_vendor%g ++s%@build_os@%$build_os%g ++s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g ++s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g ++s%@INSTALL_DATA@%$INSTALL_DATA%g ++s%@PACKAGE@%$PACKAGE%g ++s%@VERSION@%$VERSION%g ++s%@ACLOCAL@%$ACLOCAL%g ++s%@AUTOCONF@%$AUTOCONF%g ++s%@AUTOMAKE@%$AUTOMAKE%g ++s%@AUTOHEADER@%$AUTOHEADER%g ++s%@MAKEINFO@%$MAKEINFO%g ++s%@SET_MAKE@%$SET_MAKE%g ++s%@CC@%$CC%g ++s%@AS@%$AS%g ++s%@AR@%$AR%g ++s%@RANLIB@%$RANLIB%g ++s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g ++s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g ++s%@MAINT@%$MAINT%g ++s%@EXEEXT@%$EXEEXT%g ++s%@NEWLIB_CFLAGS@%$NEWLIB_CFLAGS%g ++s%@ELIX_LEVEL_0_TRUE@%$ELIX_LEVEL_0_TRUE%g ++s%@ELIX_LEVEL_0_FALSE@%$ELIX_LEVEL_0_FALSE%g ++s%@ELIX_LEVEL_1_TRUE@%$ELIX_LEVEL_1_TRUE%g ++s%@ELIX_LEVEL_1_FALSE@%$ELIX_LEVEL_1_FALSE%g ++s%@ELIX_LEVEL_2_TRUE@%$ELIX_LEVEL_2_TRUE%g ++s%@ELIX_LEVEL_2_FALSE@%$ELIX_LEVEL_2_FALSE%g ++s%@ELIX_LEVEL_3_TRUE@%$ELIX_LEVEL_3_TRUE%g ++s%@ELIX_LEVEL_3_FALSE@%$ELIX_LEVEL_3_FALSE%g ++s%@ELIX_LEVEL_4_TRUE@%$ELIX_LEVEL_4_TRUE%g ++s%@ELIX_LEVEL_4_FALSE@%$ELIX_LEVEL_4_FALSE%g ++s%@USE_LIBTOOL_TRUE@%$USE_LIBTOOL_TRUE%g ++s%@USE_LIBTOOL_FALSE@%$USE_LIBTOOL_FALSE%g ++s%@OBJEXT@%$OBJEXT%g ++s%@oext@%$oext%g ++s%@aext@%$aext%g ++s%@libm_machine_dir@%$libm_machine_dir%g ++s%@machine_dir@%$machine_dir%g ++s%@sys_dir@%$sys_dir%g ++ ++CEOF ++EOF ++ ++cat >> $CONFIG_STATUS <<\EOF ++ ++# 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_cmds=90 # Maximum number of lines to put in a sed script. ++ac_file=1 # Number of current file. ++ac_beg=1 # First line for current file. ++ac_end=$ac_max_sed_cmds # 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" conftest.subs > conftest.s$ac_file ++ else ++ sed "${ac_end}q" conftest.subs > conftest.s$ac_file ++ fi ++ if test ! -s conftest.s$ac_file; then ++ ac_more_lines=false ++ rm -f conftest.s$ac_file ++ else ++ if test -z "$ac_sed_cmds"; then ++ ac_sed_cmds="sed -f conftest.s$ac_file" ++ else ++ ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" ++ fi ++ ac_file=`expr $ac_file + 1` ++ ac_beg=$ac_end ++ ac_end=`expr $ac_end + $ac_max_sed_cmds` ++ fi ++done ++if test -z "$ac_sed_cmds"; then ++ ac_sed_cmds=cat ++fi ++EOF ++ ++cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF ++for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then ++ # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". ++ case "$ac_file" in ++ *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` ++ ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; ++ *) ac_file_in="${ac_file}.in" ;; ++ esac ++ ++ # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. ++ ++ # Remove last slash and all that follows it. Not all systems have dirname. ++ ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` ++ if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then ++ # The file is in a subdirectory. ++ test ! -d "$ac_dir" && mkdir "$ac_dir" ++ ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" ++ # A "../" for each directory in $ac_dir_suffix. ++ ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` ++ else ++ ac_dir_suffix= ac_dots= ++ fi ++ ++ case "$ac_given_srcdir" in ++ .) srcdir=. ++ if test -z "$ac_dots"; then top_srcdir=. ++ else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; ++ /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; ++ *) # Relative path. ++ srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" ++ top_srcdir="$ac_dots$ac_given_srcdir" ;; ++ esac ++ ++ case "$ac_given_INSTALL" in ++ [/$]*) INSTALL="$ac_given_INSTALL" ;; ++ *) INSTALL="$ac_dots$ac_given_INSTALL" ;; ++ esac ++ ++ echo creating "$ac_file" ++ rm -f "$ac_file" ++ configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." ++ case "$ac_file" in ++ *Makefile*) ac_comsub="1i\\ ++# $configure_input" ;; ++ *) ac_comsub= ;; ++ esac ++ ++ ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` ++ sed -e "$ac_comsub ++s%@configure_input@%$configure_input%g ++s%@srcdir@%$srcdir%g ++s%@top_srcdir@%$top_srcdir%g ++s%@INSTALL@%$INSTALL%g ++" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file ++fi; done ++rm -f conftest.s* ++ ++EOF ++cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF ++ ++exit 0 ++EOF ++chmod +x $CONFIG_STATUS ++rm -fr confdefs* $ac_clean_files ++test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 ++ +diff -NBaur newlib-1.13.0/newlib/libc/sys/psp/configure.in newlib-1.13.0-psp/newlib/libc/sys/psp/configure.in +--- newlib-1.13.0/newlib/libc/sys/psp/configure.in Thu Jan 1 00:00:00 1970 ++++ newlib-1.13.0-psp/newlib/libc/sys/psp/configure.in Mon Jul 25 23:53:48 2005 +@@ -0,0 +1,12 @@ ++dnl This is the newlib/libc/sys/psp configure.in file. ++dnl Process this file with autoconf to produce a configure script. ++ ++AC_PREREQ(2.5) ++AC_INIT(libcglue.c) ++ ++dnl Can't be done in NEWLIB_CONFIGURE because that confuses automake. ++AC_CONFIG_AUX_DIR(../../../..) ++ ++NEWLIB_CONFIGURE(../../..) ++ ++AC_OUTPUT(Makefile) +diff -NBaur newlib-1.13.0/newlib/libc/sys/psp/crt0.c newlib-1.13.0-psp/newlib/libc/sys/psp/crt0.c +--- newlib-1.13.0/newlib/libc/sys/psp/crt0.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.13.0-psp/newlib/libc/sys/psp/crt0.c Mon Jul 25 23:53:49 2005 +@@ -0,0 +1,3 @@ ++/* The real crt0.c lives in PSPSDK. */ ++ ++void _start() { } +diff -NBaur newlib-1.13.0/newlib/libc/sys/psp/libcglue.c newlib-1.13.0-psp/newlib/libc/sys/psp/libcglue.c +--- newlib-1.13.0/newlib/libc/sys/psp/libcglue.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.13.0-psp/newlib/libc/sys/psp/libcglue.c Mon Jul 25 23:53:49 2005 +@@ -0,0 +1,494 @@ ++/* ++ * PSP Software Development Kit - http://www.pspdev.org ++ * ----------------------------------------------------------------------- ++ * Licensed under the BSD license, see LICENSE in PSPSDK root for details. ++ * ++ * libcglue.c - Newlib-compatible system calls. ++ * ++ * Copyright (c) 2005 Marcus R. Brown ++ * Copyright (c) 2005 James Forshaw ++ * Copyright (c) 2005 John Kelley ++ * Copyright (c) 2005 Jim Paris ++ * ++ */ ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++ ++#include ++#include ++#include ++#include ++#include ++#include ++ ++/* These functions aren't exposed in any public headers, and they probably don't need to be. */ ++int sceKernelStdin(void); ++int sceKernelStdout(void); ++int sceKernelStderr(void); ++ ++extern char * __psp_argv_0; ++extern int __psp_cwd_initialized; ++extern char __psp_cwd[MAXPATHLEN + 1]; ++extern void __psp_init_cwd(void); ++extern int __psp_path_absolute(const char *in, char *out, int len); ++ ++#ifdef F_getcwd ++char *getcwd(char *buf, size_t size) ++{ ++ if(!__psp_cwd_initialized) ++ __psp_init_cwd(); ++ ++ if(!buf) { ++ errno = EINVAL; ++ return NULL; ++ } ++ ++ if(strlen(__psp_cwd) >= size) { ++ errno = ERANGE; ++ return NULL; ++ } ++ ++ strcpy(buf, __psp_cwd); ++ return buf; ++} ++#endif ++ ++#ifdef F_chdir ++int chdir(const char *path) ++{ ++ char dest[MAXPATHLEN + 1]; ++ SceUID uid; ++ ++ if(!__psp_cwd_initialized) ++ __psp_init_cwd(); ++ ++ if(__psp_path_absolute(path, dest, MAXPATHLEN) < 0) { ++ errno = ENAMETOOLONG; ++ return -1; ++ } ++ ++ /* sceIoChdir doesn't give an indication of whether it worked, ++ so test for existance by attempting to open the dir */ ++ uid = sceIoDopen(dest); ++ if(uid < 0) { ++ errno = ENOTDIR; ++ return -1; ++ } ++ sceIoDclose(uid); ++ ++ sceIoChdir(dest); ++ strcpy(__psp_cwd, dest); ++ return 0; ++} ++#endif ++ ++#ifdef F_realpath ++char *realpath(const char *path, char *resolved_path) ++{ ++ if(!path || !resolved_path) { ++ errno = EINVAL; ++ return NULL; ++ } ++ if(__psp_path_absolute(path, resolved_path, MAXPATHLEN) < 0) { ++ errno = ENAMETOOLONG; ++ return NULL; ++ } ++ return resolved_path; ++} ++#endif ++ ++/* Wrappers of the standard open(), close(), read(), write(), unlink() and lseek() routines. */ ++#ifdef F__open ++int _open(const char *name, int flags, int mode) ++{ ++ int sce_flags; ++ ++ /* Make sure the CWD has been set. */ ++ if (!__psp_cwd_initialized) { ++ __psp_init_cwd(); ++ } ++ ++ /* O_RDONLY starts at 0, where PSP_O_RDONLY starts at 1, so remap the read/write ++ flags by adding 1. */ ++ sce_flags = (flags & O_ACCMODE) + 1; ++ ++ /* Translate standard open flags into the flags understood by the PSP kernel. */ ++ if (flags & O_APPEND) { ++ sce_flags |= PSP_O_APPEND; ++ } ++ if (flags & O_CREAT) { ++ sce_flags |= PSP_O_CREAT; ++ } ++ if (flags & O_TRUNC) { ++ sce_flags |= PSP_O_TRUNC; ++ } ++ if (flags & O_EXCL) { ++ sce_flags |= PSP_O_EXCL; ++ } ++ if (flags & O_NONBLOCK) { ++ sce_flags |= PSP_O_NBLOCK; ++ } ++ ++ return sceIoOpen(name, sce_flags, mode); ++} ++#endif ++ ++#ifdef F__close ++int _close(int fd) ++{ ++ int sce_fd = fd; ++ ++ if (fd == STDIN_FILENO) { ++ sce_fd = sceKernelStdin(); ++ } else if (fd == STDOUT_FILENO) { ++ sce_fd = sceKernelStdout(); ++ } else if (fd == STDERR_FILENO) { ++ sce_fd == sceKernelStderr(); ++ } ++ ++ if (sce_fd < 0) { ++ return -EBADF; ++ } ++ ++ return sceIoClose(sce_fd); ++} ++#endif ++ ++#ifdef F__read ++int _read(int fd, void *buf, size_t size) ++{ ++ int sce_fd = fd; ++ ++ if (fd == STDIN_FILENO) { ++ sce_fd = sceKernelStdin(); ++ } else if (fd == STDOUT_FILENO) { ++ sce_fd = sceKernelStdout(); ++ } else if (fd == STDERR_FILENO) { ++ sce_fd = sceKernelStderr(); ++ } ++ ++ if (sce_fd < 0) { ++ return -EBADF; ++ } ++ ++ return sceIoRead(sce_fd, buf, size); ++} ++#endif ++ ++#ifdef F__write ++int _write(int fd, const void *buf, size_t size) ++{ ++ int sce_fd = fd; ++ ++ if (fd == STDIN_FILENO) { ++ sce_fd = sceKernelStdin(); ++ } else if (fd == STDOUT_FILENO) { ++ sce_fd = sceKernelStdout(); ++ } else if (fd == STDERR_FILENO) { ++ sce_fd = sceKernelStderr(); ++ } ++ ++ if (sce_fd < 0) { ++ return -EBADF; ++ } ++ ++ return sceIoWrite(sce_fd, buf, size); ++} ++#endif ++ ++#ifdef F__lseek ++off_t _lseek(int fd, off_t offset, int whence) ++{ ++ int sce_fd = fd; ++ ++ if (fd == STDIN_FILENO) { ++ sce_fd = sceKernelStdin(); ++ } else if (fd == STDOUT_FILENO) { ++ sce_fd = sceKernelStdout(); ++ } else if (fd == STDERR_FILENO) { ++ sce_fd = sceKernelStderr(); ++ } ++ ++ if (sce_fd < 0) { ++ return -EBADF; ++ } ++ ++ /* We don't have to do anything with the whence argument because SEEK_* == PSP_SEEK_*. */ ++ return (off_t) sceIoLseek(sce_fd, offset, whence); ++} ++#endif ++ ++#ifdef F__unlink ++int _unlink(const char *path) ++{ ++ /* Make sure the CWD has been set. */ ++ if (!__psp_cwd_initialized) { ++ __psp_init_cwd(); ++ } ++ return sceIoRemove(path); ++} ++#endif ++ ++#ifdef F__link ++int _link(const char *name1, const char *name2) ++{ ++ return -1; ++} ++#endif ++ ++#ifdef F__opendir ++DIR *_opendir(const char *filename) ++{ ++ DIR *dirp; ++ SceUID uid; ++ ++ /* Make sure the CWD has been set. */ ++ if (!__psp_cwd_initialized) { ++ __psp_init_cwd(); ++ } ++ ++ dirp = (DIR *)malloc(sizeof(DIR)); ++ ++ uid = sceIoDopen(filename); ++ ++ if (uid < 0) ++ { ++ free(dirp); ++ return NULL; ++ } ++ ++ dirp->uid = uid; ++ ++ return dirp; ++} ++#endif ++ ++#ifdef F__readdir ++struct SceIoDirent *_readdir(DIR *dirp) ++{ ++ SceIoDirent *de; ++ ++ de = (SceIoDirent *)malloc(sizeof(SceIoDirent)); ++ ++ if (sceIoDread(dirp->uid, de) <= 0) ++ { ++ free(de); ++ return NULL; ++ } ++ ++ return de; ++} ++#endif ++ ++#ifdef F__closedir ++int _closedir(DIR *dirp) ++{ ++ if (dirp != NULL) ++ { ++ int uid; ++ uid = dirp->uid; ++ free (dirp); ++ return sceIoDclose(uid); ++ } ++ return -1; ++} ++#endif ++ ++/* Time routines. These wrap around the routines provided by the kernel. */ ++#ifdef F__gettimeofday ++int _gettimeofday(struct timeval *tp, struct timezone *tzp) ++{ ++ return sceKernelLibcGettimeofday(tp, tzp); ++} ++ ++#endif ++ ++/* If we're being built for PSPSDK's libc this function isn't defined. */ ++#ifdef F_glue_gettimeofday ++int gettimeofday(struct timeval *tp, struct timezone *tzp) ++{ ++ return sceKernelLibcGettimeofday(tp, tzp); ++} ++#endif ++ ++#if defined(F_clock) || defined(F_glue_clock) ++clock_t clock(void) ++{ ++ return sceKernelLibcClock(); ++} ++#endif ++ ++#if defined(F_time) || defined(F_glue_time) ++time_t time(time_t *t) ++{ ++ return sceKernelLibcTime(t); ++} ++#endif ++ ++/* PSP-compatible sbrk(). */ ++#if defined(F__sbrk) || defined(F_glue__sbrk) ++/* TODO: Currently our default heap is set to the maximum available block size ++ when sbrk() is first called. Sony seems to always use a default of 64KB, ++ with the expectation that user programs will override the default size with ++ their own desired size. The only reason I can think of them doing this is ++ to allow each PRX to have their own seperate heap. I think that their ++ method is overkill for most user programs. ++ ++ What I'd like to do instead is to use the default of 64KB for PRXes as Sony ++ does, but use the maximum available block size for executables. This avoids ++ the requirement of specifying the heap size manually in user programs. ++ However, we currently don't have a clean way to distinguish PRXes and normal ++ executables, so this code needs to be revisited once we do come up with a ++ way. */ ++#define DEFAULT_PRX_HEAP_SIZE_KB 64 ++ ++/* If defined it specifies the desired size of the heap, in KB. */ ++extern unsigned int sce_newlib_heap_kb_size __attribute__((weak)); ++ ++/* UID of the memory block that represents the heap. */ ++static SceUID __psp_heap_blockid; ++ ++void * _sbrk(ptrdiff_t incr) ++{ ++ static void * heap_bottom = NULL; ++ static void * heap_top = NULL; ++ static void * heap_ptr = NULL; ++ ++ /* Has our heap been initialized? */ ++ if (heap_bottom == NULL) { ++ /* No, initialize the heap. */ ++ SceSize heap_size; ++ ++ if (&sce_newlib_heap_kb_size != NULL) { ++ heap_size = sce_newlib_heap_kb_size * 1024; ++ } else { ++ /* TODO: Here we should distinguish between a PRX and a normal ++ executable. Right now we assume it's an executable. */ ++ if (0 /* is a prx */) { ++ heap_size = DEFAULT_PRX_HEAP_SIZE_KB * 1024; ++ } else { ++ heap_size = sceKernelMaxFreeMemSize(); ++ } ++ } ++ ++ __psp_heap_blockid = sceKernelAllocPartitionMemory(2, "block", PSP_SMEM_Low, heap_size, NULL); ++ if (__psp_heap_blockid > 0) { ++ heap_bottom = sceKernelGetBlockHeadAddr(__psp_heap_blockid); ++ heap_ptr = heap_bottom; ++ heap_top = (unsigned char *) heap_bottom + heap_size; ++ } ++ } ++ ++ void * heap_addr = (void *) -1; ++ void * next_heap_ptr = (void *) ((ptrdiff_t) heap_ptr + incr); ++ if ((heap_bottom != NULL) && (next_heap_ptr >= heap_bottom) && (next_heap_ptr < heap_top)) { ++ heap_addr = heap_ptr; ++ heap_ptr = next_heap_ptr; ++ } ++ ++ return heap_addr; ++} ++ ++/* Free the heap. */ ++int __psp_free_heap(void) ++{ ++ if (__psp_heap_blockid > 0) { ++ return sceKernelFreePartitionMemory(__psp_heap_blockid); ++ } ++ ++ return __psp_heap_blockid; ++} ++#endif ++ ++/* Other POSIX routines that must be defined. */ ++#ifdef F__fstat ++int _fstat(int fd, struct stat *sbuf) ++{ ++ sbuf->st_mode = S_IFCHR; ++ return 0; ++} ++#endif ++ ++#ifdef F_isatty ++int isatty(int fd) ++{ ++ return 1; ++} ++#endif ++ ++/* Unsupported newlib system calls. */ ++#ifdef F__fork ++pid_t fork(void) ++{ ++ return (pid_t) -1; ++} ++#endif ++ ++#ifdef F__getpid ++pid_t _getpid(void) ++{ ++ return (pid_t) -1; ++} ++#endif ++ ++#ifdef F__kill ++int _kill(int unused, int unused2) ++{ ++ return -1; ++} ++#endif ++ ++#ifdef F__wait ++pid_t _wait(int *unused) ++{ ++ return (pid_t) -1; ++} ++#endif ++ ++/* Exit. */ ++#if defined(F__exit) || defined(F_glue__exit) ++extern int sce_newlib_nocreate_thread_in_start __attribute__((weak)); ++ ++extern int __psp_free_heap(void); ++ ++void _exit(int status) ++{ ++ if (&sce_newlib_nocreate_thread_in_start != NULL) { ++ /* Free the heap created by _sbrk(). */ ++ __psp_free_heap(); ++ ++ sceKernelSelfStopUnloadModule(1, 0, NULL); ++ } else { ++ if (status == 0) { ++ /* Free the heap created by _sbrk(). */ ++ __psp_free_heap(); ++ } ++ ++ sceKernelExitThread(status); ++ } ++ ++ while (1) ; ++} ++#endif ++ ++/* newlib's errno.h wants a function that returns a pointer to errno. */ ++#ifdef F_glue___errno ++#undef errno ++ ++int errno; ++ ++/* TODO: Should this be made reentrant (wrapping interrupt disable/enable ++ around it should do it)? */ ++int * __errno(void) ++{ ++ return &errno; ++} ++#endif +diff -NBaur newlib-1.13.0/newlib/libc/sys/psp/pspcwd.c newlib-1.13.0-psp/newlib/libc/sys/psp/pspcwd.c +--- newlib-1.13.0/newlib/libc/sys/psp/pspcwd.c Thu Jan 1 00:00:00 1970 ++++ newlib-1.13.0-psp/newlib/libc/sys/psp/pspcwd.c Mon Jul 25 23:53:49 2005 +@@ -0,0 +1,170 @@ ++/* ++ * PSP Software Development Kit - http://www.pspdev.org ++ * ----------------------------------------------------------------------- ++ * Licensed under the BSD license, see LICENSE in PSPSDK root for details. ++ * ++ * pspcwd.c - Current working directory emulation helper functions ++ * ++ * Copyright (c) 2005 Marcus R. Brown ++ * Copyright (c) 2005 James Forshaw ++ * Copyright (c) 2005 John Kelley ++ * Copyright (c) 2005 Jim Paris ++ * ++ */ ++#include ++#include ++#include ++ ++#include ++#include ++ ++extern char * __psp_argv_0; ++int __psp_cwd_initialized = 0; ++char __psp_cwd[MAXPATHLEN + 1] = { 0 }; ++ ++/* Set the current working directory (CWD) to the path where the module was launched. */ ++void __psp_init_cwd(void) ++{ ++ if (!__psp_cwd_initialized && (__psp_argv_0 != NULL)) { ++ char base_path[MAXPATHLEN + 1]; ++ char *end; ++ ++ __psp_cwd_initialized = 1; ++ ++ strncpy(base_path, __psp_argv_0, sizeof(base_path) - 1); ++ base_path[sizeof(base_path) - 1] = '\0'; ++ end = strrchr(base_path, '/'); ++ if (end != NULL) { ++ *(end + 1) = '\0'; ++ chdir(base_path); ++ } ++ } ++} ++ ++/* Return the number of bytes taken up by the "drive:" prefix, ++ or -1 if it's not found */ ++int __psp_get_drive(const char *d) ++{ ++ int i; ++ for(i=0; d[i]; i++) { ++ if(! ((d[i] >= 'a' && d[i] <= 'z') || ++ (d[i] >= '0' && d[i] <= '9') )) ++ break; ++ } ++ if(d[i] == ':') return i+1; ++ return -1; ++} ++ ++/* Like strcpy, but returns 0 if the string doesn't fit */ ++int __psp_safe_strcpy(char *out, const char *in, int maxlen) ++{ ++ for( ; maxlen > 0 && *in ; maxlen-- ) ++ *(out++) = *(in++); ++ if(maxlen < 1) return 0; ++ *out = 0; ++ return 1; ++} ++ ++/* Like strcat, but returns 0 if the string doesn't fit */ ++int __psp_safe_strcat(char *out, const char *in, int maxlen) ++{ ++ for( ; *out ; out++,maxlen-- ) ++ continue; ++ return __psp_safe_strcpy(out, in, maxlen); ++} ++ ++/* Normalize a pathname (without leading "drive:") by removing ++ . and .. components, duplicated /, etc. */ ++int __psp_path_normalize(char *out, int len) ++{ ++ int i, j; ++ int first, next; ++ ++ /* First append "/" to make the rest easier */ ++ if(!__psp_safe_strcat(out,"/",len)) return -10; ++ ++ /* Convert "//" to "/" */ ++ for(i=0; out[i+1]; i++) { ++ if(out[i]=='/' && out[i+1]=='/') { ++ for(j=i+1; out[j]; j++) ++ out[j] = out[j+1]; ++ i--; ++ } ++ } ++ ++ /* Convert "/./" to "/" */ ++ for(i=0; out[i] && out[i+1] && out[i+2]; i++) { ++ if(out[i]=='/' && out[i+1]=='.' && out[i+2]=='/') { ++ for(j=i+1; out[j]; j++) ++ out[j] = out[j+2]; ++ i--; ++ } ++ } ++ ++ /* Convert "/asdf/../" to "/" until we can't anymore. Also ++ * convert leading "/../" to "/" */ ++ first = next = 0; ++ while(1) { ++ /* If a "../" follows, remove it and the parent */ ++ if(out[next+1] && out[next+1]=='.' && ++ out[next+2] && out[next+2]=='.' && ++ out[next+3] && out[next+3]=='/') { ++ for(j=0; out[first+j+1]; j++) ++ out[first+j+1] = out[next+j+4]; ++ first = next = 0; ++ continue; ++ } ++ ++ /* Find next slash */ ++ first = next; ++ for(next=first+1; out[next] && out[next] != '/'; next++) ++ continue; ++ if(!out[next]) break; ++ } ++ ++ /* Remove trailing "/" */ ++ for(i=1; out[i]; i++) ++ continue; ++ if(i > 1 && out[i-1] == '/') ++ out[i-1] = 0; ++ ++ return 0; ++} ++ ++/* Convert relative path to absolute path. */ ++int __psp_path_absolute(const char *in, char *out, int len) ++{ ++ int dr; ++ ++ /* See what the relative URL starts with */ ++ dr = __psp_get_drive(in); ++ if(dr > 0 && in[dr] == '/') { ++ /* It starts with "drive:/", so it's already absolute */ ++ if(!__psp_safe_strcpy(out, in, len)) ++ return -1; ++ } else if(in[0] == '/') { ++ /* It's absolute, but missing the drive, so use cwd's drive */ ++ if(strlen(__psp_cwd) >= len) ++ return -2; ++ strcpy(out, __psp_cwd); ++ dr = __psp_get_drive(out); ++ out[dr] = 0; ++ if(!__psp_safe_strcat(out, in, len)) ++ return -3; ++ } else { ++ /* It's not absolute, so append it to the current cwd */ ++ if(strlen(__psp_cwd) >= len) ++ return -4; ++ strcpy(out, __psp_cwd); ++ if(!__psp_safe_strcat(out, "/", len)) ++ return -6; ++ if(!__psp_safe_strcat(out, in, len)) ++ return -7; ++ } ++ ++ /* Now normalize the pathname portion */ ++ dr = __psp_get_drive(out); ++ if(dr < 0) dr = 0; ++ return __psp_path_normalize(out + dr, len - dr); ++} ++ diff --git a/patches/devkit-gcc-3.3.3.patch b/patches/devkit-gcc-3.3.3.patch deleted file mode 100644 index cf439dd..0000000 --- a/patches/devkit-gcc-3.3.3.patch +++ /dev/null @@ -1,325 +0,0 @@ -diff -Naurb gcc-3.3.3.orig/gcc/c-aux-info.c gcc-3.3.3/gcc/c-aux-info.c ---- gcc-3.3.3.orig/gcc/c-aux-info.c Sun Sep 22 03:03:14 2002 -+++ gcc-3.3.3/gcc/c-aux-info.c Fri Mar 5 21:41:20 2004 -@@ -581,7 +581,7 @@ - - /* Write the actual line of auxiliary info. */ - -- fprintf (aux_info_file, "/* %s:%d:%c%c */ %s;", -+ fprintf (aux_info_file, "/* %s(%d):%c%c */ %s;", - DECL_SOURCE_FILE (fndecl), - DECL_SOURCE_LINE (fndecl), - (is_implicit) ? 'I' : (is_prototyped) ? 'N' : 'O', -diff -Naurb gcc-3.3.3.orig/gcc/collect2.c gcc-3.3.3/gcc/collect2.c ---- gcc-3.3.3.orig/gcc/collect2.c Mon Dec 8 19:02:40 2003 -+++ gcc-3.3.3/gcc/collect2.c Fri Mar 5 21:41:20 2004 -@@ -161,6 +161,63 @@ - #define SCAN_LIBRARIES - #endif - -+#ifdef __MINGW32__ -+/* We are being compiled with mingw32 as host, so we should prepare some -+ win32 replaces for pipe(), kill(getpid(),...) and vfork() + execv() -+*/ -+#include -+#include -+ -+#define pipe(fildes) _pipe((fildes),1024*16,_O_BINARY) -+ -+#define WIN32_LEAN_AND_MEAN -+#include -+ -+int vfork_execv(char *cmdname, char **argv, int fdout); -+ -+/* Helper function for vfork() + execv() replacement. */ -+int vfork_execv(char *cmdname, char **argv, int fdout) -+{ -+ STARTUPINFO SI; -+ PROCESS_INFORMATION PI; -+ char *params; -+ int plen = 0; -+ int i; -+ BOOL bRes; -+ -+ /* Prepare one line with arguments */ -+ for(i=0;argv[i];i++) plen += strlen(argv[i]) + 1; -+ plen++; -+ params = xmalloc(plen); -+ strcpy(params,argv[0]); -+ for(i=1;argv[i];i++) strcat(strcat(params," "),argv[i]); -+ -+ /* Prepare startup info -- for pipes redirection */ -+ memset(&SI,0,sizeof(SI)); -+ SI.cb = sizeof(SI); -+ SI.dwFlags = STARTF_USESTDHANDLES; -+ SI.hStdInput = GetStdHandle(STD_INPUT_HANDLE); -+ SI.hStdOutput = (HANDLE)_get_osfhandle(fdout); -+ SI.hStdError = GetStdHandle(STD_ERROR_HANDLE); -+ -+ /* Create new process in same console, with redirected (piped) stdout */ -+ bRes = CreateProcess(cmdname,params, -+ NULL,NULL, /* Security attributes */ -+ FALSE, /* Handle inheritance */ -+ 0, /* Flags -- default, in this console, etc */ -+ NULL, /* Invironment */ -+ NULL, /* CWD */ -+ &SI, /* Startup info */ -+ &PI); /* Process info */ -+ if(!bRes) return -1; -+ CloseHandle(PI.hProcess); -+ CloseHandle(PI.hThread); -+ return 0; -+} -+ -+/* END-OF-WIN32-SECTION */ -+#endif -+ - #ifdef USE_COLLECT2 - int do_collecting = 1; - #else -@@ -444,7 +501,11 @@ - #endif - - signal (signo, SIG_DFL); -+#ifndef __MINGW32__ - kill (getpid (), signo); -+#else -+ ExitProcess(signo); -+#endif - } - - -@@ -2111,6 +2172,7 @@ - fflush (stderr); - - /* Spawn child nm on pipe */ -+#ifndef __MINGW32__ - pid = vfork (); - if (pid == -1) - fatal_perror (VFORK_STRING); -@@ -2130,6 +2192,11 @@ - execv (nm_file_name, real_nm_argv); - fatal_perror ("execv %s", nm_file_name); - } -+#else -+ if(vfork_execv(nm_file_name, real_nm_argv, pipe_fd[1])) { -+ fatal_perror ("vfork+execv %s", nm_file_name); -+ } -+#endif - - /* Parent context from here on. */ - int_handler = (void (*) PARAMS ((int))) signal (SIGINT, SIG_IGN); -@@ -2552,6 +2619,7 @@ - fflush (stderr); - - /* Spawn child ldd on pipe */ -+#ifndef __MINGW32__ - pid = vfork (); - if (pid == -1) - fatal_perror (VFORK_STRING); -@@ -2571,6 +2639,11 @@ - execv (ldd_file_name, real_ldd_argv); - fatal_perror ("execv %s", ldd_file_name); - } -+#else -+ if(vfork_execv(ldd_file_name, real_ldd_argv, pipe_fd[1])) { -+ fatal_perror ("vfork+execv %s", nm_file_name); -+ } -+#endif - - /* Parent context from here on. */ - int_handler = (void (*) PARAMS ((int))) signal (SIGINT, SIG_IGN); -diff -Naurb gcc-3.3.3.orig/gcc/config/arm/arm.h gcc-3.3.3/gcc/config/arm/arm.h ---- gcc-3.3.3.orig/gcc/config/arm/arm.h Fri Nov 15 11:21:36 2002 -+++ gcc-3.3.3/gcc/config/arm/arm.h Fri Mar 5 21:41:21 2004 -@@ -1,6 +1,6 @@ - /* Definitions of target machine for GNU compiler, for ARM. - Copyright (C) 1991, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, -- 2001, 2002 Free Software Foundation, Inc. -+ 2001, 2002, 2004 Free Software Foundation, Inc. - Contributed by Pieter `Tiggr' Schoenmakers (rcpieter@win.tue.nl) - and Martin Simmons (@harleqn.co.uk). - More major hacks by Richard Earnshaw (rearnsha@arm.com) -@@ -2180,6 +2180,7 @@ - goto WIN; \ - } \ - else if (GET_MODE_CLASS (MODE) != MODE_FLOAT \ -+ && GET_MODE_SIZE (mode) == 4 \ - && GET_CODE (X) == SYMBOL_REF \ - && CONSTANT_POOL_ADDRESS_P (X) \ - && ! (flag_pic \ -diff -Naurb gcc-3.3.3.orig/gcc/config/arm/arm.md gcc-3.3.3/gcc/config/arm/arm.md ---- gcc-3.3.3.orig/gcc/config/arm/arm.md Sun Jun 15 22:11:32 2003 -+++ gcc-3.3.3/gcc/config/arm/arm.md Fri Mar 5 21:41:21 2004 -@@ -1,6 +1,6 @@ - ;;- Machine description for ARM for GNU compiler - ;; Copyright 1991, 1993, 1994, 1995, 1996, 1996, 1997, 1998, 1999, 2000, --;; 2001, 2002 Free Software Foundation, Inc. -+;; 2001, 2002, 2004 Free Software Foundation, Inc. - ;; Contributed by Pieter `Tiggr' Schoenmakers (rcpieter@win.tue.nl) - ;; and Martin Simmons (@harleqn.co.uk). - ;; More major hacks by Richard Earnshaw (rearnsha@arm.com). -@@ -4585,8 +4585,8 @@ - ) - - (define_insn "*thumb_movhi_insn" -- [(set (match_operand:HI 0 "nonimmediate_operand" "=l,l, m,*r,*h,l") -- (match_operand:HI 1 "general_operand" "l,mn,l,*h,*r,I"))] -+ [(set (match_operand:HI 0 "nonimmediate_operand" "=l,l,m,*r,*h,l") -+ (match_operand:HI 1 "general_operand" "l,m,l,*h,*r,I"))] - "TARGET_THUMB - && ( register_operand (operands[0], HImode) - || register_operand (operands[1], HImode))" -@@ -4618,8 +4618,7 @@ - return \"ldrh %0, %1\"; - }" - [(set_attr "length" "2,4,2,2,2,2") -- (set_attr "type" "*,load,store1,*,*,*") -- (set_attr "pool_range" "*,64,*,*,*,*")] -+ (set_attr "type" "*,load,store1,*,*,*")] - ) - - -diff -Naurb gcc-3.3.3.orig/gcc/config/arm/t-arm-elf gcc-3.3.3/gcc/config/arm/t-arm-elf ---- gcc-3.3.3.orig/gcc/config/arm/t-arm-elf Wed May 8 16:01:14 2002 -+++ gcc-3.3.3/gcc/config/arm/t-arm-elf Fri Mar 5 21:41:21 2004 -@@ -38,9 +38,9 @@ - # MULTILIB_DIRNAMES += 32bit 26bit - # MULTILIB_EXCEPTIONS += *mthumb/*mapcs-26* - # --# MULTILIB_OPTIONS += mno-thumb-interwork/mthumb-interwork --# MULTILIB_DIRNAMES += normal interwork --# MULTILIB_EXCEPTIONS += *mapcs-26/*mthumb-interwork* -+MULTILIB_OPTIONS += mno-thumb-interwork/mthumb-interwork -+MULTILIB_DIRNAMES += normal interwork -+MULTILIB_EXCEPTIONS += *mapcs-26/*mthumb-interwork* - # - # MULTILIB_OPTIONS += fno-leading-underscore/fleading-underscore - # MULTILIB_DIRNAMES += elf under -diff -Naurb gcc-3.3.3.orig/gcc/config/i386/mingw32-1.c gcc-3.3.3/gcc/config/i386/mingw32-1.c ---- gcc-3.3.3.orig/gcc/config/i386/mingw32-1.c Thu Jan 1 00:00:00 1970 -+++ gcc-3.3.3/gcc/config/i386/mingw32-1.c Sat Mar 6 10:03:08 2004 -@@ -0,0 +1,44 @@ -+/* This replaces the use of stat and struct stat.st_ino to determine if -+ files are different in gcc.c (do_spec_1) handling of --save-temps -+ switch. -+ Contributed by Danny Smith (dannysmith@users.sourceforge.net) -+ Copyright 2003 Free Software Foundation, Inc. -+ -+This file is part of GNU CC. -+ -+GNU CC 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, or (at your option) -+any later version. -+ -+GNU CC 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 GNU CC; see the file COPYING. If not, write to -+the Free Software Foundation, 59 Temple Place - Suite 330, -+Boston, MA 02111-1307, USA. */ -+ -+#define WIN32_LEAN_AND_MEAN -+#include -+ -+/* Return non-zero if src and dst filenames do not refer to same files. */ -+ -+int w32_file_id_cmp (const char *, const char *); -+ -+int -+w32_file_id_cmp (src, dst) -+ const char * src; -+ const char * dst; -+{ -+ char fullpath_src[MAX_PATH]; -+ char fullpath_dst[MAX_PATH]; -+ char* pfilename; -+ -+ /* Just compare full pathnames, without regard to case. */ -+ GetFullPathName (src,MAX_PATH,fullpath_src,&pfilename); -+ GetFullPathName (dst,MAX_PATH,fullpath_dst,&pfilename); -+ return (lstrcmpi (fullpath_src, fullpath_dst)); -+} -diff -Naurb gcc-3.3.3.orig/gcc/config/i386/x-mingw32 gcc-3.3.3/gcc/config/i386/x-mingw32 ---- gcc-3.3.3.orig/gcc/config/i386/x-mingw32 Thu Jan 1 00:00:00 1970 -+++ gcc-3.3.3/gcc/config/i386/x-mingw32 Sat Mar 6 09:42:12 2004 -@@ -0,0 +1,11 @@ -+# -+# For HOST_FILE_ID_CMP for mingw32. -+# -+EXTRA_GCC_OBJS = mingw32-1.o -+ -+mingw32-1.o: $(srcdir)/config/i386/mingw32-1.c -+ $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $? -+ -+ -+local_includedir=$(libsubdir)/$(unlibsubdir)/..`echo $(exec_prefix) | sed -e's|^$(prefix)||' -e 's|/[^/]*|/..|g'`/include -+STMP_FIXINC = -diff -Naurb gcc-3.3.3.orig/gcc/config/i386/xm-mingw32.h gcc-3.3.3/gcc/config/i386/xm-mingw32.h ---- gcc-3.3.3.orig/gcc/config/i386/xm-mingw32.h Thu Jan 10 22:21:40 2002 -+++ gcc-3.3.3/gcc/config/i386/xm-mingw32.h Sat Mar 6 09:44:41 2004 -@@ -1,6 +1,6 @@ - /* Configuration for GNU C-compiler for hosting on Windows32. - using GNU tools and the Windows32 API Library. -- Copyright (C) 1997, 1998, 1999, 2001 Free Software Foundation, Inc. -+ Copyright (C) 1997, 1998, 1999, 2001, 2002, 2003 Free Software Foundation, Inc. - - This file is part of GNU CC. - -@@ -31,3 +31,10 @@ - - #undef PATH_SEPARATOR - #define PATH_SEPARATOR ';' -+ -+/* This replaces the use of stat to determine if files are different -+ in gcc.c (do_spec_1) handling of --save-temps switch. */ -+ -+extern int -+w32_file_id_cmp PARAMS((const char *, const char *)); -+#define HOST_FILE_ID_CMP(SRC,DST) w32_file_id_cmp (SRC, DST) -diff -Naurb gcc-3.3.3.orig/gcc/config.gcc gcc-3.3.3/gcc/config.gcc ---- gcc-3.3.3.orig/gcc/config.gcc Wed Jan 21 06:06:00 2004 -+++ gcc-3.3.3/gcc/config.gcc Fri Mar 5 21:41:21 2004 -@@ -1352,6 +1352,7 @@ - xm_defines=POSIX - xm_file=i386/xm-mingw32.h - tmake_file="i386/t-cygwin i386/t-mingw32" -+ xmake_file=i386/x-mingw32 - extra_objs=winnt.o - if test x$enable_threads = xyes; then - thread_file='win32' -diff -Naurb gcc-3.3.3.orig/gcc/gcc.c gcc-3.3.3/gcc/gcc.c ---- gcc-3.3.3.orig/gcc/gcc.c Sat Dec 6 03:53:02 2003 -+++ gcc-3.3.3/gcc/gcc.c Sat Mar 6 09:44:14 2004 -@@ -4075,7 +4075,9 @@ - static int suffixed_basename_length; - static const char *input_basename; - static const char *input_suffix; -+#ifndef HOST_FILE_ID_CMP - static struct stat input_stat; -+#endif - static int input_stat_set; - - /* The compiler used to process the current input file. */ -@@ -4540,6 +4542,9 @@ - *((char *) temp_filename + temp_filename_length) = '\0'; - if (strcmp (temp_filename, input_filename) != 0) - { -+#if defined HOST_FILE_ID_CMP -+ if (HOST_FILE_ID_CMP(input_filename, temp_filename) != 0) -+#else - struct stat st_temp; - - /* Note, set_input() resets input_stat_set to 0. */ -@@ -4559,6 +4564,7 @@ - || stat (temp_filename, &st_temp) < 0 - || input_stat.st_dev != st_temp.st_dev - || input_stat.st_ino != st_temp.st_ino) -+#endif - { - temp_filename = save_string (temp_filename, - temp_filename_length + 1); diff --git a/patches/devkit-gcc-3.4.3.patch b/patches/devkit-gcc-3.4.3.patch deleted file mode 100644 index 478844c..0000000 --- a/patches/devkit-gcc-3.4.3.patch +++ /dev/null @@ -1,6603 +0,0 @@ -diff -NBaur gcc-3.4.3/config.sub gcc-3.4.3-new/config.sub ---- gcc-3.4.3/config.sub Sun Feb 22 14:44:23 2004 -+++ gcc-3.4.3-new/config.sub Fri Jan 21 10:25:50 2005 -@@ -219,6 +219,10 @@ - basic_machine=m68k-atari - os=-mint - ;; -+ -gekko) -+ basic_machine=powerpc-eabi -+ os=-elf -+ ;; - esac - - # Decode aliases for certain CPU-COMPANY combinations. -diff -NBaur gcc-3.4.3/gcc/Makefile.in gcc-3.4.3-new/gcc/Makefile.in ---- gcc-3.4.3/gcc/Makefile.in Mon Oct 18 17:00:39 2004 -+++ gcc-3.4.3-new/gcc/Makefile.in Fri Jan 21 10:25:50 2005 -@@ -138,7 +138,7 @@ - # TCFLAGS is used for compilations with the GCC just built. - XCFLAGS = - TCFLAGS = --CFLAGS = -g -+CFLAGS = -g0 - STAGE1_CFLAGS = -g @stage1_cflags@ - BOOT_CFLAGS = -g -O2 - -@@ -441,6 +441,7 @@ - gcc_gxx_include_dir = @gcc_gxx_include_dir@ - # Directory to search for site-specific includes. - local_includedir = $(local_prefix)/include -+# local_includedir=$(libsubdir)/$(unlibsubdir)/..`echo $(exec_prefix) | sed -e 's|^$(prefix)||' -e 's|/[^/]*|/..|g'`/include - includedir = $(prefix)/include - # where the info files go - infodir = @infodir@ -diff -NBaur gcc-3.4.3/gcc/c-format.c gcc-3.4.3-new/gcc/c-format.c ---- gcc-3.4.3/gcc/c-format.c Sat Dec 20 00:00:27 2003 -+++ gcc-3.4.3-new/gcc/c-format.c Fri Jan 21 10:25:50 2005 -@@ -31,6 +31,7 @@ - #include "diagnostic.h" - #include "langhooks.h" - -+ - /* Set format warning options according to a -Wformat=n option. */ - - void -@@ -509,6 +510,9 @@ - { "h", FMT_LEN_h, STD_C89, "hh", FMT_LEN_hh, STD_C99 }, - { "l", FMT_LEN_l, STD_C89, "ll", FMT_LEN_ll, STD_C9L }, - { "q", FMT_LEN_ll, STD_EXT, NULL, 0, 0 }, -+#ifdef __MINGW32__ -+ { "I64", FMT_LEN_ll, STD_EXT, NULL, 0, 0 }, -+#endif - { "L", FMT_LEN_L, STD_C89, NULL, 0, 0 }, - { "z", FMT_LEN_z, STD_C99, NULL, 0, 0 }, - { "Z", FMT_LEN_z, STD_EXT, NULL, 0, 0 }, -@@ -543,6 +547,9 @@ - { "h", FMT_LEN_h, STD_C89, "hh", FMT_LEN_hh, STD_C99 }, - { "l", FMT_LEN_l, STD_C89, "ll", FMT_LEN_ll, STD_C9L }, - { "q", FMT_LEN_ll, STD_EXT, NULL, 0, 0 }, -+#ifdef __MINGW32__ -+ { "I64", FMT_LEN_ll, STD_EXT, NULL, 0, 0 }, -+#endif - { "L", FMT_LEN_L, STD_C89, NULL, 0, 0 }, - { "z", FMT_LEN_z, STD_C99, NULL, 0, 0 }, - { "t", FMT_LEN_t, STD_C99, NULL, 0, 0 }, -@@ -568,7 +575,9 @@ - { '0', 0, 0, N_("`0' flag"), N_("the `0' printf flag"), STD_C89 }, - { '-', 0, 0, N_("`-' flag"), N_("the `-' printf flag"), STD_C89 }, - { '\'', 0, 0, N_("`'' flag"), N_("the `'' printf flag"), STD_EXT }, -+#ifndef __MINGW32__ - { 'I', 0, 0, N_("`I' flag"), N_("the `I' printf flag"), STD_EXT }, -+#endif - { 'w', 0, 0, N_("field width"), N_("field width in printf format"), STD_C89 }, - { 'p', 0, 0, N_("precision"), N_("precision in printf format"), STD_C89 }, - { 'L', 0, 0, N_("length modifier"), N_("length modifier in printf format"), STD_C89 }, -@@ -638,7 +647,9 @@ - { 'w', 0, 0, N_("field width"), N_("field width in scanf format"), STD_C89 }, - { 'L', 0, 0, N_("length modifier"), N_("length modifier in scanf format"), STD_C89 }, - { '\'', 0, 0, N_("`'' flag"), N_("the `'' scanf flag"), STD_EXT }, -+#ifndef __MINGW32__ - { 'I', 0, 0, N_("`I' flag"), N_("the `I' scanf flag"), STD_EXT }, -+#endif - { 0, 0, 0, NULL, NULL, 0 } - }; - -@@ -917,11 +928,18 @@ - { NULL, 0, 0, NOLENGTHS, NULL, NULL } - }; - -+#ifdef __MINGW32__ -+#define PRINTF_FLAG_CHARS " +#0-'" -+#define SCANF_FLAG_CHARS "*'" -+#else -+#define PRINTF_FLAG_CHARS " +#0-'I" -+#define SCANF_FLAG_CHARS "*'I" -+#endif - - /* This must be in the same order as enum format_type. */ - static const format_kind_info format_types_orig[] = - { -- { "printf", printf_length_specs, print_char_table, " +#0-'I", NULL, -+ { "printf", printf_length_specs, print_char_table, PRINTF_FLAG_CHARS, NULL, - printf_flag_specs, printf_flag_pairs, - FMT_FLAG_ARG_CONVERT|FMT_FLAG_DOLLAR_MULTIPLE|FMT_FLAG_USE_DOLLAR|FMT_FLAG_EMPTY_PREC_OK, - 'w', 0, 'p', 0, 'L', -@@ -951,7 +969,7 @@ - 0, 0, 'p', 0, 'L', - NULL, &integer_type_node - }, -- { "scanf", scanf_length_specs, scan_char_table, "*'I", NULL, -+ { "scanf", scanf_length_specs, scan_char_table, SCANF_FLAG_CHARS, NULL, - scanf_flag_specs, scanf_flag_pairs, - FMT_FLAG_ARG_CONVERT|FMT_FLAG_SCANF_A_KLUDGE|FMT_FLAG_USE_DOLLAR|FMT_FLAG_ZERO_WIDTH_BAD|FMT_FLAG_DOLLAR_GAP_POINTER_OK, - 'w', 0, 0, '*', 'L', -@@ -1929,7 +1947,13 @@ - { - while (fli->name != 0 && fli->name[0] != *format_chars) - fli++; -- if (fli->name != 0) -+ if (fli->name != 0 -+#ifdef __MINGW32__ -+ /* Only accept "I64", not 'I' by itself. */ -+ && (format_chars[0] != 'I' -+ || (format_chars[1] == '6' && format_chars[2] == '4')) -+#endif -+ ) - { - format_chars++; - if (fli->double_name != 0 && fli->name[0] == *format_chars) -@@ -1941,6 +1965,10 @@ - } - else - { -+#ifdef __MINGW32__ -+ if (fli->name[0] == 'I') -+ format_chars += 2; -+#endif - length_chars = fli->name; - length_chars_val = fli->index; - length_chars_std = fli->std; -diff -NBaur gcc-3.4.3/gcc/collect2.c gcc-3.4.3-new/gcc/collect2.c ---- gcc-3.4.3/gcc/collect2.c Tue Mar 9 15:49:56 2004 -+++ gcc-3.4.3-new/gcc/collect2.c Fri Jan 21 10:25:50 2005 -@@ -30,24 +30,13 @@ - #include "system.h" - #include "coretypes.h" - #include "tm.h" -+#include "pex-read.h" -+ - #include - #if ! defined( SIGCHLD ) && defined( SIGCLD ) - # define SIGCHLD SIGCLD - #endif - --#ifdef vfork /* Autoconf may define this to fork for us. */ --# define VFORK_STRING "fork" --#else --# define VFORK_STRING "vfork" --#endif --#ifdef HAVE_VFORK_H --#include --#endif --#ifdef VMS --#define vfork() (decc$$alloc_vfork_blocks() >= 0 ? \ -- lib$get_current_invo_context(decc$$get_vfork_jmpbuf()) : -1) --#endif /* VMS */ -- - #ifndef LIBRARY_PATH_ENV - #define LIBRARY_PATH_ENV "LIBRARY_PATH" - #endif -@@ -67,7 +56,6 @@ - cross-versions are in the proper directories. */ - - #ifdef CROSS_COMPILE --#undef SUNOS4_SHARED_LIBRARIES - #undef OBJECT_FORMAT_COFF - #undef MD_EXEC_PREFIX - #undef REAL_LD_FILE_NAME -@@ -140,7 +128,7 @@ - fprintf ((STREAM), "void _GLOBAL__DD() {\n\t%s();\n}\n", (FUNC)) - #endif - --#if defined (LDD_SUFFIX) || SUNOS4_SHARED_LIBRARIES -+#ifdef LDD_SUFFIX - #define SCAN_LIBRARIES - #endif - -@@ -255,7 +243,9 @@ - static void add_prefix (struct path_prefix *, const char *); - static void prefix_from_env (const char *, struct path_prefix *); - static void prefix_from_string (const char *, struct path_prefix *); -+static int collect_status (const char *, int status); - static void do_wait (const char *); -+static void do_read_wait (const char *, FILE *); - static void fork_execute (const char *, char **); - static void maybe_unlink (const char *); - static void add_to_list (struct head *, const char *); -@@ -424,7 +414,11 @@ - #endif - - signal (signo, SIG_DFL); -+#if HAVE_KILL - kill (getpid (), signo); -+#else -+ raise (signo); -+#endif - } - - -@@ -1456,14 +1450,11 @@ - } - - --/* Wait for a process to finish, and exit if a nonzero status is found. */ -+/* Handle error status returned by a finished process. */ - --int --collect_wait (const char *prog) -+static int -+collect_status (const char *prog, int status) - { -- int status; -- -- pwait (pid, &status, 0); - if (status) - { - if (WIFSIGNALED (status)) -@@ -1481,6 +1472,17 @@ - return 0; - } - -+/* Wait for a process to finish, and exit if a nonzero status is found. */ -+ -+int -+collect_wait (const char *prog) -+{ -+ int status; -+ -+ pwait (pid, &status, 0); -+ return collect_status (prog, status); -+} -+ - static void - do_wait (const char *prog) - { -@@ -1492,6 +1494,19 @@ - } - } - -+static void -+do_read_wait (const char *prog, FILE *inf) -+{ -+ int status; -+ -+ pex_read_close (pid, inf, &status, 0); -+ status = collect_status (prog, status); -+ if (status != 0) -+ { -+ error ("%s returned %d exit status", prog, status); -+ collect_exit (status); -+ } -+} - - /* Execute a program, and wait for the reply. */ - -@@ -1532,7 +1547,7 @@ - if (redir) - { - /* Open response file. */ -- redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT); -+ redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT, S_IWUSR); - - /* Duplicate the stdout and stderr file handles - so they can be restored later. */ -@@ -1995,9 +2010,10 @@ - char *real_nm_argv[4]; - const char **nm_argv = (const char **) real_nm_argv; - int argc = 0; -- int pipe_fd[2]; - char *p, buf[1024]; - FILE *inf; -+ char *errmsg_fmt; -+ char *errmsg_arg; - - if (which_pass == PASS_SECOND) - return; -@@ -2013,13 +2029,6 @@ - nm_argv[argc++] = prog_name; - nm_argv[argc++] = (char *) 0; - -- if (pipe (pipe_fd) < 0) -- fatal_perror ("pipe"); -- -- inf = fdopen (pipe_fd[0], "r"); -- if (inf == (FILE *) 0) -- fatal_perror ("fdopen"); -- - /* Trace if needed. */ - if (vflag) - { -@@ -2035,36 +2044,16 @@ - fflush (stdout); - fflush (stderr); - -- /* Spawn child nm on pipe. */ -- pid = vfork (); -- if (pid == -1) -- fatal_perror (VFORK_STRING); -- -- if (pid == 0) /* child context */ -- { -- /* setup stdout */ -- if (dup2 (pipe_fd[1], 1) < 0) -- fatal_perror ("dup2 %d 1", pipe_fd[1]); -- -- if (close (pipe_fd[0]) < 0) -- fatal_perror ("close %d", pipe_fd[0]); -- -- if (close (pipe_fd[1]) < 0) -- fatal_perror ("close %d", pipe_fd[1]); -- -- execv (nm_file_name, real_nm_argv); -- fatal_perror ("execv %s", nm_file_name); -- } -+ inf = pex_read (nm_file_name, real_nm_argv, nm_file_name, NULL, -+ &errmsg_fmt, &errmsg_arg, 0, &pid); -+ if (inf == (FILE *) 0) -+ fatal_perror (errmsg_fmt, errmsg_arg); - -- /* Parent context from here on. */ - int_handler = (void (*) (int)) signal (SIGINT, SIG_IGN); - #ifdef SIGQUIT - quit_handler = (void (*) (int)) signal (SIGQUIT, SIG_IGN); - #endif - -- if (close (pipe_fd[1]) < 0) -- fatal_perror ("close %d", pipe_fd[1]); -- - if (debug) - fprintf (stderr, "\nnm output with constructors/destructors.\n"); - -@@ -2137,10 +2126,7 @@ - if (debug) - fprintf (stderr, "\n"); - -- if (fclose (inf) != 0) -- fatal_perror ("fclose"); -- -- do_wait (nm_file_name); -+ do_read_wait (nm_file_name, inf); - - signal (SIGINT, int_handler); - #ifdef SIGQUIT -@@ -2148,269 +2134,6 @@ - #endif - } - --#if SUNOS4_SHARED_LIBRARIES -- --/* Routines to scan the SunOS 4 _DYNAMIC structure to find shared libraries -- that the output file depends upon and their initialization/finalization -- routines, if any. */ -- --#include --#include --#include --#include --#include --#include --#include -- --/* pointers to the object file */ --unsigned object; /* address of memory mapped file */ --unsigned objsize; /* size of memory mapped to file */ --char * code; /* pointer to code segment */ --char * data; /* pointer to data segment */ --struct nlist *symtab; /* pointer to symbol table */ --struct link_dynamic *ld; --struct link_dynamic_2 *ld_2; --struct head libraries; -- --/* Map the file indicated by NAME into memory and store its address. */ -- --static void --mapfile (const char *name) --{ -- int fp; -- struct stat s; -- if ((fp = open (name, O_RDONLY)) == -1) -- fatal ("unable to open file '%s'", name); -- if (fstat (fp, &s) == -1) -- fatal ("unable to stat file '%s'", name); -- -- objsize = s.st_size; -- object = (unsigned) mmap (0, objsize, PROT_READ|PROT_WRITE, MAP_PRIVATE, -- fp, 0); -- if (object == (unsigned)-1) -- fatal ("unable to mmap file '%s'", name); -- -- close (fp); --} -- --/* Helpers for locatelib. */ -- --static const char *libname; -- --static int --libselect (struct direct *d) --{ -- return (strncmp (libname, d->d_name, strlen (libname)) == 0); --} -- --/* If one file has an additional numeric extension past LIBNAME, then put -- that one first in the sort. If both files have additional numeric -- extensions, then put the one with the higher number first in the sort. -- -- We must verify that the extension is numeric, because Sun saves the -- original versions of patched libraries with a .FCS extension. Files with -- invalid extensions must go last in the sort, so that they will not be used. */ -- --static int --libcompare (struct direct **d1, struct direct **d2) --{ -- int i1, i2 = strlen (libname); -- char *e1 = (*d1)->d_name + i2; -- char *e2 = (*d2)->d_name + i2; -- -- while (*e1 && *e2 && *e1 == '.' && *e2 == '.' -- && e1[1] && ISDIGIT (e1[1]) && e2[1] && ISDIGIT (e2[1])) -- { -- ++e1; -- ++e2; -- i1 = strtol (e1, &e1, 10); -- i2 = strtol (e2, &e2, 10); -- if (i1 != i2) -- return i1 - i2; -- } -- -- if (*e1) -- { -- /* It has a valid numeric extension, prefer this one. */ -- if (*e1 == '.' && e1[1] && ISDIGIT (e1[1])) -- return 1; -- /* It has an invalid numeric extension, must prefer the other one. */ -- else -- return -1; -- } -- else if (*e2) -- { -- /* It has a valid numeric extension, prefer this one. */ -- if (*e2 == '.' && e2[1] && ISDIGIT (e2[1])) -- return -1; -- /* It has an invalid numeric extension, must prefer the other one. */ -- else -- return 1; -- } -- else -- return 0; --} -- --/* Given the name NAME of a dynamic dependency, find its pathname and add -- it to the list of libraries. */ -- --static void --locatelib (const char *name) --{ -- static const char **l; -- static int cnt; -- char buf[MAXPATHLEN]; -- char *p, *q; -- const char **pp; -- -- if (l == 0) -- { -- char *ld_rules; -- char *ldr = 0; -- /* counting elements in array, need 1 extra for null */ -- cnt = 1; -- ld_rules = (char *) (ld_2->ld_rules + code); -- if (ld_rules) -- { -- cnt++; -- for (; *ld_rules != 0; ld_rules++) -- if (*ld_rules == ':') -- cnt++; -- ld_rules = (char *) (ld_2->ld_rules + code); -- ldr = xstrdup (ld_rules); -- } -- p = getenv ("LD_LIBRARY_PATH"); -- q = 0; -- if (p) -- { -- cnt++; -- for (q = p ; *q != 0; q++) -- if (*q == ':') -- cnt++; -- q = xstrdup (p); -- } -- l = xmalloc ((cnt + 3) * sizeof (char *)); -- pp = l; -- if (ldr) -- { -- *pp++ = ldr; -- for (; *ldr != 0; ldr++) -- if (*ldr == ':') -- { -- *ldr++ = 0; -- *pp++ = ldr; -- } -- } -- if (q) -- { -- *pp++ = q; -- for (; *q != 0; q++) -- if (*q == ':') -- { -- *q++ = 0; -- *pp++ = q; -- } -- } -- /* built in directories are /lib, /usr/lib, and /usr/local/lib */ -- *pp++ = "/lib"; -- *pp++ = "/usr/lib"; -- *pp++ = "/usr/local/lib"; -- *pp = 0; -- } -- libname = name; -- for (pp = l; *pp != 0 ; pp++) -- { -- struct direct **namelist; -- int entries; -- if ((entries = scandir (*pp, &namelist, libselect, libcompare)) > 0) -- { -- sprintf (buf, "%s/%s", *pp, namelist[entries - 1]->d_name); -- add_to_list (&libraries, buf); -- if (debug) -- fprintf (stderr, "%s\n", buf); -- break; -- } -- } -- if (*pp == 0) -- { -- if (debug) -- notice ("not found\n"); -- else -- fatal ("dynamic dependency %s not found", name); -- } --} -- --/* Scan the _DYNAMIC structure of the output file to find shared libraries -- that it depends upon and any constructors or destructors they contain. */ -- --static void --scan_libraries (const char *prog_name) --{ -- struct exec *header; -- char *base; -- struct link_object *lo; -- char buff[MAXPATHLEN]; -- struct id *list; -- -- mapfile (prog_name); -- header = (struct exec *)object; -- if (N_BADMAG (*header)) -- fatal ("bad magic number in file '%s'", prog_name); -- if (header->a_dynamic == 0) -- return; -- -- code = (char *) (N_TXTOFF (*header) + (long) header); -- data = (char *) (N_DATOFF (*header) + (long) header); -- symtab = (struct nlist *) (N_SYMOFF (*header) + (long) header); -- -- if (header->a_magic == ZMAGIC && header->a_entry == 0x20) -- { -- /* shared object */ -- ld = (struct link_dynamic *) (symtab->n_value + code); -- base = code; -- } -- else -- { -- /* executable */ -- ld = (struct link_dynamic *) data; -- base = code-PAGSIZ; -- } -- -- if (debug) -- notice ("dynamic dependencies.\n"); -- -- ld_2 = (struct link_dynamic_2 *) ((long) ld->ld_un.ld_2 + (long)base); -- for (lo = (struct link_object *) ld_2->ld_need; lo; -- lo = (struct link_object *) lo->lo_next) -- { -- char *name; -- lo = (struct link_object *) ((long) lo + code); -- name = (char *) (code + lo->lo_name); -- if (lo->lo_library) -- { -- if (debug) -- fprintf (stderr, "\t-l%s.%d => ", name, lo->lo_major); -- sprintf (buff, "lib%s.so.%d.%d", name, lo->lo_major, lo->lo_minor); -- locatelib (buff); -- } -- else -- { -- if (debug) -- fprintf (stderr, "\t%s\n", name); -- add_to_list (&libraries, name); -- } -- } -- -- if (debug) -- fprintf (stderr, "\n"); -- -- /* Now iterate through the library list adding their symbols to -- the list. */ -- for (list = libraries.first; list; list = list->next) -- scan_prog_file (list->name, PASS_LIB); --} -- --#else /* SUNOS4_SHARED_LIBRARIES */ - #ifdef LDD_SUFFIX - - /* Use the List Dynamic Dependencies program to find shared libraries that -@@ -2427,9 +2150,10 @@ - char *real_ldd_argv[4]; - const char **ldd_argv = (const char **) real_ldd_argv; - int argc = 0; -- int pipe_fd[2]; - char buf[1024]; - FILE *inf; -+ char *errmsg_fmt; -+ char *errmsg_arg; - - /* If we do not have an `ldd', complain. */ - if (ldd_file_name == 0) -@@ -2464,26 +2188,10 @@ - fflush (stdout); - fflush (stderr); - -- /* Spawn child ldd on pipe. */ -- pid = vfork (); -- if (pid == -1) -- fatal_perror (VFORK_STRING); -- -- if (pid == 0) /* child context */ -- { -- /* setup stdout */ -- if (dup2 (pipe_fd[1], 1) < 0) -- fatal_perror ("dup2 %d 1", pipe_fd[1]); -- -- if (close (pipe_fd[0]) < 0) -- fatal_perror ("close %d", pipe_fd[0]); -- -- if (close (pipe_fd[1]) < 0) -- fatal_perror ("close %d", pipe_fd[1]); -- -- execv (ldd_file_name, real_ldd_argv); -- fatal_perror ("execv %s", ldd_file_name); -- } -+ inf = pex_read (ldd_file_name, real_ldd_argv, ldd_file_name, NULL, -+ &errmsg_fmt, &errmsg_arg, 0, &pid); -+ if (inf == (FILE *) 0) -+ fatal_perror (errmsg_fmt, errmsg_arg); - - /* Parent context from here on. */ - int_handler = (void (*) (int)) signal (SIGINT, SIG_IGN); -@@ -2491,9 +2199,6 @@ - quit_handler = (void (*) (int)) signal (SIGQUIT, SIG_IGN); - #endif - -- if (close (pipe_fd[1]) < 0) -- fatal_perror ("close %d", pipe_fd[1]); -- - if (debug) - notice ("\nldd output with constructors/destructors.\n"); - -@@ -2530,10 +2235,7 @@ - if (debug) - fprintf (stderr, "\n"); - -- if (fclose (inf) != 0) -- fatal_perror ("fclose"); -- -- do_wait (ldd_file_name); -+ do_read_wait (ldd_file_name, inf); - - signal (SIGINT, int_handler); - #ifdef SIGQUIT -@@ -2547,7 +2249,6 @@ - } - - #endif /* LDD_SUFFIX */ --#endif /* SUNOS4_SHARED_LIBRARIES */ - - #endif /* OBJECT_FORMAT_NONE */ - -diff -NBaur gcc-3.4.3/gcc/config/arm/arm.md gcc-3.4.3-new/gcc/config/arm/arm.md ---- gcc-3.4.3/gcc/config/arm/arm.md Wed Aug 25 16:46:19 2004 -+++ gcc-3.4.3-new/gcc/config/arm/arm.md Fri Jan 21 10:25:50 2005 -@@ -7205,6 +7205,12 @@ - { - if (TARGET_CALLER_INTERWORKING) - return \"bl\\t%__interwork_call_via_%0\"; -+ else if (arm_arch5) -+ return \"blx\\t%0\"; -+ else if (TARGET_LONG_CALLS) -+ /* For long calls the __call_via functions might not be near -+ this branch, so we have to synthesise their actions. */ -+ return \"bl\\t0f\\n\\tb\\t1f\\n0:\\tbx\\t%0\\n1:\"; - else - return \"bl\\t%__call_via_%0\"; - }" -@@ -7222,6 +7228,12 @@ - { - if (TARGET_CALLER_INTERWORKING) - return \"bl\\t%__interwork_call_via_%1\"; -+ else if (arm_arch5) -+ return \"blx\\t%1\"; -+ else if (TARGET_LONG_CALLS) -+ /* For long calls the __call_via functions might not be near -+ this branch, so we have to synthesise their actions. */ -+ return \"bl\\t0f\\n\\tb\\t1f\\n0:\\tbx\\t%1\\n1:\"; - else - return \"bl\\t%__call_via_%1\"; - }" -diff -NBaur gcc-3.4.3/gcc/config/arm/t-arm-elf gcc-3.4.3-new/gcc/config/arm/t-arm-elf ---- gcc-3.4.3/gcc/config/arm/t-arm-elf Tue Sep 30 11:21:41 2003 -+++ gcc-3.4.3-new/gcc/config/arm/t-arm-elf Thu Mar 17 11:45:57 2005 -@@ -18,24 +18,24 @@ - # MULTILIB_DIRNAMES += le be - # MULTILIB_MATCHES += mbig-endian=mbe mlittle-endian=mle - # --# MULTILIB_OPTIONS += mhard-float/msoft-float --# MULTILIB_DIRNAMES += fpu soft --# MULTILIB_EXCEPTIONS += *mthumb/*mhard-float* -+MULTILIB_OPTIONS += mhard-float/msoft-float -+MULTILIB_DIRNAMES += fpu soft -+MULTILIB_EXCEPTIONS += *mthumb/*mhard-float* - # - # MULTILIB_OPTIONS += mapcs-32/mapcs-26 - # MULTILIB_DIRNAMES += 32bit 26bit - # MULTILIB_EXCEPTIONS += *mthumb/*mapcs-26* - # --# MULTILIB_OPTIONS += mno-thumb-interwork/mthumb-interwork --# MULTILIB_DIRNAMES += normal interwork --# MULTILIB_EXCEPTIONS += *mapcs-26/*mthumb-interwork* -+MULTILIB_OPTIONS += mno-thumb-interwork/mthumb-interwork -+MULTILIB_DIRNAMES += normal interwork -+MULTILIB_EXCEPTIONS += *mapcs-26/*mthumb-interwork* - # - # MULTILIB_OPTIONS += fno-leading-underscore/fleading-underscore - # MULTILIB_DIRNAMES += elf under - # --# MULTILIB_OPTIONS += mcpu=arm7 --# MULTILIB_DIRNAMES += nofmult --# MULTILIB_EXCEPTIONS += *mthumb*/*mcpu=arm7* -+MULTILIB_OPTIONS += mcpu=arm7 -+MULTILIB_DIRNAMES += nofmult -+MULTILIB_EXCEPTIONS += *mthumb*/*mcpu=arm7* - # # Note: the multilib_exceptions matches both -mthumb and - # # -mthumb-interwork - # # -@@ -44,21 +44,21 @@ - # # -mcpu=arm7. Note that in the following the ? is interpreted as - # # an = for the purposes of matching command line options. - # # FIXME: There ought to be a better way to do this. --# MULTILIB_MATCHES += mcpu?arm7=mcpu?arm7d --# MULTILIB_MATCHES += mcpu?arm7=mcpu?arm7di --# MULTILIB_MATCHES += mcpu?arm7=mcpu?arm70 --# MULTILIB_MATCHES += mcpu?arm7=mcpu?arm700 --# MULTILIB_MATCHES += mcpu?arm7=mcpu?arm700i --# MULTILIB_MATCHES += mcpu?arm7=mcpu?arm710 --# MULTILIB_MATCHES += mcpu?arm7=mcpu?arm710c --# MULTILIB_MATCHES += mcpu?arm7=mcpu?arm7100 --# MULTILIB_MATCHES += mcpu?arm7=mcpu?arm7500 --# MULTILIB_MATCHES += mcpu?arm7=mcpu?arm7500fe --# MULTILIB_MATCHES += mcpu?arm7=mcpu?arm6 --# MULTILIB_MATCHES += mcpu?arm7=mcpu?arm60 --# MULTILIB_MATCHES += mcpu?arm7=mcpu?arm600 --# MULTILIB_MATCHES += mcpu?arm7=mcpu?arm610 --# MULTILIB_MATCHES += mcpu?arm7=mcpu?arm620 -+MULTILIB_MATCHES += mcpu?arm7=mcpu?arm7d -+MULTILIB_MATCHES += mcpu?arm7=mcpu?arm7di -+MULTILIB_MATCHES += mcpu?arm7=mcpu?arm70 -+MULTILIB_MATCHES += mcpu?arm7=mcpu?arm700 -+MULTILIB_MATCHES += mcpu?arm7=mcpu?arm700i -+MULTILIB_MATCHES += mcpu?arm7=mcpu?arm710 -+MULTILIB_MATCHES += mcpu?arm7=mcpu?arm710c -+MULTILIB_MATCHES += mcpu?arm7=mcpu?arm7100 -+MULTILIB_MATCHES += mcpu?arm7=mcpu?arm7500 -+MULTILIB_MATCHES += mcpu?arm7=mcpu?arm7500fe -+MULTILIB_MATCHES += mcpu?arm7=mcpu?arm6 -+MULTILIB_MATCHES += mcpu?arm7=mcpu?arm60 -+MULTILIB_MATCHES += mcpu?arm7=mcpu?arm600 -+MULTILIB_MATCHES += mcpu?arm7=mcpu?arm610 -+MULTILIB_MATCHES += mcpu?arm7=mcpu?arm620 - - EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o crti.o crtn.o - -diff -NBaur gcc-3.4.3/gcc/config/i386/cygming.h gcc-3.4.3-new/gcc/config/i386/cygming.h ---- gcc-3.4.3/gcc/config/i386/cygming.h Tue Jun 8 07:30:13 2004 -+++ gcc-3.4.3-new/gcc/config/i386/cygming.h Fri Jan 21 10:25:50 2005 -@@ -251,7 +251,7 @@ - unit may not be bound to undefined symbols in another translation unit - without user intervention. For instance, under Microsoft Windows - symbols must be explicitly imported from shared libraries (DLLs). */ --#define MULTIPLE_SYMBOL_SPACES -+#define MULTIPLE_SYMBOL_SPACES 1 - - extern void i386_pe_unique_section (TREE, int); - #define TARGET_ASM_UNIQUE_SECTION i386_pe_unique_section -@@ -308,7 +308,7 @@ - /* DWARF2 Unwinding doesn't work with exception handling yet. To make - it work, we need to build a libgcc_s.dll, and dcrt0.o should be - changed to call __register_frame_info/__deregister_frame_info. */ --#define DWARF2_UNWIND_INFO 0 -+#define DWARF2_UNWIND_INFO 1 - - /* Don't assume anything about the header files. */ - #define NO_IMPLICIT_EXTERN_C -diff -NBaur gcc-3.4.3/gcc/config/i386/i386.c gcc-3.4.3-new/gcc/config/i386/i386.c ---- gcc-3.4.3/gcc/config/i386/i386.c Wed Aug 25 06:19:08 2004 -+++ gcc-3.4.3-new/gcc/config/i386/i386.c Fri Jan 21 10:25:50 2005 -@@ -5242,7 +5242,7 @@ - GEN_INT (-allocate), -1); - else - { -- /* Only valid for Win32. */ -+ /* Only valid for Win32 */ - rtx eax = gen_rtx_REG (SImode, 0); - bool eax_live = ix86_eax_live_at_start_p (); - -diff -NBaur gcc-3.4.3/gcc/config/i386/mingw32-1.c gcc-3.4.3-new/gcc/config/i386/mingw32-1.c ---- gcc-3.4.3/gcc/config/i386/mingw32-1.c Thu Jan 1 00:00:00 1970 -+++ gcc-3.4.3-new/gcc/config/i386/mingw32-1.c Fri Jan 21 10:25:50 2005 -@@ -0,0 +1,41 @@ -+/* This replaces the use of stat and struct stat.st_ino to determine if -+ files are different in gcc.c (do_spec_1) handling of --save-temps -+ switch. -+ Contributed by Danny Smith (dannysmith@users.sourceforge.net) -+ Copyright 2003 Free Software Foundation, Inc. -+ -+This file is part of GCC. -+ -+GCC 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, or (at your option) any later -+version. -+ -+GCC 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 GCC; see the file COPYING. If not, write to the Free -+Software Foundation, 59 Temple Place - Suite 330, Boston, MA -+02111-1307, USA. */ -+ -+#include "config/i386/xm-mingw32.h" -+#define WIN32_LEAN_AND_MEAN -+#include -+ -+/* Return non-zero if src and dst filenames do not refer to same files. */ -+ -+int -+w32_file_id_cmp (const char * src, const char * dst) -+{ -+ char fullpath_src[MAX_PATH]; -+ char fullpath_dst[MAX_PATH]; -+ char* pfilename; -+ -+ /* Just compare full pathnames, without regard to case. */ -+ GetFullPathName (src, MAX_PATH, fullpath_src, &pfilename); -+ GetFullPathName (dst, MAX_PATH, fullpath_dst, &pfilename); -+ return (lstrcmpi (fullpath_src, fullpath_dst)); -+} -diff -NBaur gcc-3.4.3/gcc/config/i386/mingw32.h gcc-3.4.3-new/gcc/config/i386/mingw32.h ---- gcc-3.4.3/gcc/config/i386/mingw32.h Fri Sep 26 04:46:06 2003 -+++ gcc-3.4.3-new/gcc/config/i386/mingw32.h Fri Jan 21 10:25:50 2005 -@@ -67,7 +67,11 @@ - - #undef STARTFILE_SPEC - #define STARTFILE_SPEC "%{shared|mdll:dllcrt2%O%s} \ -- %{!shared:%{!mdll:crt2%O%s}} %{pg:gcrt2%O%s}" -+ %{!shared:%{!mdll:crt2%O%s}} %{pg:gcrt2%O%s} \ -+ %{!fno-exceptions:crtbegin%O%s}" -+ -+#undef ENDFILE_SPEC -+#define ENDFILE_SPEC "%{!fno-exceptions:crtend%O%s}" - - /* An additional prefix to try after the standard prefixes. */ - #undef MD_STARTFILE_PREFIX -diff -NBaur gcc-3.4.3/gcc/config/i386/t-cygming gcc-3.4.3-new/gcc/config/i386/t-cygming ---- gcc-3.4.3/gcc/config/i386/t-cygming Tue Sep 23 19:55:59 2003 -+++ gcc-3.4.3-new/gcc/config/i386/t-cygming Fri Jan 21 10:25:50 2005 -@@ -10,6 +10,8 @@ - # first. - LIBGCC2_INCLUDES = -I$(srcdir)/../winsup/w32api/include - -+LIB2FUNCS_EXTRA = $(srcdir)/config/i386/w32-shared-ptr.c -+ - winnt.o: $(srcdir)/config/i386/winnt.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ - $(TM_H) $(RTL_H) $(REGS_H) hard-reg-set.h output.h $(TREE_H) flags.h \ - $(TM_P_H) toplev.h $(HASHTAB_H) $(GGC_H) -diff -NBaur gcc-3.4.3/gcc/config/i386/t-mingw32 gcc-3.4.3-new/gcc/config/i386/t-mingw32 ---- gcc-3.4.3/gcc/config/i386/t-mingw32 Tue Jun 11 06:25:44 2002 -+++ gcc-3.4.3-new/gcc/config/i386/t-mingw32 Fri Jan 21 10:25:51 2005 -@@ -1,7 +1,8 @@ - # - # collect2 doesn't work for i386-mingw32* yet. - # --USE_COLLECT2= -+#USE_COLLECT2= - - # We hide calls to w32api needed for w32 thread support here: --LIB2FUNCS_EXTRA = $(srcdir)/config/i386/gthr-win32.c -+LIB2FUNCS_EXTRA += $(srcdir)/config/i386/gthr-win32.c -+ -diff -NBaur gcc-3.4.3/gcc/config/i386/w32-shared-ptr.c gcc-3.4.3-new/gcc/config/i386/w32-shared-ptr.c ---- gcc-3.4.3/gcc/config/i386/w32-shared-ptr.c Thu Jan 1 00:00:00 1970 -+++ gcc-3.4.3-new/gcc/config/i386/w32-shared-ptr.c Fri Jan 21 10:25:51 2005 -@@ -0,0 +1,244 @@ -+/* -+ * w32-shared-ptr.c -+ * -+ * Share informations between EXE/DLLs without using an -+ * additional DLL. -+ * -+ * Contributors: -+ * Created by Adriano dos Santos Fernandes -+ * Enhanced by Thomas Pfaff -+ * -+ * THIS SOFTWARE IS NOT COPYRIGHTED -+ * -+ * This source code is offered for use in the public domain. You may -+ * use, modify or distribute it freely. -+ * -+ * This code is distributed in the hope that it will be useful but -+ * WITHOUT ANY WARRANTY. ALL WARRENTIES, EXPRESS OR IMPLIED ARE HEREBY -+ * DISCLAMED. This includes but is not limited to warrenties of -+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -+ * -+ */ -+ -+#ifdef __MINGW32__ -+#undef _CRTIMP -+#define _CRTIMP -+#endif -+ -+#include -+#include -+#ifdef __CYGWIN__ -+#include -+#endif -+#ifdef DEBUG -+#include -+#endif -+ -+#include "tconfig.h" -+#include "tsystem.h" -+#include "gthr.h" -+ -+#include "w32-shared-ptr.h" -+ -+#if defined (__CYGWIN__) /* FIXME: This shouldn't be necessary. */ -+typedef unsigned short ATOM; -+ATOM __attribute__ ((stdcall)) AddAtomA(const char*); -+ATOM __attribute__ ((stdcall)) FindAtomA(const char*); -+unsigned int __attribute__ ((stdcall)) GetAtomNameA(ATOM,char*,int); -+#else -+#define WIN32_LEAN_AND_MEAN -+#include -+#endif -+ -+W32_EH_SHARED * __w32_sharedptr; -+ -+void ** __w32_sharedptr_terminate; -+void ** __w32_sharedptr_unexpected; -+ -+ -+#define W32_ATOM_SUFFIX "-LIBGCCW32-EH" -+ -+#ifdef __USING_SJLJ_EXCEPTIONS__ -+#define SJLJ_SUFFIX "-SJLJ" -+#else -+#define SJLJ_SUFFIX -+#endif -+ -+#if __GTHREADS -+#define GTHR_SUFFIX "-GTHR" -+#else -+#define GTHR_SUFFIX -+#endif -+ -+#ifdef __CYGWIN__ -+#define SYS_SUFFIX "-CYGWIN" -+#else -+#define SYS_SUFFIX "-MINGW32" -+#endif -+ -+static const char w32_atom_suffix[] = W32_ATOM_SUFFIX SJLJ_SUFFIX GTHR_SUFFIX SYS_SUFFIX; -+ -+#define SHAREDPTR_BIT1 'A' -+#define SHAREDPTR_BIT0 'a' -+ -+#define SHAREDPTR_BITS (sizeof(W32_EH_SHARED*)*8) -+#define SHARED_ATOM_NAME_LEN (SHAREDPTR_BITS + sizeof(w32_atom_suffix)) -+ -+static ATOM __w32_sharedptr_set (W32_EH_SHARED *w32_sharedptr); -+static W32_EH_SHARED * __w32_sharedptr_get (ATOM atom); -+static void __w32_sharedptr_default_unexpected(void); -+ -+#ifdef __CYGWIN__ -+static void __w32_sharedptr_fixup_after_fork (void); -+#endif -+ -+static void __w32_sharedptr_default_unexpected(void) -+{ -+ ((void(*)(void))__w32_sharedptr->terminate)(); -+} -+ -+static void __w32_eh_shared_initialize (W32_EH_SHARED *w32_sharedptr) -+{ -+#ifdef __GTHREAD_MUTEX_INIT -+ static __gthread_mutex_t dw2_object_mutex = __GTHREAD_MUTEX_INIT; -+#else -+ static __gthread_mutex_t dw2_object_mutex; -+#endif -+#ifdef __GTHREAD_MUTEX_INIT_FUNCTION -+ static __gthread_once_t dw2_once = __GTHREAD_ONCE_INIT; -+#endif -+ -+#ifdef __USING_SJLJ_EXCEPTIONS__ -+#if __GTHREADS -+ static __gthread_key_t sjl_fc_key; -+ static __gthread_once_t sjl_once = __GTHREAD_ONCE_INIT; -+#endif -+#endif -+ -+ memset (w32_sharedptr, 0, sizeof(W32_EH_SHARED)); -+ -+ w32_sharedptr->size = sizeof(W32_EH_SHARED); -+ -+ w32_sharedptr->terminate = (void*)abort; -+ w32_sharedptr->unexpected = (void*)__w32_sharedptr_default_unexpected; -+ -+ w32_sharedptr->dw2_object_mutex = dw2_object_mutex; -+#ifdef __GTHREAD_MUTEX_INIT_FUNCTION -+ w32_sharedptr->dw2_once = dw2_once; -+#endif -+ -+#ifdef __USING_SJLJ_EXCEPTIONS__ -+ w32_sharedptr->sjlj_fc_static = NULL; -+#if __GTHREADS -+ w32_sharedptr->sjlj_fc_key = sjl_fc_key; -+ w32_sharedptr->sjlj_use_fc_key = -1; -+ w32_sharedptr->sjlj_once = sjl_once; -+#endif -+#endif -+} -+ -+void __w32_sharedptr_initialize (void) -+{ -+ W32_EH_SHARED *w32_sharedptr; -+ char s[SHARED_ATOM_NAME_LEN]; -+ ATOM atom; -+ -+ if (__w32_sharedptr) -+ return; -+ -+ memset (s, SHAREDPTR_BIT1, SHAREDPTR_BITS); -+ memcpy (&(s[SHAREDPTR_BITS]), w32_atom_suffix, sizeof(w32_atom_suffix)); -+ -+ atom = FindAtomA (s); -+ if (atom) -+ w32_sharedptr = __w32_sharedptr_get (atom); -+ else -+ { -+ w32_sharedptr = (W32_EH_SHARED *) malloc (sizeof(W32_EH_SHARED)); -+ if (!w32_sharedptr) -+ abort (); -+ -+ __w32_eh_shared_initialize (w32_sharedptr); -+ -+ if (__w32_sharedptr_set (w32_sharedptr)) -+ { -+#ifdef __CYGWIN__ -+ /* recreate atom after fork */ -+ pthread_atfork (NULL,NULL,__w32_sharedptr_fixup_after_fork); -+#endif -+ } -+ else -+ { -+ free (w32_sharedptr); -+ w32_sharedptr = __w32_sharedptr_get (FindAtomA (s)); -+ } -+ } -+ -+ __w32_sharedptr_terminate = &w32_sharedptr->terminate; -+ __w32_sharedptr_unexpected = &w32_sharedptr->unexpected; -+ -+ /* THIS MUST BE THE LAST STEP */ -+ __w32_sharedptr = w32_sharedptr; -+} -+ -+static ATOM __w32_sharedptr_set (W32_EH_SHARED *w32_sharedptr) -+{ -+ int i; -+ int bit; -+ char s[SHARED_ATOM_NAME_LEN]; -+ ATOM atom; -+ -+ /* This should optimize out entirely by O2 */ -+ if (sizeof(bit) != sizeof(w32_sharedptr)) -+ abort (); -+ -+ for (i = SHAREDPTR_BITS - 1, bit = 1; i >= 0; --i, bit <<= 1) -+ s[i] = ((int)w32_sharedptr) & bit ? SHAREDPTR_BIT1 : -+ SHAREDPTR_BIT0; -+ -+ memcpy (&(s[SHAREDPTR_BITS]), w32_atom_suffix, sizeof(w32_atom_suffix)); -+ -+ atom = AddAtomA (s); -+ /* Sanity check to avoid race by concurrent initialization */ -+ if (!atom || __w32_sharedptr_get (atom) != w32_sharedptr) -+ return 0; -+ -+#ifdef DEBUG -+ printf ("%s: set sharedptr: (%p):%s\n", -+ __FUNCTION__,w32_sharedptr, s); -+#endif -+ -+ return atom; -+} -+ -+static W32_EH_SHARED *__w32_sharedptr_get (ATOM atom) -+{ -+ W32_EH_SHARED *w32_sharedptr = NULL; -+ int i; -+ int bit; -+ char s[SHARED_ATOM_NAME_LEN]; -+ -+ /* If this fails something went wrong */ -+ if (!GetAtomNameA (atom, s, sizeof(s))) -+ abort (); -+ -+ for (i = SHAREDPTR_BITS - 1, bit = 1; i >= 0; --i, bit <<= 1) -+ (int)w32_sharedptr |= s[i] == SHAREDPTR_BIT1 ? bit : 0; -+ -+ if (w32_sharedptr->size != sizeof(W32_EH_SHARED)) -+ abort (); -+ -+#ifdef DEBUG -+ printf ("%s: got sharedptr (%p): %s\n", -+ __FUNCTION__, w32_sharedptr, s); -+#endif -+ return w32_sharedptr; -+} -+ -+#ifdef __CYGWIN__ -+static void __w32_sharedptr_fixup_after_fork (void) -+{ -+ if (!__w32_sharedptr_set (__w32_sharedptr)) -+ abort (); -+} -+#endif -diff -NBaur gcc-3.4.3/gcc/config/i386/w32-shared-ptr.h gcc-3.4.3-new/gcc/config/i386/w32-shared-ptr.h ---- gcc-3.4.3/gcc/config/i386/w32-shared-ptr.h Thu Jan 1 00:00:00 1970 -+++ gcc-3.4.3-new/gcc/config/i386/w32-shared-ptr.h Fri Jan 21 10:25:51 2005 -@@ -0,0 +1,65 @@ -+/* -+ * w32-shared-ptr.h -+ * -+ * Contributors: -+ * Created by Thomas Pfaff -+ * -+ * THIS SOFTWARE IS NOT COPYRIGHTED -+ * -+ * This source code is offered for use in the public domain. You may -+ * use, modify or distribute it freely. -+ * -+ * This code is distributed in the hope that it will be useful but -+ * WITHOUT ANY WARRANTY. ALL WARRENTIES, EXPRESS OR IMPLIED ARE HEREBY -+ * DISCLAMED. This includes but is not limited to warrenties of -+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -+ * -+ */ -+ -+#ifndef GCC_W32_SHARED_PTR_H -+#define GCC_W32_SHARED_PTR_H -+ -+#ifdef __cplusplus -+extern "C" { -+#endif -+ -+typedef struct -+{ -+ int size; -+ -+ void *terminate; -+ void *unexpected; -+ -+ void *dw2_unseen_objects; -+ void *dw2_seen_objects; -+ __gthread_mutex_t dw2_object_mutex; -+#ifdef __GTHREAD_MUTEX_INIT_FUNCTION -+ __gthread_once_t dw2_once; -+#endif -+ const void *dw2_marker; -+ -+#ifdef __USING_SJLJ_EXCEPTIONS__ -+ void* sjlj_fc_static; -+#if __GTHREADS -+ __gthread_key_t sjlj_fc_key; -+ int sjlj_use_fc_key; -+ __gthread_once_t sjlj_once; -+#endif -+#endif -+ -+} W32_EH_SHARED; -+ -+extern W32_EH_SHARED *__w32_sharedptr; -+ -+extern void ** __w32_sharedptr_terminate; -+extern void ** __w32_sharedptr_unexpected; -+ -+extern void __w32_sharedptr_initialize (void); -+ -+#define W32_SHAREDPTR_INITIALIZE() if (!__w32_sharedptr) __w32_sharedptr_initialize () -+ -+#ifdef __cplusplus -+} -+#endif -+ -+#endif -diff -NBaur gcc-3.4.3/gcc/config/i386/winnt.c gcc-3.4.3-new/gcc/config/i386/winnt.c ---- gcc-3.4.3/gcc/config/i386/winnt.c Tue Mar 23 23:18:31 2004 -+++ gcc-3.4.3-new/gcc/config/i386/winnt.c Fri Jan 21 10:25:51 2005 -@@ -262,7 +262,8 @@ - } - - /* Don't allow definitions of static data members in dllimport class, -- Just ignore attribute for vtable data. */ -+ If vtable data is marked as DECL_EXTERNAL, import it; otherwise just -+ ignore the attribute. */ - else if (TREE_CODE (decl) == VAR_DECL - && TREE_STATIC (decl) && TREE_PUBLIC (decl) - && !DECL_EXTERNAL (decl) && context_imp) -@@ -347,6 +348,13 @@ - - XEXP (DECL_RTL (decl), 0) = - gen_rtx (SYMBOL_REF, Pmode, IDENTIFIER_POINTER (idp)); -+ -+#if 0 -+ /* If we are keeping inline functions, make sure we export -+ the function definition even if not used. */ -+ if (flag_keep_inline_functions && TREE_CODE (decl) == FUNCTION_DECL) -+ mark_referenced (DECL_ASSEMBLER_NAME (decl)); -+#endif - } - - /* Mark a DECL as being dllimport'd. */ -@@ -559,7 +567,7 @@ - return str; - } - --/* Also strip the stdcall suffix. */ -+/* Also strip the fastcall prefix and stdcall suffix. */ - - const char * - i386_pe_strip_name_encoding_full (const char *str) -@@ -567,6 +575,11 @@ - const char *p; - const char *name = i386_pe_strip_name_encoding (str); - -+ /* Strip leading '@' on fastcall symbols. */ -+ if (*name == '@') -+ name++; -+ -+ /* Strip trailing '@n'. */ - p = strchr (name, '@'); - if (p) - return ggc_alloc_string (name, p - name); -@@ -598,9 +611,9 @@ - } - } - else if ((name[0] == FASTCALL_PREFIX) -- || (strncmp (name, DLL_EXPORT_PREFIX, strlen (DLL_EXPORT_PREFIX) -+ || (strncmp (name, DLL_EXPORT_PREFIX, strlen (DLL_EXPORT_PREFIX)) - == 0 -- && name[strlen (DLL_EXPORT_PREFIX)] == FASTCALL_PREFIX))) -+ && name[strlen (DLL_EXPORT_PREFIX)] == FASTCALL_PREFIX)) - /* A fastcall symbol. */ - { - fprintf (stream, "%s", -@@ -828,7 +841,7 @@ - struct extern_list *p; - - ix86_file_end (); -- -+ if (write_symbols != SDB_DEBUG) - for (p = extern_head; p != NULL; p = p->next) - { - tree decl; -diff -NBaur gcc-3.4.3/gcc/config/i386/x-mingw32 gcc-3.4.3-new/gcc/config/i386/x-mingw32 ---- gcc-3.4.3/gcc/config/i386/x-mingw32 Wed May 28 22:06:23 2003 -+++ gcc-3.4.3-new/gcc/config/i386/x-mingw32 Fri Jan 21 10:25:51 2005 -@@ -2,3 +2,26 @@ - # Make local_includedir relative to EXEC_PREFIX - # - local_includedir=$(libsubdir)/$(unlibsubdir)/..`echo $(exec_prefix) | sed -e 's|^$(prefix)||' -e 's|/[^/]*|/..|g'`/include -+STMP_FIXINC= -+# -+# host runtime lib's printf uses 'I64' format specifier prefix instead -+# of 'll' for HOST_WIDEST_INT_PRINT_*. See hwint.h. -+# Avoid warnings while bootstrapping. -+# -+bt-load.o-warn = -Wno-format -+cfg.o-warn = -Wno-format -+gcov-dump.o-warn = -Wno-format -+gcov.o-warn = -Wno-format -+loop-unroll.o-warn = -Wno-format -+predict.o-warn = -Wno-format -+profile.o-warn = -Wno-format -+ -+# -+# For HOST_FILE_ID_CMP for mingw32. -+# -+EXTRA_GCC_OBJS = mingw32-1.o -+ -+mingw32-1.o: $(srcdir)/config/i386/mingw32-1.c \ -+ $(srcdir)/config/i386/xm-mingw32.h -+ $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ -+ $(srcdir)/config/i386/mingw32-1.c -diff -NBaur gcc-3.4.3/gcc/config/i386/x-mingw32.patch gcc-3.4.3-new/gcc/config/i386/x-mingw32.patch ---- gcc-3.4.3/gcc/config/i386/x-mingw32.patch Thu Jan 1 00:00:00 1970 -+++ gcc-3.4.3-new/gcc/config/i386/x-mingw32.patch Fri Jan 21 10:25:51 2005 -@@ -0,0 +1,10 @@ -+--- x-mingw32.orig Sat May 15 18:33:41 2004 -++++ x-mingw32 Tue May 11 13:17:28 2004 -+@@ -2,6 +2,7 @@ -+ # Make local_includedir relative to EXEC_PREFIX -+ # -+ local_includedir=$(libsubdir)/$(unlibsubdir)/..`echo $(exec_prefix) | sed -e 's|^$(prefix)||' -e 's|/[^/]*|/..|g'`/include -++STMP_FIXINC= -+ # -+ # host runtime lib's printf uses 'I64' format specifier prefix instead -+ # of 'll' for HOST_WIDEST_INT_PRINT_*. See hwint.h. -diff -NBaur gcc-3.4.3/gcc/config/i386/xm-mingw32.h gcc-3.4.3-new/gcc/config/i386/xm-mingw32.h ---- gcc-3.4.3/gcc/config/i386/xm-mingw32.h Sat Jan 31 06:18:23 2004 -+++ gcc-3.4.3-new/gcc/config/i386/xm-mingw32.h Fri Jan 21 10:25:51 2005 -@@ -27,3 +27,18 @@ - - /* This is the name of the null device on windows. */ - #define HOST_BIT_BUCKET "nul" -+ -+/* Windows way to build quoted strings for COLLECT_GCC_OPTIONS -+ environment variable. */ -+#define HOST_QUOTE_STR "\"" -+#define HOST_QUOTE_CHAR '"' -+#define HOST_QUOTED_QUOTE_STR "\"\\\"\"" -+ -+/* Override the default of "ll" in hwint.t. */ -+#define HOST_LL_PREFIX "I64" -+ -+/* This replaces the use of stat to determine if files are different -+ in gcc.c (do_spec_1) handling of --save-temps switch. */ -+extern int -+w32_file_id_cmp (const char *, const char *); -+#define HOST_FILE_ID_CMP(SRC,DST) w32_file_id_cmp (SRC, DST) -diff -NBaur gcc-3.4.3/gcc/config/rs6000/rs6000.c gcc-3.4.3-new/gcc/config/rs6000/rs6000.c ---- gcc-3.4.3/gcc/config/rs6000/rs6000.c Fri Oct 22 20:19:35 2004 -+++ gcc-3.4.3-new/gcc/config/rs6000/rs6000.c Fri Jan 21 10:57:02 2005 -@@ -10526,22 +10526,27 @@ - : gen_adddi3 (breg, breg, delta_rtx)); - src = gen_rtx_MEM (mode, breg); - } -+ else if (! offsettable_memref_p (src)) -+ { -+ rtx newsrc, basereg; -+ basereg = gen_rtx_REG (Pmode, reg); -+ emit_insn (gen_rtx_SET (VOIDmode, basereg, XEXP (src, 0))); -+ newsrc = gen_rtx_MEM (GET_MODE (src), basereg); -+ MEM_COPY_ATTRIBUTES (newsrc, src); -+ src = newsrc; -+ } - -- /* We have now address involving an base register only. -- If we use one of the registers to address memory, -- we have change that register last. */ -- -- breg = (GET_CODE (XEXP (src, 0)) == PLUS -- ? XEXP (XEXP (src, 0), 0) -- : XEXP (src, 0)); -- -- if (!REG_P (breg)) -- abort(); -- -- if (REGNO (breg) >= REGNO (dst) -+ breg = XEXP (src, 0); -+ if (GET_CODE (breg) == PLUS || GET_CODE (breg) == LO_SUM) -+ breg = XEXP (breg, 0); -+ -+ /* If the base register we are using to address memory is -+ also a destination reg, then change that register last. */ -+ if (REG_P (breg) -+ && REGNO (breg) >= REGNO (dst) - && REGNO (breg) < REGNO (dst) + nregs) - j = REGNO (breg) - REGNO (dst); -- } -+ } - - if (GET_CODE (dst) == MEM && INT_REGNO_P (reg)) - { -@@ -10573,6 +10578,8 @@ - : gen_adddi3 (breg, breg, delta_rtx)); - dst = gen_rtx_MEM (mode, breg); - } -+ else if (! offsettable_memref_p (dst)) -+ abort (); - } - - for (i = 0; i < nregs; i++) -@@ -10582,7 +10589,7 @@ - if (j == nregs) - j = 0; - -- /* If compiler already emited move of first word by -+ /* If compiler already emitted move of first word by - store with update, no need to do anything. */ - if (j == 0 && used_update) - continue; -@@ -15200,6 +15207,17 @@ - rs6000_elf_in_small_data_p (tree decl) - { - if (rs6000_sdata == SDATA_NONE) -+ return false; -+ /* We want to merge strings, so we never consider them small data. */ -+ if (TREE_CODE (decl) == STRING_CST) -+ return false; -+ -+ /* Functions are never in the small data area. */ -+ if (TREE_CODE (decl) == FUNCTION_DECL) -+ return false; -+ -+ /* Thread-local vars can't go in the small data area. */ -+ if (TREE_CODE (decl) == VAR_DECL && DECL_THREAD_LOCAL (decl)) - return false; - - if (TREE_CODE (decl) == VAR_DECL && DECL_SECTION_NAME (decl)) -diff -NBaur gcc-3.4.3/gcc/config/rs6000/sysv4.h gcc-3.4.3-new/gcc/config/rs6000/sysv4.h ---- gcc-3.4.3/gcc/config/rs6000/sysv4.h Mon Oct 18 03:24:20 2004 -+++ gcc-3.4.3-new/gcc/config/rs6000/sysv4.h Fri Jan 21 10:25:51 2005 -@@ -444,7 +444,7 @@ - (TARGET_RELOCATABLE || (flag_pic && DEFAULT_ABI != ABI_AIX) \ - ? "\t.section\t\".got2\",\"aw\"" : "\t.section\t\".got1\",\"aw\"") - --#define SDATA_SECTION_ASM_OP "\t.section\t\".sdata\",\"aw\"" -+#define SDATA_SECTION_ASM_OP "\t.section\t\".sdata\",\"a\"" - #define SDATA2_SECTION_ASM_OP "\t.section\t\".sdata2\",\"a\"" - #define SBSS_SECTION_ASM_OP "\t.section\t\".sbss\",\"aw\",@nobits" - -diff -NBaur gcc-3.4.3/gcc/config.gcc gcc-3.4.3-new/gcc/config.gcc ---- gcc-3.4.3/gcc/config.gcc Wed Sep 8 16:16:10 2004 -+++ gcc-3.4.3-new/gcc/config.gcc Fri Apr 22 14:41:46 2005 -@@ -1163,6 +1163,8 @@ - xm_file=i386/xm-mingw32.h - tmake_file="i386/t-cygming i386/t-mingw32" - extra_objs=winnt.o -+ extra_parts="crtbegin.o crtend.o" -+ target_cpu_default=TARGET_CPU_DEFAULT_pentiumpro - if test x$enable_threads = xyes; then - thread_file='win32' - fi -@@ -1651,6 +1653,15 @@ - ;; - mmix-knuth-mmixware) - need_64bit_hwint=yes -+ ;; -+mn10200-*-*) -+ tm_file="dbxelf.h elfos.h svr4.h ${tm_file}" -+ if test x$stabs = xyes -+ then -+ tm_file="${tm_file} dbx.h" -+ fi -+ use_collect2=no -+ use_fixproto=yes - ;; - mn10300-*-*) - tm_file="dbxelf.h elfos.h svr4.h ${tm_file}" -diff -NBaur gcc-3.4.3/gcc/config.host gcc-3.4.3-new/gcc/config.host ---- gcc-3.4.3/gcc/config.host Tue Oct 14 04:41:41 2003 -+++ gcc-3.4.3-new/gcc/config.host Fri Jan 21 10:25:51 2005 -@@ -135,6 +135,8 @@ - host_xm_file=i386/xm-mingw32.h - host_xmake_file=i386/x-mingw32 - host_exeext=.exe -+ host_extra_gcc_objs=mingw32-1.o -+ # host_extra_objs=w32_mmap_anon.o - ;; - i[34567]86-*-uwin*) - echo "*** UWIN may not be used as a host platform because" -diff -NBaur gcc-3.4.3/gcc/cp/decl2.c gcc-3.4.3-new/gcc/cp/decl2.c ---- gcc-3.4.3/gcc/cp/decl2.c Mon Oct 11 15:42:36 2004 -+++ gcc-3.4.3-new/gcc/cp/decl2.c Fri Jan 21 10:25:51 2005 -@@ -1476,6 +1476,11 @@ - { - TREE_PUBLIC (decl) = 1; - DECL_EXTERNAL (decl) = 1; -+ /* If found and the class has dllimport attribute, commit to -+ marking the vtable as dllimport, We don't want to change -+ linkage when maybe_emit_vtable calls this with final true. */ -+ if (lookup_attribute ("dllimport", TYPE_ATTRIBUTES (type))) -+ DECL_INTERFACE_KNOWN (decl) = 1; - } - } - } -diff -NBaur gcc-3.4.3/gcc/cp/parser.c gcc-3.4.3-new/gcc/cp/parser.c ---- gcc-3.4.3/gcc/cp/parser.c Thu Oct 28 06:28:20 2004 -+++ gcc-3.4.3-new/gcc/cp/parser.c Fri Jan 21 10:25:51 2005 -@@ -9279,7 +9279,7 @@ - declaration context. */ - - /* Warn about attributes. They are ignored. */ -- if (attributes) -+ if (attributes && extra_warnings) - warning ("type attributes are honored only at type definition"); - - type = xref_tag (tag_type, identifier, -diff -NBaur gcc-3.4.3/gcc/cp/repo.c gcc-3.4.3-new/gcc/cp/repo.c ---- gcc-3.4.3/gcc/cp/repo.c Fri Dec 19 23:28:09 2003 -+++ gcc-3.4.3-new/gcc/cp/repo.c Fri Jan 21 10:25:51 2005 -@@ -1,5 +1,5 @@ - /* Code to maintain a C++ template repository. -- Copyright (C) 1995, 1996, 1997, 1998, 2000, 2001, 2002, 2003 -+ Copyright (C) 1995, 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2004 - Free Software Foundation, Inc. - Contributed by Jason Merrill (jason@cygnus.com) - -@@ -53,8 +53,8 @@ - - static struct obstack temporary_obstack; - --#define IDENTIFIER_REPO_USED(NODE) (TREE_LANG_FLAG_3 (NODE)) --#define IDENTIFIER_REPO_CHOSEN(NODE) (TREE_LANG_FLAG_4 (NODE)) -+#define IDENTIFIER_REPO_USED(NODE) (TREE_LANG_FLAG_5 (NODE)) -+#define IDENTIFIER_REPO_CHOSEN(NODE) (TREE_LANG_FLAG_6 (NODE)) - - #if 0 - /* Record the flags used to compile this translation unit. */ -@@ -223,7 +223,7 @@ - break; - else if (! inside && c == '\\') - backquote = 1; -- else if (c == '\'') -+ else if (c == HOST_QUOTE_CHAR) - inside = !inside; - else - obstack_1grow (&temporary_obstack, c); -diff -NBaur gcc-3.4.3/gcc/crtstuff.c gcc-3.4.3-new/gcc/crtstuff.c ---- gcc-3.4.3/gcc/crtstuff.c Thu Oct 14 00:29:04 2004 -+++ gcc-3.4.3-new/gcc/crtstuff.c Fri Jan 21 10:25:51 2005 -@@ -134,6 +134,8 @@ - /* Likewise for _Jv_RegisterClasses. */ - extern void _Jv_RegisterClasses (void *) TARGET_ATTRIBUTE_WEAK; - -+#if !(defined (__MINGW32__) || defined (__CYGWIN__)) -+ - #ifdef OBJECT_FORMAT_ELF - - /* Declare a pointer to void function type. */ -@@ -542,3 +544,108 @@ - #else /* ! CRT_BEGIN && ! CRT_END */ - #error "One of CRT_BEGIN or CRT_END must be defined." - #endif -+ -+#else /*__MINGW32__ || __CYGWIN__ */ -+ -+/* Use __main to run ctors and dtors. This code generates a -+label for beginning of .eh_frame section in crtbegin.o and terminates -+the section in crtend.o. Registration and deregistration is done by -+installing ctor and dtor functions to do the job. */ -+ -+ -+#ifdef CRT_BEGIN -+ -+extern void __w32_sharedptr_initialize(void); -+ -+/* Stick a label at the beginning of the frame unwind info so we can -+ register/deregister it with the exception handling library code. */ -+#if defined (USE_EH_FRAME_REGISTRY) \ -+ && !__USING_SJLJ_EXCEPTIONS__ -+char __EH_FRAME_BEGIN__[] -+ __attribute__((section(EH_FRAME_SECTION_NAME), aligned(4))) -+ = { }; -+ -+static struct object obj; -+ -+/* These will pull in references from libgcc.a(unwind-dw2-fde.o) */ -+ -+void __do_frame_init (void); -+void __do_frame_fini (void); -+ -+void -+__do_frame_init (void) -+{ -+ __w32_sharedptr_initialize(); -+ __register_frame_info (__EH_FRAME_BEGIN__, &obj); -+} -+ -+void -+__do_frame_fini (void) -+{ -+ __deregister_frame_info (__EH_FRAME_BEGIN__); -+} -+#else /* USE_EH_FRAME_REGISTRY && !__USING_SJLJ__EXCEPTIONS__ */ -+void __do_sjlj_init (void); -+ -+void -+__do_sjlj_init (void) -+{ -+ __w32_sharedptr_initialize(); -+} -+#endif -+ -+ -+#elif defined CRT_END -+ -+/* Terminate the frame unwind info section with a 0 as a sentinel; -+ this would be the 'length' field in a real FDE. */ -+#if defined (USE_EH_FRAME_REGISTRY) \ -+ && !__USING_SJLJ_EXCEPTIONS__ -+static int __EH_FRAME_END__[] -+ __attribute__ ((unused, mode(SI), section(EH_FRAME_SECTION_NAME), -+ aligned(4))) -+ = { 0 }; -+static void __reg_frame_ctor (void) __attribute__ ((constructor)); -+static void __dereg_frame_dtor (void) __attribute__ ((destructor)); -+extern void __do_frame_init (void); -+extern void __do_frame_fini (void); -+ -+ -+/* Register the eh_frame. This has to be the first ctor to -+ be invoked so we put it in last. Since we're last, we can't -+ reference __register_frame_info in libgcc.a directly (if eh_frame -+ code has been referenced than it will have been pulled in but -+ we can't count on it) so we call a thunk in crtbegin.o. */ -+ -+static void -+__reg_frame_ctor (void) -+{ -+ __do_frame_init (); -+} -+ -+/* Deregister the eh_frame. This has to be the last dtor. The -+ call to __register_frame_info in crtbegin.o will have pulled in -+ libgcc.a(unwind-dw2-fde.o) if libgcc.a is static lib but not if -+ dll, so we use a thunk again to be sure. */ -+ -+static void -+__dereg_frame_dtor (void) -+{ -+ __do_frame_fini (); -+} -+#else -+static void __sjlj_init_ctor (void) __attribute__ ((constructor)); -+void __do_sjlj_init (void); -+static void -+__sjlj_init_ctor (void) -+{ -+ __do_sjlj_init (); -+} -+ -+#endif /* USE_EH_FRAME_REGISTRY && !__USING_SJLJ__EXCEPTIONS__ */ -+ -+#else /* ! CRT_BEGIN && ! CRT_END */ -+#error "One of CRT_BEGIN or CRT_END must be defined." -+#endif -+ -+#endif /* __MINGW32__ || __CYGWIN__ */ -diff -NBaur gcc-3.4.3/gcc/doc/extend.texi gcc-3.4.3-new/gcc/doc/extend.texi ---- gcc-3.4.3/gcc/doc/extend.texi Mon Aug 23 19:02:58 2004 -+++ gcc-3.4.3-new/gcc/doc/extend.texi Fri Jan 21 10:25:51 2005 -@@ -3383,7 +3383,7 @@ - @item dllimport - The @code{dllimport} attribute is described in @xref{Function Attributes}. - --@item dlexport -+@item dllexport - The @code{dllexport} attribute is described in @xref{Function Attributes}. - - @end table -diff -NBaur gcc-3.4.3/gcc/doc/hostconfig.texi gcc-3.4.3-new/gcc/doc/hostconfig.texi ---- gcc-3.4.3/gcc/doc/hostconfig.texi Wed Jul 30 00:36:47 2003 -+++ gcc-3.4.3-new/gcc/doc/hostconfig.texi Fri Jan 21 10:25:51 2005 -@@ -196,7 +196,15 @@ - Define this macro if the host system has a small limit on the total - size of an argument vector. This causes the driver to take more care - not to pass unnecessary arguments to subprocesses. -+ -+@item HOST_LL_PREFIX -+Define this macro to be a C string representing the printf format prefix -+to specify output of long long types on your host machine. Hosts using -+the MS C runtime libs use the non-standard @samp{I64} prefix. If you do -+not define this macro, GCC will use the standard @samp{ll} prefix to -+format the printing of long long types. - @end ftable -+ - - In addition, if @command{configure} generates an incorrect definition of - any of the macros in @file{auto-host.h}, you can override that -diff -NBaur gcc-3.4.3/gcc/doc/invoke.texi gcc-3.4.3-new/gcc/doc/invoke.texi ---- gcc-3.4.3/gcc/doc/invoke.texi Wed Oct 6 21:15:08 2004 -+++ gcc-3.4.3-new/gcc/doc/invoke.texi Fri Jan 21 10:25:51 2005 -@@ -497,7 +497,7 @@ - -m96bit-long-double -mregparm=@var{num} -momit-leaf-frame-pointer @gol - -mno-red-zone -mno-tls-direct-seg-refs @gol - -mcmodel=@var{code-model} @gol ---m32 -m64} -+-m32 -m64 -mstack-arg-probe} - - @emph{HPPA Options} - @gccoptlist{-march=@var{architecture-type} @gol -@@ -5992,9 +5992,10 @@ - saves one instruction in the caller since there is no need to pop - the arguments there. - --This calling convention is incompatible with the one normally --used on Unix, so you cannot use it if you need to call libraries --compiled with the Unix compiler. -+@strong{Warning:} this calling convention is incompatible with the -+one normally used on Unix or with GCC, so you cannot use it if you -+need to call libraries compiled with the Unix compiler or with GCC -+without the switch. - - Also, you must provide function prototypes for all functions that - take variable numbers of arguments (including @code{printf}); -@@ -8554,6 +8555,16 @@ - Generate code for the large model: This model makes no assumptions - about addresses and sizes of sections. Currently GCC does not implement - this model. -+ -+@item -mstack-arg-probe -+@opindex mstack-arg-probe -+Emit code in function prologue to probe the stack when allocating more -+than CHECK_STACK_LIMIT bytes in one go. -+ -+Currently, this is the default on windows systems (cygwin and mingw32), -+which define CHECK_STACK_LIMIT as 4000. On these systems, touching the -+stack at 4K increments is necessary to ensure that the guard pages used -+by the OS virtual memory manger are allocated in correct sequence. - @end table - - @node HPPA Options -diff -NBaur gcc-3.4.3/gcc/gcc.c gcc-3.4.3-new/gcc/gcc.c ---- gcc-3.4.3/gcc/gcc.c Wed Sep 8 16:16:11 2004 -+++ gcc-3.4.3-new/gcc/gcc.c Fri Jan 21 10:25:51 2005 -@@ -88,7 +88,7 @@ - #ifdef HAVE_SYS_RESOURCE_H - #include - #endif --#if defined (HAVE_DECL_GETRUSAGE) && !HAVE_DECL_GETRUSAGE -+#if defined (HAVE_GETRUSAGE) && defined (HAVE_DECL_GETRUSAGE) && !HAVE_DECL_GETRUSAGE - extern int getrusage (int, struct rusage *); - #endif - -@@ -3169,7 +3169,7 @@ - (argc + 1) * sizeof (argv[0])); - new_argv[0] = new_argv0; - -- execvp (new_argv0, new_argv); -+ execvp (new_argv0, (const char *const *)new_argv); - fatal ("couldn't run `%s': %s", new_argv0, xstrerror (errno)); - } - -@@ -4105,29 +4105,31 @@ - if (switches[i].live_cond == SWITCH_IGNORE) - continue; - -- obstack_grow (&collect_obstack, "'-", 2); -+ obstack_grow (&collect_obstack, HOST_QUOTE_STR "-", 2); - q = switches[i].part1; -- while ((p = strchr (q, '\''))) -+ while ((p = strchr (q, HOST_QUOTE_CHAR))) - { - obstack_grow (&collect_obstack, q, p - q); -- obstack_grow (&collect_obstack, "'\\''", 4); -+ obstack_grow (&collect_obstack, HOST_QUOTED_QUOTE_STR, -+ strlen (HOST_QUOTED_QUOTE_STR)); - q = ++p; - } - obstack_grow (&collect_obstack, q, strlen (q)); -- obstack_grow (&collect_obstack, "'", 1); -+ obstack_grow (&collect_obstack, HOST_QUOTE_STR, 1); - - for (args = switches[i].args; args && *args; args++) - { -- obstack_grow (&collect_obstack, " '", 2); -+ obstack_grow (&collect_obstack, " " HOST_QUOTE_STR, 2); - q = *args; -- while ((p = strchr (q, '\''))) -+ while ((p = strchr (q, HOST_QUOTE_CHAR))) - { - obstack_grow (&collect_obstack, q, p - q); -- obstack_grow (&collect_obstack, "'\\''", 4); -+ obstack_grow (&collect_obstack, HOST_QUOTED_QUOTE_STR, -+ strlen (HOST_QUOTED_QUOTE_STR)); - q = ++p; - } - obstack_grow (&collect_obstack, q, strlen (q)); -- obstack_grow (&collect_obstack, "'", 1); -+ obstack_grow (&collect_obstack, HOST_QUOTE_STR, 1); - } - } - obstack_grow (&collect_obstack, "\0", 1); -@@ -4150,7 +4152,9 @@ - static int suffixed_basename_length; - static const char *input_basename; - static const char *input_suffix; -+#ifndef HOST_FILE_ID_CMP - static struct stat input_stat; -+#endif - static int input_stat_set; - - /* The compiler used to process the current input file. */ -@@ -4701,6 +4705,9 @@ - *((char *) temp_filename + temp_filename_length) = '\0'; - if (strcmp (temp_filename, input_filename) != 0) - { -+#if defined HOST_FILE_ID_CMP -+ if (HOST_FILE_ID_CMP(input_filename, temp_filename) != 0) -+#else - struct stat st_temp; - - /* Note, set_input() resets input_stat_set to 0. */ -@@ -4720,6 +4727,7 @@ - || stat (temp_filename, &st_temp) < 0 - || input_stat.st_dev != st_temp.st_dev - || input_stat.st_ino != st_temp.st_ino) -+#endif - { - temp_filename = save_string (temp_filename, - temp_filename_length + 1); -diff -NBaur gcc-3.4.3/gcc/ggc.h gcc-3.4.3-new/gcc/ggc.h ---- gcc-3.4.3/gcc/ggc.h Sun Dec 21 14:08:33 2003 -+++ gcc-3.4.3-new/gcc/ggc.h Fri Jan 21 10:25:51 2005 -@@ -287,4 +287,8 @@ - extern int ggc_min_heapsize_heuristic (void); - extern void init_ggc_heuristics (void); - -+#if defined(_WIN32) && ! defined(__CYGWIN__) && ! defined (_UWIN) -+#define getpagesize() 4096 -+#endif -+ - #endif -diff -NBaur gcc-3.4.3/gcc/ginclude/stdarg.h gcc-3.4.3-new/gcc/ginclude/stdarg.h ---- gcc-3.4.3/gcc/ginclude/stdarg.h Thu Mar 13 02:58:40 2003 -+++ gcc-3.4.3-new/gcc/ginclude/stdarg.h Fri Jan 21 10:25:51 2005 -@@ -30,6 +30,7 @@ - - #ifndef _STDARG_H - #ifndef _ANSI_STDARG_H_ -+#ifndef RC_INVOKED - #ifndef __need___va_list - #define _STDARG_H - #define _ANSI_STDARG_H_ -@@ -129,5 +130,6 @@ - - #endif /* _STDARG_H */ - -+#endif /* not RC_INVOKED */ - #endif /* not _ANSI_STDARG_H_ */ - #endif /* not _STDARG_H */ -diff -NBaur gcc-3.4.3/gcc/hwint.h gcc-3.4.3-new/gcc/hwint.h ---- gcc-3.4.3/gcc/hwint.h Wed Jun 25 20:33:08 2003 -+++ gcc-3.4.3-new/gcc/hwint.h Fri Jan 21 10:25:51 2005 -@@ -15,6 +15,12 @@ - #define HOST_BITS_PER_INT (CHAR_BIT * SIZEOF_INT) - #define HOST_BITS_PER_LONG (CHAR_BIT * SIZEOF_LONG) - -+/* On some hosts, runtime printf does not use standard long long prefix. -+ This default can be overriden in host config file. */ -+#ifndef HOST_LL_PREFIX -+# define HOST_LL_PREFIX "ll" -+#endif -+ - /* If HAVE_LONG_LONG and SIZEOF_LONG_LONG aren't defined, but - GCC_VERSION >= 3000, assume this is the second or later stage of a - bootstrap, we do have long long, and it's 64 bits. (This is -@@ -74,10 +80,10 @@ - # define HOST_WIDE_INT_PRINT_DOUBLE_HEX "0x%lx%08lx" - # endif - #else --# define HOST_WIDE_INT_PRINT "ll" -+# define HOST_WIDE_INT_PRINT HOST_LL_PREFIX - # define HOST_WIDE_INT_PRINT_C "LL" - /* We can assume that 'long long' is at least 64 bits. */ --# define HOST_WIDE_INT_PRINT_DOUBLE_HEX "0x%llx%016llx" -+# define HOST_WIDE_INT_PRINT_DOUBLE_HEX "0x%" HOST_LL_PREFIX "x%016" HOST_LL_PREFIX "x" - #endif /* HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_LONG */ - - #define HOST_WIDE_INT_PRINT_DEC "%" HOST_WIDE_INT_PRINT "d" -@@ -109,11 +115,11 @@ - #error "This line should be impossible to reach" - # endif - # endif --# define HOST_WIDEST_INT_PRINT_DEC "%lld" --# define HOST_WIDEST_INT_PRINT_DEC_C "%lldLL" --# define HOST_WIDEST_INT_PRINT_UNSIGNED "%llu" --# define HOST_WIDEST_INT_PRINT_HEX "0x%llx" --# define HOST_WIDEST_INT_PRINT_DOUBLE_HEX "0x%llx%016llx" -+# define HOST_WIDEST_INT_PRINT_DEC "%" HOST_LL_PREFIX "d" -+# define HOST_WIDEST_INT_PRINT_DEC_C "%" HOST_LL_PREFIX "dLL" -+# define HOST_WIDEST_INT_PRINT_UNSIGNED "%" HOST_LL_PREFIX "u" -+# define HOST_WIDEST_INT_PRINT_HEX "0x%" HOST_LL_PREFIX "x" -+# define HOST_WIDEST_INT_PRINT_DOUBLE_HEX "0x%" HOST_LL_PREFIX "x%016" HOST_LL_PREFIX "x" - #endif - - #endif /* ! GCC_HWINT_H */ -diff -NBaur gcc-3.4.3/gcc/libgcc2.c gcc-3.4.3-new/gcc/libgcc2.c ---- gcc-3.4.3/gcc/libgcc2.c Sun Sep 26 21:47:14 2004 -+++ gcc-3.4.3-new/gcc/libgcc2.c Fri Jan 21 10:25:51 2005 -@@ -1504,7 +1504,7 @@ - - /* Jump to a trampoline, loading the static chain address. */ - --#if defined(WINNT) && ! defined(__CYGWIN__) && ! defined (_UWIN) -+#if defined(_WIN32) && ! defined(__CYGWIN__) && ! defined (_UWIN) - - long - getpagesize (void) -diff -NBaur gcc-3.4.3/gcc/mklibgcc.in gcc-3.4.3-new/gcc/mklibgcc.in ---- gcc-3.4.3/gcc/mklibgcc.in Mon Oct 18 17:00:43 2004 -+++ gcc-3.4.3-new/gcc/mklibgcc.in Fri Jan 21 10:25:51 2005 -@@ -45,6 +45,7 @@ - echo 'srcdir = @srcdir@' - echo 'VPATH = @srcdir@' - echo 'EQ = =' -+echo 'INCLUDES += -I@srcdir@' - echo - echo 'force:' - echo -diff -NBaur gcc-3.4.3/gcc/mklibgcc.in.patch gcc-3.4.3-new/gcc/mklibgcc.in.patch ---- gcc-3.4.3/gcc/mklibgcc.in.patch Thu Jan 1 00:00:00 1970 -+++ gcc-3.4.3-new/gcc/mklibgcc.in.patch Fri Jan 21 10:25:51 2005 -@@ -0,0 +1,10 @@ -+--- mklibgcc.in.orig Sat May 15 18:33:35 2004 -++++ mklibgcc.in Tue May 11 12:54:15 2004 -+@@ -39,6 +39,7 @@ -+ echo 'srcdir = @srcdir@' -+ echo 'VPATH = @srcdir@' -+ echo 'EQ = =' -++echo 'INCLUDES += -I@srcdir@' -+ echo -+ echo 'force:' -+ echo -diff -NBaur gcc-3.4.3/gcc/stor-layout.c gcc-3.4.3-new/gcc/stor-layout.c ---- gcc-3.4.3/gcc/stor-layout.c Sat May 29 00:16:00 2004 -+++ gcc-3.4.3-new/gcc/stor-layout.c Fri Jan 21 10:25:51 2005 -@@ -1,6 +1,6 @@ - /* C-compiler utilities for types and variables storage layout - Copyright (C) 1987, 1988, 1992, 1993, 1994, 1995, 1996, 1996, 1998, -- 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. -+ 1999, 2000, 2001, 2002, 2003. 2004 Free Software Foundation, Inc. - - This file is part of GCC. - -diff -NBaur gcc-3.4.3/gcc/system.h gcc-3.4.3-new/gcc/system.h ---- gcc-3.4.3/gcc/system.h Mon Mar 15 23:22:47 2004 -+++ gcc-3.4.3-new/gcc/system.h Fri Jan 21 10:25:51 2005 -@@ -486,6 +486,19 @@ - #define HOST_BIT_BUCKET "/dev/null" - #endif - -+/* Defaults for building quoted strings for COLLECT_GCC_OPTIONS -+ environment variable. These work for POSIX-like hosts. */ -+ -+#ifndef HOST_QUOTE_STR -+#define HOST_QUOTE_STR "\'" -+#endif -+#ifndef HOST_QUOTE_CHAR -+#define HOST_QUOTE_CHAR '\'' -+#endif -+#ifndef HOST_QUOTED_QUOTE_STR -+#define HOST_QUOTED_QUOTE_STR "'\\''" -+#endif -+ - /* Be conservative and only use enum bitfields with GCC. - FIXME: provide a complete autoconf test for buggy enum bitfields. */ - -diff -NBaur gcc-3.4.3/gcc/tlink.c gcc-3.4.3-new/gcc/tlink.c ---- gcc-3.4.3/gcc/tlink.c Sat Jul 19 15:47:14 2003 -+++ gcc-3.4.3-new/gcc/tlink.c Fri Jan 21 10:25:51 2005 -@@ -463,11 +463,20 @@ - } - fclose (stream); - fclose (output); -- rename (outname, f->key); -+ /* On Windows "rename" returns -1 and sets ERRNO to EACCESS if -+ the new file name already exists. Therefore, we explicitly -+ remove the old file first. */ -+ if (remove (f->key) == -1) -+ fatal_perror ("removing .rpo file"); -+ if (rename (outname, f->key) == -1) -+ fatal_perror ("renaming .rpo file"); - - obstack_grow (&temporary_obstack, "cd ", 3); - obstack_grow (&temporary_obstack, f->dir, strlen (f->dir)); -- obstack_grow (&temporary_obstack, "; ", 2); -+ /* Using ";" as a separator between commands does not work with -+ the Windows command shell. Therefore, we use "&&" which -+ should work everywhere. */ -+ obstack_grow (&temporary_obstack, " && ", 4); - obstack_grow (&temporary_obstack, c_file_name, strlen (c_file_name)); - obstack_1grow (&temporary_obstack, ' '); - obstack_grow (&temporary_obstack, f->args, strlen (f->args)); -diff -NBaur gcc-3.4.3/gcc/unwind-dw2-fde.c gcc-3.4.3-new/gcc/unwind-dw2-fde.c ---- gcc-3.4.3/gcc/unwind-dw2-fde.c Fri Oct 31 20:46:26 2003 -+++ gcc-3.4.3-new/gcc/unwind-dw2-fde.c Fri Jan 21 10:25:51 2005 -@@ -41,18 +41,32 @@ - #include "gthr.h" - #endif - -+#if defined (__MINGW32__ ) || defined (__CYGWIN__) -+#include "config/i386/w32-shared-ptr.h" -+#endif -+ - /* The unseen_objects list contains objects that have been registered - but not yet categorized in any way. The seen_objects list has had - it's pc_begin and count fields initialized at minimum, and is sorted - by decreasing value of pc_begin. */ -+ -+#if ! (defined (__MINGW32__ ) || defined (__CYGWIN__)) - static struct object *unseen_objects; - static struct object *seen_objects; -+#else -+#define unseen_objects (*(struct object**)(&__w32_sharedptr->dw2_unseen_objects)) -+#define seen_objects (*(struct object**)(&__w32_sharedptr->dw2_seen_objects)) -+#endif - -+#if !(defined (__MINGW32__ ) || defined (__CYGWIN__)) - #ifdef __GTHREAD_MUTEX_INIT - static __gthread_mutex_t object_mutex = __GTHREAD_MUTEX_INIT; - #else - static __gthread_mutex_t object_mutex; - #endif -+#else -+#define object_mutex (__w32_sharedptr->dw2_object_mutex) -+#endif - - #ifdef __GTHREAD_MUTEX_INIT_FUNCTION - static void -@@ -64,8 +78,15 @@ - static void - init_object_mutex_once (void) - { -+#if !(defined (__MINGW32__ ) || defined (__CYGWIN__)) - static __gthread_once_t once = __GTHREAD_ONCE_INIT; -+#else -+#define once (__w32_sharedptr->dw2_once) -+#endif - __gthread_once (&once, init_object_mutex); -+#if (defined (__MINGW32__ ) || defined (__CYGWIN__)) -+#undef once -+#endif - } - #else - #define init_object_mutex_once() -@@ -429,9 +450,13 @@ - fde_split (struct object *ob, fde_compare_t fde_compare, - struct fde_vector *linear, struct fde_vector *erratic) - { -- static const fde *marker; -- size_t count = linear->count; -+#if !(defined (__MINGW32__ ) || defined (__CYGWIN__)) -+ static fde *marker; -+#else -+#define marker (*(const fde **)&__w32_sharedptr->dw2_marker) -+#endif - const fde **chain_end = ▮ -+ size_t count = linear->count; - size_t i, j, k; - - /* This should optimize out, but it is wise to make sure this assumption -@@ -465,6 +490,9 @@ - erratic->array[k++] = linear->array[i]; - linear->count = j; - erratic->count = k; -+#if (defined (__MINGW32__ ) || defined (__CYGWIN__)) -+#undef marker -+#endif - } - - #define SWAP(x,y) do { const fde * tmp = x; x = y; y = tmp; } while (0) -diff -NBaur gcc-3.4.3/gcc/unwind-sjlj.c gcc-3.4.3-new/gcc/unwind-sjlj.c ---- gcc-3.4.3/gcc/unwind-sjlj.c Sun Nov 2 00:00:08 2003 -+++ gcc-3.4.3-new/gcc/unwind-sjlj.c Fri Jan 21 10:25:51 2005 -@@ -35,6 +35,10 @@ - #include "unwind.h" - #include "gthr.h" - -+#if defined (__MINGW32__ ) || defined (__CYGWIN__) -+#include "config/i386/w32-shared-ptr.h" -+#endif -+ - #ifdef __USING_SJLJ_EXCEPTIONS__ - - #ifdef DONT_USE_BUILTIN_SETJMP -@@ -95,12 +99,21 @@ - - /* Manage the chain of registered function contexts. */ - -+#if !(defined (__MINGW32__ ) || defined (__CYGWIN__)) - /* Single threaded fallback chain. */ - static struct SjLj_Function_Context *fc_static; -+#else -+#define fc_static (*(struct SjLj_Function_Context**)&__w32_sharedptr->sjlj_fc_static) -+#endif - - #if __GTHREADS -+#if !(defined (__MINGW32__ ) || defined (__CYGWIN__)) - static __gthread_key_t fc_key; - static int use_fc_key = -1; -+#else -+#define fc_key (__w32_sharedptr->sjlj_fc_key) -+#define use_fc_key (__w32_sharedptr->sjlj_use_fc_key) -+#endif - - static void - fc_key_init (void) -@@ -111,15 +124,26 @@ - static void - fc_key_init_once (void) - { -+#if !(defined (__MINGW32__ ) || defined (__CYGWIN__)) - static __gthread_once_t once = __GTHREAD_ONCE_INIT; -+#else -+#define once (__w32_sharedptr->sjlj_once) -+#endif - if (__gthread_once (&once, fc_key_init) != 0 || use_fc_key < 0) - use_fc_key = 0; -+#if defined (__MINGW32__ ) || defined (__CYGWIN__) -+#undef once -+#endif - } - #endif - - void - _Unwind_SjLj_Register (struct SjLj_Function_Context *fc) - { -+#if defined (__MINGW32__ ) || defined (__CYGWIN__) -+ W32_SHAREDPTR_INITIALIZE (); -+#endif -+ - #if __GTHREADS - if (use_fc_key < 0) - fc_key_init_once (); -@@ -140,6 +164,10 @@ - static inline struct SjLj_Function_Context * - _Unwind_SjLj_GetContext (void) - { -+#if defined (__MINGW32__ ) || defined (__CYGWIN__) -+ W32_SHAREDPTR_INITIALIZE (); -+#endif -+ - #if __GTHREADS - if (use_fc_key < 0) - fc_key_init_once (); -@@ -153,6 +181,10 @@ - static inline void - _Unwind_SjLj_SetContext (struct SjLj_Function_Context *fc) - { -+#if defined (__MINGW32__ ) || defined (__CYGWIN__) -+ W32_SHAREDPTR_INITIALIZE (); -+#endif -+ - #if __GTHREADS - if (use_fc_key < 0) - fc_key_init_once (); -diff -NBaur gcc-3.4.3/gcc/varasm.c gcc-3.4.3-new/gcc/varasm.c ---- gcc-3.4.3/gcc/varasm.c Sun Oct 31 09:10:03 2004 -+++ gcc-3.4.3-new/gcc/varasm.c Tue Jan 25 10:34:15 2005 -@@ -4915,6 +4915,7 @@ - default_elf_select_section_1 (tree decl, int reloc, - unsigned HOST_WIDE_INT align, int shlib) - { -+ const char *sname; - switch (categorize_decl_for_section (decl, reloc, shlib)) - { - case SECCAT_TEXT: -@@ -4922,56 +4923,61 @@ - abort (); - case SECCAT_RODATA: - readonly_data_section (); -- break; -+ return; - case SECCAT_RODATA_MERGE_STR: - mergeable_string_section (decl, align, 0); -- break; -+ return; - case SECCAT_RODATA_MERGE_STR_INIT: - mergeable_string_section (DECL_INITIAL (decl), align, 0); -- break; -+ return; - case SECCAT_RODATA_MERGE_CONST: - mergeable_constant_section (DECL_MODE (decl), align, 0); -- break; -+ return; - case SECCAT_SRODATA: -- named_section (NULL_TREE, ".sdata2", reloc); -+ sname = ".sdata2"; - break; - case SECCAT_DATA: - data_section (); -- break; -+ return; - case SECCAT_DATA_REL: -- named_section (NULL_TREE, ".data.rel", reloc); -+ sname = ".data.rel"; - break; - case SECCAT_DATA_REL_LOCAL: -- named_section (NULL_TREE, ".data.rel.local", reloc); -+ sname = ".data.rel.local"; - break; - case SECCAT_DATA_REL_RO: -- named_section (NULL_TREE, ".data.rel.ro", reloc); -+ sname = ".data.rel.ro"; - break; - case SECCAT_DATA_REL_RO_LOCAL: -- named_section (NULL_TREE, ".data.rel.ro.local", reloc); -+ sname = ".data.rel.ro.local"; - break; - case SECCAT_SDATA: -- named_section (NULL_TREE, ".sdata", reloc); -+ sname = ".sdata"; - break; - case SECCAT_TDATA: -- named_section (NULL_TREE, ".tdata", reloc); -+ sname = ".tdata"; - break; - case SECCAT_BSS: - #ifdef BSS_SECTION_ASM_OP - bss_section (); -+ return; - #else -- named_section (NULL_TREE, ".bss", reloc); --#endif -+ sname = ".bss"; - break; -+#endif - case SECCAT_SBSS: -- named_section (NULL_TREE, ".sbss", reloc); -+ sname = ".sbss"; - break; - case SECCAT_TBSS: -- named_section (NULL_TREE, ".tbss", reloc); -+ sname = ".tbss"; - break; - default: - abort (); - } -+ -+ if (!DECL_P (decl)) -+ decl = NULL_TREE; -+ named_section (decl, sname, reloc); - } - - /* Construct a unique section name based on the decl name and the -diff -NBaur gcc-3.4.3/gcc/version.c gcc-3.4.3-new/gcc/version.c ---- gcc-3.4.3/gcc/version.c Fri Nov 5 03:35:02 2004 -+++ gcc-3.4.3-new/gcc/version.c Fri Jan 21 10:25:51 2005 -@@ -14,4 +14,4 @@ - forward us bugs reported to you, if you determine that they are - not bugs in your modifications.) */ - --const char bug_report_url[] = ""; -+const char bug_report_url[] = ""; -diff -NBaur gcc-3.4.3/include/libiberty.h gcc-3.4.3-new/include/libiberty.h ---- gcc-3.4.3/include/libiberty.h Thu May 15 20:02:12 2003 -+++ gcc-3.4.3-new/include/libiberty.h Fri Jan 21 10:25:51 2005 -@@ -1,6 +1,6 @@ - /* Function declarations for libiberty. - -- Copyright 2001, 2002 Free Software Foundation, Inc. -+ Copyright 2001, 2002, 2004 Free Software Foundation, Inc. - - Note - certain prototypes declared in this header file are for - functions whoes implementation copyright does not belong to the -@@ -41,6 +41,8 @@ - - #include "ansidecl.h" - -+#include -+ - #ifdef ANSI_PROTOTYPES - /* Get a definition for size_t. */ - #include -@@ -74,7 +76,7 @@ - to find the declaration so provide a fully prototyped one. If it - is 1, we found it so don't provide any declaration at all. */ - #if !HAVE_DECL_BASENAME --#if defined (__GNU_LIBRARY__ ) || defined (__linux__) || defined (__FreeBSD__) || defined (__OpenBSD__) || defined(__NetBSD__) || defined (__CYGWIN__) || defined (__CYGWIN32__) || defined (HAVE_DECL_BASENAME) -+#if defined (__GNU_LIBRARY__ ) || defined (__linux__) || defined (__FreeBSD__) || defined (__OpenBSD__) || defined(__NetBSD__) || defined (__CYGWIN__) || defined (__CYGWIN32__) || defined (__sun__) || defined (HAVE_DECL_BASENAME) - extern char *basename PARAMS ((const char *)); - #else - extern char *basename (); -@@ -274,7 +276,7 @@ - extern int pexecute PARAMS ((const char *, char * const *, const char *, - const char *, char **, char **, int)); - --/* Wait for pexecute to finish. */ -+/* Wait for a process created by pexecute. */ - - extern int pwait PARAMS ((int, int *, int)); - -diff -NBaur gcc-3.4.3/include/pex-read.h gcc-3.4.3-new/include/pex-read.h ---- gcc-3.4.3/include/pex-read.h Thu Jan 1 00:00:00 1970 -+++ gcc-3.4.3-new/include/pex-read.h Fri Jan 21 10:25:51 2005 -@@ -0,0 +1,41 @@ -+/* Declarations of the pex-read functions for libiberty. -+ Copyright 2004 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, 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., 59 Temple Place - Suite 330, -+ Boston, MA 02111-1307, USA. */ -+ -+#ifndef PEX_READ_H -+#define PEX_READ_H -+ -+#include -+ -+#ifdef __cplusplus -+extern "C" { -+#endif -+ -+/* Execute a program and read its standard output. */ -+ -+extern FILE *pex_read (const char *, char * const *, const char *, -+ const char *, char **, char **, int, int *); -+ -+/* Wait for pex_read to finish. */ -+ -+extern int pex_read_close (int, FILE *, int *, int); -+ -+#ifdef __cplusplus -+} -+#endif -+ -+#endif /* PEX_READ_H */ -diff -NBaur gcc-3.4.3/libiberty/ChangeLog gcc-3.4.3-new/libiberty/ChangeLog ---- gcc-3.4.3/libiberty/ChangeLog Fri Nov 5 03:34:35 2004 -+++ gcc-3.4.3-new/libiberty/ChangeLog Fri Jan 21 10:25:52 2005 -@@ -14,11 +14,33 @@ - - * GCC 3.4.0 released. - --2004-02-25 Ian Lance Taylor -+2004-03-17 Ian Lance Taylor - -- Taken from mainline: -+ * pex-unix.c (pexecute): Use vfork instead of fork, with -+ appropriate changes to make this safe. -+ * pex-common.h (STDERR_FILE_NO): Define. - -- 2004-02-24 Ian Lance Taylor -+ * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for -+ an 80 column screen. Run maint-deps. -+ -+2004-03-09 Kelley Cook -+ -+ * configure.ac: Bump version to 2.59. Apply suggested autoupdates. -+ * acconfig.h: Delete redundant file. -+ * config.in: Regenerate. -+ * configure: Regenerate. -+ -+2004-03-09 Hans-Peter Nilsson -+ -+ * configure: Regenerate for config/accross.m4 correction. -+ -+2004-03-07 Andreas Jaeger -+ -+ * testsuite/test-demangle.c: Include and for -+ prototypes. -+ (main): Initialize style. -+ -+2004-02-24 Ian Lance Taylor - - * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED, - D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG, -@@ -51,7 +73,7 @@ - past ones which have been printed already. - * testsuite/demangle-expected: Add three test cases. - -- 2004-02-23 Ian Lance Taylor -+2004-02-23 Ian Lance Taylor - - * cp-demangle.c (__cxa_demangle): Adjust last patch to handle - empty string correctly. -@@ -61,6 +83,29 @@ - built-in type name. - (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather - than cplus_demangle_v3. -+ -+ * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and -+ the associated #define of RETURN_ON_ALLOCATION_FAILURE. -+ -+2004-02-16 Matt Kraai -+ -+ * regex.c: Include . -+ (regcomp): Cast i to int. -+ (regerror): Add ATTRIBUTE_UNUSED to parameter preg. -+ -+2004-01-25 Ian Lance Taylor -+ -+ * configure.ac: Add m4_pattern_allow(LIBOBJS). -+ * configure: Regenerate. -+ -+2004-01-22 DJ Delorie -+ -+ * Makefile.in: Convert to ./ throughout. Rebuild dependencies -+ with explicit build rules. -+ (VPATH): Remove. -+ (.c.o): Poison. -+ * configure.ac (pexecute, LIBOBJS): Add ./ . -+ * maint-tool: Build dependencies with explicit rules. - - 2004-01-15 Kazu Hirata - -diff -NBaur gcc-3.4.3/libiberty/Makefile.in gcc-3.4.3-new/libiberty/Makefile.in ---- gcc-3.4.3/libiberty/Makefile.in Wed Jan 14 21:27:28 2004 -+++ gcc-3.4.3-new/libiberty/Makefile.in Fri Jan 21 10:25:52 2005 -@@ -28,7 +28,6 @@ - - libiberty_topdir = @libiberty_topdir@ - srcdir = @srcdir@ --VPATH = @srcdir@ - - prefix = @prefix@ - -@@ -70,8 +69,8 @@ - - MAKEOVERRIDES = - --TARGETLIB = libiberty.a --TESTLIB = testlib.a -+TARGETLIB = ./libiberty.a -+TESTLIB = ./testlib.a - - LIBOBJS = @LIBOBJS@ - -@@ -118,15 +117,15 @@ - INCDIR=$(srcdir)/$(MULTISRCTOP)../include - - COMPILE.c = $(CC) -c @DEFS@ $(LIBCFLAGS) -I. -I$(INCDIR) $(HDEFINES) @ac_libiberty_warn_cflags@ -+ -+# Just to make sure we don't use a built-in rule with VPATH - .c.o: -- if [ x"$(PICFLAG)" != x ]; then \ -- $(COMPILE.c) $(PICFLAG) $< -o pic/$@; \ -- else true; fi -- $(COMPILE.c) $< $(OUTPUT_OPTION) -+ false - - # NOTE: If you add new files to the library, add them to this list - # (alphabetical), and add them to REQUIRED_OFILES, or --# CONFIGURED_OFILES and funcs in configure.ac. -+# CONFIGURED_OFILES and funcs in configure.ac. Also run "make maint-deps" -+# to build the new rules. - CFILES = alloca.c argv.c asprintf.c atexit.c \ - basename.c bcmp.c bcopy.c bsearch.c bzero.c \ - calloc.c choose-temp.c clock.c concat.c cp-demangle.c \ -@@ -145,6 +144,7 @@ - partition.c \ - pex-djgpp.c pex-mpw.c pex-msdos.c pex-os2.c \ - pex-unix.c pex-win32.c \ -+ pexrd-unix.c pexrd-generic.c \ - physmem.c putenv.c \ - random.c regex.c rename.c rindex.c \ - safe-ctype.c setenv.c sigsetmask.c snprintf.c sort.c spaces.c \ -@@ -158,45 +158,48 @@ - - # These are always included in the library. The first four are listed - # first and by compile time to optimize parallel builds. --REQUIRED_OFILES = regex.o cplus-dem.o cp-demangle.o cp-demint.o md5.o \ -- alloca.o argv.o \ -- choose-temp.o concat.o \ -- dyn-string.o \ -- fdmatch.o fibheap.o floatformat.o fnmatch.o \ -- getopt.o getopt1.o getpwd.o getruntime.o \ -- hashtab.o hex.o \ -- lbasename.o \ -- lrealpath.o \ -- make-relative-prefix.o \ -- make-temp-file.o \ -- objalloc.o obstack.o \ -- partition.o physmem.o @pexecute@ \ -- safe-ctype.o sort.o spaces.o splay-tree.o strerror.o \ -- strsignal.o \ -- ternary.o \ -- xatexit.o xexit.o xmalloc.o xmemdup.o xstrdup.o xstrerror.o -+REQUIRED_OFILES = ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o \ -+ ./alloca.o ./argv.o \ -+ ./choose-temp.o ./concat.o ./cp-demint.o \ -+ ./dyn-string.o \ -+ ./fdmatch.o ./fibheap.o ./floatformat.o ./fnmatch.o \ -+ ./getopt.o ./getopt1.o ./getpwd.o ./getruntime.o \ -+ ./hashtab.o ./hex.o \ -+ ./lbasename.o ./lrealpath.o \ -+ ./make-relative-prefix.o ./make-temp-file.o \ -+ ./objalloc.o ./obstack.o \ -+ ./partition.o ./physmem.o @pexecute@ \ -+ ./safe-ctype.o ./sort.o ./spaces.o ./splay-tree.o ./strerror.o \ -+ ./strsignal.o \ -+ ./ternary.o \ -+ ./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o ./xstrdup.o \ -+ ./xstrerror.o - - # These are all the objects that configure may add to the library via - # $funcs or EXTRA_OFILES. This list exists here only for "make - # maint-missing" and "make check". --CONFIGURED_OFILES = asprintf.o atexit.o \ -- basename.o bcmp.o bcopy.o bsearch.o bzero.o \ -- calloc.o clock.o copysign.o \ -- _doprnt.o \ -- ffs.o \ -- getcwd.o getpagesize.o \ -- index.o insque.o \ -- memchr.o memcmp.o memcpy.o memmove.o mempcpy.o memset.o mkstemps.o \ -- pex-djgpp.o pex-mpw.o pex-msdos.o pex-os2.o \ -- pex-unix.o pex-win32.o \ -- putenv.o \ -- random.o rename.o rindex.o \ -- setenv.o sigsetmask.o snprintf.o stpcpy.o stpncpy.o strcasecmp.o \ -- strchr.o strdup.o strncasecmp.o strncmp.o strrchr.o strstr.o \ -- strtod.o strtol.o strtoul.o \ -- tmpnam.o \ -- vasprintf.o vfork.o vfprintf.o vprintf.o vsnprintf.o vsprintf.o \ -- waitpid.o -+CONFIGURED_OFILES = ./asprintf.o ./atexit.o \ -+ ./basename.o ./bcmp.o ./bcopy.o ./bsearch.o ./bzero.o \ -+ ./calloc.o ./clock.o ./copysign.o \ -+ ./_doprnt.o \ -+ ./ffs.o \ -+ ./getcwd.o ./getpagesize.o \ -+ ./index.o ./insque.o \ -+ ./memchr.o ./memcmp.o ./memcpy.o ./memmove.o ./mempcpy.o \ -+ ./memset.o ./mkstemps.o \ -+ ./pex-djgpp.o ./pex-mpw.o ./pex-msdos.o ./pex-os2.o \ -+ ./pex-unix.o ./pex-win32.o \ -+ ./pexrd-unix.o ./pexrd-generic.o \ -+ ./putenv.o \ -+ ./random.o ./rename.o ./rindex.o \ -+ ./setenv.o ./sigsetmask.o ./snprintf.o ./stpcpy.o ./stpncpy.o \ -+ ./strcasecmp.o ./strchr.o ./strdup.o ./strncasecmp.o \ -+ ./strncmp.o ./strrchr.o ./strstr.o \ -+ ./strtod.o ./strtol.o ./strtoul.o \ -+ ./tmpnam.o \ -+ ./vasprintf.o ./vfork.o ./vfprintf.o ./vprintf.o ./vsnprintf.o \ -+ ./vsprintf.o \ -+ ./waitpid.o - - # These files are installed if the library has been configured to do so. - INSTALLED_HEADERS = \ -@@ -390,8 +393,8 @@ - # Depending on Makefile makes sure that config.status has been re-run - # if needed. This prevents problems with parallel builds. - config.h: stamp-h ; @true --stamp-h: config.in config.status Makefile -- CONFIG_FILES= CONFIG_HEADERS=config.h:config.in $(SHELL) ./config.status -+stamp-h: $(srcdir)/config.in config.status Makefile -+ CONFIG_FILES= CONFIG_HEADERS=config.h:$(srcdir)/config.in $(SHELL) ./config.status - - config.status: $(srcdir)/configure $(srcdir)/config.table - $(SHELL) ./config.status --recheck -@@ -415,113 +418,658 @@ - # The dependencies in the remainder of this file are automatically - # generated by "make maint-deps". Manual edits will be lost. - --_doprnt.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h --alloca.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --argv.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --asprintf.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --atexit.o: config.h --basename.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ -+./_doprnt.o: $(srcdir)/_doprnt.c config.h $(INCDIR)/ansidecl.h \ - $(INCDIR)/safe-ctype.h --bsearch.o: config.h $(INCDIR)/ansidecl.h --calloc.o: $(INCDIR)/ansidecl.h --choose-temp.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --clock.o: config.h --concat.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --copysign.o: $(INCDIR)/ansidecl.h --cp-demangle.o: config.h $(INCDIR)/ansidecl.h $(srcdir)/cp-demangle.h \ -- $(INCDIR)/demangle.h $(INCDIR)/dyn-string.h $(INCDIR)/getopt.h \ -- $(INCDIR)/libiberty.h --cp-demint.o: config.h $(INCDIR)/ansidecl.h $(srcdir)/cp-demangle.h \ -- $(INCDIR)/demangle.h $(INCDIR)/libiberty.h --cplus-dem.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/demangle.h \ -- $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h --dyn-string.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/dyn-string.h \ -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/_doprnt.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/_doprnt.c $(OUTPUT_OPTION) -+ -+./alloca.o: $(srcdir)/alloca.c config.h $(INCDIR)/ansidecl.h \ - $(INCDIR)/libiberty.h --fdmatch.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --fibheap.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/fibheap.h \ -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/alloca.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/alloca.c $(OUTPUT_OPTION) -+ -+./argv.o: $(srcdir)/argv.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/argv.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/argv.c $(OUTPUT_OPTION) -+ -+./asprintf.o: $(srcdir)/asprintf.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/asprintf.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/asprintf.c $(OUTPUT_OPTION) -+ -+./atexit.o: $(srcdir)/atexit.c config.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/atexit.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/atexit.c $(OUTPUT_OPTION) -+ -+./basename.o: $(srcdir)/basename.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ -+ $(INCDIR)/safe-ctype.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/basename.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/basename.c $(OUTPUT_OPTION) -+ -+./bcmp.o: $(srcdir)/bcmp.c -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/bcmp.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/bcmp.c $(OUTPUT_OPTION) -+ -+./bcopy.o: $(srcdir)/bcopy.c -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/bcopy.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/bcopy.c $(OUTPUT_OPTION) -+ -+./bsearch.o: $(srcdir)/bsearch.c config.h $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/bsearch.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/bsearch.c $(OUTPUT_OPTION) -+ -+./bzero.o: $(srcdir)/bzero.c -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/bzero.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/bzero.c $(OUTPUT_OPTION) -+ -+./calloc.o: $(srcdir)/calloc.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/calloc.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/calloc.c $(OUTPUT_OPTION) -+ -+./choose-temp.o: $(srcdir)/choose-temp.c config.h $(INCDIR)/ansidecl.h \ - $(INCDIR)/libiberty.h --floatformat.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/floatformat.h \ -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/choose-temp.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/choose-temp.c $(OUTPUT_OPTION) -+ -+./clock.o: $(srcdir)/clock.c config.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/clock.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/clock.c $(OUTPUT_OPTION) -+ -+./concat.o: $(srcdir)/concat.c config.h $(INCDIR)/ansidecl.h \ - $(INCDIR)/libiberty.h --fnmatch.o: config.h $(INCDIR)/fnmatch.h $(INCDIR)/safe-ctype.h --getcwd.o: config.h --getopt.o: config.h $(INCDIR)/getopt.h --getopt1.o: config.h $(INCDIR)/getopt.h --getpagesize.o: config.h --getpwd.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --getruntime.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --hashtab.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/hashtab.h \ -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/concat.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/concat.c $(OUTPUT_OPTION) -+ -+./copysign.o: $(srcdir)/copysign.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/copysign.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/copysign.c $(OUTPUT_OPTION) -+ -+./cp-demangle.o: $(srcdir)/cp-demangle.c config.h $(INCDIR)/ansidecl.h \ -+ $(srcdir)/cp-demangle.h $(INCDIR)/demangle.h \ -+ $(INCDIR)/dyn-string.h $(INCDIR)/getopt.h $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/cp-demangle.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/cp-demangle.c $(OUTPUT_OPTION) -+ -+./cp-demint.o: $(srcdir)/cp-demint.c config.h $(INCDIR)/ansidecl.h \ -+ $(srcdir)/cp-demangle.h $(INCDIR)/demangle.h \ - $(INCDIR)/libiberty.h --hex.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/cp-demint.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/cp-demint.c $(OUTPUT_OPTION) -+ -+./cplus-dem.o: $(srcdir)/cplus-dem.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/demangle.h $(INCDIR)/libiberty.h \ - $(INCDIR)/safe-ctype.h --lbasename.o: $(INCDIR)/ansidecl.h $(INCDIR)/filenames.h \ -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/cplus-dem.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/cplus-dem.c $(OUTPUT_OPTION) -+ -+./dyn-string.o: $(srcdir)/dyn-string.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/dyn-string.h $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/dyn-string.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/dyn-string.c $(OUTPUT_OPTION) -+ -+./fdmatch.o: $(srcdir)/fdmatch.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/fdmatch.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/fdmatch.c $(OUTPUT_OPTION) -+ -+./ffs.o: $(srcdir)/ffs.c -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/ffs.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/ffs.c $(OUTPUT_OPTION) -+ -+./fibheap.o: $(srcdir)/fibheap.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/fibheap.h $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/fibheap.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/fibheap.c $(OUTPUT_OPTION) -+ -+./floatformat.o: $(srcdir)/floatformat.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/floatformat.h $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/floatformat.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/floatformat.c $(OUTPUT_OPTION) -+ -+./fnmatch.o: $(srcdir)/fnmatch.c config.h $(INCDIR)/fnmatch.h \ -+ $(INCDIR)/safe-ctype.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/fnmatch.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/fnmatch.c $(OUTPUT_OPTION) -+ -+./getcwd.o: $(srcdir)/getcwd.c config.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/getcwd.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/getcwd.c $(OUTPUT_OPTION) -+ -+./getopt.o: $(srcdir)/getopt.c config.h $(INCDIR)/getopt.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/getopt.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/getopt.c $(OUTPUT_OPTION) -+ -+./getopt1.o: $(srcdir)/getopt1.c config.h $(INCDIR)/getopt.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/getopt1.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/getopt1.c $(OUTPUT_OPTION) -+ -+./getpagesize.o: $(srcdir)/getpagesize.c config.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/getpagesize.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/getpagesize.c $(OUTPUT_OPTION) -+ -+./getpwd.o: $(srcdir)/getpwd.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/getpwd.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/getpwd.c $(OUTPUT_OPTION) -+ -+./getruntime.o: $(srcdir)/getruntime.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/getruntime.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/getruntime.c $(OUTPUT_OPTION) -+ -+./hashtab.o: $(srcdir)/hashtab.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/hashtab.h $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/hashtab.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/hashtab.c $(OUTPUT_OPTION) -+ -+./hex.o: $(srcdir)/hex.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ -+ $(INCDIR)/safe-ctype.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/hex.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/hex.c $(OUTPUT_OPTION) -+ -+./index.o: $(srcdir)/index.c -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/index.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/index.c $(OUTPUT_OPTION) -+ -+./insque.o: $(srcdir)/insque.c -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/insque.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/insque.c $(OUTPUT_OPTION) -+ -+./lbasename.o: $(srcdir)/lbasename.c $(INCDIR)/ansidecl.h $(INCDIR)/filenames.h \ - $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h --lrealpath.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --make-relative-prefix.o: config.h $(INCDIR)/ansidecl.h \ -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/lbasename.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/lbasename.c $(OUTPUT_OPTION) -+ -+./lrealpath.o: $(srcdir)/lrealpath.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/lrealpath.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/lrealpath.c $(OUTPUT_OPTION) -+ -+./make-relative-prefix.o: $(srcdir)/make-relative-prefix.c config.h \ -+ $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/make-relative-prefix.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/make-relative-prefix.c $(OUTPUT_OPTION) -+ -+./make-temp-file.o: $(srcdir)/make-temp-file.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/make-temp-file.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/make-temp-file.c $(OUTPUT_OPTION) -+ -+./md5.o: $(srcdir)/md5.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/md5.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/md5.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/md5.c $(OUTPUT_OPTION) -+ -+./memchr.o: $(srcdir)/memchr.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/memchr.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/memchr.c $(OUTPUT_OPTION) -+ -+./memcmp.o: $(srcdir)/memcmp.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/memcmp.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/memcmp.c $(OUTPUT_OPTION) -+ -+./memcpy.o: $(srcdir)/memcpy.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/memcpy.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/memcpy.c $(OUTPUT_OPTION) -+ -+./memmove.o: $(srcdir)/memmove.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/memmove.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/memmove.c $(OUTPUT_OPTION) -+ -+./mempcpy.o: $(srcdir)/mempcpy.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/mempcpy.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/mempcpy.c $(OUTPUT_OPTION) -+ -+./memset.o: $(srcdir)/memset.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/memset.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/memset.c $(OUTPUT_OPTION) -+ -+./mkstemps.o: $(srcdir)/mkstemps.c config.h $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/mkstemps.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/mkstemps.c $(OUTPUT_OPTION) -+ -+./mpw.o: $(srcdir)/mpw.c -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/mpw.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/mpw.c $(OUTPUT_OPTION) -+ -+./msdos.o: $(srcdir)/msdos.c -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/msdos.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/msdos.c $(OUTPUT_OPTION) -+ -+./objalloc.o: $(srcdir)/objalloc.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/objalloc.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/objalloc.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/objalloc.c $(OUTPUT_OPTION) -+ -+./obstack.o: $(srcdir)/obstack.c config.h $(INCDIR)/obstack.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/obstack.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/obstack.c $(OUTPUT_OPTION) -+ -+./partition.o: $(srcdir)/partition.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h $(INCDIR)/partition.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/partition.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/partition.c $(OUTPUT_OPTION) -+ -+./pex-djgpp.o: $(srcdir)/pex-djgpp.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h $(srcdir)/pex-common.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-djgpp.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/pex-djgpp.c $(OUTPUT_OPTION) -+ -+./pex-mpw.o: $(srcdir)/pex-mpw.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h $(srcdir)/pex-common.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-mpw.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/pex-mpw.c $(OUTPUT_OPTION) -+ -+./pex-msdos.o: $(srcdir)/pex-msdos.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h $(srcdir)/pex-common.h \ -+ $(INCDIR)/safe-ctype.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-msdos.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/pex-msdos.c $(OUTPUT_OPTION) -+ -+./pex-os2.o: $(srcdir)/pex-os2.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h $(srcdir)/pex-common.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-os2.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/pex-os2.c $(OUTPUT_OPTION) -+ -+./pex-unix.o: $(srcdir)/pex-unix.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h $(srcdir)/pex-common.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-unix.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/pex-unix.c $(OUTPUT_OPTION) -+ -+./pex-win32.o: $(srcdir)/pex-win32.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h $(srcdir)/pex-common.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-win32.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/pex-win32.c $(OUTPUT_OPTION) -+ -+./pexrd-generic.o: $(srcdir)/pexrd-generic.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h $(srcdir)/pex-common.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/pexrd-generic.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/pexrd-generic.c $(OUTPUT_OPTION) -+ -+./pexrd-unix.o: $(srcdir)/pexrd-unix.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h $(srcdir)/pex-common.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/pexrd-unix.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/pexrd-unix.c $(OUTPUT_OPTION) -+ -+./physmem.o: $(srcdir)/physmem.c config.h $(INCDIR)/ansidecl.h \ - $(INCDIR)/libiberty.h --make-temp-file.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --md5.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/md5.h --memchr.o: $(INCDIR)/ansidecl.h --memcmp.o: $(INCDIR)/ansidecl.h --memcpy.o: $(INCDIR)/ansidecl.h --memmove.o: $(INCDIR)/ansidecl.h --mempcpy.o: $(INCDIR)/ansidecl.h --memset.o: $(INCDIR)/ansidecl.h --mkstemps.o: config.h $(INCDIR)/ansidecl.h --objalloc.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/objalloc.h --obstack.o: config.h $(INCDIR)/obstack.h --partition.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ -- $(INCDIR)/partition.h --pex-djgpp.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ -- $(srcdir)/pex-common.h --pex-mpw.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ -- $(srcdir)/pex-common.h --pex-msdos.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ -- $(srcdir)/pex-common.h $(INCDIR)/safe-ctype.h --pex-os2.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ -- $(srcdir)/pex-common.h --pex-unix.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ -- $(srcdir)/pex-common.h --pex-win32.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ -- $(srcdir)/pex-common.h --physmem.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --putenv.o: config.h $(INCDIR)/ansidecl.h --random.o: $(INCDIR)/ansidecl.h --regex.o: config.h $(INCDIR)/xregex.h $(INCDIR)/xregex2.h --rename.o: config.h $(INCDIR)/ansidecl.h --safe-ctype.o: $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h --setenv.o: config.h $(INCDIR)/ansidecl.h --sigsetmask.o: $(INCDIR)/ansidecl.h --snprintf.o: $(INCDIR)/ansidecl.h --sort.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/physmem.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/physmem.c $(OUTPUT_OPTION) -+ -+./putenv.o: $(srcdir)/putenv.c config.h $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/putenv.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/putenv.c $(OUTPUT_OPTION) -+ -+./random.o: $(srcdir)/random.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/random.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/random.c $(OUTPUT_OPTION) -+ -+./regex.o: $(srcdir)/regex.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/xregex.h \ -+ $(INCDIR)/xregex2.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/regex.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/regex.c $(OUTPUT_OPTION) -+ -+./rename.o: $(srcdir)/rename.c config.h $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/rename.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/rename.c $(OUTPUT_OPTION) -+ -+./rindex.o: $(srcdir)/rindex.c -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/rindex.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/rindex.c $(OUTPUT_OPTION) -+ -+./safe-ctype.o: $(srcdir)/safe-ctype.c $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/safe-ctype.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/safe-ctype.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/safe-ctype.c $(OUTPUT_OPTION) -+ -+./setenv.o: $(srcdir)/setenv.c config.h $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/setenv.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/setenv.c $(OUTPUT_OPTION) -+ -+./sigsetmask.o: $(srcdir)/sigsetmask.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/sigsetmask.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/sigsetmask.c $(OUTPUT_OPTION) -+ -+./snprintf.o: $(srcdir)/snprintf.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/snprintf.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/snprintf.c $(OUTPUT_OPTION) -+ -+./sort.o: $(srcdir)/sort.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ - $(INCDIR)/sort.h --spaces.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --splay-tree.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ -- $(INCDIR)/splay-tree.h --stpcpy.o: $(INCDIR)/ansidecl.h --stpncpy.o: $(INCDIR)/ansidecl.h --strcasecmp.o: $(INCDIR)/ansidecl.h --strchr.o: $(INCDIR)/ansidecl.h --strdup.o: $(INCDIR)/ansidecl.h --strerror.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --strncasecmp.o: $(INCDIR)/ansidecl.h --strncmp.o: $(INCDIR)/ansidecl.h --strrchr.o: $(INCDIR)/ansidecl.h --strsignal.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --strtod.o: $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h --strtol.o: config.h $(INCDIR)/safe-ctype.h --strtoul.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h --ternary.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ -- $(INCDIR)/ternary.h --vasprintf.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --vfork.o: $(INCDIR)/ansidecl.h --vfprintf.o: $(INCDIR)/ansidecl.h --vprintf.o: $(INCDIR)/ansidecl.h --vsnprintf.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --vsprintf.o: $(INCDIR)/ansidecl.h --waitpid.o: config.h --xatexit.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --xexit.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --xmalloc.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --xmemdup.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --xstrdup.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --xstrerror.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/sort.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/sort.c $(OUTPUT_OPTION) -+ -+./spaces.o: $(srcdir)/spaces.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/spaces.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/spaces.c $(OUTPUT_OPTION) -+ -+./splay-tree.o: $(srcdir)/splay-tree.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h $(INCDIR)/splay-tree.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/splay-tree.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/splay-tree.c $(OUTPUT_OPTION) -+ -+./stpcpy.o: $(srcdir)/stpcpy.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/stpcpy.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/stpcpy.c $(OUTPUT_OPTION) -+ -+./stpncpy.o: $(srcdir)/stpncpy.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/stpncpy.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/stpncpy.c $(OUTPUT_OPTION) -+ -+./strcasecmp.o: $(srcdir)/strcasecmp.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/strcasecmp.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/strcasecmp.c $(OUTPUT_OPTION) -+ -+./strchr.o: $(srcdir)/strchr.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/strchr.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/strchr.c $(OUTPUT_OPTION) -+ -+./strdup.o: $(srcdir)/strdup.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/strdup.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/strdup.c $(OUTPUT_OPTION) -+ -+./strerror.o: $(srcdir)/strerror.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/strerror.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/strerror.c $(OUTPUT_OPTION) -+ -+./strncasecmp.o: $(srcdir)/strncasecmp.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/strncasecmp.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/strncasecmp.c $(OUTPUT_OPTION) -+ -+./strncmp.o: $(srcdir)/strncmp.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/strncmp.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/strncmp.c $(OUTPUT_OPTION) -+ -+./strrchr.o: $(srcdir)/strrchr.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/strrchr.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/strrchr.c $(OUTPUT_OPTION) -+ -+./strsignal.o: $(srcdir)/strsignal.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/strsignal.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/strsignal.c $(OUTPUT_OPTION) -+ -+./strstr.o: $(srcdir)/strstr.c -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/strstr.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/strstr.c $(OUTPUT_OPTION) -+ -+./strtod.o: $(srcdir)/strtod.c $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/strtod.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/strtod.c $(OUTPUT_OPTION) -+ -+./strtol.o: $(srcdir)/strtol.c config.h $(INCDIR)/safe-ctype.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/strtol.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/strtol.c $(OUTPUT_OPTION) -+ -+./strtoul.o: $(srcdir)/strtoul.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/safe-ctype.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/strtoul.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/strtoul.c $(OUTPUT_OPTION) -+ -+./ternary.o: $(srcdir)/ternary.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h $(INCDIR)/ternary.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/ternary.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/ternary.c $(OUTPUT_OPTION) -+ -+./tmpnam.o: $(srcdir)/tmpnam.c -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/tmpnam.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/tmpnam.c $(OUTPUT_OPTION) -+ -+./vasprintf.o: $(srcdir)/vasprintf.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/vasprintf.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/vasprintf.c $(OUTPUT_OPTION) -+ -+./vfork.o: $(srcdir)/vfork.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/vfork.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/vfork.c $(OUTPUT_OPTION) -+ -+./vfprintf.o: $(srcdir)/vfprintf.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/vfprintf.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/vfprintf.c $(OUTPUT_OPTION) -+ -+./vprintf.o: $(srcdir)/vprintf.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/vprintf.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/vprintf.c $(OUTPUT_OPTION) -+ -+./vsnprintf.o: $(srcdir)/vsnprintf.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/vsnprintf.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/vsnprintf.c $(OUTPUT_OPTION) -+ -+./vsprintf.o: $(srcdir)/vsprintf.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/vsprintf.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/vsprintf.c $(OUTPUT_OPTION) -+ -+./waitpid.o: $(srcdir)/waitpid.c config.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/waitpid.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/waitpid.c $(OUTPUT_OPTION) -+ -+./xatexit.o: $(srcdir)/xatexit.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/xatexit.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/xatexit.c $(OUTPUT_OPTION) -+ -+./xexit.o: $(srcdir)/xexit.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/xexit.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/xexit.c $(OUTPUT_OPTION) -+ -+./xmalloc.o: $(srcdir)/xmalloc.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/xmalloc.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/xmalloc.c $(OUTPUT_OPTION) -+ -+./xmemdup.o: $(srcdir)/xmemdup.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/xmemdup.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/xmemdup.c $(OUTPUT_OPTION) -+ -+./xstrdup.o: $(srcdir)/xstrdup.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrdup.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/xstrdup.c $(OUTPUT_OPTION) -+ -+./xstrerror.o: $(srcdir)/xstrerror.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrerror.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/xstrerror.c $(OUTPUT_OPTION) -+ -diff -NBaur gcc-3.4.3/libiberty/config.in gcc-3.4.3-new/libiberty/config.in ---- gcc-3.4.3/libiberty/config.in Sat Jan 10 02:17:41 2004 -+++ gcc-3.4.3-new/libiberty/config.in Fri Jan 21 10:25:52 2005 -@@ -1,7 +1,4 @@ - /* config.in. Generated from configure.ac by autoheader. */ --/* Define to `unsigned long' if doesn't define. */ --#undef uintptr_t -- - - /* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */ - #undef BYTEORDER -@@ -362,9 +359,11 @@ - /* Define to empty if `const' does not conform to ANSI C. */ - #undef const - --/* Define as `__inline' if that's what the C compiler calls it, or to nothing -- if it is not supported. */ -+/* Define to `__inline__' or `__inline' if that's what the C compiler -+ calls it, or to nothing if 'inline' is not supported under any name. */ -+#ifndef __cplusplus - #undef inline -+#endif - - /* Define to `int' if does not define. */ - #undef pid_t -diff -NBaur gcc-3.4.3/libiberty/configure gcc-3.4.3-new/libiberty/configure ---- gcc-3.4.3/libiberty/configure Wed Oct 1 18:11:29 2003 -+++ gcc-3.4.3-new/libiberty/configure Fri Jan 21 10:25:52 2005 -@@ -1,9 +1,8 @@ - #! /bin/sh - # Guess values for system-dependent variables and create Makefiles. --# Generated by GNU Autoconf 2.57. -+# Generated by GNU Autoconf 2.59. - # --# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 --# Free Software Foundation, Inc. -+# 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. - ## --------------------- ## -@@ -20,9 +19,10 @@ - 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 (FOO=FOO; unset FOO) >/dev/null 2>&1; then -+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset - else - as_unset=false -@@ -41,7 +41,7 @@ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME - do -- if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then -+ 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 -@@ -218,16 +218,17 @@ - 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="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" -+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="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" -+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - - # IFS -@@ -901,12 +902,45 @@ - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_builddir$srcdir ;; - esac --# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be --# absolute. --ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` --ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` --ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` --ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` -+ -+# 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. -@@ -931,8 +965,7 @@ - if $ac_init_version; then - cat <<\_ACEOF - --Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 --Free Software Foundation, Inc. -+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 -@@ -944,7 +977,7 @@ - running configure, to aid debugging if configure makes a mistake. - - It was created by $as_me, which was --generated by GNU Autoconf 2.57. Invocation command line was -+generated by GNU Autoconf 2.59. Invocation command line was - - $ $0 $@ - -@@ -1120,7 +1153,7 @@ - echo "$as_me: caught signal $ac_signal" - echo "$as_me: exit $exit_status" - } >&5 -- rm -f core core.* *.core && -+ rm -f core *.core && - rm -rf conftest* confdefs* conf$$* $ac_clean_files && - exit $exit_status - ' 0 -@@ -2030,7 +2063,6 @@ - (exit $ac_status); } - - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -2064,7 +2096,6 @@ - EXEEXT= - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -2084,8 +2115,8 @@ - # 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" >&5 --echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 -+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 -@@ -2222,7 +2253,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -2273,7 +2303,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -2293,10 +2322,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -2310,7 +2349,7 @@ - - ac_compiler_gnu=no - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cv_c_compiler_gnu=$ac_compiler_gnu - - fi -@@ -2326,7 +2365,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -2343,10 +2381,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -2360,7 +2408,7 @@ - - ac_cv_prog_cc_g=no - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+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 -@@ -2387,7 +2435,6 @@ - ac_cv_prog_cc_stdc=no - ac_save_CC=$CC - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -2415,6 +2462,16 @@ - 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);}; -@@ -2441,10 +2498,20 @@ - CC="$ac_save_CC $ac_arg" - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -2458,7 +2525,7 @@ - sed 's/^/| /' conftest.$ac_ext >&5 - - fi --rm -f conftest.$ac_objext -+rm -f conftest.err conftest.$ac_objext - done - rm -f conftest.$ac_ext conftest.$ac_objext - CC=$ac_save_CC -@@ -2486,10 +2553,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -2497,8 +2574,7 @@ - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - for ac_declaration in \ -- ''\ -- '#include ' \ -+ '' \ - '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 ();' \ -@@ -2506,14 +2582,13 @@ - 'void exit (int);' - do - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ --#include - $ac_declaration -+#include - int - main () - { -@@ -2524,10 +2599,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -2541,9 +2626,8 @@ - - continue - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -2560,10 +2644,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -2576,7 +2670,7 @@ - sed 's/^/| /' conftest.$ac_ext >&5 - - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - done - rm -f conftest* - if test -n "$ac_declaration"; then -@@ -2590,7 +2684,7 @@ - sed 's/^/| /' conftest.$ac_ext >&5 - - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+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' -@@ -2625,7 +2719,6 @@ - # 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 --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -2648,6 +2741,7 @@ - (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 -@@ -2668,7 +2762,6 @@ - # OK, works on sane cases. Now check whether non-existent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -2686,6 +2779,7 @@ - (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 -@@ -2732,7 +2826,6 @@ - # 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 --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -2755,6 +2848,7 @@ - (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 -@@ -2775,7 +2869,6 @@ - # OK, works on sane cases. Now check whether non-existent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -2793,6 +2886,7 @@ - (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 -@@ -2852,7 +2946,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -2946,7 +3039,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3009,10 +3101,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -3026,7 +3128,7 @@ - - ac_cv_c_const=no - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - fi - echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 - echo "${ECHO_T}$ac_cv_c_const" >&6 -@@ -3046,7 +3148,6 @@ - ac_cv_c_inline=no - for ac_kw in inline __inline__ __inline; do - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3061,10 +3162,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -3077,7 +3188,7 @@ - sed 's/^/| /' conftest.$ac_ext >&5 - - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - done - - fi -@@ -3083,15 +3194,19 @@ - fi - echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 - echo "${ECHO_T}$ac_cv_c_inline" >&6 -+ -+ - case $ac_cv_c_inline in - inline | yes) ;; -- no) --cat >>confdefs.h <<\_ACEOF --#define inline --_ACEOF -- ;; -- *) cat >>confdefs.h <<_ACEOF --#define inline $ac_cv_c_inline -+ *) -+ case $ac_cv_c_inline in -+ no) ac_val=;; -+ *) ac_val=$ac_cv_c_inline;; -+ esac -+ cat >>confdefs.h <<_ACEOF -+#ifndef __cplusplus -+#define inline $ac_val -+#endif - _ACEOF - ;; - esac -@@ -3104,7 +3219,6 @@ - ac_cv_c_bigendian=unknown - # See if sys/param.h defines the BYTE_ORDER macro. - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3125,10 +3239,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -3137,7 +3261,6 @@ - (exit $ac_status); }; }; then - # It does; now see whether it defined to BIG_ENDIAN or not. - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3158,10 +3281,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -3175,19 +3308,18 @@ - - ac_cv_c_bigendian=no - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 - - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - if test $ac_cv_c_bigendian = unknown; then - if test "$cross_compiling" = yes; then - echo $ac_n "cross-compiling... " 2>&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3224,7 +3356,7 @@ - ( exit $ac_status ) - ac_cv_c_bigendian=yes - fi --rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext - fi - fi - fi -@@ -3244,7 +3376,7 @@ - int main() { _ascii (); _ebcdic (); return 0; } - EOF - if test -f conftest.c ; then -- if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then -+ if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then - if test `grep -l BIGenDianSyS conftest.o` ; then - echo $ac_n ' big endian probe OK, ' 1>&6 - ac_cv_c_bigendian=yes -@@ -3284,9 +3416,9 @@ - _ACEOF - - if test $ac_cv_c_bigendian = unknown; then -- { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5 --echo "$as_me: error: unknown endianess - sorry" >&2;} -- { (exit please pre-set ac_cv_c_bigendian); exit please pre-set ac_cv_c_bigendian; }; } -+ { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5 -+echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;} -+ { (exit 1); exit 1; }; } - fi - - -@@ -3307,6 +3439,7 @@ - # 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 -@@ -3323,6 +3456,7 @@ - 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. -@@ -3413,7 +3547,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3431,6 +3564,7 @@ - (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 -@@ -3463,7 +3597,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3490,10 +3623,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -3507,7 +3650,7 @@ - - ac_cv_header_sys_wait_h=no - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - fi - echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 - echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 -@@ -3525,7 +3668,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3546,10 +3688,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -3563,7 +3715,7 @@ - - ac_cv_header_time=no - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+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 -@@ -3582,7 +3734,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3599,10 +3750,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -3616,7 +3777,7 @@ - - libiberty_cv_declare_errno=yes - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - fi - echo "$as_me:$LINENO: result: $libiberty_cv_declare_errno" >&5 - echo "${ECHO_T}$libiberty_cv_declare_errno" >&6 -@@ -3650,7 +3811,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3671,10 +3831,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -3688,12 +3858,11 @@ - - ac_cv_header_stdc=no - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+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 --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3715,7 +3884,6 @@ - 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 --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3740,7 +3908,6 @@ - : - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3790,7 +3957,7 @@ - ( exit $ac_status ) - ac_cv_header_stdc=no - fi --rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext - fi - fi - fi -@@ -3824,7 +3991,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3842,6 +4008,7 @@ - (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 -@@ -3875,7 +4042,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3895,10 +4061,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -3912,7 +4088,7 @@ - - ac_cv_type_uintptr_t=no - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+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 -@@ -3941,7 +4117,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3961,10 +4136,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -3978,7 +4163,7 @@ - - ac_cv_type_pid_t=no - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - fi - echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 - echo "${ECHO_T}$ac_cv_type_pid_t" >&6 -@@ -4139,7 +4324,6 @@ - { (exit 1); exit 1; }; } - fi - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -4186,10 +4370,20 @@ - _ACEOF - rm -f conftest.$ac_objext conftest$ac_exeext - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -- (eval $ac_link) 2>&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 -@@ -4203,7 +4397,8 @@ - - eval "$as_ac_var=no" - fi --rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -+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 -@@ -4250,12 +4445,54 @@ - # newlib provide and which ones we will be expected to provide. - - if test "x${with_newlib}" = "xyes"; then -- LIBOBJS="$LIBOBJS asprintf.$ac_objext" -- LIBOBJS="$LIBOBJS basename.$ac_objext" -- LIBOBJS="$LIBOBJS insque.$ac_objext" -- LIBOBJS="$LIBOBJS random.$ac_objext" -- LIBOBJS="$LIBOBJS strdup.$ac_objext" -- LIBOBJS="$LIBOBJS vasprintf.$ac_objext" -+ case $LIBOBJS in -+ "asprintf.$ac_objext" | \ -+ *" asprintf.$ac_objext" | \ -+ "asprintf.$ac_objext "* | \ -+ *" asprintf.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;; -+esac -+ -+ case $LIBOBJS in -+ "basename.$ac_objext" | \ -+ *" basename.$ac_objext" | \ -+ "basename.$ac_objext "* | \ -+ *" basename.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;; -+esac -+ -+ case $LIBOBJS in -+ "insque.$ac_objext" | \ -+ *" insque.$ac_objext" | \ -+ "insque.$ac_objext "* | \ -+ *" insque.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;; -+esac -+ -+ case $LIBOBJS in -+ "random.$ac_objext" | \ -+ *" random.$ac_objext" | \ -+ "random.$ac_objext "* | \ -+ *" random.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS random.$ac_objext" ;; -+esac -+ -+ case $LIBOBJS in -+ "strdup.$ac_objext" | \ -+ *" strdup.$ac_objext" | \ -+ "strdup.$ac_objext "* | \ -+ *" strdup.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;; -+esac -+ -+ case $LIBOBJS in -+ "vasprintf.$ac_objext" | \ -+ *" vasprintf.$ac_objext" | \ -+ "vasprintf.$ac_objext "* | \ -+ *" vasprintf.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;; -+esac -+ - - for f in $funcs; do - case "$f" in -@@ -4337,16 +4574,86 @@ - # Handle VxWorks configuration specially, since on VxWorks the - # libraries are actually on the target board, not in the file - # system. -- LIBOBJS="$LIBOBJS basename.$ac_objext" -- LIBOBJS="$LIBOBJS getpagesize.$ac_objext" -- LIBOBJS="$LIBOBJS insque.$ac_objext" -- LIBOBJS="$LIBOBJS random.$ac_objext" -- LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" -- LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" -- LIBOBJS="$LIBOBJS strdup.$ac_objext" -- LIBOBJS="$LIBOBJS vfork.$ac_objext" -- LIBOBJS="$LIBOBJS waitpid.$ac_objext" -- LIBOBJS="$LIBOBJS vasprintf.$ac_objext" -+ case $LIBOBJS in -+ "basename.$ac_objext" | \ -+ *" basename.$ac_objext" | \ -+ "basename.$ac_objext "* | \ -+ *" basename.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;; -+esac -+ -+ case $LIBOBJS in -+ "getpagesize.$ac_objext" | \ -+ *" getpagesize.$ac_objext" | \ -+ "getpagesize.$ac_objext "* | \ -+ *" getpagesize.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext" ;; -+esac -+ -+ case $LIBOBJS in -+ "insque.$ac_objext" | \ -+ *" insque.$ac_objext" | \ -+ "insque.$ac_objext "* | \ -+ *" insque.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;; -+esac -+ -+ case $LIBOBJS in -+ "random.$ac_objext" | \ -+ *" random.$ac_objext" | \ -+ "random.$ac_objext "* | \ -+ *" random.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS random.$ac_objext" ;; -+esac -+ -+ case $LIBOBJS in -+ "strcasecmp.$ac_objext" | \ -+ *" strcasecmp.$ac_objext" | \ -+ "strcasecmp.$ac_objext "* | \ -+ *" strcasecmp.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" ;; -+esac -+ -+ case $LIBOBJS in -+ "strncasecmp.$ac_objext" | \ -+ *" strncasecmp.$ac_objext" | \ -+ "strncasecmp.$ac_objext "* | \ -+ *" strncasecmp.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" ;; -+esac -+ -+ case $LIBOBJS in -+ "strdup.$ac_objext" | \ -+ *" strdup.$ac_objext" | \ -+ "strdup.$ac_objext "* | \ -+ *" strdup.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;; -+esac -+ -+ case $LIBOBJS in -+ "vfork.$ac_objext" | \ -+ *" vfork.$ac_objext" | \ -+ "vfork.$ac_objext "* | \ -+ *" vfork.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS vfork.$ac_objext" ;; -+esac -+ -+ case $LIBOBJS in -+ "waitpid.$ac_objext" | \ -+ *" waitpid.$ac_objext" | \ -+ "waitpid.$ac_objext "* | \ -+ *" waitpid.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS waitpid.$ac_objext" ;; -+esac -+ -+ case $LIBOBJS in -+ "vasprintf.$ac_objext" | \ -+ *" vasprintf.$ac_objext" | \ -+ "vasprintf.$ac_objext "* | \ -+ *" vasprintf.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;; -+esac -+ - for f in $funcs; do - case "$f" in - basename | getpagesize | insque | random | strcasecmp) -@@ -4399,7 +4706,14 @@ - if test -n "${with_target_subdir}" - then - funcs="`echo $funcs | sed -e 's/random//'`" -- LIBOBJS="$LIBOBJS random.$ac_objext" -+ case $LIBOBJS in -+ "random.$ac_objext" | \ -+ *" random.$ac_objext" | \ -+ "random.$ac_objext "* | \ -+ *" random.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS random.$ac_objext" ;; -+esac -+ - vars="`echo $vars | sed -e 's/sys_siglist//'`" - checkfuncs="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`" - fi -@@ -4448,7 +4762,6 @@ - { (exit 1); exit 1; }; } - fi - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -4472,10 +4785,20 @@ - _ACEOF - rm -f conftest.$ac_objext conftest$ac_exeext - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -- (eval $ac_link) 2>&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 -@@ -4488,7 +4811,8 @@ - sed 's/^/| /' conftest.$ac_ext >&5 - - fi --rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -+rm -f conftest.err conftest.$ac_objext \ -+ conftest$ac_exeext conftest.$ac_ext - if test "$ac_cv_search_strerror" = no; then - for ac_lib in cposix; do - LIBS="-l$ac_lib $ac_func_search_save_LIBS" -@@ -4498,7 +4822,6 @@ - { (exit 1); exit 1; }; } - fi - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -4522,10 +4845,20 @@ - _ACEOF - rm -f conftest.$ac_objext conftest$ac_exeext - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -- (eval $ac_link) 2>&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 -@@ -4539,7 +4872,8 @@ - sed 's/^/| /' conftest.$ac_ext >&5 - - fi --rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -+rm -f conftest.err conftest.$ac_objext \ -+ conftest$ac_exeext conftest.$ac_ext - done - fi - LIBS=$ac_func_search_save_LIBS -@@ -4566,7 +4900,6 @@ - { (exit 1); exit 1; }; } - fi - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -4613,10 +4946,20 @@ - _ACEOF - rm -f conftest.$ac_objext conftest$ac_exeext - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -- (eval $ac_link) 2>&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 -@@ -4630,7 +4973,8 @@ - - eval "$as_ac_var=no" - fi --rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -+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 -@@ -4640,7 +4984,14 @@ - _ACEOF - - else -- LIBOBJS="$LIBOBJS $ac_func.$ac_objext" -+ case $LIBOBJS in -+ "$ac_func.$ac_objext" | \ -+ *" $ac_func.$ac_objext" | \ -+ "$ac_func.$ac_objext "* | \ -+ *" $ac_func.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; -+esac -+ - fi - done - -@@ -4651,7 +5002,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -4689,7 +5039,6 @@ - { (exit 1); exit 1; }; } - fi - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -4736,10 +5085,20 @@ - _ACEOF - rm -f conftest.$ac_objext conftest$ac_exeext - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -- (eval $ac_link) 2>&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 -@@ -4753,7 +5112,8 @@ - - eval "$as_ac_var=no" - fi --rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -+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 -@@ -4777,7 +5137,6 @@ - ac_cv_c_stack_direction=0 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -4820,7 +5179,7 @@ - ( exit $ac_status ) - ac_cv_c_stack_direction=-1 - fi --rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext - fi - fi - echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 -@@ -4842,7 +5201,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -4860,6 +5218,7 @@ - (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 -@@ -4902,7 +5261,6 @@ - { (exit 1); exit 1; }; } - fi - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -4949,10 +5307,20 @@ - _ACEOF - rm -f conftest.$ac_objext conftest$ac_exeext - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -- (eval $ac_link) 2>&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 -@@ -4966,7 +5334,8 @@ - - eval "$as_ac_var=no" - fi --rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -+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 -@@ -5021,7 +5390,7 @@ - ( exit $ac_status ) - ac_cv_func_fork_works=no - fi --rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext - fi - fi - echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 -@@ -5054,7 +5423,6 @@ - ac_cv_func_vfork_works=cross - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -5176,7 +5544,7 @@ - ( exit $ac_status ) - ac_cv_func_vfork_works=no - fi --rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext - fi - fi - echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 -@@ -5184,7 +5552,7 @@ - - fi; - if test "x$ac_cv_func_fork_works" = xcross; then -- ac_cv_func_vfork_works=ac_cv_func_vfork -+ ac_cv_func_vfork_works=$ac_cv_func_vfork - { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 - echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} - fi -@@ -5211,7 +5579,14 @@ - fi - - if test $ac_cv_func_vfork_works = no; then -- LIBOBJS="$LIBOBJS vfork.$ac_objext" -+ case $LIBOBJS in -+ "vfork.$ac_objext" | \ -+ *" vfork.$ac_objext" | \ -+ "vfork.$ac_objext "* | \ -+ *" vfork.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS vfork.$ac_objext" ;; -+esac -+ - fi - # We only need _doprnt if we might use it to implement v*printf. - if test $ac_cv_func_vprintf != yes \ -@@ -5232,7 +5607,6 @@ - { (exit 1); exit 1; }; } - fi - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -5279,10 +5653,20 @@ - _ACEOF - rm -f conftest.$ac_objext conftest$ac_exeext - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -- (eval $ac_link) 2>&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 -@@ -5296,7 +5680,8 @@ - - eval "$as_ac_var=no" - fi --rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -+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 -@@ -5306,7 +5691,14 @@ - _ACEOF - - else -- LIBOBJS="$LIBOBJS $ac_func.$ac_objext" -+ case $LIBOBJS in -+ "$ac_func.$ac_objext" | \ -+ *" $ac_func.$ac_objext" | \ -+ "$ac_func.$ac_objext "* | \ -+ *" $ac_func.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; -+esac -+ - fi - done - -@@ -5327,7 +5719,6 @@ - { (exit 1); exit 1; }; } - fi - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -5374,10 +5765,20 @@ - _ACEOF - rm -f conftest.$ac_objext conftest$ac_exeext - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -- (eval $ac_link) 2>&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 -@@ -5391,7 +5792,8 @@ - - eval "$as_ac_var=no" - fi --rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -+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 -@@ -5417,7 +5819,6 @@ - { (exit 1); exit 1; }; } - fi - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -5434,10 +5835,20 @@ - _ACEOF - rm -f conftest.$ac_objext conftest$ac_exeext - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -- (eval $ac_link) 2>&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 -@@ -5451,7 +5862,8 @@ - - eval "libiberty_cv_var_$v=no" - fi --rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -+rm -f conftest.err conftest.$ac_objext \ -+ conftest$ac_exeext conftest.$ac_ext - fi - - if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then -@@ -5473,7 +5885,6 @@ - echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5 - echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6 - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -5490,10 +5901,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -5514,7 +5935,7 @@ - echo "$as_me:$LINENO: result: no" >&5 - echo "${ECHO_T}no" >&6 - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - - - for ac_func in $checkfuncs -@@ -5531,7 +5952,6 @@ - { (exit 1); exit 1; }; } - fi - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -5578,10 +5998,20 @@ - _ACEOF - rm -f conftest.$ac_objext conftest$ac_exeext - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -- (eval $ac_link) 2>&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 -@@ -5595,7 +6025,8 @@ - - eval "$as_ac_var=no" - fi --rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -+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 -@@ -5613,7 +6044,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -5645,10 +6075,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -5662,7 +6102,7 @@ - - libiberty_cv_decl_needed_canonicalize_file_name=yes - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - fi - - echo "$as_me:$LINENO: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5 -@@ -5679,11 +6119,11 @@ - - # Figure out which version of pexecute to use. - case "${host}" in -- *-*-mingw* | *-*-winnt*) pexecute=pex-win32.o ;; -- *-*-msdosdjgpp*) pexecute=pex-djgpp.o ;; -- *-*-msdos*) pexecute=pex-msdos.o ;; -- *-*-os2-emx*) pexecute=pex-os2.o ;; -- *) pexecute=pex-unix.o ;; -+ *-*-mingw* | *-*-winnt*) pexecute="./pex-win32.o ./pexrd-generic.o" ;; -+ *-*-msdosdjgpp*) pexecute="./pex-djgpp.o ./pexrd-generic.o" ;; -+ *-*-msdos*) pexecute="./pex-msdos.o ./pexrd-generic.o" ;; -+ *-*-os2-emx*) pexecute="./pex-os2.o ./pexrd-generic.o" ;; -+ *) pexecute="./pex-unix.o ./pexrd-unix.o" ;; - esac - - -@@ -5704,7 +6144,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -5722,6 +6161,7 @@ - (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 -@@ -5763,7 +6203,6 @@ - { (exit 1); exit 1; }; } - fi - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -5810,10 +6249,20 @@ - _ACEOF - rm -f conftest.$ac_objext conftest$ac_exeext - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -- (eval $ac_link) 2>&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 -@@ -5827,7 +6276,8 @@ - - eval "$as_ac_var=no" - fi --rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -+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 -@@ -5848,7 +6298,6 @@ - ac_cv_func_mmap_fixed_mapped=no - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -5956,7 +6405,7 @@ - data2 = (char *) malloc (2 * pagesize); - if (!data2) - exit (1); -- data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); -+ data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); - if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, - MAP_PRIVATE | MAP_FIXED, fd, 0L)) - exit (1); -@@ -6001,7 +6450,7 @@ - ( exit $ac_status ) - ac_cv_func_mmap_fixed_mapped=no - fi --rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext - fi - fi - echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 -@@ -6026,7 +6475,6 @@ - ac_cv_func_strncmp_works=no - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -6114,14 +6562,21 @@ - ( exit $ac_status ) - ac_cv_func_strncmp_works=no - fi --rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext - fi - rm -f core core.* *.core - fi - echo "$as_me:$LINENO: result: $ac_cv_func_strncmp_works" >&5 - echo "${ECHO_T}$ac_cv_func_strncmp_works" >&6 - if test $ac_cv_func_strncmp_works = no ; then -- LIBOBJS="$LIBOBJS strncmp.$ac_objext" -+ case $LIBOBJS in -+ "strncmp.$ac_objext" | \ -+ *" strncmp.$ac_objext" | \ -+ "strncmp.$ac_objext "* | \ -+ *" strncmp.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS strncmp.$ac_objext" ;; -+esac -+ - fi - - -@@ -6134,6 +6589,16 @@ - fi - - -+ -+L="" -+for l in x $LIBOBJS; do -+ case $l in -+ x) ;; -+ *) L="$L ./$l" ;; -+ esac -+done -+LIBOBJS="$L" -+ - # We need multilib support, but only if configuring for the target. - ac_config_files="$ac_config_files Makefile testsuite/Makefile" - ac_config_commands="$ac_config_commands default" -@@ -6262,9 +6727,10 @@ - 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 (FOO=FOO; unset FOO) >/dev/null 2>&1; then -+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset - else - as_unset=false -@@ -6283,7 +6749,7 @@ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME - do -- if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then -+ 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 -@@ -6462,16 +6928,17 @@ - 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="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" -+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="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" -+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - - # IFS -@@ -6498,7 +6965,7 @@ - cat >&5 <<_CSEOF - - This file was extended by $as_me, which was --generated by GNU Autoconf 2.57. Invocation command line was -+generated by GNU Autoconf 2.59. Invocation command line was - - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS -@@ -6561,11 +7028,10 @@ - cat >>$CONFIG_STATUS <<_ACEOF - ac_cs_version="\\ - config.status --configured by $0, generated by GNU Autoconf 2.57, -+configured by $0, generated by GNU Autoconf 2.59, - with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" - --Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 --Free Software Foundation, Inc. -+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 -@@ -6932,12 +7398,45 @@ - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_builddir$srcdir ;; - esac --# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be --# absolute. --ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` --ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` --ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` --ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` -+ -+# 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 -@@ -6972,14 +7471,14 @@ - 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;; -+ echo "$f";; - *) # Relative - if test -f "$f"; then - # Build tree -- echo $f -+ echo "$f" - elif test -f "$srcdir/$f"; then - # Source tree -- echo $srcdir/$f -+ echo "$srcdir/$f" - else - # /dev/null tree - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 -@@ -7063,14 +7562,15 @@ - 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;; -+ # Do quote $f, to prevent DOS paths from being IFS'd. -+ echo "$f";; - *) # Relative - if test -f "$f"; then - # Build tree -- echo $f -+ echo "$f" - elif test -f "$srcdir/$f"; then - # Source tree -- echo $srcdir/$f -+ echo "$srcdir/$f" - else - # /dev/null tree - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 -@@ -7259,6 +7759,31 @@ - /^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 -@@ -7284,12 +7809,45 @@ - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_builddir$srcdir ;; - esac --# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be --# absolute. --ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` --ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` --ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` --ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` -+ -+# 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 -diff -NBaur gcc-3.4.3/libiberty/configure.ac gcc-3.4.3-new/libiberty/configure.ac ---- gcc-3.4.3/libiberty/configure.ac Sat Jan 10 02:17:41 2004 -+++ gcc-3.4.3-new/libiberty/configure.ac Fri Jan 21 10:25:52 2005 -@@ -1,7 +1,8 @@ - dnl Process this file with autoconf to produce a configure script - --AC_PREREQ(2.57) --AC_INIT(xmalloc.c) -+AC_PREREQ(2.59) -+AC_INIT -+AC_CONFIG_SRCDIR([xmalloc.c]) - - # This works around the fact that libtool configuration may change LD - # for this particular configuration, but some shells, instead of -@@ -433,7 +434,7 @@ - AC_ISC_POSIX - AC_REPLACE_FUNCS($funcs) - libiberty_AC_FUNC_C_ALLOCA -- AC_FUNC_VFORK -+ AC_FUNC_FORK - if test $ac_cv_func_vfork_works = no; then - AC_LIBOBJ([vfork]) - fi -@@ -449,7 +450,7 @@ - for v in $vars; do - AC_MSG_CHECKING([for $v]) - AC_CACHE_VAL(libiberty_cv_var_$v, -- [AC_TRY_LINK([int *p;], [extern int $v []; p = $v;], -+ [AC_LINK_IFELSE([AC_LANG_PROGRAM([[int *p;]],[[extern int $v []; p = $v;]])], - [eval "libiberty_cv_var_$v=yes"], - [eval "libiberty_cv_var_$v=no"])]) - if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then -@@ -464,8 +465,8 @@ - # special check for _system_configuration because AIX <4.3.2 do not - # contain the `physmem' member. - AC_MSG_CHECKING([for external symbol _system_configuration]) -- AC_TRY_COMPILE([#include ], -- [double x = _system_configuration.physmem;], -+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], -+ [[double x = _system_configuration.physmem;]])], - [AC_MSG_RESULT([yes]) - AC_DEFINE(HAVE__SYSTEM_CONFIGURATION, 1, - [Define if you have the _system_configuration variable.])], -@@ -477,11 +478,11 @@ - - # Figure out which version of pexecute to use. - case "${host}" in -- *-*-mingw* | *-*-winnt*) pexecute=pex-win32.o ;; -- *-*-msdosdjgpp*) pexecute=pex-djgpp.o ;; -- *-*-msdos*) pexecute=pex-msdos.o ;; -- *-*-os2-emx*) pexecute=pex-os2.o ;; -- *) pexecute=pex-unix.o ;; -+ *-*-mingw* | *-*-winnt*) pexecute="./pex-win32.o ./pexrd-generic.o" ;; -+ *-*-msdosdjgpp*) pexecute="./pex-djgpp.o ./pexrd-generic.o" ;; -+ *-*-msdos*) pexecute="./pex-msdos.o ./pexrd-generic.o" ;; -+ *-*-os2-emx*) pexecute="./pex-os2.o ./pexrd-generic.o" ;; -+ *) pexecute="./pex-unix.o ./pexrd-unix.o" ;; - esac - AC_SUBST(pexecute) - -@@ -496,9 +497,20 @@ - fi - AC_SUBST(INSTALL_DEST) - -+m4_pattern_allow(LIBOBJS) -+L="" -+for l in x $LIBOBJS; do -+ case $l in -+ x) ;; -+ *) L="$L ./$l" ;; -+ esac -+done -+LIBOBJS="$L" -+ - # We need multilib support, but only if configuring for the target. --AC_OUTPUT(Makefile testsuite/Makefile, --[test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h -+AC_CONFIG_FILES([Makefile testsuite/Makefile]) -+AC_CONFIG_COMMANDS([default], -+ [[test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h - if test -n "$CONFIG_FILES"; then - if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then - # FIXME: We shouldn't need to set ac_file -@@ -506,8 +518,8 @@ - LD="${ORIGINAL_LD_FOR_MULTILIBS}" - . ${libiberty_topdir}/config-ml.in - fi --fi], --srcdir=${srcdir} -+fi]], -+[[srcdir=${srcdir} - host=${host} - target=${target} - with_target_subdir=${with_target_subdir} -@@ -517,4 +529,5 @@ - CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} - ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}" - libiberty_topdir=${libiberty_topdir} --) -+]]) -+AC_OUTPUT -diff -NBaur gcc-3.4.3/libiberty/dyn-string.c gcc-3.4.3-new/libiberty/dyn-string.c ---- gcc-3.4.3/libiberty/dyn-string.c Mon Apr 1 22:55:12 2002 -+++ gcc-3.4.3-new/libiberty/dyn-string.c Fri Jan 21 10:25:52 2005 -@@ -1,5 +1,5 @@ - /* An abstract string datatype. -- Copyright (C) 1998, 1999, 2000, 2002 Free Software Foundation, Inc. -+ Copyright (C) 1998, 1999, 2000, 2002, 2004 Free Software Foundation, Inc. - Contributed by Mark Mitchell (mark@markmitchell.com). - - This file is part of GNU CC. -@@ -44,15 +44,6 @@ - - #include "libiberty.h" - #include "dyn-string.h" -- --/* If this file is being compiled for inclusion in the C++ runtime -- library, as part of the demangler implementation, we don't want to -- abort if an allocation fails. Instead, percolate an error code up -- through the call chain. */ -- --#if defined(IN_LIBGCC2) || defined(IN_GLIBCPP_V3) --#define RETURN_ON_ALLOCATION_FAILURE --#endif - - /* Performs in-place initialization of a dyn_string struct. This - function can be used with a dyn_string struct on the stack or -diff -NBaur gcc-3.4.3/libiberty/getpwd.c gcc-3.4.3-new/libiberty/getpwd.c ---- gcc-3.4.3/libiberty/getpwd.c Sun Oct 7 22:53:31 2001 -+++ gcc-3.4.3-new/libiberty/getpwd.c Fri Jan 21 10:25:52 2005 -@@ -35,6 +35,9 @@ - #if HAVE_SYS_STAT_H - #include - #endif -+#if HAVE_LIMITS_H -+#include -+#endif - - /* Prototype these in case the system headers don't provide them. */ - extern char *getpwd (); -diff -NBaur gcc-3.4.3/libiberty/maint-tool gcc-3.4.3-new/libiberty/maint-tool ---- gcc-3.4.3/libiberty/maint-tool Tue Apr 15 20:21:38 2003 -+++ gcc-3.4.3-new/libiberty/maint-tool Fri Jan 21 10:25:52 2005 -@@ -213,6 +213,12 @@ - - sub deps { - -+ $crule = "\tif [ x\"\$(PICFLAG)\" != x ]; then \\\n"; -+ $crule .= "\t \$(COMPILE.c) \$(PICFLAG) \$< -o pic/\$@; \\\n"; -+ $crule .= "\telse true; fi\n"; -+ $crule .= "\t\$(COMPILE.c) \$< \$(OUTPUT_OPTION)\n"; -+ $crule .= "\n"; -+ - $incdir = shift @ARGV; - - opendir(INC, $incdir); -@@ -260,10 +266,10 @@ - @deps = sort { &locals_first($a,$b) } keys %scanned; - $obj = $f; - $obj =~ s/\.c$/.o/; -- $obj = "$obj:"; -+ $obj = "./$obj:"; - if ($#deps >= 0) { -- print OUT $obj; -- $len = length($obj); -+ print OUT "$obj \$(srcdir)/$f"; -+ $len = length("$obj $f"); - for $dt (@deps) { - $d = $mine{$dt}; - if ($len + length($d) > 70) { -@@ -275,7 +281,12 @@ - } - } - print OUT "\n"; -+ } else { -+ print OUT "$obj \$(srcdir)/$f\n"; - } -+ $c = $crule; -+ $c =~ s@\$\<@\$\(srcdir\)\/$f@g; -+ print OUT $c; - } - } - closedir(S); -diff -NBaur gcc-3.4.3/libiberty/pex-common.h gcc-3.4.3-new/libiberty/pex-common.h ---- gcc-3.4.3/libiberty/pex-common.h Fri Jan 24 20:02:11 2003 -+++ gcc-3.4.3-new/libiberty/pex-common.h Fri Jan 21 10:25:52 2005 -@@ -1,6 +1,6 @@ - /* Utilities to execute a program in a subprocess (possibly linked by pipes - with other subprocesses), and wait for it. Shared logic. -- Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003 -+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004 - Free Software Foundation, Inc. - - This file is part of the libiberty library. -@@ -32,6 +32,9 @@ - - /* stdout file number. */ - #define STDOUT_FILE_NO 1 -+ -+/* stderr file number. */ -+#define STDERR_FILE_NO 2 - - /* value of `pipe': port index for reading. */ - #define READ_PORT 0 -diff -NBaur gcc-3.4.3/libiberty/pex-unix.c gcc-3.4.3-new/libiberty/pex-unix.c ---- gcc-3.4.3/libiberty/pex-unix.c Fri Jan 24 20:02:11 2003 -+++ gcc-3.4.3-new/libiberty/pex-unix.c Fri Jan 21 10:25:52 2005 -@@ -1,7 +1,7 @@ - /* Utilities to execute a program in a subprocess (possibly linked by pipes - with other subprocesses), and wait for it. Generic Unix version - (also used for UWIN and VMS). -- Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003 -+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004 - Free Software Foundation, Inc. - - This file is part of the libiberty library. -@@ -44,28 +44,66 @@ - #define waitpid(pid, status, flags) wait(status) - #endif - --extern int execv (); --extern int execvp (); -+#ifdef vfork /* Autoconf may define this to fork for us. */ -+# define VFORK_STRING "fork" -+#else -+# define VFORK_STRING "vfork" -+#endif -+#ifdef HAVE_VFORK_H -+#include -+#endif -+#ifdef VMS -+#define vfork() (decc$$alloc_vfork_blocks() >= 0 ? \ -+ lib$get_current_invo_context(decc$$get_vfork_jmpbuf()) : -1) -+#endif /* VMS */ -+ -+/* Execute a program, possibly setting up pipes to programs executed -+ via other calls to this function. -+ -+ This version of the function uses vfork. In general vfork is -+ similar to setjmp/longmp, in that any variable which is modified by -+ the child process has an indeterminate value in the parent process. -+ We follow a safe approach here by not modifying any variables at -+ all in the child process (with the possible exception of variables -+ modified by xstrerror if exec fails, but this is unlikely to be -+ detectable). -+ -+ We work a little bit harder to avoid gcc warnings. gcc will warn -+ about any automatic variable which is live at the time of the -+ vfork, which is non-volatile, and which is either set more than -+ once or is an argument to the function. This warning isn't quite -+ right, since what we really care about is whether the variable is -+ live at the time of the vfork and set afterward by the child -+ process, but gcc only checks whether the variable is set more than -+ once. To avoid this warning, we ensure that any variable which is -+ live at the time of the vfork (i.e., used after the vfork) is set -+ exactly once and is not an argument, or is marked volatile. */ - - int --pexecute (program, argv, this_pname, temp_base, errmsg_fmt, errmsg_arg, flags) -+pexecute (program, argv, this_pname, temp_base, errmsg_fmt, errmsg_arg, -+ flagsarg) - const char *program; - char * const *argv; - const char *this_pname; - const char *temp_base ATTRIBUTE_UNUSED; - char **errmsg_fmt, **errmsg_arg; -- int flags; -+ int flagsarg; - { -- int (*func)() = (flags & PEXECUTE_SEARCH ? execvp : execv); - int pid; - int pdes[2]; -+ int out; - int input_desc, output_desc; -- int retries, sleep_interval; -+ int flags; -+ /* We declare these to be volatile to avoid warnings from gcc about -+ them being clobbered by vfork. */ -+ volatile int retries, sleep_interval; - /* Pipe waiting from last process, to be used as input for the next one. - Value is STDIN_FILE_NO if no pipe is waiting - (i.e. the next command is the first of a group). */ - static int last_pipe_input; - -+ flags = flagsarg; -+ - /* If this is the first process, initialize. */ - if (flags & PEXECUTE_FIRST) - last_pipe_input = STDIN_FILE_NO; -@@ -82,22 +120,24 @@ - *errmsg_arg = NULL; - return -1; - } -- output_desc = pdes[WRITE_PORT]; -+ out = pdes[WRITE_PORT]; - last_pipe_input = pdes[READ_PORT]; - } - else - { - /* Last process. */ -- output_desc = STDOUT_FILE_NO; -+ out = STDOUT_FILE_NO; - last_pipe_input = STDIN_FILE_NO; - } - -+ output_desc = out; -+ - /* Fork a subprocess; wait and retry if it fails. */ - sleep_interval = 1; - pid = -1; - for (retries = 0; retries < 4; retries++) - { -- pid = fork (); -+ pid = vfork (); - if (pid >= 0) - break; - sleep (sleep_interval); -@@ -131,12 +171,21 @@ - close (last_pipe_input); - - /* Exec the program. */ -- (*func) (program, argv); -- -- fprintf (stderr, "%s: ", this_pname); -- fprintf (stderr, install_error_msg, program); -- fprintf (stderr, ": %s\n", xstrerror (errno)); -- exit (-1); -+ if (flags & PEXECUTE_SEARCH) -+ execvp (program, argv); -+ else -+ execv (program, argv); -+ -+ /* We don't want to call fprintf after vfork. */ -+#define writeerr(s) write (STDERR_FILE_NO, s, strlen (s)) -+ writeerr (this_pname); -+ writeerr (": "); -+ writeerr ("installation problem, cannot exec '"); -+ writeerr (program); -+ writeerr ("': "); -+ writeerr (xstrerror (errno)); -+ writeerr ("\n"); -+ _exit (-1); - /* NOTREACHED */ - return 0; - -diff -NBaur gcc-3.4.3/libiberty/pexecute.txh gcc-3.4.3-new/libiberty/pexecute.txh ---- gcc-3.4.3/libiberty/pexecute.txh Fri Jan 24 20:02:11 2003 -+++ gcc-3.4.3-new/libiberty/pexecute.txh Fri Jan 21 10:25:52 2005 -@@ -1,4 +1,4 @@ --@deftypefn Extension int pexecute (const char *@var{program}, char * const *@var{argv}, const char *@var{this_pname}, const char *@var{temp_base}, char **@var{errmsg_fmt}, char **@var{errmsg_arg}, int flags) -+@deftypefn Extension int pexecute (const char *@var{program}, char * const *@var{argv}, const char *@var{this_pname}, const char *@var{temp_base}, char **@var{errmsg_fmt}, char **@var{errmsg_arg}, int @var{flags}) - - Executes a program. - -@@ -61,3 +61,39 @@ - - pfinish is necessary for systems like MPW where a script is generated - that runs the requested programs. -+ -+@end undocumented -+ -+@deftypefn Extension FILE* pex_read (const char *@var{program}, char * const *@var{argv}, const char *@var{this_pname}, const char *@var{temp_base}, char **@var{errmsg_fmt}, char **@var{errmsg_arg}, int @var{flags}, int *@var{pidptr}) -+ -+Executes a program and returns a stdio file for the program's standard -+output. This is a safe version of the usual Unix function -+@code{popen}. -+ -+The first seven parameters are the same as for @code{pexecute}. The -+last parameter returns a process identifier to be passed to -+@code{pex_read_close}. -+ -+The only flags used for the @var{flags} parameter is -+@code{PEXECUTE_SEARCH}. -+ -+Upon failure, @var{errmsg_fmt} and @var{errmsg_arg} are set to the -+text of the error message with an optional argument (if not needed, -+@var{errmsg_arg} is set to @code{NULL}), and @code{NULL} is returned. -+@code{errno} is available to the caller to use. -+ -+@end deftypefn -+ -+@deftypefn Extension int pex_read_close (int @var{pid}, FILE *@var{file}, int *@var{status}, int @var{flags}) -+ -+Close a file opened by @code{pex_read}, and wait for the subprocess to -+complete. The @var{pid} and @var{file} arguments should have been -+obtained from a call to @code{pex_read}. -+ -+The result is the pid of the child reaped, or -1 for failure -+(@code{errno} says why). -+ -+On a successful return, *@var{status} is set to the exit status of the -+subprocess. -+ -+@end deftypefn -diff -NBaur gcc-3.4.3/libiberty/pexrd-generic.c gcc-3.4.3-new/libiberty/pexrd-generic.c ---- gcc-3.4.3/libiberty/pexrd-generic.c Thu Jan 1 00:00:00 1970 -+++ gcc-3.4.3-new/libiberty/pexrd-generic.c Fri Jan 21 10:25:52 2005 -@@ -0,0 +1,72 @@ -+/* Execute a program and read stdout. Generic version. -+ Copyright (C) 2004 Free Software Foundation, Inc. -+ -+This file is part of the libiberty library. -+Libiberty is free software; you can redistribute it and/or -+modify it under the terms of the GNU Library General Public -+License as published by the Free Software Foundation; either -+version 2 of the License, or (at your option) any later version. -+ -+Libiberty 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 -+Library General Public License for more details. -+ -+You should have received a copy of the GNU Library General Public -+License along with libiberty; see the file COPYING.LIB. If not, -+write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -+Boston, MA 02111-1307, USA. */ -+ -+#include "pex-common.h" -+#include "pex-read.h" -+ -+#include -+#ifdef NEED_DECLARATION_ERRNO -+extern int errno; -+#endif -+#ifdef HAVE_STDLIB_H -+#include -+#endif -+ -+FILE * -+pex_read (program, argv, this_pname, temp_base, errmsg_fmt, errmsg_arg, flags, -+ pidptr) -+ const char *program; -+ char * const *argv; -+ const char *this_pname ATTRIBUTE_UNUSED; -+ const char *temp_base ATTRIBUTE_UNUSED; -+ char **errmsg_fmt; -+ char **errmsg_arg; -+ int flags ATTRIBUTE_UNUSED; -+ int *pidptr ATTRIBUTE_UNUSED; -+{ -+ char *cmd; -+ int i; -+ FILE *ret; -+ -+ cmd = xstrdup (program); -+ for (i = 0; argv[i] != NULL; ++i) -+ cmd = reconcat (cmd, cmd, " ", argv[i], NULL); -+ -+ ret = popen (cmd, "r"); -+ if (ret == NULL) -+ { -+ *errmsg_fmt = "popen"; -+ *errmsg_arg = NULL; -+ } -+ -+ free (cmd); -+ -+ return ret; -+} -+ -+int -+pex_read_close (pid, file, status, flags) -+ int pid ATTRIBUTE_UNUSED; -+ FILE *file; -+ int *status; -+ int flags ATTRIBUTE_UNUSED; -+{ -+ *status = pclose (file); -+ return 0; -+} -diff -NBaur gcc-3.4.3/libiberty/pexrd-unix.c gcc-3.4.3-new/libiberty/pexrd-unix.c ---- gcc-3.4.3/libiberty/pexrd-unix.c Thu Jan 1 00:00:00 1970 -+++ gcc-3.4.3-new/libiberty/pexrd-unix.c Fri Jan 21 10:25:52 2005 -@@ -0,0 +1,164 @@ -+/* Execute a program and read stdout. Generic Unix version. -+ Copyright (C) 2004 Free Software Foundation, Inc. -+ -+This file is part of the libiberty library. -+Libiberty is free software; you can redistribute it and/or -+modify it under the terms of the GNU Library General Public -+License as published by the Free Software Foundation; either -+version 2 of the License, or (at your option) any later version. -+ -+Libiberty 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 -+Library General Public License for more details. -+ -+You should have received a copy of the GNU Library General Public -+License along with libiberty; see the file COPYING.LIB. If not, -+write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -+Boston, MA 02111-1307, USA. */ -+ -+#include "pex-common.h" -+ -+#include -+#include -+#ifdef NEED_DECLARATION_ERRNO -+extern int errno; -+#endif -+#ifdef HAVE_STRING_H -+#include -+#endif -+#ifdef HAVE_STDLIB_H -+#include -+#endif -+#if HAVE_UNISTD_H -+#include -+#endif -+#ifdef HAVE_SYS_WAIT_H -+#include -+#endif -+ -+#ifndef HAVE_WAITPID -+#define waitpid(pid, status, flags) wait(status) -+#endif -+ -+#ifdef vfork /* Autoconf may define this to fork for us. */ -+# define VFORK_STRING "fork" -+#else -+# define VFORK_STRING "vfork" -+#endif -+#ifdef HAVE_VFORK_H -+#include -+#endif -+#ifdef VMS -+#define vfork() (decc$$alloc_vfork_blocks() >= 0 ? \ -+ lib$get_current_invo_context(decc$$get_vfork_jmpbuf()) : -1) -+#endif /* VMS */ -+ -+/* A safe version of popen. See pex-unix.c for notes on vfork. */ -+ -+FILE * -+pex_read (program, argv, this_pname, temp_base, errmsg_fmt, errmsg_arg, -+ flagsarg, pidptr) -+ const char *program; -+ char * const *argv; -+ const char *this_pname; -+ const char *temp_base ATTRIBUTE_UNUSED; -+ char **errmsg_fmt; -+ char **errmsg_arg; -+ int flagsarg; -+ int *pidptr; -+{ -+ int flags; -+ int pid; -+ int pdes[2]; -+ int in; -+ int out; -+ FILE *ret; -+ /* We declare these to be volatile to avoid warnings from gcc about -+ them being clobbered by vfork. */ -+ volatile int retries; -+ volatile int sleep_interval; -+ -+ flags = flagsarg; -+ -+ if (pipe (pdes) < 0) -+ { -+ *errmsg_fmt = "pipe"; -+ *errmsg_arg = NULL; -+ return NULL; -+ } -+ -+ in = pdes[READ_PORT]; -+ out = pdes[WRITE_PORT]; -+ -+ sleep_interval = 1; -+ pid = -1; -+ for (retries = 0; retries < 4; retries++) -+ { -+ pid = vfork (); -+ if (pid >= 0) -+ break; -+ sleep (sleep_interval); -+ sleep_interval *= 2; -+ } -+ -+ switch (pid) -+ { -+ case -1: -+ *errmsg_fmt = "fork"; -+ *errmsg_arg = NULL; -+ return NULL; -+ -+ case 0: -+ if (out != STDOUT_FILE_NO) -+ { -+ close (STDOUT_FILE_NO); -+ dup (out); -+ close (out); -+ } -+ close (in); -+ -+ if (flags & PEXECUTE_SEARCH) -+ execvp (program, argv); -+ else -+ execv (program, argv); -+ -+ /* We don't want to call fprintf after vfork. */ -+#define writeerr(s) write (STDERR_FILE_NO, s, strlen (s)) -+ writeerr (this_pname); -+ writeerr (": "); -+ writeerr ("installation problem, cannot exec '"); -+ writeerr (program); -+ writeerr ("': "); -+ writeerr (xstrerror (errno)); -+ writeerr ("\n"); -+ _exit (-1); -+ /* NOTREACHED */ -+ return NULL; -+ -+ default: -+ close (out); -+ ret = fdopen (in, "r"); -+ if (ret == NULL) -+ { -+ *errmsg_fmt = "fdopen"; -+ *errmsg_arg = NULL; -+ return NULL; -+ } -+ *pidptr = pid; -+ return ret; -+ } -+ /* NOTREACHED */ -+} -+ -+int -+pex_read_close (pid, file, status, flags) -+ int pid; -+ FILE *file; -+ int *status; -+ int flags ATTRIBUTE_UNUSED; -+{ -+ /* ??? Canonicalize STATUS value? */ -+ fclose (file); -+ return waitpid (pid, status, 0); -+} -diff -NBaur gcc-3.4.3/libiberty/regex.c gcc-3.4.3-new/libiberty/regex.c ---- gcc-3.4.3/libiberty/regex.c Tue Apr 15 15:24:26 2003 -+++ gcc-3.4.3-new/libiberty/regex.c Fri Jan 21 10:25:52 2005 -@@ -36,6 +36,8 @@ - # include - #endif - -+#include -+ - #ifndef PARAMS - # if defined __GNUC__ || (defined __STDC__ && __STDC__) - # define PARAMS(args) args -@@ -8040,7 +8042,7 @@ - - /* Map uppercase characters to corresponding lowercase ones. */ - for (i = 0; i < CHAR_SET_SIZE; i++) -- preg->translate[i] = ISUPPER (i) ? TOLOWER (i) : i; -+ preg->translate[i] = ISUPPER (i) ? TOLOWER (i) : (int) i; - } - else - preg->translate = NULL; -@@ -8175,7 +8177,7 @@ - size_t - regerror (errcode, preg, errbuf, errbuf_size) - int errcode; -- const regex_t *preg; -+ const regex_t *preg ATTRIBUTE_UNUSED; - char *errbuf; - size_t errbuf_size; - { -diff -NBaur gcc-3.4.3/libiberty/strerror.c gcc-3.4.3-new/libiberty/strerror.c ---- gcc-3.4.3/libiberty/strerror.c Thu Oct 2 20:06:29 2003 -+++ gcc-3.4.3-new/libiberty/strerror.c Fri Jan 21 10:25:52 2005 -@@ -2,9 +2,6 @@ - Written by Fred Fish. fnf@cygnus.com - This file is in the public domain. --Per Bothner. */ - --#include "ansidecl.h" --#include "libiberty.h" -- - #include "config.h" - - #ifdef HAVE_SYS_ERRLIST -@@ -17,6 +14,9 @@ - #define sys_errlist sys_errlist__ - #endif - -+#include "ansidecl.h" -+#include "libiberty.h" -+ - #include - #include - -@@ -469,8 +469,10 @@ - - #else - -+#ifndef __MINGW32__ - extern int sys_nerr; - extern char *sys_errlist[]; -+#endif - - #endif - -diff -NBaur gcc-3.4.3/libiberty/testsuite/test-demangle.c gcc-3.4.3-new/libiberty/testsuite/test-demangle.c ---- gcc-3.4.3/libiberty/testsuite/test-demangle.c Fri Jan 2 20:33:55 2004 -+++ gcc-3.4.3-new/libiberty/testsuite/test-demangle.c Fri Jan 21 10:25:52 2005 -@@ -26,6 +26,12 @@ - #include - #include "libiberty.h" - #include "demangle.h" -+#ifdef HAVE_STRING_H -+#include -+#endif -+#if HAVE_STDLIB_H -+# include -+#endif - - struct line - { -@@ -119,7 +125,7 @@ - int argc; - char **argv; - { -- enum demangling_styles style; -+ enum demangling_styles style = auto_demangling; - int no_params; - int is_v3_ctor; - int is_v3_dtor; -diff -NBaur gcc-3.4.3/libstdc++-v3/config/os/mingw32/os_defines.h gcc-3.4.3-new/libstdc++-v3/config/os/mingw32/os_defines.h ---- gcc-3.4.3/libstdc++-v3/config/os/mingw32/os_defines.h Sat Jul 5 05:05:32 2003 -+++ gcc-3.4.3-new/libstdc++-v3/config/os/mingw32/os_defines.h Fri Jan 21 10:25:52 2005 -@@ -45,4 +45,11 @@ - #undef NOMINMAX - #define NOMINMAX 1 - -+// mingw32 local hack: Override _GLIBCXX_USE_WCHAR_T for wstring -+#define _GLIBCXX_USE_WSTRING 1 -+ -+// mingw32 local hack: Cast long double to doubles to workaround -+// printf bug. -+#define _GLIBCXX_NO_LONG_DOUBLE_IO 1 -+ - #endif -diff -NBaur gcc-3.4.3/libstdc++-v3/configure.host gcc-3.4.3-new/libstdc++-v3/configure.host ---- gcc-3.4.3/libstdc++-v3/configure.host Tue Oct 5 17:32:49 2004 -+++ gcc-3.4.3-new/libstdc++-v3/configure.host Fri Jan 21 10:25:52 2005 -@@ -180,6 +180,7 @@ - ;; - mingw32*) - os_include_dir="os/mingw32" -+ atomicity_dir="cpu/i486" - ;; - netbsd*) - os_include_dir="os/bsd/netbsd" -diff -NBaur gcc-3.4.3/libstdc++-v3/include/bits/char_traits.h gcc-3.4.3-new/libstdc++-v3/include/bits/char_traits.h ---- gcc-3.4.3/libstdc++-v3/include/bits/char_traits.h Thu Mar 18 17:36:47 2004 -+++ gcc-3.4.3-new/libstdc++-v3/include/bits/char_traits.h Fri Jan 21 10:25:52 2005 -@@ -296,7 +296,7 @@ - }; - - --#ifdef _GLIBCXX_USE_WCHAR_T -+#if defined (_GLIBCXX_USE_WCHAR_T) || defined (_GLIBCXX_USE_WSTRING) - /// 21.1.3.2 char_traits specializations - template<> - struct char_traits -@@ -304,8 +304,10 @@ - typedef wchar_t char_type; - typedef wint_t int_type; - typedef streamoff off_type; -+#if defined (_GLIBCXX_USE_WCHAR_T) - typedef wstreampos pos_type; - typedef mbstate_t state_type; -+#endif - - static void - assign(char_type& __c1, const char_type& __c2) -diff -NBaur gcc-3.4.3/libstdc++-v3/include/bits/locale_facets.tcc gcc-3.4.3-new/libstdc++-v3/include/bits/locale_facets.tcc ---- gcc-3.4.3/libstdc++-v3/include/bits/locale_facets.tcc Tue Sep 14 00:43:24 2004 -+++ gcc-3.4.3-new/libstdc++-v3/include/bits/locale_facets.tcc Fri Jan 21 10:25:52 2005 -@@ -765,7 +765,13 @@ - string __xtrc; - __xtrc.reserve(32); - __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); -+#if defined (GLIBCXX_NO_LONG_DOUBLE_IO) && !defined(_GLIBCXX_USE_C99) -+ double __vd; -+ std::__convert_to_v(__xtrc.c_str(), __vd, __err, _S_get_c_locale()); -+ __v = static_cast(__vd); -+#else - std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); -+#endif - return __beg; - } - -@@ -1220,7 +1226,14 @@ - num_put<_CharT, _OutIter>:: - do_put(iter_type __s, ios_base& __io, char_type __fill, - long double __v) const -- { return _M_insert_float(__s, __io, __fill, 'L', __v); } -+ { -+#ifdef _GLIBCXX_NO_LONG_DOUBLE_IO -+ return _M_insert_float(__s, __io, __fill, char_type(), -+ static_cast(__v)); -+#else -+ return _M_insert_float(__s, __io, __fill, 'L', __v); -+#endif -+ } - - template - _OutIter -@@ -1464,7 +1477,13 @@ - __beg = _M_extract(__beg, __end, __io, __err, __str); - else - __beg = _M_extract(__beg, __end, __io, __err, __str); -+#if defined _GLIBCXX_NO_LONG_DOUBLE_IO && !defined (_GLIBCXX_USE_C99) -+ double __dunits; -+ std::__convert_to_v(__str.c_str(), __dunits, __err, _S_get_c_locale()); -+ __units = static_cast(__dunits); -+#else // _GLIBCXX_NO_LONG_DOUBLE_IO && !defined (_GLIBCXX_USE_C99) - std::__convert_to_v(__str.c_str(), __units, __err, _S_get_c_locale()); -+#endif // _GLIBCXX_NO_LONG_DOUBLE_IO - return __beg; - } - -@@ -1667,6 +1686,32 @@ - { - const locale __loc = __io.getloc(); - const ctype<_CharT>& __ctype = use_facet >(__loc); -+#ifdef _GLIBCXX_NO_LONG_DOUBLE_IO -+ double __dunits = static_cast(__units); -+#ifdef _GLIBCXX_USE_C99 -+ // First try a buffer perhaps big enough. -+ int __cs_size = 64; -+ char* __cs = static_cast(__builtin_alloca(__cs_size)); -+ // _GLIBCXX_RESOLVE_LIB_DEFECTS -+ // 328. Bad sprintf format modifier in money_put<>::do_put() -+ int __len = std::__convert_from_v(__cs, __cs_size, "%.0f", __dunits, -+ _S_get_c_locale()); -+ // If the buffer was not large enough, try again with the correct size. -+ if (__len >= __cs_size) -+ { -+ __cs_size = __len + 1; -+ __cs = static_cast(__builtin_alloca(__cs_size)); -+ __len = std::__convert_from_v(__cs, __cs_size, "%.0f", __dunits, -+ _S_get_c_locale()); -+ } -+#else -+ // max_exponent10 + 1 for the integer part, + 2 for sign and '\0'. -+ const int __cs_size = numeric_limits::max_exponent10 + 3; -+ char* __cs = static_cast(__builtin_alloca(__cs_size)); -+ int __len = std::__convert_from_v(__cs, 0, "%.0f", __dunits, -+ _S_get_c_locale()); -+#endif -+#else // _GLIBCXX_NO_LONG_DOUBLE_IO - #ifdef _GLIBCXX_USE_C99 - // First try a buffer perhaps big enough. - int __cs_size = 64; -@@ -1690,6 +1735,7 @@ - int __len = std::__convert_from_v(__cs, 0, "%.*Lf", __units, - _S_get_c_locale(), 0); - #endif -+#endif // _GLIBCXX_NO_LONG_DOUBLE_IO - _CharT* __ws = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) - * __cs_size)); - __ctype.widen(__cs, __cs + __len, __ws); -diff -NBaur gcc-3.4.3/libstdc++-v3/include/bits/stringfwd.h gcc-3.4.3-new/libstdc++-v3/include/bits/stringfwd.h ---- gcc-3.4.3/libstdc++-v3/include/bits/stringfwd.h Thu Mar 18 17:37:03 2004 -+++ gcc-3.4.3-new/libstdc++-v3/include/bits/stringfwd.h Fri Jan 21 10:25:52 2005 -@@ -59,7 +59,7 @@ - - typedef basic_string string; - --#ifdef _GLIBCXX_USE_WCHAR_T -+#if defined (_GLIBCXX_USE_WCHAR_T) || defined (_GLIBCXX_USE_WSTRING) - template<> struct char_traits; - - typedef basic_string wstring; -diff -NBaur gcc-3.4.3/libstdc++-v3/libsupc++/Makefile.in gcc-3.4.3-new/libstdc++-v3/libsupc++/Makefile.in ---- gcc-3.4.3/libstdc++-v3/libsupc++/Makefile.in Thu Mar 18 17:37:08 2004 -+++ gcc-3.4.3-new/libstdc++-v3/libsupc++/Makefile.in Fri Jan 21 10:25:52 2005 -@@ -210,7 +210,7 @@ - # These bits are all figured out from configure. Look in acinclude.m4 - # or configure.ac to see how they are set. See GLIBCXX_EXPORT_FLAGS. - CONFIG_CXXFLAGS = \ -- $(SECTION_FLAGS) $(EXTRA_CXX_FLAGS) -+ $(EXTRA_CXX_FLAGS) - - WARN_CXXFLAGS = \ - $(WARN_FLAGS) $(WERROR) -fdiagnostics-show-location=once -diff -NBaur gcc-3.4.3/libstdc++-v3/libsupc++/eh_globals.cc gcc-3.4.3-new/libstdc++-v3/libsupc++/eh_globals.cc ---- gcc-3.4.3/libstdc++-v3/libsupc++/eh_globals.cc Fri Apr 30 05:20:24 2004 -+++ gcc-3.4.3-new/libstdc++-v3/libsupc++/eh_globals.cc Fri Jan 21 10:25:52 2005 -@@ -32,6 +32,9 @@ - #include - #include "unwind-cxx.h" - #include "bits/c++config.h" -+#ifdef __MINGW32__ -+#undef __GTHREAD_HIDE_WIN32API -+#endif - #include "bits/gthr.h" - - using namespace __cxxabiv1; -diff -NBaur gcc-3.4.3/libstdc++-v3/libsupc++/eh_term_handler.cc gcc-3.4.3-new/libstdc++-v3/libsupc++/eh_term_handler.cc ---- gcc-3.4.3/libstdc++-v3/libsupc++/eh_term_handler.cc Tue Sep 2 19:46:54 2003 -+++ gcc-3.4.3-new/libstdc++-v3/libsupc++/eh_term_handler.cc Fri Jan 21 10:25:52 2005 -@@ -41,6 +41,7 @@ - # include - #endif - -+#if !(defined (__MINGW32__) || defined (__CYGWIN__)) - /* The current installed user handler. */ - std::terminate_handler __cxxabiv1::__terminate_handler = - #if _GLIBCXX_HOSTED -@@ -49,3 +50,4 @@ - std::abort; - #endif - -+#endif -diff -NBaur gcc-3.4.3/libstdc++-v3/libsupc++/eh_terminate.cc gcc-3.4.3-new/libstdc++-v3/libsupc++/eh_terminate.cc ---- gcc-3.4.3/libstdc++-v3/libsupc++/eh_terminate.cc Sat May 24 17:22:03 2003 -+++ gcc-3.4.3-new/libstdc++-v3/libsupc++/eh_terminate.cc Fri Jan 21 10:25:52 2005 -@@ -50,6 +50,11 @@ - void - std::terminate () - { -+#if 0 // (defined (__MINGW32__) || defined (__CYGWIN__)) -+ if (__terminate_handler == NULL ) -+ __terminate (__gnu_cxx::__verbose_terminate_handler); -+ else -+#endif - __terminate (__terminate_handler); - } - -@@ -63,6 +68,11 @@ - void - std::unexpected () - { -+#if 0 // (defined (__MINGW32__) || defined (__CYGWIN__)) -+ if (__unexpected_handler == NULL) -+ std::terminate(); -+ else -+#endif - __unexpected (__unexpected_handler); - } - -diff -NBaur gcc-3.4.3/libstdc++-v3/libsupc++/eh_unex_handler.cc gcc-3.4.3-new/libstdc++-v3/libsupc++/eh_unex_handler.cc ---- gcc-3.4.3/libstdc++-v3/libsupc++/eh_unex_handler.cc Sat May 24 17:22:03 2003 -+++ gcc-3.4.3-new/libstdc++-v3/libsupc++/eh_unex_handler.cc Fri Jan 21 10:25:52 2005 -@@ -29,6 +29,7 @@ - - #include "unwind-cxx.h" - -+#if !(defined (__MINGW32__) || defined (__CYGWIN__)) - /* The current installed user handler. */ - std::unexpected_handler __cxxabiv1::__unexpected_handler = std::terminate; -- -+#endif -diff -NBaur gcc-3.4.3/libstdc++-v3/libsupc++/typeinfo gcc-3.4.3-new/libstdc++-v3/libsupc++/typeinfo ---- gcc-3.4.3/libstdc++-v3/libsupc++/typeinfo Sat Jul 5 05:05:40 2003 -+++ gcc-3.4.3-new/libstdc++-v3/libsupc++/typeinfo Fri Jan 21 10:25:52 2005 -@@ -44,7 +44,7 @@ - class __class_type_info; - } // namespace __cxxabiv1 - --#if !__GXX_WEAK__ -+#if !__GXX_WEAK__ || defined (__MINGW32__) || defined (__CYGWIN__) - // If weak symbols are not supported, typeinfo names are not merged. - #define __GXX_MERGED_TYPEINFO_NAMES 0 - #else -diff -NBaur gcc-3.4.3/libstdc++-v3/libsupc++/unwind-cxx.h gcc-3.4.3-new/libstdc++-v3/libsupc++/unwind-cxx.h ---- gcc-3.4.3/libstdc++-v3/libsupc++/unwind-cxx.h Sat Jul 5 05:05:41 2003 -+++ gcc-3.4.3-new/libstdc++-v3/libsupc++/unwind-cxx.h Fri Jan 21 10:25:52 2005 -@@ -125,9 +125,16 @@ - extern void __terminate(std::terminate_handler) __attribute__((noreturn)); - extern void __unexpected(std::unexpected_handler) __attribute__((noreturn)); - --// The current installed user handlers. -+ // The current installed user handlers. -+#if defined (__MINGW32__) || defined (__CYGWIN__) -+extern "C" void** __w32_sharedptr_terminate; -+extern "C" void** __w32_sharedptr_unexpected; -+#define __terminate_handler (*(std::terminate_handler*)(__w32_sharedptr_terminate)) -+#define __unexpected_handler (*(std::unexpected_handler*)(__w32_sharedptr_unexpected)) -+#else - extern std::terminate_handler __terminate_handler; - extern std::unexpected_handler __unexpected_handler; -+#endif - - // These are explicitly GNU C++ specific. - -diff -NBaur gcc-3.4.3/libstdc++-v3/src/Makefile.in gcc-3.4.3-new/libstdc++-v3/src/Makefile.in ---- gcc-3.4.3/libstdc++-v3/src/Makefile.in Fri Apr 16 20:08:35 2004 -+++ gcc-3.4.3-new/libstdc++-v3/src/Makefile.in Fri Jan 21 10:25:52 2005 -@@ -211,7 +211,7 @@ - # These bits are all figured out from configure. Look in acinclude.m4 - # or configure.ac to see how they are set. See GLIBCXX_EXPORT_FLAGS. - CONFIG_CXXFLAGS = \ -- $(SECTION_FLAGS) $(EXTRA_CXX_FLAGS) -+ $(EXTRA_CXX_FLAGS) - - WARN_CXXFLAGS = \ - $(WARN_FLAGS) $(WERROR) -fdiagnostics-show-location=once -diff -NBaur gcc-3.4.3/libstdc++-v3/src/globals_io.cc gcc-3.4.3-new/libstdc++-v3/src/globals_io.cc ---- gcc-3.4.3/libstdc++-v3/src/globals_io.cc Thu Mar 18 17:37:13 2004 -+++ gcc-3.4.3-new/libstdc++-v3/src/globals_io.cc Fri Jan 21 10:25:52 2005 -@@ -26,6 +26,9 @@ - // the GNU General Public License. - - #include "bits/c++config.h" -+#ifdef __MINGW32__ -+#undef __GTHREAD_HIDE_WIN32API -+#endif - #include "bits/gthr.h" - #include - #include -diff -NBaur gcc-3.4.3/ltcf-c.sh gcc-3.4.3-new/ltcf-c.sh ---- gcc-3.4.3/ltcf-c.sh Wed Nov 19 05:29:32 2003 -+++ gcc-3.4.3-new/ltcf-c.sh Fri Jan 21 10:25:52 2005 -@@ -38,17 +38,17 @@ - lt_simple_link_test_code='main(){return(0);}' - - ## Linker Characteristics --case $host_os in --cygwin* | mingw*) -+#case $host_os in -+#cygwin* | mingw*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. -- if test "$with_gcc" != yes; then -- with_gnu_ld=no -- fi -- ;; -- --esac -+# if test "$with_gcc" != yes; then -+# with_gnu_ld=no -+# fi -+# ;; -+# -+#esac - - ld_shlibs=yes - if test "$with_gnu_ld" = yes; then diff --git a/patches/devkit-gcc-3.4.4.patch b/patches/devkit-gcc-3.4.4.patch deleted file mode 100644 index 6c64323..0000000 --- a/patches/devkit-gcc-3.4.4.patch +++ /dev/null @@ -1,6671 +0,0 @@ -diff -Nbaur gcc-3.4.4/config.sub gcc-3.4.4-new/config.sub ---- gcc-3.4.4/config.sub Sun Feb 22 14:44:23 2004 -+++ gcc-3.4.4-new/config.sub Wed Jul 6 01:52:28 2005 -@@ -219,6 +219,10 @@ - basic_machine=m68k-atari - os=-mint - ;; -+ -gekko) -+ basic_machine=powerpc-eabi -+ os=-elf -+ ;; - esac - - # Decode aliases for certain CPU-COMPANY combinations. -@@ -253,6 +257,7 @@ - | mipsisa64sb1 | mipsisa64sb1el \ - | mipsisa64sr71k | mipsisa64sr71kel \ - | mipstx39 | mipstx39el \ -+ | mipsallegrex | mipsallegrexel \ - | mn10200 | mn10300 \ - | msp430 \ - | ns16k | ns32k \ -@@ -326,6 +331,7 @@ - | mipsisa64sb1-* | mipsisa64sb1el-* \ - | mipsisa64sr71k-* | mipsisa64sr71kel-* \ - | mipstx39-* | mipstx39el-* \ -+ | mipsallegrex-* | mipsallegrexel-* \ - | msp430-* \ - | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ - | orion-* \ -@@ -648,6 +654,10 @@ - *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) - basic_machine=m68k-atari - os=-mint -+ ;; -+ psp) -+ basic_machine=mipsallegrexel-psp -+ os=-elf - ;; - mips3*-*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` -diff -Nbaur gcc-3.4.4/gcc/Makefile.in gcc-3.4.4-new/gcc/Makefile.in ---- gcc-3.4.4/gcc/Makefile.in Thu Feb 24 09:26:57 2005 -+++ gcc-3.4.4-new/gcc/Makefile.in Wed Jul 6 01:50:35 2005 -@@ -138,7 +138,7 @@ - # TCFLAGS is used for compilations with the GCC just built. - XCFLAGS = - TCFLAGS = --CFLAGS = -g -+CFLAGS = -g0 - STAGE1_CFLAGS = -g @stage1_cflags@ - BOOT_CFLAGS = -g -O2 - -@@ -441,6 +441,7 @@ - gcc_gxx_include_dir = @gcc_gxx_include_dir@ - # Directory to search for site-specific includes. - local_includedir = $(local_prefix)/include -+# local_includedir=$(libsubdir)/$(unlibsubdir)/..`echo $(exec_prefix) | sed -e 's|^$(prefix)||' -e 's|/[^/]*|/..|g'`/include - includedir = $(prefix)/include - # where the info files go - infodir = @infodir@ -diff -Nbaur gcc-3.4.4/gcc/c-format.c gcc-3.4.4-new/gcc/c-format.c ---- gcc-3.4.4/gcc/c-format.c Sun May 1 11:38:56 2005 -+++ gcc-3.4.4-new/gcc/c-format.c Wed Jul 6 01:50:35 2005 -@@ -31,6 +31,7 @@ - #include "diagnostic.h" - #include "langhooks.h" - -+ - /* Set format warning options according to a -Wformat=n option. */ - - void -@@ -509,6 +510,9 @@ - { "h", FMT_LEN_h, STD_C89, "hh", FMT_LEN_hh, STD_C99 }, - { "l", FMT_LEN_l, STD_C89, "ll", FMT_LEN_ll, STD_C9L }, - { "q", FMT_LEN_ll, STD_EXT, NULL, 0, 0 }, -+#ifdef __MINGW32__ -+ { "I64", FMT_LEN_ll, STD_EXT, NULL, 0, 0 }, -+#endif - { "L", FMT_LEN_L, STD_C89, NULL, 0, 0 }, - { "z", FMT_LEN_z, STD_C99, NULL, 0, 0 }, - { "Z", FMT_LEN_z, STD_EXT, NULL, 0, 0 }, -@@ -543,6 +547,9 @@ - { "h", FMT_LEN_h, STD_C89, "hh", FMT_LEN_hh, STD_C99 }, - { "l", FMT_LEN_l, STD_C89, "ll", FMT_LEN_ll, STD_C9L }, - { "q", FMT_LEN_ll, STD_EXT, NULL, 0, 0 }, -+#ifdef __MINGW32__ -+ { "I64", FMT_LEN_ll, STD_EXT, NULL, 0, 0 }, -+#endif - { "L", FMT_LEN_L, STD_C89, NULL, 0, 0 }, - { "z", FMT_LEN_z, STD_C99, NULL, 0, 0 }, - { "t", FMT_LEN_t, STD_C99, NULL, 0, 0 }, -@@ -568,7 +575,9 @@ - { '0', 0, 0, N_("`0' flag"), N_("the `0' printf flag"), STD_C89 }, - { '-', 0, 0, N_("`-' flag"), N_("the `-' printf flag"), STD_C89 }, - { '\'', 0, 0, N_("`'' flag"), N_("the `'' printf flag"), STD_EXT }, -+#ifndef __MINGW32__ - { 'I', 0, 0, N_("`I' flag"), N_("the `I' printf flag"), STD_EXT }, -+#endif - { 'w', 0, 0, N_("field width"), N_("field width in printf format"), STD_C89 }, - { 'p', 0, 0, N_("precision"), N_("precision in printf format"), STD_C89 }, - { 'L', 0, 0, N_("length modifier"), N_("length modifier in printf format"), STD_C89 }, -@@ -638,7 +647,9 @@ - { 'w', 0, 0, N_("field width"), N_("field width in scanf format"), STD_C89 }, - { 'L', 0, 0, N_("length modifier"), N_("length modifier in scanf format"), STD_C89 }, - { '\'', 0, 0, N_("`'' flag"), N_("the `'' scanf flag"), STD_EXT }, -+#ifndef __MINGW32__ - { 'I', 0, 0, N_("`I' flag"), N_("the `I' scanf flag"), STD_EXT }, -+#endif - { 0, 0, 0, NULL, NULL, 0 } - }; - -@@ -917,11 +928,18 @@ - { NULL, 0, 0, NOLENGTHS, NULL, NULL } - }; - -+#ifdef __MINGW32__ -+#define PRINTF_FLAG_CHARS " +#0-'" -+#define SCANF_FLAG_CHARS "*'" -+#else -+#define PRINTF_FLAG_CHARS " +#0-'I" -+#define SCANF_FLAG_CHARS "*'I" -+#endif - - /* This must be in the same order as enum format_type. */ - static const format_kind_info format_types_orig[] = - { -- { "printf", printf_length_specs, print_char_table, " +#0-'I", NULL, -+ { "printf", printf_length_specs, print_char_table, PRINTF_FLAG_CHARS, NULL, - printf_flag_specs, printf_flag_pairs, - FMT_FLAG_ARG_CONVERT|FMT_FLAG_DOLLAR_MULTIPLE|FMT_FLAG_USE_DOLLAR|FMT_FLAG_EMPTY_PREC_OK, - 'w', 0, 'p', 0, 'L', -@@ -951,7 +969,7 @@ - 0, 0, 'p', 0, 'L', - NULL, &integer_type_node - }, -- { "scanf", scanf_length_specs, scan_char_table, "*'I", NULL, -+ { "scanf", scanf_length_specs, scan_char_table, SCANF_FLAG_CHARS, NULL, - scanf_flag_specs, scanf_flag_pairs, - FMT_FLAG_ARG_CONVERT|FMT_FLAG_SCANF_A_KLUDGE|FMT_FLAG_USE_DOLLAR|FMT_FLAG_ZERO_WIDTH_BAD|FMT_FLAG_DOLLAR_GAP_POINTER_OK, - 'w', 0, 0, '*', 'L', -@@ -1929,7 +1947,13 @@ - { - while (fli->name != 0 && fli->name[0] != *format_chars) - fli++; -- if (fli->name != 0) -+ if (fli->name != 0 -+#ifdef __MINGW32__ -+ /* Only accept "I64", not 'I' by itself. */ -+ && (format_chars[0] != 'I' -+ || (format_chars[1] == '6' && format_chars[2] == '4')) -+#endif -+ ) - { - format_chars++; - if (fli->double_name != 0 && fli->name[0] == *format_chars) -@@ -1941,6 +1965,10 @@ - } - else - { -+#ifdef __MINGW32__ -+ if (fli->name[0] == 'I') -+ format_chars += 2; -+#endif - length_chars = fli->name; - length_chars_val = fli->index; - length_chars_std = fli->std; -diff -Nbaur gcc-3.4.4/gcc/collect2.c gcc-3.4.4-new/gcc/collect2.c ---- gcc-3.4.4/gcc/collect2.c Mon Jan 10 15:25:23 2005 -+++ gcc-3.4.4-new/gcc/collect2.c Wed Jul 6 01:50:36 2005 -@@ -30,24 +30,13 @@ - #include "system.h" - #include "coretypes.h" - #include "tm.h" -+#include "pex-read.h" -+ - #include - #if ! defined( SIGCHLD ) && defined( SIGCLD ) - # define SIGCHLD SIGCLD - #endif - --#ifdef vfork /* Autoconf may define this to fork for us. */ --# define VFORK_STRING "fork" --#else --# define VFORK_STRING "vfork" --#endif --#ifdef HAVE_VFORK_H --#include --#endif --#ifdef VMS --#define vfork() (decc$$alloc_vfork_blocks() >= 0 ? \ -- lib$get_current_invo_context(decc$$get_vfork_jmpbuf()) : -1) --#endif /* VMS */ -- - #ifndef LIBRARY_PATH_ENV - #define LIBRARY_PATH_ENV "LIBRARY_PATH" - #endif -@@ -67,7 +56,6 @@ - cross-versions are in the proper directories. */ - - #ifdef CROSS_COMPILE --#undef SUNOS4_SHARED_LIBRARIES - #undef OBJECT_FORMAT_COFF - #undef MD_EXEC_PREFIX - #undef REAL_LD_FILE_NAME -@@ -140,7 +128,7 @@ - fprintf ((STREAM), "void _GLOBAL__DD() {\n\t%s();\n}\n", (FUNC)) - #endif - --#if defined (LDD_SUFFIX) || SUNOS4_SHARED_LIBRARIES -+#ifdef LDD_SUFFIX - #define SCAN_LIBRARIES - #endif - -@@ -255,7 +243,9 @@ - static void add_prefix (struct path_prefix *, const char *); - static void prefix_from_env (const char *, struct path_prefix *); - static void prefix_from_string (const char *, struct path_prefix *); -+static int collect_status (const char *, int status); - static void do_wait (const char *); -+static void do_read_wait (const char *, FILE *); - static void fork_execute (const char *, char **); - static void maybe_unlink (const char *); - static void add_to_list (struct head *, const char *); -@@ -424,7 +414,11 @@ - #endif - - signal (signo, SIG_DFL); -+#if HAVE_KILL - kill (getpid (), signo); -+#else -+ raise (signo); -+#endif - } - - -@@ -1458,14 +1452,11 @@ - } - - --/* Wait for a process to finish, and exit if a nonzero status is found. */ -+/* Handle error status returned by a finished process. */ - --int --collect_wait (const char *prog) -+static int -+collect_status (const char *prog, int status) - { -- int status; -- -- pwait (pid, &status, 0); - if (status) - { - if (WIFSIGNALED (status)) -@@ -1483,6 +1474,17 @@ - return 0; - } - -+/* Wait for a process to finish, and exit if a nonzero status is found. */ -+ -+int -+collect_wait (const char *prog) -+{ -+ int status; -+ -+ pwait (pid, &status, 0); -+ return collect_status (prog, status); -+} -+ - static void - do_wait (const char *prog) - { -@@ -1494,6 +1496,19 @@ - } - } - -+static void -+do_read_wait (const char *prog, FILE *inf) -+{ -+ int status; -+ -+ pex_read_close (pid, inf, &status, 0); -+ status = collect_status (prog, status); -+ if (status != 0) -+ { -+ error ("%s returned %d exit status", prog, status); -+ collect_exit (status); -+ } -+} - - /* Execute a program, and wait for the reply. */ - -@@ -1534,7 +1549,7 @@ - if (redir) - { - /* Open response file. */ -- redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT); -+ redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT, S_IWUSR); - - /* Duplicate the stdout and stderr file handles - so they can be restored later. */ -@@ -1997,9 +2012,10 @@ - char *real_nm_argv[4]; - const char **nm_argv = (const char **) real_nm_argv; - int argc = 0; -- int pipe_fd[2]; - char *p, buf[1024]; - FILE *inf; -+ char *errmsg_fmt; -+ char *errmsg_arg; - - if (which_pass == PASS_SECOND) - return; -@@ -2015,13 +2031,6 @@ - nm_argv[argc++] = prog_name; - nm_argv[argc++] = (char *) 0; - -- if (pipe (pipe_fd) < 0) -- fatal_perror ("pipe"); -- -- inf = fdopen (pipe_fd[0], "r"); -- if (inf == (FILE *) 0) -- fatal_perror ("fdopen"); -- - /* Trace if needed. */ - if (vflag) - { -@@ -2037,36 +2046,16 @@ - fflush (stdout); - fflush (stderr); - -- /* Spawn child nm on pipe. */ -- pid = vfork (); -- if (pid == -1) -- fatal_perror (VFORK_STRING); -- -- if (pid == 0) /* child context */ -- { -- /* setup stdout */ -- if (dup2 (pipe_fd[1], 1) < 0) -- fatal_perror ("dup2 %d 1", pipe_fd[1]); -- -- if (close (pipe_fd[0]) < 0) -- fatal_perror ("close %d", pipe_fd[0]); -- -- if (close (pipe_fd[1]) < 0) -- fatal_perror ("close %d", pipe_fd[1]); -- -- execv (nm_file_name, real_nm_argv); -- fatal_perror ("execv %s", nm_file_name); -- } -+ inf = pex_read (nm_file_name, real_nm_argv, nm_file_name, NULL, -+ &errmsg_fmt, &errmsg_arg, 0, &pid); -+ if (inf == (FILE *) 0) -+ fatal_perror (errmsg_fmt, errmsg_arg); - -- /* Parent context from here on. */ - int_handler = (void (*) (int)) signal (SIGINT, SIG_IGN); - #ifdef SIGQUIT - quit_handler = (void (*) (int)) signal (SIGQUIT, SIG_IGN); - #endif - -- if (close (pipe_fd[1]) < 0) -- fatal_perror ("close %d", pipe_fd[1]); -- - if (debug) - fprintf (stderr, "\nnm output with constructors/destructors.\n"); - -@@ -2139,10 +2128,7 @@ - if (debug) - fprintf (stderr, "\n"); - -- if (fclose (inf) != 0) -- fatal_perror ("fclose"); -- -- do_wait (nm_file_name); -+ do_read_wait (nm_file_name, inf); - - signal (SIGINT, int_handler); - #ifdef SIGQUIT -@@ -2150,269 +2136,6 @@ - #endif - } - --#if SUNOS4_SHARED_LIBRARIES -- --/* Routines to scan the SunOS 4 _DYNAMIC structure to find shared libraries -- that the output file depends upon and their initialization/finalization -- routines, if any. */ -- --#include --#include --#include --#include --#include --#include --#include -- --/* pointers to the object file */ --unsigned object; /* address of memory mapped file */ --unsigned objsize; /* size of memory mapped to file */ --char * code; /* pointer to code segment */ --char * data; /* pointer to data segment */ --struct nlist *symtab; /* pointer to symbol table */ --struct link_dynamic *ld; --struct link_dynamic_2 *ld_2; --struct head libraries; -- --/* Map the file indicated by NAME into memory and store its address. */ -- --static void --mapfile (const char *name) --{ -- int fp; -- struct stat s; -- if ((fp = open (name, O_RDONLY)) == -1) -- fatal ("unable to open file '%s'", name); -- if (fstat (fp, &s) == -1) -- fatal ("unable to stat file '%s'", name); -- -- objsize = s.st_size; -- object = (unsigned) mmap (0, objsize, PROT_READ|PROT_WRITE, MAP_PRIVATE, -- fp, 0); -- if (object == (unsigned)-1) -- fatal ("unable to mmap file '%s'", name); -- -- close (fp); --} -- --/* Helpers for locatelib. */ -- --static const char *libname; -- --static int --libselect (struct direct *d) --{ -- return (strncmp (libname, d->d_name, strlen (libname)) == 0); --} -- --/* If one file has an additional numeric extension past LIBNAME, then put -- that one first in the sort. If both files have additional numeric -- extensions, then put the one with the higher number first in the sort. -- -- We must verify that the extension is numeric, because Sun saves the -- original versions of patched libraries with a .FCS extension. Files with -- invalid extensions must go last in the sort, so that they will not be used. */ -- --static int --libcompare (struct direct **d1, struct direct **d2) --{ -- int i1, i2 = strlen (libname); -- char *e1 = (*d1)->d_name + i2; -- char *e2 = (*d2)->d_name + i2; -- -- while (*e1 && *e2 && *e1 == '.' && *e2 == '.' -- && e1[1] && ISDIGIT (e1[1]) && e2[1] && ISDIGIT (e2[1])) -- { -- ++e1; -- ++e2; -- i1 = strtol (e1, &e1, 10); -- i2 = strtol (e2, &e2, 10); -- if (i1 != i2) -- return i1 - i2; -- } -- -- if (*e1) -- { -- /* It has a valid numeric extension, prefer this one. */ -- if (*e1 == '.' && e1[1] && ISDIGIT (e1[1])) -- return 1; -- /* It has an invalid numeric extension, must prefer the other one. */ -- else -- return -1; -- } -- else if (*e2) -- { -- /* It has a valid numeric extension, prefer this one. */ -- if (*e2 == '.' && e2[1] && ISDIGIT (e2[1])) -- return -1; -- /* It has an invalid numeric extension, must prefer the other one. */ -- else -- return 1; -- } -- else -- return 0; --} -- --/* Given the name NAME of a dynamic dependency, find its pathname and add -- it to the list of libraries. */ -- --static void --locatelib (const char *name) --{ -- static const char **l; -- static int cnt; -- char buf[MAXPATHLEN]; -- char *p, *q; -- const char **pp; -- -- if (l == 0) -- { -- char *ld_rules; -- char *ldr = 0; -- /* counting elements in array, need 1 extra for null */ -- cnt = 1; -- ld_rules = (char *) (ld_2->ld_rules + code); -- if (ld_rules) -- { -- cnt++; -- for (; *ld_rules != 0; ld_rules++) -- if (*ld_rules == ':') -- cnt++; -- ld_rules = (char *) (ld_2->ld_rules + code); -- ldr = xstrdup (ld_rules); -- } -- p = getenv ("LD_LIBRARY_PATH"); -- q = 0; -- if (p) -- { -- cnt++; -- for (q = p ; *q != 0; q++) -- if (*q == ':') -- cnt++; -- q = xstrdup (p); -- } -- l = xmalloc ((cnt + 3) * sizeof (char *)); -- pp = l; -- if (ldr) -- { -- *pp++ = ldr; -- for (; *ldr != 0; ldr++) -- if (*ldr == ':') -- { -- *ldr++ = 0; -- *pp++ = ldr; -- } -- } -- if (q) -- { -- *pp++ = q; -- for (; *q != 0; q++) -- if (*q == ':') -- { -- *q++ = 0; -- *pp++ = q; -- } -- } -- /* built in directories are /lib, /usr/lib, and /usr/local/lib */ -- *pp++ = "/lib"; -- *pp++ = "/usr/lib"; -- *pp++ = "/usr/local/lib"; -- *pp = 0; -- } -- libname = name; -- for (pp = l; *pp != 0 ; pp++) -- { -- struct direct **namelist; -- int entries; -- if ((entries = scandir (*pp, &namelist, libselect, libcompare)) > 0) -- { -- sprintf (buf, "%s/%s", *pp, namelist[entries - 1]->d_name); -- add_to_list (&libraries, buf); -- if (debug) -- fprintf (stderr, "%s\n", buf); -- break; -- } -- } -- if (*pp == 0) -- { -- if (debug) -- notice ("not found\n"); -- else -- fatal ("dynamic dependency %s not found", name); -- } --} -- --/* Scan the _DYNAMIC structure of the output file to find shared libraries -- that it depends upon and any constructors or destructors they contain. */ -- --static void --scan_libraries (const char *prog_name) --{ -- struct exec *header; -- char *base; -- struct link_object *lo; -- char buff[MAXPATHLEN]; -- struct id *list; -- -- mapfile (prog_name); -- header = (struct exec *)object; -- if (N_BADMAG (*header)) -- fatal ("bad magic number in file '%s'", prog_name); -- if (header->a_dynamic == 0) -- return; -- -- code = (char *) (N_TXTOFF (*header) + (long) header); -- data = (char *) (N_DATOFF (*header) + (long) header); -- symtab = (struct nlist *) (N_SYMOFF (*header) + (long) header); -- -- if (header->a_magic == ZMAGIC && header->a_entry == 0x20) -- { -- /* shared object */ -- ld = (struct link_dynamic *) (symtab->n_value + code); -- base = code; -- } -- else -- { -- /* executable */ -- ld = (struct link_dynamic *) data; -- base = code-PAGSIZ; -- } -- -- if (debug) -- notice ("dynamic dependencies.\n"); -- -- ld_2 = (struct link_dynamic_2 *) ((long) ld->ld_un.ld_2 + (long)base); -- for (lo = (struct link_object *) ld_2->ld_need; lo; -- lo = (struct link_object *) lo->lo_next) -- { -- char *name; -- lo = (struct link_object *) ((long) lo + code); -- name = (char *) (code + lo->lo_name); -- if (lo->lo_library) -- { -- if (debug) -- fprintf (stderr, "\t-l%s.%d => ", name, lo->lo_major); -- sprintf (buff, "lib%s.so.%d.%d", name, lo->lo_major, lo->lo_minor); -- locatelib (buff); -- } -- else -- { -- if (debug) -- fprintf (stderr, "\t%s\n", name); -- add_to_list (&libraries, name); -- } -- } -- -- if (debug) -- fprintf (stderr, "\n"); -- -- /* Now iterate through the library list adding their symbols to -- the list. */ -- for (list = libraries.first; list; list = list->next) -- scan_prog_file (list->name, PASS_LIB); --} -- --#else /* SUNOS4_SHARED_LIBRARIES */ - #ifdef LDD_SUFFIX - - /* Use the List Dynamic Dependencies program to find shared libraries that -@@ -2429,9 +2152,10 @@ - char *real_ldd_argv[4]; - const char **ldd_argv = (const char **) real_ldd_argv; - int argc = 0; -- int pipe_fd[2]; - char buf[1024]; - FILE *inf; -+ char *errmsg_fmt; -+ char *errmsg_arg; - - /* If we do not have an `ldd', complain. */ - if (ldd_file_name == 0) -@@ -2466,26 +2190,10 @@ - fflush (stdout); - fflush (stderr); - -- /* Spawn child ldd on pipe. */ -- pid = vfork (); -- if (pid == -1) -- fatal_perror (VFORK_STRING); -- -- if (pid == 0) /* child context */ -- { -- /* setup stdout */ -- if (dup2 (pipe_fd[1], 1) < 0) -- fatal_perror ("dup2 %d 1", pipe_fd[1]); -- -- if (close (pipe_fd[0]) < 0) -- fatal_perror ("close %d", pipe_fd[0]); -- -- if (close (pipe_fd[1]) < 0) -- fatal_perror ("close %d", pipe_fd[1]); -- -- execv (ldd_file_name, real_ldd_argv); -- fatal_perror ("execv %s", ldd_file_name); -- } -+ inf = pex_read (ldd_file_name, real_ldd_argv, ldd_file_name, NULL, -+ &errmsg_fmt, &errmsg_arg, 0, &pid); -+ if (inf == (FILE *) 0) -+ fatal_perror (errmsg_fmt, errmsg_arg); - - /* Parent context from here on. */ - int_handler = (void (*) (int)) signal (SIGINT, SIG_IGN); -@@ -2493,9 +2201,6 @@ - quit_handler = (void (*) (int)) signal (SIGQUIT, SIG_IGN); - #endif - -- if (close (pipe_fd[1]) < 0) -- fatal_perror ("close %d", pipe_fd[1]); -- - if (debug) - notice ("\nldd output with constructors/destructors.\n"); - -@@ -2532,10 +2237,7 @@ - if (debug) - fprintf (stderr, "\n"); - -- if (fclose (inf) != 0) -- fatal_perror ("fclose"); -- -- do_wait (ldd_file_name); -+ do_read_wait (ldd_file_name, inf); - - signal (SIGINT, int_handler); - #ifdef SIGQUIT -@@ -2549,7 +2251,6 @@ - } - - #endif /* LDD_SUFFIX */ --#endif /* SUNOS4_SHARED_LIBRARIES */ - - #endif /* OBJECT_FORMAT_NONE */ - -diff -Nbaur gcc-3.4.4/gcc/config/arm/arm.md gcc-3.4.4-new/gcc/config/arm/arm.md ---- gcc-3.4.4/gcc/config/arm/arm.md Tue Jan 25 12:50:34 2005 -+++ gcc-3.4.4-new/gcc/config/arm/arm.md Wed Jul 6 01:50:36 2005 -@@ -7205,6 +7205,12 @@ - { - if (TARGET_CALLER_INTERWORKING) - return \"bl\\t%__interwork_call_via_%0\"; -+ else if (arm_arch5) -+ return \"blx\\t%0\"; -+ else if (TARGET_LONG_CALLS) -+ /* For long calls the __call_via functions might not be near -+ this branch, so we have to synthesise their actions. */ -+ return \"bl\\t0f\\n\\tb\\t1f\\n0:\\tbx\\t%0\\n1:\"; - else - return \"bl\\t%__call_via_%0\"; - }" -@@ -7222,6 +7228,12 @@ - { - if (TARGET_CALLER_INTERWORKING) - return \"bl\\t%__interwork_call_via_%1\"; -+ else if (arm_arch5) -+ return \"blx\\t%1\"; -+ else if (TARGET_LONG_CALLS) -+ /* For long calls the __call_via functions might not be near -+ this branch, so we have to synthesise their actions. */ -+ return \"bl\\t0f\\n\\tb\\t1f\\n0:\\tbx\\t%1\\n1:\"; - else - return \"bl\\t%__call_via_%1\"; - }" -diff -Nbaur gcc-3.4.4/gcc/config/arm/t-arm-elf gcc-3.4.4-new/gcc/config/arm/t-arm-elf ---- gcc-3.4.4/gcc/config/arm/t-arm-elf Tue Sep 30 11:21:41 2003 -+++ gcc-3.4.4-new/gcc/config/arm/t-arm-elf Wed Jul 6 02:17:23 2005 -@@ -26,16 +26,16 @@ - # MULTILIB_DIRNAMES += 32bit 26bit - # MULTILIB_EXCEPTIONS += *mthumb/*mapcs-26* - # --# MULTILIB_OPTIONS += mno-thumb-interwork/mthumb-interwork --# MULTILIB_DIRNAMES += normal interwork --# MULTILIB_EXCEPTIONS += *mapcs-26/*mthumb-interwork* -+MULTILIB_OPTIONS += mno-thumb-interwork/mthumb-interwork -+MULTILIB_DIRNAMES += normal interwork -+MULTILIB_EXCEPTIONS += *mapcs-26/*mthumb-interwork* - # - # MULTILIB_OPTIONS += fno-leading-underscore/fleading-underscore - # MULTILIB_DIRNAMES += elf under - # --# MULTILIB_OPTIONS += mcpu=arm7 --# MULTILIB_DIRNAMES += nofmult --# MULTILIB_EXCEPTIONS += *mthumb*/*mcpu=arm7* -+#MULTILIB_OPTIONS += mcpu=arm7 -+#MULTILIB_DIRNAMES += nofmult -+#MULTILIB_EXCEPTIONS += *mthumb*/*mcpu=arm7* - # # Note: the multilib_exceptions matches both -mthumb and - # # -mthumb-interwork - # # -@@ -44,21 +44,21 @@ - # # -mcpu=arm7. Note that in the following the ? is interpreted as - # # an = for the purposes of matching command line options. - # # FIXME: There ought to be a better way to do this. --# MULTILIB_MATCHES += mcpu?arm7=mcpu?arm7d --# MULTILIB_MATCHES += mcpu?arm7=mcpu?arm7di --# MULTILIB_MATCHES += mcpu?arm7=mcpu?arm70 --# MULTILIB_MATCHES += mcpu?arm7=mcpu?arm700 --# MULTILIB_MATCHES += mcpu?arm7=mcpu?arm700i --# MULTILIB_MATCHES += mcpu?arm7=mcpu?arm710 --# MULTILIB_MATCHES += mcpu?arm7=mcpu?arm710c --# MULTILIB_MATCHES += mcpu?arm7=mcpu?arm7100 --# MULTILIB_MATCHES += mcpu?arm7=mcpu?arm7500 --# MULTILIB_MATCHES += mcpu?arm7=mcpu?arm7500fe --# MULTILIB_MATCHES += mcpu?arm7=mcpu?arm6 --# MULTILIB_MATCHES += mcpu?arm7=mcpu?arm60 --# MULTILIB_MATCHES += mcpu?arm7=mcpu?arm600 --# MULTILIB_MATCHES += mcpu?arm7=mcpu?arm610 --# MULTILIB_MATCHES += mcpu?arm7=mcpu?arm620 -+MULTILIB_MATCHES += mcpu?arm7=mcpu?arm7d -+MULTILIB_MATCHES += mcpu?arm7=mcpu?arm7di -+MULTILIB_MATCHES += mcpu?arm7=mcpu?arm70 -+MULTILIB_MATCHES += mcpu?arm7=mcpu?arm700 -+MULTILIB_MATCHES += mcpu?arm7=mcpu?arm700i -+MULTILIB_MATCHES += mcpu?arm7=mcpu?arm710 -+MULTILIB_MATCHES += mcpu?arm7=mcpu?arm710c -+MULTILIB_MATCHES += mcpu?arm7=mcpu?arm7100 -+MULTILIB_MATCHES += mcpu?arm7=mcpu?arm7500 -+MULTILIB_MATCHES += mcpu?arm7=mcpu?arm7500fe -+MULTILIB_MATCHES += mcpu?arm7=mcpu?arm6 -+MULTILIB_MATCHES += mcpu?arm7=mcpu?arm60 -+MULTILIB_MATCHES += mcpu?arm7=mcpu?arm600 -+MULTILIB_MATCHES += mcpu?arm7=mcpu?arm610 -+MULTILIB_MATCHES += mcpu?arm7=mcpu?arm620 - - EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o crti.o crtn.o - -diff -Nbaur gcc-3.4.4/gcc/config/i386/cygming.h gcc-3.4.4-new/gcc/config/i386/cygming.h ---- gcc-3.4.4/gcc/config/i386/cygming.h Tue Jun 8 07:30:13 2004 -+++ gcc-3.4.4-new/gcc/config/i386/cygming.h Wed Jul 6 01:50:36 2005 -@@ -251,7 +251,7 @@ - unit may not be bound to undefined symbols in another translation unit - without user intervention. For instance, under Microsoft Windows - symbols must be explicitly imported from shared libraries (DLLs). */ --#define MULTIPLE_SYMBOL_SPACES -+#define MULTIPLE_SYMBOL_SPACES 1 - - extern void i386_pe_unique_section (TREE, int); - #define TARGET_ASM_UNIQUE_SECTION i386_pe_unique_section -@@ -308,7 +308,7 @@ - /* DWARF2 Unwinding doesn't work with exception handling yet. To make - it work, we need to build a libgcc_s.dll, and dcrt0.o should be - changed to call __register_frame_info/__deregister_frame_info. */ --#define DWARF2_UNWIND_INFO 0 -+#define DWARF2_UNWIND_INFO 1 - - /* Don't assume anything about the header files. */ - #define NO_IMPLICIT_EXTERN_C -diff -Nbaur gcc-3.4.4/gcc/config/i386/i386.c gcc-3.4.4-new/gcc/config/i386/i386.c ---- gcc-3.4.4/gcc/config/i386/i386.c Wed Mar 16 15:23:40 2005 -+++ gcc-3.4.4-new/gcc/config/i386/i386.c Wed Jul 6 01:50:36 2005 -@@ -5284,7 +5284,7 @@ - GEN_INT (-allocate), -1); - else - { -- /* Only valid for Win32. */ -+ /* Only valid for Win32 */ - rtx eax = gen_rtx_REG (SImode, 0); - bool eax_live = ix86_eax_live_at_start_p (); - -diff -Nbaur gcc-3.4.4/gcc/config/i386/mingw32-1.c gcc-3.4.4-new/gcc/config/i386/mingw32-1.c ---- gcc-3.4.4/gcc/config/i386/mingw32-1.c Thu Jan 1 00:00:00 1970 -+++ gcc-3.4.4-new/gcc/config/i386/mingw32-1.c Wed Jul 6 01:50:36 2005 -@@ -0,0 +1,41 @@ -+/* This replaces the use of stat and struct stat.st_ino to determine if -+ files are different in gcc.c (do_spec_1) handling of --save-temps -+ switch. -+ Contributed by Danny Smith (dannysmith@users.sourceforge.net) -+ Copyright 2003 Free Software Foundation, Inc. -+ -+This file is part of GCC. -+ -+GCC 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, or (at your option) any later -+version. -+ -+GCC 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 GCC; see the file COPYING. If not, write to the Free -+Software Foundation, 59 Temple Place - Suite 330, Boston, MA -+02111-1307, USA. */ -+ -+#include "config/i386/xm-mingw32.h" -+#define WIN32_LEAN_AND_MEAN -+#include -+ -+/* Return non-zero if src and dst filenames do not refer to same files. */ -+ -+int -+w32_file_id_cmp (const char * src, const char * dst) -+{ -+ char fullpath_src[MAX_PATH]; -+ char fullpath_dst[MAX_PATH]; -+ char* pfilename; -+ -+ /* Just compare full pathnames, without regard to case. */ -+ GetFullPathName (src, MAX_PATH, fullpath_src, &pfilename); -+ GetFullPathName (dst, MAX_PATH, fullpath_dst, &pfilename); -+ return (lstrcmpi (fullpath_src, fullpath_dst)); -+} -diff -Nbaur gcc-3.4.4/gcc/config/i386/mingw32.h gcc-3.4.4-new/gcc/config/i386/mingw32.h ---- gcc-3.4.4/gcc/config/i386/mingw32.h Fri Sep 26 04:46:06 2003 -+++ gcc-3.4.4-new/gcc/config/i386/mingw32.h Wed Jul 6 01:50:36 2005 -@@ -67,7 +67,11 @@ - - #undef STARTFILE_SPEC - #define STARTFILE_SPEC "%{shared|mdll:dllcrt2%O%s} \ -- %{!shared:%{!mdll:crt2%O%s}} %{pg:gcrt2%O%s}" -+ %{!shared:%{!mdll:crt2%O%s}} %{pg:gcrt2%O%s} \ -+ %{!fno-exceptions:crtbegin%O%s}" -+ -+#undef ENDFILE_SPEC -+#define ENDFILE_SPEC "%{!fno-exceptions:crtend%O%s}" - - /* An additional prefix to try after the standard prefixes. */ - #undef MD_STARTFILE_PREFIX -diff -Nbaur gcc-3.4.4/gcc/config/i386/t-cygming gcc-3.4.4-new/gcc/config/i386/t-cygming ---- gcc-3.4.4/gcc/config/i386/t-cygming Tue Sep 23 19:55:59 2003 -+++ gcc-3.4.4-new/gcc/config/i386/t-cygming Wed Jul 6 01:50:36 2005 -@@ -10,6 +10,8 @@ - # first. - LIBGCC2_INCLUDES = -I$(srcdir)/../winsup/w32api/include - -+LIB2FUNCS_EXTRA = $(srcdir)/config/i386/w32-shared-ptr.c -+ - winnt.o: $(srcdir)/config/i386/winnt.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ - $(TM_H) $(RTL_H) $(REGS_H) hard-reg-set.h output.h $(TREE_H) flags.h \ - $(TM_P_H) toplev.h $(HASHTAB_H) $(GGC_H) -diff -Nbaur gcc-3.4.4/gcc/config/i386/t-mingw32 gcc-3.4.4-new/gcc/config/i386/t-mingw32 ---- gcc-3.4.4/gcc/config/i386/t-mingw32 Tue Jun 11 06:25:44 2002 -+++ gcc-3.4.4-new/gcc/config/i386/t-mingw32 Wed Jul 6 01:50:36 2005 -@@ -1,7 +1,8 @@ - # - # collect2 doesn't work for i386-mingw32* yet. - # --USE_COLLECT2= -+#USE_COLLECT2= - - # We hide calls to w32api needed for w32 thread support here: --LIB2FUNCS_EXTRA = $(srcdir)/config/i386/gthr-win32.c -+LIB2FUNCS_EXTRA += $(srcdir)/config/i386/gthr-win32.c -+ -diff -Nbaur gcc-3.4.4/gcc/config/i386/w32-shared-ptr.c gcc-3.4.4-new/gcc/config/i386/w32-shared-ptr.c ---- gcc-3.4.4/gcc/config/i386/w32-shared-ptr.c Thu Jan 1 00:00:00 1970 -+++ gcc-3.4.4-new/gcc/config/i386/w32-shared-ptr.c Wed Jul 6 01:50:36 2005 -@@ -0,0 +1,244 @@ -+/* -+ * w32-shared-ptr.c -+ * -+ * Share informations between EXE/DLLs without using an -+ * additional DLL. -+ * -+ * Contributors: -+ * Created by Adriano dos Santos Fernandes -+ * Enhanced by Thomas Pfaff -+ * -+ * THIS SOFTWARE IS NOT COPYRIGHTED -+ * -+ * This source code is offered for use in the public domain. You may -+ * use, modify or distribute it freely. -+ * -+ * This code is distributed in the hope that it will be useful but -+ * WITHOUT ANY WARRANTY. ALL WARRENTIES, EXPRESS OR IMPLIED ARE HEREBY -+ * DISCLAMED. This includes but is not limited to warrenties of -+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -+ * -+ */ -+ -+#ifdef __MINGW32__ -+#undef _CRTIMP -+#define _CRTIMP -+#endif -+ -+#include -+#include -+#ifdef __CYGWIN__ -+#include -+#endif -+#ifdef DEBUG -+#include -+#endif -+ -+#include "tconfig.h" -+#include "tsystem.h" -+#include "gthr.h" -+ -+#include "w32-shared-ptr.h" -+ -+#if defined (__CYGWIN__) /* FIXME: This shouldn't be necessary. */ -+typedef unsigned short ATOM; -+ATOM __attribute__ ((stdcall)) AddAtomA(const char*); -+ATOM __attribute__ ((stdcall)) FindAtomA(const char*); -+unsigned int __attribute__ ((stdcall)) GetAtomNameA(ATOM,char*,int); -+#else -+#define WIN32_LEAN_AND_MEAN -+#include -+#endif -+ -+W32_EH_SHARED * __w32_sharedptr; -+ -+void ** __w32_sharedptr_terminate; -+void ** __w32_sharedptr_unexpected; -+ -+ -+#define W32_ATOM_SUFFIX "-LIBGCCW32-EH" -+ -+#ifdef __USING_SJLJ_EXCEPTIONS__ -+#define SJLJ_SUFFIX "-SJLJ" -+#else -+#define SJLJ_SUFFIX -+#endif -+ -+#if __GTHREADS -+#define GTHR_SUFFIX "-GTHR" -+#else -+#define GTHR_SUFFIX -+#endif -+ -+#ifdef __CYGWIN__ -+#define SYS_SUFFIX "-CYGWIN" -+#else -+#define SYS_SUFFIX "-MINGW32" -+#endif -+ -+static const char w32_atom_suffix[] = W32_ATOM_SUFFIX SJLJ_SUFFIX GTHR_SUFFIX SYS_SUFFIX; -+ -+#define SHAREDPTR_BIT1 'A' -+#define SHAREDPTR_BIT0 'a' -+ -+#define SHAREDPTR_BITS (sizeof(W32_EH_SHARED*)*8) -+#define SHARED_ATOM_NAME_LEN (SHAREDPTR_BITS + sizeof(w32_atom_suffix)) -+ -+static ATOM __w32_sharedptr_set (W32_EH_SHARED *w32_sharedptr); -+static W32_EH_SHARED * __w32_sharedptr_get (ATOM atom); -+static void __w32_sharedptr_default_unexpected(void); -+ -+#ifdef __CYGWIN__ -+static void __w32_sharedptr_fixup_after_fork (void); -+#endif -+ -+static void __w32_sharedptr_default_unexpected(void) -+{ -+ ((void(*)(void))__w32_sharedptr->terminate)(); -+} -+ -+static void __w32_eh_shared_initialize (W32_EH_SHARED *w32_sharedptr) -+{ -+#ifdef __GTHREAD_MUTEX_INIT -+ static __gthread_mutex_t dw2_object_mutex = __GTHREAD_MUTEX_INIT; -+#else -+ static __gthread_mutex_t dw2_object_mutex; -+#endif -+#ifdef __GTHREAD_MUTEX_INIT_FUNCTION -+ static __gthread_once_t dw2_once = __GTHREAD_ONCE_INIT; -+#endif -+ -+#ifdef __USING_SJLJ_EXCEPTIONS__ -+#if __GTHREADS -+ static __gthread_key_t sjl_fc_key; -+ static __gthread_once_t sjl_once = __GTHREAD_ONCE_INIT; -+#endif -+#endif -+ -+ memset (w32_sharedptr, 0, sizeof(W32_EH_SHARED)); -+ -+ w32_sharedptr->size = sizeof(W32_EH_SHARED); -+ -+ w32_sharedptr->terminate = (void*)abort; -+ w32_sharedptr->unexpected = (void*)__w32_sharedptr_default_unexpected; -+ -+ w32_sharedptr->dw2_object_mutex = dw2_object_mutex; -+#ifdef __GTHREAD_MUTEX_INIT_FUNCTION -+ w32_sharedptr->dw2_once = dw2_once; -+#endif -+ -+#ifdef __USING_SJLJ_EXCEPTIONS__ -+ w32_sharedptr->sjlj_fc_static = NULL; -+#if __GTHREADS -+ w32_sharedptr->sjlj_fc_key = sjl_fc_key; -+ w32_sharedptr->sjlj_use_fc_key = -1; -+ w32_sharedptr->sjlj_once = sjl_once; -+#endif -+#endif -+} -+ -+void __w32_sharedptr_initialize (void) -+{ -+ W32_EH_SHARED *w32_sharedptr; -+ char s[SHARED_ATOM_NAME_LEN]; -+ ATOM atom; -+ -+ if (__w32_sharedptr) -+ return; -+ -+ memset (s, SHAREDPTR_BIT1, SHAREDPTR_BITS); -+ memcpy (&(s[SHAREDPTR_BITS]), w32_atom_suffix, sizeof(w32_atom_suffix)); -+ -+ atom = FindAtomA (s); -+ if (atom) -+ w32_sharedptr = __w32_sharedptr_get (atom); -+ else -+ { -+ w32_sharedptr = (W32_EH_SHARED *) malloc (sizeof(W32_EH_SHARED)); -+ if (!w32_sharedptr) -+ abort (); -+ -+ __w32_eh_shared_initialize (w32_sharedptr); -+ -+ if (__w32_sharedptr_set (w32_sharedptr)) -+ { -+#ifdef __CYGWIN__ -+ /* recreate atom after fork */ -+ pthread_atfork (NULL,NULL,__w32_sharedptr_fixup_after_fork); -+#endif -+ } -+ else -+ { -+ free (w32_sharedptr); -+ w32_sharedptr = __w32_sharedptr_get (FindAtomA (s)); -+ } -+ } -+ -+ __w32_sharedptr_terminate = &w32_sharedptr->terminate; -+ __w32_sharedptr_unexpected = &w32_sharedptr->unexpected; -+ -+ /* THIS MUST BE THE LAST STEP */ -+ __w32_sharedptr = w32_sharedptr; -+} -+ -+static ATOM __w32_sharedptr_set (W32_EH_SHARED *w32_sharedptr) -+{ -+ int i; -+ int bit; -+ char s[SHARED_ATOM_NAME_LEN]; -+ ATOM atom; -+ -+ /* This should optimize out entirely by O2 */ -+ if (sizeof(bit) != sizeof(w32_sharedptr)) -+ abort (); -+ -+ for (i = SHAREDPTR_BITS - 1, bit = 1; i >= 0; --i, bit <<= 1) -+ s[i] = ((int)w32_sharedptr) & bit ? SHAREDPTR_BIT1 : -+ SHAREDPTR_BIT0; -+ -+ memcpy (&(s[SHAREDPTR_BITS]), w32_atom_suffix, sizeof(w32_atom_suffix)); -+ -+ atom = AddAtomA (s); -+ /* Sanity check to avoid race by concurrent initialization */ -+ if (!atom || __w32_sharedptr_get (atom) != w32_sharedptr) -+ return 0; -+ -+#ifdef DEBUG -+ printf ("%s: set sharedptr: (%p):%s\n", -+ __FUNCTION__,w32_sharedptr, s); -+#endif -+ -+ return atom; -+} -+ -+static W32_EH_SHARED *__w32_sharedptr_get (ATOM atom) -+{ -+ W32_EH_SHARED *w32_sharedptr = NULL; -+ int i; -+ int bit; -+ char s[SHARED_ATOM_NAME_LEN]; -+ -+ /* If this fails something went wrong */ -+ if (!GetAtomNameA (atom, s, sizeof(s))) -+ abort (); -+ -+ for (i = SHAREDPTR_BITS - 1, bit = 1; i >= 0; --i, bit <<= 1) -+ (int)w32_sharedptr |= s[i] == SHAREDPTR_BIT1 ? bit : 0; -+ -+ if (w32_sharedptr->size != sizeof(W32_EH_SHARED)) -+ abort (); -+ -+#ifdef DEBUG -+ printf ("%s: got sharedptr (%p): %s\n", -+ __FUNCTION__, w32_sharedptr, s); -+#endif -+ return w32_sharedptr; -+} -+ -+#ifdef __CYGWIN__ -+static void __w32_sharedptr_fixup_after_fork (void) -+{ -+ if (!__w32_sharedptr_set (__w32_sharedptr)) -+ abort (); -+} -+#endif -diff -Nbaur gcc-3.4.4/gcc/config/i386/w32-shared-ptr.h gcc-3.4.4-new/gcc/config/i386/w32-shared-ptr.h ---- gcc-3.4.4/gcc/config/i386/w32-shared-ptr.h Thu Jan 1 00:00:00 1970 -+++ gcc-3.4.4-new/gcc/config/i386/w32-shared-ptr.h Wed Jul 6 01:50:36 2005 -@@ -0,0 +1,65 @@ -+/* -+ * w32-shared-ptr.h -+ * -+ * Contributors: -+ * Created by Thomas Pfaff -+ * -+ * THIS SOFTWARE IS NOT COPYRIGHTED -+ * -+ * This source code is offered for use in the public domain. You may -+ * use, modify or distribute it freely. -+ * -+ * This code is distributed in the hope that it will be useful but -+ * WITHOUT ANY WARRANTY. ALL WARRENTIES, EXPRESS OR IMPLIED ARE HEREBY -+ * DISCLAMED. This includes but is not limited to warrenties of -+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -+ * -+ */ -+ -+#ifndef GCC_W32_SHARED_PTR_H -+#define GCC_W32_SHARED_PTR_H -+ -+#ifdef __cplusplus -+extern "C" { -+#endif -+ -+typedef struct -+{ -+ int size; -+ -+ void *terminate; -+ void *unexpected; -+ -+ void *dw2_unseen_objects; -+ void *dw2_seen_objects; -+ __gthread_mutex_t dw2_object_mutex; -+#ifdef __GTHREAD_MUTEX_INIT_FUNCTION -+ __gthread_once_t dw2_once; -+#endif -+ const void *dw2_marker; -+ -+#ifdef __USING_SJLJ_EXCEPTIONS__ -+ void* sjlj_fc_static; -+#if __GTHREADS -+ __gthread_key_t sjlj_fc_key; -+ int sjlj_use_fc_key; -+ __gthread_once_t sjlj_once; -+#endif -+#endif -+ -+} W32_EH_SHARED; -+ -+extern W32_EH_SHARED *__w32_sharedptr; -+ -+extern void ** __w32_sharedptr_terminate; -+extern void ** __w32_sharedptr_unexpected; -+ -+extern void __w32_sharedptr_initialize (void); -+ -+#define W32_SHAREDPTR_INITIALIZE() if (!__w32_sharedptr) __w32_sharedptr_initialize () -+ -+#ifdef __cplusplus -+} -+#endif -+ -+#endif -diff -Nbaur gcc-3.4.4/gcc/config/i386/winnt.c gcc-3.4.4-new/gcc/config/i386/winnt.c ---- gcc-3.4.4/gcc/config/i386/winnt.c Tue Mar 23 23:18:31 2004 -+++ gcc-3.4.4-new/gcc/config/i386/winnt.c Wed Jul 6 01:50:37 2005 -@@ -262,7 +262,8 @@ - } - - /* Don't allow definitions of static data members in dllimport class, -- Just ignore attribute for vtable data. */ -+ If vtable data is marked as DECL_EXTERNAL, import it; otherwise just -+ ignore the attribute. */ - else if (TREE_CODE (decl) == VAR_DECL - && TREE_STATIC (decl) && TREE_PUBLIC (decl) - && !DECL_EXTERNAL (decl) && context_imp) -@@ -347,6 +348,13 @@ - - XEXP (DECL_RTL (decl), 0) = - gen_rtx (SYMBOL_REF, Pmode, IDENTIFIER_POINTER (idp)); -+ -+#if 0 -+ /* If we are keeping inline functions, make sure we export -+ the function definition even if not used. */ -+ if (flag_keep_inline_functions && TREE_CODE (decl) == FUNCTION_DECL) -+ mark_referenced (DECL_ASSEMBLER_NAME (decl)); -+#endif - } - - /* Mark a DECL as being dllimport'd. */ -@@ -559,7 +567,7 @@ - return str; - } - --/* Also strip the stdcall suffix. */ -+/* Also strip the fastcall prefix and stdcall suffix. */ - - const char * - i386_pe_strip_name_encoding_full (const char *str) -@@ -567,6 +575,11 @@ - const char *p; - const char *name = i386_pe_strip_name_encoding (str); - -+ /* Strip leading '@' on fastcall symbols. */ -+ if (*name == '@') -+ name++; -+ -+ /* Strip trailing '@n'. */ - p = strchr (name, '@'); - if (p) - return ggc_alloc_string (name, p - name); -@@ -598,9 +611,9 @@ - } - } - else if ((name[0] == FASTCALL_PREFIX) -- || (strncmp (name, DLL_EXPORT_PREFIX, strlen (DLL_EXPORT_PREFIX) -+ || (strncmp (name, DLL_EXPORT_PREFIX, strlen (DLL_EXPORT_PREFIX)) - == 0 -- && name[strlen (DLL_EXPORT_PREFIX)] == FASTCALL_PREFIX))) -+ && name[strlen (DLL_EXPORT_PREFIX)] == FASTCALL_PREFIX)) - /* A fastcall symbol. */ - { - fprintf (stream, "%s", -@@ -828,7 +841,7 @@ - struct extern_list *p; - - ix86_file_end (); -- -+ if (write_symbols != SDB_DEBUG) - for (p = extern_head; p != NULL; p = p->next) - { - tree decl; -diff -Nbaur gcc-3.4.4/gcc/config/i386/x-mingw32 gcc-3.4.4-new/gcc/config/i386/x-mingw32 ---- gcc-3.4.4/gcc/config/i386/x-mingw32 Wed May 28 22:06:23 2003 -+++ gcc-3.4.4-new/gcc/config/i386/x-mingw32 Wed Jul 6 01:50:37 2005 -@@ -2,3 +2,26 @@ - # Make local_includedir relative to EXEC_PREFIX - # - local_includedir=$(libsubdir)/$(unlibsubdir)/..`echo $(exec_prefix) | sed -e 's|^$(prefix)||' -e 's|/[^/]*|/..|g'`/include -+STMP_FIXINC= -+# -+# host runtime lib's printf uses 'I64' format specifier prefix instead -+# of 'll' for HOST_WIDEST_INT_PRINT_*. See hwint.h. -+# Avoid warnings while bootstrapping. -+# -+bt-load.o-warn = -Wno-format -+cfg.o-warn = -Wno-format -+gcov-dump.o-warn = -Wno-format -+gcov.o-warn = -Wno-format -+loop-unroll.o-warn = -Wno-format -+predict.o-warn = -Wno-format -+profile.o-warn = -Wno-format -+ -+# -+# For HOST_FILE_ID_CMP for mingw32. -+# -+EXTRA_GCC_OBJS = mingw32-1.o -+ -+mingw32-1.o: $(srcdir)/config/i386/mingw32-1.c \ -+ $(srcdir)/config/i386/xm-mingw32.h -+ $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ -+ $(srcdir)/config/i386/mingw32-1.c -diff -Nbaur gcc-3.4.4/gcc/config/i386/xm-mingw32.h gcc-3.4.4-new/gcc/config/i386/xm-mingw32.h ---- gcc-3.4.4/gcc/config/i386/xm-mingw32.h Sat Jan 31 06:18:23 2004 -+++ gcc-3.4.4-new/gcc/config/i386/xm-mingw32.h Wed Jul 6 01:50:37 2005 -@@ -27,3 +27,18 @@ - - /* This is the name of the null device on windows. */ - #define HOST_BIT_BUCKET "nul" -+ -+/* Windows way to build quoted strings for COLLECT_GCC_OPTIONS -+ environment variable. */ -+#define HOST_QUOTE_STR "\"" -+#define HOST_QUOTE_CHAR '"' -+#define HOST_QUOTED_QUOTE_STR "\"\\\"\"" -+ -+/* Override the default of "ll" in hwint.t. */ -+#define HOST_LL_PREFIX "I64" -+ -+/* This replaces the use of stat to determine if files are different -+ in gcc.c (do_spec_1) handling of --save-temps switch. */ -+extern int -+w32_file_id_cmp (const char *, const char *); -+#define HOST_FILE_ID_CMP(SRC,DST) w32_file_id_cmp (SRC, DST) -diff -Nbaur gcc-3.4.4/gcc/config/mips/mips.c gcc-3.4.4-new/gcc/config/mips/mips.c ---- gcc-3.4.4/gcc/config/mips/mips.c Sun May 8 13:06:23 2005 -+++ gcc-3.4.4-new/gcc/config/mips/mips.c Wed Jul 6 01:50:54 2005 -@@ -693,6 +693,7 @@ - - /* MIPS II */ - { "r6000", PROCESSOR_R6000, 2 }, -+ { "allegrex", PROCESSOR_ALLEGREX, 2 }, - - /* MIPS III */ - { "r4000", PROCESSOR_R4000, 3 }, -diff -Nbaur gcc-3.4.4/gcc/config/mips/mips.h gcc-3.4.4-new/gcc/config/mips/mips.h ---- gcc-3.4.4/gcc/config/mips/mips.h Thu Jul 15 01:42:47 2004 -+++ gcc-3.4.4-new/gcc/config/mips/mips.h Wed Jul 6 01:53:59 2005 -@@ -67,7 +67,8 @@ - PROCESSOR_R8000, - PROCESSOR_R9000, - PROCESSOR_SB1, -- PROCESSOR_SR71000 -+ PROCESSOR_SR71000, -+ PROCESSOR_ALLEGREX - }; - - /* Which ABI to use. ABI_32 (original 32, or o32), ABI_N32 (n32), -@@ -333,6 +334,7 @@ - #define TARGET_MIPS9000 (mips_arch == PROCESSOR_R9000) - #define TARGET_SB1 (mips_arch == PROCESSOR_SB1) - #define TARGET_SR71K (mips_arch == PROCESSOR_SR71000) -+#define TARGET_ALLEGREX (mips_arch == PROCESSOR_ALLEGREX) - - /* Scheduling target defines. */ - #define TUNE_MIPS3000 (mips_tune == PROCESSOR_R3000) -@@ -345,6 +347,7 @@ - #define TUNE_MIPS7000 (mips_tune == PROCESSOR_R7000) - #define TUNE_MIPS9000 (mips_tune == PROCESSOR_R9000) - #define TUNE_SB1 (mips_tune == PROCESSOR_SB1) -+#define TUNE_ALLEGREX (mips_tune == PROCESSOR_ALLEGREX) - #define TUNE_SR71K (mips_tune == PROCESSOR_SR71000) - - #define TARGET_NEWABI (mips_abi == ABI_N32 || mips_abi == ABI_64) -@@ -847,7 +850,8 @@ - - /* ISA has conditional trap instructions. */ - #define ISA_HAS_COND_TRAP (!ISA_MIPS1 \ -- && !TARGET_MIPS16) -+ && !TARGET_MIPS16 \ -+ && !TARGET_ALLEGREX) - - /* ISA has integer multiply-accumulate instructions, madd and msub. */ - #define ISA_HAS_MADD_MSUB ((ISA_MIPS32 \ -@@ -865,6 +869,7 @@ - #define ISA_HAS_CLZ_CLO ((ISA_MIPS32 \ - || ISA_MIPS32R2 \ - || ISA_MIPS64 \ -+ || TARGET_ALLEGREX \ - ) && !TARGET_MIPS16) - - /* ISA has double-word count leading zeroes/ones instruction (not -@@ -906,6 +911,7 @@ - || TARGET_MIPS5400 \ - || TARGET_MIPS5500 \ - || TARGET_SR71K \ -+ || TARGET_ALLEGREX \ - )) - - /* ISA has 64-bit rotate right instruction. */ -@@ -939,6 +945,7 @@ - /* ISA includes the MIPS32r2 seb and seh instructions. */ - #define ISA_HAS_SEB_SEH (!TARGET_MIPS16 \ - && (ISA_MIPS32R2 \ -+ || TARGET_ALLEGREX \ - )) - - /* True if the result of a load is not available to the next instruction. -diff -Nbaur gcc-3.4.4/gcc/config/mips/psp.h gcc-3.4.4-new/gcc/config/mips/psp.h ---- gcc-3.4.4/gcc/config/mips/psp.h Thu Jan 1 00:00:00 1970 -+++ gcc-3.4.4-new/gcc/config/mips/psp.h Wed Jul 6 01:50:54 2005 -@@ -0,0 +1,24 @@ -+/* Support for Sony's Playstation Portable (PSP). -+ Copyright (C) 2005 Free Software Foundation, Inc. -+ Contributed by Marcus R. Brown -+ -+This file is part of GCC. -+ -+GCC 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, or (at your option) -+any later version. -+ -+GCC 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 GCC; see the file COPYING. If not, write to -+the Free Software Foundation, 59 Temple Place - Suite 330, -+Boston, MA 02111-1307, USA. */ -+ -+/* Override the startfile spec to include crt0.o. */ -+#undef STARTFILE_SPEC -+#define STARTFILE_SPEC "crt0%O%s crti%O%s crtbegin%O%s" -diff -Nbaur gcc-3.4.4/gcc/config/mips/t-allegrex gcc-3.4.4-new/gcc/config/mips/t-allegrex ---- gcc-3.4.4/gcc/config/mips/t-allegrex Thu Jan 1 00:00:00 1970 -+++ gcc-3.4.4-new/gcc/config/mips/t-allegrex Wed Jul 6 01:50:54 2005 -@@ -0,0 +1,29 @@ -+# Suppress building libgcc1.a, since the MIPS compiler port is complete -+# and does not need anything from libgcc1.a. -+LIBGCC1 = -+CROSS_LIBGCC1 = -+ -+EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o crti.o crtn.o -+# Don't let CTOR_LIST end up in sdata section. -+CRTSTUFF_T_CFLAGS = -G 0 -+ -+# Assemble startup files. -+$(T)crti.o: $(srcdir)/config/mips/crti.asm $(GCC_PASSES) -+ $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \ -+ -c -o $(T)crti.o -x assembler-with-cpp $(srcdir)/config/mips/crti.asm -+ -+$(T)crtn.o: $(srcdir)/config/mips/crtn.asm $(GCC_PASSES) -+ $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(MULTILIB_CFLAGS) $(INCLUDES) \ -+ -c -o $(T)crtn.o -x assembler-with-cpp $(srcdir)/config/mips/crtn.asm -+ -+# We must build libgcc2.a with -G 0, in case the user wants to link -+# without the $gp register. -+TARGET_LIBGCC2_CFLAGS = -G 0 -+ -+# Build the libraries for both hard and soft floating point -+ -+MULTILIB_OPTIONS = -+MULTILIB_DIRNAMES = -+ -+LIBGCC = stmp-multilib -+INSTALL_LIBGCC = install-multilib -diff -Nbaur gcc-3.4.4/gcc/config/rs6000/sysv4.h gcc-3.4.4-new/gcc/config/rs6000/sysv4.h ---- gcc-3.4.4/gcc/config/rs6000/sysv4.h Fri Feb 11 21:06:45 2005 -+++ gcc-3.4.4-new/gcc/config/rs6000/sysv4.h Wed Jul 6 01:50:37 2005 -@@ -444,7 +444,7 @@ - (TARGET_RELOCATABLE || (flag_pic && DEFAULT_ABI != ABI_AIX) \ - ? "\t.section\t\".got2\",\"aw\"" : "\t.section\t\".got1\",\"aw\"") - --#define SDATA_SECTION_ASM_OP "\t.section\t\".sdata\",\"aw\"" -+#define SDATA_SECTION_ASM_OP "\t.section\t\".sdata\",\"a\"" - #define SDATA2_SECTION_ASM_OP "\t.section\t\".sdata2\",\"a\"" - #define SBSS_SECTION_ASM_OP "\t.section\t\".sbss\",\"aw\",@nobits" - -diff -Nbaur gcc-3.4.4/gcc/config.gcc gcc-3.4.4-new/gcc/config.gcc ---- gcc-3.4.4/gcc/config.gcc Mon Apr 25 05:47:59 2005 -+++ gcc-3.4.4-new/gcc/config.gcc Wed Jul 6 01:55:49 2005 -@@ -1173,6 +1173,8 @@ - xm_file=i386/xm-mingw32.h - tmake_file="i386/t-cygming i386/t-mingw32" - extra_objs=winnt.o -+ extra_parts="crtbegin.o crtend.o" -+ target_cpu_default=TARGET_CPU_DEFAULT_pentiumpro - if test x$enable_threads = xyes; then - thread_file='win32' - fi -@@ -1659,8 +1661,29 @@ - tmake_file=mips/t-r3900 - use_fixproto=yes - ;; -+mipsallegrex-*-elf* | mipsallegrexel-*-elf*) -+ tm_file="elfos.h ${tm_file} mips/elf.h" -+ tmake_file=mips/t-allegrex -+ target_cpu_default="MASK_SINGLE_FLOAT" -+ tm_defines="MIPS_ISA_DEFAULT=2 MIPS_CPU_STRING_DEFAULT=\\\"allegrex\\\" MIPS_ABI_DEFAULT=ABI_EABI" -+ case ${target} in -+ mipsallegrex*-psp-elf*) -+ tm_file="${tm_file} mips/psp.h" -+ ;; -+ esac -+ use_fixproto=yes -+ ;; - mmix-knuth-mmixware) - need_64bit_hwint=yes -+ ;; -+mn10200-*-*) -+ tm_file="dbxelf.h elfos.h svr4.h ${tm_file}" -+ if test x$stabs = xyes -+ then -+ tm_file="${tm_file} dbx.h" -+ fi -+ use_collect2=no -+ use_fixproto=yes - ;; - mn10300-*-*) - tm_file="dbxelf.h elfos.h svr4.h ${tm_file}" -diff -Nbaur gcc-3.4.4/gcc/config.host gcc-3.4.4-new/gcc/config.host ---- gcc-3.4.4/gcc/config.host Tue Oct 14 04:41:41 2003 -+++ gcc-3.4.4-new/gcc/config.host Wed Jul 6 01:50:37 2005 -@@ -135,6 +135,8 @@ - host_xm_file=i386/xm-mingw32.h - host_xmake_file=i386/x-mingw32 - host_exeext=.exe -+ host_extra_gcc_objs=mingw32-1.o -+ # host_extra_objs=w32_mmap_anon.o - ;; - i[34567]86-*-uwin*) - echo "*** UWIN may not be used as a host platform because" -diff -Nbaur gcc-3.4.4/gcc/cp/decl2.c gcc-3.4.4-new/gcc/cp/decl2.c ---- gcc-3.4.4/gcc/cp/decl2.c Mon Oct 11 15:42:36 2004 -+++ gcc-3.4.4-new/gcc/cp/decl2.c Wed Jul 6 01:50:37 2005 -@@ -1476,6 +1476,11 @@ - { - TREE_PUBLIC (decl) = 1; - DECL_EXTERNAL (decl) = 1; -+ /* If found and the class has dllimport attribute, commit to -+ marking the vtable as dllimport, We don't want to change -+ linkage when maybe_emit_vtable calls this with final true. */ -+ if (lookup_attribute ("dllimport", TYPE_ATTRIBUTES (type))) -+ DECL_INTERFACE_KNOWN (decl) = 1; - } - } - } -diff -Nbaur gcc-3.4.4/gcc/cp/parser.c gcc-3.4.4-new/gcc/cp/parser.c ---- gcc-3.4.4/gcc/cp/parser.c Tue Apr 5 00:43:47 2005 -+++ gcc-3.4.4-new/gcc/cp/parser.c Wed Jul 6 01:50:37 2005 -@@ -9320,7 +9320,7 @@ - declaration context. */ - - /* Warn about attributes. They are ignored. */ -- if (attributes) -+ if (attributes && extra_warnings) - warning ("type attributes are honored only at type definition"); - - type = xref_tag (tag_type, identifier, -diff -Nbaur gcc-3.4.4/gcc/cp/repo.c gcc-3.4.4-new/gcc/cp/repo.c ---- gcc-3.4.4/gcc/cp/repo.c Fri Dec 19 23:28:09 2003 -+++ gcc-3.4.4-new/gcc/cp/repo.c Wed Jul 6 01:50:37 2005 -@@ -1,5 +1,5 @@ - /* Code to maintain a C++ template repository. -- Copyright (C) 1995, 1996, 1997, 1998, 2000, 2001, 2002, 2003 -+ Copyright (C) 1995, 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2004 - Free Software Foundation, Inc. - Contributed by Jason Merrill (jason@cygnus.com) - -@@ -53,8 +53,8 @@ - - static struct obstack temporary_obstack; - --#define IDENTIFIER_REPO_USED(NODE) (TREE_LANG_FLAG_3 (NODE)) --#define IDENTIFIER_REPO_CHOSEN(NODE) (TREE_LANG_FLAG_4 (NODE)) -+#define IDENTIFIER_REPO_USED(NODE) (TREE_LANG_FLAG_5 (NODE)) -+#define IDENTIFIER_REPO_CHOSEN(NODE) (TREE_LANG_FLAG_6 (NODE)) - - #if 0 - /* Record the flags used to compile this translation unit. */ -@@ -223,7 +223,7 @@ - break; - else if (! inside && c == '\\') - backquote = 1; -- else if (c == '\'') -+ else if (c == HOST_QUOTE_CHAR) - inside = !inside; - else - obstack_1grow (&temporary_obstack, c); -diff -Nbaur gcc-3.4.4/gcc/crtstuff.c gcc-3.4.4-new/gcc/crtstuff.c ---- gcc-3.4.4/gcc/crtstuff.c Thu Oct 14 00:29:04 2004 -+++ gcc-3.4.4-new/gcc/crtstuff.c Wed Jul 6 01:50:37 2005 -@@ -134,6 +134,8 @@ - /* Likewise for _Jv_RegisterClasses. */ - extern void _Jv_RegisterClasses (void *) TARGET_ATTRIBUTE_WEAK; - -+#if !(defined (__MINGW32__) || defined (__CYGWIN__)) -+ - #ifdef OBJECT_FORMAT_ELF - - /* Declare a pointer to void function type. */ -@@ -542,3 +544,108 @@ - #else /* ! CRT_BEGIN && ! CRT_END */ - #error "One of CRT_BEGIN or CRT_END must be defined." - #endif -+ -+#else /*__MINGW32__ || __CYGWIN__ */ -+ -+/* Use __main to run ctors and dtors. This code generates a -+label for beginning of .eh_frame section in crtbegin.o and terminates -+the section in crtend.o. Registration and deregistration is done by -+installing ctor and dtor functions to do the job. */ -+ -+ -+#ifdef CRT_BEGIN -+ -+extern void __w32_sharedptr_initialize(void); -+ -+/* Stick a label at the beginning of the frame unwind info so we can -+ register/deregister it with the exception handling library code. */ -+#if defined (USE_EH_FRAME_REGISTRY) \ -+ && !__USING_SJLJ_EXCEPTIONS__ -+char __EH_FRAME_BEGIN__[] -+ __attribute__((section(EH_FRAME_SECTION_NAME), aligned(4))) -+ = { }; -+ -+static struct object obj; -+ -+/* These will pull in references from libgcc.a(unwind-dw2-fde.o) */ -+ -+void __do_frame_init (void); -+void __do_frame_fini (void); -+ -+void -+__do_frame_init (void) -+{ -+ __w32_sharedptr_initialize(); -+ __register_frame_info (__EH_FRAME_BEGIN__, &obj); -+} -+ -+void -+__do_frame_fini (void) -+{ -+ __deregister_frame_info (__EH_FRAME_BEGIN__); -+} -+#else /* USE_EH_FRAME_REGISTRY && !__USING_SJLJ__EXCEPTIONS__ */ -+void __do_sjlj_init (void); -+ -+void -+__do_sjlj_init (void) -+{ -+ __w32_sharedptr_initialize(); -+} -+#endif -+ -+ -+#elif defined CRT_END -+ -+/* Terminate the frame unwind info section with a 0 as a sentinel; -+ this would be the 'length' field in a real FDE. */ -+#if defined (USE_EH_FRAME_REGISTRY) \ -+ && !__USING_SJLJ_EXCEPTIONS__ -+static int __EH_FRAME_END__[] -+ __attribute__ ((unused, mode(SI), section(EH_FRAME_SECTION_NAME), -+ aligned(4))) -+ = { 0 }; -+static void __reg_frame_ctor (void) __attribute__ ((constructor)); -+static void __dereg_frame_dtor (void) __attribute__ ((destructor)); -+extern void __do_frame_init (void); -+extern void __do_frame_fini (void); -+ -+ -+/* Register the eh_frame. This has to be the first ctor to -+ be invoked so we put it in last. Since we're last, we can't -+ reference __register_frame_info in libgcc.a directly (if eh_frame -+ code has been referenced than it will have been pulled in but -+ we can't count on it) so we call a thunk in crtbegin.o. */ -+ -+static void -+__reg_frame_ctor (void) -+{ -+ __do_frame_init (); -+} -+ -+/* Deregister the eh_frame. This has to be the last dtor. The -+ call to __register_frame_info in crtbegin.o will have pulled in -+ libgcc.a(unwind-dw2-fde.o) if libgcc.a is static lib but not if -+ dll, so we use a thunk again to be sure. */ -+ -+static void -+__dereg_frame_dtor (void) -+{ -+ __do_frame_fini (); -+} -+#else -+static void __sjlj_init_ctor (void) __attribute__ ((constructor)); -+void __do_sjlj_init (void); -+static void -+__sjlj_init_ctor (void) -+{ -+ __do_sjlj_init (); -+} -+ -+#endif /* USE_EH_FRAME_REGISTRY && !__USING_SJLJ__EXCEPTIONS__ */ -+ -+#else /* ! CRT_BEGIN && ! CRT_END */ -+#error "One of CRT_BEGIN or CRT_END must be defined." -+#endif -+ -+#endif /* __MINGW32__ || __CYGWIN__ */ -diff -Nbaur gcc-3.4.4/gcc/doc/extend.texi gcc-3.4.4-new/gcc/doc/extend.texi ---- gcc-3.4.4/gcc/doc/extend.texi Sat Feb 26 22:17:26 2005 -+++ gcc-3.4.4-new/gcc/doc/extend.texi Wed Jul 6 01:50:37 2005 -@@ -3385,7 +3385,7 @@ - @item dllimport - The @code{dllimport} attribute is described in @xref{Function Attributes}. - --@item dlexport -+@item dllexport - The @code{dllexport} attribute is described in @xref{Function Attributes}. - - @end table -diff -Nbaur gcc-3.4.4/gcc/doc/hostconfig.texi gcc-3.4.4-new/gcc/doc/hostconfig.texi ---- gcc-3.4.4/gcc/doc/hostconfig.texi Wed Jul 30 00:36:47 2003 -+++ gcc-3.4.4-new/gcc/doc/hostconfig.texi Wed Jul 6 01:50:37 2005 -@@ -196,7 +196,15 @@ - Define this macro if the host system has a small limit on the total - size of an argument vector. This causes the driver to take more care - not to pass unnecessary arguments to subprocesses. -+ -+@item HOST_LL_PREFIX -+Define this macro to be a C string representing the printf format prefix -+to specify output of long long types on your host machine. Hosts using -+the MS C runtime libs use the non-standard @samp{I64} prefix. If you do -+not define this macro, GCC will use the standard @samp{ll} prefix to -+format the printing of long long types. - @end ftable -+ - - In addition, if @command{configure} generates an incorrect definition of - any of the macros in @file{auto-host.h}, you can override that -diff -Nbaur gcc-3.4.4/gcc/doc/invoke.texi gcc-3.4.4-new/gcc/doc/invoke.texi ---- gcc-3.4.4/gcc/doc/invoke.texi Fri Apr 22 07:49:59 2005 -+++ gcc-3.4.4-new/gcc/doc/invoke.texi Wed Jul 6 01:50:37 2005 -@@ -497,7 +497,7 @@ - -m96bit-long-double -mregparm=@var{num} -momit-leaf-frame-pointer @gol - -mno-red-zone -mno-tls-direct-seg-refs @gol - -mcmodel=@var{code-model} @gol ---m32 -m64} -+-m32 -m64 -mstack-arg-probe} - - @emph{HPPA Options} - @gccoptlist{-march=@var{architecture-type} @gol -@@ -5994,9 +5994,10 @@ - saves one instruction in the caller since there is no need to pop - the arguments there. - --This calling convention is incompatible with the one normally --used on Unix, so you cannot use it if you need to call libraries --compiled with the Unix compiler. -+@strong{Warning:} this calling convention is incompatible with the -+one normally used on Unix or with GCC, so you cannot use it if you -+need to call libraries compiled with the Unix compiler or with GCC -+without the switch. - - Also, you must provide function prototypes for all functions that - take variable numbers of arguments (including @code{printf}); -@@ -8560,6 +8561,16 @@ - Generate code for the large model: This model makes no assumptions - about addresses and sizes of sections. Currently GCC does not implement - this model. -+ -+@item -mstack-arg-probe -+@opindex mstack-arg-probe -+Emit code in function prologue to probe the stack when allocating more -+than CHECK_STACK_LIMIT bytes in one go. -+ -+Currently, this is the default on windows systems (cygwin and mingw32), -+which define CHECK_STACK_LIMIT as 4000. On these systems, touching the -+stack at 4K increments is necessary to ensure that the guard pages used -+by the OS virtual memory manger are allocated in correct sequence. - @end table - - @node HPPA Options -diff -Nbaur gcc-3.4.4/gcc/gcc.c gcc-3.4.4-new/gcc/gcc.c ---- gcc-3.4.4/gcc/gcc.c Sun May 1 11:33:14 2005 -+++ gcc-3.4.4-new/gcc/gcc.c Wed Jul 6 01:50:37 2005 -@@ -88,7 +88,7 @@ - #ifdef HAVE_SYS_RESOURCE_H - #include - #endif --#if defined (HAVE_DECL_GETRUSAGE) && !HAVE_DECL_GETRUSAGE -+#if defined (HAVE_GETRUSAGE) && defined (HAVE_DECL_GETRUSAGE) && !HAVE_DECL_GETRUSAGE - extern int getrusage (int, struct rusage *); - #endif - -@@ -3174,7 +3174,7 @@ - (argc + 1) * sizeof (argv[0])); - new_argv[0] = new_argv0; - -- execvp (new_argv0, new_argv); -+ execvp (new_argv0, (const char *const *)new_argv); - fatal ("couldn't run `%s': %s", new_argv0, xstrerror (errno)); - } - -@@ -4110,29 +4110,31 @@ - if (switches[i].live_cond == SWITCH_IGNORE) - continue; - -- obstack_grow (&collect_obstack, "'-", 2); -+ obstack_grow (&collect_obstack, HOST_QUOTE_STR "-", 2); - q = switches[i].part1; -- while ((p = strchr (q, '\''))) -+ while ((p = strchr (q, HOST_QUOTE_CHAR))) - { - obstack_grow (&collect_obstack, q, p - q); -- obstack_grow (&collect_obstack, "'\\''", 4); -+ obstack_grow (&collect_obstack, HOST_QUOTED_QUOTE_STR, -+ strlen (HOST_QUOTED_QUOTE_STR)); - q = ++p; - } - obstack_grow (&collect_obstack, q, strlen (q)); -- obstack_grow (&collect_obstack, "'", 1); -+ obstack_grow (&collect_obstack, HOST_QUOTE_STR, 1); - - for (args = switches[i].args; args && *args; args++) - { -- obstack_grow (&collect_obstack, " '", 2); -+ obstack_grow (&collect_obstack, " " HOST_QUOTE_STR, 2); - q = *args; -- while ((p = strchr (q, '\''))) -+ while ((p = strchr (q, HOST_QUOTE_CHAR))) - { - obstack_grow (&collect_obstack, q, p - q); -- obstack_grow (&collect_obstack, "'\\''", 4); -+ obstack_grow (&collect_obstack, HOST_QUOTED_QUOTE_STR, -+ strlen (HOST_QUOTED_QUOTE_STR)); - q = ++p; - } - obstack_grow (&collect_obstack, q, strlen (q)); -- obstack_grow (&collect_obstack, "'", 1); -+ obstack_grow (&collect_obstack, HOST_QUOTE_STR, 1); - } - } - obstack_grow (&collect_obstack, "\0", 1); -@@ -4155,7 +4157,9 @@ - static int suffixed_basename_length; - static const char *input_basename; - static const char *input_suffix; -+#ifndef HOST_FILE_ID_CMP - static struct stat input_stat; -+#endif - static int input_stat_set; - - /* The compiler used to process the current input file. */ -@@ -4706,6 +4710,9 @@ - *((char *) temp_filename + temp_filename_length) = '\0'; - if (strcmp (temp_filename, input_filename) != 0) - { -+#if defined HOST_FILE_ID_CMP -+ if (HOST_FILE_ID_CMP(input_filename, temp_filename) != 0) -+#else - struct stat st_temp; - - /* Note, set_input() resets input_stat_set to 0. */ -@@ -4725,6 +4732,7 @@ - || stat (temp_filename, &st_temp) < 0 - || input_stat.st_dev != st_temp.st_dev - || input_stat.st_ino != st_temp.st_ino) -+#endif - { - temp_filename = save_string (temp_filename, - temp_filename_length + 1); -diff -Nbaur gcc-3.4.4/gcc/ggc.h gcc-3.4.4-new/gcc/ggc.h ---- gcc-3.4.4/gcc/ggc.h Sun Dec 21 14:08:33 2003 -+++ gcc-3.4.4-new/gcc/ggc.h Wed Jul 6 01:50:37 2005 -@@ -287,4 +287,8 @@ - extern int ggc_min_heapsize_heuristic (void); - extern void init_ggc_heuristics (void); - -+#if defined(_WIN32) && ! defined(__CYGWIN__) && ! defined (_UWIN) -+#define getpagesize() 4096 -+#endif -+ - #endif -diff -Nbaur gcc-3.4.4/gcc/ginclude/stdarg.h gcc-3.4.4-new/gcc/ginclude/stdarg.h ---- gcc-3.4.4/gcc/ginclude/stdarg.h Thu Mar 13 02:58:40 2003 -+++ gcc-3.4.4-new/gcc/ginclude/stdarg.h Wed Jul 6 01:50:37 2005 -@@ -30,6 +30,7 @@ - - #ifndef _STDARG_H - #ifndef _ANSI_STDARG_H_ -+#ifndef RC_INVOKED - #ifndef __need___va_list - #define _STDARG_H - #define _ANSI_STDARG_H_ -@@ -129,5 +130,6 @@ - - #endif /* _STDARG_H */ - -+#endif /* not RC_INVOKED */ - #endif /* not _ANSI_STDARG_H_ */ - #endif /* not _STDARG_H */ -diff -Nbaur gcc-3.4.4/gcc/hwint.h gcc-3.4.4-new/gcc/hwint.h ---- gcc-3.4.4/gcc/hwint.h Wed Jun 25 20:33:08 2003 -+++ gcc-3.4.4-new/gcc/hwint.h Wed Jul 6 01:50:38 2005 -@@ -15,6 +15,12 @@ - #define HOST_BITS_PER_INT (CHAR_BIT * SIZEOF_INT) - #define HOST_BITS_PER_LONG (CHAR_BIT * SIZEOF_LONG) - -+/* On some hosts, runtime printf does not use standard long long prefix. -+ This default can be overriden in host config file. */ -+#ifndef HOST_LL_PREFIX -+# define HOST_LL_PREFIX "ll" -+#endif -+ - /* If HAVE_LONG_LONG and SIZEOF_LONG_LONG aren't defined, but - GCC_VERSION >= 3000, assume this is the second or later stage of a - bootstrap, we do have long long, and it's 64 bits. (This is -@@ -74,10 +80,10 @@ - # define HOST_WIDE_INT_PRINT_DOUBLE_HEX "0x%lx%08lx" - # endif - #else --# define HOST_WIDE_INT_PRINT "ll" -+# define HOST_WIDE_INT_PRINT HOST_LL_PREFIX - # define HOST_WIDE_INT_PRINT_C "LL" - /* We can assume that 'long long' is at least 64 bits. */ --# define HOST_WIDE_INT_PRINT_DOUBLE_HEX "0x%llx%016llx" -+# define HOST_WIDE_INT_PRINT_DOUBLE_HEX "0x%" HOST_LL_PREFIX "x%016" HOST_LL_PREFIX "x" - #endif /* HOST_BITS_PER_WIDE_INT == HOST_BITS_PER_LONG */ - - #define HOST_WIDE_INT_PRINT_DEC "%" HOST_WIDE_INT_PRINT "d" -@@ -109,11 +115,11 @@ - #error "This line should be impossible to reach" - # endif - # endif --# define HOST_WIDEST_INT_PRINT_DEC "%lld" --# define HOST_WIDEST_INT_PRINT_DEC_C "%lldLL" --# define HOST_WIDEST_INT_PRINT_UNSIGNED "%llu" --# define HOST_WIDEST_INT_PRINT_HEX "0x%llx" --# define HOST_WIDEST_INT_PRINT_DOUBLE_HEX "0x%llx%016llx" -+# define HOST_WIDEST_INT_PRINT_DEC "%" HOST_LL_PREFIX "d" -+# define HOST_WIDEST_INT_PRINT_DEC_C "%" HOST_LL_PREFIX "dLL" -+# define HOST_WIDEST_INT_PRINT_UNSIGNED "%" HOST_LL_PREFIX "u" -+# define HOST_WIDEST_INT_PRINT_HEX "0x%" HOST_LL_PREFIX "x" -+# define HOST_WIDEST_INT_PRINT_DOUBLE_HEX "0x%" HOST_LL_PREFIX "x%016" HOST_LL_PREFIX "x" - #endif - - #endif /* ! GCC_HWINT_H */ -diff -Nbaur gcc-3.4.4/gcc/libgcc2.c gcc-3.4.4-new/gcc/libgcc2.c ---- gcc-3.4.4/gcc/libgcc2.c Wed Dec 15 12:34:24 2004 -+++ gcc-3.4.4-new/gcc/libgcc2.c Wed Jul 6 01:50:38 2005 -@@ -1573,7 +1573,7 @@ - - /* Jump to a trampoline, loading the static chain address. */ - --#if defined(WINNT) && ! defined(__CYGWIN__) && ! defined (_UWIN) -+#if defined(_WIN32) && ! defined(__CYGWIN__) && ! defined (_UWIN) - - long - getpagesize (void) -diff -Nbaur gcc-3.4.4/gcc/mklibgcc.in gcc-3.4.4-new/gcc/mklibgcc.in ---- gcc-3.4.4/gcc/mklibgcc.in Thu Feb 24 09:26:57 2005 -+++ gcc-3.4.4-new/gcc/mklibgcc.in Wed Jul 6 01:50:38 2005 -@@ -46,6 +46,7 @@ - echo 'srcdir = @srcdir@' - echo 'VPATH = @srcdir@' - echo 'EQ = =' -+echo 'INCLUDES += -I@srcdir@' - echo - echo 'force:' - echo -diff -Nbaur gcc-3.4.4/gcc/mklibgcc.in.patch gcc-3.4.4-new/gcc/mklibgcc.in.patch ---- gcc-3.4.4/gcc/mklibgcc.in.patch Thu Jan 1 00:00:00 1970 -+++ gcc-3.4.4-new/gcc/mklibgcc.in.patch Wed Jul 6 01:50:38 2005 -@@ -0,0 +1,10 @@ -+--- mklibgcc.in.orig Sat May 15 18:33:35 2004 -++++ mklibgcc.in Tue May 11 12:54:15 2004 -+@@ -39,6 +39,7 @@ -+ echo 'srcdir = @srcdir@' -+ echo 'VPATH = @srcdir@' -+ echo 'EQ = =' -++echo 'INCLUDES += -I@srcdir@' -+ echo -+ echo 'force:' -+ echo -diff -Nbaur gcc-3.4.4/gcc/stor-layout.c gcc-3.4.4-new/gcc/stor-layout.c ---- gcc-3.4.4/gcc/stor-layout.c Sat May 29 00:16:00 2004 -+++ gcc-3.4.4-new/gcc/stor-layout.c Wed Jul 6 01:50:38 2005 -@@ -1,6 +1,6 @@ - /* C-compiler utilities for types and variables storage layout - Copyright (C) 1987, 1988, 1992, 1993, 1994, 1995, 1996, 1996, 1998, -- 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. -+ 1999, 2000, 2001, 2002, 2003. 2004 Free Software Foundation, Inc. - - This file is part of GCC. - -diff -Nbaur gcc-3.4.4/gcc/system.h gcc-3.4.4-new/gcc/system.h ---- gcc-3.4.4/gcc/system.h Mon Mar 15 23:22:47 2004 -+++ gcc-3.4.4-new/gcc/system.h Wed Jul 6 01:50:38 2005 -@@ -486,6 +486,19 @@ - #define HOST_BIT_BUCKET "/dev/null" - #endif - -+/* Defaults for building quoted strings for COLLECT_GCC_OPTIONS -+ environment variable. These work for POSIX-like hosts. */ -+ -+#ifndef HOST_QUOTE_STR -+#define HOST_QUOTE_STR "\'" -+#endif -+#ifndef HOST_QUOTE_CHAR -+#define HOST_QUOTE_CHAR '\'' -+#endif -+#ifndef HOST_QUOTED_QUOTE_STR -+#define HOST_QUOTED_QUOTE_STR "'\\''" -+#endif -+ - /* Be conservative and only use enum bitfields with GCC. - FIXME: provide a complete autoconf test for buggy enum bitfields. */ - -diff -Nbaur gcc-3.4.4/gcc/tlink.c gcc-3.4.4-new/gcc/tlink.c ---- gcc-3.4.4/gcc/tlink.c Sat Jul 19 15:47:14 2003 -+++ gcc-3.4.4-new/gcc/tlink.c Wed Jul 6 01:50:38 2005 -@@ -463,11 +463,20 @@ - } - fclose (stream); - fclose (output); -- rename (outname, f->key); -+ /* On Windows "rename" returns -1 and sets ERRNO to EACCESS if -+ the new file name already exists. Therefore, we explicitly -+ remove the old file first. */ -+ if (remove (f->key) == -1) -+ fatal_perror ("removing .rpo file"); -+ if (rename (outname, f->key) == -1) -+ fatal_perror ("renaming .rpo file"); - - obstack_grow (&temporary_obstack, "cd ", 3); - obstack_grow (&temporary_obstack, f->dir, strlen (f->dir)); -- obstack_grow (&temporary_obstack, "; ", 2); -+ /* Using ";" as a separator between commands does not work with -+ the Windows command shell. Therefore, we use "&&" which -+ should work everywhere. */ -+ obstack_grow (&temporary_obstack, " && ", 4); - obstack_grow (&temporary_obstack, c_file_name, strlen (c_file_name)); - obstack_1grow (&temporary_obstack, ' '); - obstack_grow (&temporary_obstack, f->args, strlen (f->args)); -diff -Nbaur gcc-3.4.4/gcc/unwind-dw2-fde.c gcc-3.4.4-new/gcc/unwind-dw2-fde.c ---- gcc-3.4.4/gcc/unwind-dw2-fde.c Fri Oct 31 20:46:26 2003 -+++ gcc-3.4.4-new/gcc/unwind-dw2-fde.c Wed Jul 6 01:50:38 2005 -@@ -41,18 +41,32 @@ - #include "gthr.h" - #endif - -+#if defined (__MINGW32__ ) || defined (__CYGWIN__) -+#include "config/i386/w32-shared-ptr.h" -+#endif -+ - /* The unseen_objects list contains objects that have been registered - but not yet categorized in any way. The seen_objects list has had - it's pc_begin and count fields initialized at minimum, and is sorted - by decreasing value of pc_begin. */ -+ -+#if ! (defined (__MINGW32__ ) || defined (__CYGWIN__)) - static struct object *unseen_objects; - static struct object *seen_objects; -+#else -+#define unseen_objects (*(struct object**)(&__w32_sharedptr->dw2_unseen_objects)) -+#define seen_objects (*(struct object**)(&__w32_sharedptr->dw2_seen_objects)) -+#endif - -+#if !(defined (__MINGW32__ ) || defined (__CYGWIN__)) - #ifdef __GTHREAD_MUTEX_INIT - static __gthread_mutex_t object_mutex = __GTHREAD_MUTEX_INIT; - #else - static __gthread_mutex_t object_mutex; - #endif -+#else -+#define object_mutex (__w32_sharedptr->dw2_object_mutex) -+#endif - - #ifdef __GTHREAD_MUTEX_INIT_FUNCTION - static void -@@ -64,8 +78,15 @@ - static void - init_object_mutex_once (void) - { -+#if !(defined (__MINGW32__ ) || defined (__CYGWIN__)) - static __gthread_once_t once = __GTHREAD_ONCE_INIT; -+#else -+#define once (__w32_sharedptr->dw2_once) -+#endif - __gthread_once (&once, init_object_mutex); -+#if (defined (__MINGW32__ ) || defined (__CYGWIN__)) -+#undef once -+#endif - } - #else - #define init_object_mutex_once() -@@ -429,9 +450,13 @@ - fde_split (struct object *ob, fde_compare_t fde_compare, - struct fde_vector *linear, struct fde_vector *erratic) - { -- static const fde *marker; -- size_t count = linear->count; -+#if !(defined (__MINGW32__ ) || defined (__CYGWIN__)) -+ static fde *marker; -+#else -+#define marker (*(const fde **)&__w32_sharedptr->dw2_marker) -+#endif - const fde **chain_end = ▮ -+ size_t count = linear->count; - size_t i, j, k; - - /* This should optimize out, but it is wise to make sure this assumption -@@ -465,6 +490,9 @@ - erratic->array[k++] = linear->array[i]; - linear->count = j; - erratic->count = k; -+#if (defined (__MINGW32__ ) || defined (__CYGWIN__)) -+#undef marker -+#endif - } - - #define SWAP(x,y) do { const fde * tmp = x; x = y; y = tmp; } while (0) -diff -Nbaur gcc-3.4.4/gcc/unwind-sjlj.c gcc-3.4.4-new/gcc/unwind-sjlj.c ---- gcc-3.4.4/gcc/unwind-sjlj.c Sun Nov 2 00:00:08 2003 -+++ gcc-3.4.4-new/gcc/unwind-sjlj.c Wed Jul 6 01:50:38 2005 -@@ -35,6 +35,10 @@ - #include "unwind.h" - #include "gthr.h" - -+#if defined (__MINGW32__ ) || defined (__CYGWIN__) -+#include "config/i386/w32-shared-ptr.h" -+#endif -+ - #ifdef __USING_SJLJ_EXCEPTIONS__ - - #ifdef DONT_USE_BUILTIN_SETJMP -@@ -95,12 +99,21 @@ - - /* Manage the chain of registered function contexts. */ - -+#if !(defined (__MINGW32__ ) || defined (__CYGWIN__)) - /* Single threaded fallback chain. */ - static struct SjLj_Function_Context *fc_static; -+#else -+#define fc_static (*(struct SjLj_Function_Context**)&__w32_sharedptr->sjlj_fc_static) -+#endif - - #if __GTHREADS -+#if !(defined (__MINGW32__ ) || defined (__CYGWIN__)) - static __gthread_key_t fc_key; - static int use_fc_key = -1; -+#else -+#define fc_key (__w32_sharedptr->sjlj_fc_key) -+#define use_fc_key (__w32_sharedptr->sjlj_use_fc_key) -+#endif - - static void - fc_key_init (void) -@@ -111,15 +124,26 @@ - static void - fc_key_init_once (void) - { -+#if !(defined (__MINGW32__ ) || defined (__CYGWIN__)) - static __gthread_once_t once = __GTHREAD_ONCE_INIT; -+#else -+#define once (__w32_sharedptr->sjlj_once) -+#endif - if (__gthread_once (&once, fc_key_init) != 0 || use_fc_key < 0) - use_fc_key = 0; -+#if defined (__MINGW32__ ) || defined (__CYGWIN__) -+#undef once -+#endif - } - #endif - - void - _Unwind_SjLj_Register (struct SjLj_Function_Context *fc) - { -+#if defined (__MINGW32__ ) || defined (__CYGWIN__) -+ W32_SHAREDPTR_INITIALIZE (); -+#endif -+ - #if __GTHREADS - if (use_fc_key < 0) - fc_key_init_once (); -@@ -140,6 +164,10 @@ - static inline struct SjLj_Function_Context * - _Unwind_SjLj_GetContext (void) - { -+#if defined (__MINGW32__ ) || defined (__CYGWIN__) -+ W32_SHAREDPTR_INITIALIZE (); -+#endif -+ - #if __GTHREADS - if (use_fc_key < 0) - fc_key_init_once (); -@@ -153,6 +181,10 @@ - static inline void - _Unwind_SjLj_SetContext (struct SjLj_Function_Context *fc) - { -+#if defined (__MINGW32__ ) || defined (__CYGWIN__) -+ W32_SHAREDPTR_INITIALIZE (); -+#endif -+ - #if __GTHREADS - if (use_fc_key < 0) - fc_key_init_once (); -diff -Nbaur gcc-3.4.4/gcc/varasm.c gcc-3.4.4-new/gcc/varasm.c ---- gcc-3.4.4/gcc/varasm.c Wed Mar 2 20:57:48 2005 -+++ gcc-3.4.4-new/gcc/varasm.c Wed Jul 6 01:50:38 2005 -@@ -4975,6 +4975,7 @@ - default_elf_select_section_1 (tree decl, int reloc, - unsigned HOST_WIDE_INT align, int shlib) - { -+ const char *sname; - switch (categorize_decl_for_section (decl, reloc, shlib)) - { - case SECCAT_TEXT: -@@ -4982,56 +4983,61 @@ - abort (); - case SECCAT_RODATA: - readonly_data_section (); -- break; -+ return; - case SECCAT_RODATA_MERGE_STR: - mergeable_string_section (decl, align, 0); -- break; -+ return; - case SECCAT_RODATA_MERGE_STR_INIT: - mergeable_string_section (DECL_INITIAL (decl), align, 0); -- break; -+ return; - case SECCAT_RODATA_MERGE_CONST: - mergeable_constant_section (DECL_MODE (decl), align, 0); -- break; -+ return; - case SECCAT_SRODATA: -- named_section (NULL_TREE, ".sdata2", reloc); -+ sname = ".sdata2"; - break; - case SECCAT_DATA: - data_section (); -- break; -+ return; - case SECCAT_DATA_REL: -- named_section (NULL_TREE, ".data.rel", reloc); -+ sname = ".data.rel"; - break; - case SECCAT_DATA_REL_LOCAL: -- named_section (NULL_TREE, ".data.rel.local", reloc); -+ sname = ".data.rel.local"; - break; - case SECCAT_DATA_REL_RO: -- named_section (NULL_TREE, ".data.rel.ro", reloc); -+ sname = ".data.rel.ro"; - break; - case SECCAT_DATA_REL_RO_LOCAL: -- named_section (NULL_TREE, ".data.rel.ro.local", reloc); -+ sname = ".data.rel.ro.local"; - break; - case SECCAT_SDATA: -- named_section (NULL_TREE, ".sdata", reloc); -+ sname = ".sdata"; - break; - case SECCAT_TDATA: -- named_section (NULL_TREE, ".tdata", reloc); -+ sname = ".tdata"; - break; - case SECCAT_BSS: - #ifdef BSS_SECTION_ASM_OP - bss_section (); -+ return; - #else -- named_section (NULL_TREE, ".bss", reloc); --#endif -+ sname = ".bss"; - break; -+#endif - case SECCAT_SBSS: -- named_section (NULL_TREE, ".sbss", reloc); -+ sname = ".sbss"; - break; - case SECCAT_TBSS: -- named_section (NULL_TREE, ".tbss", reloc); -+ sname = ".tbss"; - break; - default: - abort (); - } -+ -+ if (!DECL_P (decl)) -+ decl = NULL_TREE; -+ named_section (decl, sname, reloc); - } - - /* Construct a unique section name based on the decl name and the -diff -Nbaur gcc-3.4.4/gcc/version.c gcc-3.4.4-new/gcc/version.c ---- gcc-3.4.4/gcc/version.c Thu May 19 08:51:53 2005 -+++ gcc-3.4.4-new/gcc/version.c Wed Jul 6 01:50:38 2005 -@@ -14,4 +14,4 @@ - forward us bugs reported to you, if you determine that they are - not bugs in your modifications.) */ - --const char bug_report_url[] = ""; -+const char bug_report_url[] = ""; -diff -Nbaur gcc-3.4.4/include/libiberty.h gcc-3.4.4-new/include/libiberty.h ---- gcc-3.4.4/include/libiberty.h Thu May 15 20:02:12 2003 -+++ gcc-3.4.4-new/include/libiberty.h Wed Jul 6 01:50:38 2005 -@@ -1,6 +1,6 @@ - /* Function declarations for libiberty. - -- Copyright 2001, 2002 Free Software Foundation, Inc. -+ Copyright 2001, 2002, 2004 Free Software Foundation, Inc. - - Note - certain prototypes declared in this header file are for - functions whoes implementation copyright does not belong to the -@@ -41,6 +41,8 @@ - - #include "ansidecl.h" - -+#include -+ - #ifdef ANSI_PROTOTYPES - /* Get a definition for size_t. */ - #include -@@ -74,7 +76,7 @@ - to find the declaration so provide a fully prototyped one. If it - is 1, we found it so don't provide any declaration at all. */ - #if !HAVE_DECL_BASENAME --#if defined (__GNU_LIBRARY__ ) || defined (__linux__) || defined (__FreeBSD__) || defined (__OpenBSD__) || defined(__NetBSD__) || defined (__CYGWIN__) || defined (__CYGWIN32__) || defined (HAVE_DECL_BASENAME) -+#if defined (__GNU_LIBRARY__ ) || defined (__linux__) || defined (__FreeBSD__) || defined (__OpenBSD__) || defined(__NetBSD__) || defined (__CYGWIN__) || defined (__CYGWIN32__) || defined (__sun__) || defined (HAVE_DECL_BASENAME) - extern char *basename PARAMS ((const char *)); - #else - extern char *basename (); -@@ -274,7 +276,7 @@ - extern int pexecute PARAMS ((const char *, char * const *, const char *, - const char *, char **, char **, int)); - --/* Wait for pexecute to finish. */ -+/* Wait for a process created by pexecute. */ - - extern int pwait PARAMS ((int, int *, int)); - -diff -Nbaur gcc-3.4.4/include/pex-read.h gcc-3.4.4-new/include/pex-read.h ---- gcc-3.4.4/include/pex-read.h Thu Jan 1 00:00:00 1970 -+++ gcc-3.4.4-new/include/pex-read.h Wed Jul 6 01:50:38 2005 -@@ -0,0 +1,41 @@ -+/* Declarations of the pex-read functions for libiberty. -+ Copyright 2004 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, 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., 59 Temple Place - Suite 330, -+ Boston, MA 02111-1307, USA. */ -+ -+#ifndef PEX_READ_H -+#define PEX_READ_H -+ -+#include -+ -+#ifdef __cplusplus -+extern "C" { -+#endif -+ -+/* Execute a program and read its standard output. */ -+ -+extern FILE *pex_read (const char *, char * const *, const char *, -+ const char *, char **, char **, int, int *); -+ -+/* Wait for pex_read to finish. */ -+ -+extern int pex_read_close (int, FILE *, int *, int); -+ -+#ifdef __cplusplus -+} -+#endif -+ -+#endif /* PEX_READ_H */ -diff -Nbaur gcc-3.4.4/libiberty/ChangeLog gcc-3.4.4-new/libiberty/ChangeLog ---- gcc-3.4.4/libiberty/ChangeLog Thu May 19 08:50:22 2005 -+++ gcc-3.4.4-new/libiberty/ChangeLog Wed Jul 6 01:50:38 2005 -@@ -23,11 +23,33 @@ - - * GCC 3.4.0 released. - --2004-02-25 Ian Lance Taylor -+2004-03-17 Ian Lance Taylor - -- Taken from mainline: -+ * pex-unix.c (pexecute): Use vfork instead of fork, with -+ appropriate changes to make this safe. -+ * pex-common.h (STDERR_FILE_NO): Define. - -- 2004-02-24 Ian Lance Taylor -+ * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for -+ an 80 column screen. Run maint-deps. -+ -+2004-03-09 Kelley Cook -+ -+ * configure.ac: Bump version to 2.59. Apply suggested autoupdates. -+ * acconfig.h: Delete redundant file. -+ * config.in: Regenerate. -+ * configure: Regenerate. -+ -+2004-03-09 Hans-Peter Nilsson -+ -+ * configure: Regenerate for config/accross.m4 correction. -+ -+2004-03-07 Andreas Jaeger -+ -+ * testsuite/test-demangle.c: Include and for -+ prototypes. -+ (main): Initialize style. -+ -+2004-02-24 Ian Lance Taylor - - * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED, - D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG, -@@ -60,7 +82,7 @@ - past ones which have been printed already. - * testsuite/demangle-expected: Add three test cases. - -- 2004-02-23 Ian Lance Taylor -+2004-02-23 Ian Lance Taylor - - * cp-demangle.c (__cxa_demangle): Adjust last patch to handle - empty string correctly. -@@ -70,6 +92,29 @@ - built-in type name. - (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather - than cplus_demangle_v3. -+ -+ * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and -+ the associated #define of RETURN_ON_ALLOCATION_FAILURE. -+ -+2004-02-16 Matt Kraai -+ -+ * regex.c: Include . -+ (regcomp): Cast i to int. -+ (regerror): Add ATTRIBUTE_UNUSED to parameter preg. -+ -+2004-01-25 Ian Lance Taylor -+ -+ * configure.ac: Add m4_pattern_allow(LIBOBJS). -+ * configure: Regenerate. -+ -+2004-01-22 DJ Delorie -+ -+ * Makefile.in: Convert to ./ throughout. Rebuild dependencies -+ with explicit build rules. -+ (VPATH): Remove. -+ (.c.o): Poison. -+ * configure.ac (pexecute, LIBOBJS): Add ./ . -+ * maint-tool: Build dependencies with explicit rules. - - 2004-01-15 Kazu Hirata - -diff -Nbaur gcc-3.4.4/libiberty/Makefile.in gcc-3.4.4-new/libiberty/Makefile.in ---- gcc-3.4.4/libiberty/Makefile.in Wed Jan 14 21:27:28 2004 -+++ gcc-3.4.4-new/libiberty/Makefile.in Wed Jul 6 01:50:38 2005 -@@ -28,7 +28,6 @@ - - libiberty_topdir = @libiberty_topdir@ - srcdir = @srcdir@ --VPATH = @srcdir@ - - prefix = @prefix@ - -@@ -70,8 +69,8 @@ - - MAKEOVERRIDES = - --TARGETLIB = libiberty.a --TESTLIB = testlib.a -+TARGETLIB = ./libiberty.a -+TESTLIB = ./testlib.a - - LIBOBJS = @LIBOBJS@ - -@@ -118,15 +117,15 @@ - INCDIR=$(srcdir)/$(MULTISRCTOP)../include - - COMPILE.c = $(CC) -c @DEFS@ $(LIBCFLAGS) -I. -I$(INCDIR) $(HDEFINES) @ac_libiberty_warn_cflags@ -+ -+# Just to make sure we don't use a built-in rule with VPATH - .c.o: -- if [ x"$(PICFLAG)" != x ]; then \ -- $(COMPILE.c) $(PICFLAG) $< -o pic/$@; \ -- else true; fi -- $(COMPILE.c) $< $(OUTPUT_OPTION) -+ false - - # NOTE: If you add new files to the library, add them to this list - # (alphabetical), and add them to REQUIRED_OFILES, or --# CONFIGURED_OFILES and funcs in configure.ac. -+# CONFIGURED_OFILES and funcs in configure.ac. Also run "make maint-deps" -+# to build the new rules. - CFILES = alloca.c argv.c asprintf.c atexit.c \ - basename.c bcmp.c bcopy.c bsearch.c bzero.c \ - calloc.c choose-temp.c clock.c concat.c cp-demangle.c \ -@@ -145,6 +144,7 @@ - partition.c \ - pex-djgpp.c pex-mpw.c pex-msdos.c pex-os2.c \ - pex-unix.c pex-win32.c \ -+ pexrd-unix.c pexrd-generic.c \ - physmem.c putenv.c \ - random.c regex.c rename.c rindex.c \ - safe-ctype.c setenv.c sigsetmask.c snprintf.c sort.c spaces.c \ -@@ -158,45 +158,48 @@ - - # These are always included in the library. The first four are listed - # first and by compile time to optimize parallel builds. --REQUIRED_OFILES = regex.o cplus-dem.o cp-demangle.o cp-demint.o md5.o \ -- alloca.o argv.o \ -- choose-temp.o concat.o \ -- dyn-string.o \ -- fdmatch.o fibheap.o floatformat.o fnmatch.o \ -- getopt.o getopt1.o getpwd.o getruntime.o \ -- hashtab.o hex.o \ -- lbasename.o \ -- lrealpath.o \ -- make-relative-prefix.o \ -- make-temp-file.o \ -- objalloc.o obstack.o \ -- partition.o physmem.o @pexecute@ \ -- safe-ctype.o sort.o spaces.o splay-tree.o strerror.o \ -- strsignal.o \ -- ternary.o \ -- xatexit.o xexit.o xmalloc.o xmemdup.o xstrdup.o xstrerror.o -+REQUIRED_OFILES = ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o \ -+ ./alloca.o ./argv.o \ -+ ./choose-temp.o ./concat.o ./cp-demint.o \ -+ ./dyn-string.o \ -+ ./fdmatch.o ./fibheap.o ./floatformat.o ./fnmatch.o \ -+ ./getopt.o ./getopt1.o ./getpwd.o ./getruntime.o \ -+ ./hashtab.o ./hex.o \ -+ ./lbasename.o ./lrealpath.o \ -+ ./make-relative-prefix.o ./make-temp-file.o \ -+ ./objalloc.o ./obstack.o \ -+ ./partition.o ./physmem.o @pexecute@ \ -+ ./safe-ctype.o ./sort.o ./spaces.o ./splay-tree.o ./strerror.o \ -+ ./strsignal.o \ -+ ./ternary.o \ -+ ./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o ./xstrdup.o \ -+ ./xstrerror.o - - # These are all the objects that configure may add to the library via - # $funcs or EXTRA_OFILES. This list exists here only for "make - # maint-missing" and "make check". --CONFIGURED_OFILES = asprintf.o atexit.o \ -- basename.o bcmp.o bcopy.o bsearch.o bzero.o \ -- calloc.o clock.o copysign.o \ -- _doprnt.o \ -- ffs.o \ -- getcwd.o getpagesize.o \ -- index.o insque.o \ -- memchr.o memcmp.o memcpy.o memmove.o mempcpy.o memset.o mkstemps.o \ -- pex-djgpp.o pex-mpw.o pex-msdos.o pex-os2.o \ -- pex-unix.o pex-win32.o \ -- putenv.o \ -- random.o rename.o rindex.o \ -- setenv.o sigsetmask.o snprintf.o stpcpy.o stpncpy.o strcasecmp.o \ -- strchr.o strdup.o strncasecmp.o strncmp.o strrchr.o strstr.o \ -- strtod.o strtol.o strtoul.o \ -- tmpnam.o \ -- vasprintf.o vfork.o vfprintf.o vprintf.o vsnprintf.o vsprintf.o \ -- waitpid.o -+CONFIGURED_OFILES = ./asprintf.o ./atexit.o \ -+ ./basename.o ./bcmp.o ./bcopy.o ./bsearch.o ./bzero.o \ -+ ./calloc.o ./clock.o ./copysign.o \ -+ ./_doprnt.o \ -+ ./ffs.o \ -+ ./getcwd.o ./getpagesize.o \ -+ ./index.o ./insque.o \ -+ ./memchr.o ./memcmp.o ./memcpy.o ./memmove.o ./mempcpy.o \ -+ ./memset.o ./mkstemps.o \ -+ ./pex-djgpp.o ./pex-mpw.o ./pex-msdos.o ./pex-os2.o \ -+ ./pex-unix.o ./pex-win32.o \ -+ ./pexrd-unix.o ./pexrd-generic.o \ -+ ./putenv.o \ -+ ./random.o ./rename.o ./rindex.o \ -+ ./setenv.o ./sigsetmask.o ./snprintf.o ./stpcpy.o ./stpncpy.o \ -+ ./strcasecmp.o ./strchr.o ./strdup.o ./strncasecmp.o \ -+ ./strncmp.o ./strrchr.o ./strstr.o \ -+ ./strtod.o ./strtol.o ./strtoul.o \ -+ ./tmpnam.o \ -+ ./vasprintf.o ./vfork.o ./vfprintf.o ./vprintf.o ./vsnprintf.o \ -+ ./vsprintf.o \ -+ ./waitpid.o - - # These files are installed if the library has been configured to do so. - INSTALLED_HEADERS = \ -@@ -390,8 +393,8 @@ - # Depending on Makefile makes sure that config.status has been re-run - # if needed. This prevents problems with parallel builds. - config.h: stamp-h ; @true --stamp-h: config.in config.status Makefile -- CONFIG_FILES= CONFIG_HEADERS=config.h:config.in $(SHELL) ./config.status -+stamp-h: $(srcdir)/config.in config.status Makefile -+ CONFIG_FILES= CONFIG_HEADERS=config.h:$(srcdir)/config.in $(SHELL) ./config.status - - config.status: $(srcdir)/configure $(srcdir)/config.table - $(SHELL) ./config.status --recheck -@@ -415,113 +418,658 @@ - # The dependencies in the remainder of this file are automatically - # generated by "make maint-deps". Manual edits will be lost. - --_doprnt.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h --alloca.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --argv.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --asprintf.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --atexit.o: config.h --basename.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ -+./_doprnt.o: $(srcdir)/_doprnt.c config.h $(INCDIR)/ansidecl.h \ - $(INCDIR)/safe-ctype.h --bsearch.o: config.h $(INCDIR)/ansidecl.h --calloc.o: $(INCDIR)/ansidecl.h --choose-temp.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --clock.o: config.h --concat.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --copysign.o: $(INCDIR)/ansidecl.h --cp-demangle.o: config.h $(INCDIR)/ansidecl.h $(srcdir)/cp-demangle.h \ -- $(INCDIR)/demangle.h $(INCDIR)/dyn-string.h $(INCDIR)/getopt.h \ -- $(INCDIR)/libiberty.h --cp-demint.o: config.h $(INCDIR)/ansidecl.h $(srcdir)/cp-demangle.h \ -- $(INCDIR)/demangle.h $(INCDIR)/libiberty.h --cplus-dem.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/demangle.h \ -- $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h --dyn-string.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/dyn-string.h \ -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/_doprnt.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/_doprnt.c $(OUTPUT_OPTION) -+ -+./alloca.o: $(srcdir)/alloca.c config.h $(INCDIR)/ansidecl.h \ - $(INCDIR)/libiberty.h --fdmatch.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --fibheap.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/fibheap.h \ -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/alloca.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/alloca.c $(OUTPUT_OPTION) -+ -+./argv.o: $(srcdir)/argv.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/argv.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/argv.c $(OUTPUT_OPTION) -+ -+./asprintf.o: $(srcdir)/asprintf.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/asprintf.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/asprintf.c $(OUTPUT_OPTION) -+ -+./atexit.o: $(srcdir)/atexit.c config.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/atexit.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/atexit.c $(OUTPUT_OPTION) -+ -+./basename.o: $(srcdir)/basename.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ -+ $(INCDIR)/safe-ctype.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/basename.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/basename.c $(OUTPUT_OPTION) -+ -+./bcmp.o: $(srcdir)/bcmp.c -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/bcmp.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/bcmp.c $(OUTPUT_OPTION) -+ -+./bcopy.o: $(srcdir)/bcopy.c -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/bcopy.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/bcopy.c $(OUTPUT_OPTION) -+ -+./bsearch.o: $(srcdir)/bsearch.c config.h $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/bsearch.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/bsearch.c $(OUTPUT_OPTION) -+ -+./bzero.o: $(srcdir)/bzero.c -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/bzero.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/bzero.c $(OUTPUT_OPTION) -+ -+./calloc.o: $(srcdir)/calloc.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/calloc.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/calloc.c $(OUTPUT_OPTION) -+ -+./choose-temp.o: $(srcdir)/choose-temp.c config.h $(INCDIR)/ansidecl.h \ - $(INCDIR)/libiberty.h --floatformat.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/floatformat.h \ -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/choose-temp.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/choose-temp.c $(OUTPUT_OPTION) -+ -+./clock.o: $(srcdir)/clock.c config.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/clock.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/clock.c $(OUTPUT_OPTION) -+ -+./concat.o: $(srcdir)/concat.c config.h $(INCDIR)/ansidecl.h \ - $(INCDIR)/libiberty.h --fnmatch.o: config.h $(INCDIR)/fnmatch.h $(INCDIR)/safe-ctype.h --getcwd.o: config.h --getopt.o: config.h $(INCDIR)/getopt.h --getopt1.o: config.h $(INCDIR)/getopt.h --getpagesize.o: config.h --getpwd.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --getruntime.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --hashtab.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/hashtab.h \ -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/concat.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/concat.c $(OUTPUT_OPTION) -+ -+./copysign.o: $(srcdir)/copysign.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/copysign.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/copysign.c $(OUTPUT_OPTION) -+ -+./cp-demangle.o: $(srcdir)/cp-demangle.c config.h $(INCDIR)/ansidecl.h \ -+ $(srcdir)/cp-demangle.h $(INCDIR)/demangle.h \ -+ $(INCDIR)/dyn-string.h $(INCDIR)/getopt.h $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/cp-demangle.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/cp-demangle.c $(OUTPUT_OPTION) -+ -+./cp-demint.o: $(srcdir)/cp-demint.c config.h $(INCDIR)/ansidecl.h \ -+ $(srcdir)/cp-demangle.h $(INCDIR)/demangle.h \ - $(INCDIR)/libiberty.h --hex.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/cp-demint.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/cp-demint.c $(OUTPUT_OPTION) -+ -+./cplus-dem.o: $(srcdir)/cplus-dem.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/demangle.h $(INCDIR)/libiberty.h \ - $(INCDIR)/safe-ctype.h --lbasename.o: $(INCDIR)/ansidecl.h $(INCDIR)/filenames.h \ -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/cplus-dem.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/cplus-dem.c $(OUTPUT_OPTION) -+ -+./dyn-string.o: $(srcdir)/dyn-string.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/dyn-string.h $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/dyn-string.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/dyn-string.c $(OUTPUT_OPTION) -+ -+./fdmatch.o: $(srcdir)/fdmatch.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/fdmatch.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/fdmatch.c $(OUTPUT_OPTION) -+ -+./ffs.o: $(srcdir)/ffs.c -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/ffs.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/ffs.c $(OUTPUT_OPTION) -+ -+./fibheap.o: $(srcdir)/fibheap.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/fibheap.h $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/fibheap.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/fibheap.c $(OUTPUT_OPTION) -+ -+./floatformat.o: $(srcdir)/floatformat.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/floatformat.h $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/floatformat.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/floatformat.c $(OUTPUT_OPTION) -+ -+./fnmatch.o: $(srcdir)/fnmatch.c config.h $(INCDIR)/fnmatch.h \ -+ $(INCDIR)/safe-ctype.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/fnmatch.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/fnmatch.c $(OUTPUT_OPTION) -+ -+./getcwd.o: $(srcdir)/getcwd.c config.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/getcwd.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/getcwd.c $(OUTPUT_OPTION) -+ -+./getopt.o: $(srcdir)/getopt.c config.h $(INCDIR)/getopt.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/getopt.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/getopt.c $(OUTPUT_OPTION) -+ -+./getopt1.o: $(srcdir)/getopt1.c config.h $(INCDIR)/getopt.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/getopt1.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/getopt1.c $(OUTPUT_OPTION) -+ -+./getpagesize.o: $(srcdir)/getpagesize.c config.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/getpagesize.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/getpagesize.c $(OUTPUT_OPTION) -+ -+./getpwd.o: $(srcdir)/getpwd.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/getpwd.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/getpwd.c $(OUTPUT_OPTION) -+ -+./getruntime.o: $(srcdir)/getruntime.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/getruntime.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/getruntime.c $(OUTPUT_OPTION) -+ -+./hashtab.o: $(srcdir)/hashtab.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/hashtab.h $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/hashtab.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/hashtab.c $(OUTPUT_OPTION) -+ -+./hex.o: $(srcdir)/hex.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ -+ $(INCDIR)/safe-ctype.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/hex.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/hex.c $(OUTPUT_OPTION) -+ -+./index.o: $(srcdir)/index.c -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/index.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/index.c $(OUTPUT_OPTION) -+ -+./insque.o: $(srcdir)/insque.c -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/insque.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/insque.c $(OUTPUT_OPTION) -+ -+./lbasename.o: $(srcdir)/lbasename.c $(INCDIR)/ansidecl.h $(INCDIR)/filenames.h \ - $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h --lrealpath.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --make-relative-prefix.o: config.h $(INCDIR)/ansidecl.h \ -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/lbasename.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/lbasename.c $(OUTPUT_OPTION) -+ -+./lrealpath.o: $(srcdir)/lrealpath.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/lrealpath.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/lrealpath.c $(OUTPUT_OPTION) -+ -+./make-relative-prefix.o: $(srcdir)/make-relative-prefix.c config.h \ -+ $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/make-relative-prefix.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/make-relative-prefix.c $(OUTPUT_OPTION) -+ -+./make-temp-file.o: $(srcdir)/make-temp-file.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/make-temp-file.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/make-temp-file.c $(OUTPUT_OPTION) -+ -+./md5.o: $(srcdir)/md5.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/md5.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/md5.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/md5.c $(OUTPUT_OPTION) -+ -+./memchr.o: $(srcdir)/memchr.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/memchr.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/memchr.c $(OUTPUT_OPTION) -+ -+./memcmp.o: $(srcdir)/memcmp.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/memcmp.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/memcmp.c $(OUTPUT_OPTION) -+ -+./memcpy.o: $(srcdir)/memcpy.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/memcpy.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/memcpy.c $(OUTPUT_OPTION) -+ -+./memmove.o: $(srcdir)/memmove.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/memmove.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/memmove.c $(OUTPUT_OPTION) -+ -+./mempcpy.o: $(srcdir)/mempcpy.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/mempcpy.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/mempcpy.c $(OUTPUT_OPTION) -+ -+./memset.o: $(srcdir)/memset.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/memset.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/memset.c $(OUTPUT_OPTION) -+ -+./mkstemps.o: $(srcdir)/mkstemps.c config.h $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/mkstemps.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/mkstemps.c $(OUTPUT_OPTION) -+ -+./mpw.o: $(srcdir)/mpw.c -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/mpw.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/mpw.c $(OUTPUT_OPTION) -+ -+./msdos.o: $(srcdir)/msdos.c -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/msdos.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/msdos.c $(OUTPUT_OPTION) -+ -+./objalloc.o: $(srcdir)/objalloc.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/objalloc.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/objalloc.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/objalloc.c $(OUTPUT_OPTION) -+ -+./obstack.o: $(srcdir)/obstack.c config.h $(INCDIR)/obstack.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/obstack.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/obstack.c $(OUTPUT_OPTION) -+ -+./partition.o: $(srcdir)/partition.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h $(INCDIR)/partition.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/partition.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/partition.c $(OUTPUT_OPTION) -+ -+./pex-djgpp.o: $(srcdir)/pex-djgpp.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h $(srcdir)/pex-common.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-djgpp.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/pex-djgpp.c $(OUTPUT_OPTION) -+ -+./pex-mpw.o: $(srcdir)/pex-mpw.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h $(srcdir)/pex-common.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-mpw.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/pex-mpw.c $(OUTPUT_OPTION) -+ -+./pex-msdos.o: $(srcdir)/pex-msdos.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h $(srcdir)/pex-common.h \ -+ $(INCDIR)/safe-ctype.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-msdos.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/pex-msdos.c $(OUTPUT_OPTION) -+ -+./pex-os2.o: $(srcdir)/pex-os2.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h $(srcdir)/pex-common.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-os2.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/pex-os2.c $(OUTPUT_OPTION) -+ -+./pex-unix.o: $(srcdir)/pex-unix.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h $(srcdir)/pex-common.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-unix.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/pex-unix.c $(OUTPUT_OPTION) -+ -+./pex-win32.o: $(srcdir)/pex-win32.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h $(srcdir)/pex-common.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/pex-win32.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/pex-win32.c $(OUTPUT_OPTION) -+ -+./pexrd-generic.o: $(srcdir)/pexrd-generic.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h $(srcdir)/pex-common.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/pexrd-generic.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/pexrd-generic.c $(OUTPUT_OPTION) -+ -+./pexrd-unix.o: $(srcdir)/pexrd-unix.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h $(srcdir)/pex-common.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/pexrd-unix.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/pexrd-unix.c $(OUTPUT_OPTION) -+ -+./physmem.o: $(srcdir)/physmem.c config.h $(INCDIR)/ansidecl.h \ - $(INCDIR)/libiberty.h --make-temp-file.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --md5.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/md5.h --memchr.o: $(INCDIR)/ansidecl.h --memcmp.o: $(INCDIR)/ansidecl.h --memcpy.o: $(INCDIR)/ansidecl.h --memmove.o: $(INCDIR)/ansidecl.h --mempcpy.o: $(INCDIR)/ansidecl.h --memset.o: $(INCDIR)/ansidecl.h --mkstemps.o: config.h $(INCDIR)/ansidecl.h --objalloc.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/objalloc.h --obstack.o: config.h $(INCDIR)/obstack.h --partition.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ -- $(INCDIR)/partition.h --pex-djgpp.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ -- $(srcdir)/pex-common.h --pex-mpw.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ -- $(srcdir)/pex-common.h --pex-msdos.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ -- $(srcdir)/pex-common.h $(INCDIR)/safe-ctype.h --pex-os2.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ -- $(srcdir)/pex-common.h --pex-unix.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ -- $(srcdir)/pex-common.h --pex-win32.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ -- $(srcdir)/pex-common.h --physmem.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --putenv.o: config.h $(INCDIR)/ansidecl.h --random.o: $(INCDIR)/ansidecl.h --regex.o: config.h $(INCDIR)/xregex.h $(INCDIR)/xregex2.h --rename.o: config.h $(INCDIR)/ansidecl.h --safe-ctype.o: $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h --setenv.o: config.h $(INCDIR)/ansidecl.h --sigsetmask.o: $(INCDIR)/ansidecl.h --snprintf.o: $(INCDIR)/ansidecl.h --sort.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/physmem.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/physmem.c $(OUTPUT_OPTION) -+ -+./putenv.o: $(srcdir)/putenv.c config.h $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/putenv.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/putenv.c $(OUTPUT_OPTION) -+ -+./random.o: $(srcdir)/random.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/random.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/random.c $(OUTPUT_OPTION) -+ -+./regex.o: $(srcdir)/regex.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/xregex.h \ -+ $(INCDIR)/xregex2.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/regex.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/regex.c $(OUTPUT_OPTION) -+ -+./rename.o: $(srcdir)/rename.c config.h $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/rename.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/rename.c $(OUTPUT_OPTION) -+ -+./rindex.o: $(srcdir)/rindex.c -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/rindex.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/rindex.c $(OUTPUT_OPTION) -+ -+./safe-ctype.o: $(srcdir)/safe-ctype.c $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/safe-ctype.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/safe-ctype.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/safe-ctype.c $(OUTPUT_OPTION) -+ -+./setenv.o: $(srcdir)/setenv.c config.h $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/setenv.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/setenv.c $(OUTPUT_OPTION) -+ -+./sigsetmask.o: $(srcdir)/sigsetmask.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/sigsetmask.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/sigsetmask.c $(OUTPUT_OPTION) -+ -+./snprintf.o: $(srcdir)/snprintf.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/snprintf.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/snprintf.c $(OUTPUT_OPTION) -+ -+./sort.o: $(srcdir)/sort.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ - $(INCDIR)/sort.h --spaces.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --splay-tree.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ -- $(INCDIR)/splay-tree.h --stpcpy.o: $(INCDIR)/ansidecl.h --stpncpy.o: $(INCDIR)/ansidecl.h --strcasecmp.o: $(INCDIR)/ansidecl.h --strchr.o: $(INCDIR)/ansidecl.h --strdup.o: $(INCDIR)/ansidecl.h --strerror.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --strncasecmp.o: $(INCDIR)/ansidecl.h --strncmp.o: $(INCDIR)/ansidecl.h --strrchr.o: $(INCDIR)/ansidecl.h --strsignal.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --strtod.o: $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h --strtol.o: config.h $(INCDIR)/safe-ctype.h --strtoul.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h --ternary.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \ -- $(INCDIR)/ternary.h --vasprintf.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --vfork.o: $(INCDIR)/ansidecl.h --vfprintf.o: $(INCDIR)/ansidecl.h --vprintf.o: $(INCDIR)/ansidecl.h --vsnprintf.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --vsprintf.o: $(INCDIR)/ansidecl.h --waitpid.o: config.h --xatexit.o: $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --xexit.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --xmalloc.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --xmemdup.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --xstrdup.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h --xstrerror.o: config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/sort.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/sort.c $(OUTPUT_OPTION) -+ -+./spaces.o: $(srcdir)/spaces.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/spaces.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/spaces.c $(OUTPUT_OPTION) -+ -+./splay-tree.o: $(srcdir)/splay-tree.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h $(INCDIR)/splay-tree.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/splay-tree.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/splay-tree.c $(OUTPUT_OPTION) -+ -+./stpcpy.o: $(srcdir)/stpcpy.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/stpcpy.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/stpcpy.c $(OUTPUT_OPTION) -+ -+./stpncpy.o: $(srcdir)/stpncpy.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/stpncpy.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/stpncpy.c $(OUTPUT_OPTION) -+ -+./strcasecmp.o: $(srcdir)/strcasecmp.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/strcasecmp.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/strcasecmp.c $(OUTPUT_OPTION) -+ -+./strchr.o: $(srcdir)/strchr.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/strchr.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/strchr.c $(OUTPUT_OPTION) -+ -+./strdup.o: $(srcdir)/strdup.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/strdup.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/strdup.c $(OUTPUT_OPTION) -+ -+./strerror.o: $(srcdir)/strerror.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/strerror.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/strerror.c $(OUTPUT_OPTION) -+ -+./strncasecmp.o: $(srcdir)/strncasecmp.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/strncasecmp.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/strncasecmp.c $(OUTPUT_OPTION) -+ -+./strncmp.o: $(srcdir)/strncmp.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/strncmp.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/strncmp.c $(OUTPUT_OPTION) -+ -+./strrchr.o: $(srcdir)/strrchr.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/strrchr.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/strrchr.c $(OUTPUT_OPTION) -+ -+./strsignal.o: $(srcdir)/strsignal.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/strsignal.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/strsignal.c $(OUTPUT_OPTION) -+ -+./strstr.o: $(srcdir)/strstr.c -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/strstr.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/strstr.c $(OUTPUT_OPTION) -+ -+./strtod.o: $(srcdir)/strtod.c $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/strtod.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/strtod.c $(OUTPUT_OPTION) -+ -+./strtol.o: $(srcdir)/strtol.c config.h $(INCDIR)/safe-ctype.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/strtol.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/strtol.c $(OUTPUT_OPTION) -+ -+./strtoul.o: $(srcdir)/strtoul.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/safe-ctype.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/strtoul.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/strtoul.c $(OUTPUT_OPTION) -+ -+./ternary.o: $(srcdir)/ternary.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h $(INCDIR)/ternary.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/ternary.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/ternary.c $(OUTPUT_OPTION) -+ -+./tmpnam.o: $(srcdir)/tmpnam.c -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/tmpnam.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/tmpnam.c $(OUTPUT_OPTION) -+ -+./vasprintf.o: $(srcdir)/vasprintf.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/vasprintf.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/vasprintf.c $(OUTPUT_OPTION) -+ -+./vfork.o: $(srcdir)/vfork.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/vfork.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/vfork.c $(OUTPUT_OPTION) -+ -+./vfprintf.o: $(srcdir)/vfprintf.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/vfprintf.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/vfprintf.c $(OUTPUT_OPTION) -+ -+./vprintf.o: $(srcdir)/vprintf.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/vprintf.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/vprintf.c $(OUTPUT_OPTION) -+ -+./vsnprintf.o: $(srcdir)/vsnprintf.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/vsnprintf.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/vsnprintf.c $(OUTPUT_OPTION) -+ -+./vsprintf.o: $(srcdir)/vsprintf.c $(INCDIR)/ansidecl.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/vsprintf.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/vsprintf.c $(OUTPUT_OPTION) -+ -+./waitpid.o: $(srcdir)/waitpid.c config.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/waitpid.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/waitpid.c $(OUTPUT_OPTION) -+ -+./xatexit.o: $(srcdir)/xatexit.c $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/xatexit.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/xatexit.c $(OUTPUT_OPTION) -+ -+./xexit.o: $(srcdir)/xexit.c config.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/xexit.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/xexit.c $(OUTPUT_OPTION) -+ -+./xmalloc.o: $(srcdir)/xmalloc.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/xmalloc.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/xmalloc.c $(OUTPUT_OPTION) -+ -+./xmemdup.o: $(srcdir)/xmemdup.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/xmemdup.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/xmemdup.c $(OUTPUT_OPTION) -+ -+./xstrdup.o: $(srcdir)/xstrdup.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrdup.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/xstrdup.c $(OUTPUT_OPTION) -+ -+./xstrerror.o: $(srcdir)/xstrerror.c config.h $(INCDIR)/ansidecl.h \ -+ $(INCDIR)/libiberty.h -+ if [ x"$(PICFLAG)" != x ]; then \ -+ $(COMPILE.c) $(PICFLAG) $(srcdir)/xstrerror.c -o pic/$@; \ -+ else true; fi -+ $(COMPILE.c) $(srcdir)/xstrerror.c $(OUTPUT_OPTION) -+ -diff -Nbaur gcc-3.4.4/libiberty/config.in gcc-3.4.4-new/libiberty/config.in ---- gcc-3.4.4/libiberty/config.in Sat Jan 10 02:17:41 2004 -+++ gcc-3.4.4-new/libiberty/config.in Wed Jul 6 01:50:38 2005 -@@ -1,7 +1,4 @@ - /* config.in. Generated from configure.ac by autoheader. */ --/* Define to `unsigned long' if doesn't define. */ --#undef uintptr_t -- - - /* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */ - #undef BYTEORDER -@@ -362,9 +359,11 @@ - /* Define to empty if `const' does not conform to ANSI C. */ - #undef const - --/* Define as `__inline' if that's what the C compiler calls it, or to nothing -- if it is not supported. */ -+/* Define to `__inline__' or `__inline' if that's what the C compiler -+ calls it, or to nothing if 'inline' is not supported under any name. */ -+#ifndef __cplusplus - #undef inline -+#endif - - /* Define to `int' if does not define. */ - #undef pid_t -diff -Nbaur gcc-3.4.4/libiberty/configure gcc-3.4.4-new/libiberty/configure ---- gcc-3.4.4/libiberty/configure Wed Oct 1 18:11:29 2003 -+++ gcc-3.4.4-new/libiberty/configure Wed Jul 6 01:50:39 2005 -@@ -1,9 +1,8 @@ - #! /bin/sh - # Guess values for system-dependent variables and create Makefiles. --# Generated by GNU Autoconf 2.57. -+# Generated by GNU Autoconf 2.59. - # --# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 --# Free Software Foundation, Inc. -+# 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. - ## --------------------- ## -@@ -20,9 +19,10 @@ - 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 (FOO=FOO; unset FOO) >/dev/null 2>&1; then -+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset - else - as_unset=false -@@ -41,7 +41,7 @@ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME - do -- if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then -+ 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 -@@ -218,16 +218,17 @@ - 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="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" -+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="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" -+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - - # IFS -@@ -901,12 +902,45 @@ - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_builddir$srcdir ;; - esac --# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be --# absolute. --ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` --ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` --ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` --ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` -+ -+# 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. -@@ -931,8 +965,7 @@ - if $ac_init_version; then - cat <<\_ACEOF - --Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 --Free Software Foundation, Inc. -+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 -@@ -944,7 +977,7 @@ - running configure, to aid debugging if configure makes a mistake. - - It was created by $as_me, which was --generated by GNU Autoconf 2.57. Invocation command line was -+generated by GNU Autoconf 2.59. Invocation command line was - - $ $0 $@ - -@@ -1120,7 +1153,7 @@ - echo "$as_me: caught signal $ac_signal" - echo "$as_me: exit $exit_status" - } >&5 -- rm -f core core.* *.core && -+ rm -f core *.core && - rm -rf conftest* confdefs* conf$$* $ac_clean_files && - exit $exit_status - ' 0 -@@ -2030,7 +2063,6 @@ - (exit $ac_status); } - - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -2064,7 +2096,6 @@ - EXEEXT= - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -2084,8 +2115,8 @@ - # 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" >&5 --echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 -+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 -@@ -2222,7 +2253,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -2273,7 +2303,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -2293,10 +2322,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -2310,7 +2349,7 @@ - - ac_compiler_gnu=no - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cv_c_compiler_gnu=$ac_compiler_gnu - - fi -@@ -2326,7 +2365,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -2343,10 +2381,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -2360,7 +2408,7 @@ - - ac_cv_prog_cc_g=no - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+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 -@@ -2387,7 +2435,6 @@ - ac_cv_prog_cc_stdc=no - ac_save_CC=$CC - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -2415,6 +2462,16 @@ - 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);}; -@@ -2441,10 +2498,20 @@ - CC="$ac_save_CC $ac_arg" - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -2458,7 +2525,7 @@ - sed 's/^/| /' conftest.$ac_ext >&5 - - fi --rm -f conftest.$ac_objext -+rm -f conftest.err conftest.$ac_objext - done - rm -f conftest.$ac_ext conftest.$ac_objext - CC=$ac_save_CC -@@ -2486,10 +2553,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -2497,8 +2574,7 @@ - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - for ac_declaration in \ -- ''\ -- '#include ' \ -+ '' \ - '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 ();' \ -@@ -2506,14 +2582,13 @@ - 'void exit (int);' - do - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext - cat >>conftest.$ac_ext <<_ACEOF - /* end confdefs.h. */ --#include - $ac_declaration -+#include - int - main () - { -@@ -2524,10 +2599,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -2541,9 +2626,8 @@ - - continue - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -2560,10 +2644,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -2576,7 +2670,7 @@ - sed 's/^/| /' conftest.$ac_ext >&5 - - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - done - rm -f conftest* - if test -n "$ac_declaration"; then -@@ -2590,7 +2684,7 @@ - sed 's/^/| /' conftest.$ac_ext >&5 - - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+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' -@@ -2625,7 +2719,6 @@ - # 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 --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -2648,6 +2741,7 @@ - (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 -@@ -2668,7 +2762,6 @@ - # OK, works on sane cases. Now check whether non-existent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -2686,6 +2779,7 @@ - (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 -@@ -2732,7 +2826,6 @@ - # 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 --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -2755,6 +2848,7 @@ - (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 -@@ -2775,7 +2869,6 @@ - # OK, works on sane cases. Now check whether non-existent headers - # can be detected and how. - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -2793,6 +2886,7 @@ - (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 -@@ -2852,7 +2946,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -2946,7 +3039,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3009,10 +3101,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -3026,7 +3128,7 @@ - - ac_cv_c_const=no - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - fi - echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 - echo "${ECHO_T}$ac_cv_c_const" >&6 -@@ -3046,7 +3148,6 @@ - ac_cv_c_inline=no - for ac_kw in inline __inline__ __inline; do - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3061,10 +3162,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -3077,21 +3188,25 @@ - sed 's/^/| /' conftest.$ac_ext >&5 - - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - done - - fi - echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 - echo "${ECHO_T}$ac_cv_c_inline" >&6 -+ -+ - case $ac_cv_c_inline in - inline | yes) ;; -- no) --cat >>confdefs.h <<\_ACEOF --#define inline --_ACEOF -- ;; -- *) cat >>confdefs.h <<_ACEOF --#define inline $ac_cv_c_inline -+ *) -+ case $ac_cv_c_inline in -+ no) ac_val=;; -+ *) ac_val=$ac_cv_c_inline;; -+ esac -+ cat >>confdefs.h <<_ACEOF -+#ifndef __cplusplus -+#define inline $ac_val -+#endif - _ACEOF - ;; - esac -@@ -3104,7 +3219,6 @@ - ac_cv_c_bigendian=unknown - # See if sys/param.h defines the BYTE_ORDER macro. - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3125,10 +3239,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -3137,7 +3261,6 @@ - (exit $ac_status); }; }; then - # It does; now see whether it defined to BIG_ENDIAN or not. - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3158,10 +3281,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -3175,19 +3308,18 @@ - - ac_cv_c_bigendian=no - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - else - echo "$as_me: failed program was:" >&5 - sed 's/^/| /' conftest.$ac_ext >&5 - - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - if test $ac_cv_c_bigendian = unknown; then - if test "$cross_compiling" = yes; then - echo $ac_n "cross-compiling... " 2>&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3224,7 +3356,7 @@ - ( exit $ac_status ) - ac_cv_c_bigendian=yes - fi --rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext - fi - fi - fi -@@ -3244,7 +3376,7 @@ - int main() { _ascii (); _ebcdic (); return 0; } - EOF - if test -f conftest.c ; then -- if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then -+ if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then - if test `grep -l BIGenDianSyS conftest.o` ; then - echo $ac_n ' big endian probe OK, ' 1>&6 - ac_cv_c_bigendian=yes -@@ -3284,9 +3416,9 @@ - _ACEOF - - if test $ac_cv_c_bigendian = unknown; then -- { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5 --echo "$as_me: error: unknown endianess - sorry" >&2;} -- { (exit please pre-set ac_cv_c_bigendian); exit please pre-set ac_cv_c_bigendian; }; } -+ { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5 -+echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;} -+ { (exit 1); exit 1; }; } - fi - - -@@ -3307,6 +3439,7 @@ - # 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 -@@ -3323,6 +3456,7 @@ - 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. -@@ -3413,7 +3547,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3431,6 +3564,7 @@ - (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 -@@ -3463,7 +3597,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3490,10 +3623,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -3507,7 +3650,7 @@ - - ac_cv_header_sys_wait_h=no - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - fi - echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 - echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 -@@ -3525,7 +3668,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3546,10 +3688,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -3563,7 +3715,7 @@ - - ac_cv_header_time=no - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+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 -@@ -3582,7 +3734,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3599,10 +3750,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -3616,7 +3777,7 @@ - - libiberty_cv_declare_errno=yes - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - fi - echo "$as_me:$LINENO: result: $libiberty_cv_declare_errno" >&5 - echo "${ECHO_T}$libiberty_cv_declare_errno" >&6 -@@ -3650,7 +3811,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3671,10 +3831,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -3688,12 +3858,11 @@ - - ac_cv_header_stdc=no - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+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 --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3715,7 +3884,6 @@ - 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 --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3740,7 +3908,6 @@ - : - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3790,7 +3957,7 @@ - ( exit $ac_status ) - ac_cv_header_stdc=no - fi --rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext - fi - fi - fi -@@ -3824,7 +3991,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3842,6 +4008,7 @@ - (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 -@@ -3875,7 +4042,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3895,10 +4061,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -3912,7 +4088,7 @@ - - ac_cv_type_uintptr_t=no - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+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 -@@ -3941,7 +4117,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -3961,10 +4136,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -3978,7 +4163,7 @@ - - ac_cv_type_pid_t=no - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - fi - echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 - echo "${ECHO_T}$ac_cv_type_pid_t" >&6 -@@ -4139,7 +4324,6 @@ - { (exit 1); exit 1; }; } - fi - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -4186,10 +4370,20 @@ - _ACEOF - rm -f conftest.$ac_objext conftest$ac_exeext - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -- (eval $ac_link) 2>&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 -@@ -4203,7 +4397,8 @@ - - eval "$as_ac_var=no" - fi --rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -+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 -@@ -4250,12 +4445,54 @@ - # newlib provide and which ones we will be expected to provide. - - if test "x${with_newlib}" = "xyes"; then -- LIBOBJS="$LIBOBJS asprintf.$ac_objext" -- LIBOBJS="$LIBOBJS basename.$ac_objext" -- LIBOBJS="$LIBOBJS insque.$ac_objext" -- LIBOBJS="$LIBOBJS random.$ac_objext" -- LIBOBJS="$LIBOBJS strdup.$ac_objext" -- LIBOBJS="$LIBOBJS vasprintf.$ac_objext" -+ case $LIBOBJS in -+ "asprintf.$ac_objext" | \ -+ *" asprintf.$ac_objext" | \ -+ "asprintf.$ac_objext "* | \ -+ *" asprintf.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" ;; -+esac -+ -+ case $LIBOBJS in -+ "basename.$ac_objext" | \ -+ *" basename.$ac_objext" | \ -+ "basename.$ac_objext "* | \ -+ *" basename.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;; -+esac -+ -+ case $LIBOBJS in -+ "insque.$ac_objext" | \ -+ *" insque.$ac_objext" | \ -+ "insque.$ac_objext "* | \ -+ *" insque.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;; -+esac -+ -+ case $LIBOBJS in -+ "random.$ac_objext" | \ -+ *" random.$ac_objext" | \ -+ "random.$ac_objext "* | \ -+ *" random.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS random.$ac_objext" ;; -+esac -+ -+ case $LIBOBJS in -+ "strdup.$ac_objext" | \ -+ *" strdup.$ac_objext" | \ -+ "strdup.$ac_objext "* | \ -+ *" strdup.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;; -+esac -+ -+ case $LIBOBJS in -+ "vasprintf.$ac_objext" | \ -+ *" vasprintf.$ac_objext" | \ -+ "vasprintf.$ac_objext "* | \ -+ *" vasprintf.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;; -+esac -+ - - for f in $funcs; do - case "$f" in -@@ -4337,16 +4574,86 @@ - # Handle VxWorks configuration specially, since on VxWorks the - # libraries are actually on the target board, not in the file - # system. -- LIBOBJS="$LIBOBJS basename.$ac_objext" -- LIBOBJS="$LIBOBJS getpagesize.$ac_objext" -- LIBOBJS="$LIBOBJS insque.$ac_objext" -- LIBOBJS="$LIBOBJS random.$ac_objext" -- LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" -- LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" -- LIBOBJS="$LIBOBJS strdup.$ac_objext" -- LIBOBJS="$LIBOBJS vfork.$ac_objext" -- LIBOBJS="$LIBOBJS waitpid.$ac_objext" -- LIBOBJS="$LIBOBJS vasprintf.$ac_objext" -+ case $LIBOBJS in -+ "basename.$ac_objext" | \ -+ *" basename.$ac_objext" | \ -+ "basename.$ac_objext "* | \ -+ *" basename.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS basename.$ac_objext" ;; -+esac -+ -+ case $LIBOBJS in -+ "getpagesize.$ac_objext" | \ -+ *" getpagesize.$ac_objext" | \ -+ "getpagesize.$ac_objext "* | \ -+ *" getpagesize.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS getpagesize.$ac_objext" ;; -+esac -+ -+ case $LIBOBJS in -+ "insque.$ac_objext" | \ -+ *" insque.$ac_objext" | \ -+ "insque.$ac_objext "* | \ -+ *" insque.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS insque.$ac_objext" ;; -+esac -+ -+ case $LIBOBJS in -+ "random.$ac_objext" | \ -+ *" random.$ac_objext" | \ -+ "random.$ac_objext "* | \ -+ *" random.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS random.$ac_objext" ;; -+esac -+ -+ case $LIBOBJS in -+ "strcasecmp.$ac_objext" | \ -+ *" strcasecmp.$ac_objext" | \ -+ "strcasecmp.$ac_objext "* | \ -+ *" strcasecmp.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" ;; -+esac -+ -+ case $LIBOBJS in -+ "strncasecmp.$ac_objext" | \ -+ *" strncasecmp.$ac_objext" | \ -+ "strncasecmp.$ac_objext "* | \ -+ *" strncasecmp.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" ;; -+esac -+ -+ case $LIBOBJS in -+ "strdup.$ac_objext" | \ -+ *" strdup.$ac_objext" | \ -+ "strdup.$ac_objext "* | \ -+ *" strdup.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS strdup.$ac_objext" ;; -+esac -+ -+ case $LIBOBJS in -+ "vfork.$ac_objext" | \ -+ *" vfork.$ac_objext" | \ -+ "vfork.$ac_objext "* | \ -+ *" vfork.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS vfork.$ac_objext" ;; -+esac -+ -+ case $LIBOBJS in -+ "waitpid.$ac_objext" | \ -+ *" waitpid.$ac_objext" | \ -+ "waitpid.$ac_objext "* | \ -+ *" waitpid.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS waitpid.$ac_objext" ;; -+esac -+ -+ case $LIBOBJS in -+ "vasprintf.$ac_objext" | \ -+ *" vasprintf.$ac_objext" | \ -+ "vasprintf.$ac_objext "* | \ -+ *" vasprintf.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" ;; -+esac -+ - for f in $funcs; do - case "$f" in - basename | getpagesize | insque | random | strcasecmp) -@@ -4399,7 +4706,14 @@ - if test -n "${with_target_subdir}" - then - funcs="`echo $funcs | sed -e 's/random//'`" -- LIBOBJS="$LIBOBJS random.$ac_objext" -+ case $LIBOBJS in -+ "random.$ac_objext" | \ -+ *" random.$ac_objext" | \ -+ "random.$ac_objext "* | \ -+ *" random.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS random.$ac_objext" ;; -+esac -+ - vars="`echo $vars | sed -e 's/sys_siglist//'`" - checkfuncs="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`" - fi -@@ -4448,7 +4762,6 @@ - { (exit 1); exit 1; }; } - fi - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -4472,10 +4785,20 @@ - _ACEOF - rm -f conftest.$ac_objext conftest$ac_exeext - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -- (eval $ac_link) 2>&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 -@@ -4488,7 +4811,8 @@ - sed 's/^/| /' conftest.$ac_ext >&5 - - fi --rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -+rm -f conftest.err conftest.$ac_objext \ -+ conftest$ac_exeext conftest.$ac_ext - if test "$ac_cv_search_strerror" = no; then - for ac_lib in cposix; do - LIBS="-l$ac_lib $ac_func_search_save_LIBS" -@@ -4498,7 +4822,6 @@ - { (exit 1); exit 1; }; } - fi - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -4522,10 +4845,20 @@ - _ACEOF - rm -f conftest.$ac_objext conftest$ac_exeext - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -- (eval $ac_link) 2>&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 -@@ -4539,7 +4872,8 @@ - sed 's/^/| /' conftest.$ac_ext >&5 - - fi --rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -+rm -f conftest.err conftest.$ac_objext \ -+ conftest$ac_exeext conftest.$ac_ext - done - fi - LIBS=$ac_func_search_save_LIBS -@@ -4566,7 +4900,6 @@ - { (exit 1); exit 1; }; } - fi - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -4613,10 +4946,20 @@ - _ACEOF - rm -f conftest.$ac_objext conftest$ac_exeext - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -- (eval $ac_link) 2>&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 -@@ -4630,7 +4973,8 @@ - - eval "$as_ac_var=no" - fi --rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -+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 -@@ -4640,7 +4984,14 @@ - _ACEOF - - else -- LIBOBJS="$LIBOBJS $ac_func.$ac_objext" -+ case $LIBOBJS in -+ "$ac_func.$ac_objext" | \ -+ *" $ac_func.$ac_objext" | \ -+ "$ac_func.$ac_objext "* | \ -+ *" $ac_func.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; -+esac -+ - fi - done - -@@ -4651,7 +5002,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -4689,7 +5039,6 @@ - { (exit 1); exit 1; }; } - fi - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -4736,10 +5085,20 @@ - _ACEOF - rm -f conftest.$ac_objext conftest$ac_exeext - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -- (eval $ac_link) 2>&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 -@@ -4753,7 +5112,8 @@ - - eval "$as_ac_var=no" - fi --rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -+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 -@@ -4777,7 +5137,6 @@ - ac_cv_c_stack_direction=0 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -4820,7 +5179,7 @@ - ( exit $ac_status ) - ac_cv_c_stack_direction=-1 - fi --rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext - fi - fi - echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 -@@ -4842,7 +5201,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -4860,6 +5218,7 @@ - (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 -@@ -4902,7 +5261,6 @@ - { (exit 1); exit 1; }; } - fi - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -4949,10 +5307,20 @@ - _ACEOF - rm -f conftest.$ac_objext conftest$ac_exeext - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -- (eval $ac_link) 2>&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 -@@ -4966,7 +5334,8 @@ - - eval "$as_ac_var=no" - fi --rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -+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 -@@ -5021,7 +5390,7 @@ - ( exit $ac_status ) - ac_cv_func_fork_works=no - fi --rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext - fi - fi - echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 -@@ -5054,7 +5423,6 @@ - ac_cv_func_vfork_works=cross - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -5176,7 +5544,7 @@ - ( exit $ac_status ) - ac_cv_func_vfork_works=no - fi --rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext - fi - fi - echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 -@@ -5184,7 +5552,7 @@ - - fi; - if test "x$ac_cv_func_fork_works" = xcross; then -- ac_cv_func_vfork_works=ac_cv_func_vfork -+ ac_cv_func_vfork_works=$ac_cv_func_vfork - { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 - echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} - fi -@@ -5211,7 +5579,14 @@ - fi - - if test $ac_cv_func_vfork_works = no; then -- LIBOBJS="$LIBOBJS vfork.$ac_objext" -+ case $LIBOBJS in -+ "vfork.$ac_objext" | \ -+ *" vfork.$ac_objext" | \ -+ "vfork.$ac_objext "* | \ -+ *" vfork.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS vfork.$ac_objext" ;; -+esac -+ - fi - # We only need _doprnt if we might use it to implement v*printf. - if test $ac_cv_func_vprintf != yes \ -@@ -5232,7 +5607,6 @@ - { (exit 1); exit 1; }; } - fi - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -5279,10 +5653,20 @@ - _ACEOF - rm -f conftest.$ac_objext conftest$ac_exeext - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -- (eval $ac_link) 2>&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 -@@ -5296,7 +5680,8 @@ - - eval "$as_ac_var=no" - fi --rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -+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 -@@ -5306,7 +5691,14 @@ - _ACEOF - - else -- LIBOBJS="$LIBOBJS $ac_func.$ac_objext" -+ case $LIBOBJS in -+ "$ac_func.$ac_objext" | \ -+ *" $ac_func.$ac_objext" | \ -+ "$ac_func.$ac_objext "* | \ -+ *" $ac_func.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; -+esac -+ - fi - done - -@@ -5327,7 +5719,6 @@ - { (exit 1); exit 1; }; } - fi - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -5374,10 +5765,20 @@ - _ACEOF - rm -f conftest.$ac_objext conftest$ac_exeext - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -- (eval $ac_link) 2>&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 -@@ -5391,7 +5792,8 @@ - - eval "$as_ac_var=no" - fi --rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -+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 -@@ -5417,7 +5819,6 @@ - { (exit 1); exit 1; }; } - fi - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -5434,10 +5835,20 @@ - _ACEOF - rm -f conftest.$ac_objext conftest$ac_exeext - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -- (eval $ac_link) 2>&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 -@@ -5451,7 +5862,8 @@ - - eval "libiberty_cv_var_$v=no" - fi --rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -+rm -f conftest.err conftest.$ac_objext \ -+ conftest$ac_exeext conftest.$ac_ext - fi - - if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then -@@ -5473,7 +5885,6 @@ - echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5 - echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6 - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -5490,10 +5901,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -5514,7 +5935,7 @@ - echo "$as_me:$LINENO: result: no" >&5 - echo "${ECHO_T}no" >&6 - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - - - for ac_func in $checkfuncs -@@ -5531,7 +5952,6 @@ - { (exit 1); exit 1; }; } - fi - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -5578,10 +5998,20 @@ - _ACEOF - rm -f conftest.$ac_objext conftest$ac_exeext - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -- (eval $ac_link) 2>&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 -@@ -5595,7 +6025,8 @@ - - eval "$as_ac_var=no" - fi --rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -+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 -@@ -5613,7 +6044,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -5645,10 +6075,20 @@ - _ACEOF - rm -f conftest.$ac_objext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 -- (eval $ac_compile) 2>&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 -@@ -5662,7 +6102,7 @@ - - libiberty_cv_decl_needed_canonicalize_file_name=yes - fi --rm -f conftest.$ac_objext conftest.$ac_ext -+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - fi - - echo "$as_me:$LINENO: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5 -@@ -5679,11 +6119,11 @@ - - # Figure out which version of pexecute to use. - case "${host}" in -- *-*-mingw* | *-*-winnt*) pexecute=pex-win32.o ;; -- *-*-msdosdjgpp*) pexecute=pex-djgpp.o ;; -- *-*-msdos*) pexecute=pex-msdos.o ;; -- *-*-os2-emx*) pexecute=pex-os2.o ;; -- *) pexecute=pex-unix.o ;; -+ *-*-mingw* | *-*-winnt*) pexecute="./pex-win32.o ./pexrd-generic.o" ;; -+ *-*-msdosdjgpp*) pexecute="./pex-djgpp.o ./pexrd-generic.o" ;; -+ *-*-msdos*) pexecute="./pex-msdos.o ./pexrd-generic.o" ;; -+ *-*-os2-emx*) pexecute="./pex-os2.o ./pexrd-generic.o" ;; -+ *) pexecute="./pex-unix.o ./pexrd-unix.o" ;; - esac - - -@@ -5704,7 +6144,6 @@ - echo $ECHO_N "(cached) $ECHO_C" >&6 - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -5722,6 +6161,7 @@ - (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 -@@ -5763,7 +6203,6 @@ - { (exit 1); exit 1; }; } - fi - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -5810,10 +6249,20 @@ - _ACEOF - rm -f conftest.$ac_objext conftest$ac_exeext - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 -- (eval $ac_link) 2>&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 -@@ -5827,7 +6276,8 @@ - - eval "$as_ac_var=no" - fi --rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext -+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 -@@ -5848,7 +6298,6 @@ - ac_cv_func_mmap_fixed_mapped=no - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -5956,7 +6405,7 @@ - data2 = (char *) malloc (2 * pagesize); - if (!data2) - exit (1); -- data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); -+ data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); - if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, - MAP_PRIVATE | MAP_FIXED, fd, 0L)) - exit (1); -@@ -6001,7 +6450,7 @@ - ( exit $ac_status ) - ac_cv_func_mmap_fixed_mapped=no - fi --rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext - fi - fi - echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 -@@ -6026,7 +6475,6 @@ - ac_cv_func_strncmp_works=no - else - cat >conftest.$ac_ext <<_ACEOF --#line $LINENO "configure" - /* confdefs.h. */ - _ACEOF - cat confdefs.h >>conftest.$ac_ext -@@ -6114,14 +6562,21 @@ - ( exit $ac_status ) - ac_cv_func_strncmp_works=no - fi --rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext - fi - rm -f core core.* *.core - fi - echo "$as_me:$LINENO: result: $ac_cv_func_strncmp_works" >&5 - echo "${ECHO_T}$ac_cv_func_strncmp_works" >&6 - if test $ac_cv_func_strncmp_works = no ; then -- LIBOBJS="$LIBOBJS strncmp.$ac_objext" -+ case $LIBOBJS in -+ "strncmp.$ac_objext" | \ -+ *" strncmp.$ac_objext" | \ -+ "strncmp.$ac_objext "* | \ -+ *" strncmp.$ac_objext "* ) ;; -+ *) LIBOBJS="$LIBOBJS strncmp.$ac_objext" ;; -+esac -+ - fi - - -@@ -6134,6 +6589,16 @@ - fi - - -+ -+L="" -+for l in x $LIBOBJS; do -+ case $l in -+ x) ;; -+ *) L="$L ./$l" ;; -+ esac -+done -+LIBOBJS="$L" -+ - # We need multilib support, but only if configuring for the target. - ac_config_files="$ac_config_files Makefile testsuite/Makefile" - ac_config_commands="$ac_config_commands default" -@@ -6262,9 +6727,10 @@ - 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 (FOO=FOO; unset FOO) >/dev/null 2>&1; then -+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - as_unset=unset - else - as_unset=false -@@ -6283,7 +6749,7 @@ - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ - LC_TELEPHONE LC_TIME - do -- if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then -+ 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 -@@ -6462,16 +6928,17 @@ - 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="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" -+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="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" -+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" - - - # IFS -@@ -6498,7 +6965,7 @@ - cat >&5 <<_CSEOF - - This file was extended by $as_me, which was --generated by GNU Autoconf 2.57. Invocation command line was -+generated by GNU Autoconf 2.59. Invocation command line was - - CONFIG_FILES = $CONFIG_FILES - CONFIG_HEADERS = $CONFIG_HEADERS -@@ -6561,11 +7028,10 @@ - cat >>$CONFIG_STATUS <<_ACEOF - ac_cs_version="\\ - config.status --configured by $0, generated by GNU Autoconf 2.57, -+configured by $0, generated by GNU Autoconf 2.59, - with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" - --Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 --Free Software Foundation, Inc. -+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 -@@ -6932,12 +7398,45 @@ - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_builddir$srcdir ;; - esac --# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be --# absolute. --ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` --ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` --ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` --ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` -+ -+# 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 -@@ -6972,14 +7471,14 @@ - 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;; -+ echo "$f";; - *) # Relative - if test -f "$f"; then - # Build tree -- echo $f -+ echo "$f" - elif test -f "$srcdir/$f"; then - # Source tree -- echo $srcdir/$f -+ echo "$srcdir/$f" - else - # /dev/null tree - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 -@@ -7063,14 +7562,15 @@ - 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;; -+ # Do quote $f, to prevent DOS paths from being IFS'd. -+ echo "$f";; - *) # Relative - if test -f "$f"; then - # Build tree -- echo $f -+ echo "$f" - elif test -f "$srcdir/$f"; then - # Source tree -- echo $srcdir/$f -+ echo "$srcdir/$f" - else - # /dev/null tree - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 -@@ -7259,6 +7759,31 @@ - /^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 -@@ -7284,12 +7809,45 @@ - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix - ac_top_srcdir=$ac_top_builddir$srcdir ;; - esac --# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be --# absolute. --ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` --ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` --ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` --ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` -+ -+# 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 -diff -Nbaur gcc-3.4.4/libiberty/configure.ac gcc-3.4.4-new/libiberty/configure.ac ---- gcc-3.4.4/libiberty/configure.ac Sat Jan 10 02:17:41 2004 -+++ gcc-3.4.4-new/libiberty/configure.ac Wed Jul 6 01:50:39 2005 -@@ -1,7 +1,8 @@ - dnl Process this file with autoconf to produce a configure script - --AC_PREREQ(2.57) --AC_INIT(xmalloc.c) -+AC_PREREQ(2.59) -+AC_INIT -+AC_CONFIG_SRCDIR([xmalloc.c]) - - # This works around the fact that libtool configuration may change LD - # for this particular configuration, but some shells, instead of -@@ -433,7 +434,7 @@ - AC_ISC_POSIX - AC_REPLACE_FUNCS($funcs) - libiberty_AC_FUNC_C_ALLOCA -- AC_FUNC_VFORK -+ AC_FUNC_FORK - if test $ac_cv_func_vfork_works = no; then - AC_LIBOBJ([vfork]) - fi -@@ -449,7 +450,7 @@ - for v in $vars; do - AC_MSG_CHECKING([for $v]) - AC_CACHE_VAL(libiberty_cv_var_$v, -- [AC_TRY_LINK([int *p;], [extern int $v []; p = $v;], -+ [AC_LINK_IFELSE([AC_LANG_PROGRAM([[int *p;]],[[extern int $v []; p = $v;]])], - [eval "libiberty_cv_var_$v=yes"], - [eval "libiberty_cv_var_$v=no"])]) - if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then -@@ -464,8 +465,8 @@ - # special check for _system_configuration because AIX <4.3.2 do not - # contain the `physmem' member. - AC_MSG_CHECKING([for external symbol _system_configuration]) -- AC_TRY_COMPILE([#include ], -- [double x = _system_configuration.physmem;], -+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], -+ [[double x = _system_configuration.physmem;]])], - [AC_MSG_RESULT([yes]) - AC_DEFINE(HAVE__SYSTEM_CONFIGURATION, 1, - [Define if you have the _system_configuration variable.])], -@@ -477,11 +478,11 @@ - - # Figure out which version of pexecute to use. - case "${host}" in -- *-*-mingw* | *-*-winnt*) pexecute=pex-win32.o ;; -- *-*-msdosdjgpp*) pexecute=pex-djgpp.o ;; -- *-*-msdos*) pexecute=pex-msdos.o ;; -- *-*-os2-emx*) pexecute=pex-os2.o ;; -- *) pexecute=pex-unix.o ;; -+ *-*-mingw* | *-*-winnt*) pexecute="./pex-win32.o ./pexrd-generic.o" ;; -+ *-*-msdosdjgpp*) pexecute="./pex-djgpp.o ./pexrd-generic.o" ;; -+ *-*-msdos*) pexecute="./pex-msdos.o ./pexrd-generic.o" ;; -+ *-*-os2-emx*) pexecute="./pex-os2.o ./pexrd-generic.o" ;; -+ *) pexecute="./pex-unix.o ./pexrd-unix.o" ;; - esac - AC_SUBST(pexecute) - -@@ -496,9 +497,20 @@ - fi - AC_SUBST(INSTALL_DEST) - -+m4_pattern_allow(LIBOBJS) -+L="" -+for l in x $LIBOBJS; do -+ case $l in -+ x) ;; -+ *) L="$L ./$l" ;; -+ esac -+done -+LIBOBJS="$L" -+ - # We need multilib support, but only if configuring for the target. --AC_OUTPUT(Makefile testsuite/Makefile, --[test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h -+AC_CONFIG_FILES([Makefile testsuite/Makefile]) -+AC_CONFIG_COMMANDS([default], -+ [[test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h - if test -n "$CONFIG_FILES"; then - if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then - # FIXME: We shouldn't need to set ac_file -@@ -506,8 +518,8 @@ - LD="${ORIGINAL_LD_FOR_MULTILIBS}" - . ${libiberty_topdir}/config-ml.in - fi --fi], --srcdir=${srcdir} -+fi]], -+[[srcdir=${srcdir} - host=${host} - target=${target} - with_target_subdir=${with_target_subdir} -@@ -517,4 +529,5 @@ - CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} - ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}" - libiberty_topdir=${libiberty_topdir} --) -+]]) -+AC_OUTPUT -diff -Nbaur gcc-3.4.4/libiberty/dyn-string.c gcc-3.4.4-new/libiberty/dyn-string.c ---- gcc-3.4.4/libiberty/dyn-string.c Mon Apr 1 22:55:12 2002 -+++ gcc-3.4.4-new/libiberty/dyn-string.c Wed Jul 6 01:50:39 2005 -@@ -1,5 +1,5 @@ - /* An abstract string datatype. -- Copyright (C) 1998, 1999, 2000, 2002 Free Software Foundation, Inc. -+ Copyright (C) 1998, 1999, 2000, 2002, 2004 Free Software Foundation, Inc. - Contributed by Mark Mitchell (mark@markmitchell.com). - - This file is part of GNU CC. -@@ -44,15 +44,6 @@ - - #include "libiberty.h" - #include "dyn-string.h" -- --/* If this file is being compiled for inclusion in the C++ runtime -- library, as part of the demangler implementation, we don't want to -- abort if an allocation fails. Instead, percolate an error code up -- through the call chain. */ -- --#if defined(IN_LIBGCC2) || defined(IN_GLIBCPP_V3) --#define RETURN_ON_ALLOCATION_FAILURE --#endif - - /* Performs in-place initialization of a dyn_string struct. This - function can be used with a dyn_string struct on the stack or -diff -Nbaur gcc-3.4.4/libiberty/getpwd.c gcc-3.4.4-new/libiberty/getpwd.c ---- gcc-3.4.4/libiberty/getpwd.c Sun Oct 7 22:53:31 2001 -+++ gcc-3.4.4-new/libiberty/getpwd.c Wed Jul 6 01:50:39 2005 -@@ -35,6 +35,9 @@ - #if HAVE_SYS_STAT_H - #include - #endif -+#if HAVE_LIMITS_H -+#include -+#endif - - /* Prototype these in case the system headers don't provide them. */ - extern char *getpwd (); -diff -Nbaur gcc-3.4.4/libiberty/maint-tool gcc-3.4.4-new/libiberty/maint-tool ---- gcc-3.4.4/libiberty/maint-tool Tue Apr 15 20:21:38 2003 -+++ gcc-3.4.4-new/libiberty/maint-tool Wed Jul 6 01:50:39 2005 -@@ -213,6 +213,12 @@ - - sub deps { - -+ $crule = "\tif [ x\"\$(PICFLAG)\" != x ]; then \\\n"; -+ $crule .= "\t \$(COMPILE.c) \$(PICFLAG) \$< -o pic/\$@; \\\n"; -+ $crule .= "\telse true; fi\n"; -+ $crule .= "\t\$(COMPILE.c) \$< \$(OUTPUT_OPTION)\n"; -+ $crule .= "\n"; -+ - $incdir = shift @ARGV; - - opendir(INC, $incdir); -@@ -260,10 +266,10 @@ - @deps = sort { &locals_first($a,$b) } keys %scanned; - $obj = $f; - $obj =~ s/\.c$/.o/; -- $obj = "$obj:"; -+ $obj = "./$obj:"; - if ($#deps >= 0) { -- print OUT $obj; -- $len = length($obj); -+ print OUT "$obj \$(srcdir)/$f"; -+ $len = length("$obj $f"); - for $dt (@deps) { - $d = $mine{$dt}; - if ($len + length($d) > 70) { -@@ -275,7 +281,12 @@ - } - } - print OUT "\n"; -+ } else { -+ print OUT "$obj \$(srcdir)/$f\n"; - } -+ $c = $crule; -+ $c =~ s@\$\<@\$\(srcdir\)\/$f@g; -+ print OUT $c; - } - } - closedir(S); -diff -Nbaur gcc-3.4.4/libiberty/pex-common.h gcc-3.4.4-new/libiberty/pex-common.h ---- gcc-3.4.4/libiberty/pex-common.h Fri Jan 24 20:02:11 2003 -+++ gcc-3.4.4-new/libiberty/pex-common.h Wed Jul 6 01:50:39 2005 -@@ -1,6 +1,6 @@ - /* Utilities to execute a program in a subprocess (possibly linked by pipes - with other subprocesses), and wait for it. Shared logic. -- Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003 -+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004 - Free Software Foundation, Inc. - - This file is part of the libiberty library. -@@ -32,6 +32,9 @@ - - /* stdout file number. */ - #define STDOUT_FILE_NO 1 -+ -+/* stderr file number. */ -+#define STDERR_FILE_NO 2 - - /* value of `pipe': port index for reading. */ - #define READ_PORT 0 -diff -Nbaur gcc-3.4.4/libiberty/pex-unix.c gcc-3.4.4-new/libiberty/pex-unix.c ---- gcc-3.4.4/libiberty/pex-unix.c Fri Jan 24 20:02:11 2003 -+++ gcc-3.4.4-new/libiberty/pex-unix.c Wed Jul 6 01:50:39 2005 -@@ -1,7 +1,7 @@ - /* Utilities to execute a program in a subprocess (possibly linked by pipes - with other subprocesses), and wait for it. Generic Unix version - (also used for UWIN and VMS). -- Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003 -+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004 - Free Software Foundation, Inc. - - This file is part of the libiberty library. -@@ -44,28 +44,66 @@ - #define waitpid(pid, status, flags) wait(status) - #endif - --extern int execv (); --extern int execvp (); -+#ifdef vfork /* Autoconf may define this to fork for us. */ -+# define VFORK_STRING "fork" -+#else -+# define VFORK_STRING "vfork" -+#endif -+#ifdef HAVE_VFORK_H -+#include -+#endif -+#ifdef VMS -+#define vfork() (decc$$alloc_vfork_blocks() >= 0 ? \ -+ lib$get_current_invo_context(decc$$get_vfork_jmpbuf()) : -1) -+#endif /* VMS */ -+ -+/* Execute a program, possibly setting up pipes to programs executed -+ via other calls to this function. -+ -+ This version of the function uses vfork. In general vfork is -+ similar to setjmp/longmp, in that any variable which is modified by -+ the child process has an indeterminate value in the parent process. -+ We follow a safe approach here by not modifying any variables at -+ all in the child process (with the possible exception of variables -+ modified by xstrerror if exec fails, but this is unlikely to be -+ detectable). -+ -+ We work a little bit harder to avoid gcc warnings. gcc will warn -+ about any automatic variable which is live at the time of the -+ vfork, which is non-volatile, and which is either set more than -+ once or is an argument to the function. This warning isn't quite -+ right, since what we really care about is whether the variable is -+ live at the time of the vfork and set afterward by the child -+ process, but gcc only checks whether the variable is set more than -+ once. To avoid this warning, we ensure that any variable which is -+ live at the time of the vfork (i.e., used after the vfork) is set -+ exactly once and is not an argument, or is marked volatile. */ - - int --pexecute (program, argv, this_pname, temp_base, errmsg_fmt, errmsg_arg, flags) -+pexecute (program, argv, this_pname, temp_base, errmsg_fmt, errmsg_arg, -+ flagsarg) - const char *program; - char * const *argv; - const char *this_pname; - const char *temp_base ATTRIBUTE_UNUSED; - char **errmsg_fmt, **errmsg_arg; -- int flags; -+ int flagsarg; - { -- int (*func)() = (flags & PEXECUTE_SEARCH ? execvp : execv); - int pid; - int pdes[2]; -+ int out; - int input_desc, output_desc; -- int retries, sleep_interval; -+ int flags; -+ /* We declare these to be volatile to avoid warnings from gcc about -+ them being clobbered by vfork. */ -+ volatile int retries, sleep_interval; - /* Pipe waiting from last process, to be used as input for the next one. - Value is STDIN_FILE_NO if no pipe is waiting - (i.e. the next command is the first of a group). */ - static int last_pipe_input; - -+ flags = flagsarg; -+ - /* If this is the first process, initialize. */ - if (flags & PEXECUTE_FIRST) - last_pipe_input = STDIN_FILE_NO; -@@ -82,22 +120,24 @@ - *errmsg_arg = NULL; - return -1; - } -- output_desc = pdes[WRITE_PORT]; -+ out = pdes[WRITE_PORT]; - last_pipe_input = pdes[READ_PORT]; - } - else - { - /* Last process. */ -- output_desc = STDOUT_FILE_NO; -+ out = STDOUT_FILE_NO; - last_pipe_input = STDIN_FILE_NO; - } - -+ output_desc = out; -+ - /* Fork a subprocess; wait and retry if it fails. */ - sleep_interval = 1; - pid = -1; - for (retries = 0; retries < 4; retries++) - { -- pid = fork (); -+ pid = vfork (); - if (pid >= 0) - break; - sleep (sleep_interval); -@@ -131,12 +171,21 @@ - close (last_pipe_input); - - /* Exec the program. */ -- (*func) (program, argv); -+ if (flags & PEXECUTE_SEARCH) -+ execvp (program, argv); -+ else -+ execv (program, argv); - -- fprintf (stderr, "%s: ", this_pname); -- fprintf (stderr, install_error_msg, program); -- fprintf (stderr, ": %s\n", xstrerror (errno)); -- exit (-1); -+ /* We don't want to call fprintf after vfork. */ -+#define writeerr(s) write (STDERR_FILE_NO, s, strlen (s)) -+ writeerr (this_pname); -+ writeerr (": "); -+ writeerr ("installation problem, cannot exec '"); -+ writeerr (program); -+ writeerr ("': "); -+ writeerr (xstrerror (errno)); -+ writeerr ("\n"); -+ _exit (-1); - /* NOTREACHED */ - return 0; - -diff -Nbaur gcc-3.4.4/libiberty/pexecute.txh gcc-3.4.4-new/libiberty/pexecute.txh ---- gcc-3.4.4/libiberty/pexecute.txh Fri Jan 24 20:02:11 2003 -+++ gcc-3.4.4-new/libiberty/pexecute.txh Wed Jul 6 01:50:39 2005 -@@ -1,4 +1,4 @@ --@deftypefn Extension int pexecute (const char *@var{program}, char * const *@var{argv}, const char *@var{this_pname}, const char *@var{temp_base}, char **@var{errmsg_fmt}, char **@var{errmsg_arg}, int flags) -+@deftypefn Extension int pexecute (const char *@var{program}, char * const *@var{argv}, const char *@var{this_pname}, const char *@var{temp_base}, char **@var{errmsg_fmt}, char **@var{errmsg_arg}, int @var{flags}) - - Executes a program. - -@@ -61,3 +61,39 @@ - - pfinish is necessary for systems like MPW where a script is generated - that runs the requested programs. -+ -+@end undocumented -+ -+@deftypefn Extension FILE* pex_read (const char *@var{program}, char * const *@var{argv}, const char *@var{this_pname}, const char *@var{temp_base}, char **@var{errmsg_fmt}, char **@var{errmsg_arg}, int @var{flags}, int *@var{pidptr}) -+ -+Executes a program and returns a stdio file for the program's standard -+output. This is a safe version of the usual Unix function -+@code{popen}. -+ -+The first seven parameters are the same as for @code{pexecute}. The -+last parameter returns a process identifier to be passed to -+@code{pex_read_close}. -+ -+The only flags used for the @var{flags} parameter is -+@code{PEXECUTE_SEARCH}. -+ -+Upon failure, @var{errmsg_fmt} and @var{errmsg_arg} are set to the -+text of the error message with an optional argument (if not needed, -+@var{errmsg_arg} is set to @code{NULL}), and @code{NULL} is returned. -+@code{errno} is available to the caller to use. -+ -+@end deftypefn -+ -+@deftypefn Extension int pex_read_close (int @var{pid}, FILE *@var{file}, int *@var{status}, int @var{flags}) -+ -+Close a file opened by @code{pex_read}, and wait for the subprocess to -+complete. The @var{pid} and @var{file} arguments should have been -+obtained from a call to @code{pex_read}. -+ -+The result is the pid of the child reaped, or -1 for failure -+(@code{errno} says why). -+ -+On a successful return, *@var{status} is set to the exit status of the -+subprocess. -+ -+@end deftypefn -diff -Nbaur gcc-3.4.4/libiberty/pexrd-generic.c gcc-3.4.4-new/libiberty/pexrd-generic.c ---- gcc-3.4.4/libiberty/pexrd-generic.c Thu Jan 1 00:00:00 1970 -+++ gcc-3.4.4-new/libiberty/pexrd-generic.c Wed Jul 6 01:50:39 2005 -@@ -0,0 +1,72 @@ -+/* Execute a program and read stdout. Generic version. -+ Copyright (C) 2004 Free Software Foundation, Inc. -+ -+This file is part of the libiberty library. -+Libiberty is free software; you can redistribute it and/or -+modify it under the terms of the GNU Library General Public -+License as published by the Free Software Foundation; either -+version 2 of the License, or (at your option) any later version. -+ -+Libiberty 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 -+Library General Public License for more details. -+ -+You should have received a copy of the GNU Library General Public -+License along with libiberty; see the file COPYING.LIB. If not, -+write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -+Boston, MA 02111-1307, USA. */ -+ -+#include "pex-common.h" -+#include "pex-read.h" -+ -+#include -+#ifdef NEED_DECLARATION_ERRNO -+extern int errno; -+#endif -+#ifdef HAVE_STDLIB_H -+#include -+#endif -+ -+FILE * -+pex_read (program, argv, this_pname, temp_base, errmsg_fmt, errmsg_arg, flags, -+ pidptr) -+ const char *program; -+ char * const *argv; -+ const char *this_pname ATTRIBUTE_UNUSED; -+ const char *temp_base ATTRIBUTE_UNUSED; -+ char **errmsg_fmt; -+ char **errmsg_arg; -+ int flags ATTRIBUTE_UNUSED; -+ int *pidptr ATTRIBUTE_UNUSED; -+{ -+ char *cmd; -+ int i; -+ FILE *ret; -+ -+ cmd = xstrdup (program); -+ for (i = 0; argv[i] != NULL; ++i) -+ cmd = reconcat (cmd, cmd, " ", argv[i], NULL); -+ -+ ret = popen (cmd, "r"); -+ if (ret == NULL) -+ { -+ *errmsg_fmt = "popen"; -+ *errmsg_arg = NULL; -+ } -+ -+ free (cmd); -+ -+ return ret; -+} -+ -+int -+pex_read_close (pid, file, status, flags) -+ int pid ATTRIBUTE_UNUSED; -+ FILE *file; -+ int *status; -+ int flags ATTRIBUTE_UNUSED; -+{ -+ *status = pclose (file); -+ return 0; -+} -diff -Nbaur gcc-3.4.4/libiberty/pexrd-unix.c gcc-3.4.4-new/libiberty/pexrd-unix.c ---- gcc-3.4.4/libiberty/pexrd-unix.c Thu Jan 1 00:00:00 1970 -+++ gcc-3.4.4-new/libiberty/pexrd-unix.c Wed Jul 6 01:50:39 2005 -@@ -0,0 +1,164 @@ -+/* Execute a program and read stdout. Generic Unix version. -+ Copyright (C) 2004 Free Software Foundation, Inc. -+ -+This file is part of the libiberty library. -+Libiberty is free software; you can redistribute it and/or -+modify it under the terms of the GNU Library General Public -+License as published by the Free Software Foundation; either -+version 2 of the License, or (at your option) any later version. -+ -+Libiberty 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 -+Library General Public License for more details. -+ -+You should have received a copy of the GNU Library General Public -+License along with libiberty; see the file COPYING.LIB. If not, -+write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -+Boston, MA 02111-1307, USA. */ -+ -+#include "pex-common.h" -+ -+#include -+#include -+#ifdef NEED_DECLARATION_ERRNO -+extern int errno; -+#endif -+#ifdef HAVE_STRING_H -+#include -+#endif -+#ifdef HAVE_STDLIB_H -+#include -+#endif -+#if HAVE_UNISTD_H -+#include -+#endif -+#ifdef HAVE_SYS_WAIT_H -+#include -+#endif -+ -+#ifndef HAVE_WAITPID -+#define waitpid(pid, status, flags) wait(status) -+#endif -+ -+#ifdef vfork /* Autoconf may define this to fork for us. */ -+# define VFORK_STRING "fork" -+#else -+# define VFORK_STRING "vfork" -+#endif -+#ifdef HAVE_VFORK_H -+#include -+#endif -+#ifdef VMS -+#define vfork() (decc$$alloc_vfork_blocks() >= 0 ? \ -+ lib$get_current_invo_context(decc$$get_vfork_jmpbuf()) : -1) -+#endif /* VMS */ -+ -+/* A safe version of popen. See pex-unix.c for notes on vfork. */ -+ -+FILE * -+pex_read (program, argv, this_pname, temp_base, errmsg_fmt, errmsg_arg, -+ flagsarg, pidptr) -+ const char *program; -+ char * const *argv; -+ const char *this_pname; -+ const char *temp_base ATTRIBUTE_UNUSED; -+ char **errmsg_fmt; -+ char **errmsg_arg; -+ int flagsarg; -+ int *pidptr; -+{ -+ int flags; -+ int pid; -+ int pdes[2]; -+ int in; -+ int out; -+ FILE *ret; -+ /* We declare these to be volatile to avoid warnings from gcc about -+ them being clobbered by vfork. */ -+ volatile int retries; -+ volatile int sleep_interval; -+ -+ flags = flagsarg; -+ -+ if (pipe (pdes) < 0) -+ { -+ *errmsg_fmt = "pipe"; -+ *errmsg_arg = NULL; -+ return NULL; -+ } -+ -+ in = pdes[READ_PORT]; -+ out = pdes[WRITE_PORT]; -+ -+ sleep_interval = 1; -+ pid = -1; -+ for (retries = 0; retries < 4; retries++) -+ { -+ pid = vfork (); -+ if (pid >= 0) -+ break; -+ sleep (sleep_interval); -+ sleep_interval *= 2; -+ } -+ -+ switch (pid) -+ { -+ case -1: -+ *errmsg_fmt = "fork"; -+ *errmsg_arg = NULL; -+ return NULL; -+ -+ case 0: -+ if (out != STDOUT_FILE_NO) -+ { -+ close (STDOUT_FILE_NO); -+ dup (out); -+ close (out); -+ } -+ close (in); -+ -+ if (flags & PEXECUTE_SEARCH) -+ execvp (program, argv); -+ else -+ execv (program, argv); -+ -+ /* We don't want to call fprintf after vfork. */ -+#define writeerr(s) write (STDERR_FILE_NO, s, strlen (s)) -+ writeerr (this_pname); -+ writeerr (": "); -+ writeerr ("installation problem, cannot exec '"); -+ writeerr (program); -+ writeerr ("': "); -+ writeerr (xstrerror (errno)); -+ writeerr ("\n"); -+ _exit (-1); -+ /* NOTREACHED */ -+ return NULL; -+ -+ default: -+ close (out); -+ ret = fdopen (in, "r"); -+ if (ret == NULL) -+ { -+ *errmsg_fmt = "fdopen"; -+ *errmsg_arg = NULL; -+ return NULL; -+ } -+ *pidptr = pid; -+ return ret; -+ } -+ /* NOTREACHED */ -+} -+ -+int -+pex_read_close (pid, file, status, flags) -+ int pid; -+ FILE *file; -+ int *status; -+ int flags ATTRIBUTE_UNUSED; -+{ -+ /* ??? Canonicalize STATUS value? */ -+ fclose (file); -+ return waitpid (pid, status, 0); -+} -diff -Nbaur gcc-3.4.4/libiberty/regex.c gcc-3.4.4-new/libiberty/regex.c ---- gcc-3.4.4/libiberty/regex.c Tue Apr 15 15:24:26 2003 -+++ gcc-3.4.4-new/libiberty/regex.c Wed Jul 6 01:50:39 2005 -@@ -36,6 +36,8 @@ - # include - #endif - -+#include -+ - #ifndef PARAMS - # if defined __GNUC__ || (defined __STDC__ && __STDC__) - # define PARAMS(args) args -@@ -8040,7 +8042,7 @@ - - /* Map uppercase characters to corresponding lowercase ones. */ - for (i = 0; i < CHAR_SET_SIZE; i++) -- preg->translate[i] = ISUPPER (i) ? TOLOWER (i) : i; -+ preg->translate[i] = ISUPPER (i) ? TOLOWER (i) : (int) i; - } - else - preg->translate = NULL; -@@ -8175,7 +8177,7 @@ - size_t - regerror (errcode, preg, errbuf, errbuf_size) - int errcode; -- const regex_t *preg; -+ const regex_t *preg ATTRIBUTE_UNUSED; - char *errbuf; - size_t errbuf_size; - { -diff -Nbaur gcc-3.4.4/libiberty/strerror.c gcc-3.4.4-new/libiberty/strerror.c ---- gcc-3.4.4/libiberty/strerror.c Thu Oct 2 20:06:29 2003 -+++ gcc-3.4.4-new/libiberty/strerror.c Wed Jul 6 01:50:39 2005 -@@ -2,9 +2,6 @@ - Written by Fred Fish. fnf@cygnus.com - This file is in the public domain. --Per Bothner. */ - --#include "ansidecl.h" --#include "libiberty.h" -- - #include "config.h" - - #ifdef HAVE_SYS_ERRLIST -@@ -17,6 +14,9 @@ - #define sys_errlist sys_errlist__ - #endif - -+#include "ansidecl.h" -+#include "libiberty.h" -+ - #include - #include - -@@ -469,8 +469,10 @@ - - #else - -+#ifndef __MINGW32__ - extern int sys_nerr; - extern char *sys_errlist[]; -+#endif - - #endif - -diff -Nbaur gcc-3.4.4/libiberty/testsuite/test-demangle.c gcc-3.4.4-new/libiberty/testsuite/test-demangle.c ---- gcc-3.4.4/libiberty/testsuite/test-demangle.c Fri Jan 2 20:33:55 2004 -+++ gcc-3.4.4-new/libiberty/testsuite/test-demangle.c Wed Jul 6 01:50:39 2005 -@@ -26,6 +26,12 @@ - #include - #include "libiberty.h" - #include "demangle.h" -+#ifdef HAVE_STRING_H -+#include -+#endif -+#if HAVE_STDLIB_H -+# include -+#endif - - struct line - { -@@ -119,7 +125,7 @@ - int argc; - char **argv; - { -- enum demangling_styles style; -+ enum demangling_styles style = auto_demangling; - int no_params; - int is_v3_ctor; - int is_v3_dtor; -diff -Nbaur gcc-3.4.4/libstdc++-v3/config/os/mingw32/os_defines.h gcc-3.4.4-new/libstdc++-v3/config/os/mingw32/os_defines.h ---- gcc-3.4.4/libstdc++-v3/config/os/mingw32/os_defines.h Sat Jul 5 05:05:32 2003 -+++ gcc-3.4.4-new/libstdc++-v3/config/os/mingw32/os_defines.h Wed Jul 6 01:50:39 2005 -@@ -45,4 +45,11 @@ - #undef NOMINMAX - #define NOMINMAX 1 - -+// mingw32 local hack: Override _GLIBCXX_USE_WCHAR_T for wstring -+#define _GLIBCXX_USE_WSTRING 1 -+ -+// mingw32 local hack: Cast long double to doubles to workaround -+// printf bug. -+#define _GLIBCXX_NO_LONG_DOUBLE_IO 1 -+ - #endif -diff -Nbaur gcc-3.4.4/libstdc++-v3/configure.host gcc-3.4.4-new/libstdc++-v3/configure.host ---- gcc-3.4.4/libstdc++-v3/configure.host Tue Oct 5 17:32:49 2004 -+++ gcc-3.4.4-new/libstdc++-v3/configure.host Wed Jul 6 01:50:39 2005 -@@ -180,6 +180,7 @@ - ;; - mingw32*) - os_include_dir="os/mingw32" -+ atomicity_dir="cpu/i486" - ;; - netbsd*) - os_include_dir="os/bsd/netbsd" -diff -Nbaur gcc-3.4.4/libstdc++-v3/include/bits/char_traits.h gcc-3.4.4-new/libstdc++-v3/include/bits/char_traits.h ---- gcc-3.4.4/libstdc++-v3/include/bits/char_traits.h Thu Mar 18 17:36:47 2004 -+++ gcc-3.4.4-new/libstdc++-v3/include/bits/char_traits.h Wed Jul 6 01:50:39 2005 -@@ -296,7 +296,7 @@ - }; - - --#ifdef _GLIBCXX_USE_WCHAR_T -+#if defined (_GLIBCXX_USE_WCHAR_T) || defined (_GLIBCXX_USE_WSTRING) - /// 21.1.3.2 char_traits specializations - template<> - struct char_traits -@@ -304,8 +304,10 @@ - typedef wchar_t char_type; - typedef wint_t int_type; - typedef streamoff off_type; -+#if defined (_GLIBCXX_USE_WCHAR_T) - typedef wstreampos pos_type; - typedef mbstate_t state_type; -+#endif - - static void - assign(char_type& __c1, const char_type& __c2) -diff -Nbaur gcc-3.4.4/libstdc++-v3/include/bits/locale_facets.tcc gcc-3.4.4-new/libstdc++-v3/include/bits/locale_facets.tcc ---- gcc-3.4.4/libstdc++-v3/include/bits/locale_facets.tcc Thu Nov 18 10:50:19 2004 -+++ gcc-3.4.4-new/libstdc++-v3/include/bits/locale_facets.tcc Wed Jul 6 01:50:39 2005 -@@ -765,7 +765,13 @@ - string __xtrc; - __xtrc.reserve(32); - __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); -+#if defined (GLIBCXX_NO_LONG_DOUBLE_IO) && !defined(_GLIBCXX_USE_C99) -+ double __vd; -+ std::__convert_to_v(__xtrc.c_str(), __vd, __err, _S_get_c_locale()); -+ __v = static_cast(__vd); -+#else - std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); -+#endif - return __beg; - } - -@@ -1220,7 +1226,14 @@ - num_put<_CharT, _OutIter>:: - do_put(iter_type __s, ios_base& __io, char_type __fill, - long double __v) const -- { return _M_insert_float(__s, __io, __fill, 'L', __v); } -+ { -+#ifdef _GLIBCXX_NO_LONG_DOUBLE_IO -+ return _M_insert_float(__s, __io, __fill, char_type(), -+ static_cast(__v)); -+#else -+ return _M_insert_float(__s, __io, __fill, 'L', __v); -+#endif -+ } - - template - _OutIter -@@ -1464,7 +1477,13 @@ - __beg = _M_extract(__beg, __end, __io, __err, __str); - else - __beg = _M_extract(__beg, __end, __io, __err, __str); -+#if defined _GLIBCXX_NO_LONG_DOUBLE_IO && !defined (_GLIBCXX_USE_C99) -+ double __dunits; -+ std::__convert_to_v(__str.c_str(), __dunits, __err, _S_get_c_locale()); -+ __units = static_cast(__dunits); -+#else // _GLIBCXX_NO_LONG_DOUBLE_IO && !defined (_GLIBCXX_USE_C99) - std::__convert_to_v(__str.c_str(), __units, __err, _S_get_c_locale()); -+#endif // _GLIBCXX_NO_LONG_DOUBLE_IO - return __beg; - } - -@@ -1667,6 +1686,32 @@ - { - const locale __loc = __io.getloc(); - const ctype<_CharT>& __ctype = use_facet >(__loc); -+#ifdef _GLIBCXX_NO_LONG_DOUBLE_IO -+ double __dunits = static_cast(__units); -+#ifdef _GLIBCXX_USE_C99 -+ // First try a buffer perhaps big enough. -+ int __cs_size = 64; -+ char* __cs = static_cast(__builtin_alloca(__cs_size)); -+ // _GLIBCXX_RESOLVE_LIB_DEFECTS -+ // 328. Bad sprintf format modifier in money_put<>::do_put() -+ int __len = std::__convert_from_v(__cs, __cs_size, "%.0f", __dunits, -+ _S_get_c_locale()); -+ // If the buffer was not large enough, try again with the correct size. -+ if (__len >= __cs_size) -+ { -+ __cs_size = __len + 1; -+ __cs = static_cast(__builtin_alloca(__cs_size)); -+ __len = std::__convert_from_v(__cs, __cs_size, "%.0f", __dunits, -+ _S_get_c_locale()); -+ } -+#else -+ // max_exponent10 + 1 for the integer part, + 2 for sign and '\0'. -+ const int __cs_size = numeric_limits::max_exponent10 + 3; -+ char* __cs = static_cast(__builtin_alloca(__cs_size)); -+ int __len = std::__convert_from_v(__cs, 0, "%.0f", __dunits, -+ _S_get_c_locale()); -+#endif -+#else // _GLIBCXX_NO_LONG_DOUBLE_IO - #ifdef _GLIBCXX_USE_C99 - // First try a buffer perhaps big enough. - int __cs_size = 64; -@@ -1690,6 +1735,7 @@ - int __len = std::__convert_from_v(__cs, 0, "%.*Lf", __units, - _S_get_c_locale(), 0); - #endif -+#endif // _GLIBCXX_NO_LONG_DOUBLE_IO - _CharT* __ws = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) - * __cs_size)); - __ctype.widen(__cs, __cs + __len, __ws); -diff -Nbaur gcc-3.4.4/libstdc++-v3/include/bits/stringfwd.h gcc-3.4.4-new/libstdc++-v3/include/bits/stringfwd.h ---- gcc-3.4.4/libstdc++-v3/include/bits/stringfwd.h Thu Mar 18 17:37:03 2004 -+++ gcc-3.4.4-new/libstdc++-v3/include/bits/stringfwd.h Wed Jul 6 01:50:39 2005 -@@ -59,7 +59,7 @@ - - typedef basic_string string; - --#ifdef _GLIBCXX_USE_WCHAR_T -+#if defined (_GLIBCXX_USE_WCHAR_T) || defined (_GLIBCXX_USE_WSTRING) - template<> struct char_traits; - - typedef basic_string wstring; -diff -Nbaur gcc-3.4.4/libstdc++-v3/libsupc++/Makefile.in gcc-3.4.4-new/libstdc++-v3/libsupc++/Makefile.in ---- gcc-3.4.4/libstdc++-v3/libsupc++/Makefile.in Thu Mar 18 17:37:08 2004 -+++ gcc-3.4.4-new/libstdc++-v3/libsupc++/Makefile.in Wed Jul 6 01:50:39 2005 -@@ -210,7 +210,7 @@ - # These bits are all figured out from configure. Look in acinclude.m4 - # or configure.ac to see how they are set. See GLIBCXX_EXPORT_FLAGS. - CONFIG_CXXFLAGS = \ -- $(SECTION_FLAGS) $(EXTRA_CXX_FLAGS) -+ $(EXTRA_CXX_FLAGS) - - WARN_CXXFLAGS = \ - $(WARN_FLAGS) $(WERROR) -fdiagnostics-show-location=once -diff -Nbaur gcc-3.4.4/libstdc++-v3/libsupc++/eh_globals.cc gcc-3.4.4-new/libstdc++-v3/libsupc++/eh_globals.cc ---- gcc-3.4.4/libstdc++-v3/libsupc++/eh_globals.cc Mon Nov 8 17:41:19 2004 -+++ gcc-3.4.4-new/libstdc++-v3/libsupc++/eh_globals.cc Wed Jul 6 01:50:40 2005 -@@ -32,6 +32,9 @@ - #include - #include "unwind-cxx.h" - #include "bits/c++config.h" -+#ifdef __MINGW32__ -+#undef __GTHREAD_HIDE_WIN32API -+#endif - #include "bits/gthr.h" - - using namespace __cxxabiv1; -diff -Nbaur gcc-3.4.4/libstdc++-v3/libsupc++/eh_term_handler.cc gcc-3.4.4-new/libstdc++-v3/libsupc++/eh_term_handler.cc ---- gcc-3.4.4/libstdc++-v3/libsupc++/eh_term_handler.cc Tue Sep 2 19:46:54 2003 -+++ gcc-3.4.4-new/libstdc++-v3/libsupc++/eh_term_handler.cc Wed Jul 6 01:50:40 2005 -@@ -41,6 +41,7 @@ - # include - #endif - -+#if !(defined (__MINGW32__) || defined (__CYGWIN__)) - /* The current installed user handler. */ - std::terminate_handler __cxxabiv1::__terminate_handler = - #if _GLIBCXX_HOSTED -@@ -49,3 +50,4 @@ - std::abort; - #endif - -+#endif -diff -Nbaur gcc-3.4.4/libstdc++-v3/libsupc++/eh_terminate.cc gcc-3.4.4-new/libstdc++-v3/libsupc++/eh_terminate.cc ---- gcc-3.4.4/libstdc++-v3/libsupc++/eh_terminate.cc Sat May 24 17:22:03 2003 -+++ gcc-3.4.4-new/libstdc++-v3/libsupc++/eh_terminate.cc Wed Jul 6 01:50:40 2005 -@@ -50,6 +50,11 @@ - void - std::terminate () - { -+#if 0 // (defined (__MINGW32__) || defined (__CYGWIN__)) -+ if (__terminate_handler == NULL ) -+ __terminate (__gnu_cxx::__verbose_terminate_handler); -+ else -+#endif - __terminate (__terminate_handler); - } - -@@ -63,6 +68,11 @@ - void - std::unexpected () - { -+#if 0 // (defined (__MINGW32__) || defined (__CYGWIN__)) -+ if (__unexpected_handler == NULL) -+ std::terminate(); -+ else -+#endif - __unexpected (__unexpected_handler); - } - -diff -Nbaur gcc-3.4.4/libstdc++-v3/libsupc++/eh_unex_handler.cc gcc-3.4.4-new/libstdc++-v3/libsupc++/eh_unex_handler.cc ---- gcc-3.4.4/libstdc++-v3/libsupc++/eh_unex_handler.cc Sat May 24 17:22:03 2003 -+++ gcc-3.4.4-new/libstdc++-v3/libsupc++/eh_unex_handler.cc Wed Jul 6 01:50:40 2005 -@@ -29,6 +29,7 @@ - - #include "unwind-cxx.h" - -+#if !(defined (__MINGW32__) || defined (__CYGWIN__)) - /* The current installed user handler. */ - std::unexpected_handler __cxxabiv1::__unexpected_handler = std::terminate; -- -+#endif -diff -Nbaur gcc-3.4.4/libstdc++-v3/libsupc++/typeinfo gcc-3.4.4-new/libstdc++-v3/libsupc++/typeinfo ---- gcc-3.4.4/libstdc++-v3/libsupc++/typeinfo Sat Jul 5 05:05:40 2003 -+++ gcc-3.4.4-new/libstdc++-v3/libsupc++/typeinfo Wed Jul 6 01:50:40 2005 -@@ -44,7 +44,7 @@ - class __class_type_info; - } // namespace __cxxabiv1 - --#if !__GXX_WEAK__ -+#if !__GXX_WEAK__ || defined (__MINGW32__) || defined (__CYGWIN__) - // If weak symbols are not supported, typeinfo names are not merged. - #define __GXX_MERGED_TYPEINFO_NAMES 0 - #else -diff -Nbaur gcc-3.4.4/libstdc++-v3/libsupc++/unwind-cxx.h gcc-3.4.4-new/libstdc++-v3/libsupc++/unwind-cxx.h ---- gcc-3.4.4/libstdc++-v3/libsupc++/unwind-cxx.h Sat Jul 5 05:05:41 2003 -+++ gcc-3.4.4-new/libstdc++-v3/libsupc++/unwind-cxx.h Wed Jul 6 01:50:40 2005 -@@ -125,9 +125,16 @@ - extern void __terminate(std::terminate_handler) __attribute__((noreturn)); - extern void __unexpected(std::unexpected_handler) __attribute__((noreturn)); - --// The current installed user handlers. -+ // The current installed user handlers. -+#if defined (__MINGW32__) || defined (__CYGWIN__) -+extern "C" void** __w32_sharedptr_terminate; -+extern "C" void** __w32_sharedptr_unexpected; -+#define __terminate_handler (*(std::terminate_handler*)(__w32_sharedptr_terminate)) -+#define __unexpected_handler (*(std::unexpected_handler*)(__w32_sharedptr_unexpected)) -+#else - extern std::terminate_handler __terminate_handler; - extern std::unexpected_handler __unexpected_handler; -+#endif - - // These are explicitly GNU C++ specific. - -diff -Nbaur gcc-3.4.4/libstdc++-v3/src/Makefile.in gcc-3.4.4-new/libstdc++-v3/src/Makefile.in ---- gcc-3.4.4/libstdc++-v3/src/Makefile.in Fri Apr 16 20:08:35 2004 -+++ gcc-3.4.4-new/libstdc++-v3/src/Makefile.in Wed Jul 6 01:50:40 2005 -@@ -211,7 +211,7 @@ - # These bits are all figured out from configure. Look in acinclude.m4 - # or configure.ac to see how they are set. See GLIBCXX_EXPORT_FLAGS. - CONFIG_CXXFLAGS = \ -- $(SECTION_FLAGS) $(EXTRA_CXX_FLAGS) -+ $(EXTRA_CXX_FLAGS) - - WARN_CXXFLAGS = \ - $(WARN_FLAGS) $(WERROR) -fdiagnostics-show-location=once -diff -Nbaur gcc-3.4.4/libstdc++-v3/src/globals_io.cc gcc-3.4.4-new/libstdc++-v3/src/globals_io.cc ---- gcc-3.4.4/libstdc++-v3/src/globals_io.cc Thu Mar 18 17:37:13 2004 -+++ gcc-3.4.4-new/libstdc++-v3/src/globals_io.cc Wed Jul 6 01:50:40 2005 -@@ -26,6 +26,9 @@ - // the GNU General Public License. - - #include "bits/c++config.h" -+#ifdef __MINGW32__ -+#undef __GTHREAD_HIDE_WIN32API -+#endif - #include "bits/gthr.h" - #include - #include -diff -Nbaur gcc-3.4.4/ltcf-c.sh gcc-3.4.4-new/ltcf-c.sh ---- gcc-3.4.4/ltcf-c.sh Wed Nov 19 05:29:32 2003 -+++ gcc-3.4.4-new/ltcf-c.sh Wed Jul 6 01:50:40 2005 -@@ -38,17 +38,17 @@ - lt_simple_link_test_code='main(){return(0);}' - - ## Linker Characteristics --case $host_os in --cygwin* | mingw*) -+#case $host_os in -+#cygwin* | mingw*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. -- if test "$with_gcc" != yes; then -- with_gnu_ld=no -- fi -- ;; -- --esac -+# if test "$with_gcc" != yes; then -+# with_gnu_ld=no -+# fi -+# ;; -+# -+#esac - - ld_shlibs=yes - if test "$with_gnu_ld" = yes; then diff --git a/patches/pspsdk-1.0+beta.patch b/patches/pspsdk-1.0+beta.patch deleted file mode 100644 index b85f7b7..0000000 --- a/patches/pspsdk-1.0+beta.patch +++ /dev/null @@ -1,42 +0,0 @@ -diff -NBaur pspsdk-1.0+beta/tools/psp-config.c pspsdk-1.0+beta-new/tools/psp-config.c ---- pspsdk-1.0+beta/tools/psp-config.c Mon Jun 27 06:31:22 2005 -+++ pspsdk-1.0+beta-new/tools/psp-config.c Tue Jul 5 04:54:45 2005 -@@ -17,8 +19,17 @@ - #define PATH_SEP ":" - #define DIR_SEP '/' - #define DIR_SEP_STR "/" -+ -+#ifdef __MINGW32__ -+ -+/* The suffix to the path to strip off, if this is not there then we have an error */ -+#define PSPDEV_PATH_SUFFIX "/bin/psp-config.exe" -+#else -+ - /* The suffix to the path to strip off, if this is not there then we have an error */ - #define PSPDEV_PATH_SUFFIX "/bin/psp-config" -+ -+#endif - /************************/ - - /* Speficies that the current usage is to the print the pspsdk path */ -@@ -70,6 +81,20 @@ - int found = 0; - - /* Check if name is an absolute path, if so out job is done */ -+#ifdef __MINGW32__ -+ -+ char *ptr = name; -+ -+ char temp = name[0]; -+ *(ptr++) = '/'; -+ *(ptr++) = temp; -+ while (*(ptr)) { -+ temp = *(ptr); -+ if (temp == '\\') *(ptr) = '/'; -+ ptr++; -+ } -+ -+#endif - if(name[0] == DIR_SEP) - { - /* Absolute path */