diff options
author | Richard Biener <rguenther@suse.de> | 2015-07-22 13:18:47 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2015-07-22 13:18:47 +0000 |
commit | 38b52b2fdda5b639f5804297f56d96066a262ae2 (patch) | |
tree | cfe01aa668d1a8f3170bdd1a29c7e3ae584a06df /gcc | |
parent | 0889c52f15b21171977ad329ea8e6a096c1af827 (diff) | |
download | gcc-38b52b2fdda5b639f5804297f56d96066a262ae2.zip gcc-38b52b2fdda5b639f5804297f56d96066a262ae2.tar.gz gcc-38b52b2fdda5b639f5804297f56d96066a262ae2.tar.bz2 |
genmatch.c (expr::gen_transform): Clarify error message and display location.
2015-07-22 Richard Biener <rguenther@suse.de>
* genmatch.c (expr::gen_transform): Clarify error message
and display location.
From-SVN: r226068
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/genmatch.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e1e93ad9..93139cb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2015-07-22 Richard Biener <rguenther@suse.de> + * genmatch.c (expr::gen_transform): Clarify error message + and display location. + +2015-07-22 Richard Biener <rguenther@suse.de> + * genmatch.c (struct operand): Add location member. (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust constructors. diff --git a/gcc/genmatch.c b/gcc/genmatch.c index 1695417..b4ab7b5 100644 --- a/gcc/genmatch.c +++ b/gcc/genmatch.c @@ -1877,7 +1877,7 @@ expr::gen_transform (FILE *f, int indent, const char *dest, bool gimple, type = optype; } if (!type) - fatal ("two conversions in a row"); + fatal_at (location, "cannot determine type of operand"); fprintf_indent (f, indent, "{\n"); indent += 2; |