Skip to content

Commit 7126cb5

Browse files
committed
Update docs to fit current compiler/doc state
1 parent c0369e1 commit 7126cb5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clang/docs/CommandGuide/clang.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ Code Generation Options
445445

446446
:option:`-Og` Similar to :option:`-O1`, but with slightly reduced
447447
optimization and better variable visibility. The same optimizations are run
448-
as at :option:`-O1`, but the :option:`-fextend-variable-liveness` flag is
448+
as at :option:`-O1`, but the ``-fextend-variable-liveness`` flag is
449449
also set, which tries to prevent optimizations from reducing the liveness of
450450
user variables, improving their availability when debugging.
451451

clang/docs/ReleaseNotes.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,9 @@ Modified Compiler Flags
221221

222222
- The ``-mexecute-only`` and ``-mpure-code`` flags are now accepted for AArch64 targets. (#GH125688)
223223

224-
- The ``-Og`` optimization flag now sets ``-fextend-variable-liveness``, a new
225-
compiler flag which trades a small amount of optimization in exchange for
226-
improved variable visibility.
224+
- The ``-Og`` optimization flag now sets ``-fextend-variable-liveness``,
225+
reducing performance slightly while reducing the number of optimized-out
226+
variables.
227227

228228
Removed Compiler Flags
229229
-------------------------

0 commit comments

Comments
 (0)