[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bison/data/lalr1.cc patch for the ! YYDEBUG case
From: |
Paul Eggert |
Subject: |
bison/data/lalr1.cc patch for the ! YYDEBUG case |
Date: |
Tue, 27 Apr 2004 22:51:14 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
I installed this trivial patch, uncovered by running "make check" on
an experimental version of Bison (using GCC 3.4.0).
2004-04-27 Paul Eggert <address@hidden>
* data/lalr1.cc (Parser::stos_) [! YYDEBUG]: Define even in this
case, as stos_ is now used by destructors due to the 2004-02-09
change.
Index: data/lalr1.cc
===================================================================
RCS file: /cvsroot/bison/bison/data/lalr1.cc,v
retrieving revision 1.44
diff -p -u -4 -r1.44 lalr1.cc
--- data/lalr1.cc 31 Mar 2004 00:37:20 -0000 1.44
+++ data/lalr1.cc 28 Apr 2004 05:48:12 -0000
@@ -782,17 +782,17 @@ yy::]b4_parser_class_name[::check_[] =
{
]b4_check[
};
-#if YYDEBUG
/* STOS_[STATE-NUM] -- The (internal number of the) accessing
symbol of state STATE-NUM. */
const ]b4_int_type_for([b4_stos])[
yy::]b4_parser_class_name[::stos_[] =
{
]b4_stos[
};
+#if YYDEBUG
/* TOKEN_NUMBER_[YYLEX-NUM] -- Internal token number corresponding
to YYLEX-NUM. */
const ]b4_int_type_for([b4_toknum])[
yy::]b4_parser_class_name[::token_number_[] =
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bison/data/lalr1.cc patch for the ! YYDEBUG case,
Paul Eggert <=