From 94369251651270268df0a79ea5917265617b7fb4 Mon Sep 17 00:00:00 2001 From: Kai Tietz Date: Mon, 28 Feb 2011 18:23:25 +0000 Subject: re PR debug/28047 (DWARF output_file_names should really understand DOS pathnames) 2011-02-28 Kai Tietz PR debug/28047 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp. (lookup_filename): Likewise. * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp. 2011-02-28 Kai Tietz * filename_cmp.c (filename_ncmp): New function. * functions.texi: Regenerated. 2011-02-28 Kai Tietz * filenames.h (filename_ncmp): New prototype. From-SVN: r170570 --- gcc/final.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/final.c') diff --git a/gcc/final.c b/gcc/final.c index ceb79744c41..1e1424feabc 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -1492,7 +1492,7 @@ remap_debug_filename (const char *filename) size_t name_len; for (map = debug_prefix_maps; map; map = map->next) - if (strncmp (filename, map->old_prefix, map->old_len) == 0) + if (filename_ncmp (filename, map->old_prefix, map->old_len) == 0) break; if (!map) return filename; -- cgit v1.2.1