* src/parse-gram.y (lloc_default): Rewrite to avoid compiler bug.

* configure.ac (AC_PREREQ): Bump to 2.58.
This commit is contained in:
Paul Eggert
2004-05-27 07:38:17 +00:00
parent caa52c10c5
commit 62cb8a9920
3 changed files with 17 additions and 3 deletions

View File

@@ -443,7 +443,11 @@ lloc_default (YYLTYPE const *rhs, int n)
{
int i;
YYLTYPE loc;
loc.start = loc.end = rhs[n].end;
/* SGI MIPSpro 7.4.1m miscompiles "loc.start = loc.end = rhs[n].end;".
The bug is fixed in 7.4.2m, but play it safe for now. */
loc.start = rhs[n].end;
loc.end = rhs[n].end;
/* Ignore empty nonterminals the start of the the right-hand side.
Do not bother to ignore them at the end of the right-hand side,