delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/08/03/17:00:46

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "Andrew Wall" <wallguide-usenet AT yahoo DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Trouble with gpp/gcov
Date: Tue, 3 Aug 2004 21:53:19 +0100
Lines: 33
Message-ID: <2nac9uFunm1sU1@uni-berlin.de>
References: <2n26qfFsa6knU1 AT uni-berlin DOT de> <2n2bt7FsocrnU3 AT uni-berlin DOT de> <2n4u6bFsmhvrU1 AT uni-berlin DOT de> <2n74u4Fts6lmU2 AT uni-berlin DOT de>
X-Trace: news.uni-berlin.de kRLEZzFn9/hx3z4yDRDVpwHxfwh8RwBOHouXIBFyBkL9cMTS/2
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I've managed to enter this as a bug at http://gcc.gnu.org/bugzilla only to
find that it has already been reported as bug 7970 (Arc profiling doesn't
work reliably on global destructors) in Sept 2002 on gcc 3.2.1
So, the only way I can think to get around this is to reprocess the gcov
output files.
Is there anyone with some good ideas?

Andrew -Wall

"Hans-Bernhard Broeker" <broeker AT physik DOT rwth-aachen DOT de> wrote in message
news:2n74u4Fts6lmU2 AT uni-berlin DOT de...
| 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