This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcov status? Limitations?
- To: nbecker at fred dot net
- Subject: Re: gcov status? Limitations?
- From: Janis Johnson <janis187 at us dot ibm dot com>
- Date: Wed, 10 Oct 2001 11:12:47 -0700
- Cc: gcc at gcc dot gnu dot org
- References: <x88ofngskzw.fsf@adglinux1.hns.com>
On Tue, Oct 09, 2001 at 02:53:39PM -0400, nbecker@fred.net wrote:
> I'm trying to use gcov with gcc-3.0.1 (i686-pc-gnu-linux). The
> results I'm seeing make no sense at all.
>
> What is the status of gcov? Is it supposed to work? Will it work
> with g++? Will it work with inlined code? Templates?
>
> I won't bore you all with lots of details, but just for a start:
>
> 4 int main (int argc, char** argv) {
> 2 rng_t rng;
>
> 2 double extraRemodDelay = 0.36;
>
> 2 if (argc > 1 && argv[argc-1] && argv[argc-1][0] != '-') {
> ###### yyin = fopen (argv[argc-1], "r");
> ###### InputFileName = argv[argc-1];
> }
>
> So main was called 4 times???? The next line 2 times??? The lines
> marked ###### were supposedly not called? I know absolutely for sure
> they were.
3.0.1 gcov is supposed to work with C++, but it isn't tested and there
could well be problems.
See http://gcc.gnu.org/bugs.html for information about reporting bugs in
GCC. Specific problems with test cases are more likely to lead to fixes
or to better documentation about limitations.
Janis