diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-11 21:30:16 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-11 21:30:16 +0000 |
commit | c2acbd5aee211eb2d320b23ed9de9a8c27634054 (patch) | |
tree | ccce935ca0e9dc123a10800c572cceabc8074b67 /gcc/cppfiles.c | |
parent | 4336d1295b682ec37dea0f1b17107d75aa1d90ab (diff) | |
download | gcc-c2acbd5aee211eb2d320b23ed9de9a8c27634054.tar.gz |
2001-01-11 Neil Booth <neil@daikokuya.demon.co.uk>
* cppinit.c (cpp_start_read): If -fpreprocessed, ignore
-D, -U and -A, and don't initialize the builtins.
* cppmain.c (cb_define, cb_undef): Unconditionally process
the callback.
* tradcpp.c (main): Fix typo.
2000-01-11 Mark Elbrecht <snowball3@bigfoot.com>
* cppfiles.c (cpp_included, find_include_file, _cpp_execute_include)
(read_name_map): Use IS_ABSOLUTE_PATH.
* tradcpp.c (get_filename): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38925 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppfiles.c')
-rw-r--r-- | gcc/cppfiles.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c index 0549df3a163..91f886b8f79 100644 --- a/gcc/cppfiles.c +++ b/gcc/cppfiles.c @@ -430,7 +430,7 @@ cpp_included (pfile, fname) char *name; splay_tree_node nd; - if (fname[0] == '/') + if (IS_ABSOLUTE_PATHNAME (fname)) { /* Just look it up. */ nd = splay_tree_lookup (pfile->all_include_files, (splay_tree_key) fname); @@ -470,7 +470,7 @@ find_include_file (pfile, fname, search_start) char *name; struct include_file *file; - if (fname[0] == '/') + if (IS_ABSOLUTE_PATHNAME (fname)) return open_file (pfile, fname); /* Search directory path for the file. */ @@ -648,7 +648,7 @@ _cpp_execute_include (pfile, header, no_reinclude, include_next) if (CPP_OPTION (pfile, print_deps_missing_files) && PRINT_THIS_DEP (pfile, angle_brackets)) { - if (!angle_brackets || *fname == '/') + if (!angle_brackets || IS_ABSOLUTE_PATHNAME (fname)) deps_add_dep (pfile->deps, fname); else { @@ -890,7 +890,7 @@ read_name_map (pfile, dirname) ptr->map_from = from; /* Make the real filename absolute. */ - if (*to == '/') + if (IS_ABSOLUTE_PATHNAME (to)) ptr->map_to = to; else { |