* 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
+2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
+
+ * 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.
+
2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
#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
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
@defmac STACK_CHECK_PROTECT
The number of bytes of stack needed to recover from a stack overflow, for
-languages where such a recovery is supported. The default value of 75 words
+languages where such a recovery is supported. The default value of 4KB/8KB
with the @code{setjmp}/@code{longjmp}-based exception handling mechanism and
-8192 bytes with other exception handling mechanisms should be adequate for
-most machines.
+8KB/12KB with other exception handling mechanisms should be adequate for most
+architectures and operating systems.
@end defmac
The following macros are relevant only if neither STACK_CHECK_BUILTIN
@defmac STACK_CHECK_PROTECT
The number of bytes of stack needed to recover from a stack overflow, for
-languages where such a recovery is supported. The default value of 75 words
+languages where such a recovery is supported. The default value of 4KB/8KB
with the @code{setjmp}/@code{longjmp}-based exception handling mechanism and
-8192 bytes with other exception handling mechanisms should be adequate for
-most machines.
+8KB/12KB with other exception handling mechanisms should be adequate for most
+architectures and operating systems.
@end defmac
The following macros are relevant only if neither STACK_CHECK_BUILTIN