This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Building CFG on machine without jumps to label
On Sat, Jan 06, 2001 at 11:09:52PM -0800, Mark Mitchell wrote:
> I'm testing the above change now...
Rather than wait for you to do it in the morning (and have Europe
send bug reports all day) I went ahead and committed the change.
r~
* sched-rgn.c (is_cfg_nonregular): Fix thinko's last change.
Index: sched-rgn.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/sched-rgn.c,v
retrieving revision 1.5
diff -c -p -d -r1.5 sched-rgn.c
*** sched-rgn.c 2001/01/07 02:26:51 1.5
--- sched-rgn.c 2001/01/07 09:52:34
*************** is_cfg_nonregular ()
*** 351,362 ****
code = GET_CODE (insn);
if (GET_RTX_CLASS (code) == 'i' && code != JUMP_INSN)
{
! rtx note = find_reg_note (REG_NOTES (insn), REG_LABEL, NULL_RTX);
if (note
&& ! (GET_CODE (NEXT_INSN (insn)) == JUMP_INSN
! && find_reg_note (REG_NOTES (NEXT_INSN (insn)),
! REG_LABEL,
XEXP (note, 0))))
return 1;
}
--- 351,361 ----
code = GET_CODE (insn);
if (GET_RTX_CLASS (code) == 'i' && code != JUMP_INSN)
{
! rtx note = find_reg_note (insn, REG_LABEL, NULL_RTX);
if (note
&& ! (GET_CODE (NEXT_INSN (insn)) == JUMP_INSN
! && find_reg_note (NEXT_INSN (insn), REG_LABEL,
XEXP (note, 0))))
return 1;
}