[PATCH PING 2/5] Named address spaces: support multiple pointer modes
Dmitry Gorbachev
d.g.gorbachev@gmail.com
Sat Nov 14 20:53:00 GMT 2009
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.
More information about the Gcc-patches
mailing list