aboutsummaryrefslogtreecommitdiff
path: root/libcpp/include
diff options
context:
space:
mode:
authorQing Zhao <qing.zhao@oracle.com>2019-07-02 20:23:30 +0000
committerQing Zhao <qinzhao@gcc.gnu.org>2019-07-02 20:23:30 +0000
commit1c6ffbab63f55187909b6d71cfca6080e9cf43cf (patch)
tree679d86bed67edce3cb9d5cbc6390c7cbaa52e899 /libcpp/include
parent709877bf765cbef2d758ecb48c6e34b94e8a7151 (diff)
downloadgcc-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 'libcpp/include')
-rw-r--r--libcpp/include/cpplib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libcpp/include/cpplib.h b/libcpp/include/cpplib.h
index 3edb93d..91d97f9 100644
--- a/libcpp/include/cpplib.h
+++ b/libcpp/include/cpplib.h
@@ -550,6 +550,9 @@ struct cpp_options
/* True enables canonicalization of system header file paths. */
bool canonical_system_headers;
+
+ /* The maximum depth of the nested #include. */
+ unsigned int max_include_depth;
};
/* Diagnostic levels. To get a diagnostic without associating a