From 9815687d8e3044e21be5b17fe155299f67c08a01 Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Wed, 2 Nov 2016 03:46:17 +0000 Subject: [PATCH] remove cast from prev_nonnote_insn_bb gcc/ChangeLog: 2016-11-01 Trevor Saunders * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to rtx_insn *. * rtl.h (prev_nonnote_insn_bb): Adjust prototype. From-SVN: r241773 --- gcc/ChangeLog | 6 ++++++ gcc/emit-rtl.c | 3 +-- gcc/rtl.h | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 00d5a78c1bd..54465213392 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2016-11-01 Trevor Saunders + + * emit-rtl.c (prev_nonnote_insn_bb): Change argument type to + rtx_insn *. + * rtl.h (prev_nonnote_insn_bb): Adjust prototype. + 2016-11-01 Trevor Saunders * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn * diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index a8516ebe84b..e27587b6699 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -3354,9 +3354,8 @@ prev_nonnote_insn (rtx_insn *insn) not look inside SEQUENCEs. */ rtx_insn * -prev_nonnote_insn_bb (rtx uncast_insn) +prev_nonnote_insn_bb (rtx_insn *insn) { - rtx_insn *insn = safe_as_a (uncast_insn); while (insn) { diff --git a/gcc/rtl.h b/gcc/rtl.h index e94e070581d..3bb6a224c09 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -2858,7 +2858,7 @@ extern rtx_call_insn *last_call_insn (void); extern rtx_insn *previous_insn (rtx_insn *); extern rtx_insn *next_insn (rtx_insn *); extern rtx_insn *prev_nonnote_insn (rtx_insn *); -extern rtx_insn *prev_nonnote_insn_bb (rtx); +extern rtx_insn *prev_nonnote_insn_bb (rtx_insn *); extern rtx_insn *next_nonnote_insn (rtx_insn *); extern rtx_insn *next_nonnote_insn_bb (rtx_insn *); extern rtx_insn *prev_nondebug_insn (rtx_insn *); -- 2.30.2