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: [RFC PATCH 4/9] Add TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT target macro


Vladimir Makarov <vmakarov@redhat.com> wrote:
>> 	* lra-constraints.c (process_address_1): Try if target can split
>> 	displacement with targetm.legitimize_address_displacement.
>> 	* target.def (legitimize_address_displacement): New hook.
>> 	* targhooks.c (default_legitimize_address_displacement): New function.
>> 	* targhooks.h (default_legitimize_address_displacement): Declare.
>> 	* config/sh/sh.c (sh_legitimize_address_displacement): New function.
>> 	(TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
>> 	* doc/tm.texi.in (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): New hook.
>> 	* doc/tm.texi: Regenerate.
>>
> 
> It is an interesting solution.
> 
> The patch is ok for me.
> 
> One more thing though.  The patches you propose affect very sensitive
> parts of LRA.  They might break other ports currently using LRA.  If
> it happens, please, revert a breaking patch as I can not be a help
> next 2 weeks.

I'll revert them ASAP if it causes something on trunk.
Thanks for your review!

Regards,
	kaz


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