public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug gcov-profile/31810] New: gcov returns wrong results @ 2007-05-04 1:32 echristo at apple dot com 2007-05-04 1:32 ` [Bug gcov-profile/31810] " echristo at apple dot com ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: echristo at apple dot com @ 2007-05-04 1:32 UTC (permalink / raw) To: gcc-bugs #include <string> // this global string causes gcov to think there's executable lines // beyond the end of the file, and that they have not been executed std::string globalVar = ""; std::string doSomething() { // instantiating this string and calling a method on it causes the // 'return' line to be marked as having never been executed std::string localVar; localVar.size(); return localVar; } int main(int, char **) { doSomething(); return 0; } produces the wrong results: a) it says that the return is never called b) it executes past the end of the file -- Summary: gcov returns wrong results Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: gcov-profile AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: echristo at apple dot com GCC build triplet: i386-apple-darwin GCC host triplet: i386-apple-darwin GCC target triplet: i386-apple-darwin http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31810 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug gcov-profile/31810] gcov returns wrong results 2007-05-04 1:32 [Bug gcov-profile/31810] New: gcov returns wrong results echristo at apple dot com @ 2007-05-04 1:32 ` echristo at apple dot com 2007-05-04 1:34 ` pinskia at gcc dot gnu dot org 2007-05-04 1:38 ` echristo at apple dot com 2 siblings, 0 replies; 4+ messages in thread From: echristo at apple dot com @ 2007-05-04 1:32 UTC (permalink / raw) To: gcc-bugs -- echristo at apple dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2007-05-04 02:32:30 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31810 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug gcov-profile/31810] gcov returns wrong results 2007-05-04 1:32 [Bug gcov-profile/31810] New: gcov returns wrong results echristo at apple dot com 2007-05-04 1:32 ` [Bug gcov-profile/31810] " echristo at apple dot com @ 2007-05-04 1:34 ` pinskia at gcc dot gnu dot org 2007-05-04 1:38 ` echristo at apple dot com 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu dot org @ 2007-05-04 1:34 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from pinskia at gcc dot gnu dot org 2007-05-04 02:34 ------- And this is why people should not confirm their own bugs :). *** This bug has been marked as a duplicate of 12076 *** -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31810 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug gcov-profile/31810] gcov returns wrong results 2007-05-04 1:32 [Bug gcov-profile/31810] New: gcov returns wrong results echristo at apple dot com 2007-05-04 1:32 ` [Bug gcov-profile/31810] " echristo at apple dot com 2007-05-04 1:34 ` pinskia at gcc dot gnu dot org @ 2007-05-04 1:38 ` echristo at apple dot com 2 siblings, 0 replies; 4+ messages in thread From: echristo at apple dot com @ 2007-05-04 1:38 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from echristo at apple dot com 2007-05-04 02:38 ------- Yeah, probably. Bah. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31810 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-05-04 1:38 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2007-05-04 1:32 [Bug gcov-profile/31810] New: gcov returns wrong results echristo at apple dot com 2007-05-04 1:32 ` [Bug gcov-profile/31810] " echristo at apple dot com 2007-05-04 1:34 ` pinskia at gcc dot gnu dot org 2007-05-04 1:38 ` echristo at apple dot com
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).