Commit daf40351 by David Malcolm Committed by David Malcolm

stmt.c: Use rtx_insn

gcc/
2014-08-22  David Malcolm  <dmalcolm@redhat.com>

	* stmt.c (expand_case): Strengthen local "before_case" from rtx to
	rtx_insn *.
	(expand_sjlj_dispatch_table): Likewise.

From-SVN: r214383
parent 21f110ce
2014-08-22 David Malcolm <dmalcolm@redhat.com> 2014-08-22 David Malcolm <dmalcolm@redhat.com>
* stmt.c (expand_case): Strengthen local "before_case" from rtx to
rtx_insn *.
(expand_sjlj_dispatch_table): Likewise.
2014-08-22 David Malcolm <dmalcolm@redhat.com>
* stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
"insn" from rtx to rtx_insn *. "insn" from rtx to rtx_insn *.
......
...@@ -1239,7 +1239,7 @@ expand_case (gimple stmt) ...@@ -1239,7 +1239,7 @@ expand_case (gimple stmt)
type, so we should never get a zero here. */ type, so we should never get a zero here. */
gcc_assert (count > 0); gcc_assert (count > 0);
rtx before_case = get_last_insn (); rtx_insn *before_case = get_last_insn ();
/* Decide how to expand this switch. /* Decide how to expand this switch.
The two options at this point are a dispatch table (casesi or The two options at this point are a dispatch table (casesi or
...@@ -1283,7 +1283,7 @@ expand_sjlj_dispatch_table (rtx dispatch_index, ...@@ -1283,7 +1283,7 @@ expand_sjlj_dispatch_table (rtx dispatch_index,
int ncases = dispatch_table.length (); int ncases = dispatch_table.length ();
do_pending_stack_adjust (); do_pending_stack_adjust ();
rtx before_case = get_last_insn (); rtx_insn *before_case = get_last_insn ();
/* Expand as a decrement-chain if there are 5 or fewer dispatch /* Expand as a decrement-chain if there are 5 or fewer dispatch
labels. This covers more than 98% of the cases in libjava, labels. This covers more than 98% of the cases in libjava,
......
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