[PATCH] read-md.c: track column numbers
Bernd Schmidt
bschmidt@redhat.com
Tue Oct 4 10:18:00 GMT 2016
On 09/30/2016 05:41 AM, David Malcolm wrote:
> This patch adds rudimentary column-number tracking to read-md.c, to
> give more precise locations for messages for problems in .md files
> (and in the RTL frontend I'm working on):
>
> ../../src/gcc/config/i386/i386.md:1204:22: error: unknown rtx code `define_mood_iterator'
> ../../src/gcc/config/i386/i386.md:1204:25: note: following context is `PTR'
Hmm, ok I suppose.
> + info.loc = file_location ("<internal>", 0, 0);
> + idata->loc = file_location ("<internal>", 0, 0);
> + e->loc = file_location ("built-in", -1, -1);
Use zero consistently maybe as a dummy? Ok either way.
Bernd
More information about the Gcc-patches
mailing list