aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtlanal.c
diff options
context:
space:
mode:
authorTrevor Saunders <tsaunders@mozilla.com>2014-09-04 21:11:23 +0000
committerTrevor Saunders <tbsaunde@gcc.gnu.org>2014-09-04 21:11:23 +0000
commite4685bc8caf5da2142eabeda9536567b1ea7bc12 (patch)
tree041af499cfb38c8d2e0f9c0e336413c18a5dd923 /gcc/rtlanal.c
parentb28e4e44278bfe2872cc8ca9b4dc623c5df6523d (diff)
downloadgcc-e4685bc8caf5da2142eabeda9536567b1ea7bc12.zip
gcc-e4685bc8caf5da2142eabeda9536567b1ea7bc12.tar.gz
gcc-e4685bc8caf5da2142eabeda9536567b1ea7bc12.tar.bz2
Change the types of arguments and return values for several functions from rtx to rtx_insn *
gcc/ChangeLog: 2014-09-04 Trevor Saunders <tsaunders@mozilla.com> * 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
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r--gcc/rtlanal.c5
1 files changed, 3 insertions, 2 deletions
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<rtx_insn *> (insn));
if (i2 && keep_with_call_p (i2))
return true;
}