This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH][doc] Correct optimisation levels documentation for -fstore-merging
- From: Kyrill Tkachov <kyrylo dot tkachov at foss dot arm dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Sandra Loosemore <sandra at codesourcery dot com>, "gerald at pfeifer dot com" <gerald at pfeifer dot com>
- Date: Mon, 23 Jan 2017 17:28:08 +0000
- Subject: [PATCH][doc] Correct optimisation levels documentation for -fstore-merging
- Authentication-results: sourceware.org; auth=none
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.
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 45af80c..b29348c 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -8342,7 +8342,7 @@ early. This flag is enabled by default at @option{-O} and higher.
Perform merging of narrow stores to consecutive memory addresses. This pass
merges contiguous stores of immediate values narrower than a word into fewer
wider stores to reduce the number of instructions. This is enabled by default
-at @option{-O} and higher.
+at @option{-O2} and higher as well as @option{-Os}.
@item -ftree-ter
@opindex ftree-ter