diff options
author | Simon Baldwin <simonb@google.com> | 2012-11-16 17:14:05 +0000 |
---|---|---|
committer | Simon Baldwin <simonb@gcc.gnu.org> | 2012-11-16 17:14:05 +0000 |
commit | 5dc99c46786e91f2892c4318ed36054302e0c964 (patch) | |
tree | 709320b578253406cba90335431f68194bf6b70a /gcc/doc | |
parent | b185792f5216497c74664bdf9ba2d465628d6f4c (diff) | |
download | gcc-5dc99c46786e91f2892c4318ed36054302e0c964.zip gcc-5dc99c46786e91f2892c4318ed36054302e0c964.tar.gz gcc-5dc99c46786e91f2892c4318ed36054302e0c964.tar.bz2 |
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 'gcc/doc')
-rw-r--r-- | gcc/doc/cppopts.texi | 4 | ||||
-rw-r--r-- | gcc/doc/install.texi | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/doc/cppopts.texi b/gcc/doc/cppopts.texi index a2eb79d..37e0b7b5 100644 --- a/gcc/doc/cppopts.texi +++ b/gcc/doc/cppopts.texi @@ -564,6 +564,10 @@ Accept universal character names in identifiers. This option is experimental; in a future version of GCC, it will be enabled by default for C99 and C++. +@item -fno-canonical-system-headers +@opindex fno-canonical-system-headers +When preprocessing, do not shorten system header paths with canonicalization. + @item -fpreprocessed @opindex fpreprocessed Indicate to the preprocessor that the input file has already been diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi index 7396158..b78d127 100644 --- a/gcc/doc/install.texi +++ b/gcc/doc/install.texi @@ -1719,6 +1719,14 @@ link time when @option{-fuse-linker-plugin} is enabled. This linker should have plugin support such as gold starting with version 2.20 or GNU ld starting with version 2.21. See @option{-fuse-linker-plugin} for details. + +@item --enable-canonical-system-headers +@itemx --disable-canonical-system-headers +Enable system header path canonicalization for @file{libcpp}. This can +produce shorter header file paths in diagnostics and dependency output +files, but these changed header paths may conflict with some compilation +environments. Enabled by default, and may be disabled using +@option{--disable-canonical-system-headers}. @end table @subheading Cross-Compiler-Specific Options |