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: [middle-end] Add machine_mode to address_cost target hook


On Sep  4, 2012, Oleg Endo <oleg.endo@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


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