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/tradcpp.c | |
parent | 76d06edcf6c741801b51ecf31a48f262c8f85c52 (diff) | |
download | gcc-05e817242739f61b792b0730712e512ba25256b5.tar.gz |
[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/tradcpp.c')
-rw-r--r-- | gcc/tradcpp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tradcpp.c b/gcc/tradcpp.c index 64ff649eb00..e5e0935b754 100644 --- a/gcc/tradcpp.c +++ b/gcc/tradcpp.c @@ -647,7 +647,7 @@ main (argc, argv) int quoted = argv[i][2] == 'Q'; if (*tgt == '\0' && i + 1 == argc) - fatal ("Filename missing after %s option", argv[i]); + fatal ("Target missing after %s option", argv[i]); else { if (*tgt == '\0') @@ -2374,7 +2374,7 @@ get_filename: /* If specified file name is absolute, just open it. */ - if (*fbeg == '/') { + if (IS_ABSOLUTE_PATHNAME (fbeg)) { strncpy (fname, (const char *)fbeg, flen); fname[flen] = 0; f = open (fname, O_RDONLY, 0666); @@ -2409,7 +2409,7 @@ get_filename: else stackp = include; - if (!system_header_p || *fbeg == '/' || !stackp->fname) + if (!system_header_p || IS_ABSOLUTE_PATHNAME (fbeg) || !stackp->fname) deps_add_dep (deps, fname); else { char *p; |