Integrated: 8362516: Support of GCC static analyzer (-fanalyzer)
Matthias Baesken
mbaesken at openjdk.org
Mon Sep 1 06:48:54 UTC 2025
On Thu, 28 Aug 2025 15:17:47 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
This pull request has now been integrated.
Changeset: ba90ccc6
Author: Matthias Baesken <mbaesken at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/ba90ccc6a8ca7b0b728568ea614470c85a5f7f8a
Stats: 28 lines in 2 files changed: 28 ins; 0 del; 0 mod
8362516: Support of GCC static analyzer (-fanalyzer)
Reviewed-by: erikj
-------------
PR: https://git.openjdk.org/jdk/pull/26989
More information about the build-dev
mailing list