* reload1.c (reload_as_needed): Duplicate oldpat.
authorMomchil Velikov <velco@fadata.bg>
Sat, 20 Jul 2002 01:30:31 +0000 (04:30 +0300)
committerRichard Henderson <rth@gcc.gnu.org>
Sat, 20 Jul 2002 01:30:31 +0000 (18:30 -0700)
From-SVN: r55600

gcc/ChangeLog
gcc/reload1.c

index 8fd107b810741389c0e8ef9955744826f745560d..09726504cb714166696b4e1fee59fea8825b960f 100644 (file)
@@ -1,3 +1,7 @@
+2002-07-19  Momchil Velikov <velco@fadata.bg>
+
+       * reload1.c (reload_as_needed): Duplicate oldpat.
+
 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
 
        PR optimization/7130
index 698c23c4ed2076f72a36b6de4c48ea071d95bd17..5b74bed546d8d2d570cd177715a9f3d6fd1a80a5 100644 (file)
@@ -3842,7 +3842,7 @@ reload_as_needed (live_known)
 
       else if (INSN_P (insn))
        {
-         rtx oldpat = PATTERN (insn);
+         rtx oldpat = copy_rtx (PATTERN (insn));
 
          /* If this is a USE and CLOBBER of a MEM, ensure that any
             references to eliminable registers have been removed.  */