From: Neil Booth Date: Sat, 9 Aug 2003 08:53:02 +0000 (+0000) Subject: re PR preprocessor/11839 (GCC cannot find t/t.h if t is a file and t/t.h is in subdir... X-Git-Tag: releases/gcc-3.4.0~4323 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a54c550f3ff4cfd3b7b7d0978d8acee86be0ed2a;p=thirdparty%2Fgcc.git re PR preprocessor/11839 (GCC cannot find t/t.h if t is a file and t/t.h is in subdirectory temp) PR preprocessor/11839 * cppfiles.c (open_file): Handle ENOTDIR. From-SVN: r70275 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6a73d11c131c..ce0272437676 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-08-09 Neil Booth + + PR preprocessor/11839 + * cppfiles.c (open_file): Handle ENOTDIR. + 2003-08-09 Richard Sandiford PR target/11699 diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c index 8dcc269d1062..4c3608b127c7 100644 --- a/gcc/cppfiles.c +++ b/gcc/cppfiles.c @@ -230,6 +230,8 @@ open_file (_cpp_file *file) close (file->fd); file->fd = -1; } + else if (errno == ENOTDIR) + errno = ENOENT; file->err_no = errno;