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

Richard Biener richard.guenther@gmail.com
Fri Jun 7 08:26:00 GMT 2019


On Mon, Jun 3, 2019 at 6:46 PM Qing Zhao <qing.zhao@oracle.com> wrote:
>
> Hi,
>
> this is the 3rd version of the patch, which fixed the issues Paolo raised in the previous email.
>
> Okay for trunk?

OK.

Thanks,
Richard.

> 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.
>
>
>
>



More information about the Gcc-patches mailing list