From 10352226d401ad4958b61bb3124309b387320711 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Wed, 18 Nov 1998 16:32:19 +0000 Subject: [PATCH] Fix reload problem found by thumb port. * reload.c (find_reloads_toplev): Pass &x instead of NULL_PTR in find_reloads_address call. From-SVN: r23697 --- gcc/ChangeLog | 5 +++++ gcc/reload.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 59cb65708b3..9336c23b194 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 dc1f4e44b32..0be683e3537 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