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

Mark Mitchell mark@codesourcery.com
Thu Oct 7 06:24:00 GMT 2004


Richard Kenner wrote:

>My proposal is basically to take the view that source_location is an unsigned
>int that's an opaque datatype used to encode a (file, line column) triple.
>This datatype can either be defined in the front end (in which case it
>provides a language hook to produce that triple from the encoding) or it can
>use routines provided in line-map.c to generate the encoding.
>  
>
If you can do this in a way that does not make the non-Ada case go 
measuably slower, that seems OK.  If the indirection required is costly, 
then your proposal is lessa ttractive.

I think that if Ada wants to have its own source location machinery and 
its own diagnostic machinery, that's your business, so long as it 
doesn't impact the rest of the compiler adversely.  In the long run, 
having code that duplicates stuff that is common to the other front ends 
may lead to other problems for Ada, but I think that's up to the Ada 
maintainership to evaluate.

-- 
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@codesourcery.com



More information about the Gcc mailing list