diff --git a/dkppc/patches/binutils-2.16.1.patch b/dkppc/patches/binutils-2.16.1.patch deleted file mode 100644 index 77248cb..0000000 --- a/dkppc/patches/binutils-2.16.1.patch +++ /dev/null @@ -1,402 +0,0 @@ -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 -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 - srr1 has the value 27 -+ gqr0..7 has the value 912..919 - - The table is sorted. Suitable for searching by a binary search. */ - -@@ -407,6 +408,15 @@ - - { "fpscr", 0 }, - -+ { "gqr0", 912}, -+ { "gqr1", 913}, -+ { "gqr2", 914}, -+ { "gqr3", 915}, -+ { "gqr4", 916}, -+ { "gqr5", 917}, -+ { "gqr6", 918}, -+ { "gqr7", 919}, -+ - { "lr", 8 }, /* Link Register */ - - { "pmr", 0 }, -@@ -906,6 +916,9 @@ - ppc_cpu = (PPC_OPCODE_PPC | PPC_OPCODE_CLASSIC - | PPC_OPCODE_64 | PPC_OPCODE_POWER4); - } -+ else if (strcmp (arg, "gekko") == 0) -+ ppc_cpu = PPC_OPCODE_CLASSIC | PPC_OPCODE_PPC | PPC_OPCODE_32 | PPC_OPCODE_GEKKO; -+ - /* -mcom means assemble for the common intersection between Power - and PowerPC. At present, we just allow the union, rather - than the intersection. */ -@@ -1107,7 +1120,9 @@ - -me500, -me500x2 generate code for Motorola e500 core complex\n\ - -mspe generate code for Motorola SPE instructions\n\ - -mregnames Allow symbolic names for registers\n\ ---mno-regnames Do not allow symbolic names for registers\n")); -+-mno-regnames Do not allow symbolic names for registers\n\ -+-mspe generate code for Motorola SPE instructions\n\ -+-mgekko generate code for PowerPC Gekko\n")); - #ifdef OBJ_ELF - fprintf (stream, _("\ - -mrelocatable support for GCC's -mrelocatble option\n\ -@@ -1150,6 +1165,8 @@ - else - ppc_cpu |= PPC_OPCODE_PPC | PPC_OPCODE_CLASSIC | PPC_OPCODE_32; - } -+ else if (strcmp(default_cpu, "gekko") == 0) -+ ppc_cpu = PPC_OPCODE_PPC | PPC_OPCODE_CLASSIC | PPC_OPCODE_32 | PPC_OPCODE_GEKKO; - else - as_fatal (_("Unknown default cpu = %s, os = %s"), - default_cpu, default_os); -@@ -2570,6 +2587,26 @@ - { - endc = ')'; - need_paren = 0; -+ if (opindex_ptr[1]) -+ { -+ /* do check here if we have further opcodes */ -+ if (*str != endc && (endc != ',' || *str != '\0')) -+ { -+ as_bad(_("syntax error; found `%c' but expected `%c'"),*str,endc); -+ break; -+ } -+ /* we have to move over whitespace ourselves */ -+ if (*str != '\0') -+ { -+ ++str; -+ while (ISSPACE(*str)) -+ { -+ ++str; -+ } -+ } -+ /* now we're looking for the comma */ -+ endc = ','; -+ } - } - else if ((operand->flags & PPC_OPERAND_PARENS) != 0) - { -@@ -2588,6 +2625,8 @@ - break; - } - -+ /* The call to expression should have advanced str past any -+ whitespace. */ - if (*str != '\0') - ++str; - } -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 - -+/* Opcode is only supported by the PowerPC Gekko processor. */ -+#define PPC_OPCODE_GEKKO (040000000) -+ - /* A macro to extract the major opcode from an instruction. */ - #define PPC_OP(i) (((i) >> 26) & 0x3f) - -@@ -281,6 +284,10 @@ - /* This operand is for the DQ field in a DQ form instruction. */ - #define PPC_OPERAND_DQ (0100000) - -+/* This operand names a quantization register. The disassembler -+ prints these with a leading 'gqr'. */ -+#define PPC_OPERAND_GQR (040000) -+ - /* 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 --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)) -+ { -+ dialect |= PPC_OPCODE_GEKKO; -+ dialect &= ~PPC_OPCODE_ALTIVEC; -+ } -+ else - dialect |= (PPC_OPCODE_403 | PPC_OPCODE_601 | PPC_OPCODE_CLASSIC - | PPC_OPCODE_COMMON | PPC_OPCODE_ALTIVEC); - -@@ -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); -+ else if ((operand->flags & PPC_OPERAND_GQR) != 0) -+ (*info->fprintf_func) (info->stream, "gqr%ld", value); - else if ((operand->flags & PPC_OPERAND_CR) == 0 - || (dialect & PPC_OPCODE_PPC) == 0) - (*info->fprintf_func) (info->stream, "%ld", value); -@@ -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 --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 *); - -+static unsigned long insert_psq_gd (unsigned long, long, int, const char **); -+static long extract_psq_gd (unsigned long, int, int *); -+static unsigned long insert_psq_gx (unsigned long, long, int, const char **); -+static long extract_psq_gx (unsigned long, int, int *); -+ -+ -+ - /* The operands table. - - The fields are bits, shift, insert, extract, flags. -@@ -558,6 +565,25 @@ - #define MTMSRD_L WS + 1 - { 1, 16, NULL, NULL, PPC_OPERAND_OPTIONAL }, - -+ /* I Field in psq_ instructions */ -+#define PSQ_DD MTMSRD_L + 1 -+ { 12, 0, 0, 0, PPC_OPERAND_PARENS|PPC_OPERAND_SIGNED }, -+ -+ /* W Field in psq_ instructions */ -+#define PSQ_WD PSQ_DD + 1 -+ { 1, 15, 0, 0, 0 }, -+ -+ /* d Field in psq_ instructions */ -+#define PSQ_GD PSQ_WD + 1 -+ { 10, 12, insert_psq_gd, extract_psq_gd, PPC_OPERAND_GQR }, -+ -+ /* I Field in psq_ instructions A*/ -+#define PSQ_WX PSQ_GD + 1 -+ { 1, 10, 0, 0, 0 }, -+ -+ /* W Field in psq_ instructions */ -+#define PSQ_GX PSQ_WX + 1 -+ { 10, 7, insert_psq_gx, extract_psq_gx, PPC_OPERAND_GQR }, - }; - - /* The functions used to insert and extract complicated operands. */ -@@ -1432,6 +1458,48 @@ - return ret; - } - -+static unsigned long -+insert_psq_gd (unsigned long insn, -+ long value, -+ int dialect ATTRIBUTE_UNUSED, -+ const char **errmsg) -+{ -+ if (value >= 912 && value <= 919) -+ value -= 912; -+ if (value < 0 || value > 7) -+ *errmsg = _("invalid quantization register"); -+ return insn | ((value & 7) << 12); -+} -+ -+static long -+extract_psq_gd (unsigned long insn, -+ int dialect ATTRIBUTE_UNUSED, -+ int *invalid ATTRIBUTE_UNUSED) -+{ -+ return ((insn & 0x7000) >> 12); -+} -+ -+static unsigned long -+insert_psq_gx (unsigned long insn, -+ long value, -+ int dialect ATTRIBUTE_UNUSED, -+ const char **errmsg) -+{ -+ if (value >= 912 && value <= 919) -+ value -= 912; -+ if (value < 0 || value > 7) -+ *errmsg = _("invalid quantization register"); -+ return insn | ((value & 7) << 7); -+} -+ -+static long -+extract_psq_gx (unsigned long insn, -+ int dialect ATTRIBUTE_UNUSED, -+ int *invalid ATTRIBUTE_UNUSED) -+{ -+ return ((insn & 0x380) >> 7); -+} -+ - /* Macros used to form opcodes. */ - - /* The main opcode. */ -@@ -1715,6 +1783,10 @@ - #define XUC(op, xop) (OP (op) | (((unsigned long)(xop)) & 0x1f)) - #define XUC_MASK XUC(0x3f, 0x1f) - -+/* A PSQ style load/store indexed */ -+#define PSQX(op, xop) (OP (op) | (((unsigned long)(xop)) & 0x7f)) -+#define PSQX_MASK PSQX(0x3f,0x7f) -+ - /* The BO encodings used in extended conditional branch mnemonics. */ - #define BODNZF (0x0) - #define BODNZFP (0x1) -@@ -1805,6 +1877,7 @@ - #define PPCCHLK PPC_OPCODE_CACHELCK - #define PPCCHLK64 PPC_OPCODE_CACHELCK | PPC_OPCODE_BOOKE64 - #define PPCRFMCI PPC_OPCODE_RFMCI -+#define PPCGEKKO PPC_OPCODE_GEKKO - - /* The opcode table. - -@@ -4612,6 +4685,99 @@ - - { "fcfid", XRC(63,846,0), XRA_MASK, PPC64, { FRT, FRB } }, - { "fcfid.", XRC(63,846,1), XRA_MASK, PPC64, { FRT, FRB } }, -+ -+/* GEKKO specific stuff */ -+{ "dcbz_l", X(4,1014), XRT_MASK, PPCGEKKO, { RA, RB }}, -+ -+{ "ps_abs", XRC(4,264,0), XRA_MASK, PPCGEKKO, { FRT,FRB }}, -+{ "ps_abs.", XRC(4,264,1), XRA_MASK, PPCGEKKO, { FRT,FRB }}, -+ -+{ "ps_add", A(4,21,0), AFRC_MASK, PPCGEKKO, { FRT, FRA, FRB }}, -+{ "ps_add.", A(4,21,1), AFRC_MASK, PPCGEKKO, { FRT, FRA, FRB }}, -+ -+{ "ps_cmpo0", X(4,32), X_MASK|(3<<21), PPCGEKKO, { BF, FRA, FRB }}, -+{ "ps_cmpo1", X(4,96), X_MASK|(3<<21), PPCGEKKO, { BF, FRA, FRB }}, -+ -+{ "ps_cmpu0", X(4,0), X_MASK|(3<<21), PPCGEKKO, { BF, FRA, FRB }}, -+{ "ps_cmpu1", X(4,64), X_MASK|(3<<21), PPCGEKKO, { BF, FRA, FRB }}, -+ -+{ "ps_div", A(4,18,0), AFRC_MASK, PPCGEKKO, { FRT, FRA, FRB }}, -+{ "ps_div.", A(4,18,1), AFRC_MASK, PPCGEKKO, { FRT, FRA, FRB }}, -+ -+{ "ps_madd", A(4,29,0), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+{ "ps_madd.", A(4,29,1), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+ -+{ "ps_madds0", A(4,14,0), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+{ "ps_madds0.", A(4,14,1), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+ -+{ "ps_madds1", A(4,15,0), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+{ "ps_madds1.", A(4,15,1), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+ -+{ "ps_merge00", XRC(4,528,0), X_MASK, PPCGEKKO, { FRT,FRA,FRB }}, -+{ "ps_merge00.", XRC(4,528,1), X_MASK, PPCGEKKO, { FRT,FRA,FRB }}, -+ -+{ "ps_merge01", XRC(4,560,0), X_MASK, PPCGEKKO, { FRT,FRA,FRB }}, -+{ "ps_merge01.", XRC(4,560,1), X_MASK, PPCGEKKO, { FRT,FRA,FRB }}, -+ -+{ "ps_merge10", XRC(4,592,0), X_MASK, PPCGEKKO, { FRT,FRA,FRB }}, -+{ "ps_merge10.", XRC(4,592,1), X_MASK, PPCGEKKO, { FRT,FRA,FRB }}, -+ -+{ "ps_merge11", XRC(4,624,0), X_MASK, PPCGEKKO, { FRT,FRA,FRB }}, -+{ "ps_merge11.", XRC(4,624,1), X_MASK, PPCGEKKO, { FRT,FRA,FRB }}, -+ -+{ "ps_mr", XRC(4,72,0), XRA_MASK, PPCGEKKO, { FRT, FRB }}, -+{ "ps_mr.", XRC(4,72,1), XRA_MASK, PPCGEKKO, { FRT, FRB }}, -+ -+{ "ps_msub", A(4,28,0), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+{ "ps_msub.", A(4,28,1), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+ -+{ "ps_mul", A(4,25,0), AFRB_MASK, PPCGEKKO, { FRT,FRA,FRC }}, -+{ "ps_mul.", A(4,25,1), AFRB_MASK, PPCGEKKO, { FRT,FRA,FRC }}, -+ -+{ "ps_muls0", A(4,12,0), AFRB_MASK, PPCGEKKO, { FRT,FRA,FRC }}, -+{ "ps_muls0.", A(4,12,1), AFRB_MASK, PPCGEKKO, { FRT,FRA,FRC }}, -+ -+{ "ps_muls1", A(4,13,0), AFRB_MASK, PPCGEKKO, { FRT,FRA,FRC }}, -+{ "ps_muls1.", A(4,13,1), AFRB_MASK, PPCGEKKO, { FRT,FRA,FRC }}, -+ -+{ "ps_nabs", XRC(4,136,0), XRA_MASK, PPCGEKKO, { FRT, FRB }}, -+{ "ps_nabs.", XRC(4,136,1), XRA_MASK, PPCGEKKO, { FRT, FRB }}, -+ -+{ "ps_neg", XRC(4,40,0), XRA_MASK, PPCGEKKO, { FRT, FRB }}, -+{ "ps_neg.", XRC(4,40,1), XRA_MASK, PPCGEKKO, { FRT, FRB }}, -+ -+{ "ps_nmadd", A(4,31,0), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+{ "ps_nmadd.", A(4,31,1), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+ -+{ "ps_nmsub", A(4,30,0), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+{ "ps_nmsub.", A(4,30,1), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+ -+{ "ps_res", A(4,13,0), AFRAFRC_MASK, PPCGEKKO, { FRT,FRB }}, -+{ "ps_res.", A(4,13,1), AFRAFRC_MASK, PPCGEKKO, { FRT,FRB }}, -+ -+{ "ps_rsqrte", A(4,26,0), AFRAFRC_MASK, PPCGEKKO, { FRT,FRB }}, -+{ "ps_rsqrte.", A(4,26,1), AFRAFRC_MASK, PPCGEKKO, { FRT,FRB }}, -+ -+{ "ps_sel", A(4,23,0), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+{ "ps_sel.", A(4,23,1), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+ -+{ "ps_sub", A(4,20,0), AFRC_MASK, PPCGEKKO, { FRT, FRA, FRB }}, -+{ "ps_sub.", A(4,20,1), AFRC_MASK, PPCGEKKO, { FRT, FRA, FRB }}, -+ -+{ "ps_sum0", A(4,10,0), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+{ "ps_sum0.", A(4,10,1), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+ -+{ "ps_sum1", A(4,11,0), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+{ "ps_sum1.", A(4,11,1), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+ -+{ "psq_l", OP(56), OP_MASK, PPCGEKKO, { FRT,PSQ_DD,RA,PSQ_WD,PSQ_GD }}, -+{ "psq_lu", OP(57), OP_MASK, PPCGEKKO, { FRT,PSQ_DD,RA,PSQ_WD,PSQ_GD }}, -+{ "psq_lux", PSQX(4,76),PSQX_MASK, PPCGEKKO, { FRT,RA,RB,PSQ_WX,PSQ_GX }}, -+{ "psq_lx", PSQX(4,12),PSQX_MASK, PPCGEKKO, { FRT,RA,RB,PSQ_WX,PSQ_GX }}, -+{ "psq_st", OP(60), OP_MASK, PPCGEKKO, { FRT,PSQ_DD,RA,PSQ_WD,PSQ_GD }}, -+{ "psq_stu", OP(61), OP_MASK, PPCGEKKO, { FRT,PSQ_DD,RA,PSQ_WD,PSQ_GD }}, -+{ "psq_stux", PSQX(4,78), PSQX_MASK, PPCGEKKO, { FRT,RA,RB,PSQ_WX,PSQ_GX }}, -+{ "psq_stx", PSQX(4,14), PSQX_MASK, PPCGEKKO, { FRT,RA,RB,PSQ_WX,PSQ_GX }}, - - }; - diff --git a/dkppc/patches/binutils-2.18.50.patch b/dkppc/patches/binutils-2.18.50.patch new file mode 100644 index 0000000..c566fbc --- /dev/null +++ b/dkppc/patches/binutils-2.18.50.patch @@ -0,0 +1,14 @@ +diff -Nbaur binutils-2.18.50/config.sub binutils-2.18.50-ppc/config.sub +--- binutils-2.18.50/config.sub Wed Aug 29 16:23:21 2007 ++++ binutils-2.18.50-ppc/config.sub Sun Dec 9 22:30:07 2007 +@@ -230,6 +230,10 @@ + basic_machine=m68k-atari + os=-mint + ;; ++ -gekko) ++ basic_machine=powerpc-eabi ++ os=-elf ++ ;; + esac + + # Decode aliases for certain CPU-COMPANY combinations. diff --git a/dkppc/patches/gcc-3.4.6.patch b/dkppc/patches/gcc-3.4.6.patch deleted file mode 100644 index bd0b802..0000000 --- a/dkppc/patches/gcc-3.4.6.patch +++ /dev/null @@ -1,6417 +0,0 @@ -diff -Nbaur gcc-3.4.6/config.sub gcc-3.4.6-ppc/config.sub ---- gcc-3.4.6/config.sub Sun Feb 22 14:44:23 2004 -+++ gcc-3.4.6-ppc/config.sub Sat Jun 17 07:07:24 2006 -@@ -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.6/gcc/Makefile.in gcc-3.4.6-ppc/gcc/Makefile.in ---- gcc-3.4.6/gcc/Makefile.in Thu Feb 24 09:26:59 2005 -+++ gcc-3.4.6-ppc/gcc/Makefile.in Sat Jun 17 07:07:24 2006 -@@ -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.6/gcc/c-format.c gcc-3.4.6-ppc/gcc/c-format.c ---- gcc-3.4.6/gcc/c-format.c Sun May 1 11:39:15 2005 -+++ gcc-3.4.6-ppc/gcc/c-format.c Sat Jun 17 07:07:24 2006 -@@ -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.6/gcc/collect2.c gcc-3.4.6-ppc/gcc/collect2.c ---- gcc-3.4.6/gcc/collect2.c Mon Jan 10 15:25:23 2005 -+++ gcc-3.4.6-ppc/gcc/collect2.c Sat Jun 17 07:07:24 2006 -@@ -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.6/gcc/config/i386/cygming.h gcc-3.4.6-ppc/gcc/config/i386/cygming.h ---- gcc-3.4.6/gcc/config/i386/cygming.h Tue Jun 8 07:30:32 2004 -+++ gcc-3.4.6-ppc/gcc/config/i386/cygming.h Sat Jun 17 07:07:24 2006 -@@ -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.6/gcc/config/i386/i386.c gcc-3.4.6-ppc/gcc/config/i386/i386.c ---- gcc-3.4.6/gcc/config/i386/i386.c Wed Aug 3 15:15:28 2005 -+++ gcc-3.4.6-ppc/gcc/config/i386/i386.c Sat Jun 17 07:07:24 2006 -@@ -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.6/gcc/config/i386/mingw32-1.c gcc-3.4.6-ppc/gcc/config/i386/mingw32-1.c ---- gcc-3.4.6/gcc/config/i386/mingw32-1.c Thu Jan 1 00:00:00 1970 -+++ gcc-3.4.6-ppc/gcc/config/i386/mingw32-1.c Sat Jun 17 07:07:24 2006 -@@ -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.6/gcc/config/i386/mingw32.h gcc-3.4.6-ppc/gcc/config/i386/mingw32.h ---- gcc-3.4.6/gcc/config/i386/mingw32.h Fri Sep 26 04:46:06 2003 -+++ gcc-3.4.6-ppc/gcc/config/i386/mingw32.h Sat Jun 17 07:07:24 2006 -@@ -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.6/gcc/config/i386/t-cygming gcc-3.4.6-ppc/gcc/config/i386/t-cygming ---- gcc-3.4.6/gcc/config/i386/t-cygming Tue Sep 23 19:56:00 2003 -+++ gcc-3.4.6-ppc/gcc/config/i386/t-cygming Sat Jun 17 07:07:24 2006 -@@ -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.6/gcc/config/i386/t-mingw32 gcc-3.4.6-ppc/gcc/config/i386/t-mingw32 ---- gcc-3.4.6/gcc/config/i386/t-mingw32 Tue Jun 11 06:25:44 2002 -+++ gcc-3.4.6-ppc/gcc/config/i386/t-mingw32 Sat Jun 17 07:07:24 2006 -@@ -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.6/gcc/config/i386/w32-shared-ptr.c gcc-3.4.6-ppc/gcc/config/i386/w32-shared-ptr.c ---- gcc-3.4.6/gcc/config/i386/w32-shared-ptr.c Thu Jan 1 00:00:00 1970 -+++ gcc-3.4.6-ppc/gcc/config/i386/w32-shared-ptr.c Sat Jun 17 07:07:24 2006 -@@ -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.6/gcc/config/i386/w32-shared-ptr.h gcc-3.4.6-ppc/gcc/config/i386/w32-shared-ptr.h ---- gcc-3.4.6/gcc/config/i386/w32-shared-ptr.h Thu Jan 1 00:00:00 1970 -+++ gcc-3.4.6-ppc/gcc/config/i386/w32-shared-ptr.h Sat Jun 17 07:07:24 2006 -@@ -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.6/gcc/config/i386/winnt.c gcc-3.4.6-ppc/gcc/config/i386/winnt.c ---- gcc-3.4.6/gcc/config/i386/winnt.c Tue Mar 23 23:18:31 2004 -+++ gcc-3.4.6-ppc/gcc/config/i386/winnt.c Sat Jun 17 07:07:24 2006 -@@ -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.6/gcc/config/i386/x-mingw32 gcc-3.4.6-ppc/gcc/config/i386/x-mingw32 ---- gcc-3.4.6/gcc/config/i386/x-mingw32 Wed May 28 22:06:23 2003 -+++ gcc-3.4.6-ppc/gcc/config/i386/x-mingw32 Sat Jun 17 07:07:24 2006 -@@ -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.6/gcc/config/i386/x-mingw32.patch gcc-3.4.6-ppc/gcc/config/i386/x-mingw32.patch ---- gcc-3.4.6/gcc/config/i386/x-mingw32.patch Thu Jan 1 00:00:00 1970 -+++ gcc-3.4.6-ppc/gcc/config/i386/x-mingw32.patch Sat Jun 17 07:07:24 2006 -@@ -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.6/gcc/config/i386/xm-mingw32.h gcc-3.4.6-ppc/gcc/config/i386/xm-mingw32.h ---- gcc-3.4.6/gcc/config/i386/xm-mingw32.h Sat Jan 31 06:18:40 2004 -+++ gcc-3.4.6-ppc/gcc/config/i386/xm-mingw32.h Sat Jun 17 07:07:24 2006 -@@ -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.6/gcc/config/rs6000/sysv4.h gcc-3.4.6-ppc/gcc/config/rs6000/sysv4.h ---- gcc-3.4.6/gcc/config/rs6000/sysv4.h Sat Oct 29 23:35:37 2005 -+++ gcc-3.4.6-ppc/gcc/config/rs6000/sysv4.h Sat Jun 17 07:07:26 2006 -@@ -446,7 +446,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.6/gcc/config.gcc gcc-3.4.6-ppc/gcc/config.gcc ---- gcc-3.4.6/gcc/config.gcc Tue Jul 19 22:08:48 2005 -+++ gcc-3.4.6-ppc/gcc/config.gcc Sat Jun 17 07:07:26 2006 -@@ -1179,6 +1179,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 -@@ -1667,6 +1669,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.6/gcc/config.host gcc-3.4.6-ppc/gcc/config.host ---- gcc-3.4.6/gcc/config.host Sun Aug 7 03:48:04 2005 -+++ gcc-3.4.6-ppc/gcc/config.host Sat Jun 17 07:07:26 2006 -@@ -142,6 +142,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.6/gcc/cp/decl2.c gcc-3.4.6-ppc/gcc/cp/decl2.c ---- gcc-3.4.6/gcc/cp/decl2.c Wed Feb 1 11:57:42 2006 -+++ gcc-3.4.6-ppc/gcc/cp/decl2.c Sat Jun 17 07:07:26 2006 -@@ -1474,6 +1474,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.6/gcc/cp/parser.c gcc-3.4.6-ppc/gcc/cp/parser.c ---- gcc-3.4.6/gcc/cp/parser.c Tue Jan 24 11:38:06 2006 -+++ gcc-3.4.6-ppc/gcc/cp/parser.c Sat Jun 17 07:07:26 2006 -@@ -9312,7 +9312,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.6/gcc/cp/repo.c gcc-3.4.6-ppc/gcc/cp/repo.c ---- gcc-3.4.6/gcc/cp/repo.c Fri Dec 19 23:28:11 2003 -+++ gcc-3.4.6-ppc/gcc/cp/repo.c Sat Jun 17 07:07:26 2006 -@@ -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.6/gcc/crtstuff.c gcc-3.4.6-ppc/gcc/crtstuff.c ---- gcc-3.4.6/gcc/crtstuff.c Thu Oct 14 00:29:06 2004 -+++ gcc-3.4.6-ppc/gcc/crtstuff.c Sat Jun 17 07:07:26 2006 -@@ -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.6/gcc/doc/extend.texi gcc-3.4.6-ppc/gcc/doc/extend.texi ---- gcc-3.4.6/gcc/doc/extend.texi Sat Feb 26 22:17:26 2005 -+++ gcc-3.4.6-ppc/gcc/doc/extend.texi Sat Jun 17 07:07:26 2006 -@@ -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.6/gcc/doc/hostconfig.texi gcc-3.4.6-ppc/gcc/doc/hostconfig.texi ---- gcc-3.4.6/gcc/doc/hostconfig.texi Tue Aug 2 20:03:45 2005 -+++ gcc-3.4.6-ppc/gcc/doc/hostconfig.texi Sat Jun 17 07:07:26 2006 -@@ -192,7 +192,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.6/gcc/doc/invoke.texi gcc-3.4.6-ppc/gcc/doc/invoke.texi ---- gcc-3.4.6/gcc/doc/invoke.texi Sat Oct 8 01:22:20 2005 -+++ gcc-3.4.6-ppc/gcc/doc/invoke.texi Sat Jun 17 07:07:27 2006 -@@ -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 -@@ -5995,9 +5995,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}); -@@ -8561,6 +8562,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.6/gcc/gcc.c gcc-3.4.6-ppc/gcc/gcc.c ---- gcc-3.4.6/gcc/gcc.c Sat Jan 21 18:52:11 2006 -+++ gcc-3.4.6-ppc/gcc/gcc.c Sat Jun 17 07:07:27 2006 -@@ -90,7 +90,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 - -@@ -3176,7 +3176,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)); - } - -@@ -4112,29 +4112,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); -@@ -4157,7 +4159,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. */ -@@ -4708,6 +4712,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. */ -@@ -4727,6 +4734,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.6/gcc/ggc.h gcc-3.4.6-ppc/gcc/ggc.h ---- gcc-3.4.6/gcc/ggc.h Sun Dec 21 14:08:35 2003 -+++ gcc-3.4.6-ppc/gcc/ggc.h Sat Jun 17 07:07:27 2006 -@@ -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.6/gcc/ginclude/stdarg.h gcc-3.4.6-ppc/gcc/ginclude/stdarg.h ---- gcc-3.4.6/gcc/ginclude/stdarg.h Thu Mar 13 02:58:40 2003 -+++ gcc-3.4.6-ppc/gcc/ginclude/stdarg.h Sat Jun 17 07:07:27 2006 -@@ -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.6/gcc/hwint.h gcc-3.4.6-ppc/gcc/hwint.h ---- gcc-3.4.6/gcc/hwint.h Wed Jun 25 20:33:08 2003 -+++ gcc-3.4.6-ppc/gcc/hwint.h Sat Jun 17 07:07:27 2006 -@@ -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.6/gcc/libgcc2.c gcc-3.4.6-ppc/gcc/libgcc2.c ---- gcc-3.4.6/gcc/libgcc2.c Wed Dec 15 12:34:40 2004 -+++ gcc-3.4.6-ppc/gcc/libgcc2.c Sat Jun 17 07:07:27 2006 -@@ -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.6/gcc/mklibgcc.in gcc-3.4.6-ppc/gcc/mklibgcc.in ---- gcc-3.4.6/gcc/mklibgcc.in Wed Nov 16 17:06:52 2005 -+++ gcc-3.4.6-ppc/gcc/mklibgcc.in Sat Jun 17 07:07:27 2006 -@@ -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.6/gcc/mklibgcc.in.patch gcc-3.4.6-ppc/gcc/mklibgcc.in.patch ---- gcc-3.4.6/gcc/mklibgcc.in.patch Thu Jan 1 00:00:00 1970 -+++ gcc-3.4.6-ppc/gcc/mklibgcc.in.patch Sat Jun 17 07:07:27 2006 -@@ -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.6/gcc/stor-layout.c gcc-3.4.6-ppc/gcc/stor-layout.c ---- gcc-3.4.6/gcc/stor-layout.c Sat May 29 00:16:00 2004 -+++ gcc-3.4.6-ppc/gcc/stor-layout.c Sat Jun 17 07:07:27 2006 -@@ -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.6/gcc/system.h gcc-3.4.6-ppc/gcc/system.h ---- gcc-3.4.6/gcc/system.h Mon Mar 15 23:22:50 2004 -+++ gcc-3.4.6-ppc/gcc/system.h Sat Jun 17 07:07:27 2006 -@@ -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.6/gcc/tlink.c gcc-3.4.6-ppc/gcc/tlink.c ---- gcc-3.4.6/gcc/tlink.c Sat Jul 19 15:47:15 2003 -+++ gcc-3.4.6-ppc/gcc/tlink.c Sat Jun 17 07:07:27 2006 -@@ -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.6/gcc/unwind-dw2-fde.c gcc-3.4.6-ppc/gcc/unwind-dw2-fde.c ---- gcc-3.4.6/gcc/unwind-dw2-fde.c Fri Oct 31 20:46:26 2003 -+++ gcc-3.4.6-ppc/gcc/unwind-dw2-fde.c Sat Jun 17 07:07:27 2006 -@@ -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.6/gcc/unwind-sjlj.c gcc-3.4.6-ppc/gcc/unwind-sjlj.c ---- gcc-3.4.6/gcc/unwind-sjlj.c Sun Nov 2 00:00:08 2003 -+++ gcc-3.4.6-ppc/gcc/unwind-sjlj.c Sat Jun 17 07:07:27 2006 -@@ -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.6/gcc/varasm.c gcc-3.4.6-ppc/gcc/varasm.c ---- gcc-3.4.6/gcc/varasm.c Wed Mar 2 20:57:53 2005 -+++ gcc-3.4.6-ppc/gcc/varasm.c Sat Jun 17 07:07:27 2006 -@@ -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.6/gcc/version.c gcc-3.4.6-ppc/gcc/version.c ---- gcc-3.4.6/gcc/version.c Mon Mar 6 03:49:27 2006 -+++ gcc-3.4.6-ppc/gcc/version.c Sat Jun 17 07:07:27 2006 -@@ -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.6/include/libiberty.h gcc-3.4.6-ppc/include/libiberty.h ---- gcc-3.4.6/include/libiberty.h Thu May 15 20:02:13 2003 -+++ gcc-3.4.6-ppc/include/libiberty.h Sat Jun 17 07:07:27 2006 -@@ -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.6/include/pex-read.h gcc-3.4.6-ppc/include/pex-read.h ---- gcc-3.4.6/include/pex-read.h Thu Jan 1 00:00:00 1970 -+++ gcc-3.4.6-ppc/include/pex-read.h Sat Jun 17 07:07:27 2006 -@@ -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.6/libiberty/ChangeLog gcc-3.4.6-ppc/libiberty/ChangeLog ---- gcc-3.4.6/libiberty/ChangeLog Mon Mar 6 03:48:17 2006 -+++ gcc-3.4.6-ppc/libiberty/ChangeLog Sat Jun 17 07:07:27 2006 -@@ -47,11 +47,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, -@@ -84,7 +106,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. -@@ -94,6 +116,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.6/libiberty/Makefile.in gcc-3.4.6-ppc/libiberty/Makefile.in ---- gcc-3.4.6/libiberty/Makefile.in Wed Jan 14 21:27:28 2004 -+++ gcc-3.4.6-ppc/libiberty/Makefile.in Sat Jun 17 07:07:27 2006 -@@ -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.6/libiberty/config.in gcc-3.4.6-ppc/libiberty/config.in ---- gcc-3.4.6/libiberty/config.in Sat Jan 10 02:17:41 2004 -+++ gcc-3.4.6-ppc/libiberty/config.in Sat Jun 17 07:07:27 2006 -@@ -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.6/libiberty/configure gcc-3.4.6-ppc/libiberty/configure ---- gcc-3.4.6/libiberty/configure Wed Oct 1 18:11:29 2003 -+++ gcc-3.4.6-ppc/libiberty/configure Sat Jun 17 07:07:27 2006 -@@ -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.6/libiberty/configure.ac gcc-3.4.6-ppc/libiberty/configure.ac ---- gcc-3.4.6/libiberty/configure.ac Sat Jan 10 02:17:41 2004 -+++ gcc-3.4.6-ppc/libiberty/configure.ac Sat Jun 17 07:07:27 2006 -@@ -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.6/libiberty/dyn-string.c gcc-3.4.6-ppc/libiberty/dyn-string.c ---- gcc-3.4.6/libiberty/dyn-string.c Mon Apr 1 22:55:12 2002 -+++ gcc-3.4.6-ppc/libiberty/dyn-string.c Sat Jun 17 07:07:27 2006 -@@ -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.6/libiberty/getpwd.c gcc-3.4.6-ppc/libiberty/getpwd.c ---- gcc-3.4.6/libiberty/getpwd.c Sun Oct 7 22:53:31 2001 -+++ gcc-3.4.6-ppc/libiberty/getpwd.c Sat Jun 17 07:07:27 2006 -@@ -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.6/libiberty/maint-tool gcc-3.4.6-ppc/libiberty/maint-tool ---- gcc-3.4.6/libiberty/maint-tool Tue Apr 15 20:21:38 2003 -+++ gcc-3.4.6-ppc/libiberty/maint-tool Sat Jun 17 07:07:27 2006 -@@ -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.6/libiberty/pex-common.h gcc-3.4.6-ppc/libiberty/pex-common.h ---- gcc-3.4.6/libiberty/pex-common.h Fri Jan 24 20:02:11 2003 -+++ gcc-3.4.6-ppc/libiberty/pex-common.h Sat Jun 17 07:07:27 2006 -@@ -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.6/libiberty/pex-unix.c gcc-3.4.6-ppc/libiberty/pex-unix.c ---- gcc-3.4.6/libiberty/pex-unix.c Fri Jan 24 20:02:11 2003 -+++ gcc-3.4.6-ppc/libiberty/pex-unix.c Sat Jun 17 07:07:27 2006 -@@ -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.6/libiberty/pexecute.txh gcc-3.4.6-ppc/libiberty/pexecute.txh ---- gcc-3.4.6/libiberty/pexecute.txh Fri Jan 24 20:02:11 2003 -+++ gcc-3.4.6-ppc/libiberty/pexecute.txh Sat Jun 17 07:07:27 2006 -@@ -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.6/libiberty/pexrd-generic.c gcc-3.4.6-ppc/libiberty/pexrd-generic.c ---- gcc-3.4.6/libiberty/pexrd-generic.c Thu Jan 1 00:00:00 1970 -+++ gcc-3.4.6-ppc/libiberty/pexrd-generic.c Sat Jun 17 07:07:27 2006 -@@ -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.6/libiberty/pexrd-unix.c gcc-3.4.6-ppc/libiberty/pexrd-unix.c ---- gcc-3.4.6/libiberty/pexrd-unix.c Thu Jan 1 00:00:00 1970 -+++ gcc-3.4.6-ppc/libiberty/pexrd-unix.c Sat Jun 17 07:07:27 2006 -@@ -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.6/libiberty/regex.c gcc-3.4.6-ppc/libiberty/regex.c ---- gcc-3.4.6/libiberty/regex.c Tue Apr 15 15:24:26 2003 -+++ gcc-3.4.6-ppc/libiberty/regex.c Sat Jun 17 07:07:27 2006 -@@ -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.6/libiberty/strerror.c gcc-3.4.6-ppc/libiberty/strerror.c ---- gcc-3.4.6/libiberty/strerror.c Thu Oct 2 20:06:29 2003 -+++ gcc-3.4.6-ppc/libiberty/strerror.c Sat Jun 17 07:07:27 2006 -@@ -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.6/libiberty/testsuite/test-demangle.c gcc-3.4.6-ppc/libiberty/testsuite/test-demangle.c ---- gcc-3.4.6/libiberty/testsuite/test-demangle.c Fri Jan 2 20:33:55 2004 -+++ gcc-3.4.6-ppc/libiberty/testsuite/test-demangle.c Sat Jun 17 07:07:27 2006 -@@ -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.6/libstdc++-v3/config/os/mingw32/os_defines.h gcc-3.4.6-ppc/libstdc++-v3/config/os/mingw32/os_defines.h ---- gcc-3.4.6/libstdc++-v3/config/os/mingw32/os_defines.h Sat Jul 5 05:05:45 2003 -+++ gcc-3.4.6-ppc/libstdc++-v3/config/os/mingw32/os_defines.h Sat Jun 17 07:07:27 2006 -@@ -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.6/libstdc++-v3/configure.host gcc-3.4.6-ppc/libstdc++-v3/configure.host ---- gcc-3.4.6/libstdc++-v3/configure.host Tue Oct 5 17:32:49 2004 -+++ gcc-3.4.6-ppc/libstdc++-v3/configure.host Sat Jun 17 07:07:27 2006 -@@ -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.6/libstdc++-v3/include/bits/char_traits.h gcc-3.4.6-ppc/libstdc++-v3/include/bits/char_traits.h ---- gcc-3.4.6/libstdc++-v3/include/bits/char_traits.h Thu Mar 18 17:38:22 2004 -+++ gcc-3.4.6-ppc/libstdc++-v3/include/bits/char_traits.h Sat Jun 17 07:07:27 2006 -@@ -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.6/libstdc++-v3/include/bits/locale_facets.tcc gcc-3.4.6-ppc/libstdc++-v3/include/bits/locale_facets.tcc ---- gcc-3.4.6/libstdc++-v3/include/bits/locale_facets.tcc Thu Nov 18 10:50:19 2004 -+++ gcc-3.4.6-ppc/libstdc++-v3/include/bits/locale_facets.tcc Sat Jun 17 07:07:28 2006 -@@ -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.6/libstdc++-v3/include/bits/stringfwd.h gcc-3.4.6-ppc/libstdc++-v3/include/bits/stringfwd.h ---- gcc-3.4.6/libstdc++-v3/include/bits/stringfwd.h Thu Mar 18 17:38:22 2004 -+++ gcc-3.4.6-ppc/libstdc++-v3/include/bits/stringfwd.h Sat Jun 17 07:07:28 2006 -@@ -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.6/libstdc++-v3/libsupc++/Makefile.in gcc-3.4.6-ppc/libstdc++-v3/libsupc++/Makefile.in ---- gcc-3.4.6/libstdc++-v3/libsupc++/Makefile.in Thu Mar 18 17:38:22 2004 -+++ gcc-3.4.6-ppc/libstdc++-v3/libsupc++/Makefile.in Sat Jun 17 07:07:28 2006 -@@ -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.6/libstdc++-v3/libsupc++/eh_globals.cc gcc-3.4.6-ppc/libstdc++-v3/libsupc++/eh_globals.cc ---- gcc-3.4.6/libstdc++-v3/libsupc++/eh_globals.cc Mon Nov 8 17:41:20 2004 -+++ gcc-3.4.6-ppc/libstdc++-v3/libsupc++/eh_globals.cc Sat Jun 17 07:07:28 2006 -@@ -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.6/libstdc++-v3/libsupc++/eh_term_handler.cc gcc-3.4.6-ppc/libstdc++-v3/libsupc++/eh_term_handler.cc ---- gcc-3.4.6/libstdc++-v3/libsupc++/eh_term_handler.cc Tue Sep 2 19:46:54 2003 -+++ gcc-3.4.6-ppc/libstdc++-v3/libsupc++/eh_term_handler.cc Sat Jun 17 07:07:28 2006 -@@ -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.6/libstdc++-v3/libsupc++/eh_terminate.cc gcc-3.4.6-ppc/libstdc++-v3/libsupc++/eh_terminate.cc ---- gcc-3.4.6/libstdc++-v3/libsupc++/eh_terminate.cc Sat May 24 17:22:03 2003 -+++ gcc-3.4.6-ppc/libstdc++-v3/libsupc++/eh_terminate.cc Sat Jun 17 07:07:28 2006 -@@ -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.6/libstdc++-v3/libsupc++/eh_unex_handler.cc gcc-3.4.6-ppc/libstdc++-v3/libsupc++/eh_unex_handler.cc ---- gcc-3.4.6/libstdc++-v3/libsupc++/eh_unex_handler.cc Sat May 24 17:22:03 2003 -+++ gcc-3.4.6-ppc/libstdc++-v3/libsupc++/eh_unex_handler.cc Sat Jun 17 07:07:28 2006 -@@ -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.6/libstdc++-v3/libsupc++/typeinfo gcc-3.4.6-ppc/libstdc++-v3/libsupc++/typeinfo ---- gcc-3.4.6/libstdc++-v3/libsupc++/typeinfo Sat Jul 5 05:05:45 2003 -+++ gcc-3.4.6-ppc/libstdc++-v3/libsupc++/typeinfo Sat Jun 17 07:07:28 2006 -@@ -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.6/libstdc++-v3/libsupc++/unwind-cxx.h gcc-3.4.6-ppc/libstdc++-v3/libsupc++/unwind-cxx.h ---- gcc-3.4.6/libstdc++-v3/libsupc++/unwind-cxx.h Sat Jul 5 05:05:45 2003 -+++ gcc-3.4.6-ppc/libstdc++-v3/libsupc++/unwind-cxx.h Sat Jun 17 07:07:28 2006 -@@ -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.6/libstdc++-v3/src/Makefile.in gcc-3.4.6-ppc/libstdc++-v3/src/Makefile.in ---- gcc-3.4.6/libstdc++-v3/src/Makefile.in Fri Apr 16 20:08:35 2004 -+++ gcc-3.4.6-ppc/libstdc++-v3/src/Makefile.in Sat Jun 17 07:07:28 2006 -@@ -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.6/libstdc++-v3/src/globals_io.cc gcc-3.4.6-ppc/libstdc++-v3/src/globals_io.cc ---- gcc-3.4.6/libstdc++-v3/src/globals_io.cc Thu Mar 18 17:38:22 2004 -+++ gcc-3.4.6-ppc/libstdc++-v3/src/globals_io.cc Sat Jun 17 07:07:28 2006 -@@ -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.6/ltcf-c.sh gcc-3.4.6-ppc/ltcf-c.sh ---- gcc-3.4.6/ltcf-c.sh Wed Nov 19 05:29:32 2003 -+++ gcc-3.4.6-ppc/ltcf-c.sh Sat Jun 17 07:07:28 2006 -@@ -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/dkppc/patches/gcc-4.0.1.patch b/dkppc/patches/gcc-4.0.1.patch deleted file mode 100644 index bc7109d..0000000 --- a/dkppc/patches/gcc-4.0.1.patch +++ /dev/null @@ -1,64 +0,0 @@ -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/gcc-4.0.2.patch b/dkppc/patches/gcc-4.0.2.patch deleted file mode 100644 index bc7109d..0000000 --- a/dkppc/patches/gcc-4.0.2.patch +++ /dev/null @@ -1,64 +0,0 @@ -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/gcc-4.1.0.patch b/dkppc/patches/gcc-4.1.0.patch deleted file mode 100644 index b2d903a..0000000 --- a/dkppc/patches/gcc-4.1.0.patch +++ /dev/null @@ -1,64 +0,0 @@ -diff -Nbaur gcc-4.1.0/config.sub gcc-4.1.0-ppc/config.sub ---- gcc-4.1.0/config.sub Fri Dec 16 12:57:40 2005 -+++ gcc-4.1.0-ppc/config.sub Mon Apr 10 09:48:17 2006 -@@ -228,6 +228,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-4.1.0/gcc/c-incpath.c gcc-4.1.0-ppc/gcc/c-incpath.c ---- gcc-4.1.0/gcc/c-incpath.c Sat Jun 25 03:02:01 2005 -+++ gcc-4.1.0-ppc/gcc/c-incpath.c Mon Apr 10 09:48:17 2006 -@@ -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 -Nbaur gcc-4.1.0/gcc/version.c gcc-4.1.0-ppc/gcc/version.c ---- gcc-4.1.0/gcc/version.c Wed Mar 16 06:04:10 2005 -+++ gcc-4.1.0-ppc/gcc/version.c Mon Apr 10 09:49:51 2006 -@@ -8,7 +8,7 @@ - in parentheses. You may also wish to include a number indicating - the revision of your modified compiler. */ - --#define VERSUFFIX "" -+#define VERSUFFIX " (devkitPPC release 13)" - - /* This is the location of the online document giving instructions for - reporting bugs. If you distribute a modified version of GCC, -@@ -17,7 +17,7 @@ - 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[] = ""; - - /* The complete version string, assembled from several pieces. - BASEVER, DATESTAMP, and DEVPHASE are defined by the Makefile. */ diff --git a/dkppc/patches/gcc-4.1.2.patch b/dkppc/patches/gcc-4.1.2.patch new file mode 100644 index 0000000..81fdf85 --- /dev/null +++ b/dkppc/patches/gcc-4.1.2.patch @@ -0,0 +1,830 @@ +diff -Nbaur gcc-4.1.2/config.sub gcc-4.1.2-ppc/config.sub +--- gcc-4.1.2/config.sub Fri Dec 16 12:57:40 2005 ++++ gcc-4.1.2-ppc/config.sub Mon Apr 10 09:48:17 2006 +@@ -228,6 +228,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-4.1.2/gcc/c-incpath.c gcc-4.1.2-arm/gcc/c-incpath.c +--- gcc-4.1.2/gcc/c-incpath.c Sat Jun 25 03:02:01 2005 ++++ gcc-4.1.2-arm/gcc/c-incpath.c Fri Feb 16 10:41:26 2007 +@@ -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 -Nbaur gcc-4.1.2/gcc/gcc.c gcc-4.1.2-arm/gcc/gcc.c +--- gcc-4.1.2/gcc/gcc.c Tue Nov 7 14:26:21 2006 ++++ gcc-4.1.2-arm/gcc/gcc.c Fri Feb 16 10:41:26 2007 +@@ -3250,8 +3250,6 @@ + gcc_libexec_prefix = make_relative_prefix (argv[0], + standard_bindir_prefix, + standard_libexec_prefix); +- if (gcc_exec_prefix) +- putenv (concat ("GCC_EXEC_PREFIX=", gcc_exec_prefix, NULL)); + } + else + gcc_libexec_prefix = make_relative_prefix (gcc_exec_prefix, +@@ -6151,10 +6149,21 @@ + + /* We need to check standard_exec_prefix/just_machine_suffix/specs + for any override of as, ld and libraries. */ ++ if ( gcc_exec_prefix ) ++ { ++ specs_file = alloca (strlen (gcc_exec_prefix) ++ + strlen (just_machine_suffix) + sizeof ("specs")); ++ ++ strcpy (specs_file, gcc_exec_prefix); ++ } else { ++ + specs_file = alloca (strlen (standard_exec_prefix) + + strlen (just_machine_suffix) + sizeof ("specs")); + + strcpy (specs_file, standard_exec_prefix); ++ ++ } ++ + strcat (specs_file, just_machine_suffix); + strcat (specs_file, "specs"); + if (access (specs_file, R_OK) == 0) +diff -Nbaur gcc-4.1.2/gcc/prefix.c gcc-4.1.2-arm/gcc/prefix.c +--- gcc-4.1.2/gcc/prefix.c Sat Jun 25 03:02:01 2005 ++++ gcc-4.1.2-arm/gcc/prefix.c Fri Feb 16 10:41:27 2007 +@@ -246,13 +246,16 @@ + The returned string is always malloc-ed, and the caller is + responsible for freeing it. */ + ++ ++static const char *old_prefix = PREFIX; ++ + char * + update_path (const char *path, const char *key) + { + char *result, *p; +- const int len = strlen (std_prefix); ++ const int len = strlen (old_prefix); + +- if (! strncmp (path, std_prefix, len) ++ if (! strncmp (path, old_prefix, len) + && (IS_DIR_SEPARATOR(path[len]) + || path[len] == '\0') + && key != 0) +@@ -354,4 +357,6 @@ + set_std_prefix (const char *prefix, int len) + { + std_prefix = save_string (prefix, len); ++ ++ putenv (concat ("GCC_EXEC_PREFIX=", std_prefix, NULL)); + } +diff -Nbaur gcc-4.1.2/gcc/stor-layout.c gcc-4.1.2-arm/gcc/stor-layout.c +--- gcc-4.1.2/gcc/stor-layout.c Wed Oct 4 08:01:27 2006 ++++ gcc-4.1.2-arm/gcc/stor-layout.c Fri Feb 16 10:45:00 2007 +@@ -526,7 +526,15 @@ + #ifdef STRUCTURE_SIZE_BOUNDARY + /* Packed structures don't need to have minimum size. */ + if (! TYPE_PACKED (t)) +- rli->record_align = MAX (rli->record_align, (unsigned) STRUCTURE_SIZE_BOUNDARY); ++ { ++ unsigned tmp; ++ ++ /* #pragma pack overrides STRUCTURE_SIZE_BOUNDARY. */ ++ tmp = (unsigned) STRUCTURE_SIZE_BOUNDARY; ++ if (maximum_field_alignment != 0) ++ tmp = MIN (tmp, maximum_field_alignment); ++ rli->record_align = MAX (rli->record_align, tmp); ++ } + #endif + + rli->offset = size_zero_node; +diff -Nbaur gcc-4.1.2/gcc/toplev.c gcc-4.1.2-arm/gcc/toplev.c +--- gcc-4.1.2/gcc/toplev.c Thu Aug 3 12:33:49 2006 ++++ gcc-4.1.2-arm/gcc/toplev.c Fri Feb 16 10:41:27 2007 +@@ -82,6 +82,7 @@ + #include "value-prof.h" + #include "alloc-pool.h" + #include "tree-mudflap.h" ++#include "prefix.h" + + #if defined (DWARF2_UNWIND_INFO) || defined (DWARF2_DEBUGGING_INFO) + #include "dwarf2out.h" +@@ -1434,6 +1435,10 @@ + progname = p; + + xmalloc_set_program_name (progname); ++ ++ p = getenv("GCC_EXEC_PREFIX"); ++ if (p && strlen(p)) set_std_prefix (p, strlen(p)); ++ + + hex_init (); + +diff -Nbaur gcc-4.1.2/gcc/version.c gcc-4.1.2-arm/gcc/version.c +--- gcc-4.1.2/gcc/version.c Wed Mar 16 06:04:10 2005 ++++ gcc-4.1.2-arm/gcc/version.c Fri Feb 16 10:41:27 2007 +@@ -8,7 +8,7 @@ + in parentheses. You may also wish to include a number indicating + the revision of your modified compiler. */ + +-#define VERSUFFIX "" ++#define VERSUFFIX " (devkitPPC release 14)" + + /* This is the location of the online document giving instructions for + reporting bugs. If you distribute a modified version of GCC, +@@ -17,7 +17,7 @@ + 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[] = ""; + + /* The complete version string, assembled from several pieces. + BASEVER, DATESTAMP, and DEVPHASE are defined by the Makefile. */ +diff -Nbaur gcc-4.1.2/libiberty/pex-win32.c gcc-4.1.2-arm/libiberty/pex-win32.c +--- gcc-4.1.2/libiberty/pex-win32.c Mon Aug 28 01:00:30 2006 ++++ gcc-4.1.2-arm/libiberty/pex-win32.c Fri Feb 16 10:41:27 2007 +@@ -41,6 +41,7 @@ + #include + #include + #include ++#include + + /* mingw32 headers may not define the following. */ + +@@ -72,115 +73,6 @@ + return; + } + +-/* This is a kludge to get around the Microsoft C spawn functions' propensity +- to remove the outermost set of double quotes from all arguments. */ +- +-static const char * const * +-fix_argv (char * const *argvec) +-{ +- char **argv; +- int i; +- char *command0; +- +- /* See whether we need to change anything. */ +- for (command0 = argvec[0]; *command0 != '\0'; command0++) +- if (*command0 == '/') +- break; +- if (*command0 == '\0') +- { +- for (i = 1; argvec[i] != NULL; i++) +- if (strpbrk (argvec[i], "\" \t") != NULL) +- break; +- +- if (argvec[i] == NULL) +- return (const char * const *) argvec; +- } +- +- for (i = 0; argvec[i] != NULL; i++) +- ; +- argv = XNEWVEC (char *, i + 2); +- +- argv++; /* Leave space at the beginning of argv +- for potential #! handling */ +- +- for (i = 0; argvec[i] != NULL; i++) +- argv[i] = xstrdup (argvec[i]); +- argv[i] = NULL; +- +- backslashify (argv[0]); +- +- for (i = 1; argv[i] != 0; i++) +- { +- int len, j; +- char *temp, *newtemp; +- +- temp = argv[i]; +- len = strlen (temp); +- for (j = 0; j < len; j++) +- { +- if (temp[j] == '"') +- { +- newtemp = XNEWVEC (char, len + 2); +- strncpy (newtemp, temp, j); +- newtemp [j] = '\\'; +- strncpy (&newtemp [j+1], &temp [j], len-j); +- newtemp [len+1] = 0; +- temp = newtemp; +- len++; +- j++; +- } +- } +- +- if (argv[i] != temp) +- { +- free (argv[i]); +- argv[i] = temp; +- } +- } +- +- for (i = 0; argv[i] != 0; i++) +- { +- if (strpbrk (argv[i], " \t")) +- { +- int len, trailing_backslash; +- char *temp; +- +- len = strlen (argv[i]); +- trailing_backslash = 0; +- +- /* There is an added complication when an arg with embedded white +- space ends in a backslash (such as in the case of -iprefix arg +- passed to cpp). The resulting quoted strings gets misinterpreted +- by the command interpreter -- it thinks that the ending quote +- is escaped by the trailing backslash and things get confused. +- We handle this case by escaping the trailing backslash, provided +- it was not escaped in the first place. */ +- if (len > 1 +- && argv[i][len-1] == '\\' +- && argv[i][len-2] != '\\') +- { +- trailing_backslash = 1; +- ++len; /* to escape the final backslash. */ +- } +- +- len += 2; /* and for the enclosing quotes. */ +- +- temp = XNEWVEC (char, len + 1); +- temp[0] = '"'; +- strcpy (temp + 1, argv[i]); +- if (trailing_backslash) +- temp[len - 2] = '\\'; +- temp[len - 1] = '"'; +- temp[len] = '\0'; +- +- free (argv[i]); +- argv[i] = temp; +- } +- } +- +- return (const char * const *) argv; +-} +- + static int pex_win32_open_read (struct pex_obj *, const char *, int); + static int pex_win32_open_write (struct pex_obj *, const char *, int); + static long pex_win32_exec_child (struct pex_obj *, int, const char *, +@@ -422,8 +314,225 @@ + } + #endif + ++/* Return a Windows command-line from ARGV. It is the caller's ++ responsibility to free the string returned. */ ++ ++static char * ++argv_to_cmdline (char *const *argv) ++{ ++ char *cmdline; ++ char *p; ++ size_t cmdline_len; ++ int i, j, k; ++ ++ cmdline_len = 0; ++ for (i = 0; argv[i]; i++) ++ { ++ /* We quote every last argument. This simplifies the problem; ++ we need only escape embedded double-quotes and immediately ++ preceeding backslash characters. A sequence of backslach characters ++ that is not follwed by a double quote character will not be ++ escaped. */ ++ for (j = 0; argv[i][j]; j++) ++ { ++ if (argv[i][j] == '"') ++ { ++ /* Escape preceeding backslashes. */ ++ for (k = j - 1; k >= 0 && argv[i][k] == '\\'; k--) ++ cmdline_len++; ++ /* Escape the qote character. */ ++ cmdline_len++; ++ } ++ } ++ /* Trailing backslashes also need to be escaped because they will be ++ followed by the terminating quote. */ ++ for (k = j - 1; k >= 0 && argv[i][k] == '\\'; k--) ++ cmdline_len++; ++ cmdline_len += j; ++ cmdline_len += 3; /* for leading and trailing quotes and space */ ++ } ++ cmdline = xmalloc (cmdline_len); ++ p = cmdline; ++ for (i = 0; argv[i]; i++) ++ { ++ *p++ = '"'; ++ for (j = 0; argv[i][j]; j++) ++ { ++ if (argv[i][j] == '"') ++ { ++ for (k = j - 1; k >= 0 && argv[i][k] == '\\'; k--) ++ *p++ = '\\'; ++ *p++ = '\\'; ++ } ++ *p++ = argv[i][j]; ++ } ++ for (k = j - 1; k >= 0 && argv[i][k] == '\\'; k--) ++ *p++ = '\\'; ++ *p++ = '"'; ++ *p++ = ' '; ++ } ++ p[-1] = '\0'; ++ return cmdline; ++} ++ ++static const char *const ++std_suffixes[] = { ++ ".com", ++ ".exe", ++ ".bat", ++ ".cmd", ++ 0 ++}; ++static const char *const ++no_suffixes[] = { ++ "", ++ 0 ++}; ++ ++/* Returns the full path to PROGRAM. If SEARCH is true, look for ++ PROGRAM in each directory in PATH. */ ++ ++static char * ++find_executable (const char *program, BOOL search) ++{ ++ char *full_executable; ++ char *e; ++ size_t fe_len; ++ const char *path = 0; ++ const char *const *ext; ++ const char *p, *q; ++ size_t proglen = strlen (program); ++ int has_extension = !!strchr (program, '.'); ++ int has_slash = (strchr (program, '/') || strchr (program, '\\')); ++ HANDLE h; ++ ++ if (has_slash) ++ search = FALSE; ++ ++ if (search) ++ path = getenv ("PATH"); ++ if (!path) ++ path = ""; ++ ++ fe_len = 0; ++ for (p = path; *p; p = q) ++ { ++ q = p; ++ while (*q != ';' && *q != '\0') ++ q++; ++ if ((size_t)(q - p) > fe_len) ++ fe_len = q - p; ++ if (*q == ';') ++ q++; ++ } ++ fe_len = fe_len + 1 + proglen + (has_extension ? 1 : 5); ++ full_executable = xmalloc (fe_len); ++ ++ p = path; ++ do ++ { ++ q = p; ++ while (*q != ';' && *q != '\0') ++ q++; ++ ++ e = full_executable; ++ memcpy (e, p, q - p); ++ e += (q - p); ++ if (q - p) ++ *e++ = '\\'; ++ strcpy (e, program); ++ ++ if (*q == ';') ++ q++; ++ ++ for (e = full_executable; *e; e++) ++ if (*e == '/') ++ *e = '\\'; ++ ++ /* At this point, e points to the terminating NUL character for ++ full_executable. */ ++ for (ext = has_extension ? no_suffixes : std_suffixes; *ext; ext++) ++ { ++ /* Remove any current extension. */ ++ *e = '\0'; ++ /* Add the new one. */ ++ strcat (full_executable, *ext); ++ ++ /* Attempt to open this file. */ ++ h = CreateFile (full_executable, GENERIC_READ, ++ FILE_SHARE_READ | FILE_SHARE_WRITE, ++ 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0); ++ if (h != INVALID_HANDLE_VALUE) ++ goto found; ++ } ++ p = q; ++ } ++ while (*p); ++ free (full_executable); ++ return 0; ++ ++ found: ++ CloseHandle (h); ++ return full_executable; ++} ++ ++/* Low-level process creation function. */ ++ ++static long ++win32_spawn (const char *executable, ++ BOOL search, ++ char *const *argv, ++ DWORD dwCreationFlags, ++ LPSTARTUPINFO si, ++ LPPROCESS_INFORMATION pi) ++{ ++ char *full_executable; ++ char *cmdline; ++ ++ full_executable = NULL; ++ cmdline = NULL; ++ ++ full_executable = find_executable (executable, search); ++ if (!full_executable) ++ goto error; ++ cmdline = argv_to_cmdline (argv); ++ if (!cmdline) ++ goto error; ++ ++ /* Create the child process. */ ++ if (!CreateProcess (full_executable, cmdline, ++ /*lpProcessAttributes=*/NULL, ++ /*lpThreadAttributes=*/NULL, ++ /*bInheritHandles=*/TRUE, ++ dwCreationFlags, ++ /*lpEnvironment=*/NULL, ++ /*lpCurrentDirectory=*/NULL, ++ si, ++ pi)) ++ { ++ free (full_executable); ++ return -1; ++ } ++ ++ /* Clean up. */ ++ CloseHandle (pi->hThread); ++ free (full_executable); ++ ++ return (long) pi->hProcess; ++ ++ error: ++ if (cmdline) ++ free (cmdline); ++ if (full_executable) ++ free (full_executable); ++ return -1; ++} ++ + static long +-spawn_script (const char *executable, const char * const * argv) ++spawn_script (const char *executable, char *const *argv, ++ DWORD dwCreationFlags, ++ LPSTARTUPINFO si, ++ LPPROCESS_INFORMATION pi) + { + int pid = -1; + int save_errno = errno; +@@ -455,17 +564,21 @@ + executable = strrchr (executable1, '\\') + 1; + if (!executable) + executable = executable1; +- pid = _spawnvp (_P_NOWAIT, executable, argv); ++ pid = win32_spawn (executable, TRUE, argv, ++ dwCreationFlags, si, pi); + #else + if (strchr (executable1, '\\') == NULL) +- pid = _spawnvp (_P_NOWAIT, executable1, argv); ++ pid = win32_spawn (executable1, TRUE, argv, ++ dwCreationFlags, si, pi); + else if (executable1[0] != '\\') +- pid = _spawnv (_P_NOWAIT, executable1, argv); ++ pid = win32_spawn (executable1, FALSE, argv, ++ dwCreationFlags, si, pi); + else + { + const char *newex = mingw_rootify (executable1); + *avhere = newex; +- pid = _spawnv (_P_NOWAIT, newex, argv); ++ pid = win32_spawn (newex, FALSE, argv, ++ dwCreationFlags, si, pi); + if (executable1 != newex) + free ((char *) newex); + if (pid < 0) +@@ -474,7 +587,8 @@ + if (newex != executable1) + { + *avhere = newex; +- pid = _spawnv (_P_NOWAIT, newex, argv); ++ pid = win32_spawn (newex, FALSE, argv, ++ dwCreationFlags, si, pi); + free ((char *) newex); + } + } +@@ -498,149 +612,95 @@ + const char **errmsg, + int *err) + { +- int org_in, org_out, org_errdes; + long pid; +- const char * const * newargv; +- +- org_in = -1; +- org_out = -1; +- org_errdes = -1; +- +- if (in != STDIN_FILE_NO) +- { +- org_in = _dup (STDIN_FILE_NO); +- if (org_in < 0) +- { +- *err = errno; +- *errmsg = "_dup"; +- return -1; +- } +- if (_dup2 (in, STDIN_FILE_NO) < 0) +- { +- *err = errno; +- *errmsg = "_dup2"; +- return -1; +- } +- if (_close (in) < 0) +- { +- *err = errno; +- *errmsg = "_close"; +- return -1; +- } +- } ++ HANDLE stdin_handle; ++ HANDLE stdout_handle; ++ HANDLE stderr_handle; ++ DWORD dwCreationFlags; ++ OSVERSIONINFO version_info; ++ STARTUPINFO si; ++ PROCESS_INFORMATION pi; ++ ++ stdin_handle = INVALID_HANDLE_VALUE; ++ stdout_handle = INVALID_HANDLE_VALUE; ++ stderr_handle = INVALID_HANDLE_VALUE; ++ ++ stdin_handle = (HANDLE) _get_osfhandle (in); ++ stdout_handle = (HANDLE) _get_osfhandle (out); ++ if (!(flags & PEX_STDERR_TO_STDOUT)) ++ stderr_handle = (HANDLE) _get_osfhandle (errdes); ++ else ++ stderr_handle = stdout_handle; + +- if (out != STDOUT_FILE_NO) +- { +- org_out = _dup (STDOUT_FILE_NO); +- if (org_out < 0) +- { +- *err = errno; +- *errmsg = "_dup"; +- return -1; +- } +- if (_dup2 (out, STDOUT_FILE_NO) < 0) +- { +- *err = errno; +- *errmsg = "_dup2"; +- return -1; +- } +- if (_close (out) < 0) ++ /* Determine the version of Windows we are running on. */ ++ version_info.dwOSVersionInfoSize = sizeof (version_info); ++ GetVersionEx (&version_info); ++ if (version_info.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS) ++ /* On Windows 95/98/ME the CREATE_NO_WINDOW flag is not ++ supported, so we cannot avoid creating a console window. */ ++ dwCreationFlags = 0; ++ else + { +- *err = errno; +- *errmsg = "_close"; +- return -1; +- } +- } ++ HANDLE conout_handle; + +- if (errdes != STDERR_FILE_NO +- || (flags & PEX_STDERR_TO_STDOUT) != 0) +- { +- org_errdes = _dup (STDERR_FILE_NO); +- if (org_errdes < 0) +- { +- *err = errno; +- *errmsg = "_dup"; +- return -1; +- } +- if (_dup2 ((flags & PEX_STDERR_TO_STDOUT) != 0 ? STDOUT_FILE_NO : errdes, +- STDERR_FILE_NO) < 0) +- { +- *err = errno; +- *errmsg = "_dup2"; +- return -1; +- } +- if (errdes != STDERR_FILE_NO) +- { +- if (_close (errdes) < 0) ++ /* Determine whether or not we have an associated console. */ ++ conout_handle = CreateFile("CONOUT$", ++ GENERIC_WRITE, ++ FILE_SHARE_WRITE, ++ /*lpSecurityAttributes=*/NULL, ++ OPEN_EXISTING, ++ FILE_ATTRIBUTE_NORMAL, ++ /*hTemplateFile=*/NULL); ++ if (conout_handle == INVALID_HANDLE_VALUE) ++ /* There is no console associated with this process. Since ++ the child is a console process, the OS would normally ++ create a new console Window for the child. Since we'll be ++ redirecting the child's standard streams, we do not need ++ the console window. */ ++ dwCreationFlags = CREATE_NO_WINDOW; ++ else + { +- *err = errno; +- *errmsg = "_close"; +- return -1; +- } ++ /* There is a console associated with the process, so the OS ++ will not create a new console. And, if we use ++ CREATE_NO_WINDOW in this situation, the child will have ++ no associated console. Therefore, if the child's ++ standard streams are connected to the console, the output ++ will be discarded. */ ++ CloseHandle(conout_handle); ++ dwCreationFlags = 0; + } + } + +- newargv = fix_argv (argv); +- pid = (((flags & PEX_SEARCH) != 0 ? _spawnvp : _spawnv) +- (_P_NOWAIT, executable, newargv)); +- ++ /* Since the child will be a console process, it will, by default, ++ connect standard input/output to its console. However, we want ++ the child to use the handles specifically designated above. In ++ addition, if there is no console (such as when we are running in ++ a Cygwin X window), then we must redirect the child's ++ input/output, as there is no console for the child to use. */ ++ memset (&si, 0, sizeof (si)); ++ si.cb = sizeof (si); ++ si.dwFlags = STARTF_USESTDHANDLES; ++ si.hStdInput = stdin_handle; ++ si.hStdOutput = stdout_handle; ++ si.hStdError = stderr_handle; ++ ++ /* Create the child process. */ ++ pid = win32_spawn (executable, (flags & PEX_SEARCH) != 0, ++ argv, dwCreationFlags, &si, &pi); + if (pid == -1) +- pid = spawn_script (executable, newargv); +- ++ pid = spawn_script (executable, argv, dwCreationFlags, &si, &pi); + if (pid == -1) + { +- *err = errno; +- *errmsg = ((flags & PEX_SEARCH) != 0) ? "_spawnvp" : "_spawnv"; +- } +- +- if (in != STDIN_FILE_NO) +- { +- if (_dup2 (org_in, STDIN_FILE_NO) < 0) +- { +- *err = errno; +- *errmsg = "_dup2"; +- return -1; +- } +- if (_close (org_in) < 0) +- { +- *err = errno; +- *errmsg = "_close"; +- return -1; +- } +- } +- +- if (out != STDOUT_FILE_NO) +- { +- if (_dup2 (org_out, STDOUT_FILE_NO) < 0) +- { +- *err = errno; +- *errmsg = "_dup2"; +- return -1; +- } +- if (_close (org_out) < 0) +- { +- *err = errno; +- *errmsg = "_close"; +- return -1; +- } ++ *err = ENOENT; ++ *errmsg = "CreateProcess"; + } + +- if (errdes != STDERR_FILE_NO +- || (flags & PEX_STDERR_TO_STDOUT) != 0) +- { +- if (_dup2 (org_errdes, STDERR_FILE_NO) < 0) +- { +- *err = errno; +- *errmsg = "_dup2"; +- return -1; +- } +- if (_close (org_errdes) < 0) +- { +- *err = errno; +- *errmsg = "_close"; +- return -1; +- } +- } ++ /* Close the standard output and standard error handles in the ++ parent. */ ++ if (out != STDOUT_FILENO) ++ obj->funcs->close (obj, out); ++ if (errdes != STDERR_FILENO) ++ obj->funcs->close (obj, errdes); + + return pid; + } +@@ -658,30 +718,34 @@ + int *status, struct pex_time *time, int done ATTRIBUTE_UNUSED, + const char **errmsg, int *err) + { +- int termstat; ++ DWORD termstat; ++ HANDLE h; + + if (time != NULL) + memset (time, 0, sizeof *time); + ++ h = (HANDLE) pid; ++ + /* FIXME: If done is non-zero, we should probably try to kill the + process. */ +- +- if (_cwait (&termstat, pid, WAIT_CHILD) < 0) ++ if (WaitForSingleObject (h, INFINITE) != WAIT_OBJECT_0) + { +- *err = errno; +- *errmsg = "_cwait"; ++ CloseHandle (h); ++ *err = ECHILD; ++ *errmsg = "WaitForSingleObject"; + return -1; + } + +- /* cwait returns the child process exit code in termstat. A value +- of 3 indicates that the child caught a signal, but not which one. +- Since only SIGABRT, SIGFPE and SIGINT do anything, we report +- SIGABRT. */ ++ GetExitCodeProcess (h, &termstat); ++ CloseHandle (h); + ++ /* A value of 3 indicates that the child caught a signal, but not ++ which one. Since only SIGABRT, SIGFPE and SIGINT do anything, we ++ report SIGABRT. */ + if (termstat == 3) + *status = SIGABRT; + else +- *status = ((termstat & 0xff) << 8); ++ *status = (termstat & 0xff) << 8; + + return 0; + } diff --git a/dkppc/patches/gdb-6.6.patch b/dkppc/patches/gdb-6.6.patch deleted file mode 100644 index 20904cd..0000000 --- a/dkppc/patches/gdb-6.6.patch +++ /dev/null @@ -1,842 +0,0 @@ -diff -Nbaur gdb-6.6/config.sub gdb-6.6-ppc/config.sub ---- gdb-6.6/config.sub Tue Sep 26 06:22:50 2006 -+++ gdb-6.6-ppc/config.sub Sat Jun 16 04:14:21 2007 -@@ -230,6 +230,10 @@ - basic_machine=m68k-atari - os=-mint - ;; -+ -gekko) -+ basic_machine=powerpc-eabi -+ os=-elf -+ ;; - esac - - # Decode aliases for certain CPU-COMPANY combinations. -diff -Nbaur gdb-6.6/configure gdb-6.6-ppc/configure ---- gdb-6.6/configure Tue Nov 14 23:26:39 2006 -+++ gdb-6.6-ppc/configure Sat Jun 16 04:14:12 2007 -@@ -3271,7 +3271,7 @@ - - # Host dirs don't like to share a cache file either, horribly enough. - # This seems to be due to autoconf 2.5x stupidity. --host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}" -+host_configargs="${cache_file_option} --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}" - - target_configargs=${baseargs} - -diff -Nbaur gdb-6.6/configure.in gdb-6.6-ppc/configure.in ---- gdb-6.6/configure.in Mon Dec 18 07:22:58 2006 -+++ gdb-6.6-ppc/configure.in Sat Jun 16 04:14:12 2007 -@@ -2024,7 +2024,7 @@ - - # Host dirs don't like to share a cache file either, horribly enough. - # This seems to be due to autoconf 2.5x stupidity. --host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}" -+host_configargs="${cache_file_option} --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}" - - target_configargs=${baseargs} - -diff -Nbaur gdb-6.6/gdb/Makefile.in gdb-6.6-ppc/gdb/Makefile.in ---- gdb-6.6/gdb/Makefile.in Fri Nov 24 19:54:14 2006 -+++ gdb-6.6-ppc/gdb/Makefile.in Sat Jun 16 04:14:12 2007 -@@ -2983,7 +2983,7 @@ - insight$(EXEEXT): gdbtk-main.o libgdb.a $(ADD_DEPS) \ - $(CDEPS) $(TDEPLIBS) - rm -f insight$(EXEEXT) -- $(CC_LD) $(INTERNAL_LDFLAGS) $(WIN32LDAPP) \ -+ $(CC_LD) -mwindows $(INTERNAL_LDFLAGS) $(WIN32LDAPP) \ - -o insight$(EXEEXT) gdbtk-main.o libgdb.a \ - $(TDEPLIBS) $(TUI_LIBRARY) $(CLIBS) $(LOADLIBES) - -diff -Nbaur gdb-6.6/gdb/config/i386/mingw.mh gdb-6.6-ppc/gdb/config/i386/mingw.mh ---- gdb-6.6/gdb/config/i386/mingw.mh Thu Jan 1 00:00:00 1970 -+++ gdb-6.6-ppc/gdb/config/i386/mingw.mh Sat Jun 16 04:14:12 2007 -@@ -0,0 +1,5 @@ -+MH_CFLAGS=-D_POSIX_ -+XM_FILE=xm-mingw32.h -+NATDEPFILES= i386-nat.o win32-nat.o corelow.o -+NAT_FILE=nm-mingw32.h -+XM_CLIBS= -diff -Nbaur gdb-6.6/gdb/config/i386/mingw.mt gdb-6.6-ppc/gdb/config/i386/mingw.mt ---- gdb-6.6/gdb/config/i386/mingw.mt Thu Jan 1 00:00:00 1970 -+++ gdb-6.6-ppc/gdb/config/i386/mingw.mt Sat Jun 16 04:14:12 2007 -@@ -0,0 +1,4 @@ -+# Target: Intel x86 running Win32 (MinGW) -+TDEPFILES= i386-tdep.o i386-win32-tdep.o i387-tdep.o -+DEPRECATED_TM_FILE= tm-mingw32.h -+GDBSERVER_DEPFILES= -diff -Nbaur gdb-6.6/gdb/config/i386/nm-mingw32.h gdb-6.6-ppc/gdb/config/i386/nm-mingw32.h ---- gdb-6.6/gdb/config/i386/nm-mingw32.h Thu Jan 1 00:00:00 1970 -+++ gdb-6.6-ppc/gdb/config/i386/nm-mingw32.h Sat Jun 16 04:14:12 2007 -@@ -0,0 +1,38 @@ -+/* Native definitions for Intel x86 running MinGW. -+ Copyright (C) 2002 Free Software Foundation, Inc. -+ -+ This file is part of GDB. -+ -+ This program is free software; you can redistribute it and/or modify -+ it under the terms of the GNU General Public License as published by -+ the Free Software Foundation; either version 2 of the License, or -+ (at your option) any later version. -+ -+ This program is distributed in the hope that it will be useful, -+ but WITHOUT ANY WARRANTY; without even the implied warranty of -+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -+ GNU General Public License for more details. -+ -+ You should have received a copy of the GNU General Public License -+ along with this program; if not, write to the Free Software -+ Foundation, Inc., 59 Temple Place - Suite 330, -+ Boston, MA 02111-1307, USA. */ -+ -+#define NO_PTRACE_H -+ -+#define I386_USE_GENERIC_WATCHPOINTS -+ -+#include "i386/nm-i386.h" -+ -+/* Support for hardware-assisted breakpoints and watchpoints. */ -+ -+#define I386_DR_LOW_SET_CONTROL(VAL) cygwin_set_dr7 (VAL) -+extern void cygwin_set_dr7 (unsigned); -+ -+#define I386_DR_LOW_SET_ADDR(N,ADDR) cygwin_set_dr (N,ADDR) -+extern void cygwin_set_dr (int, CORE_ADDR); -+ -+#define I386_DR_LOW_RESET_ADDR(N) -+ -+#define I386_DR_LOW_GET_STATUS() cygwin_get_dr6 () -+extern unsigned cygwin_get_dr6 (void); -diff -Nbaur gdb-6.6/gdb/config/i386/tm-mingw32.h gdb-6.6-ppc/gdb/config/i386/tm-mingw32.h ---- gdb-6.6/gdb/config/i386/tm-mingw32.h Thu Jan 1 00:00:00 1970 -+++ gdb-6.6-ppc/gdb/config/i386/tm-mingw32.h Sat Jun 16 04:14:12 2007 -@@ -0,0 +1,21 @@ -+/* Macro definitions for i386 running under Win32. -+ Copyright 1999 Free Software Foundation, Inc. -+ -+ This file is part of GDB. -+ -+ This program is free software; you can redistribute it and/or modify -+ it under the terms of the GNU General Public License as published by -+ the Free Software Foundation; either version 2 of the License, or -+ (at your option) any later version. -+ -+ This program is distributed in the hope that it will be useful, -+ but WITHOUT ANY WARRANTY; without even the implied warranty of -+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -+ GNU General Public License for more details. -+ -+ You should have received a copy of the GNU General Public License -+ along with this program; if not, write to the Free Software -+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -+ -+#include "i386/tm-cygwin.h" -+ -diff -Nbaur gdb-6.6/gdb/config/i386/xm-mingw32.h gdb-6.6-ppc/gdb/config/i386/xm-mingw32.h ---- gdb-6.6/gdb/config/i386/xm-mingw32.h Thu Jan 1 00:00:00 1970 -+++ gdb-6.6-ppc/gdb/config/i386/xm-mingw32.h Sat Jun 16 04:14:12 2007 -@@ -0,0 +1,25 @@ -+/* Definitions for hosting on WIN32, building with MinGW, for GDB. -+ Copyright 1999 Free Software Foundation, Inc. -+ -+This file is part of GDB. -+ -+This program is free software; you can redistribute it and/or modify -+it under the terms of the GNU General Public License as published by -+the Free Software Foundation; either version 2 of the License, or -+(at your option) any later version. -+ -+This program is distributed in the hope that it will be useful, -+but WITHOUT ANY WARRANTY; without even the implied warranty of -+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -+GNU General Public License for more details. -+ -+You should have received a copy of the GNU General Public License -+along with this program; if not, write to the Free Software -+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -+ -+#include "fopen-bin.h" -+#define getkey getch -+#define DIRNAME_SEPARATOR ';' -+ -+/* Define this if source files use \r\n rather than just \n. */ -+#define CRLF_SOURCE_FILES -diff -Nbaur gdb-6.6/gdb/defs.h gdb-6.6-ppc/gdb/defs.h ---- gdb-6.6/gdb/defs.h Thu Sep 21 14:50:51 2006 -+++ gdb-6.6-ppc/gdb/defs.h Sat Jun 16 04:14:12 2007 -@@ -1167,7 +1167,7 @@ - /* FIXME, this doesn't work very well if host and executable - filesystems conventions are different. */ - --#ifdef __MSDOS__ -+#if defined(__MSDOS__) || (!defined (__CYGWIN__) && defined (_WIN32)) - # define CANT_FORK - # define GLOBAL_CURDIR - # define DIRNAME_SEPARATOR ';' -diff -Nbaur gdb-6.6/gdb/tui/tui-io.c gdb-6.6-ppc/gdb/tui/tui-io.c ---- gdb-6.6/gdb/tui/tui-io.c Fri Dec 23 19:10:02 2005 -+++ gdb-6.6-ppc/gdb/tui/tui-io.c Sat Jun 16 04:14:12 2007 -@@ -113,8 +113,11 @@ - - /* For gdb 5.3, prefer to continue the pipe hack as a backup wheel. */ - #define TUI_USE_PIPE_FOR_READLINE --/*#undef TUI_USE_PIPE_FOR_READLINE*/ - -+/* but remove for mingw host */ -+#ifdef __MINGW32__ -+#undef TUI_USE_PIPE_FOR_READLINE -+#endif - /* TUI output files. */ - static struct ui_file *tui_stdout; - static struct ui_file *tui_stderr; -diff -Nbaur gdb-6.6/gdb/win32-nat.c gdb-6.6-ppc/gdb/win32-nat.c ---- gdb-6.6/gdb/win32-nat.c Mon May 22 00:04:39 2006 -+++ gdb-6.6-ppc/gdb/win32-nat.c Sat Jun 16 04:14:12 2007 -@@ -43,7 +43,11 @@ - #include - #include - #include -+ -+#if defined (__CYGWIN__) - #include -+#endif /* __CYGWIN__ */ -+ - #include - - #include "buildsym.h" -@@ -81,7 +85,65 @@ - CONTEXT_DEBUGGER = (CONTEXT_FULL | CONTEXT_FLOATING_POINT) - }; - #endif --#include -+#ifndef __MINGW32__ -+ #include -+#else -+ #define NOTE_INFO_PROCESS 1 -+ #define NOTE_INFO_THREAD 2 -+ #define NOTE_INFO_MODULE 3 -+ -+ struct win32_core_process_info -+ { -+ DWORD pid; -+ int signal; -+ int command_line_size; -+ char command_line[1]; -+ } -+ #ifdef __GNUC__ -+ __attribute__ ((packed)) -+ #endif -+ ; -+ -+ struct win32_core_thread_info -+ { -+ DWORD tid; -+ BOOL is_active_thread; -+ CONTEXT thread_context; -+ } -+ #ifdef __GNUC__ -+ __attribute__ ((packed)) -+ #endif -+ ; -+ -+ struct win32_core_module_info -+ { -+ void* base_address; -+ int module_name_size; -+ char module_name[1]; -+ } -+ #ifdef __GNUC__ -+ __attribute__ ((packed)) -+ #endif -+ ; -+ -+ struct win32_pstatus -+ { -+ unsigned long data_type; -+ union -+ { -+ struct win32_core_process_info process_info; -+ struct win32_core_thread_info thread_info; -+ struct win32_core_module_info module_info; -+ } data ; -+ } -+ #ifdef __GNUC__ -+ __attribute__ ((packed)) -+ #endif -+ ; -+ -+ typedef struct win32_pstatus win32_pstatus_t ; -+ -+#endif - #include - - #define CONTEXT_DEBUGGER_DR CONTEXT_DEBUGGER | CONTEXT_DEBUG_REGISTERS \ -@@ -446,30 +508,23 @@ - static BOOL WINAPI (*psapi_GetModuleInformation) (HANDLE, HMODULE, LPMODULEINFO, DWORD) = NULL; - static DWORD WINAPI (*psapi_GetModuleFileNameExA) (HANDLE, HMODULE, LPSTR, DWORD) = NULL; - --static int --psapi_get_dll_name (DWORD BaseAddress, char *dll_name_ret) --{ -- DWORD len; -- MODULEINFO mi; -- int i; -- HMODULE dh_buf[1]; -- HMODULE *DllHandle = dh_buf; -- DWORD cbNeeded; -- BOOL ok; - -+BOOL -+load_psapi () -+{ - if (!psapi_loaded || - psapi_EnumProcessModules == NULL || - psapi_GetModuleInformation == NULL || - psapi_GetModuleFileNameExA == NULL) - { - if (psapi_loaded) -- goto failed; -+ return FALSE; - psapi_loaded = 1; - psapi_module_handle = LoadLibrary ("psapi.dll"); - if (!psapi_module_handle) - { - /* printf_unfiltered ("error loading psapi.dll: %u", GetLastError ()); */ -- goto failed; -+ return FALSE; - } - psapi_EnumProcessModules = GetProcAddress (psapi_module_handle, "EnumProcessModules"); - psapi_GetModuleInformation = GetProcAddress (psapi_module_handle, "GetModuleInformation"); -@@ -478,8 +533,24 @@ - if (psapi_EnumProcessModules == NULL || - psapi_GetModuleInformation == NULL || - psapi_GetModuleFileNameExA == NULL) -- goto failed; -+ return FALSE; - } -+ return TRUE; -+} -+ -+int -+psapi_get_dll_name (DWORD BaseAddress, char *dll_name_ret) -+{ -+ DWORD len; -+ MODULEINFO mi; -+ int i; -+ HMODULE dh_buf[1]; -+ HMODULE *DllHandle = dh_buf; -+ DWORD cbNeeded; -+ BOOL ok; -+ -+ if (!load_psapi ()) -+ goto failed; - - cbNeeded = 0; - ok = (*psapi_EnumProcessModules) (current_process_handle, -@@ -507,14 +578,14 @@ - DllHandle[i], - &mi, - sizeof (mi))) -- error (_("Can't get module info")); -+ error ("Can't get module info"); - - len = (*psapi_GetModuleFileNameExA) (current_process_handle, - DllHandle[i], - dll_name_ret, - MAX_PATH); - if (len == 0) -- error (_("Error getting dll name: %u."), (unsigned) GetLastError ()); -+ error ("Error getting dll name: %u\n", (unsigned) GetLastError ()); - - if ((DWORD) (mi.lpBaseOfDll) == BaseAddress) - return 1; -@@ -525,6 +596,30 @@ - return 0; - } - -+int -+psapi_get_module_filename (HANDLE hProcess, -+ HMODULE hModule, -+ LPTSTR lpFilename, -+ DWORD nSize) -+{ -+ DWORD len; -+ -+ if (!load_psapi ()) -+ goto failed; -+ -+ len = (*psapi_GetModuleFileNameExA) (hProcess, -+ hModule, -+ lpFilename, -+ nSize); -+ if (len == 0) -+ error ("Error getting file name: %u\n", (unsigned) GetLastError ()); -+ -+failed: -+ lpFilename[0] = '\0'; -+ return 0; -+} -+ -+ - /* Encapsulate the information required in a call to - symbol_file_add_args */ - struct safe_symbol_file_add_args -@@ -753,7 +848,13 @@ - so = XZALLOC (struct so_list); - so->lm_info = (struct lm_info *) xmalloc (sizeof (struct lm_info)); - so->lm_info->load_addr = load_addr; -+ -+#ifdef __CYGWIN__ - cygwin_conv_to_posix_path (buf, so->so_name); -+#else -+ strcpy( so->so_name, buf); -+#endif -+ - strcpy (so->so_original_name, so->so_name); - - solib_end->next = so; -@@ -1734,6 +1835,7 @@ - - if (!ok) - { -+#ifdef __CYGWIN__ - /* Try fall back to Cygwin pid */ - pid = cygwin_internal (CW_CYGWIN_PID_TO_WINPID, pid); - -@@ -1741,6 +1843,7 @@ - ok = DebugActiveProcess (pid); - - if (!ok) -+#endif /* __CYGWIN__ */ - error (_("Can't attach to process.")); - } - -@@ -1800,13 +1903,14 @@ - static char * - win32_pid_to_exec_file (int pid) - { -+ static char path[MAX_PATH + 1]; -+ char *path_ptr = NULL; -+#ifdef __CYGWIN__ - /* Try to find the process path using the Cygwin internal process list - pid isn't a valid pid, unfortunately. Use current_event.dwProcessId - instead. */ - /* TODO: Also find native Windows processes using CW_GETPINFO_FULL. */ - -- static char path[MAX_PATH + 1]; -- char *path_ptr = NULL; - int cpid; - struct external_pinfo *pinfo; - -@@ -1824,6 +1928,13 @@ - } - } - cygwin_internal (CW_UNLOCK_PINFO); -+#else -+ if (!psapi_get_module_filename (current_process_handle, NULL, path, MAX_PATH)) -+ printf_unfiltered ("error reading the process's file name: %lu", -+ GetLastError ()); -+ else -+ path_ptr = path; -+#endif - return path_ptr; - } - -@@ -1873,8 +1984,16 @@ - char *toexec; - char shell[MAX_PATH + 1]; /* Path to shell */ - const char *sh; -+#if defined (__MINGW32__) -+ /* BEGIN: Fragment of Al Stevens's patch for GDB on Win9x */ -+ HANDLE hStdInput = 0; -+ HANDLE hStdOutput = 0; -+ HANDLE hStdError = 0; -+ /* END: Fragment of Al Stevens's patch for GDB on Win9x */ -+#else /* !__MINGW32__ */ - int tty; - int ostdin, ostdout, ostderr; -+#endif /* !__MINGW32__ */ - const char *inferior_io_terminal = get_inferior_io_terminal (); - - if (!exec_file) -@@ -1886,7 +2005,12 @@ - if (!useshell) - { - flags = DEBUG_ONLY_THIS_PROCESS; -+#ifdef __CYGWIN__ - cygwin_conv_to_win32_path (exec_file, real_path); -+#else -+ strcpy (real_path, exec_file); -+#endif -+ - toexec = real_path; - } - else -@@ -1895,7 +2019,11 @@ - sh = getenv ("SHELL"); - if (!sh) - sh = "/bin/sh"; -+#ifdef __CYGWIN__ - cygwin_conv_to_win32_path (sh, shell); -+#else -+ strcpy (shell, sh); -+#endif - newallargs = alloca (sizeof (" -c 'exec '") + strlen (exec_file) - + strlen (allargs) + 2); - sprintf (newallargs, " -c 'exec %s %s'", exec_file, allargs); -@@ -1946,10 +2074,12 @@ - len = strlen (conv_path_names[j]); - if (strncmp (conv_path_names[j], in_env[i], len) == 0) - { -- if (cygwin_posix_path_list_p (in_env[i] + len)) -+#ifdef __CYGWIN__ -+ if (cygwin_posix_path_list_p (env[i] + len)) - envlen += len -- + cygwin_posix_to_win32_path_list_buf_size (in_env[i] + len); -+ + cygwin_posix_to_win32_path_list_buf_size (env[i] + len); - else -+#endif - envlen += strlen (in_env[i]) + 1; - break; - } -@@ -1976,12 +2106,14 @@ - len = strlen (conv_path_names[j]); - if (strncmp (conv_path_names[j], env[i], len) == 0) - { -+#ifdef __CYGWIN__ - if (cygwin_posix_path_list_p (env[i] + len)) - { - memcpy (temp, env[i], len); - cygwin_posix_to_win32_path_list (env[i] + len, temp + len); - } - else -+#endif - strcpy (temp, env[i]); - break; - } -@@ -1996,6 +2128,20 @@ - *temp = 0; - } - -+#if defined (__MINGW32__) -+ /* BEGIN: Fragment of Al Stevens's patch for GDB on Win9x */ -+ if ( new_console) -+ { -+ hStdInput = GetStdHandle( STD_INPUT_HANDLE); -+ hStdOutput = GetStdHandle( STD_OUTPUT_HANDLE); -+ hStdError = GetStdHandle( STD_ERROR_HANDLE); -+ -+ SetStdHandle( STD_INPUT_HANDLE, INVALID_HANDLE_VALUE); -+ SetStdHandle( STD_OUTPUT_HANDLE, INVALID_HANDLE_VALUE); -+ SetStdHandle( STD_ERROR_HANDLE, INVALID_HANDLE_VALUE); -+ } -+ /* END: Fragment of Al Stevens's patch for GDB on Win9x */ -+#else /* !__MINGW32__ */ - if (!inferior_io_terminal) - tty = ostdin = ostdout = ostderr = -1; - else -@@ -2016,6 +2162,7 @@ - dup2 (tty, 2); - } - } -+#endif /* !__MINGW32__ */ - - win32_init_thread_list (); - ret = CreateProcess (0, -@@ -2028,6 +2175,16 @@ - NULL, /* current directory */ - &si, - &pi); -+#if defined (__MINGW32__) -+ /* BEGIN: Fragment of Al Stevens's patch for GDB on Win9x */ -+ if ( new_console) -+ { -+ SetStdHandle( STD_INPUT_HANDLE, hStdInput); -+ SetStdHandle( STD_OUTPUT_HANDLE, hStdOutput); -+ SetStdHandle( STD_ERROR_HANDLE, hStdError); -+ } -+ /* END: Fragment of Al Stevens's patch for GDB on Win9x */ -+#else /* !__MINGW32__ */ - if (tty >= 0) - { - close (tty); -@@ -2038,6 +2195,7 @@ - close (ostdout); - close (ostderr); - } -+#endif /* !__MINGW32__ */ - - if (!ret) - error (_("Error creating process %s, (error %d)."), -diff -Nbaur gdb-6.6/include/opcode/ppc.h gdb-6.6-ppc/include/opcode/ppc.h ---- gdb-6.6/include/opcode/ppc.h Tue Oct 24 02:27:28 2006 -+++ gdb-6.6-ppc/include/opcode/ppc.h Sat Jun 16 04:15:10 2007 -@@ -146,6 +146,9 @@ - /* Opcode is only supported by PowerPC Cell family. */ - #define PPC_OPCODE_CELL 0x8000000 - -+/* Opcode is only supported by the PowerPC Gekko processor. */ -+#define PPC_OPCODE_GEKKO (040000000) -+ - /* A macro to extract the major opcode from an instruction. */ - #define PPC_OP(i) (((i) >> 26) & 0x3f) - -@@ -293,6 +296,10 @@ - /* This operand is for the DQ field in a DQ form instruction. */ - #define PPC_OPERAND_DQ (0100000) - -+/* This operand names a quantization register. The disassembler -+ prints these with a leading 'gqr'. */ -+#define PPC_OPERAND_GQR (040000) -+ - /* 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 gdb-6.6/opcodes/ppc-dis.c gdb-6.6-ppc/opcodes/ppc-dis.c ---- gdb-6.6/opcodes/ppc-dis.c Tue Oct 24 02:27:28 2006 -+++ gdb-6.6-ppc/opcodes/ppc-dis.c Sat Jun 16 04:15:10 2007 -@@ -62,6 +62,13 @@ - && strstr (info->disassembler_options, "e300") != NULL) - dialect |= PPC_OPCODE_E300 | PPC_OPCODE_CLASSIC | PPC_OPCODE_COMMON; - else -+ if (info->disassembler_options -+ && (strstr (info->disassembler_options, "gekko") == 0)) -+ { -+ dialect |= PPC_OPCODE_GEKKO; -+ dialect &= ~PPC_OPCODE_ALTIVEC; -+ } -+ else - dialect |= (PPC_OPCODE_403 | PPC_OPCODE_601 | PPC_OPCODE_CLASSIC - | PPC_OPCODE_COMMON | PPC_OPCODE_ALTIVEC); - -@@ -249,6 +256,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); -+ else if ((operand->flags & PPC_OPERAND_GQR) != 0) -+ (*info->fprintf_func) (info->stream, "gqr%ld", value); - else if ((operand->flags & PPC_OPERAND_CR) == 0 - || (dialect & PPC_OPCODE_PPC) == 0) - (*info->fprintf_func) (info->stream, "%ld", value); -@@ -317,4 +326,5 @@ - fprintf (stream, " power6 Disassemble the Power6 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 gdb-6.6/opcodes/ppc-opc.c gdb-6.6-ppc/opcodes/ppc-opc.c ---- gdb-6.6/opcodes/ppc-opc.c Mon Nov 6 00:46:07 2006 -+++ gdb-6.6-ppc/opcodes/ppc-opc.c Sat Jun 16 04:40:02 2007 -@@ -95,6 +95,13 @@ - static unsigned long insert_ev8 (unsigned long, long, int, const char **); - static long extract_ev8 (unsigned long, int, int *); - -+static unsigned long insert_psq_gd (unsigned long, long, int, const char **); -+static long extract_psq_gd (unsigned long, int, int *); -+static unsigned long insert_psq_gx (unsigned long, long, int, const char **); -+static long extract_psq_gx (unsigned long, int, int *); -+ -+ -+ - /* The operands table. - - The fields are bits, shift, insert, extract, flags. -@@ -598,6 +605,27 @@ - /* The EH field in larx instruction. */ - #define EH XRT_L + 1 - { 1, 0, NULL, NULL, PPC_OPERAND_OPTIONAL }, -+ -+ /* I Field in psq_ instructions */ -+#define PSQ_DD MTMSRD_L + 1 -+ { 12, 0, 0, 0, PPC_OPERAND_PARENS|PPC_OPERAND_SIGNED }, -+ -+ /* W Field in psq_ instructions */ -+#define PSQ_WD PSQ_DD + 1 -+ { 1, 15, 0, 0, 0 }, -+ -+ /* d Field in psq_ instructions */ -+#define PSQ_GD PSQ_WD + 1 -+ { 10, 12, insert_psq_gd, extract_psq_gd, PPC_OPERAND_GQR }, -+ -+ /* I Field in psq_ instructions A*/ -+#define PSQ_WX PSQ_GD + 1 -+ { 1, 10, 0, 0, 0 }, -+ -+ /* W Field in psq_ instructions */ -+#define PSQ_GX PSQ_WX + 1 -+ { 10, 7, insert_psq_gx, extract_psq_gx, PPC_OPERAND_GQR }, -+ - }; - - /* The functions used to insert and extract complicated operands. */ -@@ -1513,6 +1541,50 @@ - return ret; - } - -+static unsigned long -+insert_psq_gd (unsigned long insn, -+ long value, -+ int dialect ATTRIBUTE_UNUSED, -+ const char **errmsg) -+{ -+ if (value >= 912 && value <= 919) -+ value -= 912; -+ if (value < 0 || value > 7) -+ *errmsg = _("invalid quantization register"); -+ return insn | ((value & 7) << 12); -+} -+ -+static long -+extract_psq_gd (unsigned long insn, -+ int dialect ATTRIBUTE_UNUSED, -+ int *invalid ATTRIBUTE_UNUSED) -+{ -+ return ((insn & 0x7000) >> 12); -+} -+ -+static unsigned long -+insert_psq_gx (unsigned long insn, -+ long value, -+ int dialect ATTRIBUTE_UNUSED, -+ const char **errmsg) -+{ -+ if (value >= 912 && value <= 919) -+ value -= 912; -+ if (value < 0 || value > 7) -+ *errmsg = _("invalid quantization register"); -+ return insn | ((value & 7) << 7); -+} -+ -+static long -+extract_psq_gx (unsigned long insn, -+ int dialect ATTRIBUTE_UNUSED, -+ int *invalid ATTRIBUTE_UNUSED) -+{ -+ return ((insn & 0x380) >> 7); -+} -+ -+ -+ - /* Macros used to form opcodes. */ - - /* The main opcode. */ -@@ -1814,6 +1886,11 @@ - #define XUC(op, xop) (OP (op) | (((unsigned long)(xop)) & 0x1f)) - #define XUC_MASK XUC(0x3f, 0x1f) - -+/* A PSQ style load/store indexed */ -+#define PSQX(op, xop) (OP (op) | (((unsigned long)(xop)) & 0x7f)) -+#define PSQX_MASK PSQX(0x3f,0x7f) -+ -+ - /* The BO encodings used in extended conditional branch mnemonics. */ - #define BODNZF (0x0) - #define BODNZFP (0x1) -@@ -1908,6 +1985,7 @@ - #define PPCCHLK PPC_OPCODE_CACHELCK - #define PPCCHLK64 PPC_OPCODE_CACHELCK | PPC_OPCODE_BOOKE64 - #define PPCRFMCI PPC_OPCODE_RFMCI -+#define PPCGEKKO PPC_OPCODE_GEKKO - - /* The opcode table. - -@@ -4928,6 +5006,99 @@ - { "diexq", XRC(63,866,0), X_MASK, POWER6, { FRT, FRA, FRB } }, - { "diexq.", XRC(63,866,1), X_MASK, POWER6, { FRT, FRA, FRB } }, - -+/* GEKKO specific stuff */ -+{ "dcbz_l", X(4,1014), XRT_MASK, PPCGEKKO, { RA, RB }}, -+ -+{ "ps_abs", XRC(4,264,0), XRA_MASK, PPCGEKKO, { FRT,FRB }}, -+{ "ps_abs.", XRC(4,264,1), XRA_MASK, PPCGEKKO, { FRT,FRB }}, -+ -+{ "ps_add", A(4,21,0), AFRC_MASK, PPCGEKKO, { FRT, FRA, FRB }}, -+{ "ps_add.", A(4,21,1), AFRC_MASK, PPCGEKKO, { FRT, FRA, FRB }}, -+ -+{ "ps_cmpo0", X(4,32), X_MASK|(3<<21), PPCGEKKO, { BF, FRA, FRB }}, -+{ "ps_cmpo1", X(4,96), X_MASK|(3<<21), PPCGEKKO, { BF, FRA, FRB }}, -+ -+{ "ps_cmpu0", X(4,0), X_MASK|(3<<21), PPCGEKKO, { BF, FRA, FRB }}, -+{ "ps_cmpu1", X(4,64), X_MASK|(3<<21), PPCGEKKO, { BF, FRA, FRB }}, -+ -+{ "ps_div", A(4,18,0), AFRC_MASK, PPCGEKKO, { FRT, FRA, FRB }}, -+{ "ps_div.", A(4,18,1), AFRC_MASK, PPCGEKKO, { FRT, FRA, FRB }}, -+ -+{ "ps_madd", A(4,29,0), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+{ "ps_madd.", A(4,29,1), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+ -+{ "ps_madds0", A(4,14,0), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+{ "ps_madds0.", A(4,14,1), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+ -+{ "ps_madds1", A(4,15,0), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+{ "ps_madds1.", A(4,15,1), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+ -+{ "ps_merge00", XRC(4,528,0), X_MASK, PPCGEKKO, { FRT,FRA,FRB }}, -+{ "ps_merge00.", XRC(4,528,1), X_MASK, PPCGEKKO, { FRT,FRA,FRB }}, -+ -+{ "ps_merge01", XRC(4,560,0), X_MASK, PPCGEKKO, { FRT,FRA,FRB }}, -+{ "ps_merge01.", XRC(4,560,1), X_MASK, PPCGEKKO, { FRT,FRA,FRB }}, -+ -+{ "ps_merge10", XRC(4,592,0), X_MASK, PPCGEKKO, { FRT,FRA,FRB }}, -+{ "ps_merge10.", XRC(4,592,1), X_MASK, PPCGEKKO, { FRT,FRA,FRB }}, -+ -+{ "ps_merge11", XRC(4,624,0), X_MASK, PPCGEKKO, { FRT,FRA,FRB }}, -+{ "ps_merge11.", XRC(4,624,1), X_MASK, PPCGEKKO, { FRT,FRA,FRB }}, -+ -+{ "ps_mr", XRC(4,72,0), XRA_MASK, PPCGEKKO, { FRT, FRB }}, -+{ "ps_mr.", XRC(4,72,1), XRA_MASK, PPCGEKKO, { FRT, FRB }}, -+ -+{ "ps_msub", A(4,28,0), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+{ "ps_msub.", A(4,28,1), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+ -+{ "ps_mul", A(4,25,0), AFRB_MASK, PPCGEKKO, { FRT,FRA,FRC }}, -+{ "ps_mul.", A(4,25,1), AFRB_MASK, PPCGEKKO, { FRT,FRA,FRC }}, -+ -+{ "ps_muls0", A(4,12,0), AFRB_MASK, PPCGEKKO, { FRT,FRA,FRC }}, -+{ "ps_muls0.", A(4,12,1), AFRB_MASK, PPCGEKKO, { FRT,FRA,FRC }}, -+ -+{ "ps_muls1", A(4,13,0), AFRB_MASK, PPCGEKKO, { FRT,FRA,FRC }}, -+{ "ps_muls1.", A(4,13,1), AFRB_MASK, PPCGEKKO, { FRT,FRA,FRC }}, -+ -+{ "ps_nabs", XRC(4,136,0), XRA_MASK, PPCGEKKO, { FRT, FRB }}, -+{ "ps_nabs.", XRC(4,136,1), XRA_MASK, PPCGEKKO, { FRT, FRB }}, -+ -+{ "ps_neg", XRC(4,40,0), XRA_MASK, PPCGEKKO, { FRT, FRB }}, -+{ "ps_neg.", XRC(4,40,1), XRA_MASK, PPCGEKKO, { FRT, FRB }}, -+ -+{ "ps_nmadd", A(4,31,0), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+{ "ps_nmadd.", A(4,31,1), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+ -+{ "ps_nmsub", A(4,30,0), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+{ "ps_nmsub.", A(4,30,1), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+ -+{ "ps_res", A(4,13,0), AFRAFRC_MASK, PPCGEKKO, { FRT,FRB }}, -+{ "ps_res.", A(4,13,1), AFRAFRC_MASK, PPCGEKKO, { FRT,FRB }}, -+ -+{ "ps_rsqrte", A(4,26,0), AFRAFRC_MASK, PPCGEKKO, { FRT,FRB }}, -+{ "ps_rsqrte.", A(4,26,1), AFRAFRC_MASK, PPCGEKKO, { FRT,FRB }}, -+ -+{ "ps_sel", A(4,23,0), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+{ "ps_sel.", A(4,23,1), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+ -+{ "ps_sub", A(4,20,0), AFRC_MASK, PPCGEKKO, { FRT, FRA, FRB }}, -+{ "ps_sub.", A(4,20,1), AFRC_MASK, PPCGEKKO, { FRT, FRA, FRB }}, -+ -+{ "ps_sum0", A(4,10,0), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+{ "ps_sum0.", A(4,10,1), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+ -+{ "ps_sum1", A(4,11,0), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+{ "ps_sum1.", A(4,11,1), A_MASK, PPCGEKKO, { FRT,FRA,FRC,FRB }}, -+ -+{ "psq_l", OP(56), OP_MASK, PPCGEKKO, { FRT,PSQ_DD,RA,PSQ_WD,PSQ_GD }}, -+{ "psq_lu", OP(57), OP_MASK, PPCGEKKO, { FRT,PSQ_DD,RA,PSQ_WD,PSQ_GD }}, -+{ "psq_lux", PSQX(4,76),PSQX_MASK, PPCGEKKO, { FRT,RA,RB,PSQ_WX,PSQ_GX }}, -+{ "psq_lx", PSQX(4,12),PSQX_MASK, PPCGEKKO, { FRT,RA,RB,PSQ_WX,PSQ_GX }}, -+{ "psq_st", OP(60), OP_MASK, PPCGEKKO, { FRT,PSQ_DD,RA,PSQ_WD,PSQ_GD }}, -+{ "psq_stu", OP(61), OP_MASK, PPCGEKKO, { FRT,PSQ_DD,RA,PSQ_WD,PSQ_GD }}, -+{ "psq_stux", PSQX(4,78), PSQX_MASK, PPCGEKKO, { FRT,RA,RB,PSQ_WX,PSQ_GX }}, -+{ "psq_stx", PSQX(4,14), PSQX_MASK, PPCGEKKO, { FRT,RA,RB,PSQ_WX,PSQ_GX }}, -+ - }; - - const int powerpc_num_opcodes = diff --git a/dkppc/patches/gdb-6.7.1.patch b/dkppc/patches/gdb-6.7.1.patch new file mode 100644 index 0000000..8c30ecd --- /dev/null +++ b/dkppc/patches/gdb-6.7.1.patch @@ -0,0 +1,14 @@ +diff -Nbaur gdb-6.7.1/config.sub gdb-6.7.1-ppc/config.sub +--- gdb-6.7.1/config.sub Wed Aug 29 16:23:21 2007 ++++ gdb-6.7.1-ppc/config.sub Mon Dec 10 22:21:17 2007 +@@ -230,6 +230,10 @@ + basic_machine=m68k-atari + os=-mint + ;; ++ -gekko) ++ basic_machine=powerpc-eabi ++ os=-elf ++ ;; + esac + + # Decode aliases for certain CPU-COMPANY combinations. diff --git a/dkppc/patches/newlib-1.13.0.patch b/dkppc/patches/newlib-1.13.0.patch deleted file mode 100644 index 7902ed6..0000000 --- a/dkppc/patches/newlib-1.13.0.patch +++ /dev/null @@ -1,2830 +0,0 @@ -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 */ -+