]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Correctly handle subreg of mem of lo_sum
authorBernd Schmidt <bernds@redhat.co.uk>
Mon, 12 Mar 2001 12:07:59 +0000 (12:07 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Mon, 12 Mar 2001 12:07:59 +0000 (12:07 +0000)
From-SVN: r40407

gcc/ChangeLog
gcc/final.c

index b8761df9f56aa3353ecbfc43b789dcc1a3ba52d7..fbcb271df23e7491125b33e96b2bb7290abcce96 100644 (file)
@@ -1,3 +1,8 @@
+2001-03-12  Bernd Schmidt  <bernds@redhat.co.uk>
+
+       * final.c (alter_subreg): Use plus_constant_for_output to match
+       what offsettable_address_p does.
+
 2001-02-19  Bernd Schmidt  <bernds@redhat.co.uk>
 
        * version.c: Bump.
index a9ae2804dbdee8e22576d698797073555065f67e..11cfebf346244304379e4c92bb35dc76cdcd05d7 100644 (file)
@@ -3103,7 +3103,7 @@ alter_subreg (x)
       PUT_CODE (x, MEM);
       MEM_COPY_ATTRIBUTES (x, y);
       MEM_ALIAS_SET (x) = MEM_ALIAS_SET (y);
-      XEXP (x, 0) = plus_constant (XEXP (y, 0), offset);
+      XEXP (x, 0) = plus_constant_for_output (XEXP (y, 0), offset);
     }
 
   return x;