From 05e817242739f61b792b0730712e512ba25256b5 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Thu, 11 Jan 2001 21:30:16 +0000 Subject: [multiple changes] 2001-01-11 Neil Booth * 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 * 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 --- gcc/tradcpp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/tradcpp.c') diff --git a/gcc/tradcpp.c b/gcc/tradcpp.c index 64ff649..e5e0935 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; -- cgit v1.1