On 10/30/26 7:50 AM, Jonas Hansen via Sourceware Forge wrote:
From: Jonas Hansen <[email protected]>
The name recorded by .DEFERRED_INIT can stop identifying its destination
after inlining or LTO renumbers anonymous declarations. This makes
warn_uninit diagnose an artificial initialization store as an
uninitialized read, notably with sanitizers and -ftrivial-auto-var-init.
Use the initialized declaration's address as diagnostic metadata instead
of a name string. Preserve its identity through declaration remapping
and LTO streaming, and compare declarations in warn_uninit. Keep this
operand unevaluated and avoid making the object addressable or preventing
SSA promotion. Update scalar replacement, nested-function lowering,
parallelization and offload handling accordingly.
Is the ADDR_EXPR easier to handle than using the DECL directly as the
operand?
Jason