2004-12-21 Stepan Kasal * data/yacc.c: Don't be too smart, don't define `YYSTACK_ALLOC' as `malloc' unless YYSTACK_USE_ALLOCA was defined to 0. Index: data/yacc.c =================================================================== RCS file: /cvsroot/bison/bison/data/yacc.c,v retrieving revision 1.78 diff -u -r1.78 yacc.c --- data/yacc.c 20 Dec 2004 03:43:35 -0000 1.78 +++ data/yacc.c 21 Dec 2004 08:11:33 -0000 @@ -229,12 +229,10 @@ # define YYSTACK_ALLOC alloca # endif # else -# if defined (alloca) || defined (_ALLOCA_H) -# define YYSTACK_ALLOC alloca +# if !defined (alloca) && !defined (_ALLOCA_H) && defined(__GNUC__) +# define YYSTACK_ALLOC __builtin_alloca # else -# ifdef __GNUC__ -# define YYSTACK_ALLOC __builtin_alloca -# endif +# define YYSTACK_ALLOC alloca # endif # endif