public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Coverage of templates
@ 2006-11-08 21:18 Anders Peter Fugmann
  0 siblings, 0 replies; only message in thread
From: Anders Peter Fugmann @ 2006-11-08 21:18 UTC (permalink / raw)
  To: gcc-help

Hi,

I'm trying to examine the coverage of some template classes, which are
defined (and implemented) in header files.

Compiling test programs that includes the header files with the template
definitions / implementations with '-ftest-coverage -fprofile-arcs' does
not seem to emit basic blocks for template member functions that are not
referenced. Is there a way to instruct gcc to emit basic blocks for
these functions as well, in order to have gcov notice that the member
functions have an executions count of zero?

I have tried almost any flag to have gcc emit the missing basic-blocks:
-O0 -fkeep-inline-function -fno-default-inline -fno-inline

but still the basic blocks for the template member functions seems missing.

Searching the archives found a mail for the same problem, but no answer
was given (http://gcc.gnu.org/ml/gcc-help/2004-09/msg00056.html).

Using gcc version 4.1

Thanks
Anders



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-11-08 21:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-08 21:18 Coverage of templates Anders Peter Fugmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).