summaryrefslogtreecommitdiff
path: root/gcc/value-prof.c
diff options
context:
space:
mode:
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2008-08-18 19:48:41 +0000
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2008-08-18 19:48:41 +0000
commit73028648025d7bf06365ccbda8e2d713b7afdfa8 (patch)
tree5b6ac1a178161bc69caa8d877edf1ebd0aaaa140 /gcc/value-prof.c
parent4d0f95c0a6e9d542c8c610b75c117a8ca7c4a41c (diff)
downloadgcc-73028648025d7bf06365ccbda8e2d713b7afdfa8.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139211 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/value-prof.c')
-rw-r--r--gcc/value-prof.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/value-prof.c b/gcc/value-prof.c
index f3522f6dcb5..e2caceca035 100644
--- a/gcc/value-prof.c
+++ b/gcc/value-prof.c
@@ -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;
}