diff options
author | Steve Ellcey <sellcey@mips.com> | 2012-11-21 21:28:30 +0000 |
---|---|---|
committer | Steve Ellcey <sje@gcc.gnu.org> | 2012-11-21 21:28:30 +0000 |
commit | 3196203294917e60746461b8146cfeb00d5c0a5b (patch) | |
tree | ebff34b128e804f984878a2412e91ac7a0588891 /libcpp | |
parent | 4c5ba8d0dba408aae0ab739e978fe0e64ba83f13 (diff) | |
download | gcc-3196203294917e60746461b8146cfeb00d5c0a5b.zip gcc-3196203294917e60746461b8146cfeb00d5c0a5b.tar.gz gcc-3196203294917e60746461b8146cfeb00d5c0a5b.tar.bz2 |
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
Diffstat (limited to 'libcpp')
-rw-r--r-- | libcpp/ChangeLog | 5 | ||||
-rw-r--r-- | libcpp/files.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 30cef77..3b729b8 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -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. diff --git a/libcpp/files.c b/libcpp/files.c index a8288dc..9f84d8c 100644 --- a/libcpp/files.c +++ b/libcpp/files.c @@ -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); |