From: David Li Date: Thu, 4 Aug 2011 06:20:59 +0000 (+0000) Subject: Fix a bug that broke -freorder-functions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9003789808b2d385b2c1735d1aa7df0c8eee445d;p=gcc.git Fix a bug that broke -freorder-functions From-SVN: r177311 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 923e8c97fd3..1f846100b8e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-08-03 David Li + + * profile.c (compute_branch_probabilities): Compute + function frequency after profile annotation. + 2011-08-04 Alan Modra * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify diff --git a/gcc/profile.c b/gcc/profile.c index e85702ed8dc..893e2cd17c7 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) {