projects
/
platform
/
upstream
/
bison.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da436e4
)
(Exploding the Stack Size with Alloca): Set
author
Paul Eggert
<eggert@cs.ucla.edu>
Sun, 26 Dec 2004 06:12:18 +0000
(06:12 +0000)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Sun, 26 Dec 2004 06:12:18 +0000
(06:12 +0000)
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
patch
|
blob
|
history
diff --git
a/tests/torture.at
b/tests/torture.at
index
31432cc
..
046179e
100644
(file)
--- 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])