This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Language-independent functions-as-trees representation
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 23 Aug 2002 21:01:22 +0100
- Subject: Re: Language-independent functions-as-trees representation
- References: <wvllm86k1m1.fsf@prospero.cambridge.redhat.com> <wvl65y1px1j.fsf@prospero.cambridge.redhat.com>
Jason Merrill wrote:-
> It's still not clear to me how best to represent line number information.
> I'd appreciate someone from the Java team explaining to me how it's handled
> there, particularly the use of EXPR_WFL_LINECOL on
> non-EXPR_WITH_FILE_LOCATION nodes.
I think this new IR is an *excellent* opportunity to get this right.
Namely, a location is uniquely specified by a (line, col) pair; there is
no need for a filename. See cpplib and line-map.h. There's no reason
all of GCC can't do this.
Neil.