aboutsummaryrefslogtreecommitdiff
path: root/libcpp/line-map.c
diff options
context:
space:
mode:
authorKai Tietz <ktietz@redhat.com>2011-03-25 20:11:26 +0100
committerKai Tietz <ktietz@gcc.gnu.org>2011-03-25 20:11:26 +0100
commit4489800d000d008d3bf47ffcdc85349eff1aec14 (patch)
tree3c0770ee3a7ff6a848c29032309a198598258211 /libcpp/line-map.c
parent75f6ec9afdb6457f7a728a4360b0a37160b88c4b (diff)
downloadgcc-4489800d000d008d3bf47ffcdc85349eff1aec14.zip
gcc-4489800d000d008d3bf47ffcdc85349eff1aec14.tar.gz
gcc-4489800d000d008d3bf47ffcdc85349eff1aec14.tar.bz2
files.c (file_hash_eq): Use filename_cmp instead of strcmp.
2011-03-25 Kai Tietz <ktietz@redhat.com> * files.c (file_hash_eq): Use filename_cmp instead of strcmp. (nonexistent_file_hash_eq): Likewise. (remap_filename): Likewise. Handle absolute DOS-path, (append_file_to_dir): Check for IS_DIR_SEPARATOR instead of slash. (read_name_map): Likewise. * linemap.c (linemap_add): Use filename_cmp instead of strcmp. * mkdeps.c (apply_vpath): Use filename_ncmp instead of strncmp. (deps_restore): Use filename_cmp instead of strcmp. * init.c (read_original_directory): Use IS_DIR_SEPARATOR instead of checking for slash. From-SVN: r171521
Diffstat (limited to 'libcpp/line-map.c')
-rw-r--r--libcpp/line-map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpp/line-map.c b/libcpp/line-map.c
index a82c428..86e2484 100644
--- a/libcpp/line-map.c
+++ b/libcpp/line-map.c
@@ -138,7 +138,7 @@ linemap_add (struct line_maps *set, enum lc_reason reason,
else
{
from = INCLUDED_FROM (set, map - 1);
- error = to_file && strcmp (from->to_file, to_file);
+ error = to_file && filename_cmp (from->to_file, to_file);
}
/* Depending upon whether we are handling preprocessed input or