From 90deca2e15868dfb5ef0589a4154e1e642a8eed0 Mon Sep 17 00:00:00 2001 From: nickc Date: Wed, 20 Aug 2008 10:23:08 +0000 Subject: [PATCH] * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler support of this feature. Do not assume that a sufficiently new assembler will support the feature regardless of the target type. (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139266 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 8 ++++++++ gcc/configure | 14 ++------------ gcc/configure.ac | 4 ++-- 3 files changed, 12 insertions(+), 14 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6f207e576a3..de65ecf32e9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2008-08-20 Nick Clifton + + * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Always test for assembler + support of this feature. Do not assume that a sufficiently new + assembler will support the feature regardless of the target type. + (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise. + * configure: Regenerate. + 2008-08-20 Richard Guenther * tree-vrp.c (found_in_subgraph): Remove. diff --git a/gcc/configure b/gcc/configure index f136d57431a..ba2b6d05128 100755 --- a/gcc/configure +++ b/gcc/configure @@ -20839,12 +20839,7 @@ if test "${gcc_cv_as_cfi_directive+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else gcc_cv_as_cfi_directive=no - if test $in_tree_gas = yes; then - if test $in_tree_gas_is_elf = yes \ - && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0` - then gcc_cv_as_cfi_directive=yes -fi - elif test x$gcc_cv_as != x; then + if test x$gcc_cv_as != x; then echo ' .text .cfi_startproc .cfi_offset 0, 0 @@ -20882,12 +20877,7 @@ if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else gcc_cv_as_cfi_personality_directive=no - if test $in_tree_gas = yes; then - if test $in_tree_gas_is_elf = yes \ - && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0` - then gcc_cv_as_cfi_personality_directive=yes -fi - elif test x$gcc_cv_as != x; then + if test x$gcc_cv_as != x; then echo ' .text .cfi_startproc, .cfi_personality 0, symbol diff --git a/gcc/configure.ac b/gcc/configure.ac index a0e3f56767b..97cf160f72d 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -2182,7 +2182,7 @@ changequote([,])dnl # Check if we have assembler support for unwind directives. gcc_GAS_CHECK_FEATURE([cfi directives], gcc_cv_as_cfi_directive, - [elf,2,17,0],, + ,, [ .text .cfi_startproc .cfi_offset 0, 0 @@ -2195,7 +2195,7 @@ AC_DEFINE_UNQUOTED(HAVE_GAS_CFI_DIRECTIVE, [Define 0/1 if your assembler supports CFI directives.]) gcc_GAS_CHECK_FEATURE([cfi personality directive], - gcc_cv_as_cfi_personality_directive, [elf,2,17,0],, + gcc_cv_as_cfi_personality_directive, ,, [ .text .cfi_startproc, .cfi_personality 0, symbol -- 2.11.0