Undo most of the 2002-11-12 yychar -> yytoken patch, as it broke GCC 3.2.1.

This commit is contained in:
Paul Eggert
2002-12-15 09:21:13 +00:00
parent a20713a4af
commit 1c5fe69d46

View File

@@ -1,3 +1,19 @@
2002-12-15 Paul Eggert <eggert@twinsun.com>
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
<http://mail.gnu.org/pipermail/bug-bison/2002-December/001949.html>.
* 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 <eggert@twinsun.com>
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.