predict.c (test_prediction_value_range): Use PROB_UNINITIALIZED instead of -1U in...
authorJakub Jelinek <jakub@redhat.com>
Fri, 2 Mar 2018 15:10:10 +0000 (16:10 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 2 Mar 2018 15:10:10 +0000 (16:10 +0100)
* predict.c (test_prediction_value_range): Use PROB_UNINITIALIZED
instead of -1U in last predictors element's probability member.

From-SVN: r258136

gcc/ChangeLog
gcc/predict.c

index 4649ffa4fd9885ada6d48725067aa030167d47e6..957d15282319d8b345cca9ea4875c3736a7d86fc 100644 (file)
@@ -1,3 +1,8 @@
+2018-03-02  Jakub Jelinek  <jakub@redhat.com>
+
+       * predict.c (test_prediction_value_range): Use PROB_UNINITIALIZED
+       instead of -1U in last predictors element's probability member.
+
 2018-03-02  Eric Botcazou  <ebotcazou@adacore.com>
 
        PR ipa/83983
index 79ee71fac973ead4c8daa51ce8a36b86d61f2fd9..b40dec47822c84dfff1f1ab2c1eb9bd2658f7606 100644 (file)
@@ -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++)