OSDN Git Service

* reload.c (find_reloads_address): Fix typo.
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 17 Nov 2009 16:11:44 +0000 (16:11 +0000)
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 17 Nov 2009 16:11:44 +0000 (16:11 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154253 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/reload.c

index 49c55a4..58ce8e4 100644 (file)
@@ -1,5 +1,9 @@
 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
        registers in leaf functions if possible.
 
index 3333697..a7791c2 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.