What optimizations are included in -Og?

Jonathan Wakely jwakely.gcc@gmail.com
Fri Apr 10 13:48:00 GMT 2015


On 10 April 2015 at 14:21, Eli Zaretskii wrote:
> Could someone please tell which optimizations are turned on by the -Og
> switch?  The GCC manual lists the optimization flags turned on by -O1,
> -O2, -O3, -Os, and -Ofast, but keeps silent about -Og.
>
> Is there any documentation or some other place where this information
> can be found?

You can run the command:

g++ -Q -Og --help=optimizers



More information about the Gcc-help mailing list