mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
(Exploding the Stack Size with Alloca): Set
YYSTACK_USE_ALLOCA to 1 if __GNUC__ or alloca are defined; otherwise, we're not testing alloca. Unfortunately there's no simple way to consult HAVE_ALLOCA here.
This commit is contained in:
@@ -439,7 +439,11 @@ AT_COMPILE([input])
|
||||
|
||||
AT_SETUP([Exploding the Stack Size with Alloca])
|
||||
|
||||
AT_DATA_STACK_TORTURE
|
||||
AT_DATA_STACK_TORTURE([[
|
||||
#if defined __GNUC__ || defined alloca
|
||||
# define YYSTACK_USE_ALLOCA 1
|
||||
#endif
|
||||
]])
|
||||
|
||||
# Below the limit of 200.
|
||||
AT_PARSER_CHECK([./input 20], 0, [], [ignore])
|
||||
|
||||
Reference in New Issue
Block a user