This is the mail archive of the gcc@gcc.gnu.org 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] |
Other format: | [Raw text] |
Attached is a patch for gcov (the version included with gcc 3.2.3) that allows it to process more than one input file at a time. A comment in gcov.c explains the issue: /* ??? Does not correctly handle the case where two .bb files refer to the same included source file. For example, if one has a short file containing only inline functions, which is then included in two other files, then there will be two .bb files which refer to the include file, but there is no way to get the total execution counts for the included file, can only get execution counts for one or the other of the including files. */ Processing all the .bb files in one swoop allows gcov to get total execution counts for the included file. This patch is particularly useful for C++ code that makes heavy use of functions defined in include files. Unfortunately the patched gcov does not coalesce function summaries (-f) or branch counts (-c); for a function included in multiple object files, gcov still prints separate information. Fixing this issue would require more extensive changes to gcov. --Ed -- Ed Swierk eswierk@cs.stanford.edu
Attachment:
gcc32-gcov-multisrc.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |