From f3becefd609e2ea009838ca4d68a6f2c6645cb19 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 17 Sep 1993 18:13:33 -0400 Subject: [PATCH] (fold_rtx, case MINUS): Copy result obtained from hash table. From-SVN: r5347 --- gcc/cse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.30.2