This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gcov-profile/47363] New: value-profile.c produces incorrect error message when *count > *all


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).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]