summaryrefslogtreecommitdiff
path: root/gcc/reload.c
diff options
context:
space:
mode:
authoralehotsky <alehotsky@138bc75d-0d04-0410-961f-82ee72b054a4>2002-06-14 01:41:53 +0000
committeralehotsky <alehotsky@138bc75d-0d04-0410-961f-82ee72b054a4>2002-06-14 01:41:53 +0000
commite9bf6953f63139703b659e1ca8c52e4e4681bcbe (patch)
treec2bdcea93bb398d1eabce0d415547b367eef0fb4 /gcc/reload.c
parent5c43f6507ecf553d86638bb5b318babcb6aaeec3 (diff)
downloadgcc-e9bf6953f63139703b659e1ca8c52e4e4681bcbe.tar.gz
pass MEM reference to find_reloads_address
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54604 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reload.c')
-rw-r--r--gcc/reload.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/reload.c b/gcc/reload.c
index 6a18245f941..72e1674008f 100644
--- a/gcc/reload.c
+++ b/gcc/reload.c
@@ -644,7 +644,7 @@ get_secondary_mem (x, mode, opnum, type)
: type == RELOAD_FOR_OUTPUT ? RELOAD_FOR_OUTPUT_ADDRESS
: RELOAD_OTHER);
- find_reloads_address (mode, (rtx*) 0, XEXP (loc, 0), &XEXP (loc, 0),
+ find_reloads_address (mode, &loc, XEXP (loc, 0), &XEXP (loc, 0),
opnum, type, 0, 0);
}
@@ -4594,9 +4594,9 @@ find_reloads_address (mode, memrefloc, ad, loc, opnum, type, ind_levels, insn)
tem = make_memloc (ad, regno);
if (! strict_memory_address_p (GET_MODE (tem), XEXP (tem, 0)))
{
- find_reloads_address (GET_MODE (tem), (rtx*) 0, XEXP (tem, 0),
- &XEXP (tem, 0), opnum, ADDR_TYPE (type),
- ind_levels, insn);
+ find_reloads_address (GET_MODE (tem), &tem, XEXP (tem, 0),
+ &XEXP (tem, 0), opnum,
+ ADDR_TYPE (type), ind_levels, insn);
}
/* We can avoid a reload if the register's equivalent memory
expression is valid as an indirect memory address.
@@ -5324,7 +5324,7 @@ find_reloads_address_1 (mode, x, context, loc, opnum, type, ind_levels, insn)
We can't use ADDR_TYPE (type) here, because we need to
write back the value after reading it, hence we actually
need two registers. */
- find_reloads_address (GET_MODE (tem), 0, XEXP (tem, 0),
+ find_reloads_address (GET_MODE (tem), &tem, XEXP (tem, 0),
&XEXP (tem, 0), opnum,
RELOAD_OTHER,
ind_levels, insn);