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
* Steven Bosscher:
>> 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 humbly disagree, it is not OK.
>
> With this idea, we lock ourselves in with the Ada front end, so if
> we at one point, for whatever reason, decide that source_location
> should be something other than a "32-bit opaque data type", we first
> have to go through all this again to get the Ada representation
> changed as well.
How can the back end develop *any* dependency on the representation of
the data type? I'd assume that in order to generate source location
information from scratch, you need at least a rough understanding of
the source code in question. Such knowledge probably doesn't belong
to the back end.