]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - intl/ChangeLog
intl: Allow building both with old bison and bison >= 3 [PR92008]
[thirdparty/gcc.git] / intl / ChangeLog
index fa518ec154a173d7a2451ddec4f2bb00f64e7006..a3762f81f566ca1a963f737ff456d951c82632e6 100644 (file)
@@ -1,3 +1,22 @@
+2020-04-16  Jakub Jelinek  <jakub@redhat.com>
+
+       PR bootstrap/92008
+       * configure.ac: Add check for bison >= 3, AC_DEFINE HAVE_BISON3
+       and AC_SUBST BISON3_YES and BISON3_NO.
+       * Makefile.in (.y.c): Prefix $(YACC) invocation with @BISON3_NO@,
+       add @BISON3_YES@ prefixed rule to adjust the *.y source using sed
+       and adjust output afterwards.
+       * plural-exp.h (PLURAL_PARSE): If HAVE_BISON3 is defined, use
+       struct parse_args * type for arg instead of void *.
+       * plural.y: Add magic /* BISON3 ... */ comments with bison >= 3
+       directives.
+       (YYLEX_PARAM, YYPARSE_PARAM): Don't define if HAVE_BISON3 is defined.
+       (yylex, yyerror): Adjust prototypes and definitions if HAVE_BISON3
+       is defined.
+       * plural.c: Regenerated.
+       * config.h.in: Regenerated.
+       * configure: Regenerated.
+
 2020-02-01  Andrew Burgess  <andrew.burgess@embecosm.com>
 
        * configure: Regenerate.