> On May 30, 2019, at 3:38 PM, David Malcolm <dmalc...@redhat.com> wrote:
> 
> On Thu, 2019-05-30 at 15:17 -0500, Qing Zhao wrote:
>>> On May 30, 2019, at 2:13 PM, Bernhard Reutner-Fischer <rep.dot.nop@
>>> gmail.com> wrote:
>>> 
>>> On 30 May 2019 18:23:43 CEST, Qing Zhao <qing.z...@oracle.com>
>>> wrote:
>>>> Hi,
>>>> 
>>>> PR 90581 (provide an option to adjust the maximum depth of nested
>>>> #include)
>>>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90581
>>>> 
>>>> is to add a new cpp option -fmax-inlcude-depth
>>> 
>>> Typo inl vs inc.
>> 
>> Okay, will fix this.
>> 
>>> 
>>> Why isn't this a param?
>> 
>> do you mean to change “-fmax-include-depth=” to “-param max-include-
>> depth=“?
>> 
> 
> That sounds like a good idea to me.

can -param be accepted by preprocessor? 

I didn’t see any -param in gcc/c-family/c.opt.

where should I define a -param for preprocessor?

thanks.

Qing
> 
>>> Wouldn't a param ease range checking not to overflow the uint max
>>> and maybe automagically provide diagnostics for out of range input?
> 
> (indeed)
> 
> 

Reply via email to