[CFT] re-organize var-tracking frame_base

Steve Ellcey sje@cup.hp.com
Thu Sep 8 20:07:00 GMT 2005


> On Thu, Sep 08, 2005 at 08:44:20AM -0700, Steve Ellcey wrote:
> > Do you need more information to figure out what is going on?
> 
> Yes.
> 
> 
> r~

OK, I am entering eliminate_reg_to_offset with r29, frame_pointer_needed
is set to 1 and hard_frame_pointer_rtx is r3 (stack_pointer_rtx is r30).

It looks like r29 is the ARG_POINTER_REGNUM (on PA32 this is r3, the same
as the FRAME_POINTER_REGNUM.

Steve Ellcey
sje@cup.hp.com




>From pa/pa.h:

/* Register to use for pushing function arguments.  */
#define STACK_POINTER_REGNUM 30

/* Base register for access to local variables of the function.  */
#define FRAME_POINTER_REGNUM 3

/* Base register for access to arguments of the function.  */
#define ARG_POINTER_REGNUM (TARGET_64BIT ? 29 : 3)

/* Register in which static-chain is passed to a function.  */
#define STATIC_CHAIN_REGNUM (TARGET_64BIT ? 31 : 29)



More information about the Gcc-patches mailing list