Patch geninfo for reported gcov problem with lcov versions 1.8 and 1.9

This commit is contained in:
Tom Henderson
2011-09-30 14:25:23 -07:00
parent f5aace65af
commit 0a28cb2916

View File

@@ -414,7 +414,11 @@ else
$gcov_caps = get_gcov_capabilities();
push(@gcov_options, "-b") if ($gcov_caps->{'branch-probabilities'});
push(@gcov_options, "-c") if ($gcov_caps->{'branch-counts'});
push(@gcov_options, "-a") if ($gcov_caps->{'all-blocks'});
# Below branch option is disabled due to a reported compiler bug
# present in gcc-4.5 version and earlier. If enabled, gcov will hang on
# such compilers. This workaround just means that lcov won't be able
# to separate multiple branch blocks in a line.
# push(@gcov_options, "-a") if ($gcov_caps->{'all-blocks'});
push(@gcov_options, "-p") if ($gcov_caps->{'preserve-paths'});
# Check output filename