This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH/RFC] PR target/15130 SH: A tail call optimization problem
- From: Joern Rennecke <joern dot rennecke at superh dot com>
- To: kkojima at rr dot iij4u dot or dot jp (Kaz Kojima)
- Cc: gcc-patches at gcc dot gnu dot org, joern dot rennecke at superh dot com, aoliva at redhat dot com
- Date: Fri, 30 Apr 2004 12:50:55 +0100 (BST)
- Subject: Re: [PATCH/RFC] PR target/15130 SH: A tail call optimization problem
> The appended patch is to take account of this case. It always
> scans registers to get an available register in epilogue case.
It seems to me that this unnecessarily slows down compilation at -O0.
Could you try to use (epilogue_p && flag_optimize_sibling_calls)
instead? This also has the advantage of being more self-documenting.