mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
Merge branch 'maint'
* maint: maint: post-release administrivia version 3.5.4 examples: reccalc: really compile cleanly in C99 news: announce that Bison 3.6 drops YYERROR_VERBOSE news: update for 3.5.4 style: fix spellos typo: succesful -> successful package: improve the readme java: check and fix support for api.token.raw java: style: prefer 'int[] foo' to 'int foo[]' build: fix syntax-check issues tests: recheck: work properly when the test suite was interrupted doc: c++: promote api.token.raw build: fix compatibility with old compilers examples: reccalc: compile cleanly in C99
This commit is contained in:
@@ -42,9 +42,9 @@ bool warnings_are_errors = false;
|
||||
/** Whether -Werror/-Wno-error was applied to a warning. */
|
||||
typedef enum
|
||||
{
|
||||
errority_unset = 0, /** No explict status. */
|
||||
errority_disabled = 1, /** Explictly disabled with -Wno-error=foo. */
|
||||
errority_enabled = 2 /** Explictly enabled with -Werror=foo. */
|
||||
errority_unset = 0, /** No explicit status. */
|
||||
errority_disabled = 1, /** Explicitly disabled with -Wno-error=foo. */
|
||||
errority_enabled = 2 /** Explicitly enabled with -Werror=foo. */
|
||||
} errority;
|
||||
|
||||
/** For each warning type, its errority. */
|
||||
|
||||
@@ -329,7 +329,7 @@ print_reductions (FILE *out, int level, state *s)
|
||||
|
||||
/*--------------------------------------------------------------.
|
||||
| Report on OUT all the actions (shifts, gotos, reductions, and |
|
||||
| explicit erros from %nonassoc) of S. |
|
||||
| explicit errors from %nonassoc) of S. |
|
||||
`--------------------------------------------------------------*/
|
||||
|
||||
static void
|
||||
|
||||
@@ -319,7 +319,7 @@ print_reductions (FILE *out, state *s)
|
||||
|
||||
/*--------------------------------------------------------------.
|
||||
| Report on OUT all the actions (shifts, gotos, reductions, and |
|
||||
| explicit erros from %nonassoc) of S. |
|
||||
| explicit errors from %nonassoc) of S. |
|
||||
`--------------------------------------------------------------*/
|
||||
|
||||
static void
|
||||
|
||||
@@ -612,7 +612,7 @@ handle_action_dollar (symbol_list *rule, char *text, const location *dollar_loc)
|
||||
char *cp = fetch_type_name (text + 1, &type_name, dollar_loc);
|
||||
int n = parse_ref (cp, effective_rule, effective_rule_length,
|
||||
rule->midrule_parent_rhs_index, text, dollar_loc, '$');
|
||||
/* End type_name. Don't do it ealier: parse_ref depends on TEXT. */
|
||||
/* End type_name. Don't do it earlier: parse_ref depends on TEXT. */
|
||||
if (type_name)
|
||||
cp[-1] = '\0';
|
||||
|
||||
|
||||
@@ -135,7 +135,7 @@ struct sym_content
|
||||
/** Its \c \%type's location. */
|
||||
location type_loc;
|
||||
|
||||
/** Any \c \%destructor (resp. \%printer) declared specificially for this
|
||||
/** Any \c \%destructor (resp. \%printer) declared specifically for this
|
||||
symbol.
|
||||
|
||||
Access this field only through <tt>symbol</tt>'s interface functions. For
|
||||
|
||||
@@ -73,9 +73,14 @@ typedef size_t uintptr_t;
|
||||
# include <verify.h>
|
||||
# include <xalloc.h>
|
||||
|
||||
// Clang and ICC like to pretend they are GCC.
|
||||
# if defined __GNUC__ && !defined __clang__ && !defined __ICC
|
||||
# define GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
|
||||
# endif
|
||||
|
||||
/* See https://lists.gnu.org/archive/html/bug-bison/2019-10/msg00061.html. */
|
||||
# if defined __GNUC__ && ! defined __clang__ && ! defined __ICC && __GNUC__ < 5
|
||||
// See https://lists.gnu.org/archive/html/bug-bison/2019-10/msg00061.html
|
||||
// and https://trac.macports.org/ticket/59927.
|
||||
# if defined GCC_VERSION && 405 <= GCC_VERSION
|
||||
# define IGNORE_TYPE_LIMITS_BEGIN \
|
||||
_Pragma ("GCC diagnostic push") \
|
||||
_Pragma ("GCC diagnostic ignored \"-Wtype-limits\"")
|
||||
|
||||
Reference in New Issue
Block a user