How to dump all the optimization flags enabled?

John Love-Jensen eljay@adobe.com
Thu Mar 29 20:04:00 GMT 2007


Hi Vladimir,

>Do you know a way to turn on optimization flags step by step from -O0 till -O2?

No, not possible.

Not all optimizations are controlled by specific flags.  Some are controlled
by -O setting.

And -O0 disables all optimizations, even those specified with a specific
flag.

Sincerely,
--Eljay



More information about the Gcc-help mailing list