diff options
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -1086,6 +1086,20 @@ decode_options (unsigned int argc, const char **argv, check option consistency. */ if (flag_lto && flag_whopr) error ("-flto and -fwhopr are mutually exclusive"); + + /* We initialize flag_split_stack to -1 so that targets can set a + default value if they choose based on other options. */ + if (flag_split_stack == -1) + flag_split_stack = 0; + else + { + if (!targetm.supports_split_stack (true)) + { + error ("%<-fsplit-stack%> is not supported by " + "this compiler configuration"); + flag_split_stack = 0; + } + } } #define LEFT_COLUMN 27 |