backport: re PR pch/68176 (all pch tests fail on eglibc systems (with bits/predefs.h))

Backported from mainline
	2016-01-28  Jakub Jelinek  <jakub@redhat.com>

	PR pch/68176
	* files.c (_cpp_find_file): Set file->implicit_preinclude even if
	included from file->implicit_preinclude header.

From-SVN: r233299
This commit is contained in:
Jakub Jelinek 2016-02-10 19:43:01 +01:00 committed by Jakub Jelinek
parent 32e6d8c40b
commit 3d863dc5d2
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,12 @@
2016-02-10 Jakub Jelinek <jakub@redhat.com>
Backported from mainline
2016-01-28 Jakub Jelinek <jakub@redhat.com>
PR pch/68176
* files.c (_cpp_find_file): Set file->implicit_preinclude even if
included from file->implicit_preinclude header.
2015-12-04 Release Manager
* GCC 5.3.0 released.

View File

@ -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 ;)