This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
adjust_address typo
- To: gcc-patches at gcc dot gnu dot org
- Subject: adjust_address typo
- From: Richard Henderson <rth at twiddle dot net>
- Date: Sun, 9 Sep 2001 02:12:50 -0700
The mode variable contains the mode of the memory; LO_SUM
is of course the address, and should be Pmode.
r~
* emit-rtl.c (adjust_address): Fix mode for LO_SUM.
Index: emit-rtl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/emit-rtl.c,v
retrieving revision 1.201
diff -c -p -d -r1.201 emit-rtl.c
*** emit-rtl.c 2001/08/31 19:28:58 1.201
--- emit-rtl.c 2001/09/09 09:09:03
*************** adjust_address (memref, mode, offset)
*** 1633,1639 ****
&& 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),
plus_constant (XEXP (addr, 1), offset));
else
addr = plus_constant (addr, offset);
--- 1633,1639 ----
&& offset >= 0
&& (unsigned HOST_WIDE_INT) offset
< GET_MODE_ALIGNMENT (GET_MODE (memref)) / BITS_PER_UNIT)
! addr = gen_rtx_LO_SUM (Pmode, XEXP (addr, 0),
plus_constant (XEXP (addr, 1), offset));
else
addr = plus_constant (addr, offset);