This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Support for %d$c format specifier in diagnostics.c


 > From: Ishikawa <ishikawa@yk.rim.or.jp>
 > 
 >  - Positional parameters such as %1%s are unlikely to occur in
 > source files.  (We could even prohibit the use in the SOURCE files
 > if necessary.  Maybe too harsh. )
 >   If this is true, then the format checker can, for now, defer the
 > checking of positional paramters.

IMHO, you can't say "unlikely" or "maybe".  GCC bootstraps itself with
-Werror, so if even one such instance occurs in it's own source, then
we have to update the format checker to accept it or we'll get a
warning-error which will halt bootstrap.

OTOH, if we go through the effort to make the format checker aware of
these, then you don't have to discourage using it.  You can feel free
to use it exactly as much as you feel is necessary.

--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]