This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] __builtin_frame_address(0) doesn't work without the frame pointer
- From: Richard Henderson <rth at redhat dot com>
- To: Denis Zaitsev <zzz at cd-club dot ru>
- Cc: gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Tue, 9 Jul 2002 08:06:30 -0700
- Subject: Re: [PATCH] __builtin_frame_address(0) doesn't work without the frame pointer
- References: <20020708232627.A12540@natasha.zzz.zzz>
On Mon, Jul 08, 2002 at 11:26:27PM +0600, Denis Zaitsev wrote:
> * builtins.c (expand_builtin_frame_address): Fix: use
> frame_pointer_rtx vs. hard_frame_pointer_rtx.
You'll need to test more platforms before we can apply this.
The kind of platform you should look for is one in which the
soft frame pointer eliminates to the hard frame pointer with
an offset -- dunno off the top of my head which would be
appropriate, but you should be able to get an idea by looking
at the target's INITIAL_ELIMINATION_OFFSET implementation.
r~