public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-4715] gcov: annotate uncovered branches [PR107537]
@ 2022-12-15 10:59 Martin Liska
0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2022-12-15 10:59 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:c263c3eba8953c341cd8ac2d0a5f2b8f38623016
commit r13-4715-gc263c3eba8953c341cd8ac2d0a5f2b8f38623016
Author: Spacetown <michael.foerderer@gmx.de>
Date: Sun Dec 4 21:03:34 2022 +0100
gcov: annotate uncovered branches [PR107537]
PR gcov-profile/107537
gcc/ChangeLog:
* gcov.cc (output_branch_count): Add annotation '(fallthrough)'
or '(throw)' also to uncovered branches.
Signed-off-by: Michael Förderer <michael.foerderer@gmx.de>
Diff:
---
gcc/gcov.cc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gcc/gcov.cc b/gcc/gcov.cc
index 9cf1071166f..fa1ef7613ad 100644
--- a/gcc/gcov.cc
+++ b/gcc/gcov.cc
@@ -2893,7 +2893,9 @@ output_branch_count (FILE *gcov_file, int ix, const arc_info *arc)
arc->fall_through ? " (fallthrough)"
: arc->is_throw ? " (throw)" : "");
else
- fnotice (gcov_file, "branch %2d never executed", ix);
+ fnotice (gcov_file, "branch %2d never executed%s", ix,
+ (arc->fall_through ? " (fallthrough)"
+ : arc->is_throw ? " (throw)" : ""));
if (flag_verbose)
fnotice (gcov_file, " (BB %d)", arc->dst->id);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-12-15 10:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-15 10:59 [gcc r13-4715] gcov: annotate uncovered branches [PR107537] Martin Liska
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).