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.
lt = strchr (name, '<');
if (lt && strchr (lt + 1, '>'))
{
- error_at (info->loc, "unresolved iterator");
+ error_at (info->loc, "unresolved iterator in %s", name);
return;
}
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;
}