This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[rtlopt] fix bug in var-tracking
- From: Josef Zlomek <zlomj9am at artax dot karlin dot mff dot cuni dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 6 Feb 2003 13:22:53 +0100
- Subject: [rtlopt] fix bug in var-tracking
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;