From 7bb09d158e46c14ec2d55ad0bf92f4abdeeed6c2 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Thu, 9 Sep 2004 21:56:13 +0000 Subject: [PATCH] reload.c (find_reloads_address): Pass correct operand to maybe_memory_address_p. * reload.c (find_reloads_address): Pass correct operand to maybe_memory_address_p. From-SVN: r87254 --- gcc/ChangeLog | 5 +++++ gcc/reload.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 99aab874f9e..34f6e6abc13 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-09-09 Ulrich Weigand + + * reload.c (find_reloads_address): Pass correct operand to + maybe_memory_address_p. + 2004-09-09 Daniel Berlin * Makefile.in: Remove libbanshee, tree-alias-*. diff --git a/gcc/reload.c b/gcc/reload.c index 46b85f7f01f..990cf209613 100644 --- a/gcc/reload.c +++ b/gcc/reload.c @@ -4937,7 +4937,7 @@ find_reloads_address (enum machine_mode mode, rtx *memrefloc, rtx ad, #endif || operand == stack_pointer_rtx) && ! maybe_memory_address_p (mode, ad, - &XEXP (XEXP (ad, 0), op_index))) + &XEXP (XEXP (ad, 0), 1 - op_index))) { rtx offset_reg; rtx addend; -- 2.30.2