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: Bernardo Innocenti <bernie at develer dot com>
- To: Richard dot Earnshaw at arm dot com,Richard Earnshaw <rearnsha at arm dot com>,Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: Hans-Peter Nilsson <hp at bitrange dot com>,gcc at gcc dot gnu dot org
- Date: Wed, 9 Jul 2003 19:56:56 +0200
- Subject: Re: function arguments offset computation with -fomit-frame-pointer
- Organization: Develer
- References: <200307091311.h69DBxi30272@pc960.cambridge.arm.com>
On Wednesday 09 July 2003 15:11, Richard Earnshaw wrote:
> > 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.
>
> I think you must mean __builtin_frame_address(). There is no
> __builtin_frame_pointer() function.
It's not that. I grepped the linux 2.5.74 sources and the only
place where it's ever used is arch/um/ (User Mode Linux).
Are you sure it was there? Where exactly? Perhaps they replaced
__builtin_frame_pointer() with an assembly inline that doesn't work
with -fomit-frame-pointer.
--
// Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/ http://www.develer.com/
Please don't send Word attachments - http://www.gnu.org/philosophy/no-word-attachments.html