From 78b76c5699c5b59c1274a650a7620b71d8fd916e Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Mon, 17 Jan 2000 11:42:02 +0000 Subject: Add the Bison 1.25 bug-for-bug "broken-undeftoken-init" compatiblity option taken from src/contrib/bison, as we will need this if one is buiding our older EGCS source base. --- devel/bison20/files/patch-reader.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 devel/bison20/files/patch-reader.c (limited to 'devel/bison20/files/patch-reader.c') diff --git a/devel/bison20/files/patch-reader.c b/devel/bison20/files/patch-reader.c new file mode 100644 index 000000000000..29e1146a7e1d --- /dev/null +++ b/devel/bison20/files/patch-reader.c @@ -0,0 +1,22 @@ +--- src/reader.c.orig Mon Jun 14 15:19:05 1999 ++++ src/reader.c Mon Jan 17 03:38:56 2000 +@@ -44,6 +44,7 @@ + int rline_allocated; + + extern char *program_name; ++extern int broken_undeftoken_init; + extern int definesflag; + extern int nolinesflag; + extern int noparserflag; +@@ -199,7 +200,10 @@ + /* it is always token number 2. */ + undeftoken = getsym("$undefined."); + undeftoken->class = STOKEN; +- undeftoken->user_token_number = 2; ++ /* XXX ``broken_undeftoken_init'' makes Bison 1.28 bug-compatable ++ with Bison 1.25. FreeBSD depends on this behavior when compiling ++ EGCS-1.1.2's cc1plus. */ ++ undeftoken->user_token_number = broken_undeftoken_init ? 0 : 2; + /* Read the declaration section. Copy %{ ... %} groups to ftable and fdefines file. + Also notice any %token, %left, etc. found there. */ + if (noparserflag) -- cgit v1.2.3