mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
* data/glr.c (yyreportTree): Make room in yystates for the state
preceding the RHS. This fixes the segmentation fault reported by Derek M. Jones in <http://lists.gnu.org/archive/html/help-bison/2006-05/msg00035.html>. (yyreportTree, yypdumpstack): Subtract 1 from yyrule before printing to the user. Reported for yyreportTree by Derek M. Jones later in the same thread. * THANKS: Add Derek M. Jones. Update my email address. Fix typo in Steve Murphy's name.
This commit is contained in:
13
ChangeLog
13
ChangeLog
@@ -1,3 +1,16 @@
|
|||||||
|
2006-05-17 Joel E. Denny <jdenny@ces.clemson.edu>
|
||||||
|
|
||||||
|
* data/glr.c (yyreportTree): Make room in yystates for the state
|
||||||
|
preceding the RHS. This fixes the segmentation fault reported by Derek
|
||||||
|
M. Jones in
|
||||||
|
<http://lists.gnu.org/archive/html/help-bison/2006-05/msg00035.html>.
|
||||||
|
(yyreportTree, yypdumpstack): Subtract 1 from yyrule before printing
|
||||||
|
to the user. Reported for yyreportTree by Derek M. Jones later in the
|
||||||
|
same thread.
|
||||||
|
* THANKS: Add Derek M. Jones.
|
||||||
|
Update my email address.
|
||||||
|
Fix typo in Steve Murphy's name.
|
||||||
|
|
||||||
2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
|
2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
|
||||||
|
|
||||||
* data/glr.c (yyreportSyntaxError): Fix off-by-one error in
|
* data/glr.c (yyreportSyntaxError): Fix off-by-one error in
|
||||||
|
|||||||
5
THANKS
5
THANKS
@@ -21,6 +21,7 @@ Cris Bailiff c.bailiff+bison@awayweb.com
|
|||||||
Cris van Pelt cris@amf03054.office.wxs.nl
|
Cris van Pelt cris@amf03054.office.wxs.nl
|
||||||
Daniel Hagerty hag@gnu.org
|
Daniel Hagerty hag@gnu.org
|
||||||
David J. MacKenzie djm@gnu.org
|
David J. MacKenzie djm@gnu.org
|
||||||
|
Derek M. Jones derek@knosof.co.uk
|
||||||
Dick Streefland dick.streefland@altium.nl
|
Dick Streefland dick.streefland@altium.nl
|
||||||
Enrico Scholz enrico.scholz@informatik.tu-chemnitz.de
|
Enrico Scholz enrico.scholz@informatik.tu-chemnitz.de
|
||||||
Evgeny Stambulchik fnevgeny@plasma-gate.weizmann.ac.il
|
Evgeny Stambulchik fnevgeny@plasma-gate.weizmann.ac.il
|
||||||
@@ -34,7 +35,7 @@ Jan Nieuwenhuizen janneke@gnu.org
|
|||||||
Jesse Thilo jthilo@gnu.org
|
Jesse Thilo jthilo@gnu.org
|
||||||
Jim Kent jkent@arch.sel.sony.com
|
Jim Kent jkent@arch.sel.sony.com
|
||||||
Jim Meyering jim@meyering.net
|
Jim Meyering jim@meyering.net
|
||||||
Joel E. Denny jdenny@hubcap.clemson.edu
|
Joel E. Denny jdenny@ces.clemson.edu
|
||||||
Juan Manuel Guerrero ST001906@HRZ1.HRZ.TU-Darmstadt.De
|
Juan Manuel Guerrero ST001906@HRZ1.HRZ.TU-Darmstadt.De
|
||||||
Kees Zeelenberg kzlg@users.sourceforge.net
|
Kees Zeelenberg kzlg@users.sourceforge.net
|
||||||
Keith Browne kbrowne@legato.com
|
Keith Browne kbrowne@legato.com
|
||||||
@@ -67,7 +68,7 @@ Raja R Harinath harinath@cs.umn.edu
|
|||||||
Richard Stallman rms@gnu.org
|
Richard Stallman rms@gnu.org
|
||||||
Robert Anisko anisko_r@epita.fr
|
Robert Anisko anisko_r@epita.fr
|
||||||
Shura debil_urod@ngs.ru
|
Shura debil_urod@ngs.ru
|
||||||
Steve Murhpy murf@parsetree.com
|
Steve Murphy murf@parsetree.com
|
||||||
Tim Josling tej@melbpc.org.au
|
Tim Josling tej@melbpc.org.au
|
||||||
Tim Van Holder tim.van.holder@pandora.be
|
Tim Van Holder tim.van.holder@pandora.be
|
||||||
Tom Lane tgl@sss.pgh.pa.us
|
Tom Lane tgl@sss.pgh.pa.us
|
||||||
|
|||||||
@@ -1741,7 +1741,7 @@ yyreportTree (yySemanticOption* yyx, int yyindent)
|
|||||||
int yynrhs = yyrhsLength (yyx->yyrule);
|
int yynrhs = yyrhsLength (yyx->yyrule);
|
||||||
int yyi;
|
int yyi;
|
||||||
yyGLRState* yys;
|
yyGLRState* yys;
|
||||||
yyGLRState* yystates[YYMAXRHS];
|
yyGLRState* yystates[1 + YYMAXRHS];
|
||||||
yyGLRState yyleftmost_state;
|
yyGLRState yyleftmost_state;
|
||||||
|
|
||||||
for (yyi = yynrhs, yys = yyx->yystate; 0 < yyi; yyi -= 1, yys = yys->yypred)
|
for (yyi = yynrhs, yys = yyx->yystate; 0 < yyi; yyi -= 1, yys = yys->yypred)
|
||||||
@@ -1757,11 +1757,11 @@ yyreportTree (yySemanticOption* yyx, int yyindent)
|
|||||||
if (yyx->yystate->yyposn < yys->yyposn + 1)
|
if (yyx->yystate->yyposn < yys->yyposn + 1)
|
||||||
YYFPRINTF (stderr, "%*s%s -> <Rule %d, empty>\n",
|
YYFPRINTF (stderr, "%*s%s -> <Rule %d, empty>\n",
|
||||||
yyindent, "", yytokenName (yylhsNonterm (yyx->yyrule)),
|
yyindent, "", yytokenName (yylhsNonterm (yyx->yyrule)),
|
||||||
yyx->yyrule);
|
yyx->yyrule - 1);
|
||||||
else
|
else
|
||||||
YYFPRINTF (stderr, "%*s%s -> <Rule %d, tokens %lu .. %lu>\n",
|
YYFPRINTF (stderr, "%*s%s -> <Rule %d, tokens %lu .. %lu>\n",
|
||||||
yyindent, "", yytokenName (yylhsNonterm (yyx->yyrule)),
|
yyindent, "", yytokenName (yylhsNonterm (yyx->yyrule)),
|
||||||
yyx->yyrule, (unsigned long int) (yys->yyposn + 1),
|
yyx->yyrule - 1, (unsigned long int) (yys->yyposn + 1),
|
||||||
(unsigned long int) yyx->yystate->yyposn);
|
(unsigned long int) yyx->yystate->yyposn);
|
||||||
for (yyi = 1; yyi <= yynrhs; yyi += 1)
|
for (yyi = 1; yyi <= yynrhs; yyi += 1)
|
||||||
{
|
{
|
||||||
@@ -2578,7 +2578,7 @@ yypdumpstack (yyGLRStack* yystackp)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
fprintf (stderr, "Option. rule: %d, state: %ld, next: %ld",
|
fprintf (stderr, "Option. rule: %d, state: %ld, next: %ld",
|
||||||
yyp->yyoption.yyrule,
|
yyp->yyoption.yyrule - 1,
|
||||||
(long int) YYINDEX (yyp->yyoption.yystate),
|
(long int) YYINDEX (yyp->yyoption.yystate),
|
||||||
(long int) YYINDEX (yyp->yyoption.yynext));
|
(long int) YYINDEX (yyp->yyoption.yynext));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user