reload.c (find_reloads_address): Pass correct operand to maybe_memory_address_p.
authorUlrich Weigand <uweigand@de.ibm.com>
Thu, 9 Sep 2004 21:56:13 +0000 (21:56 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Thu, 9 Sep 2004 21:56:13 +0000 (21:56 +0000)
* reload.c (find_reloads_address): Pass correct operand to
maybe_memory_address_p.

From-SVN: r87254

gcc/ChangeLog
gcc/reload.c

index 99aab874f9ef85bc52cb9d2c68779e1326e7fd0f..34f6e6abc134a5ffcb89aeb17d62796b26fd0196 100644 (file)
@@ -1,3 +1,8 @@
+2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * reload.c (find_reloads_address): Pass correct operand to 
+       maybe_memory_address_p.
+
 2004-09-09  Daniel Berlin  <dberlin@dberlin.org>
 
        * Makefile.in: Remove libbanshee, tree-alias-*.
index 46b85f7f01fd4ef7bd1d48e3969eede9d7415a9d..990cf209613f9837958858da5276db846dcc34e1 100644 (file)
@@ -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;