diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-06 07:22:01 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-06 07:22:01 +0000 |
commit | 7eda354a6f764900c1db7d8a0d30fe4c084ba074 (patch) | |
tree | c15a70516f598de133ec9104c90fc14238a59310 /gcc/cppinit.c | |
parent | 2eb1914f18fcab815865c3c5480445b3565631d5 (diff) | |
download | gcc-7eda354a6f764900c1db7d8a0d30fe4c084ba074.tar.gz |
* configure.in: Add check for lstat.
* configure, config.in: Regenerate.
* cppinit.c (append_include_chain): Make empty path ".".
* cpplib.c (do_line): Don't simplify #line paths.
* cppfiles.c (remove_component_p): New function.
(find_or_create_entry): Acknowledge stat () errors during
path simplification.
(handle_missing_header): Don't simplify paths.
(_cpp_simplify_pathname): Don't simplify VMS paths. Return
the empty path untouched. Don't leave a trailing '/'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41148 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r-- | gcc/cppinit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c index 13a0e645b92..980cdb1df42 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -211,10 +211,12 @@ append_include_chain (pfile, dir, path, cxx_aware) struct stat st; unsigned int len; + if (*dir == '\0') + dir = xstrdup ("."); _cpp_simplify_pathname (dir); if (stat (dir, &st)) { - /* Dirs that don't exist are silently ignored. */ + /* Dirs that don't exist are silently ignored. */ if (errno != ENOENT) cpp_notice_from_errno (pfile, dir); else if (CPP_OPTION (pfile, verbose)) |