Correctly handle subreg of mem of lo_sum

From-SVN: r40407
This commit is contained in:
Bernd Schmidt
2001-03-12 12:07:59 +00:00
committed by Bernd Schmidt
parent e8cbc2e256
commit 5cc2d5ef4a
2 changed files with 6 additions and 1 deletions

View 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.

View 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;