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

Andrew Haley aph@redhat.com
Wed Aug 4 15:54:00 GMT 2010


On 08/04/2010 03:59 PM, Jan Hubicka wrote:
>>
>> So, maybe we need a poll of some of the most popular x86 Linux
>> distributions, such as Debian, Red Hat, SuSe, and Ubuntu?
> 
> I went through the defualt changing discussion at a time we was introducing
> x86-64 port.
> In general, I believe -fomit-frame-pointer by default is win. x86-64
> defaults to this for a while and thus the pain of switching should be limited,
> since most of packages adopted to 64bit world. 

I don't dispute that this is the best default for all new arches.  However,
32-bit x86 is a legacy arch, with a lot of dusty old code.

> Probably the most touchy issue concerning the switch is place where you need
> stack unwinding fast.  This is the case of oprofile and some of garbage collector
> implementations.

Ah, yes.

Andrew.



More information about the Gcc-patches mailing list