Mail Archives: djgpp/2004/08/02/11:31:07.1
Andrew Wall <wallguide-usenet AT yahoo DOT com> wrote:
> Thanks for the answer.
> I was hoping that I hadn't been running gcc/gcov properly.
> I had imagined that the compiler flags added code that would write a token
> to the output file for every line that the compiler could identify as it is
> run
That's essentially what -fprofile-arcs does --- except that is does so
not for every line of code, but only for every "basic block". Your
problem, I think, is that the calls to static constructors/destructor
are not set up by the C++ compiler, but by the linker and some magic
clue from the runtime system, neither of which know about
-fprofile-arcs.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -