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]

Re: Need help understanding decl_handle_format_arg_attribute


On Thu, 9 Aug 2001, Philipp Thomas wrote:

> BTW, shouldn't extend.texi also document the restrictions?

The restrictions that the arguments to the format must be the ...
parameter, or that signed char * / unsigned char * aren't valid string
types, or explicitly stating that the numbers must be integer constant
expressions?  Probably yes in all cases.  There's no way numbers that are
negative or too large could be valid anyway, so it's simply a question of
what message to give in each case (and adding testcases if finer
distinctions are introduced between non-constant / <= 0 / larger than
number of parameters are introduced).  File a PR for any of these issues
you don't want to fix now.

-- 
Joseph S. Myers
jsm28@cam.ac.uk


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