* expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
authorJanis Johnson <janis187@us.ibm.com>
Fri, 11 Jan 2002 23:48:06 +0000 (23:48 +0000)
committerJanis Johnson <janis@gcc.gnu.org>
Fri, 11 Jan 2002 23:48:06 +0000 (23:48 +0000)
From-SVN: r48785

gcc/ChangeLog
gcc/expr.c

index 933184673fe5892309c08329e9628f1816d3c254..2af52c964e90ed61feb15dbcb1f6995690883a55 100644 (file)
@@ -1,3 +1,7 @@
+2002-01-11  Janis Johnson  <janis187@us.ibm.com>
+
+       * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
+
 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
 
        * doc/rtl.texi (Insns): Fix 2 typos.
index d11df993c51bdf8d3907476cbc60f880620ccf15..f15897f57a4efff626d84f3219e22f986bced0c9 100644 (file)
@@ -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);