diff options
author | Neil Booth <neil@gcc.gnu.org> | 2001-01-11 21:30:16 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-01-11 21:30:16 +0000 |
commit | 05e817242739f61b792b0730712e512ba25256b5 (patch) | |
tree | ccce935ca0e9dc123a10800c572cceabc8074b67 /gcc/cppfiles.c | |
parent | 76d06edcf6c741801b51ecf31a48f262c8f85c52 (diff) | |
download | gcc-05e817242739f61b792b0730712e512ba25256b5.zip gcc-05e817242739f61b792b0730712e512ba25256b5.tar.gz gcc-05e817242739f61b792b0730712e512ba25256b5.tar.bz2 |
[multiple changes]
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.
From-SVN: r38925
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 0549df3..91f886b 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 { |