aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgcleanup.c
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde+gcc@tbsaunde.org>2016-09-22 13:16:41 +0000
committerTrevor Saunders <tbsaunde@gcc.gnu.org>2016-09-22 13:16:41 +0000
commit7c9796eddb1a8acbcc8db02276a429cd25d98a7c (patch)
tree0267556b73019ac1ac180982195b11798af482d9 /gcc/cfgcleanup.c
parent1f00691e9b28370c9e9986afc46dd9f7c42024bc (diff)
downloadgcc-7c9796eddb1a8acbcc8db02276a429cd25d98a7c.zip
gcc-7c9796eddb1a8acbcc8db02276a429cd25d98a7c.tar.gz
gcc-7c9796eddb1a8acbcc8db02276a429cd25d98a7c.tar.bz2
make next/prev active_insn and active_insn_p take rtx_insn *
gcc/ChangeLog: 2016-09-22 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *. (prev_active_insn): Likewise. (active_insn_p): Likewise. * rtl.h: Adjust prototypes. * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust. * config/arc/arc.md: Likewise. * config/pa/pa.c (branch_to_delay_slot_p): Likewise. (branch_needs_nop_p): Likewise. (use_skip_p): Likewise. * config/sh/sh.c (gen_block_redirect): Likewise. (split_branches): Likewise. * reorg.c (optimize_skip): Likewise. (fill_simple_delay_slots): Likewise. (fill_slots_from_thread): Likewise. (relax_delay_slots): Likewise. * resource.c (mark_target_live_regs): Likewise. From-SVN: r240361
Diffstat (limited to 'gcc/cfgcleanup.c')
-rw-r--r--gcc/cfgcleanup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c
index 023b9d2..2e2a635 100644
--- a/gcc/cfgcleanup.c
+++ b/gcc/cfgcleanup.c
@@ -708,7 +708,7 @@ merge_blocks_move_successor_nojumps (basic_block a, basic_block b)
/* If there is a jump table following block B temporarily add the jump table
to block B so that it will also be moved to the correct location. */
if (tablejump_p (BB_END (b), &label, &table)
- && prev_active_insn (label) == BB_END (b))
+ && prev_active_insn (as_a<rtx_insn *> (label)) == BB_END (b))
{
BB_END (b) = table;
}