[PATCH][Preprocessor][Version 3]patch to fix PR 90581

Qing Zhao qing.zhao@oracle.com
Mon Jun 3 16:46:00 GMT 2019


Hi,

this is the 3rd version of the patch, which fixed the issues Paolo raised in the previous email.

Okay for trunk?

thanks.

gcc/ChangeLog:

2019-06-03  qing zhao  <qing.zhao@oracle.com>

       * doc/cppopts.texi: Add document for -fmax-include-depth.
       * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.

libcpp/ChangeLog:

2019-06-03  qing zhao  <qing.zhao@oracle.com>

       * directives.c (do_include_common): Replace CPP_STACK_MAX with
       CPP_OPTION (pfile, max_include_depth).
       * include/cpplib.h (struct cpp_options): Add new field
       max_include_depth.
       * init.c (cpp_create_reader): Initiate new field max_include_depth.
       * internal.h: Delete CPP_STACK_MAX.

gcc/c-family/ChangeLog:

2019-06-03  qing zhao  <qing.zhao@oracle.com>

       * c-opts.c (c_common_handle_option): Handle -fmax-include-depth.
       * c.opt: Add new option -fmax-include-depth.

gcc/testsuite/ChangeLog:

2019-06-03  qing zhao  <qing.zhao@oracle.com>

       * c-c++-common/cpp/fmax-include-depth-1a.h: New test.
       * c-c++-common/cpp/fmax-include-depth-1b.h: New test.
       * c-c++-common/cpp/fmax-include-depth.c: New test.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-PR-preprocessor-90581.patch
Type: application/octet-stream
Size: 6926 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190603/2bb1c738/attachment.obj>
-------------- next part --------------





More information about the Gcc-patches mailing list