The check did not actually work due to the wrong condition in a for loop, which
was always false.
gcc/ChangeLog:
* gcov.cc (solve_flow_graph): Fix condition.
---
gcc/gcov.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/gcov.cc b/gcc/gcov.cc
index 9dc39fc3235..9797ddd8ca8 100644
--- a/gcc/gcov.cc
+++ b/gcc/gcov.cc
@@ -2852,7 +2852,7 @@ solve_flow_graph (function_info *fn)
/* If the graph has been correctly solved, every block will have a
valid count. */
- for (unsigned i = 0; ix < fn->blocks.size (); i++)
+ for (unsigned i = 0; i < fn->blocks.size (); i++)
if (!fn->blocks[i].count_valid)
{
fnotice (stderr, "%s:graph is unsolvable for '%s'\n",
--
2.54.0