[rtlopt] fix bug in var-tracking
Josef Zlomek
zlomj9am@artax.karlin.mff.cuni.cz
Thu Feb 6 12:22:00 GMT 2003
Hi,
this patch fixes a bug in var-tracking.
Josef
2003-02-06 Josef Zlomek <zlomekj@suse.cz>
* var-tracking.c (var_tracking_emit_notes): Add variables from
mem_in set for basic block bb in front of bb.
*** gcc-rtlopt/gcc/var-tracking.c Thu Feb 6 10:54:29 2003
--- gcc-rtlopt.new/gcc/var-tracking.c Thu Feb 6 11:36:25 2003
*************** var_tracking_emit_notes ()
*** 1520,1526 ****
in = VTI (bb)->in;
for (i = 0; i < FIRST_PSEUDO_REGISTER; i++)
add_and_unmark_variables ((void **) &in[i], bb->head);
! htab_traverse (last_htab, add_and_unmark_variables, bb->head);
/* Delete the marked location parts and emit the notes. */
emit_note_data.insn = bb->head;
--- 1520,1526 ----
in = VTI (bb)->in;
for (i = 0; i < FIRST_PSEUDO_REGISTER; i++)
add_and_unmark_variables ((void **) &in[i], bb->head);
! htab_traverse (VTI (bb)->mem_in, add_and_unmark_variables, bb->head);
/* Delete the marked location parts and emit the notes. */
emit_note_data.insn = bb->head;
More information about the Gcc-patches
mailing list