This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH PING 2/5] Named address spaces: support multiple pointer modes


There seems to be a mistake in find_reloads_address(). Shouldn't it be so:

--- gcc/reload.c
+++ gcc/reload.c
@@ -5239,7 +5239,7 @@
   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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]