diff options
author | sandra <sandra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-01 18:31:14 +0000 |
---|---|---|
committer | sandra <sandra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-01 18:31:14 +0000 |
commit | 7c88646f1cc573639864efecb932945817428a72 (patch) | |
tree | c469c4e7c65d5ee80381e919b20e7d2745674830 /gcc/reload.c | |
parent | 03a36ba087ba2252140023a085ccaa9dad97d03e (diff) | |
download | gcc-7c88646f1cc573639864efecb932945817428a72.tar.gz |
2007-08-01 Sandra Loosemore <sandra@codesourcery.com>
gcc/
* reload.c (find_reloads_address_part): Pass correct MEMREFLOC
argument to find_reloads_address.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127136 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reload.c')
-rw-r--r-- | gcc/reload.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/reload.c b/gcc/reload.c index 3d594fab34d..0d676a29215 100644 --- a/gcc/reload.c +++ b/gcc/reload.c @@ -5923,10 +5923,8 @@ find_reloads_address_part (rtx x, rtx *loc, enum reg_class class, && (! LEGITIMATE_CONSTANT_P (x) || PREFERRED_RELOAD_CLASS (x, class) == NO_REGS)) { - rtx tem; - - tem = x = force_const_mem (mode, x); - find_reloads_address (mode, &tem, XEXP (tem, 0), &XEXP (tem, 0), + x = force_const_mem (mode, x); + find_reloads_address (mode, &x, XEXP (x, 0), &XEXP (x, 0), opnum, type, ind_levels, 0); } @@ -5939,7 +5937,7 @@ find_reloads_address_part (rtx x, rtx *loc, enum reg_class class, tem = force_const_mem (GET_MODE (x), XEXP (x, 1)); x = gen_rtx_PLUS (GET_MODE (x), XEXP (x, 0), tem); - find_reloads_address (mode, &tem, XEXP (tem, 0), &XEXP (tem, 0), + find_reloads_address (mode, &XEXP (x, 1), XEXP (tem, 0), &XEXP (tem, 0), opnum, type, ind_levels, 0); } |