[Bug c++/77363] [5/6/7 Regression] Missing debug information in DWARF

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Aug 24 10:39:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77363

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
      Known to work|                            |4.9.4
           Keywords|                            |wrong-debug
   Last reconfirmed|                            |2016-08-24
     Ever confirmed|0                           |1
            Summary|Missing debug information   |[5/6/7 Regression] Missing
                   |in DWARF                    |debug information in DWARF
   Target Milestone|---                         |5.5
      Known to fail|                            |5.4.0, 6.2.0, 7.0

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed with GCC 6.  The root cause seems to be that we lack a DIE for the
uint8 typedef as well (the uint16 one is IMHO correctly pruned as unused by
both FEs).  It works fine with GCC 4.8 and 4.9 where we also lack the uint8
typedef DIE but at least get

 <1><24>: Abbrev Number: 2 (DW_TAG_base_type)
    <25>   DW_AT_byte_size   : 1
    <26>   DW_AT_encoding    : 8        (unsigned char)
    <27>   DW_AT_name        : (indirect string, offset: 0x72): unsigned char
 <1><2b>: Abbrev Number: 3 (DW_TAG_typedef)
    <2c>   DW_AT_name        : (indirect string, offset: 0x23): tHash1
    <30>   DW_AT_decl_file   : 1
    <31>   DW_AT_decl_line   : 4
    <32>   DW_AT_type        : <0x36>
 <1><36>: Abbrev Number: 4 (DW_TAG_array_type)
    <37>   DW_AT_type        : <0x24>
    <3b>   DW_AT_sibling     : <0x46>
 <2><3f>: Abbrev Number: 5 (DW_TAG_subrange_type)
    <40>   DW_AT_type        : <0x46>
    <44>   DW_AT_upper_bound : 15


More information about the Gcc-bugs mailing list