* emit-rtl.c (adjust_address): Fix mode for LO_SUM.
authorRichard Henderson <rth@redhat.com>
Sun, 9 Sep 2001 09:11:05 +0000 (02:11 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Sun, 9 Sep 2001 09:11:05 +0000 (02:11 -0700)
From-SVN: r45495

gcc/ChangeLog
gcc/emit-rtl.c

index dbf705c..bcf8e62 100644 (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.
index d04e3d2..863ad29 100644 (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);