[Bug gcov-profile/101618] [GCOV] Wrong coverage caused by call site in a "for" statement

njuwy at smail dot nju.edu.cn gcc-bugzilla@gcc.gnu.org
Mon Jul 4 12:15:34 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101618

--- Comment #3 from Yang Wang <njuwy at smail dot nju.edu.cn> ---
(In reply to Yang Wang from comment #2)
> The coverage is correct later version (gcov 11.1.0 and 12.1.0),is it fixed?
In version 12.1.0

        1:  133:static void __attribute__((noinline)) foobar(bitmap_head
*chain) {
        -:  134:  bitmap_iterator rsi;
        -:  135:  unsigned int regno;
        1:  136:  for (bmp_iter_set_init(&(rsi), (chain), (0), &(regno));
        3:  137:       bmp_iter_set(&(rsi), &(regno)); bmp_iter_next(&(rsi),
&(regno)))
        2:  138:    catchme(regno);
        1:  139:}


More information about the Gcc-bugs mailing list