|
From: | Manner Róbert |
Subject: | Re: [Mingw-cross-env-list] coverage info disappeared with new compiler |
Date: | Mon, 6 Feb 2017 11:11:14 +0100 |
Hey,On Sun, Feb 5, 2017 at 7:45 AM, Manner Róbert <address@hidden> wrote:
> Hi,
>
> after upgrading mxe, I noticed that my coverage information is missing for
> my test runs.
>
> I have even tried with a minimal app, I am running run
>
> x86_64-w64-mingw32.shared-g++ -o myprogram -coverage main.cpp
> or
> x86_64-w64-mingw32.shared-g++ -o myprogram -fprofile-arcs -ftest-coverage
> -lgcov main.cpp
>
> and run the program a .gcda file is supposed to appear which would contain
> the coverage about the execution. This is exactly what happens with 4.9.4,
> but with the new compiler, I have no gcda files.
>
> gcno files are correctly generated during the build, and I think lgcov is
> linked, because I am able to call
>
> __gcov_init()
> __gcov_flush()
> __gcov_dump()
>
> without linking issues, though, without any change.
>
> Do you have an idea what to check / or have you noticed some change in using
> gcov with this compiler?
>
> Thanks for any pointers in advance,
>
> Robert
I can reproduce this issue on my machine.
Until it is fixed for the new compiler, you can use gcc4 plugin to
switch back to gcc 4.9.4:
echo 'override MXE_PLUGIN_DIRS += plugins/gcc4' >> settings.mk
--
Best regards,
Boris Nagaev
[Prev in Thread] | Current Thread | [Next in Thread] |