[PATCH] Add __builtin_va_arg_pack_len () builtin for {open{,at}{,64},mq_open} fortification

Richard Guenther richard.guenther@gmail.com
Sat Sep 8 19:26:00 GMT 2007


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.



More information about the Gcc-patches mailing list