This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question/proposal for USE_MAPPED_LOCATION and Ada


Steven,

You mentioned in an earlier email that the Fortran compiler
has a line map as well. A quick look at the sources seems
to indicate that Fortran already has a locus allocated for
every position, and langhook as described by Richard could
be trivially implemented by using an indirection. Does
that seem correct to you?

As Zack mentioned, having two isomorphic representations of the
same thing wastes time and space, so it would be nice to avoid
using line-map for those front ends that do not need it.

-Geert

On Oct 6, 2004, at 16:23, Richard Kenner wrote:
If so, then it would seem the simplest approach is to an a
LANGHOOK_EXPAND_LOCATION which defaults to calling expand_location but
for Ada would point to essentially what is now Sloc_to_locus. It seems
to me that this would be a very tiny piece of code everywhere and would
completely avoid the need for redundant source position tables (note
that what's in linemap.c is very C-centric in its use of terms like include
files).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]