* loop.c (load_mems): Copy rtx for output mem.
authorRichard Henderson <rth@cygnus.com>
Wed, 9 Sep 1998 13:15:23 +0000 (06:15 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 9 Sep 1998 13:15:23 +0000 (06:15 -0700)
From-SVN: r22357

gcc/ChangeLog
gcc/loop.c

index 852b67748cfc5345415a085b911edc40b31cb4ae..04cfdadbb91ffb4318f572d1f0fe8ce25cee002e 100644 (file)
@@ -1,3 +1,7 @@
+Wed Sep  9 13:14:41 1998  Richard Henderson  <rth@cygnus.com>
+
+       * loop.c (load_mems): Copy rtx for output mem.
+
 Wed Sep  9 15:16:58 1998  Gavin Romig-Koch  <gavin@cygnus.com>
 
        * mips/abi64.h (LONG_MAX_SPEC): Don't set LONG_MAX for
index 63ebd0bbe68d6943c5c013b85339bc94c1a316f1..eae3d7451f4370bfe77aa1ca3f6cab0f1eea4b49 100644 (file)
@@ -8802,7 +8802,7 @@ load_mems (scan_start, end, loop_top, start)
 
                  /* Store the memory immediately after END, which is
                   the NOTE_LOOP_END.  */
-                 set = gen_rtx_SET (GET_MODE (reg), mem, reg); 
+                 set = gen_rtx_SET (GET_MODE (reg), copy_rtx (mem), reg); 
                  emit_insn_after (set, label);
                }