* emit-rtl.c (adjust_address): Fix mode for LO_SUM.

From-SVN: r45495
This commit is contained in:
Richard Henderson 2001-09-09 02:11:05 -07:00 committed by Richard Henderson
parent 5bb08c847f
commit 1650fcade9
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2001-09-09 Richard Henderson <rth@redhat.com>
* emit-rtl.c (adjust_address): Fix mode for LO_SUM.
Sun Sep 9 10:43:17 CEST 2001 Jan Hubicka <jh@suse.cz>
* loop.c (combine_givs): Fix computing of benefit once giv is combined.

View File

@ -1633,7 +1633,7 @@ adjust_address (memref, mode, offset)
&& offset >= 0
&& (unsigned HOST_WIDE_INT) offset
< GET_MODE_ALIGNMENT (GET_MODE (memref)) / BITS_PER_UNIT)
addr = gen_rtx_LO_SUM (mode, XEXP (addr, 0),
addr = gen_rtx_LO_SUM (Pmode, XEXP (addr, 0),
plus_constant (XEXP (addr, 1), offset));
else
addr = plus_constant (addr, offset);