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>
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);