summaryrefslogtreecommitdiff
path: root/gcc/configure
diff options
context:
space:
mode:
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2006-07-04 13:50:40 +0000
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2006-07-04 13:50:40 +0000
commita9e7d751e7e513e610645ca0ae52db4e937a8393 (patch)
treed9f4e0d63eb924ec10e8fb1d2860a964c186e1fa /gcc/configure
parenta8a6baf6f27b00a35582d666fd2bcf375e4b590f (diff)
downloadgcc-a9e7d751e7e513e610645ca0ae52db4e937a8393.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115177 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure')
-rwxr-xr-xgcc/configure7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/configure b/gcc/configure
index b7564bcd6db..4ec18630eb7 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -13959,11 +13959,14 @@ cat > conftest.big <<EOF
EOF
# If the assembler didn't choke, and we can objdump,
# 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 \
&& $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
| tail -3 > conftest.got \
- && { cmp conftest.lit conftest.got > /dev/null 2>&1 \
- || cmp conftest.big conftest.got > /dev/null 2>&1; }
+ && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
+ || diff -b conftest.big conftest.got > /dev/null 2>&1; }
then
gcc_cv_as_eh_frame=yes
elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'