views:

29

answers:

1

Hi,

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...

+1  A: 

Your best source of information may be the 'Optimize Options' section of the GCC manual.

Dirk Eddelbuettel
it was the page i was looking at. But for nstance, it never says that it's going to remove never referenced functions.
LB