https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79392
Bug ID: 79392 Summary: MinGW-w64 backend: programs built with --coverage do not create *.gcda files Product: gcc Version: 5.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: gcov-profile Assignee: unassigned at gcc dot gnu.org Reporter: bnagaev at gmail dot com Target Milestone: --- I believe that for GCC >= 5 with MinGW-w64 backend flag --coverage doesn't work correctly. Steps to reproduce: * install Debian Stretch (testing) * install gcc-mingw-w64 and wine * compile the C program [1] with the command i686-w64-mingw32-gcc --coverage a.c -o a.exe * run `wine a.exe` * file a.gcda was not created, but it is expected to [1] the program a.c #include <stdio.h> int main(int argc, char** argv) { if (argc >= 2) { printf("argv[1] = %s\n", argv[1]); } return 0; } See also https://github.com/mxe/mxe/issues/1665 See also http://lists.nongnu.org/archive/html/mingw-cross-env-list/2017-02/msg00009.html See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=854368