]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2015-09-17 Richard Biener <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Sep 2015 11:02:11 +0000 (11:02 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 17 Sep 2015 11:02:11 +0000 (11:02 +0000)
* genmatch.c (parser::parse_expr): Improve error message
for mis-placed flags.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227859 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/genmatch.c

index ffa966e00fb17fd9819cfc0a3a4098bf66677d96..cd46342b2ca8cd4dab7082e2d328adcce5715362 100644 (file)
@@ -1,3 +1,8 @@
+2015-09-17  Richard Biener  <rguenther@suse.de>
+
+       * genmatch.c (parser::parse_expr): Improve error message
+       for mis-placed flags.
+
 2015-09-17  Richard Biener  <rguenther@suse.de>
 
        * passes.c (rest_of_decl_compilation): Always call early_global_decl
index 72666373740c9d68bfd2bedddba6d3427279cf5c..f3d979735baefed13ec36665e7df094c325b7c1b 100644 (file)
@@ -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);