From: Alexandre Oliva Date: Wed, 15 Mar 2000 18:46:09 +0000 (+0000) Subject: cpphash.c (collect_formal_parameters): Do not complain about parameter names that... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1690826f332db8489e14f8c95bf0aef4e09acef8;p=gcc.git cpphash.c (collect_formal_parameters): Do not complain about parameter names that just start with `__VA_ARGS__'. * cpphash.c (collect_formal_parameters): Do not complain about parameter names that just start with `__VA_ARGS__'. From-SVN: r32563 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ca7070e609f..8c0b1afc2d6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-03-15 Alexandre Oliva + + * cpphash.c (collect_formal_parameters): Do not complain about + parameter names that just start with `__VA_ARGS__'. + Wed Mar 15 13:26:58 MET 2000 Jan Hubicka * i386.md (movhi_1): Promote movw imm, reg to movl imm, reg and diff --git a/gcc/cpphash.c b/gcc/cpphash.c index 8d0b570bb01..7fe58d98516 100644 --- a/gcc/cpphash.c +++ b/gcc/cpphash.c @@ -599,7 +599,8 @@ collect_formal_parameters (pfile) continue; } if (CPP_PEDANTIC (pfile) && CPP_OPTIONS (pfile)->c99 - && !strncmp (tok, "__VA_ARGS__", sizeof "__VA_ARGS__" - 1)) + && len == sizeof "__VA_ARGS__" - 1 + && !strncmp (tok, "__VA_ARGS__", len)) cpp_pedwarn (pfile, "C99 does not permit use of `__VA_ARGS__' as a macro argument name"); namebuf = (U_CHAR *) xrealloc (namebuf, argslen + len + 1);