aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
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 /gcc/config
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 'gcc/config')
-rw-r--r--gcc/config/i386/i386.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 7d4126b..1d1c300 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -8415,6 +8415,14 @@ ix86_supports_split_stack (bool report ATTRIBUTE_UNUSED)
if (report)
error ("%<-fsplit-stack%> currently only supported on GNU/Linux");
ret = false;
+#else
+ if (!dwarf2out_do_cfi_asm ())
+ {
+ if (report)
+ error ("%<-fsplit-stack%> requires "
+ "assembler support for CFI directives");
+ ret = false;
+ }
#endif
return ret;