Ada, treelang needs to be converted to --enable-mapped-location

Geert Bosch bosch@gnat.com
Thu Sep 30 08:03:00 GMT 2004


\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



More information about the Gcc mailing list