mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 17:23:02 +00:00
* src/conflicts.c (print_reductions): Improve variable locality.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2001-12-05 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
|
* src/conflicts.c (print_reductions): Improve variable locality.
|
||||||
|
|
||||||
|
|
||||||
2001-12-05 Akim Demaille <akim@epita.fr>
|
2001-12-05 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
* src/conflicts.c (print_reductions): Pessimize, but clarify.
|
* src/conflicts.c (print_reductions): Pessimize, but clarify.
|
||||||
|
|||||||
@@ -502,7 +502,6 @@ print_reductions (FILE *out, int state)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
int j;
|
int j;
|
||||||
int rule;
|
|
||||||
int symbol;
|
int symbol;
|
||||||
unsigned mask;
|
unsigned mask;
|
||||||
int m;
|
int m;
|
||||||
@@ -541,8 +540,7 @@ print_reductions (FILE *out, int state)
|
|||||||
{
|
{
|
||||||
if (!errp->errs[i])
|
if (!errp->errs[i])
|
||||||
continue;
|
continue;
|
||||||
symbol = errp->errs[i];
|
SETBIT (shiftset, errp->errs[i]);
|
||||||
SETBIT (shiftset, symbol);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -650,12 +648,11 @@ print_reductions (FILE *out, int state)
|
|||||||
if (count == 0)
|
if (count == 0)
|
||||||
{
|
{
|
||||||
if (j != default_LA)
|
if (j != default_LA)
|
||||||
{
|
fprintf (out,
|
||||||
rule = LAruleno[j];
|
_(" %-4s\treduce using rule %d (%s)\n"),
|
||||||
fprintf (out,
|
tags[i],
|
||||||
_(" %-4s\treduce using rule %d (%s)\n"),
|
LAruleno[j],
|
||||||
tags[i], rule, tags[rule_table[rule].lhs]);
|
tags[rule_table[LAruleno[j]].lhs]);
|
||||||
}
|
|
||||||
else
|
else
|
||||||
defaulted = 1;
|
defaulted = 1;
|
||||||
|
|
||||||
@@ -664,17 +661,17 @@ print_reductions (FILE *out, int state)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (defaulted)
|
if (defaulted)
|
||||||
{
|
fprintf (out,
|
||||||
rule = LAruleno[default_LA];
|
_(" %-4s\treduce using rule %d (%s)\n"),
|
||||||
fprintf (out,
|
tags[i],
|
||||||
_(" %-4s\treduce using rule %d (%s)\n"),
|
LAruleno[default_LA],
|
||||||
tags[i], rule, tags[rule_table[rule].lhs]);
|
tags[rule_table[LAruleno[default_LA]].lhs]);
|
||||||
defaulted = 0;
|
defaulted = 0;
|
||||||
}
|
|
||||||
rule = LAruleno[j];
|
|
||||||
fprintf (out,
|
fprintf (out,
|
||||||
_(" %-4s\t[reduce using rule %d (%s)]\n"),
|
_(" %-4s\t[reduce using rule %d (%s)]\n"),
|
||||||
tags[i], rule, tags[rule_table[rule].lhs]);
|
tags[i],
|
||||||
|
LAruleno[j],
|
||||||
|
tags[rule_table[LAruleno[j]].lhs]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user