Re: Program fails when optimizing for speed under gcc 4.6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2011/12/20 kevin diggs <diggskevin38@xxxxxxxxx>:
>
> Hi,
>
> Can you use 'O1 -fno-omit-frame-pointer'? Does O1 enable
> omit-frame-pointer? You can also try -fverbose-asm to see the list of
> -f options that are passed to cc1 (only useful in a -S compile). Maybe
> you can look for the culprit that is haunting your code that way?
>
> kevin

Hi kevin,

Thanks to pointing this out. From gcc 4.6.2 manual:

"Starting with GCC version 4.6, the default setting (when not
optimizing for size) for 32-bit Linux x86 and 32-bit Darwin x86
targets has been changed to -fomit-frame-pointer. The default can be
reverted to -fno-omit-frame-pointer by configuring GCC with the
--enable-frame-pointer configure option."

I am out of office now. Tomorrow I will test compiling with
-fno-omit-frame-pointer. Thanks again.

-- 
Best Regards,
Wander Lairson Costa


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux