diff options
author | Qing Zhao <qing.zhao@oracle.com> | 2019-07-02 20:23:30 +0000 |
---|---|---|
committer | Qing Zhao <qinzhao@gcc.gnu.org> | 2019-07-02 20:23:30 +0000 |
commit | 1c6ffbab63f55187909b6d71cfca6080e9cf43cf (patch) | |
tree | 679d86bed67edce3cb9d5cbc6390c7cbaa52e899 /gcc/doc | |
parent | 709877bf765cbef2d758ecb48c6e34b94e8a7151 (diff) | |
download | gcc-1c6ffbab63f55187909b6d71cfca6080e9cf43cf.zip gcc-1c6ffbab63f55187909b6d71cfca6080e9cf43cf.tar.gz gcc-1c6ffbab63f55187909b6d71cfca6080e9cf43cf.tar.bz2 |
re PR preprocessor/90581 (provide an option to adjust the maximum depth of nested #include)
PR preprocessor/90581
Add a cpp option -fmax-include-depth to set the maximum depth of the nested #include.
From-SVN: r272948
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/cppopts.texi | 4 | ||||
-rw-r--r-- | gcc/doc/invoke.texi | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gcc/doc/cppopts.texi b/gcc/doc/cppopts.texi index 48c574f..61e22cd 100644 --- a/gcc/doc/cppopts.texi +++ b/gcc/doc/cppopts.texi @@ -261,6 +261,10 @@ enabled by default for C99 (and later C standard versions) and C++. @opindex fno-canonical-system-headers When preprocessing, do not shorten system header paths with canonicalization. +@item -fmax-include-depth=@var{depth} +@opindex fmax-include-depth +Set the maximum depth of the nested #include. The default is 200. + @item -ftabstop=@var{width} @opindex ftabstop Set the distance between tab stops. This helps the preprocessor report diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 9c6050b..ae1a7d2 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -518,6 +518,7 @@ Objective-C and Objective-C++ Dialects}. -fdebug-cpp -fdirectives-only -fdollars-in-identifiers @gol -fexec-charset=@var{charset} -fextended-identifiers @gol -finput-charset=@var{charset} -fmacro-prefix-map=@var{old}=@var{new} @gol +-fmax-include-depth=@var{depth} @gol -fno-canonical-system-headers -fpch-deps -fpch-preprocess @gol -fpreprocessed -ftabstop=@var{width} -ftrack-macro-expansion @gol -fwide-exec-charset=@var{charset} -fworking-directory @gol |