From: wilson Date: Wed, 18 Nov 1998 16:32:19 +0000 (+0000) Subject: Fix reload problem found by thumb port. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c7ac7ebb94846fe3b598e38e02f2e80c8cb9630f;p=platform%2Fupstream%2Flinaro-gcc.git Fix reload problem found by thumb port. * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 59cb657..9336c23 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Wed Nov 18 16:31:28 1998 Jim Wilson + + * 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 * expr.c (store_expr): Don't generate load-store pair diff --git a/gcc/reload.c b/gcc/reload.c index dc1f4e4..0be683e 100644 --- a/gcc/reload.c +++ b/gcc/reload.c @@ -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