OSDN Git Service

(fold_rtx, case MINUS): Copy result obtained from hash table.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Sep 1993 22:13:33 +0000 (22:13 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Sep 1993 22:13:33 +0000 (22:13 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5347 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cse.c

index dd98146..a72e9b9 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);
            }