Re: Help needed with gcov

Balbir Singh <>
23 Oct 2005 00:36:34 -0400

          From comp.compilers

Related articles
Help needed with gcov (2005-10-20)
Re: Help needed with gcov (Balbir Singh) (2005-10-23)
| List of all articles for this month |

From: Balbir Singh <>
Newsgroups: comp.compilers
Date: 23 Oct 2005 00:36:34 -0400
Organization: Hewlett-Packard Company
References: 05-10-139
Keywords: tools
Posted-Date: 23 Oct 2005 00:36:34 EDT wrote:

> 1. For all the source files .da file is not generated.
> 2. Even when I can see that a particular line is being executed, e.g. I
> can see the output for a cout command, gcov states that the particular
> line was never executed.
> I have compiled my code with the -fprofile-arcs -ftest-coverage
> options and the gcov version I am using is 1.5 along with gcc gcc
> version 2.95.3 20010315 running on a sun solaris machine.

There are some known issues with gcov and gcc 2.95. You might want to
move to the next higher version (3.0)+. There are some patches posted
(search-able via google), but none of them worked for me.


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.