From 0a28cb2916e71a33f9837c7fb7dd1829a46aa7d3 Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Fri, 30 Sep 2011 14:25:23 -0700 Subject: [PATCH] Patch geninfo for reported gcov problem with lcov versions 1.8 and 1.9 --- utils/lcov/geninfo | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/utils/lcov/geninfo b/utils/lcov/geninfo index dcb1a6781..eedd1720c 100755 --- a/utils/lcov/geninfo +++ b/utils/lcov/geninfo @@ -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