aboutsummaryrefslogtreecommitdiff
path: root/gcc/jump.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2014-08-21 09:40:09 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2014-08-21 09:40:09 +0000
commit579f75aefaf6ad541772195667b4f3afbf738fe5 (patch)
treebdaedc88d062be340eb32158d131b0b8754dd0f9 /gcc/jump.c
parent622dbadfab3efe2677b5e789b4e930482630a99e (diff)
downloadgcc-579f75aefaf6ad541772195667b4f3afbf738fe5.zip
gcc-579f75aefaf6ad541772195667b4f3afbf738fe5.tar.gz
gcc-579f75aefaf6ad541772195667b4f3afbf738fe5.tar.bz2
peephole returns an rtx_insn
2014-08-21 David Malcolm <dmalcolm@redhat.com> * output.h (peephole): Strengthen return type from rtx to rtx_insn *. * rtl.h (delete_for_peephole): Likewise for both params. * genpeep.c (main): In generated "peephole" function, strengthen return type and local "insn" from rtx to rtx_insn *. For now, rename param "ins1" to "uncast_ins1", adding "ins1" back as an rtx_insn *, with a checked cast. * jump.c (delete_for_peephole): Strengthen params "from", "to" and locals "insn", "next", "prev" from rtx to rtx_insn *. From-SVN: r214264
Diffstat (limited to 'gcc/jump.c')
-rw-r--r--gcc/jump.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/jump.c b/gcc/jump.c
index 6a8b9d5..96bdbe8 100644
--- a/gcc/jump.c
+++ b/gcc/jump.c
@@ -1398,14 +1398,14 @@ delete_related_insns (rtx insn)
peephole insn that will replace them. */
void
-delete_for_peephole (rtx from, rtx to)
+delete_for_peephole (rtx_insn *from, rtx_insn *to)
{
- rtx insn = from;
+ rtx_insn *insn = from;
while (1)
{
- rtx next = NEXT_INSN (insn);
- rtx prev = PREV_INSN (insn);
+ rtx_insn *next = NEXT_INSN (insn);
+ rtx_insn *prev = PREV_INSN (insn);
if (!NOTE_P (insn))
{