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: Why doesn't -fomit-frame-pointer work(very well)?


On Wed, Apr 03, 2002 at 02:25:09PM -0500, Peter Barada wrote:
> 1) Bump FIRST_PSEUDO_REGISTER by two.
> 2) define FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM to be the
>    new pseudo-registers

Actually, you can leave FRAME_POINTER_REGNUM == ARG_POINTER_REGNUM
as you do currently.  

> 3) Define HARD_FRAME_POINTER_REGNUM to be the *real* frame pointer
> 4) Add the two new names "*frame" and "*arg" to REGISTER_NAMES
> 5) Add ELIMINABLE_REGS (clone from i386.h)
> 6) Add CAN_ELIMINATE (clone from i386.h)
> 
> Can I use the default INITIAL_ELIMINATION_OFFSET in reload1.c, od do I
> have to create my own for m68k?

Err, there is no default.  You have to provide your own.

> Is there anything else that I'm missing?

I don't think so.


r~


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