Reputation: 12341
I've seen that you can see the optimizations which are turned on using:
gcc -O2 -Q --help=optimizers
but the thing is that it only shows optimizations that have a flag.
Do you know if there's a way to find the others ?
This is maybe stupid since with no flag how would they describe the optimizations...but anyway...
Upvotes: 0
Views: 140
Reputation: 368629
Your best source of information may be the 'Optimize Options' section of the GCC manual.
Upvotes: 1