diff options
author | David Malcolm <dmalcolm@redhat.com> | 2020-02-28 10:06:57 -0500 |
---|---|---|
committer | David Malcolm <dmalcolm@redhat.com> | 2020-03-02 16:45:04 -0500 |
commit | 13b7691238f189c7a233aedec49306a7cb2b0a15 (patch) | |
tree | 5dc52bca9a149f2ca48fd9d35c8159014e21c4dd /gcc/tree-ssa-alias.c | |
parent | 6e4444078aec716aa8214c13d7d20292aa232b5b (diff) | |
download | gcc-13b7691238f189c7a233aedec49306a7cb2b0a15.zip gcc-13b7691238f189c7a233aedec49306a7cb2b0a15.tar.gz gcc-13b7691238f189c7a233aedec49306a7cb2b0a15.tar.bz2 |
analyzer: don't print the duplicate count by default
The note about duplicates attached to analyzer diagnostics feels like an
implementation detail; it's likely just noise from the perspective of an
end-user.
This patch disables it by default, introducing a flag to re-enable it.
gcc/analyzer/ChangeLog:
* analyzer.opt (fanalyzer-show-duplicate-count): New option.
* diagnostic-manager.cc
(diagnostic_manager::emit_saved_diagnostic): Use the above to
guard the printing of the duplicate count.
gcc/ChangeLog:
* doc/invoke.texi (-fanalyzer-show-duplicate-count): New.
gcc/testsuite/ChangeLog:
* gcc.dg/analyzer/CVE-2005-1689-dedupe-issue.c: Add
-fanalyzer-show-duplicate-count.
Diffstat (limited to 'gcc/tree-ssa-alias.c')
0 files changed, 0 insertions, 0 deletions