From dbeee82924bc45e9990c2205e2768a52ffda5fbf Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Sun, 30 Oct 2011 07:48:05 +0000 Subject: Properly limit backwards label scanning in reorg. * reorg.c (label_before_next_insn): New function. (relax_delay_slots): Use it instead of prev_label. * rtl.h (prev_label): Delete declaration. * emit-rtl.c (prev_label): Remove. From-SVN: r180674 --- gcc/emit-rtl.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'gcc/emit-rtl.c') diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 8465237da60..c2bc56b9758 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -3330,21 +3330,6 @@ next_label (rtx insn) return insn; } -/* Return the last CODE_LABEL before the insn INSN, or 0 if there is none. */ - -rtx -prev_label (rtx insn) -{ - while (insn) - { - insn = PREV_INSN (insn); - if (insn == 0 || LABEL_P (insn)) - break; - } - - return insn; -} - /* Return the last label to mark the same position as LABEL. Return LABEL itself if it is null or any return rtx. */ -- cgit v1.2.1