]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* reload.c (find_reloads_address): Fix typo.
authorUlrich Weigand <uweigand@de.ibm.com>
Tue, 17 Nov 2009 16:11:44 +0000 (16:11 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Tue, 17 Nov 2009 16:11:44 +0000 (16:11 +0000)
From-SVN: r154253

gcc/ChangeLog
gcc/reload.c

index 49c55a441a8c94c1f61031b374d0ae9c33a858fb..58ce8e4b89a5245a5e70f6b8115763d800e6d797 100644 (file)
@@ -1,3 +1,7 @@
+2009-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
+       * reload.c (find_reloads_address): Fix typo.
+
 2009-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
 
        * config/spu/spu.c (get_pic_reg): Use LAST_ARG_REGNUM as PIC
index 3333697f2e06053fc8e3acd93c2b7b232b814f71..a7791c2869e2cff93ec5431445bb3a71c616ec08 100644 (file)
@@ -5239,7 +5239,7 @@ find_reloads_address (enum machine_mode mode, rtx *memrefloc, rtx ad,
   if (CONSTANT_P (ad) && ! strict_memory_address_addr_space_p (mode, ad, as))
     {
       enum machine_mode address_mode = GET_MODE (ad);
-      if (ad == VOIDmode)
+      if (address_mode == VOIDmode)
        address_mode = targetm.addr_space.address_mode (as);
 
       /* If AD is an address in the constant pool, the MEM rtx may be shared.