aboutsummaryrefslogtreecommitdiff
path: root/libgcc/configure
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2010-09-28 00:07:12 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2010-09-28 00:07:12 +0000
commitb6110d6d1987f583b0f5abad9524e604a24c5b73 (patch)
treeabe9b70798228d019e6509efb68de44278c0e201 /libgcc/configure
parent9b809695ffe6091f8e491cad04c08e6c63f880af (diff)
downloadgcc-b6110d6d1987f583b0f5abad9524e604a24c5b73.zip
gcc-b6110d6d1987f583b0f5abad9524e604a24c5b73.tar.gz
gcc-b6110d6d1987f583b0f5abad9524e604a24c5b73.tar.bz2
i386.c (ix86_supports_split_stack): -fsplit-stack requires assembler support for CFI directives.
gcc/: * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack requires assembler support for CFI directives. libgcc/: * configure.ac: Test whether assembler supports CFI directives. * config.host: Only add t-stack and i386/t-stack-i386 to tmake_file if libgcc_cv_cfi is "yes". * configure: Rebuild. From-SVN: r164671
Diffstat (limited to 'libgcc/configure')
-rw-r--r--libgcc/configure20
1 files changed, 20 insertions, 0 deletions
diff --git a/libgcc/configure b/libgcc/configure
index 5c8e3a0..56195bb 100644
--- a/libgcc/configure
+++ b/libgcc/configure
@@ -3707,6 +3707,26 @@ $as_echo "$libgcc_cv_fixed_point" >&6; }
fixed_point=$libgcc_cv_fixed_point
+# Check for assembler CFI support.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports CFI directives" >&5
+$as_echo_n "checking whether assembler supports CFI directives... " >&6; }
+if test "${libgcc_cv_cfi+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+int i = __GCC_HAVE_DWARF2_CFI_ASM;
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ libgcc_cv_cfi=yes
+else
+ libgcc_cv_cfi=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi" >&5
+$as_echo "$libgcc_cv_cfi" >&6; }
+
# Check 32bit or 64bit for x86.
case ${host} in
i?86*-*-* | x86_64*-*-*)