From e4685bc8caf5da2142eabeda9536567b1ea7bc12 Mon Sep 17 00:00:00 2001 From: Trevor Saunders Date: Thu, 4 Sep 2014 21:11:23 +0000 Subject: Change the types of arguments and return values for several functions from rtx to rtx_insn * gcc/ChangeLog: 2014-09-04 Trevor Saunders * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of rtx. (get_last_nonnote_insn): Likewise. (next_nonnote_insn_bb): Take rtx_insn * instead of rtx. * resource.c (find_basic_block): Likewise. * rtl.h: Adjust. * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of const_rtx. From-SVN: r214922 --- gcc/rtlanal.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gcc/rtlanal.c') diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 080a14f..9b554e2 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -3800,7 +3800,7 @@ find_first_parameter_load (rtx_insn *call_insn, rtx_insn *boundary) call instruction. */ bool -keep_with_call_p (const_rtx insn) +keep_with_call_p (const rtx_insn *insn) { rtx set; @@ -3824,7 +3824,8 @@ keep_with_call_p (const_rtx insn) /* This CONST_CAST is okay because next_nonnote_insn just returns its argument and we assign it to a const_rtx variable. */ - const rtx_insn *i2 = next_nonnote_insn (CONST_CAST_RTX (insn)); + const rtx_insn *i2 + = next_nonnote_insn (const_cast (insn)); if (i2 && keep_with_call_p (i2)) return true; } -- cgit v1.1