diff options
author | Trevor Saunders <tbsaunde+gcc@tbsaunde.org> | 2016-09-22 13:16:41 +0000 |
---|---|---|
committer | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2016-09-22 13:16:41 +0000 |
commit | 7c9796eddb1a8acbcc8db02276a429cd25d98a7c (patch) | |
tree | 0267556b73019ac1ac180982195b11798af482d9 /gcc/resource.c | |
parent | 1f00691e9b28370c9e9986afc46dd9f7c42024bc (diff) | |
download | gcc-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/resource.c')
-rw-r--r-- | gcc/resource.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/resource.c b/gcc/resource.c index ae2f5d8..1d7ce95 100644 --- a/gcc/resource.c +++ b/gcc/resource.c @@ -1122,7 +1122,7 @@ mark_target_live_regs (rtx_insn *insns, rtx target_maybe_return, struct resource rtx_insn *stop_insn = next_active_insn (jump_insn); if (!ANY_RETURN_P (jump_target)) - jump_target = next_active_insn (jump_target); + jump_target = next_active_insn (as_a<rtx_insn *> (jump_target)); mark_target_live_regs (insns, jump_target, &new_resources); CLEAR_RESOURCE (&set); CLEAR_RESOURCE (&needed); |