From: Peter O. <obe...@us...> - 2013-02-22 14:09:12
|
Update of /cvsroot/ltp/utils/analysis/lcov/bin In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv7019/bin Modified Files: geninfo Log Message: geninfo: don't warn about missing .gcov files Newer versions of gcc remove .gcov files for source files that do not contribute instrumented lines. Remove the WARNING: no data found for file.c warning that geninfo issues in this case. Index: geninfo =================================================================== RCS file: /cvsroot/ltp/utils/analysis/lcov/bin/geninfo,v retrieving revision 1.119 retrieving revision 1.120 diff -C2 -d -r1.119 -r1.120 *** geninfo 10 Jan 2013 09:02:32 -0000 1.119 --- geninfo 22 Feb 2013 14:09:08 -0000 1.120 *************** *** 865,869 **** my $object; # gcov object header information my @matches; # List of absolute paths matching filename - my @unprocessed; # List of unprocessed source code files my $base_dir; # Base directory for current file my @tmp_links; # Temporary links to be cleaned up --- 865,868 ---- *************** *** 1061,1065 **** # Traverse the list of generated .gcov files and combine them into a # single .info file - @unprocessed = keys(%{$instr}); foreach $gcov_file (sort(@gcov_list)) { --- 1060,1063 ---- *************** *** 1144,1157 **** } - # Remove processed file from list - for ($index = scalar(@unprocessed) - 1; $index >= 0; $index--) - { - if ($unprocessed[$index] eq $source_filename) - { - splice(@unprocessed, $index, 1); - last; - } - } - # Skip external files if requested if (!$opt_external) { --- 1142,1145 ---- *************** *** 1298,1311 **** } - # Check for files which show up in the graph file but were never - # processed - if (@unprocessed && @gcov_list) - { - foreach (@unprocessed) - { - warn("WARNING: no data found for $_\n"); - } - } - if (!($output_filename && ($output_filename eq "-"))) { --- 1286,1289 ---- |