https://gcc.gnu.org/g:94d93a6759c8ee2bca0ce6d6c7e55641a20e0830

commit r17-1495-g94d93a6759c8ee2bca0ce6d6c7e55641a20e0830
Author: Roman Beliaev <[email protected]>
Date:   Thu Jun 11 09:41:25 2026 -0600

    [PATCH] gcov: Fix correctness check for control flow graph solving
    
    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.

Diff:
---
 gcc/gcov.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/gcov.cc b/gcc/gcov.cc
index 9dc39fc32358..9797ddd8ca8d 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",

Reply via email to