aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Wilson <wilson@cygnus.com>1998-11-18 16:32:19 +0000
committerJim Wilson <wilson@gcc.gnu.org>1998-11-18 08:32:19 -0800
commit10352226d401ad4958b61bb3124309b387320711 (patch)
tree0cec010e6a6570141ac52e7f210bd65803fff5c3
parentf3f2255a8ce7120d21a2b7616ea53d45004dddea (diff)
downloadgcc-10352226d401ad4958b61bb3124309b387320711.zip
gcc-10352226d401ad4958b61bb3124309b387320711.tar.gz
gcc-10352226d401ad4958b61bb3124309b387320711.tar.bz2
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/reload.c2
2 files changed, 6 insertions, 1 deletions
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 <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
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