While doing some DWARF-related work, I noticed that output_file_names in dwarf2out.c parses filenames assuming they are UNIX, things like:
/* Skip all leading "./". */ f = d->filename; while (f[0] == '.' && f[1] == '/') f += 2; I'm fairly sure it won't work right on DOS-style pathnames, even something as simple as \foo\bar.h won't be handled right. Probably all the filename handling in dwarf2out.c should be checked for related issues. -- Summary: DWARF output_file_names should really understand DOS pathnames Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: geoffk at gcc dot gnu dot org GCC target triplet: *-*-mingw http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28047