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/tradcpp.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/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; |