Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 335067 - "man gcc" paragraph about -O3 is missing -fipa-cp-clone for sys-devel/gcc-4.4.4-r1
Summary: "man gcc" paragraph about -O3 is missing -fipa-cp-clone for sys-devel/gcc-4.4...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo Linux bug wranglers
URL: http://gcc.gnu.org/bugzilla/show_bug....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-28 22:12 UTC by Jaak Ristioja
Modified: 2010-09-08 21:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaak Ristioja 2010-08-28 22:12:40 UTC
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]
Comment 1 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2010-08-29 11:11:56 UTC
Please report it upstream -> http://gcc.gnu.org/bugzilla/
We provide those mans without any changes :)
Cheers,
Kacper Kowalik
Comment 2 Jaak Ristioja 2010-08-29 13:01:32 UTC
Thanks! Bug filed upstream at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45443
Comment 3 Jaak Ristioja 2010-09-08 21:53:05 UTC
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.