Question/proposal for USE_MAPPED_LOCATION and Ada

Robert Dewar dewar@gnat.com
Thu Oct 7 18:28:00 GMT 2004


Giovanni Bajo wrote:

> Yes, and we could not use a language-independent version for C++, because we do
> not dump *only* the line numbers of the instantiation context, but also the
> declaration causing the instantiation. So we need a chain of DECLs in the first
> place. An independent chain of locations only would be useless. What we
> actually store is a chain of tinst_level_s structures (defined in
> cp/cp-tree.h), where each node contains a declaration and a locus. I assume Ada
> can be worked to do the same.

Yes, but I don't see any gain in doing so. Right now, GNAT captures the
instantiation information without needing to create any additional data
structures, except entries in the source file table (one per instance).
> 
> Giovanni Bajo
> 



More information about the Gcc mailing list