2008-12-04 16:15:40 +00:00
|
|
|
Index: gcc/configure.in
|
|
|
|
===================================================================
|
2009-11-20 12:08:01 +00:00
|
|
|
--- gcc/configure.in.orig 2009-11-20 13:04:56.000000000 +0100
|
|
|
|
+++ gcc/configure.in 2009-11-20 13:05:00.000000000 +0100
|
|
|
|
@@ -1686,7 +1686,7 @@ elif test x$gcc_cv_as != x; then
|
2008-12-04 16:15:40 +00:00
|
|
|
# GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
|
|
|
|
# This is irritatingly difficult to feature test for. Look for
|
|
|
|
# the date string after the version number.
|
|
|
|
- ld_ver=`$gcc_cv_ld --version 2>/dev/null | head -1`
|
|
|
|
+ ld_ver=`$gcc_cv_ld --version 2>/dev/null | head -n 1`
|
|
|
|
if echo "$ld_ver" | grep GNU > /dev/null; then
|
|
|
|
changequote(,)dnl
|
|
|
|
ld_vers=`echo $ld_ver | sed -n 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\(\|\.[0-9][0-9]*\(\|\.[0-9][0-9]*\)\)\)\([ ].*\|\)$,\1,p'`
|
2009-11-20 12:08:01 +00:00
|
|
|
@@ -1751,7 +1751,7 @@ EOF
|
2008-12-04 16:15:40 +00:00
|
|
|
# ??? There exists an elf-specific test that will crash
|
|
|
|
# the assembler. Perhaps it's better to figure out whether
|
|
|
|
# arbitrary sections are supported and try the test.
|
|
|
|
- as_ver=`$gcc_cv_as --version 2>/dev/null | head -1`
|
|
|
|
+ as_ver=`$gcc_cv_as --version 2>/dev/null | head -n 1`
|
|
|
|
if echo "$as_ver" | grep GNU > /dev/null; then
|
|
|
|
changequote(,)dnl
|
|
|
|
as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
|
2009-11-20 12:08:01 +00:00
|
|
|
@@ -1779,7 +1779,7 @@ if test x$gcc_cv_gas_major_version != x
|
2008-12-04 16:15:40 +00:00
|
|
|
fi
|
|
|
|
elif test x$gcc_cv_as != x; then
|
|
|
|
# Check if this is GAS.
|
|
|
|
- as_ver=`$gcc_cv_as --version < /dev/null 2> /dev/null | head -1`
|
|
|
|
+ as_ver=`$gcc_cv_as --version < /dev/null 2> /dev/null | head -n 1`
|
|
|
|
rm -f a.out 2> /dev/null
|
|
|
|
if echo "$as_ver" | grep GNU > /dev/null; then
|
|
|
|
# Versions up to and including 2.11.0 may mis-optimize
|
2009-11-20 12:08:01 +00:00
|
|
|
@@ -1832,7 +1832,7 @@ EOF
|
2008-12-04 16:15:40 +00:00
|
|
|
# and we got the correct data, then succeed.
|
|
|
|
if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
|
|
|
|
&& $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
|
|
|
|
- | tail -3 > conftest.got \
|
|
|
|
+ | tail -n 3 > conftest.got \
|
|
|
|
&& { cmp conftest.lit conftest.got > /dev/null 2>&1 \
|
|
|
|
|| cmp conftest.big conftest.got > /dev/null 2>&1; }
|
|
|
|
then
|
|
|
|
Index: gcc/configure
|
|
|
|
===================================================================
|
2009-11-20 12:08:01 +00:00
|
|
|
--- gcc/configure.orig 2009-11-20 13:04:56.000000000 +0100
|
|
|
|
+++ gcc/configure 2009-11-20 13:05:00.000000000 +0100
|
|
|
|
@@ -7319,7 +7319,7 @@ elif test x$gcc_cv_as != x; then
|
2008-12-04 16:15:40 +00:00
|
|
|
# GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
|
|
|
|
# This is irritatingly difficult to feature test for. Look for
|
|
|
|
# the date string after the version number.
|
|
|
|
- ld_ver=`$gcc_cv_ld --version 2>/dev/null | head -1`
|
|
|
|
+ ld_ver=`$gcc_cv_ld --version 2>/dev/null | head -n 1`
|
|
|
|
if echo "$ld_ver" | grep GNU > /dev/null; then
|
|
|
|
ld_vers=`echo $ld_ver | sed -n 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\(\|\.[0-9][0-9]*\(\|\.[0-9][0-9]*\)\)\)\([ ].*\|\)$,\1,p'`
|
|
|
|
ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
|
2009-11-20 12:08:01 +00:00
|
|
|
@@ -7385,7 +7385,7 @@ EOF
|
2008-12-04 16:15:40 +00:00
|
|
|
# ??? There exists an elf-specific test that will crash
|
|
|
|
# the assembler. Perhaps it's better to figure out whether
|
|
|
|
# arbitrary sections are supported and try the test.
|
|
|
|
- as_ver=`$gcc_cv_as --version 2>/dev/null | head -1`
|
|
|
|
+ as_ver=`$gcc_cv_as --version 2>/dev/null | head -n 1`
|
|
|
|
if echo "$as_ver" | grep GNU > /dev/null; then
|
|
|
|
as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
|
|
|
|
as_major=`echo $as_ver | sed 's/\..*//'`
|
2009-11-20 12:08:01 +00:00
|
|
|
@@ -7414,7 +7414,7 @@ if test x$gcc_cv_gas_major_version != x
|
2008-12-04 16:15:40 +00:00
|
|
|
fi
|
|
|
|
elif test x$gcc_cv_as != x; then
|
|
|
|
# Check if this is GAS.
|
|
|
|
- as_ver=`$gcc_cv_as --version < /dev/null 2> /dev/null | head -1`
|
|
|
|
+ as_ver=`$gcc_cv_as --version < /dev/null 2> /dev/null | head -n 1`
|
|
|
|
rm -f a.out 2> /dev/null
|
|
|
|
if echo "$as_ver" | grep GNU > /dev/null; then
|
|
|
|
# Versions up to and including 2.11.0 may mis-optimize
|
2009-11-20 12:08:01 +00:00
|
|
|
@@ -7467,7 +7467,7 @@ EOF
|
2008-12-04 16:15:40 +00:00
|
|
|
# and we got the correct data, then succeed.
|
|
|
|
if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
|
|
|
|
&& $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
|
|
|
|
- | tail -3 > conftest.got \
|
|
|
|
+ | tail -n 3 > conftest.got \
|
|
|
|
&& { cmp conftest.lit conftest.got > /dev/null 2>&1 \
|
|
|
|
|| cmp conftest.big conftest.got > /dev/null 2>&1; }
|
|
|
|
then
|