This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/45299] Dwarf information is wrong with optimised code.



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]