aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2013-05-23 02:19:36 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2013-05-23 02:19:36 +0000
commitcfb00b41d986cfe48ff0d06722f64122b8f1a41e (patch)
tree6deb78817a5c5ce6a39d2c1e28c7be17cce56b1e /gcc
parent02dbac5e355a4374e66fb8b37873b4ec23849905 (diff)
downloadgcc-cfb00b41d986cfe48ff0d06722f64122b8f1a41e.zip
gcc-cfb00b41d986cfe48ff0d06722f64122b8f1a41e.tar.gz
gcc-cfb00b41d986cfe48ff0d06722f64122b8f1a41e.tar.bz2
bb-reorder.c (branch_threshold): make const
gcc/ * bb-reorder.c (branch_threshold): make const (exec_threshold): ditto From-SVN: r199230
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/bb-reorder.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 585ba03..d44ee4f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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>
diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c
index 3167220..0a1f42a 100644
--- a/gcc/bb-reorder.c
+++ b/gcc/bb-reorder.c
@@ -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. */