From 1c5fe69d4648966732ede2a270958173d57db0ef Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 15 Dec 2002 09:21:13 +0000 Subject: [PATCH] Undo most of the 2002-11-12 yychar -> yytoken patch, as it broke GCC 3.2.1. --- ChangeLog | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1a192887..c3698f8a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,19 @@ +2002-12-15 Paul Eggert + + Undo most of the 2002-11-12 yychar -> yytoken patch, as it broke + GCC 3.2.1 (which depends on yychar == YYEMPTY when there is no + lookahead symbol, and which sets yychar in parser actions) and it + disagreed with the Bison documentation. This should fix the bug + reported by Andrew Walrond in + . + + * data/yacc.c (YYTRANSLATE): Don't check for negative argument, + as the caller now does that. + (yyclearin, YYBACKUP, yyparse): Use yychar, not yytoken. + (YYEMPTY): Parenthesize right hand side, since others use it. + (yyparse): Don't assume that our generated code is the only code + that sets yychar. + 2002-12-13 Paul Eggert Version 1.75d. @@ -6,7 +22,7 @@ * src/Makefile.am (bin_SCRIPTS): New macro, for yacc. (MOSTLYCLEANFILES): Add yacc. (yacc): New rule. - * docbison.texinfo (Invocation, Bison Options): Mention yacc + * doc/bison.texinfo (Invocation, Bison Options): Mention yacc as an alias for bison y. * po/LINGUAS: Add da. -- 2.50.0