Skip to content

Commit e675080

Browse files
committed
geninfo: Fix accounting of basic blocks in exceptional paths
Basic blocks that are not executed and are only reachable via exceptional paths are marked with a '%%%%%' marker in the GCOV output of current GCC versions. Fix geninfo to also recognize this marker. Signed-off-by: Peter Oberparleiter <[email protected]> Reported-by: trotux (github user)
1 parent 94eac0e commit e675080

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/geninfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1901,7 +1901,7 @@ sub read_gcov_file($)
19011901
# Also remove CR from line-end
19021902
s/\015$//;
19031903

1904-
if (/^\s*(\d+|\$+):\s*(\d+)-block\s+(\d+)\s*$/) {
1904+
if (/^\s*(\d+|\$+|\%+):\s*(\d+)-block\s+(\d+)\s*$/) {
19051905
# Block information - used to group related
19061906
# branches
19071907
$last_line = $2;

0 commit comments

Comments
 (0)