Which GCC versions have the static analyzer enabled?

Solution Verified - Updated -

Issue

  • Which GCC versions have the static analyzer enabled?
  • How can I use -fanalyzer in the gcc C programming language compiler?
  • Does GNU Compiler Collection have any static analysis abilities like cppcheck or LLVM Clang scan-build or PVS-Studio or Flawfinder or Lizard ?

Environment

  • Red Hat Enterprise Linux
  • GCC (GNU Compiler Collection) 10 or later

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content