aboutsummaryrefslogtreecommitdiff
path: root/gcc/emit-rtl.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-10-30 07:48:05 +0000
committerDavid S. Miller <davem@davemloft.net>2011-10-30 07:48:05 +0000
commit2cc8be085baf7df29b60fed12e4db7fcd34144d0 (patch)
tree6927a78bf433978e525defc0a83618ff6bb2613a /gcc/emit-rtl.c
parent62d81794abd69e13c564ab7dc547327c294d3abd (diff)
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. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@180674 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r--gcc/emit-rtl.c15
1 files changed, 0 insertions, 15 deletions
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. */