re PR pch/55399 (pch tests fail on mips-mti-linux-gnu target)

2012-11-21  Steve Ellcey  <sellcey@mips.com>

	PR pch/55399
	* files.c (pch_open_file): Fix check for implicit_preinclude.

From-SVN: r193709
This commit is contained in:
Steve Ellcey 2012-11-21 21:28:30 +00:00 committed by Steve Ellcey
parent 4c5ba8d0db
commit 3196203294
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2012-11-21 Steve Ellcey <sellcey@mips.com>
PR pch/55399
* files.c (pch_open_file): Fix check for implicit_preinclude.
2012-11-16 Simon Baldwin <simonb@google.com>
* include/cpplib.h (struct cpp_options): Add canonical_system_headers.

View file

@ -295,7 +295,8 @@ pch_open_file (cpp_reader *pfile, _cpp_file *file, bool *invalid_pch)
file or the command-line it is not a valid use of PCH. */
if (pfile->all_files
&& pfile->all_files->next_file
&& !pfile->all_files->next_file->implicit_preinclude)
&& !(pfile->all_files->implicit_preinclude
|| pfile->all_files->next_file->implicit_preinclude))
return false;
flen = strlen (path);