aboutsummaryrefslogtreecommitdiff
path: root/4.1.2
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-05-14 14:47:54 +0000
committerMike Frysinger <vapier@gentoo.org>2007-05-14 14:47:54 +0000
commit71402a4be1c700fdeb310a8bc8a42be5706e9da1 (patch)
tree7a9d91ee495400700cbea5ab1a7da68f6ac44ea7 /4.1.2
parentbackport s390 fixes so we can build glibc (diff)
downloadgcc-patches-71402a4be1c700fdeb310a8bc8a42be5706e9da1.tar.gz
gcc-patches-71402a4be1c700fdeb310a8bc8a42be5706e9da1.tar.bz2
gcc-patches-71402a4be1c700fdeb310a8bc8a42be5706e9da1.zip
fix from upstream to work with newer binutils #175900
Diffstat (limited to '4.1.2')
-rw-r--r--4.1.2/gentoo/12_all_gcc-libstdc++-ld-version.patch126
1 files changed, 126 insertions, 0 deletions
diff --git a/4.1.2/gentoo/12_all_gcc-libstdc++-ld-version.patch b/4.1.2/gentoo/12_all_gcc-libstdc++-ld-version.patch
new file mode 100644
index 0000000..2615f0b
--- /dev/null
+++ b/4.1.2/gentoo/12_all_gcc-libstdc++-ld-version.patch
@@ -0,0 +1,126 @@
+http://bugs.gentoo.org/175900
+
+2007-04-23 Matthias Klose <doko@debian.org>
+
+ Backport from mainline:
+ 2007-02-27 Richard Guenther <rguenther@suse.de>
+
+ * acinclude.m4: Adjust regular expression for ld version extraction.
+ * configure: Regenerate.
+
+Index: libstdc++-v3/acinclude.m4
+===================================================================
+--- libstdc++-v3/acinclude.m4 (revision 124063)
++++ libstdc++-v3/acinclude.m4 (revision 124064)
+@@ -225,7 +225,7 @@ AC_DEFUN([GLIBCXX_CHECK_LINKER_FEATURES]
+ if test x"$with_gnu_ld" = x"yes"; then
+ changequote(,)
+ ldver=`$LD --version 2>/dev/null | head -1 | \
+- sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
++ sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
+ changequote([,])
+ glibcxx_gnu_ld_version=`echo $ldver | \
+ $AWK -F. '{ if (NF<3) [$]3=0; print ([$]1*100+[$]2)*100+[$]3 }'`
+Index: libstdc++-v3/configure
+===================================================================
+--- libstdc++-v3/configure (revision 124063)
++++ libstdc++-v3/configure (revision 124064)
+@@ -8281,7 +8281,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
+ if test x"$with_gnu_ld" = x"yes"; then
+
+ ldver=`$LD --version 2>/dev/null | head -1 | \
+- sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
++ sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
+
+ glibcxx_gnu_ld_version=`echo $ldver | \
+ $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
+@@ -53122,7 +53122,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
+ if test x"$with_gnu_ld" = x"yes"; then
+
+ ldver=`$LD --version 2>/dev/null | head -1 | \
+- sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
++ sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
+
+ glibcxx_gnu_ld_version=`echo $ldver | \
+ $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
+@@ -74456,7 +74456,7 @@ done
+ if test x"$with_gnu_ld" = x"yes"; then
+
+ ldver=`$LD --version 2>/dev/null | head -1 | \
+- sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
++ sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
+
+ glibcxx_gnu_ld_version=`echo $ldver | \
+ $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
+@@ -75953,7 +75953,7 @@ done
+ if test x"$with_gnu_ld" = x"yes"; then
+
+ ldver=`$LD --version 2>/dev/null | head -1 | \
+- sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
++ sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
+
+ glibcxx_gnu_ld_version=`echo $ldver | \
+ $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
+@@ -77326,7 +77326,7 @@ done
+ if test x"$with_gnu_ld" = x"yes"; then
+
+ ldver=`$LD --version 2>/dev/null | head -1 | \
+- sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
++ sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
+
+ glibcxx_gnu_ld_version=`echo $ldver | \
+ $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
+@@ -79486,7 +79486,7 @@ done
+ if test x"$with_gnu_ld" = x"yes"; then
+
+ ldver=`$LD --version 2>/dev/null | head -1 | \
+- sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
++ sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
+
+ glibcxx_gnu_ld_version=`echo $ldver | \
+ $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
+@@ -80305,7 +80305,7 @@ done
+ if test x"$with_gnu_ld" = x"yes"; then
+
+ ldver=`$LD --version 2>/dev/null | head -1 | \
+- sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
++ sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
+
+ glibcxx_gnu_ld_version=`echo $ldver | \
+ $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
+@@ -81680,7 +81680,7 @@ done
+ if test x"$with_gnu_ld" = x"yes"; then
+
+ ldver=`$LD --version 2>/dev/null | head -1 | \
+- sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
++ sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
+
+ glibcxx_gnu_ld_version=`echo $ldver | \
+ $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
+@@ -83447,7 +83447,7 @@ echo "${ECHO_T}$glibcxx_cv_WRITEV" >&6
+ if test x"$with_gnu_ld" = x"yes"; then
+
+ ldver=`$LD --version 2>/dev/null | head -1 | \
+- sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
++ sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
+
+ glibcxx_gnu_ld_version=`echo $ldver | \
+ $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
+@@ -84664,7 +84664,7 @@ _ACEOF
+ if test x"$with_gnu_ld" = x"yes"; then
+
+ ldver=`$LD --version 2>/dev/null | head -1 | \
+- sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
++ sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
+
+ glibcxx_gnu_ld_version=`echo $ldver | \
+ $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
+@@ -85665,7 +85665,7 @@ done
+ if test x"$with_gnu_ld" = x"yes"; then
+
+ ldver=`$LD --version 2>/dev/null | head -1 | \
+- sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
++ sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'`
+
+ glibcxx_gnu_ld_version=`echo $ldver | \
+ $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`