mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 00:33:03 +00:00
warnings: pacify ICC in lalr1.cc
See 139d065594.
* data/skeletons/yacc.c: If I might be a char, write a[+I] instead of
a[I], so that ICC does not complain.
This commit is contained in:
@@ -640,7 +640,7 @@ m4_if(b4_prefix, [yy], [],
|
|||||||
if (state == empty_state)
|
if (state == empty_state)
|
||||||
return empty_symbol;
|
return empty_symbol;
|
||||||
else
|
else
|
||||||
return yystos_[state];
|
return yystos_[+state];
|
||||||
}
|
}
|
||||||
|
|
||||||
]b4_parser_class[::stack_symbol_type::stack_symbol_type ()
|
]b4_parser_class[::stack_symbol_type::stack_symbol_type ()
|
||||||
@@ -866,7 +866,7 @@ b4_dollar_popdef])[]dnl
|
|||||||
`-----------*/
|
`-----------*/
|
||||||
yybackup:
|
yybackup:
|
||||||
// Try to take a decision without lookahead.
|
// Try to take a decision without lookahead.
|
||||||
yyn = yypact_[yystack_[0].state];
|
yyn = yypact_[+yystack_[0].state];
|
||||||
if (yy_pact_value_is_default_ (yyn))
|
if (yy_pact_value_is_default_ (yyn))
|
||||||
goto yydefault;
|
goto yydefault;
|
||||||
|
|
||||||
@@ -930,7 +930,7 @@ b4_dollar_popdef])[]dnl
|
|||||||
| yydefault -- do the default action for the current state. |
|
| yydefault -- do the default action for the current state. |
|
||||||
`-----------------------------------------------------------*/
|
`-----------------------------------------------------------*/
|
||||||
yydefault:
|
yydefault:
|
||||||
yyn = yydefact_[yystack_[0].state];
|
yyn = yydefact_[+yystack_[0].state];
|
||||||
if (yyn == 0)
|
if (yyn == 0)
|
||||||
goto yyerrlab;
|
goto yyerrlab;
|
||||||
goto yyreduce;
|
goto yyreduce;
|
||||||
@@ -1057,7 +1057,7 @@ b4_dollar_popdef])[]dnl
|
|||||||
stack_symbol_type error_token;
|
stack_symbol_type error_token;
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
yyn = yypact_[yystack_[0].state];
|
yyn = yypact_[+yystack_[0].state];
|
||||||
if (!yy_pact_value_is_default_ (yyn))
|
if (!yy_pact_value_is_default_ (yyn))
|
||||||
{
|
{
|
||||||
yyn += yy_error_token_;
|
yyn += yy_error_token_;
|
||||||
@@ -1166,13 +1166,13 @@ b4_dollar_popdef])[]dnl
|
|||||||
state_type top_state = (yylac_stack_.empty ()
|
state_type top_state = (yylac_stack_.empty ()
|
||||||
? yystack_[lac_top].state
|
? yystack_[lac_top].state
|
||||||
: yylac_stack_.back ());
|
: yylac_stack_.back ());
|
||||||
int yyrule = yypact_[top_state];
|
int yyrule = yypact_[+top_state];
|
||||||
if (yy_pact_value_is_default_ (yyrule)
|
if (yy_pact_value_is_default_ (yyrule)
|
||||||
|| (yyrule += yytoken) < 0 || yylast_ < yyrule
|
|| (yyrule += yytoken) < 0 || yylast_ < yyrule
|
||||||
|| yycheck_[yyrule] != yytoken)
|
|| yycheck_[yyrule] != yytoken)
|
||||||
{
|
{
|
||||||
// Use the default action.
|
// Use the default action.
|
||||||
yyrule = yydefact_[top_state];
|
yyrule = yydefact_[+top_state];
|
||||||
if (yyrule == 0)
|
if (yyrule == 0)
|
||||||
{
|
{
|
||||||
YYCDEBUG << " Err\n";
|
YYCDEBUG << " Err\n";
|
||||||
@@ -1345,7 +1345,7 @@ b4_error_verbose_if([state_type yystate, const symbol_type& yyla],
|
|||||||
yy_lac_check_ (yytoken);
|
yy_lac_check_ (yytoken);
|
||||||
#endif]])[
|
#endif]])[
|
||||||
|
|
||||||
int yyn = yypact_[yystate];
|
int yyn = yypact_[+yystate];
|
||||||
if (!yy_pact_value_is_default_ (yyn))
|
if (!yy_pact_value_is_default_ (yyn))
|
||||||
{]b4_lac_if([[
|
{]b4_lac_if([[
|
||||||
for (int yyx = 0; yyx < yyntokens_; ++yyx)
|
for (int yyx = 0; yyx < yyntokens_; ++yyx)
|
||||||
|
|||||||
Reference in New Issue
Block a user