This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: cpplib: interned representation of identifiers
On Sun, Jul 09, 2000 at 06:37:04AM +0900, Neil Booth wrote:
> Zack Weinberg wrote:-
>
> > tok->type = CPP_NAME;
> > - tok->val.name.len = sizeof (var_args_str) - 1;
> > - tok->val.name.text = var_args_str; /* Safe. */
> > + tok->val.node = pfile->spec_nodes->n__VA_ARGS__;
> > list->paramc++;
> > -
> > + params_len += tok->val.node->length + 1;
> > +
> > if (CPP_PEDANTIC (pfile) && ! CPP_OPTION (pfile, c99))
> > cpp_pedwarn (pfile,
> > "C89 does not permit anon varargs macros");
>
> Was the params_len line previously a bug?
__VA_ARGS__ does get copied into the parameter list, so yes, I think
it was. I could be wrong; this entire area is kinda confusing.
zw