This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: problems debugging gcc
Geoff Keating wrote:-
> Oh, it's not related to the global variables. If it was just that,
> I'd have fixed it a month ago. Look at STMT_LINENO in c-common.h, and
> notice there is no STMT_FILENAME nor any easy way to add one.
>
> It started around when functions-as-trees was added.
Instead of adding a filename component and taking up more memory,
would it be too much to switch to using a single lineno and using the
line maps to imply the file name? It probably is for a quick patch,
but I might as well try. If it is too much, do you nevertheless agree
that this, and similarly in other places, is worthwhile doing in GCC?
Neil.