[PATCH]: New warning option -Walloca

Manuel López-Ibáñez lopezibanez@gmail.com
Tue Sep 18 09:21:00 GMT 2007

On 17 Sep 2007 17:03:43 -0700, Ian Lance Taylor <iant@google.com> wrote:
> DJ Delorie <dj@redhat.com> writes:
> > "Raksit Ashok" <raksit.ashok@gmail.com> writes:
> > > Following your advice, Dave, I have implemented a more general
> > > warning: -Wdisallowed-function-list=foo,bar,alloca,... : emit warning
> > > on calls to these functions.
> >
> > What about -Werror-disallowed-functions-list=... ?  That makes it act
> > like all (most?) of the other -W options.
> It seems to me that most of the -W options support -Werror=foo to turn
> them into an error.  By analogy, -Werror=disallowed-functions-list
> should turn the warning into an error.  I'm not sure what
> -Werror-disallowed-functions-list would do.

In principle I think it will work the same way. I seem to remember
that the command-line handling turns non-alphanumeric characters into

In any case mainline is in stage 3, so whatever happens with this
patch it should wait until GCC 4.4 and then we will have plenty of
time to fine-tune it.



More information about the Gcc-patches mailing list