diff options
author | Jakub Jelinek <jakub@redhat.com> | 2016-01-28 23:35:20 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-01-28 23:35:20 +0100 |
commit | 4bda59463f7e470bbffb132fee9347e855639527 (patch) | |
tree | 749e265e10f3a4918fe27b31e63d406222d8c2bd /libcpp/files.c | |
parent | aec0b19e79f2b4b189b8d00a1f84d74cd91f460b (diff) | |
download | gcc-4bda59463f7e470bbffb132fee9347e855639527.zip gcc-4bda59463f7e470bbffb132fee9347e855639527.tar.gz gcc-4bda59463f7e470bbffb132fee9347e855639527.tar.bz2 |
re PR pch/68176 (all pch tests fail on eglibc systems (with bits/predefs.h))
PR pch/68176
* files.c (_cpp_find_file): Set file->implicit_preinclude even if
included from file->implicit_preinclude header.
From-SVN: r232956
Diffstat (limited to 'libcpp/files.c')
-rw-r--r-- | libcpp/files.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libcpp/files.c b/libcpp/files.c index 22b1d05..5aa8d1a 100644 --- a/libcpp/files.c +++ b/libcpp/files.c @@ -522,7 +522,10 @@ _cpp_find_file (cpp_reader *pfile, const char *fname, cpp_dir *start_dir, return entry->u.file; file = make_cpp_file (pfile, start_dir, fname); - file->implicit_preinclude = implicit_preinclude; + file->implicit_preinclude + = (implicit_preinclude + || (pfile->buffer + && pfile->buffer->file->implicit_preinclude)); /* Try each path in the include chain. */ for (; !fake ;) |