[gcc(refs/users/clyon/heads/mve-autovec)] gcc/genflags.c: Improve error message
Christophe Lyon
clyon@gcc.gnu.org
Mon Mar 1 22:00:17 GMT 2021
https://gcc.gnu.org/g:7a76f047ad772b37929683417dba08b262627c85
commit 7a76f047ad772b37929683417dba08b262627c85
Author: Christophe Lyon <christophe.lyon@linaro.org>
Date: Fri Feb 26 16:34:56 2021 +0100
gcc/genflags.c: Improve error message
When an iterator cannot be expanded, it is helpful to see the expanded
name which is causing problems. It would be better to also print the
current iterator value (which couldn't match), but I couldn't find
how.
2021-03-01 Christophe Lyon <christophe.lyon@linaro.org>
gcc/
* genflags.c (gen_insn): Print failed expansion string.
Diff:
---
gcc/genflags.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/genflags.c b/gcc/genflags.c
index f65b16a6555..a154b855441 100644
--- a/gcc/genflags.c
+++ b/gcc/genflags.c
@@ -152,7 +152,7 @@ gen_insn (md_rtx_info *info)
lt = strchr (name, '<');
if (lt && strchr (lt + 1, '>'))
{
- error_at (info->loc, "unresolved iterator");
+ error_at (info->loc, "unresolved iterator in %s", name);
return;
}
@@ -160,7 +160,7 @@ gen_insn (md_rtx_info *info)
if (lt || gt)
{
error_at (info->loc, "unmatched angle brackets, likely "
- "an error in iterator syntax");
+ "an error in iterator syntax in %s", name);
return;
}
More information about the Gcc-cvs
mailing list