From 51f12cffd2c0d0e73054668fa6816ccad36a801d Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sun, 24 Jan 2021 09:30:02 +0100 Subject: [PATCH] package: fix details after merge with 3.7.5 * TODO, cfg.mk: Update. * src/parse-gram.c, src/parse-gram.h: Regen. --- TODO | 22 ++++++++++++++++++++++ cfg.mk | 1 - src/parse-gram.c | 18 +++++++++++++++--- src/parse-gram.h | 2 +- 4 files changed, 38 insertions(+), 5 deletions(-) diff --git a/TODO b/TODO index 4f89e749..c52f5358 100644 --- a/TODO +++ b/TODO @@ -1,4 +1,26 @@ * Soon +** Missing tests +commit c22902e360e0fbbe9fd5657dcf107e03166da309 +Author: Akim Demaille +Date: Sat Jan 23 18:40:15 2021 +0100 + + tables: fix handling for useless tokens + +See https://github.com/akimd/bison/issues/72#issuecomment-766153154 + +commit 2c294c132528ede23d8ae4959783a67e9ff05ac5 +Author: Vincent Imbimbo +Date: Sat Jan 23 13:25:18 2021 -0500 + + cex: fix state-item pruning + +See https://lists.gnu.org/r/bug-bison/2021-01/msg00002.html + +** pos_set_set +The current approach is correct, but with poor performances. Bitsets need +to support 'assign' and 'shift'. And instead of extending POS_SET just for +the out-of-range new values, we need something like doubling the size. + ** YY_LOCATION_PRINT This is an internal detail. But it's very handy, we should make it public. It already has leaked in the documentation by accident. diff --git a/cfg.mk b/cfg.mk index 84756ac5..6725a186 100644 --- a/cfg.mk +++ b/cfg.mk @@ -156,7 +156,6 @@ exclude = \ $(call exclude, \ bindtextdomain=^lib/main.c$$ \ cast_of_argument_to_free=^src/muscle-tab.c$$ \ - copyright_check=gnulib/lib/version-etc.c$$ \ error_message_uppercase=etc/bench.pl.in$$ \ po_check=^tests|(^po/POTFILES.in|.md)$$ \ preprocessor_indentation=^data/|^lib/|^src/parse-gram.[ch]$$ \ diff --git a/src/parse-gram.c b/src/parse-gram.c index 38bb60fb..a5c78c42 100644 --- a/src/parse-gram.c +++ b/src/parse-gram.c @@ -1,4 +1,4 @@ -/* A Bison parser, made by GNU Bison 3.7.4.273-d85e. */ +/* A Bison parser, made by GNU Bison 3.7.5.284-c9445. */ /* Bison implementation for Yacc-like parsers in C @@ -46,10 +46,10 @@ USER NAME SPACE" below. */ /* Identify Bison output, and Bison version. */ -#define YYBISON 30704 +#define YYBISON 30705 /* Bison version string. */ -#define YYBISON_VERSION "3.7.4.273-d85e" +#define YYBISON_VERSION "3.7.5.284-c9445" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" @@ -367,6 +367,18 @@ typedef int_least16_t yytype_int16; typedef short yytype_int16; #endif +/* Work around bug in HP-UX 11.23, which defines these macros + incorrectly for preprocessor constants. This workaround can likely + be removed in 2023, as HPE has promised support for HP-UX 11.23 + (aka HP-UX 11i v2) only through the end of 2022; see Table 2 of + . */ +#ifdef __hpux +# undef UINT_LEAST8_MAX +# undef UINT_LEAST16_MAX +# define UINT_LEAST8_MAX 255 +# define UINT_LEAST16_MAX 65535 +#endif + #if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__ typedef __UINT_LEAST8_TYPE__ yytype_uint8; #elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \ diff --git a/src/parse-gram.h b/src/parse-gram.h index f8019c17..15be83e4 100644 --- a/src/parse-gram.h +++ b/src/parse-gram.h @@ -1,4 +1,4 @@ -/* A Bison parser, made by GNU Bison 3.7.4.273-d85e. */ +/* A Bison parser, made by GNU Bison 3.7.5.284-c9445. */ /* Bison interface for Yacc-like parsers in C