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: unassig...@gcc.gnu.org ReportedBy: asha...@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).