How can INITIAL_FRAME_POINTER_OFFSET be made correct?
Hans-Peter Nilsson
hp@bitrange.com
Sun Mar 21 18:08:00 GMT 2004
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
More information about the Gcc
mailing list