[PATCH][doc] Correct optimisation levels documentation for -fstore-merging

Jeff Law law@redhat.com
Mon Jan 23 23:40:00 GMT 2017


On 01/23/2017 10:28 AM, Kyrill Tkachov wrote:
> Hi all,
>
> I had forgotten to update the -fstore-merging documentation from a
> previous iteration of the pass
> and it says that it's enabled at -O and higher. The option is in fact
> enabled at -O2 and higher, as well as -Os.
> This patch clarifies that.
>
> Is this ok? Or is there a more preferred style of listing optimisation
> levels?
>
> Thanks,
> Kyrill
>
> 2016-01-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
>
>     * doc/invoke.texi (-fstore-merging): Correct default optimization
>     levels at which it is enabled.
I think you also need to remove -fstore-merging from list of options 
turned on by -O:

@option{-O} turns on the following optimization flags:
[ ... ]
-fstore-merging @gol


And instead add it to the list of options enabled at -O2 and higher 
which immediately follows.

OK with those changes.

jeff



More information about the Gcc-patches mailing list