predict.c (set_even_probabilities): Make nedges unsigned.
authorRichard Biener <rguenther@suse.de>
Wed, 27 Jul 2016 10:33:02 +0000 (10:33 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 27 Jul 2016 10:33:02 +0000 (10:33 +0000)
2016-07-27  Richard Biener  <rguenther@suse.de>

* predict.c (set_even_probabilities): Make nedges unsigned.

From-SVN: r238782

gcc/ChangeLog
gcc/predict.c

index 4169007115a26439acda2e8234e831ae881bd75c..e5aa7c76f8a95088cd58203101dd0e3278c0ee62 100644 (file)
@@ -1,3 +1,7 @@
+2016-07-27  Richard Biener  <rguenther@suse.de>
+
+       * predict.c (set_even_probabilities): Make nedges unsigned.
+
 2016-07-27  Martin Liska  <mliska@suse.cz>
 
        * predict.c (set_even_probabilities): Handle unlikely edges.
index ca320cde68ddf7657531f756c9ecaadbba3637c5..c1dbb96b8c5031ed042047de10548c13e61e3185 100644 (file)
@@ -793,7 +793,7 @@ static void
 set_even_probabilities (basic_block bb,
                        hash_set<edge> *unlikely_edges = NULL)
 {
-  int nedges = 0;
+  unsigned nedges = 0;
   edge e;
   edge_iterator ei;