From 38b52b2fdda5b639f5804297f56d96066a262ae2 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 22 Jul 2015 13:18:47 +0000 Subject: [PATCH] genmatch.c (expr::gen_transform): Clarify error message and display location. 2015-07-22 Richard Biener * genmatch.c (expr::gen_transform): Clarify error message and display location. From-SVN: r226068 --- gcc/ChangeLog | 5 +++++ gcc/genmatch.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e1e93ad9a27..93139cb40c2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-07-22 Richard Biener + + * genmatch.c (expr::gen_transform): Clarify error message + and display location. + 2015-07-22 Richard Biener * genmatch.c (struct operand): Add location member. diff --git a/gcc/genmatch.c b/gcc/genmatch.c index 169541767d1..b4ab7b56e72 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; -- 2.30.2