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/RFC] PR target/15130 SH: A tail call optimization


> 	* config/sh/sh-protos.h (sh_expand_epilogue): Change prototype.
> 	* config/sh/sh.c (output_stack_adjust): Generate a special
> 	push/pop sequence when failing to get a temporary register for
> 	non SHmedia epilogue.
> 	(sh_expand_epilogue): Add an argument to show whether it's for
> 	sibcall or not.  Take the sibcall epilogue into account.
> 	(sh_need_epilogue): Call sh_expand_epilogue with 0.
> 	* config/sh/sh.md (sibcall_epilogue): Call sh_expand_epilogue
> 	with 1.
> 	(epilogue): Call sh_expand_epilogue with 0.

OK.


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