From: Akim Demaille Date: Thu, 27 Dec 2001 18:30:40 +0000 (+0000) Subject: * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special X-Git-Tag: BISON-1_30i~5 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/ea04a14c5ce4a6446a8d3db97c2839c9fd1c445e?ds=inline * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and Sparc, as they were causing more porting problems than the (minor) performance improvement was worth. --- diff --git a/ChangeLog b/ChangeLog index 66f16ad4..f24b35b2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2001-12-27 Paul Eggert + + * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special + cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and + Sparc, as they were causing more porting problems than the + (minor) performance improvement was worth. + 2001-12-22 Akim Demaille * src/output.c (output_short_table, output_short_or_char_table): diff --git a/NEWS b/NEWS index cb5c0325..145620e4 100644 --- a/NEWS +++ b/NEWS @@ -7,6 +7,9 @@ Changes in version 1.30i: If YYSTACK_USE_ALLOCA is defined to 0, then the parsers will use malloc exclusively. Since 1.29, but was not NEWS'ed. + alloca is used only when compiled with GCC, to avoid portability + problems as on AIX. + * Bug fixes Changes in version 1.30h: diff --git a/src/bison.simple b/src/bison.simple index 72f18bec..e1da7ec1 100644 --- a/src/bison.simple +++ b/src/bison.simple @@ -54,19 +54,9 @@ # define YYSTACK_ALLOC alloca # define YYSIZE_T YYSTD (size_t) # else -# if defined (__GNUC__) || defined (_AIX) || defined (__hpux) +# ifdef __GNUC__ # define YYSTACK_ALLOC __builtin_alloca # endif -# ifndef __GNUC__ -# ifdef _AIX - # pragma alloca -# endif -# if defined (__sgi) || defined (__sparc__) || defined (__sparc) || defined (__sun) -# include /* INFRINGES ON USER NAME SPACE */ -# define YYSTACK_ALLOC alloca -# define YYSIZE_T YYSTD (size_t) -# endif -# endif # endif # endif # endif