public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug gcov-profile/67937] gcov gives wrong results when negative counts are involved
       [not found] <bug-67937-4@http.gcc.gnu.org/bugzilla/>
@ 2015-10-12 15:53 ` Pidgeot18 at gmail dot com
  2015-10-12 15:56 ` Pidgeot18 at gmail dot com
  2015-10-13  9:35 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: Pidgeot18 at gmail dot com @ 2015-10-12 15:53 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67937

--- Comment #1 from Joshua Cranmer <Pidgeot18 at gmail dot com> ---
Created attachment 36485
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36485&action=edit
test-case.gcda

(It's a 4.7 test case, but the file format can still be read with trunk gcov
the last I checked. Since the originating issue comes from "compile Firefox", I
haven't tried preparing .gcda/.gcno files from newer gcc).


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug gcov-profile/67937] gcov gives wrong results when negative counts are involved
       [not found] <bug-67937-4@http.gcc.gnu.org/bugzilla/>
  2015-10-12 15:53 ` [Bug gcov-profile/67937] gcov gives wrong results when negative counts are involved Pidgeot18 at gmail dot com
@ 2015-10-12 15:56 ` Pidgeot18 at gmail dot com
  2015-10-13  9:35 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: Pidgeot18 at gmail dot com @ 2015-10-12 15:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67937

--- Comment #2 from Joshua Cranmer <Pidgeot18 at gmail dot com> ---
Created attachment 36486
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36486&action=edit
test-case.gcno

And the corresponding .gcno file.

The testcase was minimized by bisecting the original .gcda/.gcno files by
dropping functions and seeing where my attempt to write a new implementation
that matched gcov's output failed. The attempt (I did several!) that failed
this time was using Boost graph library's hawick_circuits detector, which
matched the input incorrectly since this is double-counting loop edges if one
of them is negative.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug gcov-profile/67937] gcov gives wrong results when negative counts are involved
       [not found] <bug-67937-4@http.gcc.gnu.org/bugzilla/>
  2015-10-12 15:53 ` [Bug gcov-profile/67937] gcov gives wrong results when negative counts are involved Pidgeot18 at gmail dot com
  2015-10-12 15:56 ` Pidgeot18 at gmail dot com
@ 2015-10-13  9:35 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-10-13  9:35 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67937

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Most interesting would be a C testcase that produces the CFG with the bogus
counters ;)


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-13  9:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-67937-4@http.gcc.gnu.org/bugzilla/>
2015-10-12 15:53 ` [Bug gcov-profile/67937] gcov gives wrong results when negative counts are involved Pidgeot18 at gmail dot com
2015-10-12 15:56 ` Pidgeot18 at gmail dot com
2015-10-13  9:35 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).