This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] __builtin_frame_address(0) doesn't work without the frame pointer
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: Richard dot Earnshaw at arm dot com, David Edelsohn <dje at watson dot ibm dot com>, Denis Zaitsev <zzz at cd-club dot ru>, gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Wed, 10 Jul 2002 15:56:21 +0100
- Subject: Re: [PATCH] __builtin_frame_address(0) doesn't work without the frame pointer
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> On Tue, Jul 09, 2002 at 06:11:17PM +0100, Richard Earnshaw wrote:
> > ARM certainly does. But that has special code to copy the return address
> > for frame 0 into a pseudo if the return address is needed.
>
> We're talking about __builtin_frame_address, not
> __builtin_return_address.
>
Ooops. Then the ARM is definitely a candidate, since it has a variable
offset between frame_pointer_rtx and hard_frame_pointer_rtx which depends
on the number of registers that require saving.
R.