patches/gcc/3.4.0/gcc-3.4.0-pr14808-refix.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue May 08 17:48:32 2007 +0000 (2007-05-08)
changeset 78 c3868084d81a
permissions -rw-r--r--
Huge fixes to glibc build, so that we can build at least (and at last):
- use ports addon even when installing headers,
- use optimisation (-O) when installing headers, to avoid unnecessary warnings (thanks Robert P. J. DAY for pointing this out!),
- lowest kernel version to use is only X.Y.Z, not X.Y.Z.T,
- a bit of preparations for NPTL (RSN I hope),
- fix fixing the linker scripts (changing the backup file is kind of useless and stupid);

Shut uClibc finish step: there really is nothing to do;

Add a patch for glibc-2.3.6 weak aliases handling on some archs (ARM and ALPHA at least);

Did not catch the make errors: fixed the pattern matching in scripts/functions;

Introduce a new log level, ALL:
- send components' build messages there,
- DEBUG log level is destined only for crosstool-NG debug messages,
- migrate sub-actions to use appropriate log levels;

Update the armeb-unknown-linux-gnu sample:
- it builds!
- uses gcc-4.0.4 and glibc-2.3.6,
- updated to latest config options set.
yann@1
     1
See http://gcc.gnu.org/ml/gcc/2004-06/msg00394.html
yann@1
     2
This might fix the error
yann@1
     3
yann@1
     4
strstream.s: Assembler messages:
yann@1
     5
strstream.s:8390: Error: junk `(%ecx)' after expression
yann@1
     6
strstream.s:8402: Error: junk `(%ecx)' after expression
yann@1
     7
strstream.s:8551: Error: junk `(%ecx)' after expression
yann@1
     8
strstream.s:8563: Error: junk `(%ecx)' after expression
yann@1
     9
make[3]: *** [strstream.lo] Error 1
yann@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'
yann@1
    11
yann@1
    12
when building a cygwin->linux cross-compiler with gcc-3.4.0,
yann@1
    13
probably caused by patch to fix http://gcc.gnu.org/PR14808
yann@1
    14
yann@1
    15
yann@1
    16
--- gcc-3.4.0/gcc/cp/method.c.old	Sun Jun  6 22:46:04 2004
yann@1
    17
+++ gcc-3.4.0/gcc/cp/method.c	Sun Jun  6 22:48:13 2004
yann@1
    18
@@ -286,7 +286,7 @@
yann@1
    19
   tree alias;
yann@1
    20
   char buf[256];
yann@1
    21
 
yann@1
    22
-#if defined (__CYGWIN__) || defined (__MINGW32__)
yann@1
    23
+#if defined (TARGET_IS_PE_COFF)
yann@1
    24
   if (DECL_ONE_ONLY (function))
yann@1
    25
     return function;
yann@1
    26
 #endif
yann@1
    27
@@ -404,7 +404,7 @@
yann@1
    28
   push_to_top_level ();
yann@1
    29
 
yann@1
    30
 #if defined (ASM_OUTPUT_DEF) \
yann@1
    31
-  && !(defined (__CYGWIN__) || defined (__MINGW32__))
yann@1
    32
+  && !defined (TARGET_IS_PE_COFF)
yann@1
    33
   if (targetm.have_named_sections)
yann@1
    34
     {
yann@1
    35
       resolve_unique_section (function, 0, flag_function_sections);
yann@1
    36
--- gcc-3.4.0/gcc/config/i386/cygming.h.old	Sun Jun  6 22:50:46 2004
yann@1
    37
+++ gcc-3.4.0/gcc/config/i386/cygming.h	Sun Jun  6 22:52:10 2004
yann@1
    38
@@ -27,6 +27,8 @@
yann@1
    39
 
yann@1
    40
 #define TARGET_EXECUTABLE_SUFFIX ".exe"
yann@1
    41
 
yann@1
    42
+#define TARGET_IS_PE_COFF 1
yann@1
    43
+
yann@1
    44
 #include <stdio.h>
yann@1
    45
 
yann@1
    46
 /* Masks for subtarget switches used by other files.  */