[clang] [Clang] Enable -fextend-lifetimes at -Og (PR #118026)
Jeremy Morse via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 24 09:32:42 PST 2025
================
@@ -412,6 +412,20 @@ New Compiler Flags
only for thread-local variables, and none (which corresponds to the
existing ``-fno-c++-static-destructors`` flag) skips all static
destructors registration.
+- The ``-fextend-variable-liveness`` flag has been added to allow for improved
+ debugging of optimized code. Using ``-fextend-variable-liveness`` will cause
+ Clang to generate code that tries to preserve the liveness of source variables
+ through optimizations, meaning that variables will typically be visible in a
+ debugger more often. The flag has two levels: ``-fextend-variable-liveness``,
+ or ``-fextend-variable-liveness=all``, extendes the liveness of all user
----------------
jmorse wrote:
```suggestion
or ``-fextend-variable-liveness=all``, extends the liveness of all user
```
https://github.com/llvm/llvm-project/pull/118026
More information about the cfe-commits
mailing list