From 4bda59463f7e470bbffb132fee9347e855639527 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 28 Jan 2016 23:35:20 +0100 Subject: 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 --- libcpp/files.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libcpp/files.c') 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 ;) -- cgit v1.1