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 17:16, Peter Barada 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. I don't have strong evidence on
 > > this, but I believe one function gets its parameters from the wrong
 > > sp offset.
 >
 > Check to see if you have the following change:
 > [...]

 Yes, I do have it. I've already picked it up from your gcc 3.2.3 patches.

 > I found this necessary to fix a problem with -fomit-frame-pointer on
 > ColdFire where gcc had an off-by-four bug when accessing parameters.

 But does -fomit-frame-pointer work on your gcc 3.3 tree? My guess is
that it didn't because of a mismatch between computations done at
prologue and epilogue emission time.


 > http://gcc.gnu.org/ml/gcc/2002-04/msg00009.html

 Hmmm... interesting thread! Thank you.

 It's sad I can't try compiling with -O0 because the Linux kernel
absolutely requires inlining.

-- 
  // 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]