public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/55059] New: DWARF missing concrete class definition
@ 2012-10-24 15:52 tromey at gcc dot gnu.org
  2012-10-25  7:00 ` [Bug debug/55059] " jakub at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: tromey at gcc dot gnu.org @ 2012-10-24 15:52 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55059

             Bug #: 55059
           Summary: DWARF missing concrete class definition
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: tromey@gcc.gnu.org


Created attachment 28519
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28519
test program

This comes from http://sourceware.org/bugzilla/show_bug.cgi?id=14760

I think GCC master from today generates invalid, or at least
questionable, DWARF for the attached test case.
This causes gdb test suite failures.

The bug is in the DWARF for the instantiation of Base.
Current GCC emits:

 <1><f1>: Abbrev Number: 15 (DW_TAG_structure_type)
    <f2>   DW_AT_name        : (indirect string, offset: 0x191): Base<long int,
47, (& a_global), &S::f>    
    <f6>   DW_AT_byte_size   : 1    
    <f7>   DW_AT_decl_file   : 1    
    <f8>   DW_AT_decl_line   : 30    
    <f9>   DW_AT_declaration : 1    
    <f9>   DW_AT_sibling     : <0x155>    

This has DW_AT_declaration -- but there is no concrete instance of the type.

Previous versions of GCC omitted this attribute.  For example, Fedora 16
GCC:

 <1><f1>: Abbrev Number: 10 (DW_TAG_structure_type)
    <f2>   DW_AT_name        : (indirect string, offset: 0x135): Base<long int,
47, (& a_global), &S::f>    
    <f6>   DW_AT_byte_size   : 1    
    <f7>   DW_AT_decl_file   : 1    
    <f8>   DW_AT_decl_line   : 30    
    <f9>   DW_AT_sibling     : <0x155>    

I think the previous approach is preferable.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-01-31 18:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-24 15:52 [Bug debug/55059] New: DWARF missing concrete class definition tromey at gcc dot gnu.org
2012-10-25  7:00 ` [Bug debug/55059] " jakub at gcc dot gnu.org
2012-12-09  2:34 ` [Bug debug/55059] [4.8 Regression] " pinskia at gcc dot gnu.org
2012-12-17 14:48 ` jakub at gcc dot gnu.org
2013-01-03 19:29 ` tromey at gcc dot gnu.org
2013-01-28  1:54 ` jason at gcc dot gnu.org
2013-01-28 20:08 ` tromey at gcc dot gnu.org
2013-01-31 17:48 ` jason at gcc dot gnu.org
2013-01-31 18:29 ` jason at gcc dot gnu.org
2013-01-31 18:32 ` jason at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).