This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/45299] Dwarf information is wrong with optimised code.
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Aug 2010 10:06:13 -0000
- Subject: [Bug target/45299] Dwarf information is wrong with optimised code.
- References: <bug-45299-15241@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from jakub at gcc dot gnu dot org 2010-08-17 10:06 -------
Sounds like a target bug.
After variable_tracking_main the notes look correct:
(note 88 23 89 2 (var_location array (reg:HI 0 R0 [ pass_through_array ]))
NOTE_INSN_VAR_LOCATION)
(note 89 88 90 2 (var_location size (reg:HI 1 R1 [ pass_through_size ]))
NOTE_INSN_VAR_LOCATION)
(note 90 89 32 2 (var_location i (const_int 0 [0])) NOTE_INSN_VAR_LOCATION)
(insn:TI 32 90 91 2 (set (reg/v:HI 0 R0 [orig:50 sum ] [50])
(mem:HI (reg/f:HI 0 R0 [orig:62 pass_through_array ] [62]) [2
*pass_through_array_1(D)+0 S2 A16])) b45299.c:12 15 {movhi}
(nil))
(note 91 32 92 2 (var_location pass_through_array (reg/v/f:HI 5 R5 [orig:62
pass_through_array ] [62])) NOTE_INSN_VAR_LOCATION)
(note 92 91 93 2 (var_location array (reg/v/f:HI 5 R5 [orig:62
pass_through_array ] [62])) NOTE_INSN_VAR_LOCATION)
but then reorder_var_tracking_notes drops some notes on the floor and moves
others. Clearly a target bug. Dropping on the floor is certainly wrong, and
the moving results in invalid debug info too.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|debug |target
Keywords|wrong-debug |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45299