This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How to dump all the optimization flags enabled?
- From: John Love-Jensen <eljay at adobe dot com>
- To: Vladimir Simonov <Vladimir dot Simonov at acronis dot com>, Andrew Haley <aph at redhat dot com>
- Cc: MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Thu, 29 Mar 2007 10:27:17 -0500
- Subject: 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