PATCH: Turn on -fomit-frame-pointer by default for 32bit Linux/x86

Daniel Jacobowitz dan@codesourcery.com
Tue Aug 3 14:18:00 GMT 2010


On Tue, Aug 03, 2010 at 07:03:34AM -0700, H.J. Lu wrote:
> > It's hard for us to know all the use cases that this patch will break:
> > there may be many users who unwind the stack by following the call
> > chain, a technique that has worked for many years.  (And was even
> > sanctioned by the ABI, wasn't it?)  We'll know when if push this patch
> > out and hear the screams.
> 
> The psABI never guarantees it. If some code still depends on it today,
> we know how to fix it.

I don't consider this an acceptable position for GCC.  We have
probably millions of users on x86.  We can't make them update
their code because of an environmental change in GCC.  It's not
simple to update code that relies on the frame pointer, and my
experience on people porting from x86 to ARM or MIPS is that many
companies have code which relies on backtracing via the frame pointer.

I am opposed to the patch.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gcc-patches mailing list