Fix a bug that broke -freorder-functions
authorDavid Li <davidxl@google.com>
Thu, 4 Aug 2011 06:20:59 +0000 (06:20 +0000)
committerXinliang David Li <davidxl@gcc.gnu.org>
Thu, 4 Aug 2011 06:20:59 +0000 (06:20 +0000)
From-SVN: r177311

gcc/ChangeLog
gcc/profile.c

index 923e8c97fd375be39c8f505e9a99c65e6dc0438d..1f846100b8e3dceca9a4a3b025699f6ec97e9100 100644 (file)
@@ -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
index e85702ed8dc64cb3bf567ebaf2ddf9fa9a5f923c..893e2cd17c774fd1e97af0ab3ed767cdc824eeac 100644 (file)
@@ -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)
     {