aboutsummaryrefslogtreecommitdiff
path: root/gcc/genflags.c
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2021-04-30 12:13:55 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2021-04-30 12:19:07 +0000
commit74fe10aedbee6251ef700c72a9d09937a6e45aac (patch)
treee3bc1c50d89f3e5b96d9ed0d14fe42b9855ddc47 /gcc/genflags.c
parentdfc70841eb0ca42637826177f329cf6c98ee00ad (diff)
downloadgcc-74fe10aedbee6251ef700c72a9d09937a6e45aac.zip
gcc-74fe10aedbee6251ef700c72a9d09937a6e45aac.tar.gz
gcc-74fe10aedbee6251ef700c72a9d09937a6e45aac.tar.bz2
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-04-30 Christophe Lyon <christophe.lyon@linaro.org> gcc/ * genflags.c (gen_insn): Print failed expansion string.
Diffstat (limited to 'gcc/genflags.c')
-rw-r--r--gcc/genflags.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/genflags.c b/gcc/genflags.c
index f65b16a..a154b85 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;
}