aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-10-27 23:22:38 +0000
committerRichard Stallman <rms@gnu.org>1993-10-27 23:22:38 +0000
commit0af62b41cdf34768bec569d3a4d0ff7f6cada9a3 (patch)
treea8e58f2b7e7dbc7b61cf5b0598ccc2446b2a24d8
parent281ec92f7e7888aad2781d28cea88d98b01c432e (diff)
downloadgcc-0af62b41cdf34768bec569d3a4d0ff7f6cada9a3.zip
gcc-0af62b41cdf34768bec569d3a4d0ff7f6cada9a3.tar.gz
gcc-0af62b41cdf34768bec569d3a4d0ff7f6cada9a3.tar.bz2
(cse_insn): When using src_related, copy the rtx.
Likewise for src_eqv_here. From-SVN: r5922
-rw-r--r--gcc/cse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cse.c b/gcc/cse.c
index ade0532..46806b3 100644
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -6403,9 +6403,9 @@ cse_insn (insn, in_libcall_block)
trial = src, src_cost = 10000;
else if (src_eqv_cost <= src_related_cost
&& src_eqv_cost <= src_elt_cost)
- trial = src_eqv_here, src_eqv_cost = 10000;
+ trial = copy_rtx (src_eqv_here), src_eqv_cost = 10000;
else if (src_related_cost <= src_elt_cost)
- trial = src_related, src_related_cost = 10000;
+ trial = copy_rtx (src_related), src_related_cost = 10000;
else
{
trial = copy_rtx (elt->exp);