This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

adjust_address typo


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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]