This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH 223/236] inside_basic_block_p requires a const rtx_insn *
- From: David Malcolm <dmalcolm at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: David Malcolm <dmalcolm at redhat dot com>
- Date: Wed, 6 Aug 2014 13:23:22 -0400
- Subject: [PATCH 223/236] inside_basic_block_p requires a const rtx_insn *
- Authentication-results: sourceware.org; auth=none
- References: <1407345815-14551-1-git-send-email-dmalcolm at redhat dot com>
gcc/
* basic-block.h (inside_basic_block_p): Strengthen param from
const_rtx to const rtx_insn *.
* cfgbuild.c (inside_basic_block_p): Likewise.
---
gcc/basic-block.h | 2 +-
gcc/cfgbuild.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/basic-block.h b/gcc/basic-block.h
index b96c28a..b527f9e 100644
--- a/gcc/basic-block.h
+++ b/gcc/basic-block.h
@@ -819,7 +819,7 @@ extern int flow_find_head_matching_sequence (basic_block, basic_block,
extern bool delete_unreachable_blocks (void);
extern void update_br_prob_note (basic_block);
-extern bool inside_basic_block_p (const_rtx);
+extern bool inside_basic_block_p (const rtx_insn *);
extern bool control_flow_insn_p (const_rtx);
extern rtx_insn *get_last_bb_insn (basic_block);
diff --git a/gcc/cfgbuild.c b/gcc/cfgbuild.c
index 082f070..ab268ae 100644
--- a/gcc/cfgbuild.c
+++ b/gcc/cfgbuild.c
@@ -44,7 +44,7 @@ static void compute_outgoing_frequencies (basic_block);
block. */
bool
-inside_basic_block_p (const_rtx insn)
+inside_basic_block_p (const rtx_insn *insn)
{
switch (GET_CODE (insn))
{
--
1.8.5.3