This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH]: Add builtins [v]asprintf and [v]dprintf
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 2 Jun 2005 19:14:32 +0000 (UTC)
- Subject: Re: [PATCH]: Add builtins [v]asprintf and [v]dprintf
- References: <200506021738.j52HcnC15894@caipclassic.rutgers.edu>
On Thu, 2 Jun 2005, Kaveh R. Ghazi wrote:
> This patch adds "extention" builtins for asprintf, vasprintf, dprintf
> and vdprintf (as declared by glibc's stdio.h.) This ensures format
> checking is done for these functions.
glibc's <stdio.h> already has format attributes on these functions. What
is the benefit of having them built in? Do you have other systems which
have these functions, with the same semantics, but without the attributes?
(I don't think users declaring the functions themselves rather than
defining _GNU_SOURCE to get the definitions is particularly good
practice.)
--
Joseph S. Myers http://www.srcf.ucam.org/~jsm28/gcc/
jsm@polyomino.org.uk (personal mail)
joseph@codesourcery.com (CodeSourcery mail)
jsm28@gcc.gnu.org (Bugzilla assignments and CCs)