patches/gcc/3.4.0/gcc-3.4.0-pr14808-refix.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Feb 24 11:00:05 2007 +0000 (2007-02-24)
changeset 1 eeea35fbf182
permissions -rw-r--r--
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
     1 See http://gcc.gnu.org/ml/gcc/2004-06/msg00394.html
     2 This might fix the error
     3 
     4 strstream.s: Assembler messages:
     5 strstream.s:8390: Error: junk `(%ecx)' after expression
     6 strstream.s:8402: Error: junk `(%ecx)' after expression
     7 strstream.s:8551: Error: junk `(%ecx)' after expression
     8 strstream.s:8563: Error: junk `(%ecx)' after expression
     9 make[3]: *** [strstream.lo] Error 1
    10 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'
    11 
    12 when building a cygwin->linux cross-compiler with gcc-3.4.0,
    13 probably caused by patch to fix http://gcc.gnu.org/PR14808
    14 
    15 
    16 --- gcc-3.4.0/gcc/cp/method.c.old	Sun Jun  6 22:46:04 2004
    17 +++ gcc-3.4.0/gcc/cp/method.c	Sun Jun  6 22:48:13 2004
    18 @@ -286,7 +286,7 @@
    19    tree alias;
    20    char buf[256];
    21  
    22 -#if defined (__CYGWIN__) || defined (__MINGW32__)
    23 +#if defined (TARGET_IS_PE_COFF)
    24    if (DECL_ONE_ONLY (function))
    25      return function;
    26  #endif
    27 @@ -404,7 +404,7 @@
    28    push_to_top_level ();
    29  
    30  #if defined (ASM_OUTPUT_DEF) \
    31 -  && !(defined (__CYGWIN__) || defined (__MINGW32__))
    32 +  && !defined (TARGET_IS_PE_COFF)
    33    if (targetm.have_named_sections)
    34      {
    35        resolve_unique_section (function, 0, flag_function_sections);
    36 --- gcc-3.4.0/gcc/config/i386/cygming.h.old	Sun Jun  6 22:50:46 2004
    37 +++ gcc-3.4.0/gcc/config/i386/cygming.h	Sun Jun  6 22:52:10 2004
    38 @@ -27,6 +27,8 @@
    39  
    40  #define TARGET_EXECUTABLE_SUFFIX ".exe"
    41  
    42 +#define TARGET_IS_PE_COFF 1
    43 +
    44  #include <stdio.h>
    45  
    46  /* Masks for subtarget switches used by other files.  */