]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
bb-reorder.c (branch_threshold): make const
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 23 May 2013 02:19:36 +0000 (02:19 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Thu, 23 May 2013 02:19:36 +0000 (02:19 +0000)
gcc/
* bb-reorder.c (branch_threshold): make const
(exec_threshold): ditto

From-SVN: r199230

gcc/ChangeLog
gcc/bb-reorder.c

index 585ba03951a667fee1a457e26c6bc422bd845374..d44ee4ffde2891ae6b055d5ea5151a192d302ce3 100644 (file)
@@ -1,3 +1,8 @@
+2013-05-22  David Malcolm  <dmalcolm@redhat.com>
+
+       * bb-reorder.c (branch_threshold): make const
+       (exec_threshold): ditto
+
 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
            Pat Haugen <pthaugen@us.ibm.com>
            Peter Bergner <bergner@vnet.ibm.com>
index 3167220d97298051613816406704491274d7c791..0a1f42a0424d1d5aa56acc6ace2f65ab2a44732c 100644 (file)
@@ -123,10 +123,10 @@ struct target_bb_reorder *this_target_bb_reorder = &default_target_bb_reorder;
   (this_target_bb_reorder->x_uncond_jump_length)
 
 /* Branch thresholds in thousandths (per mille) of the REG_BR_PROB_BASE.  */
-static int branch_threshold[N_ROUNDS] = {400, 200, 100, 0, 0};
+static const int branch_threshold[N_ROUNDS] = {400, 200, 100, 0, 0};
 
 /* Exec thresholds in thousandths (per mille) of the frequency of bb 0.  */
-static int exec_threshold[N_ROUNDS] = {500, 200, 50, 0, 0};
+static const int exec_threshold[N_ROUNDS] = {500, 200, 50, 0, 0};
 
 /* If edge frequency is lower than DUPLICATION_THRESHOLD per mille of entry
    block the edge destination is not duplicated while connecting traces.  */