re PR middle-end/33348 (gfortran.dg/g77/19990826-3.f fails at -O1)
authorJan Hubicka <jh@suse.cz>
Mon, 17 Sep 2007 15:12:10 +0000 (17:12 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 17 Sep 2007 15:12:10 +0000 (15:12 +0000)
PR middle-end/33348
PR target/33406
* loop-invariant.c (move_invariant_reg): Unshare sequence.

From-SVN: r128547

gcc/ChangeLog
gcc/loop-invariant.c

index 2099869bbe2ebccb5fb73b56f23c123346ae2db3..dc5f2f53b7f5586c6a23560ef3d269a890bf83ed 100644 (file)
@@ -1,3 +1,9 @@
+2007-09-17  Jan Hubicka  <jh@suse.cz>
+
+       PR middle-end/33348
+       PR target/33406
+       * loop-invariant.c (move_invariant_reg): Unshare sequence.
+
 2007-09-17  Victor Kaplansky  <victork@il.ibm.com>
 
        PR tree-optimization/33319
index d6ca8eb6af0e8887194bd8eb453437609314bd40..91c5d05c6f5aa900965f26d03936bde3a3d67fec 100644 (file)
@@ -1243,6 +1243,7 @@ move_invariant_reg (struct loop *loop, unsigned invno)
          if (op != reg)
            emit_move_insn (reg, op);
          seq = get_insns ();
+         unshare_all_rtl_in_chain (seq);
          end_sequence ();
 
          if (!seq_insns_valid_p (seq))