This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/53235] [4.8 Regression] 20120504 broke -fdebug-types-section
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 07 Jul 2012 14:13:38 +0000
- Subject: [Bug debug/53235] [4.8 Regression] 20120504 broke -fdebug-types-section
- Auto-submitted: auto-generated
- References: <bug-53235-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53235
--- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> 2012-07-07 14:13:38 UTC ---
(In reply to comment #8)
> -fdebug-types-section regresses static scope of types
> http://sourceware.org/bugzilla/show_bug.cgi?id=14148
>
> suggests the stub DW_TAG_struct_type should not have DW_AT_declaration as we
> need definition of the type at its proper scope.
We have had declarations at the type's proper scope and definitions at CU scope
for a very long time, and moving the definition to a type unit should work
similarly. But I'm currently not putting a name on the stub to save space;
would giving it a DW_AT_name make a difference?