re PR bootstrap/37153 (Revision 139210 failed to bootstrap)
authorH.J. Lu <hongjiu.lu@intel.com>
Mon, 18 Aug 2008 19:48:41 +0000 (19:48 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Mon, 18 Aug 2008 19:48:41 +0000 (12:48 -0700)
2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>

PR bootstrap/37153
* value-prof.c (check_counter): Dereference pointer to overall
count when printing it.

From-SVN: r139211

gcc/ChangeLog
gcc/value-prof.c

index 690562b..e080b44 100644 (file)
@@ -1,5 +1,11 @@
 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
 
+       PR bootstrap/37153
+       * value-prof.c (check_counter): Dereference pointer to overall
+       count when printing it.
+
+2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
+
        * profile.h: Really add it.
 
 2008-08-18  H.J. Lu  <hongjiu.lu@intel.com>
index f3522f6..e2cacec 100644 (file)
@@ -466,7 +466,7 @@ check_counter (gimple stmt, const char * name,
         {
          inform ("%HCorrecting inconsistent value profile: "
                  "%s profiler overall count (%d) does not match BB count "
-                  "(%d)", &locus, name, (int)all, (int)bb_count);
+                  "(%d)", &locus, name, (int)*all, (int)bb_count);
          *all = bb_count;
          if (*count > *all)
             *count = *all;
@@ -475,7 +475,7 @@ check_counter (gimple stmt, const char * name,
       else
        {
          error ("%HCorrupted value profile: %s profiler overall count (%d) "
-                 "does not match BB count (%d)", &locus, name, (int)all,
+                 "does not match BB count (%d)", &locus, name, (int)*all,
                  (int)bb_count);
          return true;
        }