diff options
author | Trevor Saunders <tbsaunde+gcc@tbsaunde.org> | 2016-11-02 03:46:17 +0000 |
---|---|---|
committer | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2016-11-02 03:46:17 +0000 |
commit | 9815687d8e3044e21be5b17fe155299f67c08a01 (patch) | |
tree | 21e09b5eedeadb467eddf8d1cfcc36465f1e0c5a | |
parent | 2d93cd20051abb91b4bd339da300a6189ed773be (diff) | |
download | gcc-9815687d8e3044e21be5b17fe155299f67c08a01.zip gcc-9815687d8e3044e21be5b17fe155299f67c08a01.tar.gz gcc-9815687d8e3044e21be5b17fe155299f67c08a01.tar.bz2 |
remove cast from prev_nonnote_insn_bb
gcc/ChangeLog:
2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* emit-rtl.c (prev_nonnote_insn_bb): Change argument type to
rtx_insn *.
* rtl.h (prev_nonnote_insn_bb): Adjust prototype.
From-SVN: r241773
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/emit-rtl.c | 3 | ||||
-rw-r--r-- | gcc/rtl.h | 2 |
3 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 00d5a78..5446521 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,11 @@ 2016-11-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> + * 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 <tbsaunde+gcc@tbsaunde.org> + * cfgrtl.c (delete_insn_chain): Change argument type to rtx_insn * and adjust for that. * cfgrtl.h (delete_insn_chain): Adjust prototype. diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index a8516eb..e27587b 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 <rtx_insn *> (uncast_insn); while (insn) { @@ -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 *); |