This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/24570] [4.0 Regression] unit-at-a-time: debug info not emitted for unused global variables
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Oct 2005 17:24:14 -0000
- Subject: [Bug middle-end/24570] [4.0 Regression] unit-at-a-time: debug info not emitted for unused global variables
- References: <bug-24570-11184@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from pinskia at gcc dot gnu dot org 2005-10-28 17:24 -------
That is the mainline and 3.4.x give:
.ascii "unused_variable\0" # DW_AT_name
.byte 0x1 # DW_AT_decl_file
.byte 0x2 # DW_AT_decl_line
.long 0x7c # DW_AT_type
.byte 0x1 # DW_AT_external
.byte 0x9 # DW_AT_location
.byte 0x3 # DW_OP_addr
.quad unused_variable
.byte 0x0 # end of children of DIE 0xb
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |4.0.3
Known to work| |3.4.5 4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24570