This is the mail archive of the gcc@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]

Re: new __builtin_choose_type (patch)


On Tue, Oct 02, 2001 at 11:15:14PM -0700, Richard Henderson wrote:
> On Tue, Oct 02, 2001 at 06:54:04PM -0700, Geoff Keating wrote:
> > What does va_arg do?
> 
> va_arg is a grammar element rather than a builtin:
> 
>         | VA_ARG '(' expr_no_commas ',' typename ')'
>                 { $$ = build_va_arg ($3, groktypename ($5)); }
> 
> That's not to say that we can't do the same thing here... ;-)

... not to mention, if we make __builtin_choose_type into a grammar
element, we could make its second argument into a -type-, rather than
an unintuitive dummy variable.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


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