aboutsummaryrefslogtreecommitdiff
path: root/gcc/defaults.h
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2015-09-15 16:25:59 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2015-09-15 16:25:59 +0000
commitc55721c0dfee6d4de107cab63bfe0d1ebf5bdfde (patch)
treeced325409d98c7555903e955d8f8e287f8320509 /gcc/defaults.h
parent78dc36f80a034a74d7ebd82cefa3dffa3b1c66c7 (diff)
downloadgcc-c55721c0dfee6d4de107cab63bfe0d1ebf5bdfde.zip
gcc-c55721c0dfee6d4de107cab63bfe0d1ebf5bdfde.tar.gz
gcc-c55721c0dfee6d4de107cab63bfe0d1ebf5bdfde.tar.bz2
defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
* defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions. Bump to 4KB for SJLJ exceptions. (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions. * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust. * doc/tm.texi: Regenerate. From-SVN: r227799
Diffstat (limited to 'gcc/defaults.h')
-rw-r--r--gcc/defaults.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/gcc/defaults.h b/gcc/defaults.h
index d4d3a56..9ca9df2 100644
--- a/gcc/defaults.h
+++ b/gcc/defaults.h
@@ -1406,9 +1406,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#define STACK_OLD_CHECK_PROTECT STACK_CHECK_PROTECT
#else
#define STACK_OLD_CHECK_PROTECT \
- (targetm_common.except_unwind_info (&global_options) == UI_SJLJ \
+ (!global_options.x_flag_exceptions \
? 75 * UNITS_PER_WORD \
- : 8 * 1024)
+ : targetm_common.except_unwind_info (&global_options) == UI_SJLJ \
+ ? 4 * 1024 \
+ : 8 * 1024)
#endif
/* Minimum amount of stack required to recover from an anticipated stack
@@ -1416,9 +1418,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
of stack required to propagate an exception. */
#ifndef STACK_CHECK_PROTECT
#define STACK_CHECK_PROTECT \
- (targetm_common.except_unwind_info (&global_options) == UI_SJLJ \
- ? 75 * UNITS_PER_WORD \
- : 12 * 1024)
+ (!global_options.x_flag_exceptions \
+ ? 4 * 1024 \
+ : targetm_common.except_unwind_info (&global_options) == UI_SJLJ \
+ ? 8 * 1024 \
+ : 12 * 1024)
#endif
/* Make the maximum frame size be the largest we can and still only need