Patch geninfo for reported gcov problem with lcov versions 1.8 and 1.9
authorTom Henderson <tomh@tomh.org>
Fri, 30 Sep 2011 14:25:23 -0700
changeset 7552 97606ed04882
parent 7551 5d13d02dae0f
child 7553 2b93d333dea6
Patch geninfo for reported gcov problem with lcov versions 1.8 and 1.9
utils/lcov/geninfo
--- a/utils/lcov/geninfo	Fri Sep 30 14:21:39 2011 -0700
+++ b/utils/lcov/geninfo	Fri Sep 30 14:25:23 2011 -0700
@@ -414,7 +414,11 @@
 $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