mirror of
https://gcc.gnu.org/git/gcc.git
synced 2026-02-22 12:00:03 -05:00
Correctly handle subreg of mem of lo_sum
From-SVN: r40407
This commit is contained in:
committed by
Bernd Schmidt
parent
e8cbc2e256
commit
5cc2d5ef4a
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user