summaryrefslogtreecommitdiff
path: root/gcc/configure
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2010-03-03 13:51:26 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2010-03-03 13:51:26 +0000
commit8713644151ea92118e5d818b87c1eafc31eb14d9 (patch)
treef935059d4f4719a4a188bfdb5dd38f0ea3d57064 /gcc/configure
parent4b7210115bb4b35bf4af1d9c9e077a61baeb602f (diff)
downloadgcc-8713644151ea92118e5d818b87c1eafc31eb14d9.tar.gz
2010-03-03 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 157193 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@157194 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure')
-rwxr-xr-xgcc/configure18
1 files changed, 17 insertions, 1 deletions
diff --git a/gcc/configure b/gcc/configure
index 6d9d2adf5cf..543183fcec2 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -21390,7 +21390,23 @@ else
sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
gcc_cv_as_cfi_directive=no
else
- gcc_cv_as_cfi_directive=yes
+ case "$target" in
+ i?86-*-solaris2.1[0-9]*)
+ # On Solaris/x86, make sure that GCC and gas agree on using
+ # read-only .eh_frame sections for 64-bit.
+ if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
+ $gcc_cv_objdump -h conftest.o 2>/dev/null | \
+ sed -e /.eh_frame/!d -e N | \
+ grep READONLY > /dev/null; then
+ gcc_cv_as_cfi_directive=yes
+ else
+ gcc_cv_as_cfi_directive=no
+ fi
+ ;;
+ *)
+ gcc_cv_as_cfi_directive=yes
+ ;;
+ esac
fi
else
# no objdump, err on the side of caution