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: [lto] Streaming out language-specific DECL/TYPEs


> On Mon, Jun 2, 2008 at 5:10 PM, Diego Novillo <dnovillo@google.com> wrote:
> > In g++.dg/torture/20070621-1.C we are trying to stream out a structure
> > that contains a TEMPLATE_DECL.  This currently causes a failure in
> > lto-function-out.c:output_tree because not only TEMPLATE_DECL is
> > C++-specific, we can't even access its fields from lto-function-out.c.
> 
> TEMPLATE_DECL should have been converted to a FUNCTION_DECL already by
> this time as far as I can read the sources.  Does TEMPLATE_DECL show
> up in the context or where does it show up?

At least in DECL_ABSTRACT_ORIGIN I saw us pointing to unlowered
templates that originally was used to produce the specialized node.  If
the TEMPLATE_DECL is reached this way, perhaps we can just ignore
DECL_ABSTRACT_ORIGINs for time being as getting debug info right will be
interesting problem anyway?

However in general, Sadly in our types and initializers there are
language dependent nodes for sure, this is reason why analyze_expr
cgraph hook still exists (see cxx_callgraph_analyze_expr for some, I am
not sure if all of them are still alive, but they was about year ago
when I tried).  We will need to lower those or make them part of Gimple.

Honza
> 
> Thanks,
> Andrew Pinski


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