RFR: 8287122: Use gcc12 -ftrivial-auto-var-init=pattern in debug builds
Erik Joelsson
erikj at openjdk.org
Thu Dec 5 23:01:42 UTC 2024
On Thu, 5 Dec 2024 22:31:11 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:
> gcc12 has added -ftrivial-auto-var-init=<choice>, which specifies how automatic variables without an initializer should be initialized. The default choice is "uninitialized", which is the default C/C++ behavior. Alternatives are "pattern" and "zero". For improved debugging, helping to detect uninitialized uses, the "pattern" choice should be used.
Marked as reviewed by erikj (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/22587#pullrequestreview-2483171209
More information about the build-dev
mailing list