Hello, For this PR (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28047) most things are already fixed. Just one point isn't handled correct for DOS-filesystem. As DOS-filesystem normally uses case-insensitive path/file-names and backslash/slash as path-separators, a comparision of file/path-names via strcmp/strncmp isn't suitable. I found in libiberty, that there is alread the filename_cmp function, which handles it proper. As in source also strncmp is used, I added to libiberty the new function filename_ncmp, which is for none-DOS file-systems just the strncmp function, and for DOS-case an implementation of strncasecmp with special handling for the path-separators. ChangeLog gcc/ 2011-02-24 Kai Tietz PR debug/28047 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp. * dwarf2out.c (lookup_filename): Likewise. * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp. ChangeLog /include 2011-02-24 Kai Tietz * filenames.h (filename_ncmp): New prototype. ChangeLog /libiberty 2011-02-24 Kai Tietz * filename_cmp.c (filename_ncmp): New function. * functions.texi: Regenerated. Tested for i686-pc-mingw32, x86_64-w64-mingw32, and regression-tested for x86_64-pc-linux-gnu. Ok for apply? Regards, Kai