This is the mail archive of the
mailing list for the GCC project.
Re: Ada files now checked in
On Sat, Oct 06, 2001 at 05:12:45PM -0400, Diego Novillo wrote:
> On Sat, 06 Oct 2001, Florian Weimer wrote:
> > Well, Robert probably wants to see something like this:
> > foo.c: In function `main':
> > foo.c:5:7: warning: `b' is used uninitialized at this point
> > Looking at the warning message and its different modality to the
> > standard one, I think the branch currently tackles the problem of
> > false positives, not the problem of friendly reporting.
> Ah, I see. Yes, the warning message uses the line number
> information stored in the statement containing the offending
> expression. I don't know if absolute line and column numbers are
> stored in the trees.
I don't know if they are now, but there isn't any deep reason why they
couldn't be. For C and C++, we have column number information coming
back from the preprocessor now, and I understand that the new C++
parser is going to use that information for its own error reporting.
It shouldn't be that much harder to annotate variable uses with their
source position at the tree level. It is probably too much to hope
for to get that into RTL.
I would also like to see this level of detail in uninitialized