* 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

@@ -1,3 +1,12 @@
2004-05-27 Paul Eggert <eggert@cs.ucla.edu>
* src/parse-gram.y (lloc_default): Rewrite to avoid compiler bug
in SGI MIPSpro 7.4.1m. Problem reported by Albert Chin-A-Young in
<http://mail.gnu.org/archive/html/bug-bison/2004-05/msg00037.html>.
* configure.ac (AC_PREREQ): Bump to 2.58, since 2.57 doesn't work
(it fails with a Autoconf-without-aclocal-m4 diagnostic).
2004-05-26 Paul Eggert <eggert@cs.ucla.edu>
* configure.ac (AM_GNU_GETTEXT_VERSION): Lower it from 0.14.1 to

View File

@@ -17,8 +17,9 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
# 02111-1307 USA
# We need a recent Autoconf to run a recent Autotest.
AC_PREREQ(2.57)
# We need a recent Autoconf to avoid the message
# "autom4te: unknown language: Autoconf-without-aclocal-m4".
AC_PREREQ(2.58)
AC_INIT([GNU Bison], [1.875e], [bug-bison@gnu.org])
AC_CONFIG_AUX_DIR([config])

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,