This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: How can INITIAL_FRAME_POINTER_OFFSET be made correct?
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: Dave Korn <dk at artimi dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 21 Mar 2004 11:03:35 -0500 (EST)
- Subject: RE: How can INITIAL_FRAME_POINTER_OFFSET be made correct?
- References: <NUTMEGFRaqbC8wSA1Xv000001ba@NUTMEG.CAM.ARTIMI.COM>
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