This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcov status? Limitations?

On Tue, Oct 09, 2001 at 02:53:39PM -0400, 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 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]