Commit 636eb204 by David Malcolm Committed by David Malcolm

get_last_bb_insn returns an rtx_insn

2014-08-21  David Malcolm  <dmalcolm@redhat.com>

	* basic-block.h (get_last_bb_insn): Strengthen return type from
	rtx to rtx_insn *.
	* cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
	end".

From-SVN: r214246
parent 18767f65
2014-08-21 David Malcolm <dmalcolm@redhat.com>
* basic-block.h (get_last_bb_insn): Strengthen return type from
rtx to rtx_insn *.
* cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
end".
2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org> 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR fortran/44054 PR fortran/44054
......
...@@ -831,7 +831,7 @@ extern bool delete_unreachable_blocks (void); ...@@ -831,7 +831,7 @@ extern bool delete_unreachable_blocks (void);
extern void update_br_prob_note (basic_block); extern void update_br_prob_note (basic_block);
extern bool inside_basic_block_p (const_rtx); extern bool inside_basic_block_p (const_rtx);
extern bool control_flow_insn_p (const_rtx); extern bool control_flow_insn_p (const_rtx);
extern rtx get_last_bb_insn (basic_block); extern rtx_insn *get_last_bb_insn (basic_block);
/* In dominance.c */ /* In dominance.c */
......
...@@ -2237,12 +2237,12 @@ update_br_prob_note (basic_block bb) ...@@ -2237,12 +2237,12 @@ update_br_prob_note (basic_block bb)
/* Get the last insn associated with block BB (that includes barriers and /* Get the last insn associated with block BB (that includes barriers and
tablejumps after BB). */ tablejumps after BB). */
rtx rtx_insn *
get_last_bb_insn (basic_block bb) get_last_bb_insn (basic_block bb)
{ {
rtx_jump_table_data *table; rtx_jump_table_data *table;
rtx tmp; rtx_insn *tmp;
rtx end = BB_END (bb); rtx_insn *end = BB_END (bb);
/* Include any jump table following the basic block. */ /* Include any jump table following the basic block. */
if (tablejump_p (end, NULL, &table)) if (tablejump_p (end, NULL, &table))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment