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

--- Comment #5 from Yibiao Yang <yangyibiao at nju dot edu.cn> ---
(In reply to Martin Liška from comment #3)
> (In reply to Yibiao Yang from comment #1)
> > I am not very sure whether this is a bug or it is only the default behavior
> > in gcov. 
> > 
> 
> Yes, it's expected. Note that even without any optimization level we do some
> folding. And that's reason why 1 > 0 is optimized out.
> Thanks for the bug report.

Is it possible to mark such kind of if (1) statement as executed and if (0) as
not executed in gcov? Or is it cost too much to achieve that?

Reply via email to