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: 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.



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