This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/49459] attribute((mode(byte))) in a typedef produces wrong debug information
- From: "rth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 17 Jun 2011 18:57:04 +0000
- Subject: [Bug debug/49459] attribute((mode(byte))) in a typedef produces wrong debug information
- Auto-submitted: auto-generated
- References: <bug-49459-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49459
Richard Henderson <rth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Keywords| |wrong-debug
Last reconfirmed| |2011.06.17 18:56:47
Component|c |debug
CC| |rth at gcc dot gnu.org
Ever Confirmed|0 |1
Known to fail| |4.5.1, 4.6.0
--- Comment #1 from Richard Henderson <rth at gcc dot gnu.org> 2011-06-17 18:56:47 UTC ---
Confirmed.
<1><5e>: Abbrev Number: 5 (DW_TAG_variable)
<5f> DW_AT_name : foo
<63> DW_AT_decl_file : 1
<64> DW_AT_decl_line : 4
<65> DW_AT_type : <0x32>
<69> DW_AT_external : 1
<6a> DW_AT_declaration : 1
<1><32>: Abbrev Number: 4 (DW_TAG_typedef)
<33> DW_AT_name : e1
<36> DW_AT_decl_file : 1
<37> DW_AT_decl_line : 1
<38> DW_AT_type : <0x1d>
<1><1d>: Abbrev Number: 2 (DW_TAG_enumeration_type)
<1e> DW_AT_byte_size : 4
<1f> DW_AT_decl_file : 1
<20> DW_AT_decl_line : 1
<21> DW_AT_sibling : <0x32>
Note that DW_AT_byte_size == 4. We never change the size
of the type based on the attribute attached to the typedef.