On Fri, Aug 26, 2016 at 7:39 AM, Prathamesh Kulkarni <prathamesh.kulka...@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