From: Richard Kenner Date: Fri, 17 Sep 1993 22:13:33 +0000 (-0400) Subject: (fold_rtx, case MINUS): Copy result obtained from hash table. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f3becefd609e2ea009838ca4d68a6f2c6645cb19;p=gcc.git (fold_rtx, case MINUS): Copy result obtained from hash table. From-SVN: r5347 --- diff --git a/gcc/cse.c b/gcc/cse.c index dd98146ffa8..a72e9b9fa3e 100644 --- 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); }