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

--- Comment #8 from Yibiao Yang <yangyibiao at nju dot edu.cn> ---
(In reply to Martin Liška from comment #7)
> > Line #5 is marked as not executed. I understand that this function might be
> > optimized as an inline function. However, since Line #7 and Line #8 is
> > marked as executed and Line #5 is marked as not executed. This might mislead
> > others when debugging or testing based on code coverage.
> 
> That's the nature of any optimizing compiler. If you want to have the best
> results, then don't use -O2, or any other optimization level.

Got it. Thanks a lot.

Reply via email to