summaryrefslogtreecommitdiff
path: root/libcpp/files.c
diff options
context:
space:
mode:
authorSimon Baldwin <simonb@google.com>2012-11-16 17:14:05 +0000
committerSimon Baldwin <simonb@gcc.gnu.org>2012-11-16 17:14:05 +0000
commit5dc99c46786e91f2892c4318ed36054302e0c964 (patch)
tree709320b578253406cba90335431f68194bf6b70a /libcpp/files.c
parentb185792f5216497c74664bdf9ba2d465628d6f4c (diff)
downloadgcc-5dc99c46786e91f2892c4318ed36054302e0c964.tar.gz
cpplib.h (struct cpp_options): Add canonical_system_headers.
* include/cpplib.h (struct cpp_options): Add canonical_system_headers. * files.c (find_file_in_dir): Call maybe_shorter_path() only if canonical_system_headers is set. * init.c (cpp_create_reader): Initialize canonical_system_headers. * configure.ac: Add new --enable-canonical-system-headers. * configure: Regenerate. * config.in: Regenerate. * doc/cppopts.texi: Document -f[no-]canonical-system-headers. * doc/install.texi: Document --enable-canonical-system-headers. * c.opt: Add f[no-]canonical-system-headers. * c-opts.c (c_common_handle_option): Handle OPT_fcanonical_system_headers. From-SVN: r193569
Diffstat (limited to 'libcpp/files.c')
-rw-r--r--libcpp/files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpp/files.c b/libcpp/files.c
index ecaa27414e1..a8288dc934d 100644
--- a/libcpp/files.c
+++ b/libcpp/files.c
@@ -389,7 +389,7 @@ find_file_in_dir (cpp_reader *pfile, _cpp_file *file, bool *invalid_pch)
void **pp;
/* We try to canonicalize system headers. */
- if (file->dir->sysp)
+ if (CPP_OPTION (pfile, canonical_system_headers) && file->dir->sysp)
{
char * canonical_path = maybe_shorter_path (path);
if (canonical_path)