This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: hookize function_arg_callee_copies
- From: Joern Rennecke <joern dot rennecke at superh dot com>
- To: rth at redhat dot com (Richard Henderson), aoliva at redhat dot com (Alexandre Oliva)
- Cc: gcc-patches at gcc dot gnu dot org, joern dot rennecke at superh dot com
- Date: Wed, 15 Sep 2004 17:56:28 +0100 (BST)
- Subject: Re: hookize function_arg_callee_copies
> I realize that we're now in stage 3, but this is preperatory to
> fixing a regression on PA.
>
> Joern, please explain the rationale behind the current formation
> of sh_callee_copies. It looks wrong to me.
This code has actually been written by Alexandre.
It is there for SHcompact support, and the callee copies for SHcompact are
performed by __GCC_shcompact_incoming_args.
However, AFAICS there is a bug here in that TARGET_CALLEE_COPIES will
also return true for some arguments that are passed by reference due to
must_pass_in_stack_var_size on non-SHcompact targets.