diff options
author | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-21 09:40:09 +0000 |
---|---|---|
committer | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-21 09:40:09 +0000 |
commit | 2db825a4c444ec8cce3826ada571385c8ff49627 (patch) | |
tree | bdaedc88d062be340eb32158d131b0b8754dd0f9 /gcc/jump.c | |
parent | 6ac3b11ec643c5f7665788dec95e0d42fc31c7c6 (diff) | |
download | gcc-2db825a4c444ec8cce3826ada571385c8ff49627.tar.gz |
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 *.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214264 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/jump.c')
-rw-r--r-- | gcc/jump.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/jump.c b/gcc/jump.c index 6a8b9d5b7b4..96bdbe8ffbb 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)) { |