Commits

Anonymous committed e69c057

geninfo: ignore <built-in>.gcov files

The gcov tool will sometimes create a file <built-in>.gcov for code
which was added by gcc itself during compilation. Since there isn't
any source available for such code, geninfo will fail. Fix this
by skipping these files while capturing code coverage data.

  • Participants
  • Parent commits 9357cbc

Comments (0)

Files changed (1)

 		my $i;
 		my $num;
 
+		# Skip gcov file for gcc built-in code
+		next if ($gcov_file eq "<built-in>.gcov");
+
 		($source, $object) = read_gcov_header($gcov_file);
 
 		if (defined($source))