This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: [4.4 Regression] Revision 139210 failed to bootstrap
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: vinodha at google dot com
- Date: Mon, 18 Aug 2008 12:51:38 -0700
- Subject: PATCH: [4.4 Regression] Revision 139210 failed to bootstrap
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
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;
}