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 /libcpp/init.c | |
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 'libcpp/init.c')
-rw-r--r-- | libcpp/init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcpp/init.c b/libcpp/init.c index c0c9020..d06f95e 100644 --- a/libcpp/init.c +++ b/libcpp/init.c @@ -185,6 +185,7 @@ cpp_create_reader (enum c_lang lang, cpp_hash_table *table, CPP_OPTION (pfile, warn_multichar) = 1; CPP_OPTION (pfile, discard_comments) = 1; CPP_OPTION (pfile, discard_comments_in_macro_exp) = 1; + CPP_OPTION (pfile, max_include_depth) = 200; CPP_OPTION (pfile, tabstop) = 8; CPP_OPTION (pfile, operator_names) = 1; CPP_OPTION (pfile, warn_trigraphs) = 2; |