From 577d7c33dfb074dfd79d69d2b38102443402b439 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 26 Dec 2004 06:12:18 +0000 Subject: [PATCH] (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. --- tests/torture.at | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/torture.at b/tests/torture.at index 31432cc8..046179e6 100644 --- a/tests/torture.at +++ b/tests/torture.at @@ -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]) -- 2.50.0