[PATCH]: New warning option -Walloca

DJ Delorie dj@redhat.com
Mon Sep 17 22:17:00 GMT 2007


"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 would be nice if it hooked into the #pragma thing for diagnostics,
but I suspect that would be too difficult to justify.

And how does this relate to the pragma poison stuff?



More information about the Gcc-patches mailing list