From 13b7691238f189c7a233aedec49306a7cb2b0a15 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Fri, 28 Feb 2020 10:06:57 -0500 Subject: 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. --- gcc/analyzer/ChangeLog | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gcc/analyzer/ChangeLog') diff --git a/gcc/analyzer/ChangeLog b/gcc/analyzer/ChangeLog index e5d7bdb..fa0fbcd 100644 --- a/gcc/analyzer/ChangeLog +++ b/gcc/analyzer/ChangeLog @@ -1,5 +1,12 @@ 2020-03-02 David Malcolm + * 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. + +2020-03-02 David Malcolm + PR analyzer/93959 * analyzer.cc (is_std_function_p): New function. (is_std_named_call_p): New functions. -- cgit v1.1