On Sep 4, 2012, Oleg Endo <oleg.e...@t-online.de> wrote: > * config/mn10300/mn10300.c (mn10300_address_cost): Add > machine_mode and address space arguments. Use GET_MODE (x) and > ADDR_SPACE_GENERIC in recursive invocation.
Ok with a change, see below. > * config/sh/sh.c (sh_address_cost): Likewise. Ok, thanks. > Index: gcc/config/mn10300/mn10300.c > - total = mn10300_address_cost (XEXP (x, 0), speed); > + total = mn10300_address_cost (XEXP (x, 0), GET_MODE (x), > + ADDR_SPACE_GENERIC, speed); Instead of ADDR_SPACE_GENERIC, this should be MEM_ADDR_SPACE (x), no? -- Alexandre Oliva, freedom fighter http://FSFLA.org/~lxoliva/ You must be the change you wish to see in the world. -- Gandhi Be Free! -- http://FSFLA.org/ FSF Latin America board member Free Software Evangelist Red Hat Brazil Compiler Engineer