patches/gcc/3.4.0/gcc-3.4.0-pr14808-refix.patch
changeset 330 447b203edc2e
parent 329 419d959441ed
child 331 0c05f9ea3254
     1.1 --- a/patches/gcc/3.4.0/gcc-3.4.0-pr14808-refix.patch	Tue Aug 14 19:32:22 2007 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,46 +0,0 @@
     1.4 -See http://gcc.gnu.org/ml/gcc/2004-06/msg00394.html
     1.5 -This might fix the error
     1.6 -
     1.7 -strstream.s: Assembler messages:
     1.8 -strstream.s:8390: Error: junk `(%ecx)' after expression
     1.9 -strstream.s:8402: Error: junk `(%ecx)' after expression
    1.10 -strstream.s:8551: Error: junk `(%ecx)' after expression
    1.11 -strstream.s:8563: Error: junk `(%ecx)' after expression
    1.12 -make[3]: *** [strstream.lo] Error 1
    1.13 -make[3]: Leaving directory `i686-unknown-linux-gnu/gcc-3.4.0-glibc-2.3.2/build-gcc/i686-unknown-linux-gnu/libstdc++-v3/src'
    1.14 -
    1.15 -when building a cygwin->linux cross-compiler with gcc-3.4.0,
    1.16 -probably caused by patch to fix http://gcc.gnu.org/PR14808
    1.17 -
    1.18 -
    1.19 ---- gcc-3.4.0/gcc/cp/method.c.old	Sun Jun  6 22:46:04 2004
    1.20 -+++ gcc-3.4.0/gcc/cp/method.c	Sun Jun  6 22:48:13 2004
    1.21 -@@ -286,7 +286,7 @@
    1.22 -   tree alias;
    1.23 -   char buf[256];
    1.24 - 
    1.25 --#if defined (__CYGWIN__) || defined (__MINGW32__)
    1.26 -+#if defined (TARGET_IS_PE_COFF)
    1.27 -   if (DECL_ONE_ONLY (function))
    1.28 -     return function;
    1.29 - #endif
    1.30 -@@ -404,7 +404,7 @@
    1.31 -   push_to_top_level ();
    1.32 - 
    1.33 - #if defined (ASM_OUTPUT_DEF) \
    1.34 --  && !(defined (__CYGWIN__) || defined (__MINGW32__))
    1.35 -+  && !defined (TARGET_IS_PE_COFF)
    1.36 -   if (targetm.have_named_sections)
    1.37 -     {
    1.38 -       resolve_unique_section (function, 0, flag_function_sections);
    1.39 ---- gcc-3.4.0/gcc/config/i386/cygming.h.old	Sun Jun  6 22:50:46 2004
    1.40 -+++ gcc-3.4.0/gcc/config/i386/cygming.h	Sun Jun  6 22:52:10 2004
    1.41 -@@ -27,6 +27,8 @@
    1.42 - 
    1.43 - #define TARGET_EXECUTABLE_SUFFIX ".exe"
    1.44 - 
    1.45 -+#define TARGET_IS_PE_COFF 1
    1.46 -+
    1.47 - #include <stdio.h>
    1.48 - 
    1.49 - /* Masks for subtarget switches used by other files.  */