In in sys-devel/gcc-4.4.4-r1, the "man gcc" paragraph about -O3 is: Optimize yet more. -O3 turns on all optimizations specified by -O2 and also turns on the -finline-functions, -funswitch-loops, -fpredictive-commoning, -fgcse-after-reload and -ftree-vectorize options. The above list of optimizations lacks -fipa-cp-clone: $ gcc -c -Q -O3 --help=optimizers > /tmp/O3-opts $ gcc -c -Q -O2 --help=optimizers > /tmp/O2-opts $ diff /tmp/O2-opts /tmp/O3-opts ⎪ grep enabled > -fgcse-after-reload [enabled] > -finline-functions [enabled] > -fipa-cp-clone [enabled] > -fpredictive-commoning [enabled] > -ftree-vectorize [enabled] > -funswitch-loops [enabled]
Please report it upstream -> http://gcc.gnu.org/bugzilla/ We provide those mans without any changes :) Cheers, Kacper Kowalik
Thanks! Bug filed upstream at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45443
Upstream fixed this bug in: trunk: http://gcc.gnu.org/viewcvs?view=revision&revision=164009 4.5: http://gcc.gnu.org/viewcvs?view=revision&revision=164011 4.4: http://gcc.gnu.org/viewcvs?view=revision&revision=164018 ... if you want to provide patched versions. I guess those patches also apply to previous versions.