aboutsummaryrefslogtreecommitdiff
path: root/gcc/resource.c
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2014-08-29 00:09:39 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2014-08-29 00:09:39 +0000
commita79b674bd5bf0fa84e5f8065f63222ceab2ac993 (patch)
treeab17eaeebce68a54ad1fc71b1e452a4517be2116 /gcc/resource.c
parent17f385d8dabbfff8eeb45012d63c8cd232958330 (diff)
downloadgcc-a79b674bd5bf0fa84e5f8065f63222ceab2ac993.zip
gcc-a79b674bd5bf0fa84e5f8065f63222ceab2ac993.tar.gz
gcc-a79b674bd5bf0fa84e5f8065f63222ceab2ac993.tar.bz2
Use rtx_insn in various places in resource.[ch]
gcc/ 2014-08-28 David Malcolm <dmalcolm@redhat.com> * resource.h (clear_hashed_info_for_insn): Strengthen param from rtx to rtx_insn *. (incr_ticks_for_insn): Likewise. (init_resource_info): Likewise. * resource.c (init_resource_info): Likewise. (clear_hashed_info_for_insn): Likewise. (incr_ticks_for_insn): Likewise. * reorg.c (delete_scheduled_jump): Strengthen param "insn" from rtx to rtx_insn *. (steal_delay_list_from_target): Use methods of "seq". (try_merge_delay_insns): Use methods of "merged_insns". (update_block): Strengthen param "insn" from rtx to rtx_insn *. (reorg_redirect_jump): Likewise for param "jump". From-SVN: r214702
Diffstat (limited to 'gcc/resource.c')
-rw-r--r--gcc/resource.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/resource.c b/gcc/resource.c
index eb5374e..607baa0 100644
--- a/gcc/resource.c
+++ b/gcc/resource.c
@@ -1155,7 +1155,7 @@ mark_target_live_regs (rtx_insn *insns, rtx_insn *target, struct resources *res)
This should be invoked before the first call to mark_target_live_regs. */
void
-init_resource_info (rtx epilogue_insn)
+init_resource_info (rtx_insn *epilogue_insn)
{
int i;
basic_block bb;
@@ -1275,7 +1275,7 @@ free_resource_info (void)
/* Clear any hashed information that we have stored for INSN. */
void
-clear_hashed_info_for_insn (rtx insn)
+clear_hashed_info_for_insn (rtx_insn *insn)
{
struct target_info *tinfo;
@@ -1294,7 +1294,7 @@ clear_hashed_info_for_insn (rtx insn)
/* Increment the tick count for the basic block that contains INSN. */
void
-incr_ticks_for_insn (rtx insn)
+incr_ticks_for_insn (rtx_insn *insn)
{
int b = find_basic_block (insn, MAX_DELAY_SLOT_LIVE_SEARCH);