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: Don't allow sibcalls on nested functions


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


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