Hi, 

On October 3, 2026 5:03:27 PM EDT, Andres Freund <[email protected]> wrote:
>I think there are definitely some bugs in lcov around multi-line statements
>that contain branches. That's where it seems to very often get confused and
>claims the data is inconsistent, but afaict it's due to it misunderstanding
>the data that gcov spits out.  I'll try to make a bug report out of that.

Oh, huh. At least one of the two bugs is actually a behavioral difference 
between gcc versions, not lcov versions. The gcov data starting with gcc 15 
reports

var =
   cond ? a : b;

i.e. a variable assignment with a conditional in a new line, different than 
before. And the new output actually triggers errors in lcov back to at least 
lcov 2.0. It's actually an error in geninfo.

I found another small repro for multi line conditionals where some branches are 
never reached triggering errors in lcov itself, and that one is not gcc version 
dependent...

Will report bugs later today or tomorrow, food is more important now.

Greetings, 

Andres 
-- 
Sent from my phone. Please excuse my brevity.


Reply via email to