This is the mail archive of the gcc-patches@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: [PATCH] Fix PR debug/19345


Jason Merrill wrote:

I'm not sure.  Every time I try to understand TYPE_STUB_DECL I get
confused.  Only Jason Merrill seems to have a firm grasp on that.


I'm not sure I do, either.  I thought all class types should have
TYPE_STUB_DECL set, but I've never been clear on why it's necessary in
addition to putting the decl in TYPE_NAME.

OK, that makes two of us.


I suspect, from a quick look at the code, that it serves no purpose at all, other than to waste a slot in TYPE_DECLs. Certainly, in C++, the canonical DECL for a class type should be TYPE_NAME (TYPE_MAIN_VARIANT (type)).

I suspect that in 4.1 we could just remove TYPE_STUB_DECL.

--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304


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