aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2001-03-12 12:07:59 +0000
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2001-03-12 12:07:59 +0000
commit9909aef5f7f0c8e84697011c96947b9d7831a076 (patch)
treedbe667038a0aa442a836b5775774a2e0228a512a
parent249698338fffae06c4265ac8d039772a2d4f5a39 (diff)
Correctly handle subreg of mem of lo_sum
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-2_95-branch@40407 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/final.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b8761df9f56..fbcb271df23 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/final.c b/gcc/final.c
index a9ae2804dbd..11cfebf3462 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -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;