aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2023-01-31 21:18:00 -0500
committerDavid Malcolm <dmalcolm@redhat.com>2023-01-31 21:18:00 -0500
commita90316c6ceddfbb47b3c2161baf446ccb87df5ff (patch)
tree35ac23786f5511ba29a31ca56b4431060de9fe1a /gcc/doc
parent317525b03ebd1db7e04a900d7a735d7a079b3821 (diff)
downloadgcc-a90316c6ceddfbb47b3c2161baf446ccb87df5ff.zip
gcc-a90316c6ceddfbb47b3c2161baf446ccb87df5ff.tar.gz
gcc-a90316c6ceddfbb47b3c2161baf446ccb87df5ff.tar.bz2
doc: add notes about limitations of -fanalyzer
gcc/ChangeLog: * doc/invoke.texi (Static Analyzer Options): Add notes about limitations of -fanalyzer. Signed-off-by: David Malcolm <dmalcolm@redhat.com>
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/invoke.texi7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index d12f318..b45b629 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -10064,6 +10064,13 @@ code, and issues warnings for problems found on them.
This analysis is much more expensive than other GCC warnings.
+In technical terms, it performs coverage-guided symbolic execution of
+the code being compiled. It is neither sound nor complete: it can
+have false positives and false negatives. It is a bug-finding tool,
+rather than a tool for proving program correctness.
+
+The analyzer is only suitable for use on C code in this release.
+
Enabling this option effectively enables the following warnings:
@gccoptlist{ @gol