delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/08/02/11:31:07.1

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Trouble with gpp/gcov
Date: 2 Aug 2004 15:29:08 GMT
Lines: 18
Message-ID: <2n74u4Fts6lmU2@uni-berlin.de>
References: <2n26qfFsa6knU1 AT uni-berlin DOT de> <2n2bt7FsocrnU3 AT uni-berlin DOT de> <2n4u6bFsmhvrU1 AT uni-berlin DOT de>
X-Trace: news.uni-berlin.de qVKjX4iUY0T+ls8Fn54MhQl4ZXBOpDwHjeJ21ihn8ZMLYuW10GX4PeO9qn
X-Orig-Path: not-for-mail
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019