diff options
author | Kai Tietz <kai.tietz@onevision.com> | 2011-02-28 18:23:25 +0000 |
---|---|---|
committer | Kai Tietz <ktietz@gcc.gnu.org> | 2011-02-28 19:23:25 +0100 |
commit | 94369251651270268df0a79ea5917265617b7fb4 (patch) | |
tree | 07ad443dd995197f3280e34b7b9dce263c7e22f2 /gcc | |
parent | 80a832cd25fa03a93768f3d2bc05d23a06a87e26 (diff) | |
download | gcc-94369251651270268df0a79ea5917265617b7fb4.zip gcc-94369251651270268df0a79ea5917265617b7fb4.tar.gz gcc-94369251651270268df0a79ea5917265617b7fb4.tar.bz2 |
re PR debug/28047 (DWARF output_file_names should really understand DOS pathnames)
2011-02-28 Kai Tietz <kai.tietz@onevision.com>
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 <kai.tietz@onevision.com>
* filename_cmp.c (filename_ncmp): New function.
* functions.texi: Regenerated.
2011-02-28 Kai Tietz <kai.tietz@onevision.com>
* filenames.h (filename_ncmp): New prototype.
From-SVN: r170570
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/dwarf2out.c | 4 | ||||
-rw-r--r-- | gcc/final.c | 2 |
3 files changed, 11 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c4c7a13..b50ed6f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2011-02-28 Kai Tietz <kai.tietz@onevision.com> + + 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 Bernd Schmidt <bernds@codesourcery.com> Jakub Jelinek <jakub@redhat.com> diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index fea8209..1450e80 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -21560,7 +21560,7 @@ file_table_eq (const void *p1_p, const void *p2_p) const struct dwarf_file_data *const p1 = (const struct dwarf_file_data *) p1_p; const char *const p2 = (const char *) p2_p; - return strcmp (p1->filename, p2) == 0; + return filename_cmp (p1->filename, p2) == 0; } static hashval_t @@ -21591,7 +21591,7 @@ lookup_filename (const char *file_name) call matches this file name. If so, return the index. */ if (file_table_last_lookup && (file_name == file_table_last_lookup->filename - || strcmp (file_table_last_lookup->filename, file_name) == 0)) + || filename_cmp (file_table_last_lookup->filename, file_name) == 0)) return file_table_last_lookup; /* Didn't match the previous lookup, search the table. */ diff --git a/gcc/final.c b/gcc/final.c index ceb7974..1e1424f 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; |