From c6365730b26a4a9cf838f04fc9f91f46d7dc37f2 Mon Sep 17 00:00:00 2001 From: kazu Date: Sat, 28 Jun 2003 05:39:40 +0000 Subject: [PATCH] * explow.c (find_next_ref): Remove. * rtl.h: Remove the prototype for find_next_ref. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68628 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/explow.c | 45 --------------------------------------------- gcc/rtl.h | 2 -- 3 files changed, 5 insertions(+), 47 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9e525fee68f..747bf5dd311 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-06-28 Kazu Hirata + + * explow.c (find_next_ref): Remove. + * rtl.h: Remove the prototype for find_next_ref. + 2003-06-27 Roger Sayle * config/alpha/alpha.md (anonymous define_split): Adjust emit_note diff --git a/gcc/explow.c b/gcc/explow.c index 883edf8e9f4..9568afc340e 100644 --- a/gcc/explow.c +++ b/gcc/explow.c @@ -241,51 +241,6 @@ eliminate_constant_term (x, constptr) return x; } -/* Returns the insn that next references REG after INSN, or 0 - if REG is clobbered before next referenced or we cannot find - an insn that references REG in a straight-line piece of code. */ - -rtx -find_next_ref (reg, insn) - rtx reg; - rtx insn; -{ - rtx next; - - for (insn = NEXT_INSN (insn); insn; insn = next) - { - next = NEXT_INSN (insn); - if (GET_CODE (insn) == NOTE) - continue; - if (GET_CODE (insn) == CODE_LABEL - || GET_CODE (insn) == BARRIER) - return 0; - if (GET_CODE (insn) == INSN - || GET_CODE (insn) == JUMP_INSN - || GET_CODE (insn) == CALL_INSN) - { - if (reg_set_p (reg, insn)) - return 0; - if (reg_mentioned_p (reg, PATTERN (insn))) - return insn; - if (GET_CODE (insn) == JUMP_INSN) - { - if (any_uncondjump_p (insn)) - next = JUMP_LABEL (insn); - else - return 0; - } - if (GET_CODE (insn) == CALL_INSN - && REGNO (reg) < FIRST_PSEUDO_REGISTER - && call_used_regs[REGNO (reg)]) - return 0; - } - else - abort (); - } - return 0; -} - /* Return an rtx for the size in bytes of the value of EXP. */ rtx diff --git a/gcc/rtl.h b/gcc/rtl.h index 52baa243875..6255639bdad 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -1948,8 +1948,6 @@ extern rtx gen_lowpart_SUBREG PARAMS ((enum machine_mode, rtx)); /* REGNUM never really appearing in the INSN stream. */ #define INVALID_REGNUM (~(unsigned int) 0) -extern rtx find_next_ref PARAMS ((rtx, rtx)); - extern rtx output_constant_def PARAMS ((tree, int)); /* Called from integrate.c when a deferred constant is inlined. */ -- 2.11.0