Commit dbc02e7f by Andrew Stubbs Committed by Joern Rennecke

configure.ac (.eh_frame data check): Use diff -b.

2006-07-04  Andrew Stubbs <andrew.stubbs@st.com>
	    J"orn Rennecke <joern.rennecke@st.com>

	* configure.ac (.eh_frame data check): Use diff -b.

Co-Authored-By: J"orn Rennecke <joern.rennecke@st.com>

From-SVN: r115177
parent 12197210
2006-07-04 Andrew Stubbs <andrew.stubbs@st.com>
J"orn Rennecke <joern.rennecke@st.com>
* configure.ac (.eh_frame data check): Use diff -b.
2006-07-04 Eric Botcazou <ebotcazou@libertysurf.fr> 2006-07-04 Eric Botcazou <ebotcazou@libertysurf.fr>
PR bootstrap/18058 PR bootstrap/18058
......
...@@ -13959,11 +13959,14 @@ cat > conftest.big <<EOF ...@@ -13959,11 +13959,14 @@ cat > conftest.big <<EOF
EOF EOF
# If the assembler didn't choke, and we can objdump, # If the assembler didn't choke, and we can objdump,
# and we got the correct data, then succeed. # and we got the correct data, then succeed.
# The text in the here-document typically retains its unix-style line
# endings, while the output of objdump will use host line endings.
# Therefore, use diff -b for the comparisons.
if test x$gcc_cv_objdump != x \ if test x$gcc_cv_objdump != x \
&& $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \ && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
| tail -3 > conftest.got \ | tail -3 > conftest.got \
&& { cmp conftest.lit conftest.got > /dev/null 2>&1 \ && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
|| cmp conftest.big conftest.got > /dev/null 2>&1; } || diff -b conftest.big conftest.got > /dev/null 2>&1; }
then then
gcc_cv_as_eh_frame=yes gcc_cv_as_eh_frame=yes
elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null' elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
......
...@@ -2209,11 +2209,14 @@ cat > conftest.big <<EOF ...@@ -2209,11 +2209,14 @@ cat > conftest.big <<EOF
EOF EOF
# If the assembler didn't choke, and we can objdump, # If the assembler didn't choke, and we can objdump,
# and we got the correct data, then succeed. # and we got the correct data, then succeed.
# The text in the here-document typically retains its unix-style line
# endings, while the output of objdump will use host line endings.
# Therefore, use diff -b for the comparisons.
if test x$gcc_cv_objdump != x \ if test x$gcc_cv_objdump != x \
&& $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \ && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
| tail -3 > conftest.got \ | tail -3 > conftest.got \
&& { cmp conftest.lit conftest.got > /dev/null 2>&1 \ && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
|| cmp conftest.big conftest.got > /dev/null 2>&1; } || diff -b conftest.big conftest.got > /dev/null 2>&1; }
then then
gcc_cv_as_eh_frame=yes gcc_cv_as_eh_frame=yes
elif AC_TRY_COMMAND($gcc_cv_as -o conftest.o --traditional-format /dev/null); then elif AC_TRY_COMMAND($gcc_cv_as -o conftest.o --traditional-format /dev/null); then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment