Add gcc-4.1.2 and update associated patches.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Mar 04 22:56:04 2007 +0000 (2007-03-04)
changeset 13068dce39f687
parent 12 343721860361
child 14 11726b835286
Add gcc-4.1.2 and update associated patches.
config/cc_core_gcc.in
config/cc_gcc.in
patches/gcc/4.1.2/100-uclibc-conf.patch
patches/gcc/4.1.2/110-arm-eabi.patch
patches/gcc/4.1.2/200-uclibc-locale.patch
patches/gcc/4.1.2/300-libstdc++-pic.patch
patches/gcc/4.1.2/301-missing-execinfo_h.patch
patches/gcc/4.1.2/302-c99-snprintf.patch
patches/gcc/4.1.2/303-c99-complex-ugly-hack.patch
patches/gcc/4.1.2/304-index_macro.patch
patches/gcc/4.1.2/402-libbackend_dep_gcov-iov.h.patch
patches/gcc/4.1.2/740-sh-pr24836.patch
patches/gcc/4.1.2/800-arm-bigendian.patch
     1.1 --- a/config/cc_core_gcc.in	Sun Mar 04 22:55:14 2007 +0000
     1.2 +++ b/config/cc_core_gcc.in	Sun Mar 04 22:56:04 2007 +0000
     1.3 @@ -96,6 +96,10 @@
     1.4      bool
     1.5      prompt "4.1.1"
     1.6  
     1.7 +config CC_CORE_V_4_1_2
     1.8 +    bool
     1.9 +    prompt "4.1.2"
    1.10 +
    1.11  # CT_INSERT_VERSION_ABOVE
    1.12  # Don't remove above line!
    1.13  endchoice
    1.14 @@ -125,6 +129,7 @@
    1.15      default "4.0.4" if CC_CORE_V_4_0_4
    1.16      default "4.1.0" if CC_CORE_V_4_1_0
    1.17      default "4.1.1" if CC_CORE_V_4_1_1
    1.18 +    default "4.1.2" if CC_CORE_V_4_1_2
    1.19  # CT_INSERT_VERSION_STRING_ABOVE
    1.20  # Don't remove above line!
    1.21  
     2.1 --- a/config/cc_gcc.in	Sun Mar 04 22:55:14 2007 +0000
     2.2 +++ b/config/cc_gcc.in	Sun Mar 04 22:56:04 2007 +0000
     2.3 @@ -92,6 +92,10 @@
     2.4      bool
     2.5      prompt "4.1.1"
     2.6  
     2.7 +config CC_V_4_1_2
     2.8 +    bool
     2.9 +    prompt "4.1.2"
    2.10 +
    2.11  # CT_INSERT_VERSION_ABOVE
    2.12  # Don't remove above line!
    2.13  endchoice
    2.14 @@ -120,6 +124,7 @@
    2.15      default "4.0.4" if CC_V_4_0_4
    2.16      default "4.1.0" if CC_V_4_1_0
    2.17      default "4.1.1" if CC_V_4_1_1
    2.18 +    default "4.1.2" if CC_V_4_1_2
    2.19  # CT_INSERT_VERSION_STRING_ABOVE
    2.20  # Don't remove above line!
    2.21  
     3.1 --- a/patches/gcc/4.1.2/100-uclibc-conf.patch	Sun Mar 04 22:55:14 2007 +0000
     3.2 +++ b/patches/gcc/4.1.2/100-uclibc-conf.patch	Sun Mar 04 22:56:04 2007 +0000
     3.3 @@ -1,14 +1,14 @@
     3.4 ---- gcc-4.1.0/gcc/config/t-linux-uclibc
     3.5 -+++ gcc-4.1.0/gcc/config/t-linux-uclibc
     3.6 +--- gcc-4.1.2.orig/gcc/config/t-linux-uclibc	1970-01-01 01:00:00.000000000 +0100
     3.7 ++++ gcc-4.1.2/gcc/config/t-linux-uclibc	2007-03-04 23:25:07.000000000 +0100
     3.8  @@ -0,0 +1,5 @@
     3.9  +# Remove glibc specific files added in t-linux
    3.10  +SHLIB_MAPFILES := $(filter-out $(srcdir)/config/libgcc-glibc.ver, $(SHLIB_MAPFILES))
    3.11  +
    3.12  +# Use unwind-dw2-fde instead of unwind-dw2-fde-glibc
    3.13  +LIB2ADDEH := $(subst unwind-dw2-fde-glibc.c,unwind-dw2-fde.c,$(LIB2ADDEH))
    3.14 ---- gcc-4.1.0/gcc/config.gcc
    3.15 -+++ gcc-4.1.0/gcc/config.gcc
    3.16 -@@ -1887,7 +1887,7 @@ s390x-ibm-tpf*)
    3.17 +--- gcc-4.1.2.orig/gcc/config.gcc	2006-10-16 01:12:23.000000000 +0200
    3.18 ++++ gcc-4.1.2/gcc/config.gcc	2007-03-04 23:25:07.000000000 +0100
    3.19 +@@ -1884,7 +1884,7 @@
    3.20   	;;
    3.21   sh-*-elf* | sh[12346l]*-*-elf* | sh*-*-kaos* | \
    3.22   sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
    3.23 @@ -17,7 +17,7 @@
    3.24     sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
    3.25      sh64-*-netbsd* | sh64l*-*-netbsd*)
    3.26   	tmake_file="${tmake_file} sh/t-sh sh/t-elf"
    3.27 -@@ -2341,6 +2341,12 @@ m32c-*-elf*)
    3.28 +@@ -2338,6 +2338,12 @@
    3.29   	;;
    3.30   esac
    3.31   
    3.32 @@ -30,9 +30,9 @@
    3.33   case ${target} in
    3.34   i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1)
    3.35   	tmake_file="${tmake_file} i386/t-gmm_malloc"
    3.36 ---- gcc-4.1.0/boehm-gc/configure
    3.37 -+++ gcc-4.1.0/boehm-gc/configure
    3.38 -@@ -4320,6 +4320,11 @@ linux-gnu*)
    3.39 +--- gcc-4.1.2.orig/boehm-gc/configure	2007-02-14 06:17:22.000000000 +0100
    3.40 ++++ gcc-4.1.2/boehm-gc/configure	2007-03-04 23:25:07.000000000 +0100
    3.41 +@@ -4320,6 +4320,11 @@
    3.42     lt_cv_deplibs_check_method=pass_all
    3.43     ;;
    3.44   
    3.45 @@ -44,9 +44,9 @@
    3.46   netbsd* | knetbsd*-gnu)
    3.47     if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    3.48       lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
    3.49 ---- gcc-4.1.0/configure
    3.50 -+++ gcc-4.1.0/configure
    3.51 -@@ -1133,7 +1133,7 @@ no)
    3.52 +--- gcc-4.1.2.orig/configure	2006-11-21 18:48:36.000000000 +0100
    3.53 ++++ gcc-4.1.2/configure	2007-03-04 23:25:07.000000000 +0100
    3.54 +@@ -1133,7 +1133,7 @@
    3.55       ;;
    3.56   "")
    3.57       case "${target}" in
    3.58 @@ -55,9 +55,9 @@
    3.59           # Enable libmudflap by default in GNU and friends.
    3.60   	;;
    3.61       *-*-freebsd*)
    3.62 ---- gcc-4.1.0/configure.in
    3.63 -+++ gcc-4.1.0/configure.in
    3.64 -@@ -341,7 +341,7 @@ no)
    3.65 +--- gcc-4.1.2.orig/configure.in	2006-11-21 18:48:36.000000000 +0100
    3.66 ++++ gcc-4.1.2/configure.in	2007-03-04 23:25:07.000000000 +0100
    3.67 +@@ -341,7 +341,7 @@
    3.68       ;;
    3.69   "")
    3.70       case "${target}" in
    3.71 @@ -66,9 +66,9 @@
    3.72           # Enable libmudflap by default in GNU and friends.
    3.73   	;;
    3.74       *-*-freebsd*)
    3.75 ---- gcc-4.1.0/contrib/regression/objs-gcc.sh
    3.76 -+++ gcc-4.1.0/contrib/regression/objs-gcc.sh
    3.77 -@@ -105,6 +105,10 @@ if [ $H_REAL_TARGET = $H_REAL_HOST -a $H
    3.78 +--- gcc-4.1.2.orig/contrib/regression/objs-gcc.sh	2005-08-15 02:41:31.000000000 +0200
    3.79 ++++ gcc-4.1.2/contrib/regression/objs-gcc.sh	2007-03-04 23:25:07.000000000 +0100
    3.80 +@@ -105,6 +105,10 @@
    3.81    then
    3.82     make all-gdb all-dejagnu all-ld || exit 1
    3.83     make install-gdb install-dejagnu install-ld || exit 1
    3.84 @@ -79,9 +79,9 @@
    3.85   elif [ $H_REAL_TARGET = $H_REAL_HOST ] ; then
    3.86     make bootstrap || exit 1
    3.87     make install || exit 1
    3.88 ---- gcc-4.1.0/gcc/config/alpha/linux-elf.h
    3.89 -+++ gcc-4.1.0/gcc/config/alpha/linux-elf.h
    3.90 -@@ -27,7 +27,11 @@ Boston, MA 02110-1301, USA.  */
    3.91 +--- gcc-4.1.2.orig/gcc/config/alpha/linux-elf.h	2005-06-25 03:22:41.000000000 +0200
    3.92 ++++ gcc-4.1.2/gcc/config/alpha/linux-elf.h	2007-03-04 23:25:07.000000000 +0100
    3.93 +@@ -27,7 +27,11 @@
    3.94   #define SUBTARGET_EXTRA_SPECS \
    3.95   { "elf_dynamic_linker", ELF_DYNAMIC_LINKER },
    3.96   
    3.97 @@ -93,8 +93,8 @@
    3.98   
    3.99   #define LINK_SPEC "-m elf64alpha %{G*} %{relax:-relax}		\
   3.100     %{O*:-O3} %{!O*:-O1}						\
   3.101 ---- gcc-4.1.0/gcc/config/arm/linux-elf.h
   3.102 -+++ gcc-4.1.0/gcc/config/arm/linux-elf.h
   3.103 +--- gcc-4.1.2.orig/gcc/config/arm/linux-elf.h	2005-10-10 03:04:31.000000000 +0200
   3.104 ++++ gcc-4.1.2/gcc/config/arm/linux-elf.h	2007-03-04 23:25:07.000000000 +0100
   3.105  @@ -51,7 +51,11 @@
   3.106   
   3.107   #define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc"
   3.108 @@ -107,9 +107,9 @@
   3.109   
   3.110   #define LINUX_TARGET_LINK_SPEC  "%{h*} %{version:-v} \
   3.111      %{b} \
   3.112 ---- gcc-4.1.0/gcc/config/cris/linux.h
   3.113 -+++ gcc-4.1.0/gcc/config/cris/linux.h
   3.114 -@@ -73,6 +73,25 @@ Boston, MA 02110-1301, USA.  */
   3.115 +--- gcc-4.1.2.orig/gcc/config/cris/linux.h	2005-06-25 03:22:41.000000000 +0200
   3.116 ++++ gcc-4.1.2/gcc/config/cris/linux.h	2007-03-04 23:25:07.000000000 +0100
   3.117 +@@ -73,6 +73,25 @@
   3.118   #undef CRIS_DEFAULT_CPU_VERSION
   3.119   #define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
   3.120   
   3.121 @@ -135,7 +135,7 @@
   3.122   #undef CRIS_SUBTARGET_VERSION
   3.123   #define CRIS_SUBTARGET_VERSION " - cris-axis-linux-gnu"
   3.124   
   3.125 -@@ -87,6 +106,8 @@ Boston, MA 02110-1301, USA.  */
   3.126 +@@ -87,6 +106,8 @@
   3.127     %{!shared:%{!static:%{rdynamic:-export-dynamic}}}\
   3.128     %{!r:%{O2|O3: --gc-sections}}"
   3.129   
   3.130 @@ -144,9 +144,9 @@
   3.131   
   3.132   /* Node: Run-time Target */
   3.133   
   3.134 ---- gcc-4.1.0/gcc/config/i386/linux.h
   3.135 -+++ gcc-4.1.0/gcc/config/i386/linux.h
   3.136 -@@ -107,6 +107,11 @@ Boston, MA 02110-1301, USA.  */
   3.137 +--- gcc-4.1.2.orig/gcc/config/i386/linux.h	2005-08-10 19:53:01.000000000 +0200
   3.138 ++++ gcc-4.1.2/gcc/config/i386/linux.h	2007-03-04 23:25:07.000000000 +0100
   3.139 +@@ -107,6 +107,11 @@
   3.140   #define LINK_EMULATION "elf_i386"
   3.141   #define DYNAMIC_LINKER "/lib/ld-linux.so.2"
   3.142   
   3.143 @@ -158,9 +158,9 @@
   3.144   #undef  SUBTARGET_EXTRA_SPECS
   3.145   #define SUBTARGET_EXTRA_SPECS \
   3.146     { "link_emulation", LINK_EMULATION },\
   3.147 ---- gcc-4.1.0/gcc/config/i386/linux64.h
   3.148 -+++ gcc-4.1.0/gcc/config/i386/linux64.h
   3.149 -@@ -54,14 +54,21 @@ Boston, MA 02110-1301, USA.  */
   3.150 +--- gcc-4.1.2.orig/gcc/config/i386/linux64.h	2005-08-10 19:53:01.000000000 +0200
   3.151 ++++ gcc-4.1.2/gcc/config/i386/linux64.h	2007-03-04 23:25:07.000000000 +0100
   3.152 +@@ -54,14 +54,21 @@
   3.153      When the -shared link option is used a final link is not being
   3.154      done.  */
   3.155   
   3.156 @@ -184,9 +184,9 @@
   3.157       %{static:-static}}"
   3.158   
   3.159   /* Similar to standard Linux, but adding -ffast-math support.  */
   3.160 ---- gcc-4.1.0/gcc/config/ia64/linux.h
   3.161 -+++ gcc-4.1.0/gcc/config/ia64/linux.h
   3.162 -@@ -37,13 +37,18 @@ do {						\
   3.163 +--- gcc-4.1.2.orig/gcc/config/ia64/linux.h	2006-12-12 16:24:07.000000000 +0100
   3.164 ++++ gcc-4.1.2/gcc/config/ia64/linux.h	2007-03-04 23:25:07.000000000 +0100
   3.165 +@@ -37,13 +37,18 @@
   3.166   /* Define this for shared library support because it isn't in the main
   3.167      linux.h file.  */
   3.168   
   3.169 @@ -205,10 +205,10 @@
   3.170  +      %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \
   3.171         %{static:-static}}"
   3.172   
   3.173 - 
   3.174 ---- gcc-4.1.0/gcc/config/m68k/linux.h
   3.175 -+++ gcc-4.1.0/gcc/config/m68k/linux.h
   3.176 -@@ -123,12 +123,17 @@ Boston, MA 02110-1301, USA.  */
   3.177 + #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
   3.178 +--- gcc-4.1.2.orig/gcc/config/m68k/linux.h	2005-06-25 03:22:41.000000000 +0200
   3.179 ++++ gcc-4.1.2/gcc/config/m68k/linux.h	2007-03-04 23:25:07.000000000 +0100
   3.180 +@@ -123,12 +123,17 @@
   3.181   
   3.182   /* If ELF is the default format, we should not use /lib/elf.  */
   3.183   
   3.184 @@ -227,9 +227,9 @@
   3.185       %{static}}"
   3.186   
   3.187   /* For compatibility with linux/a.out */
   3.188 ---- gcc-4.1.0/gcc/config/mips/linux.h
   3.189 -+++ gcc-4.1.0/gcc/config/mips/linux.h
   3.190 -@@ -105,6 +105,11 @@ Boston, MA 02110-1301, USA.  */
   3.191 +--- gcc-4.1.2.orig/gcc/config/mips/linux.h	2006-12-17 14:57:31.000000000 +0100
   3.192 ++++ gcc-4.1.2/gcc/config/mips/linux.h	2007-03-04 23:25:07.000000000 +0100
   3.193 +@@ -105,6 +105,11 @@
   3.194   
   3.195   /* Borrowed from sparc/linux.h */
   3.196   #undef LINK_SPEC
   3.197 @@ -241,7 +241,7 @@
   3.198   #define LINK_SPEC \
   3.199    "%(endian_spec) \
   3.200     %{shared:-shared} \
   3.201 -@@ -112,7 +117,7 @@ Boston, MA 02110-1301, USA.  */
   3.202 +@@ -112,7 +117,7 @@
   3.203       %{!ibcs: \
   3.204         %{!static: \
   3.205           %{rdynamic:-export-dynamic} \
   3.206 @@ -250,9 +250,9 @@
   3.207           %{static:-static}}}"
   3.208   
   3.209   #undef SUBTARGET_ASM_SPEC
   3.210 ---- gcc-4.1.0/gcc/config/pa/pa-linux.h
   3.211 -+++ gcc-4.1.0/gcc/config/pa/pa-linux.h
   3.212 -@@ -49,13 +49,18 @@ Boston, MA 02110-1301, USA.  */
   3.213 +--- gcc-4.1.2.orig/gcc/config/pa/pa-linux.h	2007-01-12 03:23:38.000000000 +0100
   3.214 ++++ gcc-4.1.2/gcc/config/pa/pa-linux.h	2007-03-04 23:25:07.000000000 +0100
   3.215 +@@ -49,13 +49,18 @@
   3.216   /* Define this for shared library support because it isn't in the main
   3.217      linux.h file.  */
   3.218   
   3.219 @@ -272,8 +272,8 @@
   3.220         %{static:-static}}"
   3.221   
   3.222   /* glibc's profiling functions don't need gcc to allocate counters.  */
   3.223 ---- gcc-4.1.0/gcc/config/rs6000/linux.h
   3.224 -+++ gcc-4.1.0/gcc/config/rs6000/linux.h
   3.225 +--- gcc-4.1.2.orig/gcc/config/rs6000/linux.h	2006-02-10 21:58:33.000000000 +0100
   3.226 ++++ gcc-4.1.2/gcc/config/rs6000/linux.h	2007-03-04 23:25:07.000000000 +0100
   3.227  @@ -72,7 +72,11 @@
   3.228   #define LINK_START_DEFAULT_SPEC "%(link_start_linux)"
   3.229   
   3.230 @@ -286,9 +286,9 @@
   3.231   
   3.232   #define LINK_GCC_C_SEQUENCE_SPEC \
   3.233     "%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}"
   3.234 ---- gcc-4.1.0/gcc/config/rs6000/sysv4.h
   3.235 -+++ gcc-4.1.0/gcc/config/rs6000/sysv4.h
   3.236 -@@ -866,6 +866,7 @@ extern int fixuplabelno;
   3.237 +--- gcc-4.1.2.orig/gcc/config/rs6000/sysv4.h	2006-02-10 21:58:33.000000000 +0100
   3.238 ++++ gcc-4.1.2/gcc/config/rs6000/sysv4.h	2007-03-04 23:25:08.000000000 +0100
   3.239 +@@ -866,6 +866,7 @@
   3.240     mcall-linux  : %(link_os_linux)       ; \
   3.241     mcall-gnu    : %(link_os_gnu)         ; \
   3.242     mcall-netbsd : %(link_os_netbsd)      ; \
   3.243 @@ -296,7 +296,7 @@
   3.244     mcall-openbsd: %(link_os_openbsd)     ; \
   3.245                  : %(link_os_default)     }"
   3.246   
   3.247 -@@ -1043,6 +1044,10 @@ extern int fixuplabelno;
   3.248 +@@ -1043,6 +1044,10 @@
   3.249     %{rdynamic:-export-dynamic} \
   3.250     %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
   3.251   
   3.252 @@ -307,7 +307,7 @@
   3.253   #if defined(HAVE_LD_EH_FRAME_HDR)
   3.254   # define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
   3.255   #endif
   3.256 -@@ -1209,6 +1214,7 @@ ncrtn.o%s"
   3.257 +@@ -1209,6 +1214,7 @@
   3.258     { "link_os_sim",		LINK_OS_SIM_SPEC },			\
   3.259     { "link_os_freebsd",		LINK_OS_FREEBSD_SPEC },			\
   3.260     { "link_os_linux",		LINK_OS_LINUX_SPEC },			\
   3.261 @@ -315,9 +315,9 @@
   3.262     { "link_os_gnu",		LINK_OS_GNU_SPEC },			\
   3.263     { "link_os_netbsd",		LINK_OS_NETBSD_SPEC },			\
   3.264     { "link_os_openbsd",		LINK_OS_OPENBSD_SPEC },			\
   3.265 ---- gcc-4.1.0/gcc/config/s390/linux.h
   3.266 -+++ gcc-4.1.0/gcc/config/s390/linux.h
   3.267 -@@ -77,6 +77,13 @@ Software Foundation, 51 Franklin Street,
   3.268 +--- gcc-4.1.2.orig/gcc/config/s390/linux.h	2006-12-12 16:24:07.000000000 +0100
   3.269 ++++ gcc-4.1.2/gcc/config/s390/linux.h	2007-03-04 23:25:08.000000000 +0100
   3.270 +@@ -77,6 +77,13 @@
   3.271   #define MULTILIB_DEFAULTS { "m31" }
   3.272   #endif
   3.273   
   3.274 @@ -331,7 +331,7 @@
   3.275   #undef  LINK_SPEC
   3.276   #define LINK_SPEC \
   3.277     "%{m31:-m elf_s390}%{m64:-m elf64_s390} \
   3.278 -@@ -86,8 +93,8 @@ Software Foundation, 51 Franklin Street,
   3.279 +@@ -86,8 +93,8 @@
   3.280         %{!static: \
   3.281   	%{rdynamic:-export-dynamic} \
   3.282   	%{!dynamic-linker: \
   3.283 @@ -340,11 +340,11 @@
   3.284  +          %{m31:-dynamic-linker " ELF31_DYNAMIC_LINKER "} \
   3.285  +          %{m64:-dynamic-linker " ELF64_DYNAMIC_LINKER "}}}}"
   3.286   
   3.287 + #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
   3.288   
   3.289 - #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
   3.290 ---- gcc-4.1.0/gcc/config/sh/linux.h
   3.291 -+++ gcc-4.1.0/gcc/config/sh/linux.h
   3.292 -@@ -56,12 +56,21 @@ Boston, MA 02110-1301, USA.  */
   3.293 +--- gcc-4.1.2.orig/gcc/config/sh/linux.h	2005-06-25 03:22:41.000000000 +0200
   3.294 ++++ gcc-4.1.2/gcc/config/sh/linux.h	2007-03-04 23:25:08.000000000 +0100
   3.295 +@@ -56,12 +56,21 @@
   3.296   #undef SUBTARGET_LINK_EMUL_SUFFIX
   3.297   #define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
   3.298   #undef SUBTARGET_LINK_SPEC
   3.299 @@ -366,9 +366,9 @@
   3.300   
   3.301   /* Output assembler code to STREAM to call the profiler.  */
   3.302   
   3.303 ---- gcc-4.1.0/gcc/config/sparc/linux.h
   3.304 -+++ gcc-4.1.0/gcc/config/sparc/linux.h
   3.305 -@@ -125,6 +125,11 @@ Boston, MA 02110-1301, USA.  */
   3.306 +--- gcc-4.1.2.orig/gcc/config/sparc/linux.h	2006-02-11 09:38:51.000000000 +0100
   3.307 ++++ gcc-4.1.2/gcc/config/sparc/linux.h	2007-03-04 23:25:08.000000000 +0100
   3.308 +@@ -125,6 +125,11 @@
   3.309   
   3.310   /* If ELF is the default format, we should not use /lib/elf.  */
   3.311   
   3.312 @@ -380,7 +380,7 @@
   3.313   #undef  LINK_SPEC
   3.314   #define LINK_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
   3.315     %{!mno-relax:%{!r:-relax}} \
   3.316 -@@ -132,7 +137,7 @@ Boston, MA 02110-1301, USA.  */
   3.317 +@@ -132,7 +137,7 @@
   3.318       %{!ibcs: \
   3.319         %{!static: \
   3.320           %{rdynamic:-export-dynamic} \
   3.321 @@ -389,9 +389,9 @@
   3.322           %{static:-static}}}"
   3.323   
   3.324   /* The sun bundled assembler doesn't accept -Yd, (and neither does gas).
   3.325 ---- gcc-4.1.0/gcc/config/sparc/linux64.h
   3.326 -+++ gcc-4.1.0/gcc/config/sparc/linux64.h
   3.327 -@@ -162,12 +162,17 @@ Boston, MA 02110-1301, USA.  */
   3.328 +--- gcc-4.1.2.orig/gcc/config/sparc/linux64.h	2006-02-11 09:38:51.000000000 +0100
   3.329 ++++ gcc-4.1.2/gcc/config/sparc/linux64.h	2007-03-04 23:25:08.000000000 +0100
   3.330 +@@ -162,12 +162,17 @@
   3.331     { "link_arch_default", LINK_ARCH_DEFAULT_SPEC },	  \
   3.332     { "link_arch",	 LINK_ARCH_SPEC },
   3.333       
   3.334 @@ -410,9 +410,9 @@
   3.335           %{static:-static}}} \
   3.336   "
   3.337   
   3.338 ---- gcc-4.1.0/libffi/configure
   3.339 -+++ gcc-4.1.0/libffi/configure
   3.340 -@@ -3457,6 +3457,11 @@ linux-gnu*)
   3.341 +--- gcc-4.1.2.orig/libffi/configure	2007-02-14 06:17:22.000000000 +0100
   3.342 ++++ gcc-4.1.2/libffi/configure	2007-03-04 23:25:08.000000000 +0100
   3.343 +@@ -3457,6 +3457,11 @@
   3.344     lt_cv_deplibs_check_method=pass_all
   3.345     ;;
   3.346   
   3.347 @@ -424,9 +424,9 @@
   3.348   netbsd* | knetbsd*-gnu)
   3.349     if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
   3.350       lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
   3.351 ---- gcc-4.1.0/libgfortran/configure
   3.352 -+++ gcc-4.1.0/libgfortran/configure
   3.353 -@@ -3699,6 +3699,11 @@ linux-gnu*)
   3.354 +--- gcc-4.1.2.orig/libgfortran/configure	2006-12-06 11:55:37.000000000 +0100
   3.355 ++++ gcc-4.1.2/libgfortran/configure	2007-03-04 23:25:08.000000000 +0100
   3.356 +@@ -3699,6 +3699,11 @@
   3.357     lt_cv_deplibs_check_method=pass_all
   3.358     ;;
   3.359   
   3.360 @@ -438,9 +438,9 @@
   3.361   netbsd* | knetbsd*-gnu)
   3.362     if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
   3.363       lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
   3.364 ---- gcc-4.1.0/libjava/configure
   3.365 -+++ gcc-4.1.0/libjava/configure
   3.366 -@@ -5137,6 +5137,11 @@ linux-gnu*)
   3.367 +--- gcc-4.1.2.orig/libjava/configure	2007-02-14 06:17:22.000000000 +0100
   3.368 ++++ gcc-4.1.2/libjava/configure	2007-03-04 23:25:08.000000000 +0100
   3.369 +@@ -5137,6 +5137,11 @@
   3.370     lt_cv_deplibs_check_method=pass_all
   3.371     ;;
   3.372   
   3.373 @@ -452,9 +452,9 @@
   3.374   netbsd* | knetbsd*-gnu)
   3.375     if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
   3.376       lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
   3.377 ---- gcc-4.1.0/libmudflap/configure
   3.378 -+++ gcc-4.1.0/libmudflap/configure
   3.379 -@@ -5382,6 +5382,11 @@ linux-gnu*)
   3.380 +--- gcc-4.1.2.orig/libmudflap/configure	2005-10-05 01:54:38.000000000 +0200
   3.381 ++++ gcc-4.1.2/libmudflap/configure	2007-03-04 23:25:08.000000000 +0100
   3.382 +@@ -5382,6 +5382,11 @@
   3.383     lt_cv_deplibs_check_method=pass_all
   3.384     ;;
   3.385   
   3.386 @@ -466,9 +466,9 @@
   3.387   netbsd* | knetbsd*-gnu)
   3.388     if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
   3.389       lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
   3.390 ---- gcc-4.1.0/libobjc/configure
   3.391 -+++ gcc-4.1.0/libobjc/configure
   3.392 -@@ -3312,6 +3312,11 @@ linux-gnu*)
   3.393 +--- gcc-4.1.2.orig/libobjc/configure	2007-02-14 06:17:22.000000000 +0100
   3.394 ++++ gcc-4.1.2/libobjc/configure	2007-03-04 23:25:08.000000000 +0100
   3.395 +@@ -3312,6 +3312,11 @@
   3.396     lt_cv_deplibs_check_method=pass_all
   3.397     ;;
   3.398   
   3.399 @@ -480,9 +480,9 @@
   3.400   netbsd* | knetbsd*-gnu)
   3.401     if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
   3.402       lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
   3.403 ---- gcc-4.1.0/libtool.m4
   3.404 -+++ gcc-4.1.0/libtool.m4
   3.405 -@@ -743,6 +743,11 @@ linux-gnu*)
   3.406 +--- gcc-4.1.2.orig/libtool.m4	2005-07-16 04:30:53.000000000 +0200
   3.407 ++++ gcc-4.1.2/libtool.m4	2007-03-04 23:25:08.000000000 +0100
   3.408 +@@ -743,6 +743,11 @@
   3.409     lt_cv_deplibs_check_method=pass_all
   3.410     ;;
   3.411   
   3.412 @@ -494,9 +494,9 @@
   3.413   netbsd* | knetbsd*-gnu)
   3.414     if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
   3.415       [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
   3.416 ---- gcc-4.1.0/ltconfig
   3.417 -+++ gcc-4.1.0/ltconfig
   3.418 -@@ -603,6 +603,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-
   3.419 +--- gcc-4.1.2.orig/ltconfig	2006-07-04 22:30:34.000000000 +0200
   3.420 ++++ gcc-4.1.2/ltconfig	2007-03-04 23:25:08.000000000 +0100
   3.421 +@@ -603,6 +603,7 @@
   3.422   
   3.423   # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
   3.424   case $host_os in
   3.425 @@ -504,7 +504,7 @@
   3.426   linux-gnu*) ;;
   3.427   linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
   3.428   esac
   3.429 -@@ -1274,6 +1275,23 @@ linux-gnu*)
   3.430 +@@ -1274,6 +1275,23 @@
   3.431     dynamic_linker='GNU/Linux ld.so'
   3.432     ;;
   3.433   
   3.434 @@ -528,9 +528,9 @@
   3.435   netbsd*)
   3.436     need_lib_prefix=no
   3.437     need_version=no
   3.438 ---- gcc-4.1.0/zlib/configure
   3.439 -+++ gcc-4.1.0/zlib/configure
   3.440 -@@ -3426,6 +3426,11 @@ linux-gnu*)
   3.441 +--- gcc-4.1.2.orig/zlib/configure	2005-09-12 19:02:07.000000000 +0200
   3.442 ++++ gcc-4.1.2/zlib/configure	2007-03-04 23:25:08.000000000 +0100
   3.443 +@@ -3426,6 +3426,11 @@
   3.444     lt_cv_deplibs_check_method=pass_all
   3.445     ;;
   3.446   
     4.1 --- a/patches/gcc/4.1.2/110-arm-eabi.patch	Sun Mar 04 22:55:14 2007 +0000
     4.2 +++ b/patches/gcc/4.1.2/110-arm-eabi.patch	Sun Mar 04 22:56:04 2007 +0000
     4.3 @@ -1,18 +1,16 @@
     4.4 ---- gcc-2005q3-1.orig/gcc/config.gcc	2005-10-31 19:02:54.000000000 +0300
     4.5 -+++ gcc-2005q3-1/gcc/config.gcc	2006-01-27 01:09:09.000000000 +0300
     4.6 +--- gcc-4.1.2.orig/gcc/config.gcc	2007-03-04 23:25:37.000000000 +0100
     4.7 ++++ gcc-4.1.2/gcc/config.gcc	2007-03-04 23:25:45.000000000 +0100
     4.8  @@ -674,7 +674,7 @@
     4.9   	tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h" 
    4.10 - 	tmake_file="t-slibgcc-elf-ver t-linux arm/t-arm"
    4.11 + 	tmake_file="${tmake_file} t-linux arm/t-arm"
    4.12   	case ${target} in
    4.13  -	arm*-*-linux-gnueabi)
    4.14  +	arm*-*-linux-gnueabi | arm*-*-linux-uclibcgnueabi)
    4.15   	    tm_file="$tm_file arm/bpabi.h arm/linux-eabi.h"
    4.16   	    tmake_file="$tmake_file arm/t-arm-elf arm/t-bpabi arm/t-linux-eabi"
    4.17     	    # The BPABI long long divmod functions return a 128-bit value in 
    4.18 -
    4.19 -diff -urN gcc-2005q3-2/gcc/config/arm/linux-eabi.h gcc-2005q3-2.new/gcc/config/arm/linux-eabi.h
    4.20 ---- gcc-2005q3-2/gcc/config/arm/linux-eabi.h	2005-12-07 23:14:16.000000000 +0300
    4.21 -+++ gcc-2005q3-2.new/gcc/config/arm/linux-eabi.h	2006-03-29 19:02:34.000000000 +0400
    4.22 +--- gcc-4.1.2.orig/gcc/config/arm/linux-eabi.h	2005-11-15 15:32:13.000000000 +0100
    4.23 ++++ gcc-4.1.2/gcc/config/arm/linux-eabi.h	2007-03-04 23:25:45.000000000 +0100
    4.24  @@ -53,7 +53,11 @@
    4.25   /* Use ld-linux.so.3 so that it will be possible to run "classic"
    4.26      GNU/Linux binaries on an EABI system.  */
     5.1 --- a/patches/gcc/4.1.2/200-uclibc-locale.patch	Sun Mar 04 22:55:14 2007 +0000
     5.2 +++ b/patches/gcc/4.1.2/200-uclibc-locale.patch	Sun Mar 04 22:56:04 2007 +0000
     5.3 @@ -1,6 +1,6 @@
     5.4 ---- gcc-4.1.0-dist/libstdc++-v3/acinclude.m4
     5.5 -+++ gcc-4.1.0/libstdc++-v3/acinclude.m4
     5.6 -@@ -1071,7 +1071,7 @@
     5.7 +--- gcc-4.1.2.orig/libstdc++-v3/acinclude.m4	2007-01-29 11:51:01.000000000 +0100
     5.8 ++++ gcc-4.1.2/libstdc++-v3/acinclude.m4	2007-03-04 23:31:57.000000000 +0100
     5.9 +@@ -1003,7 +1003,7 @@
    5.10     AC_MSG_CHECKING([for C locale to use])
    5.11     GLIBCXX_ENABLE(clocale,auto,[@<:@=MODEL@:>@],
    5.12       [use MODEL for target locale package],
    5.13 @@ -9,7 +9,7 @@
    5.14     
    5.15     # If they didn't use this option switch, or if they specified --enable
    5.16     # with no specific model, we'll have to look for one.  If they
    5.17 -@@ -1087,6 +1087,9 @@
    5.18 +@@ -1019,6 +1019,9 @@
    5.19     # Default to "generic".
    5.20     if test $enable_clocale_flag = auto; then
    5.21       case ${target_os} in
    5.22 @@ -19,7 +19,7 @@
    5.23         linux* | gnu* | kfreebsd*-gnu | knetbsd*-gnu)
    5.24           AC_EGREP_CPP([_GLIBCXX_ok], [
    5.25           #include <features.h>
    5.26 -@@ -1230,6 +1233,40 @@
    5.27 +@@ -1162,6 +1165,40 @@
    5.28         CTIME_CC=config/locale/generic/time_members.cc
    5.29         CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
    5.30         ;;
    5.31 @@ -60,8 +60,8 @@
    5.32     esac
    5.33   
    5.34     # This is where the testsuite looks for locale catalogs, using the
    5.35 ---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/c++locale_internal.h
    5.36 -+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/c++locale_internal.h
    5.37 +--- gcc-4.1.2.orig/libstdc++-v3/config/locale/uclibc/c++locale_internal.h	1970-01-01 01:00:00.000000000 +0100
    5.38 ++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/c++locale_internal.h	2007-03-04 23:31:57.000000000 +0100
    5.39  @@ -0,0 +1,63 @@
    5.40  +// Prototypes for GLIBC thread locale __-prefixed functions -*- C++ -*-
    5.41  +
    5.42 @@ -126,8 +126,8 @@
    5.43  +#endif 
    5.44  +
    5.45  +#endif // GLIBC 2.3 and later
    5.46 ---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/c_locale.cc
    5.47 -+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/c_locale.cc
    5.48 +--- gcc-4.1.2.orig/libstdc++-v3/config/locale/uclibc/c_locale.cc	1970-01-01 01:00:00.000000000 +0100
    5.49 ++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/c_locale.cc	2007-03-04 23:31:57.000000000 +0100
    5.50  @@ -0,0 +1,152 @@
    5.51  +// Wrapper for underlying C-language localization -*- C++ -*-
    5.52  +
    5.53 @@ -281,8 +281,8 @@
    5.54  +{
    5.55  +  const char* const* const locale::_S_categories = __gnu_cxx::category_names;
    5.56  +}  // namespace std
    5.57 ---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/c_locale.h
    5.58 -+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/c_locale.h
    5.59 +--- gcc-4.1.2.orig/libstdc++-v3/config/locale/uclibc/c_locale.h	1970-01-01 01:00:00.000000000 +0100
    5.60 ++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/c_locale.h	2007-03-04 23:31:57.000000000 +0100
    5.61  @@ -0,0 +1,117 @@
    5.62  +// Wrapper for underlying C-language localization -*- C++ -*-
    5.63  +
    5.64 @@ -401,8 +401,8 @@
    5.65  +}
    5.66  +
    5.67  +#endif
    5.68 ---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/codecvt_members.cc
    5.69 -+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/codecvt_members.cc
    5.70 +--- gcc-4.1.2.orig/libstdc++-v3/config/locale/uclibc/codecvt_members.cc	1970-01-01 01:00:00.000000000 +0100
    5.71 ++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/codecvt_members.cc	2007-03-04 23:31:57.000000000 +0100
    5.72  @@ -0,0 +1,306 @@
    5.73  +// std::codecvt implementation details, GNU version -*- C++ -*-
    5.74  +
    5.75 @@ -710,8 +710,8 @@
    5.76  +  }
    5.77  +#endif
    5.78  +}
    5.79 ---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/collate_members.cc
    5.80 -+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/collate_members.cc
    5.81 +--- gcc-4.1.2.orig/libstdc++-v3/config/locale/uclibc/collate_members.cc	1970-01-01 01:00:00.000000000 +0100
    5.82 ++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/collate_members.cc	2007-03-04 23:31:57.000000000 +0100
    5.83  @@ -0,0 +1,80 @@
    5.84  +// std::collate implementation details, GNU version -*- C++ -*-
    5.85  +
    5.86 @@ -793,8 +793,8 @@
    5.87  +    { return __wcsxfrm_l(__to, __from, __n, _M_c_locale_collate); }
    5.88  +#endif
    5.89  +}
    5.90 ---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/ctype_members.cc
    5.91 -+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/ctype_members.cc
    5.92 +--- gcc-4.1.2.orig/libstdc++-v3/config/locale/uclibc/ctype_members.cc	1970-01-01 01:00:00.000000000 +0100
    5.93 ++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/ctype_members.cc	2007-03-04 23:31:57.000000000 +0100
    5.94  @@ -0,0 +1,314 @@
    5.95  +// std::ctype implementation details, GNU version -*- C++ -*-
    5.96  +
    5.97 @@ -1110,8 +1110,8 @@
    5.98  +  }
    5.99  +#endif //  _GLIBCXX_USE_WCHAR_T
   5.100  +}
   5.101 ---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/messages_members.cc
   5.102 -+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/messages_members.cc
   5.103 +--- gcc-4.1.2.orig/libstdc++-v3/config/locale/uclibc/messages_members.cc	1970-01-01 01:00:00.000000000 +0100
   5.104 ++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/messages_members.cc	2007-03-04 23:31:57.000000000 +0100
   5.105  @@ -0,0 +1,100 @@
   5.106  +// std::messages implementation details, GNU version -*- C++ -*-
   5.107  +
   5.108 @@ -1213,8 +1213,8 @@
   5.109  +    }
   5.110  +#endif
   5.111  +}
   5.112 ---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/messages_members.h
   5.113 -+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/messages_members.h
   5.114 +--- gcc-4.1.2.orig/libstdc++-v3/config/locale/uclibc/messages_members.h	1970-01-01 01:00:00.000000000 +0100
   5.115 ++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/messages_members.h	2007-03-04 23:31:57.000000000 +0100
   5.116  @@ -0,0 +1,121 @@
   5.117  +// std::messages implementation details, GNU version -*- C++ -*-
   5.118  +
   5.119 @@ -1337,8 +1337,8 @@
   5.120  +	   this->_S_create_c_locale(this->_M_c_locale_messages, __s); 
   5.121  +	 }
   5.122  +     }
   5.123 ---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/monetary_members.cc
   5.124 -+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/monetary_members.cc
   5.125 +--- gcc-4.1.2.orig/libstdc++-v3/config/locale/uclibc/monetary_members.cc	1970-01-01 01:00:00.000000000 +0100
   5.126 ++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/monetary_members.cc	2007-03-04 23:31:57.000000000 +0100
   5.127  @@ -0,0 +1,692 @@
   5.128  +// std::moneypunct implementation details, GNU version -*- C++ -*-
   5.129  +
   5.130 @@ -2032,8 +2032,8 @@
   5.131  +    }
   5.132  +#endif
   5.133  +}
   5.134 ---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/numeric_members.cc
   5.135 -+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/numeric_members.cc
   5.136 +--- gcc-4.1.2.orig/libstdc++-v3/config/locale/uclibc/numeric_members.cc	1970-01-01 01:00:00.000000000 +0100
   5.137 ++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/numeric_members.cc	2007-03-04 23:31:57.000000000 +0100
   5.138  @@ -0,0 +1,173 @@
   5.139  +// std::numpunct implementation details, GNU version -*- C++ -*-
   5.140  +
   5.141 @@ -2208,8 +2208,8 @@
   5.142  +    { delete _M_data; }
   5.143  + #endif
   5.144  +}
   5.145 ---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/time_members.cc
   5.146 -+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/time_members.cc
   5.147 +--- gcc-4.1.2.orig/libstdc++-v3/config/locale/uclibc/time_members.cc	1970-01-01 01:00:00.000000000 +0100
   5.148 ++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/time_members.cc	2007-03-04 23:31:57.000000000 +0100
   5.149  @@ -0,0 +1,406 @@
   5.150  +// std::time_get, std::time_put implementation, GNU version -*- C++ -*-
   5.151  +
   5.152 @@ -2617,8 +2617,8 @@
   5.153  +    }
   5.154  +#endif
   5.155  +}
   5.156 ---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/time_members.h
   5.157 -+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/time_members.h
   5.158 +--- gcc-4.1.2.orig/libstdc++-v3/config/locale/uclibc/time_members.h	1970-01-01 01:00:00.000000000 +0100
   5.159 ++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/time_members.h	2007-03-04 23:31:57.000000000 +0100
   5.160  @@ -0,0 +1,76 @@
   5.161  +// std::time_get, std::time_put implementation, GNU version -*- C++ -*-
   5.162  +
   5.163 @@ -2696,8 +2696,8 @@
   5.164  +      delete _M_data; 
   5.165  +      _S_destroy_c_locale(_M_c_locale_timepunct); 
   5.166  +    }
   5.167 ---- gcc-4.1.0-dist/libstdc++-v3/config/os/uclibc/ctype_base.h
   5.168 -+++ gcc-4.1.0/libstdc++-v3/config/os/uclibc/ctype_base.h
   5.169 +--- gcc-4.1.2.orig/libstdc++-v3/config/os/uclibc/ctype_base.h	1970-01-01 01:00:00.000000000 +0100
   5.170 ++++ gcc-4.1.2/libstdc++-v3/config/os/uclibc/ctype_base.h	2007-03-04 23:31:57.000000000 +0100
   5.171  @@ -0,0 +1,64 @@
   5.172  +// Locale support -*- C++ -*-
   5.173  +
   5.174 @@ -2763,8 +2763,8 @@
   5.175  +    static const mask punct 	= _ISpunct;
   5.176  +    static const mask alnum 	= _ISalpha | _ISdigit;
   5.177  +  };
   5.178 ---- gcc-4.1.0-dist/libstdc++-v3/config/os/uclibc/ctype_inline.h
   5.179 -+++ gcc-4.1.0/libstdc++-v3/config/os/uclibc/ctype_inline.h
   5.180 +--- gcc-4.1.2.orig/libstdc++-v3/config/os/uclibc/ctype_inline.h	1970-01-01 01:00:00.000000000 +0100
   5.181 ++++ gcc-4.1.2/libstdc++-v3/config/os/uclibc/ctype_inline.h	2007-03-04 23:31:57.000000000 +0100
   5.182  @@ -0,0 +1,69 @@
   5.183  +// Locale support -*- C++ -*-
   5.184  +
   5.185 @@ -2835,8 +2835,8 @@
   5.186  +      ++__low;
   5.187  +    return __low;
   5.188  +  }
   5.189 ---- gcc-4.1.0-dist/libstdc++-v3/config/os/uclibc/ctype_noninline.h
   5.190 -+++ gcc-4.1.0/libstdc++-v3/config/os/uclibc/ctype_noninline.h
   5.191 +--- gcc-4.1.2.orig/libstdc++-v3/config/os/uclibc/ctype_noninline.h	1970-01-01 01:00:00.000000000 +0100
   5.192 ++++ gcc-4.1.2/libstdc++-v3/config/os/uclibc/ctype_noninline.h	2007-03-04 23:31:57.000000000 +0100
   5.193  @@ -0,0 +1,92 @@
   5.194  +// Locale support -*- C++ -*-
   5.195  +
   5.196 @@ -2930,8 +2930,8 @@
   5.197  +      }
   5.198  +    return __high;
   5.199  +  }
   5.200 ---- gcc-4.1.0-dist/libstdc++-v3/config/os/uclibc/os_defines.h
   5.201 -+++ gcc-4.1.0/libstdc++-v3/config/os/uclibc/os_defines.h
   5.202 +--- gcc-4.1.2.orig/libstdc++-v3/config/os/uclibc/os_defines.h	1970-01-01 01:00:00.000000000 +0100
   5.203 ++++ gcc-4.1.2/libstdc++-v3/config/os/uclibc/os_defines.h	2007-03-04 23:31:57.000000000 +0100
   5.204  @@ -0,0 +1,44 @@
   5.205  +// Specific definitions for GNU/Linux  -*- C++ -*-
   5.206  +
   5.207 @@ -2977,8 +2977,8 @@
   5.208  +#define __NO_STRING_INLINES
   5.209  +
   5.210  +#endif
   5.211 ---- gcc-4.1.0-dist/libstdc++-v3/configure
   5.212 -+++ gcc-4.1.0/libstdc++-v3/configure
   5.213 +--- gcc-4.1.2.orig/libstdc++-v3/configure	2007-01-29 11:51:01.000000000 +0100
   5.214 ++++ gcc-4.1.2/libstdc++-v3/configure	2007-03-04 23:31:57.000000000 +0100
   5.215  @@ -4005,6 +4005,11 @@
   5.216     lt_cv_deplibs_check_method=pass_all
   5.217     ;;
   5.218 @@ -3087,9 +3087,9 @@
   5.219     esac
   5.220   
   5.221     # This is where the testsuite looks for locale catalogs, using the
   5.222 ---- gcc-4.1.0-dist/libstdc++-v3/configure.host
   5.223 -+++ gcc-4.1.0/libstdc++-v3/configure.host
   5.224 -@@ -261,6 +261,12 @@
   5.225 +--- gcc-4.1.2.orig/libstdc++-v3/configure.host	2007-01-28 21:12:40.000000000 +0100
   5.226 ++++ gcc-4.1.2/libstdc++-v3/configure.host	2007-03-04 23:31:57.000000000 +0100
   5.227 +@@ -270,6 +270,12 @@
   5.228       ;;
   5.229   esac
   5.230   
   5.231 @@ -3102,8 +3102,8 @@
   5.232   
   5.233   # Set any OS-dependent and CPU-dependent bits.
   5.234   # THIS TABLE IS SORTED.  KEEP IT THAT WAY.
   5.235 ---- gcc-4.1.0-dist/libstdc++-v3/crossconfig.m4
   5.236 -+++ gcc-4.1.0/libstdc++-v3/crossconfig.m4
   5.237 +--- gcc-4.1.2.orig/libstdc++-v3/crossconfig.m4	2006-12-12 15:18:36.000000000 +0100
   5.238 ++++ gcc-4.1.2/libstdc++-v3/crossconfig.m4	2007-03-04 23:31:57.000000000 +0100
   5.239  @@ -143,6 +143,99 @@
   5.240   	;;
   5.241       esac
   5.242 @@ -3213,8 +3213,8 @@
   5.243           ;;
   5.244         *)
   5.245           AC_DEFINE(_GLIBCXX_USE_LFS)
   5.246 ---- gcc-4.1.0-dist/libstdc++-v3/include/c_compatibility/wchar.h
   5.247 -+++ gcc-4.1.0/libstdc++-v3/include/c_compatibility/wchar.h
   5.248 +--- gcc-4.1.2.orig/libstdc++-v3/include/c_compatibility/wchar.h	2005-08-17 04:28:44.000000000 +0200
   5.249 ++++ gcc-4.1.2/libstdc++-v3/include/c_compatibility/wchar.h	2007-03-04 23:31:57.000000000 +0100
   5.250  @@ -101,7 +101,9 @@
   5.251   using std::wmemcpy;
   5.252   using std::wmemmove;
   5.253 @@ -3225,8 +3225,8 @@
   5.254   
   5.255   #if _GLIBCXX_USE_C99
   5.256   using std::wcstold;
   5.257 ---- gcc-4.1.0-dist/libstdc++-v3/include/c_std/std_cwchar.h
   5.258 -+++ gcc-4.1.0/libstdc++-v3/include/c_std/std_cwchar.h
   5.259 +--- gcc-4.1.2.orig/libstdc++-v3/include/c_std/std_cwchar.h	2005-10-30 23:21:50.000000000 +0100
   5.260 ++++ gcc-4.1.2/libstdc++-v3/include/c_std/std_cwchar.h	2007-03-04 23:31:57.000000000 +0100
   5.261  @@ -180,7 +180,9 @@
   5.262     using ::wcscoll;
   5.263     using ::wcscpy;
     6.1 --- a/patches/gcc/4.1.2/300-libstdc++-pic.patch	Sun Mar 04 22:55:14 2007 +0000
     6.2 +++ b/patches/gcc/4.1.2/300-libstdc++-pic.patch	Sun Mar 04 22:56:04 2007 +0000
     6.3 @@ -1,8 +1,6 @@
     6.4 -# DP: Build and install libstdc++_pic.a library.
     6.5 -
     6.6 ---- gcc/libstdc++-v3/src/Makefile.am
     6.7 -+++ gcc/libstdc++-v3/src/Makefile.am
     6.8 -@@ -214,6 +214,12 @@
     6.9 +--- gcc-4.1.2.orig/libstdc++-v3/src/Makefile.am	2006-01-10 05:01:00.000000000 +0100
    6.10 ++++ gcc-4.1.2/libstdc++-v3/src/Makefile.am	2007-03-04 23:32:40.000000000 +0100
    6.11 +@@ -234,6 +234,12 @@
    6.12   	  $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LDFLAGS) -o $@
    6.13   
    6.14   
    6.15 @@ -15,8 +13,8 @@
    6.16   # Added bits to build debug library.
    6.17   if GLIBCXX_BUILD_DEBUG
    6.18   all-local: build_debug
    6.19 ---- gcc/libstdc++-v3/src/Makefile.in
    6.20 -+++ gcc/libstdc++-v3/src/Makefile.in
    6.21 +--- gcc-4.1.2.orig/libstdc++-v3/src/Makefile.in	2006-01-10 18:14:00.000000000 +0100
    6.22 ++++ gcc-4.1.2/libstdc++-v3/src/Makefile.in	2007-03-04 23:32:40.000000000 +0100
    6.23  @@ -627,7 +627,7 @@
    6.24   
    6.25   install-data-am: install-data-local
    6.26 @@ -34,7 +32,7 @@
    6.27   	install-exec-am install-info install-info-am install-man \
    6.28   	install-strip install-toolexeclibLTLIBRARIES installcheck \
    6.29   	installcheck-am installdirs maintainer-clean \
    6.30 -@@ -743,6 +743,13 @@
    6.31 +@@ -760,6 +761,13 @@
    6.32   install_debug:
    6.33   	(cd ${debugdir} && $(MAKE) \
    6.34   	toolexeclibdir=$(glibcxx_toolexeclibdir)/debug install)
     7.1 --- a/patches/gcc/4.1.2/301-missing-execinfo_h.patch	Sun Mar 04 22:55:14 2007 +0000
     7.2 +++ b/patches/gcc/4.1.2/301-missing-execinfo_h.patch	Sun Mar 04 22:56:04 2007 +0000
     7.3 @@ -1,5 +1,5 @@
     7.4 ---- gcc-4.0.0/boehm-gc/include/gc.h-orig	2005-04-28 22:28:57.000000000 -0500
     7.5 -+++ gcc-4.0.0/boehm-gc/include/gc.h	2005-04-28 22:30:38.000000000 -0500
     7.6 +--- gcc-4.1.2.orig/boehm-gc/include/gc.h	2005-01-02 04:35:57.000000000 +0100
     7.7 ++++ gcc-4.1.2/boehm-gc/include/gc.h	2007-03-04 23:33:07.000000000 +0100
     7.8  @@ -500,7 +500,7 @@
     7.9   #ifdef __linux__
    7.10   # include <features.h>
     8.1 --- a/patches/gcc/4.1.2/302-c99-snprintf.patch	Sun Mar 04 22:55:14 2007 +0000
     8.2 +++ b/patches/gcc/4.1.2/302-c99-snprintf.patch	Sun Mar 04 22:56:04 2007 +0000
     8.3 @@ -1,6 +1,6 @@
     8.4 ---- gcc-4.0.0/libstdc++-v3/include/c_std/std_cstdio.h-orig	2005-04-29 00:08:41.000000000 -0500
     8.5 -+++ gcc-4.0.0/libstdc++-v3/include/c_std/std_cstdio.h	2005-04-29 00:08:45.000000000 -0500
     8.6 -@@ -142,7 +142,7 @@
     8.7 +--- gcc-4.1.2.orig/libstdc++-v3/include/c_std/std_cstdio.h	2005-10-30 23:21:50.000000000 +0100
     8.8 ++++ gcc-4.1.2/libstdc++-v3/include/c_std/std_cstdio.h	2007-03-04 23:33:27.000000000 +0100
     8.9 +@@ -143,7 +143,7 @@
    8.10     using ::vsprintf;
    8.11   }
    8.12   
     9.1 --- a/patches/gcc/4.1.2/303-c99-complex-ugly-hack.patch	Sun Mar 04 22:55:14 2007 +0000
     9.2 +++ b/patches/gcc/4.1.2/303-c99-complex-ugly-hack.patch	Sun Mar 04 22:56:04 2007 +0000
     9.3 @@ -1,6 +1,6 @@
     9.4 ---- gcc-4.0.0/libstdc++-v3/configure-old	2005-04-30 22:04:48.061603912 -0500
     9.5 -+++ gcc-4.0.0/libstdc++-v3/configure	2005-04-30 22:06:13.678588152 -0500
     9.6 -@@ -7194,6 +7194,9 @@
     9.7 +--- gcc-4.1.2.orig/libstdc++-v3/configure	2007-03-04 23:32:31.000000000 +0100
     9.8 ++++ gcc-4.1.2/libstdc++-v3/configure	2007-03-04 23:33:54.000000000 +0100
     9.9 +@@ -7324,6 +7324,9 @@
    9.10   cat >>conftest.$ac_ext <<_ACEOF
    9.11   /* end confdefs.h.  */
    9.12   #include <complex.h>
    10.1 --- a/patches/gcc/4.1.2/304-index_macro.patch	Sun Mar 04 22:55:14 2007 +0000
    10.2 +++ b/patches/gcc/4.1.2/304-index_macro.patch	Sun Mar 04 22:56:04 2007 +0000
    10.3 @@ -1,6 +1,6 @@
    10.4 ---- gcc-4.1.0/libstdc++-v3/include/ext/rope.mps	2006-03-24 01:49:51 +0100
    10.5 -+++ gcc-4.1.0/libstdc++-v3/include/ext/rope	2006-03-24 01:49:37 +0100
    10.6 -@@ -59,6 +59,9 @@
    10.7 +--- gcc-4.1.2.orig/libstdc++-v3/include/ext/rope	2005-08-17 04:28:44.000000000 +0200
    10.8 ++++ gcc-4.1.2/libstdc++-v3/include/ext/rope	2007-03-04 23:34:08.000000000 +0100
    10.9 +@@ -57,6 +57,9 @@
   10.10   #include <bits/allocator.h>
   10.11   #include <ext/hash_fun.h>
   10.12   
   10.13 @@ -10,8 +10,8 @@
   10.14   # ifdef __GC
   10.15   #   define __GC_CONST const
   10.16   # else
   10.17 ---- gcc-4.1.0/libstdc++-v3/include/ext/ropeimpl.h.mps	2006-03-24 01:50:04 +0100
   10.18 -+++ gcc-4.1.0/libstdc++-v3/include/ext/ropeimpl.h	2006-03-24 01:50:28 +0100
   10.19 +--- gcc-4.1.2.orig/libstdc++-v3/include/ext/ropeimpl.h	2005-08-17 04:28:44.000000000 +0200
   10.20 ++++ gcc-4.1.2/libstdc++-v3/include/ext/ropeimpl.h	2007-03-04 23:34:08.000000000 +0100
   10.21  @@ -53,6 +53,9 @@
   10.22   #include <ext/memory> // For uninitialized_copy_n
   10.23   #include <ext/numeric> // For power
    11.1 --- a/patches/gcc/4.1.2/402-libbackend_dep_gcov-iov.h.patch	Sun Mar 04 22:55:14 2007 +0000
    11.2 +++ b/patches/gcc/4.1.2/402-libbackend_dep_gcov-iov.h.patch	Sun Mar 04 22:56:04 2007 +0000
    11.3 @@ -1,6 +1,5 @@
    11.4 -# gcc.gnu.org/PR30620
    11.5 ---- gcc-4.1.2-20070208.orig/gcc/Makefile.in	2006-11-01 15:40:44.000000000 +0100
    11.6 -+++ gcc-4.1.2-20070208/gcc/Makefile.in	2007-02-13 19:23:31.000000000 +0100
    11.7 +--- gcc-4.1.2.orig/gcc/Makefile.in	2006-11-01 15:40:44.000000000 +0100
    11.8 ++++ gcc-4.1.2/gcc/Makefile.in	2007-03-04 23:34:32.000000000 +0100
    11.9  @@ -2522,7 +2522,7 @@
   11.10   # FIXME: writing proper dependencies for this is a *LOT* of work.
   11.11   libbackend.o : $(OBJS-common:.o=.c) $(out_file) \
    12.1 --- a/patches/gcc/4.1.2/740-sh-pr24836.patch	Sun Mar 04 22:55:14 2007 +0000
    12.2 +++ b/patches/gcc/4.1.2/740-sh-pr24836.patch	Sun Mar 04 22:56:04 2007 +0000
    12.3 @@ -1,9 +1,6 @@
    12.4 -http://sourceforge.net/mailarchive/forum.php?thread_id=8959304&forum_id=5348
    12.5 -http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24836
    12.6 -
    12.7 ---- gcc/gcc/configure.ac	(revision 106699)
    12.8 -+++ gcc/gcc/configure.ac	(working copy)
    12.9 -@@ -2446,7 +2446,7 @@
   12.10 +--- gcc-4.1.2.orig/gcc/configure.ac	2006-11-13 23:09:55.000000000 +0100
   12.11 ++++ gcc-4.1.2/gcc/configure.ac	2007-03-04 23:34:53.000000000 +0100
   12.12 +@@ -2435,7 +2435,7 @@
   12.13   	tls_first_minor=14
   12.14   	tls_as_opt="-m64 -Aesame --fatal-warnings"
   12.15   	;;
   12.16 @@ -12,9 +9,9 @@
   12.17       conftest_s='
   12.18   	.section ".tdata","awT",@progbits
   12.19   foo:	.long	25
   12.20 ---- gcc/gcc/configure
   12.21 -+++ gcc/gcc/configure
   12.22 -@@ -14846,7 +14846,7 @@
   12.23 +--- gcc-4.1.2.orig/gcc/configure	2006-11-13 23:09:55.000000000 +0100
   12.24 ++++ gcc-4.1.2/gcc/configure	2007-03-04 23:34:53.000000000 +0100
   12.25 +@@ -14762,7 +14762,7 @@
   12.26   	tls_first_minor=14
   12.27   	tls_as_opt="-m64 -Aesame --fatal-warnings"
   12.28   	;;
    13.1 --- a/patches/gcc/4.1.2/800-arm-bigendian.patch	Sun Mar 04 22:55:14 2007 +0000
    13.2 +++ b/patches/gcc/4.1.2/800-arm-bigendian.patch	Sun Mar 04 22:56:04 2007 +0000
    13.3 @@ -1,12 +1,5 @@
    13.4 -By Lennert Buytenhek <buytenh@wantstofly.org>
    13.5 -Adds support for arm*b-linux* big-endian ARM targets
    13.6 -
    13.7 -See http://gcc.gnu.org/PR16350
    13.8 -
    13.9 -Index: gcc-4.1.1/gcc/config/arm/linux-elf.h
   13.10 -===================================================================
   13.11 ---- gcc-4.1.1.orig/gcc/config/arm/linux-elf.h
   13.12 -+++ gcc-4.1.1/gcc/config/arm/linux-elf.h
   13.13 +--- gcc-4.1.2.orig/gcc/config/arm/linux-elf.h	2007-03-04 23:25:37.000000000 +0100
   13.14 ++++ gcc-4.1.2/gcc/config/arm/linux-elf.h	2007-03-04 23:35:09.000000000 +0100
   13.15  @@ -28,19 +28,33 @@
   13.16   #undef  TARGET_VERSION
   13.17   #define TARGET_VERSION  fputs (" (ARM GNU/Linux with ELF)", stderr);
   13.18 @@ -44,7 +37,7 @@
   13.19   
   13.20   /* Now we define the strings used to build the spec file.  */
   13.21   #undef  LIB_SPEC
   13.22 -@@ -61,7 +75,7 @@
   13.23 +@@ -65,7 +79,7 @@
   13.24      %{rdynamic:-export-dynamic} \
   13.25      %{!dynamic-linker:-dynamic-linker " LINUX_TARGET_INTERPRETER "} \
   13.26      -X \
   13.27 @@ -53,11 +46,9 @@
   13.28      SUBTARGET_EXTRA_LINK_SPEC
   13.29   
   13.30   #undef  LINK_SPEC
   13.31 -Index: gcc-4.1.1/gcc/config.gcc
   13.32 -===================================================================
   13.33 ---- gcc-4.1.1.orig/gcc/config.gcc
   13.34 -+++ gcc-4.1.1/gcc/config.gcc
   13.35 -@@ -672,6 +672,11 @@ arm*-*-netbsd*)
   13.36 +--- gcc-4.1.2.orig/gcc/config.gcc	2007-03-04 23:31:48.000000000 +0100
   13.37 ++++ gcc-4.1.2/gcc/config.gcc	2007-03-04 23:35:09.000000000 +0100
   13.38 +@@ -672,6 +672,11 @@
   13.39   	;;
   13.40   arm*-*-linux*)			# ARM GNU/Linux with ELF
   13.41   	tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h" 
   13.42 @@ -68,11 +59,9 @@
   13.43  +	esac
   13.44   	tmake_file="${tmake_file} t-linux arm/t-arm"
   13.45   	case ${target} in
   13.46 - 	arm*-*-linux-gnueabi)
   13.47 -Index: gcc-4.1.1/gcc/config/arm/linux-eabi.h
   13.48 -===================================================================
   13.49 ---- gcc-4.1.1.orig/gcc/config/arm/linux-eabi.h
   13.50 -+++ gcc-4.1.1/gcc/config/arm/linux-eabi.h
   13.51 + 	arm*-*-linux-gnueabi | arm*-*-linux-uclibcgnueabi)
   13.52 +--- gcc-4.1.2.orig/gcc/config/arm/linux-eabi.h	2007-03-04 23:31:48.000000000 +0100
   13.53 ++++ gcc-4.1.2/gcc/config/arm/linux-eabi.h	2007-03-04 23:35:09.000000000 +0100
   13.54  @@ -20,6 +20,17 @@
   13.55      the Free Software Foundation, 51 Franklin Street, Fifth Floor,
   13.56      Boston, MA 02110-1301, USA.  */
   13.57 @@ -100,10 +89,8 @@
   13.58   
   13.59   /* Use ld-linux.so.3 so that it will be possible to run "classic"
   13.60      GNU/Linux binaries on an EABI system.  */
   13.61 -Index: gcc-4.1.1/gcc/config/arm/bpabi.h
   13.62 -===================================================================
   13.63 ---- gcc-4.1.1.orig/gcc/config/arm/bpabi.h
   13.64 -+++ gcc-4.1.1/gcc/config/arm/bpabi.h
   13.65 +--- gcc-4.1.2.orig/gcc/config/arm/bpabi.h	2005-12-13 02:35:37.000000000 +0100
   13.66 ++++ gcc-4.1.2/gcc/config/arm/bpabi.h	2007-03-04 23:35:09.000000000 +0100
   13.67  @@ -33,9 +33,19 @@
   13.68   #undef FPUTYPE_DEFAULT
   13.69   #define FPUTYPE_DEFAULT FPUTYPE_VFP