OSDN Git Service

(find_reloads_address): Properly check for constant address.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Sep 1992 23:26:34 +0000 (23:26 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Sep 1992 23:26:34 +0000 (23:26 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2220 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/reload.c

index 955af5f..b5f844b 100644 (file)
@@ -3775,7 +3775,7 @@ find_reloads_address (mode, memrefloc, ad, loc, operand, ind_levels)
 
   /* If constants aren't valid addresses, reload the constant address
      into a register.  */
-  if (CONSTANT_ADDRESS_P (ad) && ! strict_memory_address_p (mode, ad))
+  if (CONSTANT_P (ad) && ! strict_memory_address_p (mode, ad))
     {
       /* If AD is in address in the constant pool, the MEM rtx may be shared.
         Unshare it so we can safely alter it.  */