This is the mail archive of the gcc-patches@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]

PATCH: [4.4 Regression] Revision 139210 failed to bootstrap


Hi,

I am checking in this patch as an obvious fix.

Thanks.

H.J.
---
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.

Index: value-prof.c
===================================================================
--- value-prof.c	(revision 139208)
+++ value-prof.c	(working copy)
@@ -466,7 +466,7 @@ check_counter (gimple stmt, const char *
         {
 	  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 *
       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;
 	}


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