This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: patch for broken thunk on sparc
- From: Alexey Starovoytov <alexey dot starovoytov at sun dot com>
- To: Eric Botcazou <ebotcazou at libertysurf dot fr>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 7 Apr 2006 18:20:39 -0700 (PDT)
- Subject: Re: patch for broken thunk on sparc
On Fri, 7 Apr 2006, Eric Botcazou wrote:
> I think you'll be clobbering the previous frame. We probably need to build a
> dummy frame of SPARC_STACK_ALIGN (FIRST_PARM_OFFSET(0) + 2*UNITS_PER_WORD)
> bytes. And I also think that the offset can simply be STACK_POINTER_OFFSET.
no.
Just check how alloca() works.
With STACK_POINTER_OFFSET you'll write to REG_PARM_STACK_SPACE that can
be used to store parameters.
In other words for -m32 STACK_POINTER_OFFSET = 68, so you'll be storing
to [sp+68] and theoretical callee of such function can use the same space
to store %i0 there with [fp+68].
Alex.