This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug gcov-profile/47363] New: value-profile.c produces incorrect error message when *count > *all
- From: "asharif at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 19 Jan 2011 19:39:07 +0000
- Subject: [Bug gcov-profile/47363] New: value-profile.c produces incorrect error message when *count > *all
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47363
Summary: value-profile.c produces incorrect error message when
*count > *all
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: gcov-profile
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: asharif@gcc.gnu.org
Created attachment 23032
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23032
Patch that adds a helpful error message when the profile is corrupted.
When a profile is corrupted and *count > *all (in value-prof.c) around line
473, an incorrect message is generated. This message reads:
profiler overall count (%d) does not match BB count (%d)
The integers in parentheses are actually equal so the message is confusing to
the user.
There should be a better error message generated in this case, pointing the
user to what went wrong.
I am attaching a patch that fixes this (I'll also be sending out an email to
the mailing list).