From a84b4898c1c415bf66f7759eb385384a8676b8df Mon Sep 17 00:00:00 2001 From: Janis Johnson Date: Fri, 11 Jan 2002 23:48:06 +0000 Subject: [PATCH] * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET. From-SVN: r48785 --- gcc/ChangeLog | 4 ++++ gcc/expr.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 933184673fe..2af52c964e9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2002-01-11 Janis Johnson + + * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET. + 2002-01-11 Janis Johnson * doc/rtl.texi (Insns): Fix 2 typos. diff --git a/gcc/expr.c b/gcc/expr.c index d11df993c51..f15897f57a4 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -3730,7 +3730,7 @@ expand_assignment (to, from, want_value, suggest_reg) RTX_UNCHANGING_P (to_rtx) = 1; } - if (! can_address_p (to)) + if (GET_CODE (to_rtx) == MEM && ! can_address_p (to)) { if (to_rtx == orig_to_rtx) to_rtx = copy_rtx (to_rtx);