From: Richard Henderson <rth@redhat.com>
To: Dave Korn <dk@artimi.com>
Cc: gcc@gcc.gnu.org
Subject: Re: How can INITIAL_FRAME_POINTER_OFFSET be made correct?
Date: Fri, 19 Mar 2004 21:02:00 -0000 [thread overview]
Message-ID: <20040319194927.GA26527@redhat.com> (raw)
In-Reply-To: <NUTMEGv5y4FypKsEgJX000001b6@NUTMEG.CAM.ARTIMI.COM>
On Fri, Mar 19, 2004 at 03:30:03PM -0000, Dave Korn wrote:
> INITIAL_FRAME_POINTER_OFFSET is called before the md emit prologue
> function has has a chance to run. So it has to duplicate the exact
> calculations that the prologue function does when it's deciding on the stack
> frame layout for the current function.
Yes. This is true for everyone. Preferred technique is to use a
common function to be used here and in the prologue/epilogue code.
> Is it valid that regs_ever_live[] changes between IFPO and emit_prologue?
No. Whenever reload adds a new spill register, it's supposed to go
back through the allocation loop, which will recompute that offset.
I don't suppose your link register is marked CALL_USED? That's
probably a mistake...
r~
next prev parent reply other threads:[~2004-03-19 19:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-19 16:46 Dave Korn
2004-03-19 16:59 ` Joern Rennecke
2004-03-19 17:55 ` Dave Korn
2004-03-19 18:31 ` Joern Rennecke
2004-03-19 18:41 ` Dave Korn
2004-03-19 18:57 ` Joern Rennecke
2004-03-19 19:49 ` Dave Korn
2004-03-21 18:08 ` Hans-Peter Nilsson
2004-03-19 21:02 ` Richard Henderson [this message]
2004-03-22 17:31 ` Dave Korn
2004-03-22 23:09 ` Richard Henderson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040319194927.GA26527@redhat.com \
--to=rth@redhat.com \
--cc=dk@artimi.com \
--cc=gcc@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).