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]
Other format: [Raw text]

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


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.


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