public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcov + inline function definitions in headers
@ 2004-09-08 13:02 p.steiner
  0 siblings, 0 replies; only message in thread
From: p.steiner @ 2004-09-08 13:02 UTC (permalink / raw)
  To: gcc-help

hello,

are there known problems with inline source code definitions in header 
files and gcov?

as soon as functions are defined inline in an header file, e.g. template 
classes or inlined instance methods, gcov is showing not working 
correctly. could it be that these get optimized out in the template 
preprocessing step or the final linking?

example compilation step:
> g++323  -c -o Coverage.o  -pipe -W -Wall -ftemplate-depth-500 -g 
-fprofile-arcs -ftest-coverage -fPIC  Coverage.cpp

there are no optimizations on this gcc call... could optimizations happen 
implicitely, or after compilation in the linker?

thanks for any help,

peter steiner.

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

only message in thread, other threads:[~2004-09-08 13:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-08 13:02 gcov + inline function definitions in headers p.steiner

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).