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

Matthias Baesken mbaesken at openjdk.org
Mon Sep 1 06:48:52 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

Hi Erik, thanks for the review !

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

PR Comment: https://git.openjdk.org/jdk/pull/26989#issuecomment-3241058033


More information about the build-dev mailing list