This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] explow.c: Remove an unused function, find_next_ref().
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 23 Jun 2003 11:54:27 -0400 (EDT)
- Subject: [patch] explow.c: Remove an unused function, find_next_ref().
Hi,
Attached is a patch to remove an unused function, find_next_ref().
Bootstrapped on i686-pc-linux-gnu. OK to apply?
Kazu Hirata
2003-06-23 Kazu Hirata <kazu@cs.umass.edu>
* explow.c (find_next_ref): Remove.
* rtl.h: Remove the prototype for find_next_ref.
Index: explow.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/explow.c,v
retrieving revision 1.113
diff -u -r1.113 explow.c
--- explow.c 12 Jun 2003 19:01:06 -0000 1.113
+++ explow.c 23 Jun 2003 14:16:34 -0000
@@ -241,51 +241,6 @@
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
Index: rtl.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/rtl.h,v
retrieving revision 1.418
diff -u -r1.418 rtl.h
--- rtl.h 19 Jun 2003 12:25:35 -0000 1.418
+++ rtl.h 23 Jun 2003 14:16:35 -0000
@@ -1949,8 +1949,6 @@
/* 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. */