This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Need help understanding decl_handle_format_arg_attribute
- To: Philipp Thomas <pthomas at suse dot de>
- Subject: Re: Need help understanding decl_handle_format_arg_attribute
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Thu, 9 Aug 2001 17:26:43 +0100 (BST)
- cc: <gcc-patches at gcc dot gnu dot org>
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