This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: function arguments offset computation with -fomit-frame-pointer
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: Hans-Peter Nilsson <hp at bitrange dot com>, Bernardo Innocenti <bernie at develer dot com>, gcc at gcc dot gnu dot org, Richard dot Earnshaw at arm dot com
- Date: Wed, 09 Jul 2003 14:11:58 +0100
- Subject: Re: function arguments offset computation with -fomit-frame-pointer
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
>
> On Wednesday, Jul 9, 2003, at 08:26 US/Eastern, Hans-Peter Nilsson
> wrote:
>
> > On Wed, 9 Jul 2003, Bernardo Innocenti wrote:
> >> However, there must be still a bug somewhere because a Linux kernel
> >> compiled with -fomit-frame-pointer crashes with bus errors in a place
> >> I cannot reach with the debugger.
> >
> > Please arrange to run the GCC test-suite instead. It's usually
> > simpler than debugging crashed kernels.
>
> I think the crash is because Linux depends on __builtin_frame_pointer
> which gives
> the wrong value if you use -fomit-frame-pointer; there is already a bug
> filed
> against gcc for that.
>
> Thanks,
> Andrew Pinski
>
I think you must mean __builtin_frame_address(). There is no
__builtin_frame_pointer() function.
R.