(fold_rtx, case MINUS): Copy result obtained from hash table.
authorRichard Kenner <kenner@gcc.gnu.org>
Fri, 17 Sep 1993 22:13:33 +0000 (18:13 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 17 Sep 1993 22:13:33 +0000 (18:13 -0400)
From-SVN: r5347

gcc/cse.c

index dd98146ffa8c469b1367757b565aae920551277b..a72e9b9fa3e7b590d2a15319d57313d520a51382 100644 (file)
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -5215,7 +5215,8 @@ fold_rtx (x, insn)
            {
              rtx y = lookup_as_function (XEXP (x, 0), PLUS);
              if (y && GET_CODE (XEXP (y, 1)) == CONST_INT)
-               return fold_rtx (plus_constant (y, -INTVAL (const_arg1)),
+               return fold_rtx (plus_constant (copy_rtx (y),
+                                               -INTVAL (const_arg1)),
                                 NULL_RTX);
            }