diff options
author | David Malcolm <dmalcolm@redhat.com> | 2014-08-21 09:40:09 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2014-08-21 09:40:09 +0000 |
commit | 579f75aefaf6ad541772195667b4f3afbf738fe5 (patch) | |
tree | bdaedc88d062be340eb32158d131b0b8754dd0f9 /gcc/jump.c | |
parent | 622dbadfab3efe2677b5e789b4e930482630a99e (diff) | |
download | gcc-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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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)) { |