[cfg-branch] var-tracking "future bug" fix
Josef Zlomek
zlomj9am@artax.karlin.mff.cuni.cz
Fri Apr 5 23:53:00 GMT 2002
Hi,
this patch changes the emiting of notes for the frontier of 2 basic blocks.
When emiting notes for changes between bb1 OUT and bb2 IN sets
the notes are now emited BEFORE bb2->head
This fixes bug that would appear in future when we possibly remove the
NOTE_INSN_BASIC_BLOCK so the bb->head will not have to be a note or
label.
Bootstrapped on i686.
Joe
Sat Apr 6 09:51:01 CEST 2002 Josef Zlomek <zlomek@matfyz.cz>
* var-traacking (var_tracking_emit_notes): Emit notes BEFORE instead
of AFTER bb->head.
*** gcc-old/gcc/var-tracking.c Wed Mar 27 17:02:09 2002
--- gcc-new/gcc/var-tracking.c Fri Apr 5 20:14:36 2002
*************** var_tracking_emit_notes ()
*** 1130,1136 ****
}
/* Emit the notes and delete the marked location parts. */
emit_note_data.insn = bb->head;
! emit_note_data.where = EMIT_NOTE_AFTER_INSN;
htab_traverse (variable_htab, process_location_parts, &emit_note_data);
/* Emit the notes for the changes in the basic block itself. */
--- 1130,1136 ----
}
/* Emit the notes and delete the marked location parts. */
emit_note_data.insn = bb->head;
! emit_note_data.where = EMIT_NOTE_BEFORE_INSN;
htab_traverse (variable_htab, process_location_parts, &emit_note_data);
/* Emit the notes for the changes in the basic block itself. */
More information about the Gcc-patches
mailing list