patches/gcc/3.3.2/pr11608-fix.patch
changeset 1 eeea35fbf182
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/gcc/3.3.2/pr11608-fix.patch	Sat Feb 24 11:00:05 2007 +0000
     1.3 @@ -0,0 +1,31 @@
     1.4 +pr11608
     1.5 +
     1.6 +------------
     1.7 +I'm building and testing an x86->sh4 crosscompiler with http://kegel.com/crosstool
     1.8 +With either gcc-3.3 or gcc-ss-3_3-20030714 I get:
     1.9 +
    1.10 +Testing debug/20020327-1.c, -gstabs1
    1.11 +...
    1.12 +FAIL: gcc.dg/debug/20020327-1.c (test for excess errors)
    1.13 +Excess errors:
    1.14 +/tmp/cc8dFF7Y.s: Assembler messages:
    1.15 +/tmp/cc8dFF7Y.s:66: Error: symbol `Letext' is already defined
    1.16 +
    1.17 +------------
    1.18 +
    1.19 +Index: elf.h
    1.20 +===================================================================
    1.21 +RCS file: /cvs/gcc/gcc/gcc/config/sh/elf.h,v
    1.22 +retrieving revision 1.32
    1.23 +diff -u -p -r1.32 elf.h
    1.24 +--- gcc-orig/gcc/config/sh/elf.h	27 Sep 2003 04:48:28 -0000	1.32
    1.25 ++++ gcc-new/gcc/config/sh/elf.h	2 Jan 2004 07:23:23 -0000
    1.26 +@@ -95,7 +95,7 @@ while (0)
    1.27 + #define DBX_OUTPUT_MAIN_SOURCE_FILE_END(FILE, FILENAME)			\
    1.28 + do {									\
    1.29 +   text_section ();							\
    1.30 +-  fprintf ((FILE), "\t.stabs \"\",%d,0,0,Letext\nLetext:\n", N_SO);	\
    1.31 ++  asm_fprintf ((FILE), "\t.stabs \"\",%d,0,0,%LLetext\n%LLetext:\n", N_SO); \
    1.32 + } while (0)
    1.33 + 
    1.34 + #undef STARTFILE_SPEC