This is the mail archive of the gcc@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: How can INITIAL_FRAME_POINTER_OFFSET be made correct?


On Fri, 19 Mar 2004, Dave Korn wrote:
> There is no ELIMINABLE_REGS definition, but FRAME_POINTER_REQUIRED is zero
> so gcc can do its default eliminate-lr-vs-sp.

You really want to define ELIMINABLE_REGS when the frame-pointer
can be eliminated and you don't have a separate argument
pointer.  (Make a fake argument pointer which is always
eliminated.)

I'm deliberately hazy on the details, because I don't quite
remember, but playing catch-up with the saved frame-pointer
regarding the offset to the arguments was IIRC key.

The docs may need an update.

brgds, H-P


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