Problem with counting code coverage lines - return statement
Dan Kegel
dank@kegel.com
Mon Oct 4 15:20:35 GMT 2021
I suspect it may have to do with optimization, does it persist at -O1 or
-O0?
See https://gcc.gnu.org/onlinedocs/gcc/Gcov-and-Optimization.html
- Dan
Sara Graovac <Sara.Graovac@syrmia.com> schrieb am Mo., 4. Okt. 2021, 00:31:
> Hi,
>
> Do you have time to look at this?
>
> Best regards,
> Sara Graovac
>
> From: Sara Graovac
> Sent: 21 September, 2021 16:15
> To: gcc-help@gcc.gnu.org
> Subject: Problem with counting code coverage lines - return statement
>
>
> Hi,
>
> We use your tool gcov, exactly lcov, for code coverage. It is important to
> us.
> We find a problem with counting lines, when in return statement call the
> other function and the arguments of the function are on two lines, because
> of alignment.
>
> Sometimes it counts only first line, sometimes it counts both lines.
> In my current project first line is counted 109 times, the second one is
> counted 14 times.
>
> I send you the example of return statement, please see attachment.
>
> I tried to find where the problem is.
> Can you help me to fix it?
>
> Kind regards,
> Sara Graovac
> Contactor Syrmia
> Software Engineer
> Virtualization
>
> Office:
> Djordja Stanojevica 12
> 11070 Belgrade, Serbia
> Phone: +(381)-21-4831-210
> E-mail: sara.graovac@amd.com<mailto:sara.graovac@amd.com>
> sara.graovac@syrmia.com<mailto:sara.graovac@syrmia.com>
>
> Headquarters:
> Syrmia LLC @ Belgrade Office Park
> Djordja Stanojevica 12,
> 11070 Belgrade, Serbia
> www.syrmia.com<http://www.syrmia.com/>
>
>
More information about the Gcc-help
mailing list