From eefc72edb9c02055bd244c379761013ff0418c38 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Thu, 28 Aug 2014 20:35:42 +0000 Subject: [PATCH] inside_basic_block_p requires a const rtx_insn * gcc/ 2014-08-28 David Malcolm * basic-block.h (inside_basic_block_p): Strengthen param from const_rtx to const rtx_insn *. * cfgbuild.c (inside_basic_block_p): Likewise. From-SVN: r214691 --- 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 5fbb47a7e71..3f27e45d0d7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-08-28 David Malcolm + + * basic-block.h (inside_basic_block_p): Strengthen param from + const_rtx to const rtx_insn *. + * cfgbuild.c (inside_basic_block_p): Likewise. + 2014-08-28 David Malcolm * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to diff --git a/gcc/basic-block.h b/gcc/basic-block.h index a7c88a4d8c1..dd727c2776f 100644 --- a/gcc/basic-block.h +++ b/gcc/basic-block.h @@ -822,7 +822,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 475739d7a42..028eca16c2b 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)) { -- 2.30.2