Skip to content

Commit e503747

Browse files
committed
Update docs to fit current compiler/doc state
1 parent 351971b commit e503747

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
@@ -219,9 +219,9 @@ Modified Compiler Flags
219219

220220
- `-Wpadded` option implemented for the `x86_64-windows-msvc` target. Fixes #61702
221221

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

226226
Removed Compiler Flags
227227
-------------------------

0 commit comments

Comments
 (0)