* src/bison.simple (yyparse): Don't take the address of an

item before the start of an array, as that doesn't conform to
the C Standard.
This commit is contained in:
Robert Anisko
2001-08-29 12:21:38 +00:00
parent db433e9db8
commit 38e616f0f5
2 changed files with 13 additions and 4 deletions

View File

@@ -1,3 +1,9 @@
2001-08-29 Paul Eggert <eggert@twinsun.com>
* src/bison.simple (yyparse): Don't take the address of an
item before the start of an array, as that doesn't conform to
the C Standard.
2001-08-29 Robert Anisko <anisko_r@epita.fr>
* doc/bison.texinfo (Location Tracking Calc): New node.

View File

@@ -343,21 +343,24 @@ yyparse (YYPARSE_PARAM_ARG)
so that they stay on the same level as the state stack.
The wasted elements are never initialized. */
yyssp = yyss - 1;
yyssp = yyss;
yyvsp = yyvs;
#if YYLSP_NEEDED
yylsp = yyls;
#endif
goto yysetstate;
/*------------------------------------------------------------.
| yynewstate -- Push a new state, which is found in yystate. |
`------------------------------------------------------------*/
yynewstate:
yynewstate:
/* In all cases, when you get here, the value and location stacks
have just been pushed. so pushing a state here evens the stacks.
*/
*++yyssp = yystate;
yyssp++;
yysetstate:
*yyssp = yystate;
if (yyssp >= yyss + yystacksize - 1)
{