summaryrefslogtreecommitdiff
path: root/docs/CommandGuide
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2016-11-11 17:29:56 +0000
committerSylvestre Ledru <sylvestre@debian.org>2016-11-11 17:29:56 +0000
commit14bfc9e99e6e6903b09480a22c153032be77ae4e (patch)
treef2f93ad5eb8ae976141ad4653ce4ca4e745eb718 /docs/CommandGuide
parent2464f11bd83611babf4afcd58ccc1ae85c899599 (diff)
downloadclang-14bfc9e99e6e6903b09480a22c153032be77ae4e.tar.gz
Add a new optimization option -Og
Summary: Just like gcc, we should have the -Og option as more and more software are using it: https://llvm.org/bugs/show_bug.cgi?id=20765 Reviewers: echristo, dberlin, dblaikie, keith.walker.arm, rengolin Subscribers: aprantl, friss, mehdi_amini, RKSimon, probinson, majnemer, cfe-commits Differential Revision: https://reviews.llvm.org/D24998 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@286602 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/CommandGuide')
-rw-r--r--docs/CommandGuide/clang.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/CommandGuide/clang.rst b/docs/CommandGuide/clang.rst
index c71544915e..8aade1a6ab 100644
--- a/docs/CommandGuide/clang.rst
+++ b/docs/CommandGuide/clang.rst
@@ -226,7 +226,7 @@ number of cross compilers, or may only support a native target.
Code Generation Options
~~~~~~~~~~~~~~~~~~~~~~~
-.. option:: -O0, -O1, -O2, -O3, -Ofast, -Os, -Oz, -O, -O4
+.. option:: -O0, -O1, -O2, -O3, -Ofast, -Os, -Oz, -Og, -O, -O4
Specify which optimization level to use:
@@ -252,6 +252,9 @@ Code Generation Options
:option:`-Oz` Like :option:`-Os` (and thus :option:`-O2`), but reduces code
size further.
+ :option:`-Og` Like :option:`-O1`. In future versions, this option might
+ disable different optimizations in order to improve debuggability.
+
:option:`-O` Equivalent to :option:`-O2`.
:option:`-O4` and higher