https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83266
--- Comment #4 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. Thanks very much for the reply.