From: Bernd Schmidt Date: Mon, 12 Mar 2001 12:07:59 +0000 (+0000) Subject: Correctly handle subreg of mem of lo_sum X-Git-Tag: prereleases/gcc-2.95.3-test5~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cc2d5ef4aedbc5bf093b2da2e394d3ea6726778;p=thirdparty%2Fgcc.git Correctly handle subreg of mem of lo_sum From-SVN: r40407 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b8761df9f56a..fbcb271df23e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-03-12 Bernd Schmidt + + * final.c (alter_subreg): Use plus_constant_for_output to match + what offsettable_address_p does. + 2001-02-19 Bernd Schmidt * version.c: Bump. diff --git a/gcc/final.c b/gcc/final.c index a9ae2804dbde..11cfebf34624 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;