From 5c8db5b4bf9917ac075b3252503a9ba8da3b88c3 Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Sat, 9 May 2015 04:16:27 +0000 Subject: [PATCH] prev_cc0_setter can take a rtx_insn * gcc/ChangeLog: 2015-05-08 Trevor Saunders * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *. * rtl.h: Adjust. From-SVN: r222944 --- gcc/ChangeLog | 5 +++++ gcc/emit-rtl.c | 4 +--- gcc/rtl.h | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f121a30a7e8..8f97fdc1e6e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-05-08 Trevor Saunders + + * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *. + * rtl.h: Adjust. + 2015-05-08 Trevor Saunders * rtlanal.c (noop_move_p): Change argument type to rtx_insn *. diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index b48f88b5f7c..ad5c8b276bc 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -3572,10 +3572,8 @@ next_cc0_user (rtx uncast_insn) note, it is the previous insn. */ rtx_insn * -prev_cc0_setter (rtx uncast_insn) +prev_cc0_setter (rtx_insn *insn) { - rtx_insn *insn = safe_as_a (uncast_insn); - rtx note = find_reg_note (insn, REG_CC_SETTER, NULL_RTX); if (note) diff --git a/gcc/rtl.h b/gcc/rtl.h index 870559b8733..35a9fbc981a 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -2719,7 +2719,7 @@ extern rtx_insn *prev_active_insn (rtx); extern rtx_insn *next_active_insn (rtx); extern int active_insn_p (const_rtx); extern rtx_insn *next_cc0_user (rtx); -extern rtx_insn *prev_cc0_setter (rtx); +extern rtx_insn *prev_cc0_setter (rtx_insn *); /* In emit-rtl.c */ extern int insn_line (const rtx_insn *); -- 2.30.2