summaryrefslogtreecommitdiff
path: root/libgcc/configure.ac
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-29 00:54:08 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2010-09-29 00:54:08 +0000
commit78ca2689633485941c1425609e9d4987ff61d2b8 (patch)
tree0100532fd2ca4f81e957b297ee9077000dc452a4 /libgcc/configure.ac
parent7d4e613d53bd5bdda4d5ab2d28b7660e22053087 (diff)
downloadgcc-78ca2689633485941c1425609e9d4987ff61d2b8.tar.gz
* configure.ac: Adjust CFI test to test assembler directly rather
than checking gcc preprocessor macro. * configure: Rebuild. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164713 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgcc/configure.ac')
-rw-r--r--libgcc/configure.ac11
1 files changed, 8 insertions, 3 deletions
diff --git a/libgcc/configure.ac b/libgcc/configure.ac
index 6bb4844b882..caade3317b3 100644
--- a/libgcc/configure.ac
+++ b/libgcc/configure.ac
@@ -137,9 +137,14 @@ AC_SUBST(fixed_point)
# Check for assembler CFI support.
AC_CACHE_CHECK([whether assembler supports CFI directives], [libgcc_cv_cfi],
- [AC_COMPILE_IFELSE([int i = __GCC_HAVE_DWARF2_CFI_ASM;],
- [libgcc_cv_cfi=yes],
- [libgcc_cv_cfi=no])])
+ [AC_COMPILE_IFELSE(
+[asm("\n\
+ .text\n\
+ .cfi_startproc\n\
+ .cfi_personality 0, symbol\n\
+ .cfi_endproc");],
+ [libgcc_cv_cfi=yes],
+ [libgcc_cv_cfi=no])])
# Check 32bit or 64bit for x86.
case ${host} in