mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-10 21:03:04 +00:00
* 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.
This commit is contained in:
@@ -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 <alloca.h> /* INFRINGES ON USER NAME SPACE */
|
||||
# define YYSTACK_ALLOC alloca
|
||||
# define YYSIZE_T YYSTD (size_t)
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
|
||||
Reference in New Issue
Block a user