diff options
author | Kai Tietz <ktietz@redhat.com> | 2011-03-25 20:11:26 +0100 |
---|---|---|
committer | Kai Tietz <ktietz@gcc.gnu.org> | 2011-03-25 20:11:26 +0100 |
commit | 4489800d000d008d3bf47ffcdc85349eff1aec14 (patch) | |
tree | 3c0770ee3a7ff6a848c29032309a198598258211 /libcpp/mkdeps.c | |
parent | 75f6ec9afdb6457f7a728a4360b0a37160b88c4b (diff) | |
download | gcc-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/mkdeps.c')
-rw-r--r-- | libcpp/mkdeps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcpp/mkdeps.c b/libcpp/mkdeps.c index faac162..af11ac3 100644 --- a/libcpp/mkdeps.c +++ b/libcpp/mkdeps.c @@ -130,7 +130,7 @@ apply_vpath (struct deps *d, const char *t) unsigned int i; for (i = 0; i < d->nvpaths; i++) { - if (!strncmp (d->vpathv[i], t, d->vpathlv[i])) + if (!filename_ncmp (d->vpathv[i], t, d->vpathlv[i])) { const char *p = t + d->vpathlv[i]; if (!IS_DIR_SEPARATOR (*p)) @@ -421,7 +421,7 @@ deps_restore (struct deps *deps, FILE *fd, const char *self) buf[num_to_read] = '\0'; /* Generate makefile dependencies from .pch if -nopch-deps. */ - if (self != NULL && strcmp (buf, self) != 0) + if (self != NULL && filename_cmp (buf, self) != 0) deps_add_dep (deps, buf); } |