On Mon, 2016-09-19 at 14:21 -0400, Jason Merrill wrote: > On Sun, Sep 18, 2016 at 1:16 PM, Prathamesh Kulkarni > <prathamesh.kulka...@linaro.org> wrote: > > Sorry for late response. In the attached patch, I removed obstack > > building on fmt, and used pp_format for formatting arg_positions by > > adding specifier %I (name > > chosen arbitrarily). Does that look OK ? > > > > However it results in following warning during gcc build and am not > > sure how to fix this: > > ../../gcc/gcc/c-family/c-common.c: In function ‘void > > warn_for_restrict(unsigned int, vec<tree_node*, va_gc>*)’: > > ../../gcc/gcc/c-family/c-common.c:13132:24: warning: unknown > > conversion type character ‘I’ in format [-Wformat=] > > This warning (in stage 1) happens whenever we add a new specifier, > don't worry about it.
Right: there's no way the stage 1 compiler could know about a new specifier. But does the new specifier need to be added to c-family/c-format.c, so that stage 2 and 3 compilers do know about it?