From 43f9bab0d2cd6716c44b6bc69ec2bf17c656154d Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Mon, 8 Sep 2014 20:52:19 +0000 Subject: [PATCH] control_flow_insn_p takes an insn gcc/ChangeLog: 2014-09-08 David Malcolm * basic-block.h (control_flow_insn_p): Strengthen param from const_rtx to const rtx_insn *. * cfgbuild.c (control_flow_insn_p): Likewise. From-SVN: r215028 --- gcc/ChangeLog | 6 ++++++ gcc/basic-block.h | 2 +- gcc/cfgbuild.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 10b3f85c56e..f58a3c9c590 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-09-08 David Malcolm + + * basic-block.h (control_flow_insn_p): Strengthen param from + const_rtx to const rtx_insn *. + * cfgbuild.c (control_flow_insn_p): Likewise. + 2014-09-08 David Malcolm * gcse.c (modify_mem_list): Strengthen this variable from diff --git a/gcc/basic-block.h b/gcc/basic-block.h index fb1c498bb5d..5bd37c9e3f6 100644 --- a/gcc/basic-block.h +++ b/gcc/basic-block.h @@ -821,7 +821,7 @@ extern bool delete_unreachable_blocks (void); extern void update_br_prob_note (basic_block); extern bool inside_basic_block_p (const rtx_insn *); -extern bool control_flow_insn_p (const_rtx); +extern bool control_flow_insn_p (const rtx_insn *); extern rtx_insn *get_last_bb_insn (basic_block); /* In dominance.c */ diff --git a/gcc/cfgbuild.c b/gcc/cfgbuild.c index 028eca16c2b..e5ac8d636e7 100644 --- a/gcc/cfgbuild.c +++ b/gcc/cfgbuild.c @@ -73,7 +73,7 @@ inside_basic_block_p (const rtx_insn *insn) the basic block. */ bool -control_flow_insn_p (const_rtx insn) +control_flow_insn_p (const rtx_insn *insn) { switch (GET_CODE (insn)) { -- 2.30.2