aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/mep
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2012-07-03 15:49:25 +0000
committerNick Clifton <nickc@gcc.gnu.org>2012-07-03 15:49:25 +0000
commitf758c26c041a1af69b459c2f4e5d84b3383d4cd7 (patch)
tree49c48316451a8da29187a096686575d455da56c1 /gcc/config/mep
parent9795be396eedb7c0e9b70317320dd79c72eb3923 (diff)
downloadgcc-f758c26c041a1af69b459c2f4e5d84b3383d4cd7.zip
gcc-f758c26c041a1af69b459c2f4e5d84b3383d4cd7.tar.gz
gcc-f758c26c041a1af69b459c2f4e5d84b3383d4cd7.tar.bz2
mep.c (mep_reorg_regmove): Use next_nonnote_non_debug_insn to advance to the next insn.
* config/mep/mep.c (mep_reorg_regmove): Use next_nonnote_non_debug_insn to advance to the next insn. Do not expect delete_insn to return an rtx. From-SVN: r189234
Diffstat (limited to 'gcc/config/mep')
-rw-r--r--gcc/config/mep/mep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/mep/mep.c b/gcc/config/mep/mep.c
index a6615ed..2abff38 100644
--- a/gcc/config/mep/mep.c
+++ b/gcc/config/mep/mep.c
@@ -5022,7 +5022,7 @@ mep_reorg_regmove (rtx insns)
done = 1;
for (insn = insns; insn; insn = next)
{
- next = NEXT_INSN (insn);
+ next = next_nonnote_nondebug_insn (insn);
if (GET_CODE (insn) != INSN)
continue;
pat = PATTERN (insn);
@@ -5035,7 +5035,7 @@ mep_reorg_regmove (rtx insns)
&& find_regno_note (insn, REG_DEAD, REGNO (SET_SRC (pat)))
&& mep_compatible_reg_class (REGNO (SET_SRC (pat)), REGNO (SET_DEST (pat))))
{
- follow = next_nonnote_insn (insn);
+ follow = next_nonnote_nondebug_insn (insn);
if (dump_file)
fprintf (dump_file, "superfluous moves: considering %d\n", INSN_UID (insn));
@@ -5096,7 +5096,7 @@ mep_reorg_regmove (rtx insns)
follow, where))
{
count ++;
- next = delete_insn (insn);
+ delete_insn (insn);
if (dump_file)
{
fprintf (dump_file, "\n----- Success! new insn:\n\n");