From: Paul Eggert Date: Sun, 29 Dec 2002 03:17:12 +0000 (+0000) Subject: Version 1.75f. X-Git-Tag: BISON-1_875~11 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/963fcc1705cc7d43bc038f3ae73159f6525edb52 Version 1.75f. --- diff --git a/ChangeLog b/ChangeLog index 3348b80f..71845ef9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,31 @@ +2002-12-28 Paul Eggert + + Version 1.75f. + + Switch back to the Yacc style of conflict reports, undoing some + of the 2002-07-30 change. + * doc/bison.texinfo (Understanding): Use Yacc style for + conflict reports. Also, use new way of locating rules. + * src/conflicts.c (conflict_report): + Renamed from conflict_report_yacc, removing the old + 'conflict_report'. Translate the entire conflict report at once, + so that we don't assume that "," has the same interpretation in + all languages. + (conflicts_output): Use Yacc-style conflict report for each state, + instead of our more-complicated style. + (conflicts_print): Use Yacc-style conflict report, except print + the input file name when not emulating Yacc. + * tests/conflicts.at (Unresolved SR Conflicts, Defaulted + Conflicted Reduction, %expect not enough, %expect too much, + %expect with reduce conflicts): Switch to Yacc-style conflict reports. + * tests/existing.at (GNU Cim Grammar): Likewise. + * tests/glr-regr1.at (Badly Collapsed GLR States): Likewise. + + * src/complain.c (warn_at, warn, complain_at, complain, fatal_at, + fatal): Don't invoke fflush; it's not needed and it might even be + harmful for stdout, as stdout might not be open. + * src/reduce.c (reduce_print): Likewise. + 2002-12-27 Paul Eggert Fix a bug where error locations were not being recorded correctly. diff --git a/NEWS b/NEWS index 63ad026b..0407aad5 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,18 @@ Bison News ---------- +Changes in version 1.75f, 2002-12-28: + +* In Yacc-style parsers YYLLOC_DEFAULT is now used to compute error + locations too. This fixes bugs in error-location computation. + +* Bison now uses a Yacc-style format for conflict reports, e.g., + "conflicts: 2 shift/reduce, 1 reduce/reduce". + +* Bison now warns if it detects conflicting outputs to the same file, + e.g., it generates a warning for "bison -d -o foo.h foo.y" since + that command outputs both code and header to foo.h. + Changes in version 1.75e, 2002-12-24: * If the user does not define YYSTYPE as a macro, Bison now declares it