This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Ada, treelang needs to be converted to --enable-mapped-location
- From: Geert Bosch <bosch at gnat dot com>
- To: Per Bothner <per at bothner dot com>
- Cc: gcc at gcc dot gnu dot org, Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Date: Wed, 29 Sep 2004 21:37:17 -0400
- Subject: Re: Ada, treelang needs to be converted to --enable-mapped-location
- References: <10409292256.AA05047@vlsi1.ultra.nyu.edu> <415B45EC.7020808@bothner.com>
\On Sep 29, 2004, at 19:31, Per Bothner wrote:
Richard Kenner wrote:
So indeed I suspect the changes are tiny, but would appreciate a
little more
details about what needs to be done.
<long list snipped>
Excuse me for my ignorance, but this seems a very convoluted way to
gather some simple information. Probably I am missing some higher
level description of what information the back end needs, and why.
Currently, parsing is fast. Why should we be calling an extra function
for
every line parsed? Basically, the Ada model is to first build an entire
Ada parse tree of the Ada source and expand/lower it to a level where
Ada constructs like generic instantiations and tasks have disappeared.
That tree gets then lowered to GENERIC. Currently we have about a
dozen places in Gigi (the GNAT to GCC tree translator) where we call
a routine Sloc_to_locus, which converts an Ada source location
into a location_t. I would assume that there would be a way that
we can change this routine to hand the back end the new information,
including column number.
-Geert