re PR rtl-optimization/51044 (gfortran.dg/alloc_comp_class_2.f90 gfortran.dg/widechar_intrinsics_10.f90 -O1 ICE)

PR rtl-optimization/51044
	* dse.c (emit_inc_dec_insn_before): Ensure new_insn is an instruction
	rather than just insn body.

From-SVN: r181861
This commit is contained in:
Jakub Jelinek 2011-11-30 23:02:14 +01:00 committed by Jakub Jelinek
parent 5c43016f2d
commit ed079c4be7
2 changed files with 10 additions and 1 deletions

View File

@ -1,5 +1,9 @@
2011-11-30 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/51044
* dse.c (emit_inc_dec_insn_before): Ensure new_insn is an instruction
rather than just insn body.
PR target/50725
* function.c (thread_prologue_and_epilogue_insns): If
stack_realign_drap, add drap_reg to SET_UP_BY_PROLOGUE

View File

@ -895,7 +895,12 @@ emit_inc_dec_insn_before (rtx mem ATTRIBUTE_UNUSED,
/* We can reuse all operands without copying, because we are about
to delete the insn that contained it. */
if (srcoff)
new_insn = gen_add3_insn (dest, src, srcoff);
{
start_sequence ();
emit_insn (gen_add3_insn (dest, src, srcoff));
new_insn = get_insns ();
end_sequence ();
}
else
new_insn = gen_move_insn (dest, src);
info.first = new_insn;