This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: function arguments offset computation with -fomit-frame-pointer


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]