[Bug gcov-profile/85245] [GCOV] A return statement in the if(0) block is wrongly marked as executed when they are nested in the true block of if (cond-expression) statement in gcov

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jul 24 13:33:00 GMT 2018


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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Again, due to:

        -:    6:      if (0)
        1:    7:        return 0; // is executed

it's folded away.


More information about the Gcc-bugs mailing list