aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDavid Li <davidxl@google.com>2011-08-04 06:20:59 +0000
committerXinliang David Li <davidxl@gcc.gnu.org>2011-08-04 06:20:59 +0000
commit9003789808b2d385b2c1735d1aa7df0c8eee445d (patch)
tree21d42e2ca84239c241c13e9b33ee71311872dc13 /gcc
parent22508caed3ac82df7826ca23e9dd8ad0e3474cc7 (diff)
downloadgcc-9003789808b2d385b2c1735d1aa7df0c8eee445d.zip
gcc-9003789808b2d385b2c1735d1aa7df0c8eee445d.tar.gz
gcc-9003789808b2d385b2c1735d1aa7df0c8eee445d.tar.bz2
Fix a bug that broke -freorder-functions
From-SVN: r177311
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/profile.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 923e8c9..1f84610 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2011-08-03 David Li <davidxl@google.com>
+
+ * profile.c (compute_branch_probabilities): Compute
+ function frequency after profile annotation.
+
2011-08-04 Alan Modra <amodra@gmail.com>
* config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
diff --git a/gcc/profile.c b/gcc/profile.c
index e85702e..893e2cd 100644
--- a/gcc/profile.c
+++ b/gcc/profile.c
@@ -748,6 +748,7 @@ compute_branch_probabilities (unsigned cfg_checksum, unsigned lineno_checksum)
}
counts_to_freqs ();
profile_status = PROFILE_READ;
+ compute_function_frequency ();
if (dump_file)
{