Package: gcc-mingw-w64 Version: 6.2.1-3+19.2 Severity: normal Tags: upstream
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 -- System Information: Debian Release: 9.0 APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.9.0-1-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages gcc-mingw-w64 depends on: ii gcc-mingw-w64-i686 6.2.1-3+19.2 ii gcc-mingw-w64-x86-64 6.2.1-3+19.2 Versions of packages gcc-mingw-w64 recommends: ii g++-mingw-w64 6.2.1-3+19.2 ii gfortran-mingw-w64 6.2.1-3+19.2 ii gnat-mingw-w64 6.2.1-7+19.3 gcc-mingw-w64 suggests no packages. -- no debconf information