Frame notes for pa.c

Richard Henderson rth@redhat.com
Mon Apr 2 14:38:00 GMT 2001


On Mon, Apr 02, 2001 at 07:07:14PM +1000, Alan Modra wrote:
> It's more than a few tweaks, I think.  pa uses this sort of sequence to
> adjust sp when frames > 8k.
> 
> (set (reg 1) (plus (reg sp) (high (const_int offset))))
> (set (reg sp) (lo_sum (reg 1) (const_int offset)))

Yes, but so does Sparc, MIPS, and others.  It's supposed to work.

> There's also the problem of handling
> (set (reg 1) (reg fp))
> (set (reg fp) (reg sp))
> then storing reg 1 to sp with a post-increment, and noting this as a fp
> store.

This may need special annotation.  But I'd like to reserve 
annotation for when it's unreasonable for the generic code
to figure it out, and not use it for every single frame insn.


r~



More information about the Gcc-patches mailing list