Integrated: 8345627: [REDO] Use gcc12 -ftrivial-auto-var-init=pattern in debug builds
Magnus Ihse Bursie
ihse at openjdk.org
Tue Mar 4 10:33:02 UTC 2025
On Wed, 11 Dec 2024 21:14:04 GMT, Magnus Ihse Bursie <ihse at openjdk.org> wrote:
> This is a retry to add `-ftrivial-auto-var-init=pattern` to gcc debug builds. The first attempt was buggy in multiple ways and had to be backed out.
>
> This is the description of the original bug report:
>
> 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.
This pull request has now been integrated.
Changeset: fae37aaa
Author: Magnus Ihse Bursie <ihse at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/fae37aaae8b36fd74309b84fa1fdf017c7d932ed
Stats: 14 lines in 4 files changed: 13 ins; 0 del; 1 mod
8345627: [REDO] Use gcc12 -ftrivial-auto-var-init=pattern in debug builds
Reviewed-by: erikj, kbarrett
-------------
PR: https://git.openjdk.org/jdk/pull/22691
More information about the build-dev
mailing list