[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bison torture test for alloca (patch)
From: |
Paul Eggert |
Subject: |
Bison torture test for alloca (patch) |
Date: |
Sat, 25 Dec 2004 22:15:25 -0800 |
Currently, the torture tests for alloca actually test malloc, due to
the recent changes to yacc.c. I installed this to fix the problem for
GCC (though not for non-GCC hosts that have alloca):
2004-12-25 Paul Eggert <address@hidden>
* tests/torture.at (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.
--- torture.at 21 Jun 2004 20:20:31 -0000 1.23
+++ torture.at 26 Dec 2004 06:12:18 -0000 1.24
@@ -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])
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Bison torture test for alloca (patch),
Paul Eggert <=