This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/39412] [4.2/4.3/4.4 Regression] ICE in gen_tagged_type_instantiation_die
- From: "jason at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Mar 2009 16:41:13 -0000
- Subject: [Bug debug/39412] [4.2/4.3/4.4 Regression] ICE in gen_tagged_type_instantiation_die
- References: <bug-39412-87@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from jason at redhat dot com 2009-03-10 16:41 -------
Subject: Re: [4.2/4.3/4.4 Regression] ICE in gen_tagged_type_instantiation_die
jakub at gcc dot gnu dot org wrote:
> What's the point in generating the DIE in gen_tagged_type_instantiation_die?
It seems to be for generating the DIE to represent the type definition
in a concrete instance of an inline function. I don't know why it would
be called multiple times, since it's only called when we process the
stub TYPE_DECL; calling gen_decl_die multiple times for that seems
surprising.
But as you say, there doesn't seem to be any point in emitting such a
DIE at all, since the variables will already have a type in the abstract
instance.
> I'd like to question if gen_tagged_type_instantiation_die shouldn't be nuked instead.
Go ahead.
Jason
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39412