From 3458c61f6c864a67f736839af2b8b8308f66da81 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Fri, 2 Mar 2018 16:10:10 +0100 Subject: [PATCH] predict.c (test_prediction_value_range): Use PROB_UNINITIALIZED instead of -1U in last predictors element's probability... * predict.c (test_prediction_value_range): Use PROB_UNINITIALIZED instead of -1U in last predictors element's probability member. From-SVN: r258136 --- gcc/ChangeLog | 5 +++++ gcc/predict.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4649ffa4fd9..957d1528231 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-03-02 Jakub Jelinek + + * predict.c (test_prediction_value_range): Use PROB_UNINITIALIZED + instead of -1U in last predictors element's probability member. + 2018-03-02 Eric Botcazou PR ipa/83983 diff --git a/gcc/predict.c b/gcc/predict.c index 79ee71fac97..b40dec47822 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -4204,7 +4204,7 @@ test_prediction_value_range () { branch_predictor predictors[] = { #include "predict.def" - {NULL, -1U} + { NULL, PROB_UNINITIALIZED } }; for (unsigned i = 0; predictors[i].name != NULL; i++) -- 2.30.2