From 475edec07057725e0ace3868590ce7dbcef1f822 Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Thu, 22 Sep 2016 13:17:34 +0000 Subject: [PATCH] make next_cc0_user take rtx_insn * gcc/ChangeLog: 2016-09-22 Trevor Saunders * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *. * rtl.h: Adjust prototype. From-SVN: r240362 --- 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 9a52dc4372c..0262329ec89 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-09-22 Trevor Saunders + + * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *. + * rtl.h: Adjust prototype. + 2016-09-22 Trevor Saunders * emit-rtl.c (next_active_insn): Change argument type to diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 54032870535..2d6d1eb6c13 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -3540,10 +3540,8 @@ prev_active_insn (rtx_insn *insn) Return 0 if we can't find the insn. */ rtx_insn * -next_cc0_user (rtx uncast_insn) +next_cc0_user (rtx_insn *insn) { - rtx_insn *insn = safe_as_a (uncast_insn); - rtx note = find_reg_note (insn, REG_CC_USER, NULL_RTX); if (note) diff --git a/gcc/rtl.h b/gcc/rtl.h index 22ee2e6ab94..ce1131bd791 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -2847,7 +2847,7 @@ extern rtx_insn *next_real_insn (rtx); extern rtx_insn *prev_active_insn (rtx_insn *); extern rtx_insn *next_active_insn (rtx_insn *); extern int active_insn_p (const rtx_insn *); -extern rtx_insn *next_cc0_user (rtx); +extern rtx_insn *next_cc0_user (rtx_insn *); extern rtx_insn *prev_cc0_setter (rtx_insn *); /* In emit-rtl.c */ -- 2.30.2