Fix reload problem found by thumb port.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Nov 1998 16:32:19 +0000 (16:32 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Nov 1998 16:32:19 +0000 (16:32 +0000)
* reload.c (find_reloads_toplev): Pass &x instead of NULL_PTR in
find_reloads_address call.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23697 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/reload.c

index 59cb657..9336c23 100644 (file)
@@ -1,3 +1,8 @@
+Wed Nov 18 16:31:28 1998  Jim Wilson  <wilson@cygnus.com>
+
+       * reload.c (find_reloads_toplev): Pass &x instead of NULL_PTR in
+       find_reloads_address call.
+
 Wed Nov 18 22:13:00 1998  J"orn Rennecke <amylaar@cygnus.co.uk>
 
        * expr.c (store_expr): Don't generate load-store pair
index dc1f4e4..0be683e 100644 (file)
@@ -4472,7 +4472,7 @@ find_reloads_toplev (x, opnum, type, ind_levels, is_set_dest, insn)
          addr = plus_constant (addr, offset);
          x = gen_rtx_MEM (GET_MODE (x), addr);
          RTX_UNCHANGING_P (x) = RTX_UNCHANGING_P (regno_reg_rtx[regno]);
-         find_reloads_address (GET_MODE (x), NULL_PTR,
+         find_reloads_address (GET_MODE (x), &x,
                                XEXP (x, 0),
                                &XEXP (x, 0), opnum, type, ind_levels, insn);
          /* If this is not a toplevel operand, find_reloads doesn't see this