RFR: 8362516: Support of GCC static analyzer (-fanalyzer) [v2]

Erik Joelsson erikj at openjdk.org
Fri Aug 29 13:28:43 UTC 2025


On Fri, 29 Aug 2025 07:29:22 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

>> Recent versions of GCC have a static code analyzer option (-fanalyzer) that works quite well for C code (but it has still issues with C++).
>> This can be used to identify e.g. some leaks like memory leaks, double close, use of uninitialized data etc. .
>> Some info about it :
>> 
>> https://gcc.gnu.org/onlinedocs/gcc/Static-Analyzer-Options.html
>> https://developers.redhat.com/articles/2023/05/31/improvements-static-analysis-gcc-13-compiler
>
> Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:
> 
>   change description

Marked as reviewed by erikj (Reviewer).

-------------

PR Review: https://git.openjdk.org/jdk/pull/26989#pullrequestreview-3168733078


More information about the build-dev mailing list