This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Add __builtin_va_arg_pack_len () builtin for {open{,at}{,64},mq_open} fortification
- From: "Richard Guenther" <richard dot guenther at gmail dot com>
- To: tromey at redhat dot com
- Cc: "Jakub Jelinek" <jakub at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Sat, 8 Sep 2007 19:52:46 +0200
- Subject: Re: [PATCH] Add __builtin_va_arg_pack_len () builtin for {open{,at}{,64},mq_open} fortification
- References: <20070908122901.GB2063@devserv.devel.redhat.com> <m31wd96pgt.fsf@fleche.redhat.com>
On 9/8/07, Tom Tromey <tromey@redhat.com> wrote:
> >>>>> "Jakub" == Jakub Jelinek <jakub@redhat.com> writes:
>
> Jakub> We have discussed several possibilities, including:
> Jakub> 1) hardwiring this kind of checking into gcc with
> Jakub> __attribute__((__open_check__ (O_CREAT, 2, __open_2)))
>
> I wanted to point out that this is a situation where plugins would be
> helpful. The same applies to the recent alloca warning patch.
I think the __builtin_va_arg_pack and this natural extension of it are
generally useful as a tool. Heh, we even got variadic templates now! :P
Richard.