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: Dale Johannesen <dalej at apple dot com>
- To: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Cc: Dale Johannesen <dalej at apple dot com>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 21 Apr 2003 14:20:59 -0700
- Subject: Re: Don't allow sibcalls on nested functions
On Monday, April 21, 2003, at 02:15 PM, Richard Kenner wrote:
This can't be allowed because of the reason in the comment below.
+ /* If the called function is nested in the current one, it
might access
+ some of the caller's arguments, but could clobber them
beforehand if
+ the argument areas are shared. */
+ || (fndecl && decl_function_context (fndecl) ==
current_function_decl)
Isn't this what check_sibcall_argument_overlap is supposed to be
detecting?
It may need expansion to handle nested functions.