This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: What optimizations are included in -Og?
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Eli Zaretskii <eliz at gnu dot org>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Fri, 10 Apr 2015 14:48:43 +0100
- Subject: Re: What optimizations are included in -Og?
- Authentication-results: sourceware.org; auth=none
- References: <83d23ct8ye dot fsf at gnu dot org>
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