mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
More alloca cleanups.
* bootstrap (gnulib_modules): Remove alloca. Bison doesn't need it itself. * src/main.c (main) [C_ALLOCA]: Don't flush alloca'ed memory; we don't use alloca any more. * data/yacc.c [YYSTACK_USE_ALLOCA && !defined __GNUC__ && ! defined __BUILTIN_VA_ARG_INCR && ! defined _AIX && ! defined _MSC_VER && (defined alloca || defined _ALLOCA_H)]: Don't include <stdlib.h>; not needed in this case. * tests/torture.at (Exploding the Stack Size with Alloca): Adjust to match yacc.c, to test more hosts.
This commit is contained in:
@@ -444,7 +444,8 @@ AT_COMPILE([input])
|
||||
AT_SETUP([Exploding the Stack Size with Alloca])
|
||||
|
||||
AT_DATA_STACK_TORTURE([[
|
||||
#if defined __GNUC__ || defined alloca
|
||||
#if (defined __GNUC__ || defined __BUILTIN_VA_ARG_INCR \
|
||||
|| defined _AIX || defined _MSC_VER || defined alloca || defined _ALLOCA_H)
|
||||
# define YYSTACK_USE_ALLOCA 1
|
||||
#endif
|
||||
]])
|
||||
|
||||
Reference in New Issue
Block a user