This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to dump all the optimization flags enabled?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]