diff options
author | David S. Miller <davem@davemloft.net> | 2011-10-30 07:48:05 +0000 |
---|---|---|
committer | David S. Miller <davem@gcc.gnu.org> | 2011-10-30 00:48:05 -0700 |
commit | dbeee82924bc45e9990c2205e2768a52ffda5fbf (patch) | |
tree | 6927a78bf433978e525defc0a83618ff6bb2613a /gcc/emit-rtl.c | |
parent | cc1efdff706c78c874ab8ff65264004fdc8a7081 (diff) | |
download | gcc-dbeee82924bc45e9990c2205e2768a52ffda5fbf.tar.gz |
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
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r-- | gcc/emit-rtl.c | 15 |
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. */ |