patch for broken thunk on sparc

Alexey Starovoytov alexey.starovoytov@sun.com
Sat Apr 8 01:20:00 GMT 2006


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.




More information about the Gcc-patches mailing list