From: Richard Biener Date: Thu, 17 Sep 2015 11:02:11 +0000 (+0000) Subject: genmatch.c (parser::parse_expr): Improve error message for mis-placed flags. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2e96ac06b296e3b66440d5e862dd1761e7a6cb39;p=gcc.git genmatch.c (parser::parse_expr): Improve error message for mis-placed flags. 2015-09-17 Richard Biener * genmatch.c (parser::parse_expr): Improve error message for mis-placed flags. From-SVN: r227859 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ffa966e00fb..cd46342b2ca 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-09-17 Richard Biener + + * genmatch.c (parser::parse_expr): Improve error message + for mis-placed flags. + 2015-09-17 Richard Biener * passes.c (rest_of_decl_compilation): Always call early_global_decl diff --git a/gcc/genmatch.c b/gcc/genmatch.c index 72666373740..f3d979735ba 100644 --- a/gcc/genmatch.c +++ b/gcc/genmatch.c @@ -3857,6 +3857,9 @@ parser::parse_expr () e->expr_type = expr_type; return op; } + else if (!(token->flags & PREV_WHITE)) + fatal_at (token, "expected expression operand"); + e->append_op (parse_op ()); } while (1);