From cfb00b41d986cfe48ff0d06722f64122b8f1a41e Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Thu, 23 May 2013 02:19:36 +0000 Subject: [PATCH] bb-reorder.c (branch_threshold): make const gcc/ * bb-reorder.c (branch_threshold): make const (exec_threshold): ditto From-SVN: r199230 --- gcc/ChangeLog | 5 +++++ gcc/bb-reorder.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 585ba03951a6..d44ee4ffde28 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-05-22 David Malcolm + + * bb-reorder.c (branch_threshold): make const + (exec_threshold): ditto + 2013-05-22 Michael Meissner Pat Haugen Peter Bergner diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c index 3167220d9729..0a1f42a0424d 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. */ -- 2.47.2