Message ID | alpine.LSU.2.20.1702171043560.8538@zhemvz.fhfr.qr |
---|---|
State | New |
Headers | show |
Index: gcc/genmatch.c =================================================================== --- gcc/genmatch.c (revision 245501) +++ gcc/genmatch.c (working copy) @@ -192,6 +192,11 @@ output_line_directive (FILE *f, source_l { /* When writing to a dumpfile only dump the filename. */ const char *file = strrchr (loc.file, DIR_SEPARATOR); +#if defined(DIR_SEPARATOR_2) + const char *pos2 = strrchr (loc.file, DIR_SEPARATOR_2); + if (pos2 && (!file || (pos2 > file))) + file = pos2; +#endif if (!file) file = loc.file; else