summaryrefslogtreecommitdiff
path: root/gcc/configure.ac
diff options
context:
space:
mode:
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2010-03-01 18:09:19 +0000
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2010-03-01 18:09:19 +0000
commitce72f71213f2d4c75e3e82b6524e477d0e743ec5 (patch)
treee4e3dab3ea153f66b87aed538185c6ec2007d70a /gcc/configure.ac
parentc40a6f906600da14fa8a9d5846f4478da8ddebc4 (diff)
downloadgcc-ce72f71213f2d4c75e3e82b6524e477d0e743ec5.tar.gz
* configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
Disable cfi directives unless GCC and gas agree on using read-only .eh_frame sections for 64-bit. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157151 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure.ac')
-rw-r--r--gcc/configure.ac18
1 files changed, 17 insertions, 1 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac
index fe1ac55d863..ddfbc7a183d 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -2272,7 +2272,23 @@ gcc_GAS_CHECK_FEATURE([cfi directives], gcc_cv_as_cfi_directive,
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