Skip to content

Commit

Permalink
* configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
Browse files Browse the repository at this point in the history
	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
  • Loading branch information
ro authored and richlowe committed May 14, 2011
1 parent 45e350e commit 610511a
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 2 deletions.
7 changes: 7 additions & 0 deletions gcc/ChangeLog
@@ -1,3 +1,10 @@
2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>

* 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.

2010-04-29 Release Manager

* GCC 4.4.4 released.
Expand Down
18 changes: 17 additions & 1 deletion gcc/configure
Expand Up @@ -21572,7 +21572,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
Expand Down
18 changes: 17 additions & 1 deletion gcc/configure.ac
Expand Up @@ -2246,7 +2246,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
Expand Down

0 comments on commit 610511a

Please sign in to comment.