On Mon, 11 Jul 2016 19:23:24 -0600, "J." García wrote:

> El lun, 11-07-2016 a las 20:47 -0400, [email protected] escribió:
>> On Tue, Jul 12, 2016 at 01:48:37AM +0200, Volker Armin Hemmann wrote
>> 
>> > so it is not turned on on x86. Not sure about amd64. IIRC it is
>> > default
>> > on amd64, but I am not sure and too lazy to google. Just like the
>> > thread
>> > starter.
>> 
>>   Actually, I did Google.  So did another particpant in the Pale Moon
>> forum.  We got different answers, and various other people chimed in.
>> That's why I posted here.  BTW, "gcc -O2 -Q --help=optimizers"
>> returns
>> 
>>   -fomit-frame-pointer                  [disabled]
>> 
>> ...in both my real 64-bit Gentoo install and my 32-bit VM Gentoo.
>> 
> I made a mistake, I didn't ran the 'gcc -Q .." command correctly, a
> typo, so I didn't really checked just got the list of optimizers, but
> checking again I also have it disabled by default:
> 
> $ gcc -c   -march=core2 -O2 -Q --help=optimizers  |\
>               grep fomit-frame-pointer
>   -fomit-frame-pointer                        [disabled]

No, gcc is just lying. See this reddit comment thread for details:
https://www.reddit.com/r/Cprog/comments/2iv09b/frame_pointer_omission_fpo_optimization_and/

Running the 'gcc -v' snippet shows that -fomit-frame-pointer is indeed
enabled by default on amd64.

-h


Reply via email to