gcov + inline function definitions in headers
p.steiner@icoserve.com
p.steiner@icoserve.com
Wed Sep 8 13:02:00 GMT 2004
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.
More information about the Gcc-help
mailing list