Committed as obvious.

Richard.

2016-06-10  Richard Biener  <rguent...@suse.de>

        PR middle-end/71477
        * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.

Index: gcc/cfgloop.c
===================================================================
--- gcc/cfgloop.c       (revision 237286)
+++ gcc/cfgloop.c       (working copy)
@@ -331,6 +331,7 @@ alloc_loop (void)
   loop->exits->next = loop->exits->prev = loop->exits;
   loop->can_be_parallel = false;
   loop->nb_iterations_upper_bound = 0;
+  loop->nb_iterations_likely_upper_bound = 0;
   loop->nb_iterations_estimate = 0;
   return loop;
 }
Index: gcc/testsuite/gcc.dg/torture/pr71477.c
===================================================================
--- gcc/testsuite/gcc.dg/torture/pr71477.c      (revision 0)
+++ gcc/testsuite/gcc.dg/torture/pr71477.c      (working copy)
@@ -0,0 +1,11 @@
+/* { dg-do compile } */
+
+#define N 6
+int a;
+void fn1()
+{
+  int k = 0;
+  for (; k < N;)
+    for (a = 0; a < N; k++)
+      a = k + N;
+}

Reply via email to