PR35503 - warn for restrict pointer

Jason Merrill jason@redhat.com
Fri Aug 26 15:56:00 GMT 2016


On Fri, Aug 26, 2016 at 7:39 AM, Prathamesh Kulkarni
<prathamesh.kulkarni@linaro.org> wrote:
> However with C++FE it appears TYPE_RESTRICT is not set for the
> parameters (buf and fmt)
> and hence the warning doesn't get emitted for C++.
> C FE sets TYPE_RESTRICT for them. I am not sure how to workaround this
> issue, and would be grateful for suggestions.

In the C++ FE you can see TYPE_RESTRICT on the types of the
DECL_ARGUMENTS of the function.

Jason



More information about the Gcc-patches mailing list