summaryrefslogtreecommitdiffstats
path: root/patches
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2008-04-28 10:28:24 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2008-04-28 10:28:24 +0000
commitd0e9feefc255cfc52455f9fb8df7b7d4a39cba74 (patch)
treecb0a0eb459ead0da207aa1fe4cc7934c7c15aaa3 /patches
parent9ecfb6b218c6dfb84764e623dac755b717d193d8 (diff)
downloadOSELAS.Toolchain-d0e9feefc255cfc52455f9fb8df7b7d4a39cba74.tar.gz
OSELAS.Toolchain-d0e9feefc255cfc52455f9fb8df7b7d4a39cba74.tar.xz
git-svn-id: https://svn.pengutronix.de/svn/oselas/toolchain/branches/OSELAS.Toolchain-mkl@6240 f8d472c7-5700-0410-ac5a-87979cec3adf
Diffstat (limited to 'patches')
-rw-r--r--patches/gcc-4.1.2/generic/gcc-4.1.1-pr28516.diff10
-rw-r--r--patches/gcc-4.1.2/generic/oe-zecke-xgcc-cpp.patch15
-rw-r--r--patches/gcc-4.1.2/generic/series1
-rw-r--r--patches/gcc-4.1.2/generic/uclibc-300-libstdc++-pic.patch41
-rw-r--r--patches/gcc-4.1.2/generic/uclibc/100-uclibc-conf.patch234
-rw-r--r--patches/gcc-4.1.2/generic/uclibc/110-arm-eabi.patch43
-rw-r--r--patches/gcc-4.1.2/generic/uclibc/200-uclibc-locale.patch197
-rw-r--r--patches/gcc-4.1.2/generic/uclibc/300-libstdc++-pic.patch59
-rw-r--r--patches/gcc-4.1.2/generic/uclibc/301-missing-execinfo_h.patch28
-rw-r--r--patches/gcc-4.1.2/generic/uclibc/302-c99-snprintf.patch28
-rw-r--r--patches/gcc-4.1.2/generic/uclibc/303-c99-complex-ugly-hack.patch28
11 files changed, 468 insertions, 216 deletions
diff --git a/patches/gcc-4.1.2/generic/gcc-4.1.1-pr28516.diff b/patches/gcc-4.1.2/generic/gcc-4.1.1-pr28516.diff
index 0201d0f..0a81106 100644
--- a/patches/gcc-4.1.2/generic/gcc-4.1.1-pr28516.diff
+++ b/patches/gcc-4.1.2/generic/gcc-4.1.1-pr28516.diff
@@ -16,10 +16,10 @@
gcc/testsuite/gcc.dg/nested-func-5.c | 13 +++++++++++++
2 files changed, 22 insertions(+)
-Index: gcc/config/arm/arm.c
+Index: gcc-4.1.2/gcc/config/arm/arm.c
===================================================================
---- gcc/config/arm/arm.c.orig
-+++ gcc/config/arm/arm.c
+--- gcc-4.1.2.orig/gcc/config/arm/arm.c
++++ gcc-4.1.2/gcc/config/arm/arm.c
@@ -15371,6 +15371,15 @@ arm_unwind_emit_set (FILE * asm_out_file
/* Move from sp to reg. */
asm_fprintf (asm_out_file, "\t.movsp %r\n", REGNO (e0));
@@ -36,10 +36,10 @@ Index: gcc/config/arm/arm.c
else
abort ();
break;
-Index: gcc/testsuite/gcc.dg/nested-func-5.c
+Index: gcc-4.1.2/gcc/testsuite/gcc.dg/nested-func-5.c
===================================================================
--- /dev/null
-+++ gcc/testsuite/gcc.dg/nested-func-5.c
++++ gcc-4.1.2/gcc/testsuite/gcc.dg/nested-func-5.c
@@ -0,0 +1,13 @@
+/* { dg-do compile } */
+/* { dg-options "-fexceptions" } */
diff --git a/patches/gcc-4.1.2/generic/oe-zecke-xgcc-cpp.patch b/patches/gcc-4.1.2/generic/oe-zecke-xgcc-cpp.patch
index 921cab6..696acc9 100644
--- a/patches/gcc-4.1.2/generic/oe-zecke-xgcc-cpp.patch
+++ b/patches/gcc-4.1.2/generic/oe-zecke-xgcc-cpp.patch
@@ -1,12 +1,19 @@
+From: git://repo.or.cz/org.openembedded.dev.git/
+ packages/gcc/gcc-4.1.2/zecke-xgcc-cpp.patch
+
upstream: n/a
comment: Use the preprocessor we have just compiled instead the one of
the system. There might be incompabilities between us and them.
-Index: gcc-4.1.1/Makefile.in
+---
+ Makefile.in | 1 +
+ 1 file changed, 1 insertion(+)
+
+Index: gcc-4.1.2/Makefile.in
===================================================================
---- gcc-4.1.1.orig/Makefile.in 2006-08-06 13:32:44.000000000 +0200
-+++ gcc-4.1.1/Makefile.in 2006-08-06 13:32:46.000000000 +0200
-@@ -194,6 +194,7 @@
+--- gcc-4.1.2.orig/Makefile.in
++++ gcc-4.1.2/Makefile.in
+@@ -194,6 +194,7 @@ BASE_TARGET_EXPORTS = \
AS="$(COMPILER_AS_FOR_TARGET)"; export AS; \
CC="$(CC_FOR_TARGET)"; export CC; \
CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
diff --git a/patches/gcc-4.1.2/generic/series b/patches/gcc-4.1.2/generic/series
index cbdce32..4f18d6f 100644
--- a/patches/gcc-4.1.2/generic/series
+++ b/patches/gcc-4.1.2/generic/series
@@ -17,7 +17,6 @@ arm-thumb-cache.patch
uclibc/100-uclibc-conf.patch
uclibc/110-arm-eabi.patch
uclibc/200-uclibc-locale.patch
-uclibc/300-libstdc++-pic.patch
uclibc/301-missing-execinfo_h.patch
uclibc/302-c99-snprintf.patch
uclibc/303-c99-complex-ugly-hack.patch
diff --git a/patches/gcc-4.1.2/generic/uclibc-300-libstdc++-pic.patch b/patches/gcc-4.1.2/generic/uclibc-300-libstdc++-pic.patch
index 560bcb2..e4dd4f1 100644
--- a/patches/gcc-4.1.2/generic/uclibc-300-libstdc++-pic.patch
+++ b/patches/gcc-4.1.2/generic/uclibc-300-libstdc++-pic.patch
@@ -1,8 +1,31 @@
+From: svn://uclibc.org/trunk/buildroot/toolchain/gcc/4.1.2/300-libstdc++-pic.patch
+
+Path: 300-libstdc++-pic.patch
+Name: 300-libstdc++-pic.patch
+URL: svn://uclibc.org/trunk/buildroot/toolchain/gcc/4.1.2/300-libstdc++-pic.patch
+Repository Root: svn://uclibc.org
+Repository UUID: 69ca8d6d-28ef-0310-b511-8ec308f3f277
+Revision: 21884
+Node Kind: file
+Schedule: normal
+Last Changed Author: vapier
+Last Changed Rev: 15469
+Last Changed Date: 2006-06-21 21:46:28 +0200 (Wed, 21 Jun 2006)
+Text Last Updated: 2008-03-27 14:45:05 +0100 (Thu, 27 Mar 2008)
+Checksum: b9631f049a0f8b926e04108e2779e3a1
+
# DP: Build and install libstdc++_pic.a library.
---- gcc/libstdc++-v3/src/Makefile.am
-+++ gcc/libstdc++-v3/src/Makefile.am
-@@ -214,6 +214,12 @@
+---
+ libstdc++-v3/src/Makefile.am | 6 ++++++
+ libstdc++-v3/src/Makefile.in | 10 +++++++++-
+ 2 files changed, 15 insertions(+), 1 deletion(-)
+
+Index: gcc-4.1.2/libstdc++-v3/src/Makefile.am
+===================================================================
+--- gcc-4.1.2.orig/libstdc++-v3/src/Makefile.am
++++ gcc-4.1.2/libstdc++-v3/src/Makefile.am
+@@ -234,6 +234,12 @@ CXXLINK = $(LIBTOOL) --tag CXX --mode=li
$(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LDFLAGS) -o $@
@@ -15,9 +38,11 @@
# Added bits to build debug library.
if GLIBCXX_BUILD_DEBUG
all-local: build_debug
---- gcc/libstdc++-v3/src/Makefile.in
-+++ gcc/libstdc++-v3/src/Makefile.in
-@@ -627,7 +627,7 @@
+Index: gcc-4.1.2/libstdc++-v3/src/Makefile.in
+===================================================================
+--- gcc-4.1.2.orig/libstdc++-v3/src/Makefile.in
++++ gcc-4.1.2/libstdc++-v3/src/Makefile.in
+@@ -627,7 +627,7 @@ info-am:
install-data-am: install-data-local
@@ -26,7 +51,7 @@
install-info: install-info-am
-@@ -660,6 +660,7 @@
+@@ -660,6 +660,7 @@ uninstall-am: uninstall-info-am uninstal
distclean-libtool distclean-tags distdir dvi dvi-am html \
html-am info info-am install install-am install-data \
install-data-am install-data-local install-exec \
@@ -34,7 +59,7 @@
install-exec-am install-info install-info-am install-man \
install-strip install-toolexeclibLTLIBRARIES installcheck \
installcheck-am installdirs maintainer-clean \
-@@ -743,6 +743,13 @@
+@@ -760,6 +761,13 @@ build_debug: stamp-debug
install_debug:
(cd ${debugdir} && $(MAKE) \
toolexeclibdir=$(glibcxx_toolexeclibdir)/debug install)
diff --git a/patches/gcc-4.1.2/generic/uclibc/100-uclibc-conf.patch b/patches/gcc-4.1.2/generic/uclibc/100-uclibc-conf.patch
index 49d576c..7e13ee8 100644
--- a/patches/gcc-4.1.2/generic/uclibc/100-uclibc-conf.patch
+++ b/patches/gcc-4.1.2/generic/uclibc/100-uclibc-conf.patch
@@ -1,14 +1,66 @@
---- gcc-4.1.0/gcc/config/t-linux-uclibc
-+++ gcc-4.1.0/gcc/config/t-linux-uclibc
+From: svn://uclibc.org/trunk/buildroot/toolchain/gcc/4.1.2/100-uclibc-conf.patch
+
+Path: 100-uclibc-conf.patch
+Name: 100-uclibc-conf.patch
+URL: svn://uclibc.org/trunk/buildroot/toolchain/gcc/4.1.2/100-uclibc-conf.patch
+Repository Root: svn://uclibc.org
+Repository UUID: 69ca8d6d-28ef-0310-b511-8ec308f3f277
+Revision: 21884
+Node Kind: file
+Schedule: normal
+Last Changed Author: vapier
+Last Changed Rev: 14420
+Last Changed Date: 2006-03-02 06:25:36 +0100 (Thu, 02 Mar 2006)
+Text Last Updated: 2008-03-27 14:45:05 +0100 (Thu, 27 Mar 2008)
+Checksum: 1b5adcd4819efe62f47e5c8d67d97d7a
+
+---
+ boehm-gc/configure | 5 +++++
+ configure | 2 +-
+ configure.in | 2 +-
+ contrib/regression/objs-gcc.sh | 4 ++++
+ gcc/config.gcc | 8 +++++++-
+ gcc/config/alpha/linux-elf.h | 4 ++++
+ gcc/config/arm/linux-elf.h | 4 ++++
+ gcc/config/cris/linux.h | 21 +++++++++++++++++++++
+ gcc/config/i386/linux.h | 5 +++++
+ gcc/config/i386/linux64.h | 11 +++++++++--
+ gcc/config/ia64/linux.h | 7 ++++++-
+ gcc/config/m68k/linux.h | 7 ++++++-
+ gcc/config/mips/linux.h | 7 ++++++-
+ gcc/config/pa/pa-linux.h | 7 ++++++-
+ gcc/config/rs6000/linux.h | 4 ++++
+ gcc/config/rs6000/sysv4.h | 6 ++++++
+ gcc/config/s390/linux.h | 11 +++++++++--
+ gcc/config/sh/linux.h | 9 +++++++++
+ gcc/config/sparc/linux.h | 7 ++++++-
+ gcc/config/sparc/linux64.h | 7 ++++++-
+ gcc/config/t-linux-uclibc | 5 +++++
+ libffi/configure | 5 +++++
+ libgfortran/configure | 5 +++++
+ libjava/configure | 5 +++++
+ libmudflap/configure | 5 +++++
+ libobjc/configure | 5 +++++
+ libtool.m4 | 5 +++++
+ ltconfig | 18 ++++++++++++++++++
+ zlib/configure | 5 +++++
+ 29 files changed, 183 insertions(+), 13 deletions(-)
+
+Index: gcc-4.1.2/gcc/config/t-linux-uclibc
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/gcc/config/t-linux-uclibc
@@ -0,0 +1,5 @@
+# Remove glibc specific files added in t-linux
+SHLIB_MAPFILES := $(filter-out $(srcdir)/config/libgcc-glibc.ver, $(SHLIB_MAPFILES))
+
+# Use unwind-dw2-fde instead of unwind-dw2-fde-glibc
+LIB2ADDEH := $(subst unwind-dw2-fde-glibc.c,unwind-dw2-fde.c,$(LIB2ADDEH))
---- gcc-4.1.0/gcc/config.gcc
-+++ gcc-4.1.0/gcc/config.gcc
-@@ -1887,7 +1887,7 @@ s390x-ibm-tpf*)
+Index: gcc-4.1.2/gcc/config.gcc
+===================================================================
+--- gcc-4.1.2.orig/gcc/config.gcc
++++ gcc-4.1.2/gcc/config.gcc
+@@ -1889,7 +1889,7 @@ s390x-ibm-tpf*)
;;
sh-*-elf* | sh[12346l]*-*-elf* | sh*-*-kaos* | \
sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
@@ -17,7 +69,7 @@
sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
sh64-*-netbsd* | sh64l*-*-netbsd*)
tmake_file="${tmake_file} sh/t-sh sh/t-elf"
-@@ -2341,6 +2341,12 @@ m32c-*-elf*)
+@@ -2343,6 +2343,12 @@ m32c-*-elf*)
;;
esac
@@ -30,8 +82,10 @@
case ${target} in
i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1)
tmake_file="${tmake_file} i386/t-gmm_malloc"
---- gcc-4.1.0/boehm-gc/configure
-+++ gcc-4.1.0/boehm-gc/configure
+Index: gcc-4.1.2/boehm-gc/configure
+===================================================================
+--- gcc-4.1.2.orig/boehm-gc/configure
++++ gcc-4.1.2/boehm-gc/configure
@@ -4320,6 +4320,11 @@ linux-gnu*)
lt_cv_deplibs_check_method=pass_all
;;
@@ -44,8 +98,10 @@
netbsd* | knetbsd*-gnu)
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
---- gcc-4.1.0/configure
-+++ gcc-4.1.0/configure
+Index: gcc-4.1.2/configure
+===================================================================
+--- gcc-4.1.2.orig/configure
++++ gcc-4.1.2/configure
@@ -1133,7 +1133,7 @@ no)
;;
"")
@@ -55,8 +111,10 @@
# Enable libmudflap by default in GNU and friends.
;;
*-*-freebsd*)
---- gcc-4.1.0/configure.in
-+++ gcc-4.1.0/configure.in
+Index: gcc-4.1.2/configure.in
+===================================================================
+--- gcc-4.1.2.orig/configure.in
++++ gcc-4.1.2/configure.in
@@ -341,7 +341,7 @@ no)
;;
"")
@@ -66,8 +124,10 @@
# Enable libmudflap by default in GNU and friends.
;;
*-*-freebsd*)
---- gcc-4.1.0/contrib/regression/objs-gcc.sh
-+++ gcc-4.1.0/contrib/regression/objs-gcc.sh
+Index: gcc-4.1.2/contrib/regression/objs-gcc.sh
+===================================================================
+--- gcc-4.1.2.orig/contrib/regression/objs-gcc.sh
++++ gcc-4.1.2/contrib/regression/objs-gcc.sh
@@ -105,6 +105,10 @@ if [ $H_REAL_TARGET = $H_REAL_HOST -a $H
then
make all-gdb all-dejagnu all-ld || exit 1
@@ -79,8 +139,10 @@
elif [ $H_REAL_TARGET = $H_REAL_HOST ] ; then
make bootstrap || exit 1
make install || exit 1
---- gcc-4.1.0/gcc/config/alpha/linux-elf.h
-+++ gcc-4.1.0/gcc/config/alpha/linux-elf.h
+Index: gcc-4.1.2/gcc/config/alpha/linux-elf.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/alpha/linux-elf.h
++++ gcc-4.1.2/gcc/config/alpha/linux-elf.h
@@ -27,7 +27,11 @@ Boston, MA 02110-1301, USA. */
#define SUBTARGET_EXTRA_SPECS \
{ "elf_dynamic_linker", ELF_DYNAMIC_LINKER },
@@ -93,11 +155,13 @@
#define LINK_SPEC "-m elf64alpha %{G*} %{relax:-relax} \
%{O*:-O3} %{!O*:-O1} \
---- gcc-4.1.0/gcc/config/arm/linux-elf.h
-+++ gcc-4.1.0/gcc/config/arm/linux-elf.h
-@@ -51,7 +51,11 @@
+Index: gcc-4.1.2/gcc/config/arm/linux-elf.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/arm/linux-elf.h
++++ gcc-4.1.2/gcc/config/arm/linux-elf.h
+@@ -65,7 +65,11 @@
- #define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc"
+ #define LIBGCC_SPEC "-lgcc"
+#ifdef USE_UCLIBC
+#define LINUX_TARGET_INTERPRETER "/lib/ld-uClibc.so.0"
@@ -107,8 +171,10 @@
#define LINUX_TARGET_LINK_SPEC "%{h*} %{version:-v} \
%{b} \
---- gcc-4.1.0/gcc/config/cris/linux.h
-+++ gcc-4.1.0/gcc/config/cris/linux.h
+Index: gcc-4.1.2/gcc/config/cris/linux.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/cris/linux.h
++++ gcc-4.1.2/gcc/config/cris/linux.h
@@ -73,6 +73,25 @@ Boston, MA 02110-1301, USA. */
#undef CRIS_DEFAULT_CPU_VERSION
#define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
@@ -144,8 +210,10 @@
/* Node: Run-time Target */
---- gcc-4.1.0/gcc/config/i386/linux.h
-+++ gcc-4.1.0/gcc/config/i386/linux.h
+Index: gcc-4.1.2/gcc/config/i386/linux.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/i386/linux.h
++++ gcc-4.1.2/gcc/config/i386/linux.h
@@ -107,6 +107,11 @@ Boston, MA 02110-1301, USA. */
#define LINK_EMULATION "elf_i386"
#define DYNAMIC_LINKER "/lib/ld-linux.so.2"
@@ -158,8 +226,10 @@
#undef SUBTARGET_EXTRA_SPECS
#define SUBTARGET_EXTRA_SPECS \
{ "link_emulation", LINK_EMULATION },\
---- gcc-4.1.0/gcc/config/i386/linux64.h
-+++ gcc-4.1.0/gcc/config/i386/linux64.h
+Index: gcc-4.1.2/gcc/config/i386/linux64.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/i386/linux64.h
++++ gcc-4.1.2/gcc/config/i386/linux64.h
@@ -54,14 +54,21 @@ Boston, MA 02110-1301, USA. */
When the -shared link option is used a final link is not being
done. */
@@ -184,8 +254,10 @@
%{static:-static}}"
/* Similar to standard Linux, but adding -ffast-math support. */
---- gcc-4.1.0/gcc/config/ia64/linux.h
-+++ gcc-4.1.0/gcc/config/ia64/linux.h
+Index: gcc-4.1.2/gcc/config/ia64/linux.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/ia64/linux.h
++++ gcc-4.1.2/gcc/config/ia64/linux.h
@@ -37,13 +37,18 @@ do { \
/* Define this for shared library support because it isn't in the main
linux.h file. */
@@ -205,9 +277,11 @@
+ %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \
%{static:-static}}"
-
---- gcc-4.1.0/gcc/config/m68k/linux.h
-+++ gcc-4.1.0/gcc/config/m68k/linux.h
+ #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
+Index: gcc-4.1.2/gcc/config/m68k/linux.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/m68k/linux.h
++++ gcc-4.1.2/gcc/config/m68k/linux.h
@@ -123,12 +123,17 @@ Boston, MA 02110-1301, USA. */
/* If ELF is the default format, we should not use /lib/elf. */
@@ -227,8 +301,10 @@
%{static}}"
/* For compatibility with linux/a.out */
---- gcc-4.1.0/gcc/config/mips/linux.h
-+++ gcc-4.1.0/gcc/config/mips/linux.h
+Index: gcc-4.1.2/gcc/config/mips/linux.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/mips/linux.h
++++ gcc-4.1.2/gcc/config/mips/linux.h
@@ -105,6 +105,11 @@ Boston, MA 02110-1301, USA. */
/* Borrowed from sparc/linux.h */
@@ -250,8 +326,10 @@
%{static:-static}}}"
#undef SUBTARGET_ASM_SPEC
---- gcc-4.1.0/gcc/config/pa/pa-linux.h
-+++ gcc-4.1.0/gcc/config/pa/pa-linux.h
+Index: gcc-4.1.2/gcc/config/pa/pa-linux.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/pa/pa-linux.h
++++ gcc-4.1.2/gcc/config/pa/pa-linux.h
@@ -49,13 +49,18 @@ Boston, MA 02110-1301, USA. */
/* Define this for shared library support because it isn't in the main
linux.h file. */
@@ -272,8 +350,10 @@
%{static:-static}}"
/* glibc's profiling functions don't need gcc to allocate counters. */
---- gcc-4.1.0/gcc/config/rs6000/linux.h
-+++ gcc-4.1.0/gcc/config/rs6000/linux.h
+Index: gcc-4.1.2/gcc/config/rs6000/linux.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/rs6000/linux.h
++++ gcc-4.1.2/gcc/config/rs6000/linux.h
@@ -72,7 +72,11 @@
#define LINK_START_DEFAULT_SPEC "%(link_start_linux)"
@@ -286,8 +366,10 @@
#define LINK_GCC_C_SEQUENCE_SPEC \
"%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}"
---- gcc-4.1.0/gcc/config/rs6000/sysv4.h
-+++ gcc-4.1.0/gcc/config/rs6000/sysv4.h
+Index: gcc-4.1.2/gcc/config/rs6000/sysv4.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/rs6000/sysv4.h
++++ gcc-4.1.2/gcc/config/rs6000/sysv4.h
@@ -866,6 +866,7 @@ extern int fixuplabelno;
mcall-linux : %(link_os_linux) ; \
mcall-gnu : %(link_os_gnu) ; \
@@ -315,8 +397,10 @@
{ "link_os_gnu", LINK_OS_GNU_SPEC }, \
{ "link_os_netbsd", LINK_OS_NETBSD_SPEC }, \
{ "link_os_openbsd", LINK_OS_OPENBSD_SPEC }, \
---- gcc-4.1.0/gcc/config/s390/linux.h
-+++ gcc-4.1.0/gcc/config/s390/linux.h
+Index: gcc-4.1.2/gcc/config/s390/linux.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/s390/linux.h
++++ gcc-4.1.2/gcc/config/s390/linux.h
@@ -77,6 +77,13 @@ Software Foundation, 51 Franklin Street,
#define MULTILIB_DEFAULTS { "m31" }
#endif
@@ -340,10 +424,12 @@
+ %{m31:-dynamic-linker " ELF31_DYNAMIC_LINKER "} \
+ %{m64:-dynamic-linker " ELF64_DYNAMIC_LINKER "}}}}"
+ #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
- #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
---- gcc-4.1.0/gcc/config/sh/linux.h
-+++ gcc-4.1.0/gcc/config/sh/linux.h
+Index: gcc-4.1.2/gcc/config/sh/linux.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/sh/linux.h
++++ gcc-4.1.2/gcc/config/sh/linux.h
@@ -56,12 +56,21 @@ Boston, MA 02110-1301, USA. */
#undef SUBTARGET_LINK_EMUL_SUFFIX
#define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
@@ -366,8 +452,10 @@
/* Output assembler code to STREAM to call the profiler. */
---- gcc-4.1.0/gcc/config/sparc/linux.h
-+++ gcc-4.1.0/gcc/config/sparc/linux.h
+Index: gcc-4.1.2/gcc/config/sparc/linux.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/sparc/linux.h
++++ gcc-4.1.2/gcc/config/sparc/linux.h
@@ -125,6 +125,11 @@ Boston, MA 02110-1301, USA. */
/* If ELF is the default format, we should not use /lib/elf. */
@@ -389,8 +477,10 @@
%{static:-static}}}"
/* The sun bundled assembler doesn't accept -Yd, (and neither does gas).
---- gcc-4.1.0/gcc/config/sparc/linux64.h
-+++ gcc-4.1.0/gcc/config/sparc/linux64.h
+Index: gcc-4.1.2/gcc/config/sparc/linux64.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/sparc/linux64.h
++++ gcc-4.1.2/gcc/config/sparc/linux64.h
@@ -162,12 +162,17 @@ Boston, MA 02110-1301, USA. */
{ "link_arch_default", LINK_ARCH_DEFAULT_SPEC }, \
{ "link_arch", LINK_ARCH_SPEC },
@@ -410,8 +500,10 @@
%{static:-static}}} \
"
---- gcc-4.1.0/libffi/configure
-+++ gcc-4.1.0/libffi/configure
+Index: gcc-4.1.2/libffi/configure
+===================================================================
+--- gcc-4.1.2.orig/libffi/configure
++++ gcc-4.1.2/libffi/configure
@@ -3457,6 +3457,11 @@ linux-gnu*)
lt_cv_deplibs_check_method=pass_all
;;
@@ -424,8 +516,10 @@
netbsd* | knetbsd*-gnu)
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
---- gcc-4.1.0/libgfortran/configure
-+++ gcc-4.1.0/libgfortran/configure
+Index: gcc-4.1.2/libgfortran/configure
+===================================================================
+--- gcc-4.1.2.orig/libgfortran/configure
++++ gcc-4.1.2/libgfortran/configure
@@ -3699,6 +3699,11 @@ linux-gnu*)
lt_cv_deplibs_check_method=pass_all
;;
@@ -438,8 +532,10 @@
netbsd* | knetbsd*-gnu)
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
---- gcc-4.1.0/libjava/configure
-+++ gcc-4.1.0/libjava/configure
+Index: gcc-4.1.2/libjava/configure
+===================================================================
+--- gcc-4.1.2.orig/libjava/configure
++++ gcc-4.1.2/libjava/configure
@@ -5137,6 +5137,11 @@ linux-gnu*)
lt_cv_deplibs_check_method=pass_all
;;
@@ -452,8 +548,10 @@
netbsd* | knetbsd*-gnu)
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
---- gcc-4.1.0/libmudflap/configure
-+++ gcc-4.1.0/libmudflap/configure
+Index: gcc-4.1.2/libmudflap/configure
+===================================================================
+--- gcc-4.1.2.orig/libmudflap/configure
++++ gcc-4.1.2/libmudflap/configure
@@ -5382,6 +5382,11 @@ linux-gnu*)
lt_cv_deplibs_check_method=pass_all
;;
@@ -466,8 +564,10 @@
netbsd* | knetbsd*-gnu)
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
---- gcc-4.1.0/libobjc/configure
-+++ gcc-4.1.0/libobjc/configure
+Index: gcc-4.1.2/libobjc/configure
+===================================================================
+--- gcc-4.1.2.orig/libobjc/configure
++++ gcc-4.1.2/libobjc/configure
@@ -3312,6 +3312,11 @@ linux-gnu*)
lt_cv_deplibs_check_method=pass_all
;;
@@ -480,8 +580,10 @@
netbsd* | knetbsd*-gnu)
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
---- gcc-4.1.0/libtool.m4
-+++ gcc-4.1.0/libtool.m4
+Index: gcc-4.1.2/libtool.m4
+===================================================================
+--- gcc-4.1.2.orig/libtool.m4
++++ gcc-4.1.2/libtool.m4
@@ -743,6 +743,11 @@ linux-gnu*)
lt_cv_deplibs_check_method=pass_all
;;
@@ -494,8 +596,10 @@
netbsd* | knetbsd*-gnu)
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
[lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
---- gcc-4.1.0/ltconfig
-+++ gcc-4.1.0/ltconfig
+Index: gcc-4.1.2/ltconfig
+===================================================================
+--- gcc-4.1.2.orig/ltconfig
++++ gcc-4.1.2/ltconfig
@@ -603,6 +603,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
@@ -528,8 +632,10 @@
netbsd*)
need_lib_prefix=no
need_version=no
---- gcc-4.1.0/zlib/configure
-+++ gcc-4.1.0/zlib/configure
+Index: gcc-4.1.2/zlib/configure
+===================================================================
+--- gcc-4.1.2.orig/zlib/configure
++++ gcc-4.1.2/zlib/configure
@@ -3426,6 +3426,11 @@ linux-gnu*)
lt_cv_deplibs_check_method=pass_all
;;
diff --git a/patches/gcc-4.1.2/generic/uclibc/110-arm-eabi.patch b/patches/gcc-4.1.2/generic/uclibc/110-arm-eabi.patch
index acebe53..29c797a 100644
--- a/patches/gcc-4.1.2/generic/uclibc/110-arm-eabi.patch
+++ b/patches/gcc-4.1.2/generic/uclibc/110-arm-eabi.patch
@@ -1,19 +1,42 @@
---- gcc-2005q3-1.orig/gcc/config.gcc 2005-10-31 19:02:54.000000000 +0300
-+++ gcc-2005q3-1/gcc/config.gcc 2006-01-27 01:09:09.000000000 +0300
-@@ -674,7 +674,7 @@
- tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h"
- tmake_file="t-slibgcc-elf-ver t-linux arm/t-arm"
+From: svn://uclibc.org/trunk/buildroot/toolchain/gcc/4.1.2/110-arm-eabi.patch
+
+Path: 110-arm-eabi.patch
+Name: 110-arm-eabi.patch
+URL: svn://uclibc.org/trunk/buildroot/toolchain/gcc/4.1.2/110-arm-eabi.patch
+Repository Root: svn://uclibc.org
+Repository UUID: 69ca8d6d-28ef-0310-b511-8ec308f3f277
+Revision: 21884
+Node Kind: file
+Schedule: normal
+Last Changed Author: lethal
+Last Changed Rev: 15298
+Last Changed Date: 2006-06-06 13:36:15 +0200 (Tue, 06 Jun 2006)
+Text Last Updated: 2008-03-27 14:45:05 +0100 (Thu, 27 Mar 2008)
+Checksum: 9dadfab32668547b77fbf93cd5c66c3a
+
+---
+ gcc/config.gcc | 2 +-
+ gcc/config/arm/linux-eabi.h | 4 ++++
+ 2 files changed, 5 insertions(+), 1 deletion(-)
+
+Index: gcc-4.1.2/gcc/config.gcc
+===================================================================
+--- gcc-4.1.2.orig/gcc/config.gcc
++++ gcc-4.1.2/gcc/config.gcc
+@@ -679,7 +679,7 @@ arm*-*-linux*) # ARM GNU/Linux with EL
+ esac
+ tmake_file="${tmake_file} t-linux arm/t-arm"
case ${target} in
- arm*-*-linux-gnueabi)
+ arm*-*-linux-gnueabi | arm*-*-linux-uclibcgnueabi)
tm_file="$tm_file arm/bpabi.h arm/linux-eabi.h"
tmake_file="$tmake_file arm/t-arm-elf arm/t-bpabi arm/t-linux-eabi"
# The BPABI long long divmod functions return a 128-bit value in
-
-diff -urN gcc-2005q3-2/gcc/config/arm/linux-eabi.h gcc-2005q3-2.new/gcc/config/arm/linux-eabi.h
---- gcc-2005q3-2/gcc/config/arm/linux-eabi.h 2005-12-07 23:14:16.000000000 +0300
-+++ gcc-2005q3-2.new/gcc/config/arm/linux-eabi.h 2006-03-29 19:02:34.000000000 +0400
-@@ -53,7 +53,11 @@
+Index: gcc-4.1.2/gcc/config/arm/linux-eabi.h
+===================================================================
+--- gcc-4.1.2.orig/gcc/config/arm/linux-eabi.h
++++ gcc-4.1.2/gcc/config/arm/linux-eabi.h
+@@ -64,7 +64,11 @@
/* Use ld-linux.so.3 so that it will be possible to run "classic"
GNU/Linux binaries on an EABI system. */
#undef LINUX_TARGET_INTERPRETER
diff --git a/patches/gcc-4.1.2/generic/uclibc/200-uclibc-locale.patch b/patches/gcc-4.1.2/generic/uclibc/200-uclibc-locale.patch
index e5d712e..41f0de0 100644
--- a/patches/gcc-4.1.2/generic/uclibc/200-uclibc-locale.patch
+++ b/patches/gcc-4.1.2/generic/uclibc/200-uclibc-locale.patch
@@ -1,6 +1,49 @@
---- gcc-4.1.0-dist/libstdc++-v3/acinclude.m4
-+++ gcc-4.1.0/libstdc++-v3/acinclude.m4
-@@ -1071,7 +1071,7 @@
+From: svn://uclibc.org/trunk/buildroot/toolchain/gcc/4.1.2/200-uclibc-locale.patch
+
+Path: 200-uclibc-locale.patch
+Name: 200-uclibc-locale.patch
+URL: svn://uclibc.org/trunk/buildroot/toolchain/gcc/4.1.2/200-uclibc-locale.patch
+Repository Root: svn://uclibc.org
+Repository UUID: 69ca8d6d-28ef-0310-b511-8ec308f3f277
+Revision: 21884
+Node Kind: file
+Schedule: normal
+Last Changed Author: vapier
+Last Changed Rev: 15550
+Last Changed Date: 2006-06-30 03:22:21 +0200 (Fri, 30 Jun 2006)
+Text Last Updated: 2008-03-27 14:45:05 +0100 (Thu, 27 Mar 2008)
+Checksum: d7ea91df6ff85e6ade87d90ec7a90ba9
+
+---
+ libstdc++-v3/acinclude.m4 | 39
+ libstdc++-v3/config/locale/uclibc/c++locale_internal.h | 63 +
+ libstdc++-v3/config/locale/uclibc/c_locale.cc | 152 +++
+ libstdc++-v3/config/locale/uclibc/c_locale.h | 117 ++
+ libstdc++-v3/config/locale/uclibc/codecvt_members.cc | 306 +++++++
+ libstdc++-v3/config/locale/uclibc/collate_members.cc | 80 +
+ libstdc++-v3/config/locale/uclibc/ctype_members.cc | 314 +++++++
+ libstdc++-v3/config/locale/uclibc/messages_members.cc | 100 ++
+ libstdc++-v3/config/locale/uclibc/messages_members.h | 121 ++
+ libstdc++-v3/config/locale/uclibc/monetary_members.cc | 692 +++++++++++++++++
+ libstdc++-v3/config/locale/uclibc/numeric_members.cc | 173 ++++
+ libstdc++-v3/config/locale/uclibc/time_members.cc | 406 +++++++++
+ libstdc++-v3/config/locale/uclibc/time_members.h | 76 +
+ libstdc++-v3/config/os/uclibc/ctype_base.h | 64 +
+ libstdc++-v3/config/os/uclibc/ctype_inline.h | 69 +
+ libstdc++-v3/config/os/uclibc/ctype_noninline.h | 92 ++
+ libstdc++-v3/config/os/uclibc/os_defines.h | 44 +
+ libstdc++-v3/configure | 80 +
+ libstdc++-v3/configure.host | 6
+ libstdc++-v3/crossconfig.m4 | 95 ++
+ libstdc++-v3/include/c_compatibility/wchar.h | 2
+ libstdc++-v3/include/c_std/std_cwchar.h | 2
+ 22 files changed, 3090 insertions(+), 3 deletions(-)
+
+Index: gcc-4.1.2/libstdc++-v3/acinclude.m4
+===================================================================
+--- gcc-4.1.2.orig/libstdc++-v3/acinclude.m4
++++ gcc-4.1.2/libstdc++-v3/acinclude.m4
+@@ -1003,7 +1003,7 @@ AC_DEFUN([GLIBCXX_ENABLE_CLOCALE], [
AC_MSG_CHECKING([for C locale to use])
GLIBCXX_ENABLE(clocale,auto,[@<:@=MODEL@:>@],
[use MODEL for target locale package],
@@ -9,7 +52,7 @@
# If they didn't use this option switch, or if they specified --enable
# with no specific model, we'll have to look for one. If they
-@@ -1087,6 +1087,9 @@
+@@ -1019,6 +1019,9 @@ AC_DEFUN([GLIBCXX_ENABLE_CLOCALE], [
# Default to "generic".
if test $enable_clocale_flag = auto; then
case ${target_os} in
@@ -19,7 +62,7 @@
linux* | gnu* | kfreebsd*-gnu | knetbsd*-gnu)
AC_EGREP_CPP([_GLIBCXX_ok], [
#include <features.h>
-@@ -1230,6 +1233,40 @@
+@@ -1162,6 +1165,40 @@ AC_DEFUN([GLIBCXX_ENABLE_CLOCALE], [
CTIME_CC=config/locale/generic/time_members.cc
CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
;;
@@ -60,8 +103,10 @@
esac
# This is where the testsuite looks for locale catalogs, using the
---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/c++locale_internal.h
-+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/c++locale_internal.h
+Index: gcc-4.1.2/libstdc++-v3/config/locale/uclibc/c++locale_internal.h
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/c++locale_internal.h
@@ -0,0 +1,63 @@
+// Prototypes for GLIBC thread locale __-prefixed functions -*- C++ -*-
+
@@ -126,8 +171,10 @@
+#endif
+
+#endif // GLIBC 2.3 and later
---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/c_locale.cc
-+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/c_locale.cc
+Index: gcc-4.1.2/libstdc++-v3/config/locale/uclibc/c_locale.cc
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/c_locale.cc
@@ -0,0 +1,152 @@
+// Wrapper for underlying C-language localization -*- C++ -*-
+
@@ -281,8 +328,10 @@
+{
+ const char* const* const locale::_S_categories = __gnu_cxx::category_names;
+} // namespace std
---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/c_locale.h
-+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/c_locale.h
+Index: gcc-4.1.2/libstdc++-v3/config/locale/uclibc/c_locale.h
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/c_locale.h
@@ -0,0 +1,117 @@
+// Wrapper for underlying C-language localization -*- C++ -*-
+
@@ -401,8 +450,10 @@
+}
+
+#endif
---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/codecvt_members.cc
-+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/codecvt_members.cc
+Index: gcc-4.1.2/libstdc++-v3/config/locale/uclibc/codecvt_members.cc
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/codecvt_members.cc
@@ -0,0 +1,306 @@
+// std::codecvt implementation details, GNU version -*- C++ -*-
+
@@ -710,8 +761,10 @@
+ }
+#endif
+}
---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/collate_members.cc
-+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/collate_members.cc
+Index: gcc-4.1.2/libstdc++-v3/config/locale/uclibc/collate_members.cc
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/collate_members.cc
@@ -0,0 +1,80 @@
+// std::collate implementation details, GNU version -*- C++ -*-
+
@@ -793,8 +846,10 @@
+ { return __wcsxfrm_l(__to, __from, __n, _M_c_locale_collate); }
+#endif
+}
---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/ctype_members.cc
-+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/ctype_members.cc
+Index: gcc-4.1.2/libstdc++-v3/config/locale/uclibc/ctype_members.cc
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/ctype_members.cc
@@ -0,0 +1,314 @@
+// std::ctype implementation details, GNU version -*- C++ -*-
+
@@ -1110,8 +1165,10 @@
+ }
+#endif // _GLIBCXX_USE_WCHAR_T
+}
---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/messages_members.cc
-+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/messages_members.cc
+Index: gcc-4.1.2/libstdc++-v3/config/locale/uclibc/messages_members.cc
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/messages_members.cc
@@ -0,0 +1,100 @@
+// std::messages implementation details, GNU version -*- C++ -*-
+
@@ -1213,8 +1270,10 @@
+ }
+#endif
+}
---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/messages_members.h
-+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/messages_members.h
+Index: gcc-4.1.2/libstdc++-v3/config/locale/uclibc/messages_members.h
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/messages_members.h
@@ -0,0 +1,121 @@
+// std::messages implementation details, GNU version -*- C++ -*-
+
@@ -1337,8 +1396,10 @@
+ this->_S_create_c_locale(this->_M_c_locale_messages, __s);
+ }
+ }
---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/monetary_members.cc
-+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/monetary_members.cc
+Index: gcc-4.1.2/libstdc++-v3/config/locale/uclibc/monetary_members.cc
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/monetary_members.cc
@@ -0,0 +1,692 @@
+// std::moneypunct implementation details, GNU version -*- C++ -*-
+
@@ -2032,8 +2093,10 @@
+ }
+#endif
+}
---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/numeric_members.cc
-+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/numeric_members.cc
+Index: gcc-4.1.2/libstdc++-v3/config/locale/uclibc/numeric_members.cc
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/numeric_members.cc
@@ -0,0 +1,173 @@
+// std::numpunct implementation details, GNU version -*- C++ -*-
+
@@ -2208,8 +2271,10 @@
+ { delete _M_data; }
+ #endif
+}
---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/time_members.cc
-+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/time_members.cc
+Index: gcc-4.1.2/libstdc++-v3/config/locale/uclibc/time_members.cc
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/time_members.cc
@@ -0,0 +1,406 @@
+// std::time_get, std::time_put implementation, GNU version -*- C++ -*-
+
@@ -2617,8 +2682,10 @@
+ }
+#endif
+}
---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/time_members.h
-+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/time_members.h
+Index: gcc-4.1.2/libstdc++-v3/config/locale/uclibc/time_members.h
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/time_members.h
@@ -0,0 +1,76 @@
+// std::time_get, std::time_put implementation, GNU version -*- C++ -*-
+
@@ -2696,8 +2763,10 @@
+ delete _M_data;
+ _S_destroy_c_locale(_M_c_locale_timepunct);
+ }
---- gcc-4.1.0-dist/libstdc++-v3/config/os/uclibc/ctype_base.h
-+++ gcc-4.1.0/libstdc++-v3/config/os/uclibc/ctype_base.h
+Index: gcc-4.1.2/libstdc++-v3/config/os/uclibc/ctype_base.h
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/os/uclibc/ctype_base.h
@@ -0,0 +1,64 @@
+// Locale support -*- C++ -*-
+
@@ -2763,8 +2832,10 @@
+ static const mask punct = _ISpunct;
+ static const mask alnum = _ISalpha | _ISdigit;
+ };
---- gcc-4.1.0-dist/libstdc++-v3/config/os/uclibc/ctype_inline.h
-+++ gcc-4.1.0/libstdc++-v3/config/os/uclibc/ctype_inline.h
+Index: gcc-4.1.2/libstdc++-v3/config/os/uclibc/ctype_inline.h
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/os/uclibc/ctype_inline.h
@@ -0,0 +1,69 @@
+// Locale support -*- C++ -*-
+
@@ -2835,8 +2906,10 @@
+ ++__low;
+ return __low;
+ }
---- gcc-4.1.0-dist/libstdc++-v3/config/os/uclibc/ctype_noninline.h
-+++ gcc-4.1.0/libstdc++-v3/config/os/uclibc/ctype_noninline.h
+Index: gcc-4.1.2/libstdc++-v3/config/os/uclibc/ctype_noninline.h
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/os/uclibc/ctype_noninline.h
@@ -0,0 +1,92 @@
+// Locale support -*- C++ -*-
+
@@ -2930,8 +3003,10 @@
+ }
+ return __high;
+ }
---- gcc-4.1.0-dist/libstdc++-v3/config/os/uclibc/os_defines.h
-+++ gcc-4.1.0/libstdc++-v3/config/os/uclibc/os_defines.h
+Index: gcc-4.1.2/libstdc++-v3/config/os/uclibc/os_defines.h
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/os/uclibc/os_defines.h
@@ -0,0 +1,44 @@
+// Specific definitions for GNU/Linux -*- C++ -*-
+
@@ -2977,9 +3052,11 @@
+#define __NO_STRING_INLINES
+
+#endif
---- gcc-4.1.0-dist/libstdc++-v3/configure
-+++ gcc-4.1.0/libstdc++-v3/configure
-@@ -4005,6 +4005,11 @@
+Index: gcc-4.1.2/libstdc++-v3/configure
+===================================================================
+--- gcc-4.1.2.orig/libstdc++-v3/configure
++++ gcc-4.1.2/libstdc++-v3/configure
+@@ -4005,6 +4005,11 @@ linux-gnu*)
lt_cv_deplibs_check_method=pass_all
;;
@@ -2991,7 +3068,7 @@
netbsd* | knetbsd*-gnu)
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
-@@ -5740,7 +5745,7 @@
+@@ -5740,7 +5745,7 @@ if test "${enable_clocale+set}" = set; t
enableval="$enable_clocale"
case "$enableval" in
@@ -3000,7 +3077,7 @@
*) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5
echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;}
{ (exit 1); exit 1; }; } ;;
-@@ -5765,6 +5770,9 @@
+@@ -5765,6 +5770,9 @@ fi;
# Default to "generic".
if test $enable_clocale_flag = auto; then
case ${target_os} in
@@ -3010,7 +3087,7 @@
linux* | gnu* | kfreebsd*-gnu | knetbsd*-gnu)
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
-@@ -5995,6 +6003,76 @@
+@@ -5995,6 +6003,76 @@ echo "${ECHO_T}IEEE 1003.1" >&6
CTIME_CC=config/locale/generic/time_members.cc
CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
;;
@@ -3087,9 +3164,11 @@
esac
# This is where the testsuite looks for locale catalogs, using the
---- gcc-4.1.0-dist/libstdc++-v3/configure.host
-+++ gcc-4.1.0/libstdc++-v3/configure.host
-@@ -261,6 +261,12 @@
+Index: gcc-4.1.2/libstdc++-v3/configure.host
+===================================================================
+--- gcc-4.1.2.orig/libstdc++-v3/configure.host
++++ gcc-4.1.2/libstdc++-v3/configure.host
+@@ -270,6 +270,12 @@ case "${host_os}" in
;;
esac
@@ -3102,9 +3181,11 @@
# Set any OS-dependent and CPU-dependent bits.
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
---- gcc-4.1.0-dist/libstdc++-v3/crossconfig.m4
-+++ gcc-4.1.0/libstdc++-v3/crossconfig.m4
-@@ -143,6 +143,99 @@
+Index: gcc-4.1.2/libstdc++-v3/crossconfig.m4
+===================================================================
+--- gcc-4.1.2.orig/libstdc++-v3/crossconfig.m4
++++ gcc-4.1.2/libstdc++-v3/crossconfig.m4
+@@ -143,6 +143,99 @@ case "${host}" in
;;
esac
;;
@@ -3204,7 +3285,7 @@
*-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu)
AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \
machine/endian.h machine/param.h sys/machine.h sys/types.h \
-@@ -157,7 +250,7 @@
+@@ -157,7 +250,7 @@ case "${host}" in
AC_DEFINE(HAVE_INT64_T)
case "$target" in
*-uclinux*)
@@ -3213,9 +3294,11 @@
;;
*)
AC_DEFINE(_GLIBCXX_USE_LFS)
---- gcc-4.1.0-dist/libstdc++-v3/include/c_compatibility/wchar.h
-+++ gcc-4.1.0/libstdc++-v3/include/c_compatibility/wchar.h
-@@ -101,7 +101,9 @@
+Index: gcc-4.1.2/libstdc++-v3/include/c_compatibility/wchar.h
+===================================================================
+--- gcc-4.1.2.orig/libstdc++-v3/include/c_compatibility/wchar.h
++++ gcc-4.1.2/libstdc++-v3/include/c_compatibility/wchar.h
+@@ -101,7 +101,9 @@ using std::wmemcmp;
using std::wmemcpy;
using std::wmemmove;
using std::wmemset;
@@ -3225,9 +3308,11 @@
#if _GLIBCXX_USE_C99
using std::wcstold;
---- gcc-4.1.0-dist/libstdc++-v3/include/c_std/std_cwchar.h
-+++ gcc-4.1.0/libstdc++-v3/include/c_std/std_cwchar.h
-@@ -180,7 +180,9 @@
+Index: gcc-4.1.2/libstdc++-v3/include/c_std/std_cwchar.h
+===================================================================
+--- gcc-4.1.2.orig/libstdc++-v3/include/c_std/std_cwchar.h
++++ gcc-4.1.2/libstdc++-v3/include/c_std/std_cwchar.h
+@@ -180,7 +180,9 @@ namespace std
using ::wcscoll;
using ::wcscpy;
using ::wcscspn;
diff --git a/patches/gcc-4.1.2/generic/uclibc/300-libstdc++-pic.patch b/patches/gcc-4.1.2/generic/uclibc/300-libstdc++-pic.patch
deleted file mode 100644
index 0330d0c..0000000
--- a/patches/gcc-4.1.2/generic/uclibc/300-libstdc++-pic.patch
+++ /dev/null
@@ -1,59 +0,0 @@
-# DP: Build and install libstdc++_pic.a library.
-
----
- libstdc++-v3/src/Makefile.am | 6 ++++++
- libstdc++-v3/src/Makefile.in | 10 +++++++++-
- 2 files changed, 15 insertions(+), 1 deletion(-)
-
-Index: gcc-4.1.2/libstdc++-v3/src/Makefile.am
-===================================================================
---- gcc-4.1.2.orig/libstdc++-v3/src/Makefile.am
-+++ gcc-4.1.2/libstdc++-v3/src/Makefile.am
-@@ -234,6 +234,12 @@ CXXLINK = $(LIBTOOL) --tag CXX --mode=li
- $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LDFLAGS) -o $@
-
-
-+install-exec-local:
-+ifeq ($(enable_shared),yes)
-+ $(AR) cru libstdc++_pic.a .libs/*.o $(top_builddir)/libsupc++/*.o
-+ $(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir)
-+endif
-+
- # Added bits to build debug library.
- if GLIBCXX_BUILD_DEBUG
- all-local: build_debug
-Index: gcc-4.1.2/libstdc++-v3/src/Makefile.in
-===================================================================
---- gcc-4.1.2.orig/libstdc++-v3/src/Makefile.in
-+++ gcc-4.1.2/libstdc++-v3/src/Makefile.in
-@@ -627,7 +627,7 @@ info-am:
-
- install-data-am: install-data-local
-
--install-exec-am: install-toolexeclibLTLIBRARIES
-+install-exec-am: install-toolexeclibLTLIBRARIES install-exec-local
-
- install-info: install-info-am
-
-@@ -660,6 +660,7 @@ uninstall-am: uninstall-info-am uninstal
- distclean-libtool distclean-tags distdir dvi dvi-am html \
- html-am info info-am install install-am install-data \
- install-data-am install-data-local install-exec \
-+ install-exec-local \
- install-exec-am install-info install-info-am install-man \
- install-strip install-toolexeclibLTLIBRARIES installcheck \
- installcheck-am installdirs maintainer-clean \
-@@ -760,6 +761,13 @@ build_debug: stamp-debug
- install_debug:
- (cd ${debugdir} && $(MAKE) \
- toolexeclibdir=$(glibcxx_toolexeclibdir)/debug install)
-+
-+install-exec-local:
-+ifeq ($(enable_shared),yes)
-+ $(AR) cru libstdc++_pic.a *.o $(top_builddir)/libsupc++/*.o
-+ $(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir)
-+endif
-+
- # Tell versions [3.59,3.63) of GNU make to not export all variables.
- # Otherwise a system limit (for SysV at least) may be exceeded.
- .NOEXPORT:
diff --git a/patches/gcc-4.1.2/generic/uclibc/301-missing-execinfo_h.patch b/patches/gcc-4.1.2/generic/uclibc/301-missing-execinfo_h.patch
index 0e2092f..d3e8125 100644
--- a/patches/gcc-4.1.2/generic/uclibc/301-missing-execinfo_h.patch
+++ b/patches/gcc-4.1.2/generic/uclibc/301-missing-execinfo_h.patch
@@ -1,6 +1,28 @@
---- gcc-4.0.0/boehm-gc/include/gc.h-orig 2005-04-28 22:28:57.000000000 -0500
-+++ gcc-4.0.0/boehm-gc/include/gc.h 2005-04-28 22:30:38.000000000 -0500
-@@ -500,7 +500,7 @@
+From: svn://uclibc.org/trunk/buildroot/toolchain/gcc/4.1.2/301-missing-execinfo_h.patch
+
+Path: 301-missing-execinfo_h.patch
+Name: 301-missing-execinfo_h.patch
+URL: svn://uclibc.org/trunk/buildroot/toolchain/gcc/4.1.2/301-missing-execinfo_h.patch
+Repository Root: svn://uclibc.org
+Repository UUID: 69ca8d6d-28ef-0310-b511-8ec308f3f277
+Revision: 21884
+Node Kind: file
+Schedule: normal
+Last Changed Author: sjhill
+Last Changed Rev: 10249
+Last Changed Date: 2005-05-05 05:17:15 +0200 (Thu, 05 May 2005)
+Text Last Updated: 2008-03-27 14:45:05 +0100 (Thu, 27 Mar 2008)
+Checksum: a1a72ecb9890db3e59ea40274a054a4b
+
+---
+ boehm-gc/include/gc.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: gcc-4.1.2/boehm-gc/include/gc.h
+===================================================================
+--- gcc-4.1.2.orig/boehm-gc/include/gc.h
++++ gcc-4.1.2/boehm-gc/include/gc.h
+@@ -500,7 +500,7 @@ GC_API GC_PTR GC_malloc_atomic_ignore_of
#ifdef __linux__
# include <features.h>
# if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 || __GLIBC__ > 2) \
diff --git a/patches/gcc-4.1.2/generic/uclibc/302-c99-snprintf.patch b/patches/gcc-4.1.2/generic/uclibc/302-c99-snprintf.patch
index dfb22d6..6872463 100644
--- a/patches/gcc-4.1.2/generic/uclibc/302-c99-snprintf.patch
+++ b/patches/gcc-4.1.2/generic/uclibc/302-c99-snprintf.patch
@@ -1,6 +1,28 @@
---- gcc-4.0.0/libstdc++-v3/include/c_std/std_cstdio.h-orig 2005-04-29 00:08:41.000000000 -0500
-+++ gcc-4.0.0/libstdc++-v3/include/c_std/std_cstdio.h 2005-04-29 00:08:45.000000000 -0500
-@@ -142,7 +142,7 @@
+From: svn://uclibc.org/trunk/buildroot/toolchain/gcc/4.1.2/302-c99-snprintf.patch
+
+Path: 302-c99-snprintf.patch
+Name: 302-c99-snprintf.patch
+URL: svn://uclibc.org/trunk/buildroot/toolchain/gcc/4.1.2/302-c99-snprintf.patch
+Repository Root: svn://uclibc.org
+Repository UUID: 69ca8d6d-28ef-0310-b511-8ec308f3f277
+Revision: 21884
+Node Kind: file
+Schedule: normal
+Last Changed Author: sjhill
+Last Changed Rev: 10249
+Last Changed Date: 2005-05-05 05:17:15 +0200 (Thu, 05 May 2005)
+Text Last Updated: 2008-03-27 14:45:05 +0100 (Thu, 27 Mar 2008)
+Checksum: 49145ad9e849728301685e5950cca6b6
+
+---
+ libstdc++-v3/include/c_std/std_cstdio.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: gcc-4.1.2/libstdc++-v3/include/c_std/std_cstdio.h
+===================================================================
+--- gcc-4.1.2.orig/libstdc++-v3/include/c_std/std_cstdio.h
++++ gcc-4.1.2/libstdc++-v3/include/c_std/std_cstdio.h
+@@ -143,7 +143,7 @@ namespace std
using ::vsprintf;
}
diff --git a/patches/gcc-4.1.2/generic/uclibc/303-c99-complex-ugly-hack.patch b/patches/gcc-4.1.2/generic/uclibc/303-c99-complex-ugly-hack.patch
index 2ccc80d..d8f4ddb 100644
--- a/patches/gcc-4.1.2/generic/uclibc/303-c99-complex-ugly-hack.patch
+++ b/patches/gcc-4.1.2/generic/uclibc/303-c99-complex-ugly-hack.patch
@@ -1,6 +1,28 @@
---- gcc-4.0.0/libstdc++-v3/configure-old 2005-04-30 22:04:48.061603912 -0500
-+++ gcc-4.0.0/libstdc++-v3/configure 2005-04-30 22:06:13.678588152 -0500
-@@ -7194,6 +7194,9 @@
+From: svn://uclibc.org/trunk/buildroot/toolchain/gcc/4.1.2/303-c99-complex-ugly-hack.patch
+
+Path: 303-c99-complex-ugly-hack.patch
+Name: 303-c99-complex-ugly-hack.patch
+URL: svn://uclibc.org/trunk/buildroot/toolchain/gcc/4.1.2/303-c99-complex-ugly-hack.patch
+Repository Root: svn://uclibc.org
+Repository UUID: 69ca8d6d-28ef-0310-b511-8ec308f3f277
+Revision: 21884
+Node Kind: file
+Schedule: normal
+Last Changed Author: sjhill
+Last Changed Rev: 10249
+Last Changed Date: 2005-05-05 05:17:15 +0200 (Thu, 05 May 2005)
+Text Last Updated: 2008-03-27 14:45:05 +0100 (Thu, 27 Mar 2008)
+Checksum: 715da9340cbd5371c777f7933c8f3d60
+
+---
+ libstdc++-v3/configure | 3 +++
+ 1 file changed, 3 insertions(+)
+
+Index: gcc-4.1.2/libstdc++-v3/configure
+===================================================================
+--- gcc-4.1.2.orig/libstdc++-v3/configure
++++ gcc-4.1.2/libstdc++-v3/configure
+@@ -7324,6 +7324,9 @@ cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <complex.h>