(find_reloads_address): Properly check for constant address.
authorRichard Kenner <kenner@gcc.gnu.org>
Wed, 23 Sep 1992 23:26:34 +0000 (19:26 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Wed, 23 Sep 1992 23:26:34 +0000 (19:26 -0400)
From-SVN: r2220

gcc/reload.c

index 955af5fb0fd6b7469c5ea49d8ec780be964e65ad..b5f844ba3fa48fb104c6bca769df67e2bf698da7 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.  */