inside_basic_block_p requires a const rtx_insn *
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 28 Aug 2014 20:35:42 +0000 (20:35 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Thu, 28 Aug 2014 20:35:42 +0000 (20:35 +0000)
gcc/
2014-08-28  David Malcolm  <dmalcolm@redhat.com>

* 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
gcc/basic-block.h
gcc/cfgbuild.c

index 5fbb47a7e7116d86b41ca1e802a14f8d72ae58ef..3f27e45d0d7d92157e74c65ecd3da761d5218da9 100644 (file)
@@ -1,3 +1,9 @@
+2014-08-28  David Malcolm  <dmalcolm@redhat.com>
+
+       * 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  <dmalcolm@redhat.com>
 
        * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
index a7c88a4d8c1443b25f5c20a68fa222e0f1c6f21b..dd727c2776fcd3677d60db3e67d2c4f6e3a32bb2 100644 (file)
@@ -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);
 
index 475739d7a425e2036033a72aedfcd334b647fedd..028eca16c2bfcc02844c171e8866f4b3d6429415 100644 (file)
@@ -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))
     {