This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Stack offset computation for incoming arguments.
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Umesh Kalappa <umesh dot kalappa0 at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Sat, 31 May 2014 17:07:38 +0200
- Subject: Re: Stack offset computation for incoming arguments.
- Authentication-results: sourceware.org; auth=none
- References: <CAGfacvS4QU2ea+kCX-KNznHEHoFNpaaia8f+csHnS9ovsKtCaA at mail dot gmail dot com> <4330696 dot ZX4qTJfKgN at polaris> <CAGfacvQk4TehQWp-zjA6qe3B26ZNeTrbxB1Lm9CjewYZNFzzfg at mail dot gmail dot com>
> Really Appreciate your reply here and made the following changes like
>
> #define ARG_POINTER_REGNUM 8 //Fake hard reg
> #define FRAME _POINTER_REGNUM 9 // Fake hard reg
> #define SP_REG 10
>
> #define ELIMINABLE_REGS { {ARG_POINTER_REGNUM,STACK_POINTER_REGNUM}, \
> {ARG_POINTER_REGNUM, FRAME_POINTER_REGNUM}, \
> {FRAME_POINTER_REGNUM, STACK_POINTER_REGNUM} }
I don't understand these changes at all.
> The ARG and FRAME reg are not marked as fixed regs ,but marked as
> call used regs respectively.
If they are fake, you ought to mark them as fixed.
> Please help us regrading with any hints ??
Look at existing ports in the tree with an equivalent setup.
--
Eric Botcazou