[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
make token stacks to work with c++ compiler
From: |
Coe, Rich (MED) |
Subject: |
make token stacks to work with c++ compiler |
Date: |
Wed, 02 Apr 2003 16:51:16 -0600 |
The following patch reverts a change which was made sometime after
bison-1.28. Without this patch, when the bison output is compiled
with a c++ compiler, it prevents the token stack from growing beyond its
initial size.
This change is made against yacc.c (1.54), which is the latest version
available in the CVS repository.
Tested on gcc-2.95.3 and gcc-3.2, with all tests passing.
*** bison/data/yacc.c-1.54 Wed Apr 2 16:25:02 2003
--- bison/data/yacc.c Wed Apr 2 16:25:23 2003
***************
*** 247,254 ****
#if (! defined (yyoverflow) \
! && (! defined (__cplusplus) \
! || (]b4_location_if([YYLTYPE_IS_TRIVIAL && ])[YYSTYPE_IS_TRIVIAL)))
/* A type that is properly aligned for any stack member. */
union yyalloc
--- 247,253 ----
#if (! defined (yyoverflow) \
! && (]b4_location_if([YYLTYPE_IS_TRIVIAL && ])[YYSTYPE_IS_TRIVIAL))
/* A type that is properly aligned for any stack member. */
union yyalloc
--
Rich Coe address@hidden
General Electric Medical Systems
- make token stacks to work with c++ compiler,
Coe, Rich (MED) <=