aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.3/gcc/value-prof.c
diff options
context:
space:
mode:
authorDoug Kwan <dougkwan@google.com>2011-02-14 12:37:51 -0800
committerDoug Kwan <dougkwan@google.com>2011-02-14 12:37:51 -0800
commit80934e7f7db429984fb56756a4cc893ba412b7b5 (patch)
treed650e0601d3499f50a6e01a7f443bf6e6959cc9b /gcc-4.4.3/gcc/value-prof.c
parent4a66e756636cb8364582ea503abd10d76f5b4aa3 (diff)
downloadtoolchain_gcc-80934e7f7db429984fb56756a4cc893ba412b7b5.tar.gz
toolchain_gcc-80934e7f7db429984fb56756a4cc893ba412b7b5.tar.bz2
toolchain_gcc-80934e7f7db429984fb56756a4cc893ba412b7b5.zip
Synchronize internal and external version. Merge the following patches:
-Added a more helpful error message when the profile is corrupted. -Added check for abnormal ssa names in the analysis phase of the vectorizer so that it prevents a potential ICE. -Replace floating-point calculations with fixed-point calculations when computing inlining priority to eliminate floating-point non-determinism on 32-bit x86. -Use .init_array/.fini_array sections instead of .ctor/.dtor when configured with --enable-initfini-array. Change-Id: I32f22dae5bcd4d229be321ee10dfeaa11a04cbac
Diffstat (limited to 'gcc-4.4.3/gcc/value-prof.c')
-rw-r--r--gcc-4.4.3/gcc/value-prof.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc-4.4.3/gcc/value-prof.c b/gcc-4.4.3/gcc/value-prof.c
index 6b1402d56..1a3549e19 100644
--- a/gcc-4.4.3/gcc/value-prof.c
+++ b/gcc-4.4.3/gcc/value-prof.c
@@ -506,9 +506,13 @@ 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,
- (int)bb_count);
+ error_at (locus, "corrupted value profile: %s "
+ "profile counter (%d out of %d) inconsistent with "
+ "basic-block count (%d)",
+ name,
+ (int) *count,
+ (int) *all,
+ (int) bb_count);
return true;
}
}