This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/48603] Missing DW_TAG_typedef for anonymous struct in template
- From: "tromey at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 18 Apr 2011 15:41:34 +0000
- Subject: [Bug debug/48603] Missing DW_TAG_typedef for anonymous struct in template
- Auto-submitted: auto-generated
- References: <bug-48603-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48603
Tom Tromey <tromey at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at gcc dot gnu.org
--- Comment #5 from Tom Tromey <tromey at gcc dot gnu.org> 2011-04-18 15:40:33 UTC ---
(In reply to comment #4)
> Yes, it's exactly the mangling which we can't perform at LTO time and thus
> to preserve this extension we'd have to compute DECL_ASSEMBLER_NAME for
> all type-decls as well, not just for entities that will have symbols.
FWIW, this particular extension is only needed for the oddball case of
a typedef of an anonymous struct:
typedef struct { ... } X;
That is, most types don't need a linkage name attribute.