Re: gcc 4.1 -O1 problem

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

 



Hi Kevin,

I think your code is correct, and the GCC 4.1 compiler has a boo-boo.  File
a bug report, please, including the code snippet that reproduces the
suspected bug, what platform, and the command line used to compile the code.
See "Bugs" section on the left column of <http://gcc.gnu.org/>.

Anyway, here's a couple bits of tid (as I understand it):

-O0 disables all optimizations.  The -fenable-something likely don't enable
the specified optimization when -O0 is specified (if there are exceptions,
I'm not aware of them).

-fverbose-asm (with -S or -save-temps) is useful to ascertain what
optimizations are happenings with -O1, -O2, -O3, -Os.

As I understand it, only select optimizations are twiddlible with -f flags,
but not all of the possible optimizations.

HTH,
--Eljay

PS:  twiddlible ... *heh*


[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