This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Don't allow sibcalls on nested functions
- From: Olivier Hainque <hainque at act-europe dot fr>
- To: Richard Henderson <rth at redhat dot com>,Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>, gcc-patches at gcc dot gnu dot org
- Cc: hainque at act-europe dot fr
- Date: Fri, 2 May 2003 13:12:22 +0200
- Subject: Re: Don't allow sibcalls on nested functions
- References: <20030428125251.A12198@rome.int.act-europe.fr> <20030430231737.GL697@redhat.com>
Richard Henderson wrote:
> Ok, I see now, thanks.
You are most welcome.
> Yes, I agree that this can only happen with one nesting depth.
> I also agree that this patch solves the problem.
OK.
> Ideally we'd note if there are any DECL_NONLOCAL_P parameters
> and variables in the outer function, and if there aren't, allow
> the tail-call. This is non-trivial because of having to track
> down all the decls involved.
Agreed.
> An even further refinement would be to note which variables are
> used by which subroutines, but then we're getting into IPA, and
> there's *lots* of things we'd like to be able to do there. ;-)
Indeed :)
Thanks for the feedback.
Olivier