summaryrefslogtreecommitdiff
path: root/gcc/dse.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2011-11-30 23:02:14 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2011-11-30 23:02:14 +0100
commited079c4be707a95d7b935f1bf0f66bf47df93d30 (patch)
treed00ee2822a96e1d35cb8e1875c119f72d75d16c3 /gcc/dse.c
parent5c43016f2d1bdbf9ac2be60fcec6209d4f12416e (diff)
downloadgcc-ed079c4be707a95d7b935f1bf0f66bf47df93d30.tar.gz
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
Diffstat (limited to 'gcc/dse.c')
-rw-r--r--gcc/dse.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/dse.c b/gcc/dse.c
index ddabd3de0c6..13d2f27ca23 100644
--- a/gcc/dse.c
+++ b/gcc/dse.c
@@ -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;