https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86399
Bug ID: 86399 Summary: gcc 9.0 from r262251 can't be build for Windows/mingw-w64 target Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: mateuszb at poczta dot onet.pl Target Milestone: --- In r262251 it was changed file "gcc/coverage.c": +#if HAVE_DOS_BASED_FILE_SYSTEM + const char separator = "\\"; +#else + const char *separator = "/"; +#endif For Windows/mingw-w64 target it should be *separator instead of separator, tested patch: --- gcc/coverage.c (revision 262370) +++ gcc/coverage.c (working copy) @@ -1227,7 +1227,7 @@ if (profile_data_prefix) { #if HAVE_DOS_BASED_FILE_SYSTEM - const char separator = "\\"; + const char *separator = "\\"; #else const char *separator = "/"; #endif